/* Wedding invitation — dark 3D scene, light text straight on the background, one rose accent.
   Change the look by editing a theme block below, or pick a theme in config.json ("theme"). */
:root, [data-theme="midnight"] {
  --bg: #070b18;            /* page background (deep navy) */
  --bg-2: #131d3d;          /* lighter glow at the top */
  --ink: #0c1226;           /* dark text on light things (toggle, envelope card, filled button) */
  --ink-soft: #3f4a63;
  --accent: #f4a6b8;        /* rose: labels, lines, buttons, rings */
  --line: rgba(255, 255, 255, .18);   /* hairlines on the dark background */
  --seal: #9c1f3c;
  --seal-ink: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #c9d1e3;
  --fx-1: #ffffff; --fx-2: #f7b6c6; --fx-3: #9db4ff; --fx-4: #cdb8ff;   /* butterflies & petals */
}
[data-theme="wine"] {
  --bg: #12060b; --bg-2: #3a1223; --ink: #22070f; --ink-soft: #5a3f47;
  --accent: #f3b4c2; --seal: #a8233f; --seal-ink: #ffffff; --on-dark-soft: #e6ccd4;
  --fx-1: #ffffff; --fx-2: #f4b6c2; --fx-3: #d98aa0; --fx-4: #e9c7ff;
}
[data-theme="noir"] {
  --bg: #050506; --bg-2: #1c1c22; --ink: #0a0a0b; --ink-soft: #45454e;
  --accent: #d9dce8; --seal: #8c1c2c; --seal-ink: #ffffff; --on-dark-soft: #d0d0d8;
  --fx-1: #ffffff; --fx-2: #d4d4d8; --fx-3: #f0a5b4; --fx-4: #a9b8e8;
}
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
html[lang="si"], [lang="si"] {
  --font-body: "Noto Sans Sinhala", "Sinhala MN", "Iskoola Pota", system-ui, sans-serif;
  --font-display: "Noto Sans Sinhala", "Sinhala MN", "Iskoola Pota", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(130% 70% at 50% 0%, var(--bg-2) 0%, var(--bg) 72%); }
html[lang="si"] body { line-height: 1.8; }
[lang="si"] { font-family: var(--font-body); }
p, h1, h2, blockquote { margin: 0; }
em { font-style: normal; }
.sprite { position: absolute; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1:focus { outline: none; }

/* Sealed state: no scrolling until the envelope opens */
html.js:not(.is-open) body { overflow: hidden; height: 100svh; }
html.js main { opacity: 0; transition: opacity 1s ease; }
html.js.is-zoom main, html.js.is-open main { opacity: 1; }

/* ---------- 3D scene canvas (three.js) + DOM fallback layers ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 12; pointer-events: none; display: block; }
#butterflies, #fx { position: fixed; inset: 0; z-index: 12; overflow: hidden; pointer-events: none; }
.bf { position: absolute; left: 0; top: 0; width: 0; height: 0; perspective: 220px; will-change: transform; opacity: 0; transition: opacity 1.2s ease; }
.bf.is-on { opacity: var(--o, 1); }
.bf__tilt { position: absolute; left: 0; top: 0; transform: rotateX(34deg); transform-style: preserve-3d; }
.bf__side { position: absolute; left: 0; top: -21px; width: 30px; height: 43px; transform-style: preserve-3d; }
.bf__side--l { transform-origin: 0 50%; transform: scaleX(-1); }
.bf__wing { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 0 50%; animation: flap var(--flap, .3s) ease-in-out infinite alternate; }
.bf__torso { position: absolute; left: -1.5px; top: -13px; width: 3px; height: 24px; border-radius: 2px; background: #1b1b22; }
@keyframes flap { from { transform: rotateY(6deg); } to { transform: rotateY(76deg); } }
.petal { position: absolute; top: -6vh; width: 0; height: 0; will-change: transform; animation: fall 14s linear infinite; }
.petal i { display: block; width: 15px; height: 12px; margin-left: -7px; border-radius: 90% 10% 90% 10%; opacity: .9; scale: var(--s, 1);
  background: var(--c, var(--fx-3)); animation: sway 4s ease-in-out infinite alternate; }
@keyframes fall { to { transform: translate3d(0, 114vh, 0); } }
@keyframes sway { from { transform: translateX(-28px) rotate(-40deg) rotateX(20deg); } to { transform: translateX(28px) rotate(70deg) rotateX(170deg); } }
html.lite .petal, html.lite .hearts { display: none; }
.spark { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent);
  animation: burst 1s cubic-bezier(.1, .7, .3, 1) forwards; }
.spark--petal { width: 10px; height: 8px; border-radius: 90% 10% 90% 10%; background: var(--fx-3); }
@keyframes burst {
  0% { transform: translate3d(0, 0, 0) scale(0); opacity: 1; }
  20% { opacity: 1; }
  100% { transform: translate3d(var(--dx), calc(var(--dy) + 46px), 0) scale(var(--s, 1)) rotate(200deg); opacity: 0; }
}

/* ---------- Top controls ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 21; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.topbar { position: fixed; z-index: 20; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 2px; }
.pill { display: flex; align-items: center; height: 44px; background: none; }
.lang { font-family: "Inter", "Noto Sans Sinhala", system-ui, sans-serif; }
.lang a { display: grid; place-items: center; min-width: 34px; height: 44px; padding: 0 6px; color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: .82rem; line-height: 1;
  text-shadow: 0 1px 6px var(--bg); }
.lang a[aria-current="true"] { color: var(--accent); }
.lang__sep { color: var(--line); font-size: .8rem; }
.music { width: 44px; justify-content: center; border: 0; padding: 0; color: var(--on-dark-soft); cursor: pointer; filter: drop-shadow(0 1px 4px var(--bg)); }
.music__bars { display: none; gap: 2px; align-items: flex-end; height: 13px; }
.music__bars i { width: 2px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: bars .9s ease-in-out infinite alternate; }
.music__bars i:nth-child(2) { animation-delay: -.3s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; }
.music[aria-pressed="true"] { color: var(--accent); }
.music[aria-pressed="true"] svg { display: none; }
.music[aria-pressed="true"] .music__bars { display: flex; }
@keyframes bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* ---------- Shared type ---------- */
.eyebrow { font-size: .84rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); line-height: 1.6; }
html[lang="si"] .eyebrow { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.lead { color: var(--on-dark-soft); font-size: 1.0625rem; max-width: 26ch; margin-inline: auto; text-wrap: balance; }
html[lang="si"] .lead { max-width: 30ch; }
.divider { display: block; width: 150px; height: 19px; margin: 20px auto; color: var(--accent); }

/* ---------- Opening / envelope ---------- */
.opening { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 84px 20px 36px; text-align: center; color: var(--on-dark);
  background: radial-gradient(130% 70% at 50% 0%, var(--bg-2) 0%, var(--bg) 72%);
  transition: opacity .8s ease, transform 1s var(--ease), visibility 0s linear 1s; perspective: 1000px; }
html.is-zoom .opening, html.is-open .opening { opacity: 0; transform: scale(1.18); visibility: hidden; pointer-events: none; }
.opening__rings { width: 150px; height: 112px; flex: none; }           /* the 3D rings are drawn here by the scene */
.opening .eyebrow { color: var(--accent); }
.opening__guest { font-family: var(--font-display); font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1.25; font-weight: 600; margin-bottom: 22px;
  max-width: 16ch; text-wrap: balance; }
html[lang="si"] .opening__guest { font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.55; max-width: 22ch; }
.opening__tap { margin-top: 28px; font-size: 1rem; font-weight: 500; color: var(--on-dark-soft); animation: breathe 2.4s ease-in-out infinite; }
.opening__for, .opening__guest { transition: opacity .5s ease, transform .6s var(--ease); }
html.is-opening .opening__tap { opacity: 0; animation: none; transition: opacity .3s; }
html.is-opening .opening__for, html.is-opening .opening__guest { opacity: 0; transform: translateY(-14px); }

.envelope { --w: min(78vw, 340px); position: relative; width: var(--w); height: calc(var(--w) * .68); flex: none;
  border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; font: inherit; color: inherit;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)) drop-shadow(0 30px 28px rgba(0, 0, 0, .6)); animation: float 5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.envelope > span { position: absolute; display: block; }
.env__back { inset: 0; z-index: 1; border-radius: 8px; background: #c3c9d8; }
.env__card { z-index: 2; left: 6%; right: 6%; top: 7%; height: 86%; border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(12, 18, 38, .12);
  display: grid !important; place-items: start center; padding-top: 12%; transition: transform 1.1s var(--ease) .8s; }
.env__names { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 5.2vw, 1.45rem); color: var(--ink); line-height: 1.15; }
.env__names em { color: var(--seal); font-size: .75em; }
html[lang="si"] .env__names { font-size: clamp(.95rem, 4.6vw, 1.25rem); }
.env__front { inset: 0; z-index: 3; border-radius: 8px; overflow: hidden; }
.env__front::before, .env__front::after { content: ""; position: absolute; inset: 0; }
.env__front::before { background: linear-gradient(90deg, #d9dde8, #eef0f6 50%, #d9dde8); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env__front::after { background: #f7f8fb; clip-path: polygon(0 100%, 50% 44%, 100% 100%); }
.env__flap { z-index: 4; left: 0; right: 0; top: 0; height: 58%; transform-origin: 50% 0; background: linear-gradient(180deg, #f1f3f8, #e2e6ef);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .8s var(--ease) .25s, z-index 0s linear .62s; }
.env__seal { z-index: 5; left: 50%; top: 58%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  display: flex !important; align-items: center; justify-content: center; gap: 2px;
  font-family: "Poppins", "Inter", sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--seal-ink); line-height: 1;
  background: var(--seal); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 8px 12px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .25);
  transition: transform .45s var(--ease), opacity .45s ease; }
.env__seal em { font-size: .7em; font-weight: 500; }
.env__seal::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--accent); animation: ring 2.4s ease-out infinite; }
html.is-opening .envelope { animation-play-state: paused; }
html.is-opening .env__seal { transform: scale(.3); opacity: 0; }
html.is-opening .env__flap { transform: rotateX(180deg); z-index: 1; }
html.is-opening .env__card { transform: translateY(-62%); }
@keyframes float { 0%, 100% { transform: translateY(0) rotateX(6deg) rotateZ(-1deg); } 50% { transform: translateY(-10px) rotateX(-2deg) rotateZ(1deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Sections (each .card is just a centred group of text — no panel, no 3D on the text) ---------- */
main { position: relative; z-index: 1; overflow-x: clip; }
.s { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 22px; position: relative; }
.card { position: relative; width: min(100%, 420px); padding: 8px 4px; text-align: center; color: var(--on-dark); }

.greeting { font-size: 1.2rem; font-weight: 600; color: var(--on-dark); margin: 0 auto 12px; max-width: 12em; text-wrap: balance; line-height: 1.35; }
html[lang="si"] .greeting { font-size: 1.15rem; line-height: 1.6; max-width: 13em; }
.names { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.7rem, 12.5vw, 3.7rem); line-height: 1.12; color: var(--on-dark);
  margin: 16px 0 6px; letter-spacing: -.02em; }
.names span { display: block; }
.names .names__and { font-weight: 500; font-size: .4em; color: var(--accent); margin: .25em 0 .15em; letter-spacing: 0; }
html[lang="si"] .names { font-size: clamp(2.3rem, 11vw, 3.2rem); line-height: 1.45; letter-spacing: 0; }
html[lang="si"] .names .names__and { font-style: normal; font-size: .46em; margin: .1em 0; }
.names .ch { display: inline-block; opacity: 0; transform: translateY(.4em);
  transition: opacity .6s ease, transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms + 300ms); }
.names.in .ch { opacity: 1; transform: none; }
.scroll-hint { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); }
html[lang="si"] .scroll-hint { letter-spacing: 0; font-size: .95rem; }
.scroll-hint i { width: 2px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 22px; }
.date__side { border-block: 1.5px solid rgba(255, 255, 255, .6); padding: 8px 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); }
html[lang="si"] .date__side { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.date__day { font-family: "Poppins", "Inter", sans-serif; font-size: 4.2rem; line-height: .9; font-weight: 700; color: var(--on-dark); padding: 0 4px;
  font-variant-numeric: lining-nums; }
.date__year { font-size: 1.15rem; font-weight: 600; margin-top: 14px; color: var(--accent); }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px auto 30px; max-width: 360px; }
.count div { position: relative; display: flex; flex-direction: column; align-items: center; }
.count b { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; display: grid; place-items: center; font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.45rem; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums lining-nums; }
.count span { margin-top: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); line-height: 1.4; }
html[lang="si"] .count span { font-size: .82rem; letter-spacing: 0; text-transform: none; }

.venue { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; font-weight: 600; color: var(--on-dark); margin-top: 6px; text-wrap: balance; }
html[lang="si"] .venue { font-size: 1.35rem; line-height: 1.5; }
.address { color: var(--on-dark-soft); margin-top: 12px; text-wrap: balance; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; margin-top: 22px;
  border-radius: 999px; background: var(--accent); color: var(--ink); font-family: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent); transition: scale .15s ease; }
.btn svg { color: currentColor; flex: none; width: 16px; height: 16px; }
.btn:active { scale: .96; }
.btn--ghost { background: transparent; color: var(--on-dark); margin-top: 10px; box-shadow: inset 0 0 0 1px var(--accent); font-family: "Poppins", var(--font-display); font-size: .95rem; font-weight: 500;
  font-variant-numeric: lining-nums; }
.btn--ghost svg { color: var(--accent); }

/* ---------- Closing ---------- */
.s-closing { color: var(--on-dark); padding-top: 44px; padding-bottom: max(64px, env(safe-area-inset-bottom)); }
.closing { position: relative; z-index: 1; text-align: center; width: min(100%, 420px); }  /* the 3D rings are drawn here by the scene */
.quote { font-family: var(--font-display); font-style: normal; font-size: 1.2rem; font-weight: 500; line-height: 1.4; color: var(--accent); margin-bottom: 30px; text-wrap: balance; }
html[lang="si"] .quote { font-style: normal; font-size: 1.2rem; line-height: 1.65; }
.closing__heading { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; font-weight: 600; margin-bottom: 12px; text-wrap: balance; }
html[lang="si"] .closing__heading { font-size: 1.4rem; line-height: 1.55; }
.s-closing .lead, .signoff { color: var(--on-dark-soft); }
.closing__names { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.2; margin-top: 4px; }
.closing__names em { font-size: .6em; font-weight: 500; color: var(--accent); }
html[lang="si"] .closing__names { font-size: clamp(1.6rem, 7.4vw, 2.1rem); line-height: 1.5; }
html[lang="si"] .closing__names em { font-style: normal; font-size: .7em; }
.rsvp { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.rsvp__note { font-size: .92rem; font-weight: 400; line-height: 1.55; color: var(--on-dark-soft); text-wrap: balance; max-width: 30ch; margin-bottom: 12px; }
.rsvp__label { color: var(--on-dark-soft); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hearts svg { position: absolute; bottom: -30px; width: 18px; height: 18px; color: var(--fx-3); opacity: 0; animation: rise 9s ease-in infinite; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12% { opacity: .8; }
  100% { transform: translate3d(var(--x, 20px), -92vh, 0) scale(1.15) rotate(24deg); opacity: 0; }
}

/* ---------- Scroll reveal (only when JS runs) ---------- */
html.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s ease calc(var(--d, 0) * 90ms), translate 1s var(--ease) calc(var(--d, 0) * 90ms); }
html.js .reveal.in { opacity: 1; translate: 0 0; }
html.js .divider.reveal { scale: 0 1; translate: none; transition: scale 1.2s var(--ease) calc(var(--d, 0) * 90ms), opacity .6s ease calc(var(--d, 0) * 90ms); }
html.js .divider.reveal.in { scale: 1 1; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; color: var(--on-dark); display: grid; place-items: center; }
.nf__wrap { width: min(100%, 440px); padding: 64px 24px; text-align: center; opacity: 1 !important; }
.nf__seal { width: 78px; height: 78px; margin: 0 auto 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px;
  font-family: "Poppins", "Inter", sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--seal-ink); background: var(--seal);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 14px 18px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .22); }
.nf__seal em { font-size: .7em; font-weight: 500; }
.nf__title { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.25; font-weight: 600; margin-bottom: 12px; text-wrap: balance; }
.nf__si .nf__title { font-size: 1.4rem; line-height: 1.55; }
.nf__text { color: var(--on-dark-soft); text-wrap: pretty; }
.nf .divider { margin: 28px auto; }
.nf .btn--ghost { margin-top: 32px; }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  body { font-size: 1.125rem; }
  .card { width: 480px; }
  .topbar { top: 14px; right: 18px; }
  .names { font-size: 4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .opening, .env__flap, .env__card, .env__seal { transition-duration: .01s !important; transition-delay: 0s !important; }
  html.js .reveal { translate: none; transition: opacity .4s ease; }
  html.js .divider.reveal { scale: none; }
  .names .ch { opacity: 1; transform: none; transition: none; }
  #butterflies, #fx, .hearts { display: none; }
}
html[lang="si"] .rsvp__note { font-size: .95rem; line-height: 1.7; }
html[lang="si"] .rsvp__label { letter-spacing: 0; text-transform: none; font-size: .85rem; }

/* ---------- First screen: rings and names ---------- */
.s-hero { padding-top: 92px; padding-bottom: 4px; }
.s-details { padding-top: 26px; }
.hero__rings { width: 170px; height: 124px; margin: 0 auto 14px; }

/* Where the 3D rings are drawn. Until the 3D scene is ready (or if it cannot load) a flat ring icon pulses here instead. */
.rings-slot { display: grid; place-items: center; }
.rings-slot svg { width: 62%; color: var(--accent); animation: loading 1.3s ease-in-out infinite; transition: opacity .5s ease; }
html.has-3d .rings-slot svg { opacity: 0; animation: none; }
html.no-3d .rings-slot svg { animation: none; }
@keyframes loading { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
#scene { opacity: 0; transition: opacity .9s ease; }
html.has-3d #scene { opacity: 1; }

/* Countdown rings */
.count svg { display: block; width: 100%; aspect-ratio: 1; transform: rotate(-90deg); }
.count circle { fill: none; stroke-width: 3; }
.count__track { stroke: var(--line); }
.count__arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: 226.2; transition: stroke-dashoffset 1s linear; }

/* Short phones: smaller rings so the names and date fit on the first screen */
@media (max-height: 760px) {
  .s-hero { padding-top: 80px; }
  .hero__rings { width: 130px; height: 94px; margin-bottom: 8px; }
}

/* Space above the venue label when the countdown is switched off */
.date__year + .eyebrow { margin-top: 30px; }
