:root {
  --bg: #120b08; --ivory: #FBF6EC; --paper: #F3E8D3; --maroon: #5B1A1F; --ink: #3c1818;
  --gold: #a97a2f; --gold-hi: #f3dfa6; --gold-mid: #e0b867; --cream: #f6e7c1;
  --hair: rgba(243,223,166,.18);
  --foil: linear-gradient(110deg,#b88a3b 0%,#f3dfa6 30%,#c9994a 52%,#fff1c9 70%,#b88a3b 100%);
  --spring: cubic-bezier(.32,.72,0,1);
  --ease-out: cubic-bezier(.23,1,.32,1);
  --screen: 100vh;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--gold-hi); font-family: "Hind", sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .022; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; }
a, button { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
::selection { color: var(--ivory); background: var(--maroon); }
[data-l="hi"] { line-height: 1.45; }
.times .t, .ev-no, .act-no, .ch-day, .event .day, .footer-mark, .programme-note { font-variant-numeric: lining-nums tabular-nums; }   /* Cormorant's old-style 1 reads as I */

/* ---------- 3D story ---------- */
canvas#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: pan-y; }
#story { height: 500vh; }                                /* longer hold on the couple before the film slides over it */
#hud { transition: opacity .7s var(--spring); }
#hud.off { opacity: 0; }
#hud.off .skip { pointer-events: none; }
.hud { position: fixed; left: 0; right: 0; pointer-events: none; text-align: center; transition: opacity .6s var(--spring); z-index: 2; }
.names { top: 0; padding: 7vh 0 7vh; background: linear-gradient(180deg, rgba(18,11,8,.88), rgba(18,11,8,.38) 68%, transparent); }
.hud.stage { bottom: calc(6vh + 100px + env(safe-area-inset-bottom)); }   /* sits above the Next button */
.chip { display: inline-block; padding: 12px 18px; border: 1px solid rgba(243,226,168,.24); border-radius: 999px; font: 500 13px/1 "Hind"; letter-spacing: .04em; color: var(--gold-hi);
        background: rgba(20,12,8,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 40px -24px #000; }
.chip[data-l="hi"], .chip [data-l="hi"] { font-size: 16px; }
.skip { position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 16px; z-index: 20; min-height: 44px; display: inline-flex; align-items: center; gap: 7px;
        text-decoration: none; transition: transform .45s var(--spring), border-color .45s var(--spring), background .45s var(--spring), opacity .45s var(--spring); }
.skip:active { transform: scale(.975); }
.reading .skip { opacity: 0; pointer-events: none; }   /* already on the invitation */
@media (hover: hover) { .skip:hover { border-color: rgba(243,226,168,.5); background: rgba(35,20,13,.88); transform: translateY(-1px); } }

.names-block .s { font-family: "Great Vibes", cursive; font-size: clamp(48px, 10vw, 104px); line-height: 1; color: var(--gold-hi); }
.names-block .s .A { font-family: "Alex Brush", cursive; }
.names-block .w { font-family: "Great Vibes", cursive; font-size: clamp(22px, 4vw, 40px); color: var(--gold-mid); margin: 2px 0; }
.names-block .w[data-l="hi"] { font-size: clamp(18px, 3vw, 26px); }
.mono { width: 76px; height: 76px; color: var(--gold-hi); }

#loader { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background:
  radial-gradient(ellipse at 50% 38%, rgba(184,138,59,.18), transparent 42%),
  radial-gradient(circle at 50% 42%, #2a1810, var(--bg) 64%); transition: opacity .8s var(--spring); }
#loader.gone { opacity: 0; pointer-events: none; }
#loader .ld { text-align: center; animation: breathe 2.4s ease-in-out infinite; }
#loader .mono { filter: drop-shadow(0 0 18px rgba(243,223,166,.28)); }
#loader p { font-family: "Tiro Devanagari Hindi"; color: #e0c07a; margin-top: 16px; letter-spacing: .02em; }
#loader .bar { display: block; width: 140px; height: 2px; margin: 20px auto 0; background: rgba(243,226,168,.14); border-radius: 2px; overflow: hidden; }
#loader .bar::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, #a77d34, var(--gold-hi), #a77d34); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .35s var(--spring); }
html:not(.no3d) body:has(#loader:not(.gone)) :is(.next-wrap, .skip, .sound) { opacity: 0; pointer-events: none; }   /* nothing to press until the invitation opens */
#loader .pct { display: block; margin-top: 12px; font: 600 11px/1 "Hind"; letter-spacing: .2em; color: #c9a45a; font-variant-numeric: tabular-nums; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.97); } }

/* no WebGL: drop the story, the film starts the page */
.no3d #story, .no3d canvas#gl, .no3d #hud, .no3d #loader { display: none; }

/* ---------- the ritual film ----------
   Full-bleed photoreal reel. Each chapter = (clips + 1) screens; the stage is sticky and the
   next chapter's stage slides up over it (margin -1 screen). --pos is each clip's focal point. */
#film { position: relative; z-index: 3; }
.ch { --p: 0; position: relative; height: calc((var(--n) + 1) * var(--screen)); }
.ch + .ch { margin-top: calc(-1 * var(--screen)); }
.ch .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0c0806;
             box-shadow: 0 -30px 70px -10px rgba(0,0,0,.75); }
.ch .stage::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.ch .backdrop, .ch .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--pos, 50%);
                           translate: 0 calc(var(--p) * -5vh); }
.ch .backdrop { filter: brightness(.62) saturate(.9); scale: 1.08; }
/* every cut: a slow push-in (Ken Burns) while it crossfades in */
.ch .clip { opacity: 0; scale: 1.14; transition: opacity 1s var(--spring), scale 8s cubic-bezier(.22,.61,.36,1); }
.ch .clip.on { opacity: 1; scale: 1.04; }

.ch .drift { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ch .drift.far { translate: 0 calc(var(--p) * -12vh); }
.ch .drift.near { translate: 0 calc(var(--p) * 22vh); }
/* the printed card's line-art, recoloured to warm foil gold and lit, not greyed */
.ch .orn { position: absolute; pointer-events: none; user-select: none; mix-blend-mode: screen;
           filter: brightness(0) invert(.86) sepia(1) saturate(2.4) hue-rotate(-8deg) drop-shadow(0 0 14px rgba(240,190,90,.35)); }
.ch .orn-hang_l, .ch .orn-hang_r { top: 0; width: min(10vw, 96px); max-height: 46vh; object-fit: cover; object-position: top center; opacity: .62; }
.ch .orn-hang_l { left: 2vw; }
.ch .orn-hang_r { right: 2vw; }
.ch .orn-ganesha { top: calc(7vh + env(safe-area-inset-top)); left: 50%; width: min(16vw, 96px); transform: translateX(-50%); opacity: .7; }
.ch .orn-kalash { bottom: 16vh; right: 6vw; width: min(13vw, 86px); opacity: .55; }
.ch .orn-swirl_l { top: 24vh; left: -9vw; width: min(40vw, 320px); opacity: .32; }
.ch .orn-swirl_r { right: -10vw; bottom: 20vh; width: min(40vw, 320px); opacity: .32; }
.ch .orn-archline { top: 7vh; left: 50%; width: min(64vw, 520px); transform: translateX(-50%); opacity: .45; }
.ch .veil { position: absolute; inset: 0; z-index: 3; pointer-events: none;
            background:
              linear-gradient(180deg, rgba(8,5,3,.55) 0%, transparent 22%),
              radial-gradient(120% 70% at 18% 100%, rgba(8,5,3,.82), transparent 62%),
              linear-gradient(0deg, rgba(8,5,3,.7) 0%, transparent 46%); }
.ch .card { position: absolute; left: 50%; bottom: 0; z-index: 4; display: flex; flex-direction: column;
            align-items: flex-start; justify-content: flex-end; text-align: left; width: min(1120px, calc(100% - 56px));
            padding: 0 0 calc(15vh + 64px + env(safe-area-inset-bottom));
            color: var(--cream); pointer-events: none; text-shadow: 0 2px 26px rgba(0,0,0,.75);
            transform: translate3d(-50%, 0, 0); }
/* the title card arrives in a short stagger, and leaves the moment the cut changes */
.ch .card > * { opacity: 0; translate: 0 18px; filter: blur(6px); transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), filter .5s var(--ease-out); }
.ch .card.on > * { opacity: 1; translate: 0 0; filter: none; transition-duration: .9s; }
.ch .card.on > :nth-child(2) { transition-delay: .08s; } .ch .card.on > :nth-child(3) { transition-delay: .16s; }
.ch .card.on > :nth-child(4) { transition-delay: .22s; } .ch .card.on > :nth-child(5) { transition-delay: .28s; }
.ch .card.on > :nth-child(6) { transition-delay: .34s; } .ch .card.on > :nth-child(n+7) { transition-delay: .4s; }
.ch .card.on .pill { pointer-events: auto; }
.act-no { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 600 11px/1 "Hind"; letter-spacing: .22em; color: var(--gold-mid); text-shadow: none; font-variant-numeric: tabular-nums; }
.act-no i { width: 42px; height: 1px; background: linear-gradient(90deg, var(--gold-mid), rgba(232,201,131,.15)); }
.ch .card h2 { margin: 0; font-weight: 400; }
.ch .card h2 [data-l="en"] { font: italic 500 clamp(52px, 7.4vw, 96px)/.95 "Cormorant Garamond", serif; letter-spacing: -.03em; text-wrap: balance; }
.ch .card h2 [data-l="hi"] { font-size: clamp(36px, 6vw, 62px); line-height: 1.3; }
.ch .card .ch-names .names-block .s { color: var(--cream); font-size: clamp(62px, 10vw, 112px); }
.ch-rule { display: block; width: min(180px, 40vw); height: 1px; margin: 20px 0 16px; background: linear-gradient(90deg, var(--gold-mid), transparent); }
.ch .card p { margin: 0 0 7px; }
.ch-day { font: 500 21px/1.3 "Cormorant Garamond", serif; }
.ch-time { font: 500 18px/1.3 "Hind", sans-serif; color: var(--gold-mid); }
.ch-venue { font: italic 500 18px/1.45 "Cormorant Garamond", serif; max-width: 27em; color: #ecd9a8; }
.ch-line { font: italic 500 22px/1.45 "Cormorant Garamond", serif; max-width: 26em; color: #ecd9a8; text-wrap: balance; }
.ch .card .pill { margin-top: 16px; text-shadow: none; background: var(--gold-hi); color: #2a1810; }
.ch .card .pill .ic { background: rgba(42,24,16,.12); }
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
[data-step] { scroll-snap-align: start; }
@media (max-width: 520px) {
  .ch .orn-hang_l, .ch .orn-hang_r { width: 15vw; max-height: 30vh; }
  .ch .orn-swirl_l, .ch .orn-swirl_r { width: 54vw; }
  .ch .card { width: calc(100% - 44px); padding-bottom: calc(12vh + 64px + env(safe-area-inset-bottom)); }
  .ch .card h2 [data-l="en"] { font-size: clamp(46px, 14vw, 64px); }
  .ch .card .ch-names .names-block .s { font-size: clamp(58px, 19vw, 84px); }
  .ch-day { font-size: 19px; }
  .ch-line { max-width: 18em; font-size: 20px; }
}
.film-lite .ch { height: auto; margin-top: 0; }
.film-lite .ch .stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
.film-lite .ch .clip, .film-lite .snap { display: none; }
.film-lite .ch .backdrop, .film-lite .ch .drift { translate: none; }
.film-lite .ch .card { position: relative; left: auto; transform: none; margin: 0 auto; min-height: 100svh; }
.film-lite .ch .card > * { opacity: 1; translate: none; filter: none; }

/* scroll progress: a gold thread along the bottom edge (transform only, set per frame by film.js) */
.progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; height: 4px; background: rgba(243,223,166,.12); pointer-events: none; }
.progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left;
              background: linear-gradient(90deg, #8a5a1f, #e0b867 45%, #fff1c9 80%, #e0b867); box-shadow: 0 0 10px rgba(240,190,90,.55); }

/* ---------- Next: tap it or swipe, same steps ---------- */
.next-wrap { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px;
             transform: translateX(-50%); transition: opacity .5s var(--ease-out), translate .5s var(--ease-out); }
.next-wrap.done, .reading .next-wrap { opacity: 0; translate: 0 16px; pointer-events: none; }   /* on the invitation the page simply scrolls; never cover its text */
.next-hint { margin: 0; padding: 7px 14px; border-radius: 999px; font: 500 12px/1 "Hind"; letter-spacing: .05em; color: var(--gold-hi); white-space: nowrap;
             background: rgba(20,12,8,.6); transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.next-hint [data-l="hi"] { font-size: 14px; }
.next-wrap.used .next-hint { opacity: 0; translate: 0 6px; }
.next { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 22px; border: 1px solid rgba(243,223,166,.45); border-radius: 999px;
        font: 600 15px/1 "Hind"; letter-spacing: .04em; color: var(--gold-hi); background: rgba(20,12,8,.62); cursor: pointer;
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 34px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
        transition: transform .16s var(--ease-out), background .3s ease, border-color .3s ease; }
.next [data-l="hi"] { font-size: 17px; font-weight: 400; }
.next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease-out) infinite; }
.next:active { transform: scale(.96); }
@media (hover: hover) { .next:hover { background: rgba(42,24,16,.82); border-color: var(--gold-hi); } }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 3px; } }

/* ---------- the invitation (slides over the last chapter) ---------- */
#details { position: relative; z-index: 4; margin-top: calc(-1 * var(--screen)); overflow: hidden; text-align: center; color: var(--cream);
           padding: 0 26px calc(18vh + env(safe-area-inset-bottom));
           background: radial-gradient(90% 50% at 50% 0%, #2c1a10 0%, transparent 70%), linear-gradient(180deg, #160d09, #0f0906 60%, #140b08);
           box-shadow: 0 -40px 90px 0 rgba(0,0,0,.85); }
#details::before, #details::after { content: ""; position: absolute; top: 0; width: min(14vw, 150px); height: 520px; opacity: .2; pointer-events: none; mix-blend-mode: screen;
  background: top center / contain no-repeat url("/assets/hang_l.png"); filter: brightness(0) invert(.86) sepia(1) saturate(2.4) hue-rotate(-8deg); }
#details::before { left: max(0px, calc((100vw - 1280px) / 2)); }
#details::after { right: max(0px, calc((100vw - 1280px) / 2)); transform: scaleX(-1); }
.dt-glow { position: absolute; left: 50%; top: 32vh; width: 120vmax; height: 120vmax; translate: -50% -50%; pointer-events: none;
           background: radial-gradient(circle, rgba(232,180,90,.13), transparent 55%); animation: glow 9s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; scale: 1.08; } }
.gold-rule { display: block; width: 120px; height: 1px; margin: 26px auto; background: linear-gradient(90deg, transparent, var(--gold-mid), transparent); }

.intro { position: relative; max-width: 940px; margin: 0 auto; padding: calc(16vh + env(safe-area-inset-top)) 0 14vh; }
.frame { position: relative; padding: clamp(46px, 7vw, 84px) clamp(22px, 6vw, 80px); border: 1px solid var(--hair); border-radius: 4px;
         background: linear-gradient(180deg, rgba(243,223,166,.045), rgba(243,223,166,.012)); box-shadow: inset 0 0 0 7px rgba(18,11,8,.9), inset 0 0 0 8px rgba(243,223,166,.08); }
.corner { position: absolute; width: 34px; height: 34px; border: 0 solid var(--gold-mid); }
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.ganesh { display: block; width: 84px; margin: 0 auto 26px; filter: brightness(0) invert(.86) sepia(1) saturate(2.4) hue-rotate(-8deg) drop-shadow(0 0 18px rgba(240,190,90,.35)); mix-blend-mode: screen; }
.details-kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 30px; color: var(--gold-mid); font: 600 11px/1 "Hind"; letter-spacing: .26em; text-transform: uppercase; }
.details-kicker::before, .details-kicker::after { content: ""; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-mid)); }
.details-kicker::after { transform: scaleX(-1); }
.shloka { font: 18px/1.85 "Tiro Devanagari Hindi"; color: #d8b877; margin: 0 auto 40px; text-wrap: balance; }
.invite { margin: 0 auto 50px; max-width: 34em; text-wrap: pretty; color: #ecdcb6; }
.invite[data-l="hi"] { font: 20px/1.85 "Tiro Devanagari Hindi"; }
.invite[data-l="en"] { font: italic 500 clamp(22px, 2.8vw, 28px)/1.55 "Cormorant Garamond"; }
@media (max-width: 520px) { .invite br { display: none; } }   /* the card's line breaks are for wide pages; on a phone they orphan single words */
.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(14px, 3vw, 40px); }   /* end: both family lines share one baseline */
.couple .s { font: clamp(56px, 8vw, 96px)/1.05 "Great Vibes", cursive; }
.couple .s .A { font-family: "Alex Brush", cursive; }
.couple .w { align-self: center; padding-bottom: 3.2em; font: clamp(24px, 3vw, 34px)/1 "Great Vibes", cursive; color: var(--gold-mid); }
.couple .w[data-l="hi"] { font-size: 22px; }
.shimmer { background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; padding: .25em .35em; margin: -.25em -.35em; }   /* room for the script swashes: background-clip only paints inside the box */
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lineage { margin: 14px auto 0; max-width: 24em; font: 500 16px/1.55 "Cormorant Garamond"; color: #c9ad7c; text-wrap: balance; }
.lineage[data-l="hi"] { font-size: 15px; }

.programme { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 0 14vh; }
.eyebrow { display: block; margin: 0 0 18px; font: 600 11px/1 "Hind"; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-mid); }
.programme > h2 { margin: 0; font-weight: 400; }
.programme > h2 [data-l="en"] { font: italic 500 clamp(52px, 8vw, 96px)/.95 "Cormorant Garamond"; letter-spacing: -.03em; color: var(--gold-hi); }
.programme > h2 [data-l="hi"] { font-size: clamp(40px, 6vw, 64px); color: var(--gold-hi); }
.programme-note { margin: 18px 0 64px; color: #bfa274; font: italic 500 18px/1.5 "Cormorant Garamond"; letter-spacing: .04em; }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; text-align: left; }
.events:has(> .event:only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }
/* double-bezel card: a hairline tray holding the card */
.event { padding: 6px; border-radius: 26px; border: 1px solid var(--hair); background: rgba(243,223,166,.03); }
.ev-img { position: relative; margin: 0; height: 210px; overflow: hidden; border-radius: 20px 20px 4px 4px; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.92) brightness(.82); scale: 1.06; transition: scale 1.4s var(--ease-out); }
.ev-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1a100b 0%, transparent 60%); }
.ev-no { position: absolute; left: 22px; bottom: 14px; z-index: 1; font: italic 500 30px/1 "Cormorant Garamond"; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ev-body { padding: 22px 24px 26px; border-radius: 4px 4px 20px 20px; background: #1a100b; box-shadow: inset 0 1px 0 rgba(243,223,166,.06); }
@media (hover: hover) { .event:hover .ev-img img { scale: 1.12; } }
.event .day { margin: 0 0 8px; font: 600 12px/1.4 "Hind"; letter-spacing: .08em; color: var(--gold-mid); }
.event .day[data-l="hi"] { font-size: 15px; font-weight: 400; }
.event h3 { margin: 0; font-weight: 400; }
.event h3 b { display: block; font: 28px/1.25 "Tiro Devanagari Hindi"; color: var(--gold-hi); text-wrap: balance; }
.event h3 b[data-l="en"] { font: 600 clamp(28px, 2.6vw, 34px)/1.08 "Cormorant Garamond"; letter-spacing: -.015em; }
.event h3 .sub { display: block; margin-top: 7px; font: italic 500 17px/1.4 "Cormorant Garamond"; color: #c9ad7c; }
.event .gold-rule { margin: 20px 0; width: 64px; background: linear-gradient(90deg, var(--gold-mid), transparent); }
.times { list-style: none; padding: 0; margin: 0 0 6px; }
.times li { display: grid; grid-template-columns: 6.6em 1fr; gap: 12px; align-items: baseline; padding: 0 0 12px; }
.times .t { font: 600 18px/1.35 "Cormorant Garamond"; color: var(--gold-hi); }
.times .t[data-l="hi"] { font-size: 16px; font-weight: 400; }
.times .n { font: 15px/1.45 "Hind"; color: #dcc9a2; }
.venue { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--hair); }
.venue .lbl, .blessings .lbl { margin: 0; font: 600 11px "Hind"; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-mid); }
.venue .vn { margin: 8px 0 3px; font: 600 22px/1.2 "Cormorant Garamond"; color: var(--cream); }
.venue .vn[data-l="hi"] { font-size: 19px; font-weight: 400; }
.venue .ad { margin: 0 0 18px; font: 14px/1.55 "Hind"; color: #bfa982; text-wrap: pretty; }
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 7px 7px 20px; border-radius: 999px; text-decoration: none; font: 600 15px/1 "Hind";
        background: var(--gold-hi); color: #2a1810; box-shadow: 0 16px 30px -19px rgba(0,0,0,.9); transition: transform .16s var(--ease-out), background .3s ease; }
.pill [data-l="hi"] { font-size: 16px; font-weight: 400; }
.pill:active { transform: scale(.97); }
.pill .ic { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: rgba(42,24,16,.12); transition: translate .3s var(--ease-out); }
@media (hover: hover) { .pill:hover { background: #fff1c9; } .pill:hover .ic { translate: 2px -2px; } }

.blessings { position: relative; max-width: 760px; margin: 0 auto; padding-top: 8vh; }
.orn-k { display: block; width: 64px; margin: 0 auto 22px; filter: brightness(0) invert(.86) sepia(1) saturate(2.4) hue-rotate(-8deg); mix-blend-mode: screen; opacity: .85; }
.blessings .mono { width: 64px; height: 64px; }
.bl-big { margin: 22px 0 10px; color: var(--gold-hi); text-wrap: balance; }
.bl-big[data-l="hi"] { font: 26px/1.5 "Tiro Devanagari Hindi"; }
.bl-big[data-l="en"] { font: italic 500 clamp(32px, 5vw, 48px)/1.15 "Cormorant Garamond"; }
.bl-small { font: italic 500 18px/1.55 "Cormorant Garamond"; color: #c9ad7c; margin: 0; }
.orgs { font: 500 19px/1.65 "Cormorant Garamond"; margin: 10px 0 0; color: var(--cream); }
.footer-mark { margin-top: 64px; font: 500 12px/1 "Cormorant Garamond"; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-mid); }
.footer-mark i { font: 24px/1 "Great Vibes"; letter-spacing: 0; text-transform: none; }

/* one restrained rise per element, staggered by --d; reduced motion gets the final state */
.motion-ready .rv { opacity: 0; translate: 0 26px; filter: blur(6px);
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.motion-ready .rv.in { opacity: 1; translate: 0 0; filter: none; }
.motion-ready .event.rv.in .ev-img img { scale: 1; }

@media (max-width: 680px) {
  #details { padding-left: 18px; padding-right: 18px; }
  #details::before, #details::after { width: 22vw; height: 300px; opacity: .12; }
  .couple { grid-template-columns: 1fr; gap: 6px; }
  .couple .w { padding-bottom: 0; margin: 18px 0 6px; }
  .lineage { margin-top: 6px; }
  .programme-note { margin-bottom: 40px; }
  .events { grid-template-columns: 1fr; }
  .ev-img { height: 180px; }
}
@media (max-width: 430px) {
  .details-kicker { font-size: 10px; letter-spacing: .18em; }
  .details-kicker::before, .details-kicker::after { width: 24px; }
  .times li { grid-template-columns: 6em 1fr; }
}

/* ---------- landing (bare domain): the palace doors, nothing else ---------- */
.landing { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.land-film { position: fixed; inset: 0; z-index: 0; background: #0c0806; }
.land-poster, .land-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.land-poster { filter: brightness(.7) saturate(.9); scale: 1.12; transition: scale 2.6s var(--ease-out); }
.land-clip { opacity: 0; scale: 1.1; transition: opacity 1.6s var(--ease-out), scale 12s cubic-bezier(.22,.61,.36,1); }
.landing.in .land-poster { scale: 1.04; }
.landing.playing .land-clip { opacity: 1; scale: 1.02; }
.land-veil { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(8,5,3,.35), rgba(8,5,3,.85)), linear-gradient(0deg, rgba(8,5,3,.6), transparent 40%); }
.land { position: relative; z-index: 1; padding: 24px; text-shadow: 0 2px 30px rgba(0,0,0,.7); }
.land-mono .mono { width: 104px; height: 104px; margin-bottom: 18px; filter: drop-shadow(0 0 20px rgba(243,223,166,.25)); }
.land .mono .ring, .land .mono .ring2 { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.land .mono .ring2 { transition-delay: .3s; }
.land .mono g { opacity: 0; transition: opacity 1.4s var(--ease-out) .9s; }
.landing.in .land .mono .ring, .landing.in .land .mono .ring2 { stroke-dashoffset: 0; }
.landing.in .land .mono g { opacity: 1; }
.land-names, .land-rule, .land .when, .land .note { opacity: 0; translate: 0 18px; filter: blur(8px); transition: opacity 1.2s var(--ease-out), translate 1.4s var(--ease-out), filter 1.2s var(--ease-out); }
.landing.in .land-names, .landing.in .land-rule, .landing.in .land .when, .landing.in .land .note { opacity: 1; translate: 0 0; filter: none; }
.landing.in .land-names { transition-delay: 1.1s; }
.landing.in .land-rule { transition-delay: 1.5s; }
.landing.in .land .when { transition-delay: 1.7s; }
.landing.in .land .note { transition-delay: 1.9s; }
.land-names .names-block .s { color: var(--cream); font-size: clamp(64px, 11vw, 128px); }
.land-rule { display: block; width: 140px; height: 1px; margin: 26px auto 0; background: linear-gradient(90deg, transparent, var(--gold-mid), transparent); }
.land .when { font: 600 12px "Hind"; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-mid); margin: 22px 0 26px; }
.land .when[data-l="hi"] { font-size: 16px; font-weight: 400; }
.land .note { font: 17px/1.6 "Tiro Devanagari Hindi"; color: #ecd9a8; }
.land .note[data-l="en"] { font: italic 500 20px "Cormorant Garamond"; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  #story, canvas#gl, #hud, #loader { display: none; }
  .landing *, .next svg, .shimmer, .dt-glow { animation: none !important; transition: none !important; }
  .land-names, .land-rule, .land .when, .land .note, .land .mono g { opacity: 1; translate: none; filter: none; }
  .land .mono .ring, .land .mono .ring2 { stroke-dashoffset: 0; }
}

/* ---------- bilingual ---------- */
html[data-lang="hi"] [data-l="en"], html[data-lang="en"] [data-l="hi"] { display: none !important; }
[data-l="hi"] { font-family: "Tiro Devanagari Hindi", serif !important; font-style: normal !important; letter-spacing: 0 !important; text-transform: none !important; }   /* Devanagari: no italics, no tracking (breaks conjuncts) */
.lang { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 20; display: flex; gap: 3px; padding: 4px; border-radius: 999px;
        background: rgba(27,18,12,.78); box-shadow: inset 0 0 0 1px rgba(243,226,168,.28), 0 10px 24px -14px rgba(0,0,0,.6); }
.lang button { appearance: none; border: 0; cursor: pointer; min-width: 44px; height: 40px; padding: 0 12px; border-radius: 999px;
               font: 600 13px/1 "Hind", sans-serif; color: #f3dfa6; background: transparent; transition: background .3s ease, color .3s ease; }
.lang button[data-set="hi"] { font-family: "Tiro Devanagari Hindi", serif; font-size: 15px; font-weight: 400; }
.lang button[aria-pressed="true"] { background: #f3dfa6; color: #2a1810; }

/* music toggle */
.sound { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 20; display: grid; place-items: center;
         width: 48px; height: 48px; padding: 0; border: 1px solid rgba(243,226,168,.32); border-radius: 999px;
         color: #2a1810; background: #f3dfa6; box-shadow: 0 16px 34px -17px rgba(0,0,0,.85); cursor: pointer;
         transition: transform .16s var(--ease-out), background .3s ease, color .3s ease, opacity .4s var(--spring); }
.sound:active { transform: scale(.95); }
.sound.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.sound svg { width: 21px; height: 21px; fill: currentColor; }
.sound .wave, .sound .slash { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sound .slash { display: none; }
.sound.off { background: rgba(20,12,8,.78); color: #f3dfa6; }
.sound.off .wave { display: none; }
.sound.off .slash { display: block; }
