/* Kailash template. One continuous twilight world: dusk violet, warm gold, peach light. Mobile first. */
:root {
  --dusk: #241d3b;
  --ivory: #f6ead8;
  --ivory-2: #d9cbe0;
  --peach: #f3cfa5;
  --gold: #d9b37a;
  --gold-l: #f1d9a8;
  --names: linear-gradient(180deg, #fff3e0 0%, #f6d6ae 52%, #dba06d 100%);
  --display: "Gilda Display", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --deva: "Tiro Devanagari Sanskrit", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fade: linear-gradient(transparent 0, #000 16%, #000 84%, transparent 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--dusk); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ivory); overflow-x: clip; -webkit-font-smoothing: antialiased;
  background: var(--dusk) url(img/damask.webp) center top / 340px auto; } /* the painted damask, softened in the art build */
body.locked { overflow: hidden; height: 100svh; }
img, video { display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.caps { font: 600 12px/1.6 var(--serif); letter-spacing: .36em; text-transform: uppercase; color: var(--gold); padding-left: .36em; }
.title { font: 400 clamp(44px, 12vw, 84px)/1.02 var(--display); color: var(--ivory); margin-top: 10px; }
.title em, .f-names em { font: 400 1.08em/1 var(--script); color: var(--peach); }
.deva { font-family: var(--deva); color: var(--gold-l); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; margin-top: 30px;
  font: 600 12px/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold-l);
  border: 1px solid rgba(217, 179, 122, .7); border-radius: 999px; transition: background .4s var(--ease), color .4s var(--ease); }
.btn:hover { background: var(--gold-l); color: var(--dusk); }
.btn.solid { width: 100%; background: linear-gradient(180deg, #f1d9a8, #d0a467); color: #2a2036; border: 0; }
.scene { position: relative; padding: 90px 18px; text-align: center; }
.paint { position: relative; overflow: hidden; }

/* ================= COVER ================= */
#cover { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #0f0d1a; text-align: center; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05) brightness(.82); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 20, .62) 0%, rgba(10, 9, 20, 0) 34%, rgba(10, 9, 20, 0) 60%, rgba(10, 9, 20, .7) 100%); }
.cover-ui { position: absolute; left: 0; right: 0; top: max(8svh, 50px); padding: 0 20px; }
.cover-greet { font: 600 11px/1.5 var(--serif); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-l); }
.cover-names { font: 400 clamp(40px, 11vw, 88px)/1.05 var(--display); color: #fbf3e6; margin-top: 12px; }
.cover-names em { font: 400 .8em var(--script); color: var(--gold-l); padding: 0 .1em; }
.cover-date { margin-top: 6px; font-size: 19px; letter-spacing: .14em; color: #efe4d4; }
#enter { position: absolute; left: 50%; bottom: max(9svh, 44px); translate: -50% 0; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
#enter span { padding: 13px 28px; border-radius: 999px; background: rgba(251, 243, 230, .96); color: #241d3b; font: 400 19px/1 var(--display); letter-spacing: .04em; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
#enter i { width: 34px; height: 1px; background: #fbf3e6; position: relative; }
#enter i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; rotate: 45deg; background: #fbf3e6; }
#enter i:first-child::after { right: -2px; } #enter i:last-child::after { left: -2px; }
#enter::after { content: ""; position: absolute; inset: -8px 40px; border-radius: 999px; border: 1px solid rgba(251, 243, 230, .5); animation: pulse 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes pulse { from { scale: .92; opacity: 1; } to { scale: 1.18; opacity: 0; } }

/* ================= 1. JOURNEY: one painted scene, layers at their own scroll speeds ================= */
/* --tw: temple width, --tt: temple top (low, so the first screen is names + sky). The temple art is 1 : 1.777, so its path ends at --tt + 1.777 x --tw. */
#journey { position: relative; z-index: 1; overflow: hidden; --tw: 112vw; --tt: 60svh; --tb: calc(var(--tt) + var(--tw) * 1.777); height: var(--tb); background: var(--dusk); }
#journey > * { position: absolute; }
.l-sky { z-index: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 0; }
.l-moon { z-index: 3; left: 68vw; top: 22.5svh; width: 10vw; }
.l-moon img { width: 100%; filter: drop-shadow(0 0 10px rgba(255, 224, 160, .9)) drop-shadow(0 0 34px rgba(255, 190, 130, .55)); }
.l-cloud { pointer-events: none; }
.l-cloud img { width: 100%; }
.c-back { z-index: 1; left: -30vw; top: 30svh; width: 160vw; opacity: .8; }
.l-mountains { z-index: 3; left: 50%; top: calc(var(--tt) - 11svh); width: max(190vw, 104svh); translate: -50% 0; }
.l-mountains img { width: 100%; -webkit-mask-image: linear-gradient(transparent 4%, #000 30%, #000 82%, transparent); mask-image: linear-gradient(transparent 4%, #000 30%, #000 82%, transparent); }
.c-front { z-index: 4; left: -12vw; top: calc(var(--tt) + 4svh); width: 130vw; }
.c-front img { scale: -1 1; }
.l-names { z-index: 5; left: 0; right: 0; top: 13svh; text-align: center; }
.nw { display: block; }
.om { font: 17px/1.4 var(--deva); color: var(--gold-l); margin-bottom: 4px; text-shadow: 0 2px 14px rgba(20, 10, 40, .6); }
.nm { display: inline-block; font: 400 var(--nm, 24vw)/.92 var(--display); letter-spacing: -.01em; padding: 0 .04em;
  background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 26px rgba(25, 12, 45, .45)); }
.n-weds { display: inline-block; font: 400 calc(var(--nm, 24vw) * .5)/1 var(--script); color: var(--peach); margin: -.06em 0 -.08em; text-shadow: 0 4px 20px rgba(25, 12, 45, .5); }
.l-temple { z-index: 6; left: 50%; top: var(--tt); width: var(--tw); translate: -50% 0; }
.l-temple .in { position: relative; }
.t-img { width: 100%; }
.t-flag { position: absolute; left: 51.3%; top: 10.9%; width: 11.5%; transform-origin: 0 40%; animation: flutter 3.2s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { scale: 1 1; rotate: 0deg; } 35% { scale: .9 1.08; rotate: -4deg; } 70% { scale: 1.04 .95; rotate: 2deg; } }
/* the couple walks on the carpet (inside #blessing, above the carpet image) */
.t-couple { position: absolute; z-index: 2; left: calc(50% - 12vw); top: 6vw; width: 24vw; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(20, 10, 30, .45)); }
.l-arch { z-index: 8; top: 0; height: min(34svh, 44vw); aspect-ratio: .5717; background: url(img/arch.webp) no-repeat; background-size: auto 100%; }
.a-l { left: 0; background-position: left top; }
.a-r { right: 0; background-position: right top; }
#birds { z-index: 9; left: 0; top: 0; width: 100%; height: 100svh; pointer-events: none; }
.scroll-cue { z-index: 10; left: 50%; top: calc(100svh - 74px); translate: -50% 0; font: 600 10px/1 var(--serif); letter-spacing: .4em; text-transform: uppercase; color: #fbf3e6; display: grid; justify-items: center; gap: 10px; padding-left: .4em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(#fbf3e6, transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { scale: 1 0; transform-origin: top; } 50% { scale: 1 1; transform-origin: top; } 51% { transform-origin: bottom; } 100% { scale: 1 0; transform-origin: bottom; } }

/* ================= arch cards: cusped Mughal arch drawn in JS ================= */
.arch-card { position: relative; isolation: isolate; max-width: 520px; margin: 0 auto; padding: 84px 24px 60px; }
.arch-card > svg.frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; filter: drop-shadow(0 30px 60px rgba(8, 4, 20, .5)); }
.arch-card::after { content: ""; position: absolute; left: 10%; right: 10%; top: 4%; height: 40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 207, 165, .16), transparent); }
.frame .fill { fill: #2c2449; }
.frame .line { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.frame .line.in { stroke-width: .6; stroke-opacity: .7; }

/* ================= 2. BLESSINGS: carpet -> gold arch -> card =================
   path.webp is the carpet with the arch drawn onto it (one image, so they always line up).
   --ph is its rendered height; the arch opening starts at 68% of it and the card text sits inside. */
#blessing { position: relative; z-index: 2; margin-top: -30vw; --ph: calc(100vw * 1.7533); text-align: center; }
.path { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.card-bg { position: absolute; z-index: 0; left: 1%; right: 1%; top: calc(var(--ph) * .62); bottom: 9vw;
  background: radial-gradient(70% 34% at 50% 0, rgba(243, 190, 130, .2), transparent), radial-gradient(120% 60% at 50% 100%, rgba(10, 6, 24, .55), transparent),
  var(--dusk) url(img/damask.webp) center top / 340px auto; }
.card-sides { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--ph) - 1px); bottom: 9vw; background: url(img/card-side.webp) 0 0 / 100% auto repeat-y; pointer-events: none; }
#petals { position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: calc(var(--ph) * 1.1); pointer-events: none; }
.inv { position: relative; z-index: 2; margin-top: calc(var(--ph) * -.275); padding: 0 12vw 70px; }
#blessing .deva { font-size: 17px; }
.ganesha { width: 112px; margin: 12px auto 8px; }
.shloka { font-size: 18px !important; line-height: 1.85; color: var(--peach) !important; max-width: 320px; margin: 0 auto 28px; }
#blessings p { font-size: 20px; line-height: 1.45; margin-top: 8px; color: var(--ivory-2); }
#blessing .caps { margin-top: 4px; }
.divider { display: block; width: min(230px, 62vw); margin: 30px auto 28px; }
.title + .divider { margin: 22px auto 0; }
.invite-line { font-size: 21px; line-height: 1.5; color: var(--ivory); max-width: 400px; margin: 0 auto; }
.big-name { font: 400 clamp(56px, 17vw, 120px)/1 var(--display); background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 22px; }
.sub-line { font-size: 18px; color: var(--ivory-2); margin-top: 8px; }
.with { font: 400 46px/1 var(--script); color: var(--peach); margin-top: 20px; }
/* the card closes on a gold ledge with lotuses and diyas floating along it */
.card-base { position: relative; z-index: 2; height: 9vw; }
.card-base::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #7d5321, #f1d9a8 18%, #b98a45 50%, #f1d9a8 82%, #7d5321); box-shadow: 0 2px 14px rgba(241, 217, 168, .35); }
.card-base img { position: absolute; left: 50%; bottom: -6vw; width: 112%; max-width: none; translate: -50% 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 92%); mask-image: linear-gradient(#000 62%, transparent 92%); }

/* ================= 3. BRIDGE ================= */
/* the painting is centred and shown whole across its width, so both peacocks face each other symmetrically */
#bridge { height: calc(140vw * .563); margin-top: -8vw; -webkit-mask-image: var(--fade); mask-image: var(--fade); }
#bridge::after { content: ''; position: absolute; inset: 0; pointer-events: none; /* the painting's pale sky would read as a white band; sink it into the dusk */
  background: linear-gradient(var(--dusk) 8%, rgba(36, 29, 59, .7) 26%, rgba(36, 29, 59, .15) 50%, transparent 60%, transparent 80%, rgba(36, 29, 59, .6)); }
#bridge .pan { position: absolute; top: 0; left: 50%; width: 140vw; translate: -50% 0; }
#bridge img { width: 100%; max-width: none; aspect-ratio: 1672 / 941; }

/* ================= 4. EVENTS ================= */
.lotus { width: 86px; margin: 0 auto 12px; }
.ev-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 12px; max-width: 460px; margin: 46px auto 0; }
.ev { position: relative; overflow: hidden; padding: 58px 12px 78px; border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(60, 48, 100, .9), rgba(36, 28, 64, .94)), url(img/damask.webp) center / 260px auto;
  box-shadow: 0 30px 60px -24px rgba(8, 4, 20, .7); }
.ev::before { content: ""; position: absolute; inset: 7px; border-radius: 999px 999px 13px 13px; border: 1px solid rgba(217, 179, 122, .55); pointer-events: none; z-index: 2; }
.ev-num { display: block; font: italic 500 22px/1 var(--display); color: var(--gold); letter-spacing: .2em; }
.ev h3 { font: 400 clamp(26px, 7.6vw, 36px)/1.05 var(--display); margin: 6px 0 10px; background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* an odd last card sits centred under the pair above it */
.ev:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
.ev .divider { width: 82%; margin: 4px auto 10px; }
.ev-meta { font: 600 10px/1.8 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }
.ev-meta span { display: block; }
.ev-venue { font-size: 16px; line-height: 1.3; margin-top: 6px; }
.ev-dress { font-style: italic; color: var(--ivory-2); font-size: 15px; line-height: 1.3; margin-top: 4px; }
.ev-lotus { position: absolute; left: 50%; bottom: -4px; width: 190%; max-width: none; translate: -50% 0; pointer-events: none; }

/* ================= 5. MANDAP ================= */
#mandap { height: calc(100svh + 150px); }
.m-win { position: absolute; left: 0; right: 0; top: 0; height: 100svh; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 14%, #000 70%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 14%, #000 70%, transparent 100%); }
/* GSAP owns this element's transform, so no CSS translate here: cover-fit instead of centring by hand */
.m-win video { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.m-text { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; padding: 0 20px; }
.m-when { margin-top: 10px; font-size: 19px; color: var(--ivory-2); }

/* ================= 6. COUPLE ================= */
.story-card { margin-top: 44px; padding-top: 110px; }
.story { font: italic 400 22px/1.65 var(--serif); color: var(--ivory); }
.people { display: grid; gap: 60px; max-width: 900px; margin: 70px auto 0; }
.portrait { width: 200px; aspect-ratio: 3 / 4; margin: 0 auto 26px; border-radius: 999px 999px 8px 8px; overflow: hidden; outline: 1px solid var(--gold); outline-offset: 7px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font: 400 46px/1.1 var(--display); margin: 6px 0 12px; background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person .about { font-size: 20px; color: var(--ivory-2); max-width: 340px; margin: 0 auto; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.tags span { font: 600 11px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; border: 1px solid rgba(217, 179, 122, .45); border-radius: 999px; color: var(--gold-l); }

/* ================= 7. GALLERY ================= */
#gallery { padding-left: 0; padding-right: 0; padding-top: 20px; }
.strip { overflow: hidden; padding: 10px 0; }
.strip-track { display: flex; gap: 14px; width: max-content; }
.strip-track figure { width: clamp(160px, 44vw, 270px); aspect-ratio: 3 / 4; overflow: hidden; flex: none; border-radius: 6px; }
.strip-track figure:nth-child(odd) { border-radius: 999px 999px 6px 6px; }
.strip-track img { width: 100%; height: 100%; object-fit: cover; }
.big-photo { max-width: 1000px; margin: 70px auto 0; width: calc(100% - 36px); padding: 9px; border: 1px solid rgba(217, 179, 122, .7); }
.big-photo > div { overflow: hidden; }
#big-photo { width: 100%; aspect-ratio: 1400 / 788; object-fit: cover; scale: 1.1; }

/* ================= 8. VENUE ================= */
.v-art { margin: 40px -18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); }
.v-art img { width: 100%; aspect-ratio: 1672 / 941; }
.v-name { font: 400 46px/1.1 var(--display); margin-top: 6px; background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-addr { color: var(--ivory-2); font-size: 20px; margin-top: 6px; }
.v-map { max-width: 760px; margin: 34px auto 0; padding: 8px; border: 1px solid rgba(217, 179, 122, .6); }
.v-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3.6; border: 0; filter: saturate(.6) sepia(.25) brightness(.95); }

/* ================= 9. RSVP ================= */
#rsvp { overflow: hidden; padding-top: 170px; }
/* the garlands hang from a carved gold beam, so they never start in mid-air */
#rsvp::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #7d5321, #f1d9a8 18%, #b98a45 50%, #f1d9a8 82%, #7d5321); box-shadow: 0 3px 16px rgba(241, 217, 168, .35), 0 10px 30px rgba(8, 4, 20, .6); }
.garland { position: absolute; top: 2px; height: min(300px, 60vw); transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; pointer-events: none; }
.gl-l { left: -6px; }
.gl-r { right: -6px; scale: -1 1; animation-delay: -3s; }
@keyframes sway { 50% { rotate: 1.6deg; } }
.card { position: relative; max-width: 520px; margin: 0 auto; padding: 54px 24px 44px; text-align: left; background: linear-gradient(180deg, rgba(52, 43, 88, .92), rgba(40, 32, 70, .92));
  box-shadow: 0 40px 80px -30px rgba(8, 4, 20, .7); outline: 1px solid rgba(217, 179, 122, .6); outline-offset: -9px; border-radius: 200px 200px 16px 16px; }
.card .caps, .card .title { text-align: center; }
.card .title { font-size: clamp(40px, 11vw, 56px); margin-bottom: 26px; }
.fl { position: relative; display: block; margin-top: 24px; }
.fl input, .fl textarea { width: 100%; padding: 22px 0 8px; font: 400 21px/1.4 var(--serif); color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid rgba(217, 179, 122, .55); border-radius: 0; resize: vertical; }
.fl input:focus, .fl textarea:focus { outline: none; border-bottom-color: var(--gold-l); }
.fl span { position: absolute; left: 0; top: 22px; font-size: 19px; color: var(--ivory-2); pointer-events: none; transition: .35s var(--ease); transform-origin: 0 0; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span, .fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { translate: 0 -22px; scale: .68; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.choice { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.choice label, .chips label { position: relative; }
.choice input, .chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 54px; padding: 6px 10px; text-align: center; font-size: 18px; line-height: 1.2; border: 1px solid rgba(217, 179, 122, .5); border-radius: 999px; transition: .35s var(--ease); }
.choice input:checked + span { background: linear-gradient(180deg, #f1d9a8, #d0a467); color: #2a2036; border-color: transparent; }
.choice input:focus-visible + span, .chips input:focus-visible + span { outline: 1.5px solid var(--gold-l); outline-offset: 3px; }
#rsvp-form:has([value=no]:checked) .yes-only { display: none; }
.stepper { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 19px; }
.stepper > span { flex: 1; color: var(--ivory-2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217, 179, 122, .6); font-size: 22px; line-height: 1; color: var(--gold-l); }
.stepper output { min-width: 34px; text-align: center; font: 400 32px/1 var(--display); color: var(--gold-l); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips legend { width: 100%; margin-bottom: 10px; font: 600 11px/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.chips span { display: inline-block; padding: 10px 16px; font-size: 17px; border: 1px solid rgba(217, 179, 122, .4); border-radius: 999px; transition: .3s var(--ease); }
.chips input:checked + span { background: rgba(217, 179, 122, .16); border-color: var(--gold); color: var(--gold-l); }
#rsvp-form .btn.solid { margin-top: 34px; }
#rsvp-form button:disabled { opacity: .6; cursor: default; }
#rsvp-done { margin-top: 22px; text-align: center; font: italic 22px/1.5 var(--serif); color: var(--peach); }
#rsvp-done.err { color: #ffb4a8; font-size: 18px; font-style: normal; }

/* ================= 10. COUNTDOWN ================= */
#countdown { height: 112svh; min-height: 720px; -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.c-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
#countdown::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(rgba(36, 29, 59, 0), rgba(36, 29, 59, .85) 55%); }
.c-top { position: absolute; left: 0; right: 0; top: 13%; z-index: 1; text-align: center; }
.c-bottom { position: absolute; left: 0; right: 0; bottom: 13%; z-index: 1; text-align: center; padding: 0 10px; }
.clock { display: flex; justify-content: center; max-width: 820px; margin: 0 auto; }
.unit { flex: 1; padding: 0 4px; }
.unit + .unit { border-left: 1px solid rgba(217, 179, 122, .35); }
.num { font: 400 clamp(48px, 14vw, 120px)/1 var(--display); color: var(--gold-l); font-variant-numeric: lining-nums tabular-nums; }
.num .d { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.roll { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.7, 0, .3, 1); }
.roll span { height: 1em; }
.unit .lbl { display: block; margin-top: 14px; font: 600 10px/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); padding-left: .3em; }

/* ================= 11. FINALE ================= */
#finale { height: 125svh; min-height: 760px; -webkit-mask-image: linear-gradient(transparent 0, #000 18%); mask-image: linear-gradient(transparent 0, #000 18%); }
.f-lake { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
#finale::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; /* lets the names read over the bright peak */
  background: linear-gradient(rgba(36, 29, 59, .85) 10%, rgba(36, 29, 59, .5) 38%, transparent 58%); }
.f-text { position: absolute; left: 0; right: 0; top: 15svh; z-index: 2; text-align: center; padding: 0 20px; text-shadow: 0 2px 30px rgba(15, 14, 40, .7); }
.f-names { font: 400 clamp(56px, 16vw, 130px)/1 var(--display); margin: 14px 0 16px; color: #fbf0de; }
.f-names span { background: var(--names); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-names em { display: block; font-size: .85em; margin: .05em 0; }
.f-line { font-size: 20px; color: var(--ivory); }
.f-lotus { position: absolute; left: 50%; bottom: -1%; width: max(100%, 760px); translate: -50% 0; z-index: 3; }

/* ================= MUSIC ================= */
#music-btn { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251, 243, 230, .94); color: #241d3b; box-shadow: 0 10px 30px rgba(8, 4, 20, .4); }
#music-btn span { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
#music-btn i { width: 2px; height: 100%; background: #241d3b; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
#music-btn i:nth-child(2) { animation-delay: -.35s; } #music-btn i:nth-child(3) { animation-delay: -.7s; }
#music-btn.paused i { animation: none; scale: 1 .25; }
@keyframes eq { 50% { scale: 1 .3; } }

/* ================= larger screens (the laptop pass comes next) ================= */
@media (min-width: 900px) {
  .ev-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1100px; }
  .people { grid-template-columns: 1fr 1fr; }
  #big-photo { aspect-ratio: 16 / 10; }
  .garland { height: 520px; }
  .v-art { margin: 40px auto 0; max-width: 1200px; }
}

/* ================= reduced motion: a calm, static page ================= */
.reduce #birds, .reduce #petals, .reduce .scroll-cue { display: none; }
.reduce .t-flag { animation: none; }
.reduce .strip-track, .reduce .garland, .reduce #enter::after { animation: none; }

/* Engine extras: preview watermark (added by the server on unpaid previews) */
.preview-mark { position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180'%3E%3Ctext x='20' y='110' transform='rotate(-28 130 90)' font-family='Georgia' font-size='30' letter-spacing='6' fill='rgba(255,255,255,0.22)' stroke='rgba(36,29,59,0.35)' stroke-width='1'%3EPREVIEW%3C/text%3E%3C/svg%3E"); }
.preview-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 61; padding: 9px 14px; text-align: center; font: 600 12px/1.4 var(--serif); letter-spacing: .12em; color: #241d3b; background: linear-gradient(180deg, #f6e6c2, #e6cc92); }

/* laptop: the phone-sized invite sits on a blurred twilight */
body.framed { height: 100vh; margin: 0; overflow: hidden; display: grid; place-items: center; background: #15112a; }
body.framed::before { content: ''; position: fixed; inset: -60px; background: url(img/sky.webp) center / cover; filter: blur(34px) brightness(.42) saturate(1.2); }
.phone-frame { position: relative; height: min(calc(100vh - 40px), 900px); aspect-ratio: 9 / 19; border: 0; border-radius: 30px; background: var(--dusk);
  box-shadow: 0 0 0 1px rgba(217, 179, 122, .45), 0 0 0 9px rgba(20, 15, 38, .85), 0 0 0 10px rgba(217, 179, 122, .25), 0 40px 90px rgba(0, 0, 0, .6); }
.in-frame { scrollbar-width: none; }
.in-frame::-webkit-scrollbar { display: none; }
