/* =========================================================
   Terracotta Sun — a DreamyVibes wedding invitation
   sunlit cream · terracotta clay · marigold
   ========================================================= */

:root {
  --cream: #FBF4EA;
  --sand: #F4E6D6;
  --sand-2: #EBD7BF;
  --line: #E2CBB0;
  --clay: #C0643C;
  --rust: #A44E2C;
  --deep: #7A3518;
  --ink: #3B1D10;
  --muted: #7A5A48;
  --marigold: #E8A33D;
  --sage: #7D8C5C;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  /* the parchment of the lotus-border artwork, and the width its border takes on each side */
  --paper: #F9EBD7;
  --edge: clamp(24px, 4.6vw, 56px);
  --lotus: url(../images/border-lotus.webp);
  --gutter: calc(var(--edge) + clamp(7px, 1.4vw, 20px));
}

*, *::before, *::after { box-sizing: border-box; }
/* no grey/black flash when something is tapped on a phone: taps get a soft press instead (see js) */
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, label, [role="button"], [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, [role="button"], .choice__card, .chip span { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* arriving from the DreamyVibes homepage: a soft fade up from the page colour */
@keyframes dv-page-in { from { opacity: 0; } }
body { animation: dv-page-in .9s cubic-bezier(.4, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { body { animation-duration: .01s; } }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--clay); color: var(--cream); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.deva { font-family: var(--deva); }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--clay); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--clay); }
.h2 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.05; letter-spacing: -.012em; color: var(--ink); }
.h2 em { color: var(--clay); }
.head { display: grid; justify-items: center; gap: 18px; text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--clay); --fg: var(--cream); --bg-h: var(--deep); --fg-h: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s;
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--bg-h); transform: scale(0); transition: transform .6s var(--ease); }
.btn--sm { min-height: 42px; padding: 0 22px; }
.btn--sun { --bg: var(--clay); }
.btn--deep { --bg: var(--deep); --bg-h: var(--clay); }
.btn--line { --bg: transparent; --fg: var(--deep); --bg-h: var(--deep); --fg-h: var(--cream); border-color: rgba(122, 53, 24, .4); }

/* ---------- click petals ---------- */
.petals { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
.petal { position: absolute; left: 0; top: 0; width: 10px; height: 14px; border-radius: 80% 0 80% 0; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 22px var(--gutter) 16px; color: var(--cream);
  transition: background-color .5s, color .5s, padding .5s var(--ease), box-shadow .5s;
}
.nav.is-dark { color: var(--ink); }
.nav.is-stuck { background: rgba(251, 244, 234, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav__mono { justify-self: start; display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 22px; letter-spacing: .08em; padding: 6px 0; }
.nav__mono svg { width: 20px; height: 20px; stroke: var(--marigold); transition: transform 1s var(--ease); }
.nav__mono:hover svg { transform: rotate(90deg); }
.nav__links { display: flex; gap: 32px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 10px 0; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--marigold); transform: scale(0); transition: transform .45s var(--spring); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scale(1); }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav__sound { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .9; transition: background-color .3s, transform .25s var(--ease); }
.nav__sound:active { transform: scale(.93); }
.nav__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.nav__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.nav__sound[aria-pressed="true"] .nav__bars i { animation: eq .9s ease-in-out infinite alternate; }
.nav__sound[aria-pressed="true"] .nav__bars i:nth-child(2) { animation-delay: -.3s; }
.nav__sound[aria-pressed="true"] .nav__bars i:nth-child(3) { animation-delay: -.6s; }
.nav__sound[aria-pressed="true"] .nav__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0% { height: 3px; } 100% { height: 12px; } }

/* ---------- lotus border: the opening screen has its own; after that it returns from the Moments section to the end ---------- */
.bordered { position: relative; }
.bordered::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--lotus) left bottom / var(--edge) auto repeat-y, var(--lotus) right bottom / var(--edge) auto repeat-y;
}

/* ---------- opening film ---------- */
.film { position: relative; height: 330vh; background: var(--paper); }
.film__stage {
  --al: 0px; --ar: 100vw; --at: 0px; --ab: 100vh; --p: 0;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  /* plain warm parchment: the opening carries only its marigold garlands at the sides */
  background: radial-gradient(70% 60% at 50% 45%, #FFF7EA 0%, var(--paper) 60%, #F4E3CB 100%);
}
.film__rays { position: absolute; left: 0; top: 0; width: 10px; height: 10px; overflow: visible; pointer-events: none; opacity: 0; -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); }
.film__rays line { stroke: var(--clay); stroke-opacity: .55; stroke-linecap: round; }
.film__rays circle { fill: none; stroke: var(--marigold); }

.film__media { position: absolute; inset: 0; z-index: 1; will-change: clip-path; }
.film__canvas { display: block; width: 100%; height: 100%; background: #6E5A22; }
.film__tint { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(59, 29, 16, .2), rgba(59, 29, 16, .58)), linear-gradient(180deg, rgba(59, 29, 16, .35), transparent 30%, transparent 65%, rgba(59, 29, 16, .5)); pointer-events: none; }

.film__frame { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; border: 10px solid var(--clay); border-bottom-width: 14px; opacity: 0; pointer-events: none; box-shadow: 0 40px 70px -40px rgba(122, 53, 24, .55); }
.film__frame span { position: absolute; inset: 6px; border: 1px solid rgba(251, 244, 234, .85); border-radius: inherit; border-bottom: 0; }

.film__intro {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px;
  text-align: center; color: var(--cream); padding: 0 var(--gutter); pointer-events: none;
  text-shadow: 0 2px 30px rgba(59, 29, 16, .45);
}
.film__to { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 22px); }
.film__names { font-size: clamp(3.4rem, 11vw, 9.6rem); line-height: .95; letter-spacing: -.01em; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em; }
.film__names em { font-size: .55em; color: #F6D27A; }
.film__names .w { display: inline-block; }
.film__names .ch { display: inline-block; }
.js .film__names .ch, .js .film__names em { opacity: 0; transform: translateY(.4em); filter: blur(12px); }
.is-in .film__names .ch, .is-in .film__names em { opacity: 1; transform: none; filter: none; transition: opacity 1s ease, transform 1.3s var(--ease), filter 1.1s ease; transition-delay: calc(.25s + var(--i, 0) * .05s); }
.film__line { font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; }
.js .film__to, .js .film__line { opacity: 0; transform: translateY(14px); }
.is-in .film__to, .is-in .film__line { opacity: 1; transform: none; transition: opacity 1.2s ease .2s, transform 1.3s var(--ease) .2s; }
.is-in .film__line { transition-delay: .9s; }

.film__final { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: var(--deep); text-shadow: 0 0 18px var(--cream), 0 0 6px var(--cream); }
.film__final > * { position: absolute; opacity: 0; }
.film__blessing { left: 0; right: 0; bottom: calc(100% - var(--at) + 26px); text-align: center; font-size: clamp(16px, 1.6vw, 20px); color: var(--clay); }
.film__name { top: calc((var(--at) + var(--ab)) / 2); font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: 1; letter-spacing: .02em; translate: 0 -50%; }
.film__name--l { right: calc(100% - var(--al) + 4.5vw); text-align: right; }
.film__name--r { left: calc(var(--ar) + 4.5vw); }
.film__amp {
  left: 50%; top: var(--ab); width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); border: 1px solid var(--clay);
  font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--clay);
}
.film__date { left: var(--gutter); right: var(--gutter); top: calc(var(--ab) + 50px); display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.film__date i { width: 5px; height: 5px; border-radius: 50%; background: var(--marigold); }
/* the couple's banner across the top once the film has settled; it carries the names, so the separate ones step aside */
.film__banner {
  left: 50%; top: var(--bt, 0px); width: var(--bw, 0px); max-width: none; height: auto; translate: -50% 0;
}
.has-banner .film__blessing, .has-banner .film__name { display: none; }

/* traditional side decoration: marigold ladis and a half mandala on each edge */
.film__deco { position: absolute; top: 0; bottom: 0; z-index: 3; width: clamp(60px, 8vw, 120px); pointer-events: none; opacity: 0; }
@media (max-width: 760px) { .film__deco { width: min(13vw, 50px); } }
.film__deco--l { left: max(4px, 1.2vw); }
.film__deco--r { right: max(4px, 1.2vw); transform: scaleX(-1); }
.film__deco svg { position: absolute; overflow: visible; }
/* each strand is its own layer, so the sway never repaints anything */
.deco__strand { top: 0; transform-origin: 50% 0; animation: sway 5.5s ease-in-out infinite alternate; will-change: transform; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

/* the celebration burst when the film settles */
.film__boom { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.film__boom i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid var(--marigold); opacity: 0; }
.film__boom i:nth-child(2) { border-color: var(--clay); border-width: 1px; }
/* tap-to-open: just the words, breathing softly over a fine line of light */
.film__cue {
  position: absolute; z-index: 5; left: 50%; bottom: calc(clamp(22px, 4.5vh, 44px) + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  padding: 16px 26px; color: var(--cream); cursor: pointer; text-shadow: 0 1px 18px rgba(59, 29, 16, .6);
}
.film__cue span { transition: letter-spacing .6s var(--ease), text-indent .6s var(--ease); display: grid; justify-items: center; gap: 13px; font-size: 11px; font-weight: 600; letter-spacing: .44em; text-indent: .44em; text-transform: uppercase; white-space: nowrap; }
.film__cue span::after { content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, #F6D27A 30%, var(--cream) 50%, #F6D27A 70%, transparent); animation: cue-line 3.4s ease-in-out infinite; }
.js .film__cue span { opacity: 0; }
.is-in .film__cue span { animation: cue-in 1.6s var(--ease) 1.7s both, cue-breathe 3.4s ease-in-out 3.3s infinite; }
@keyframes cue-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cue-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes cue-line { 0%, 100% { transform: scaleX(.3); opacity: .45; } 50% { transform: scaleX(1); opacity: 1; } }
.is-locked .film__stage { cursor: pointer; }
/* no scrolling of any kind until the opening has played: the script holds the page still, and the stage takes no touch gestures */
.is-locked .film__stage { touch-action: none; }
.film__rays { transform-origin: 50% 50%; will-change: transform, opacity; }
.film__intro, .film__deco, .film__final > * { will-change: transform, opacity; }
/* the arch, its border and the tint are painted inside the canvas */
.film__frame, .film__tint { display: none; }
.film__media { clip-path: none !important; }
.film__canvas { background: transparent !important; }
.is-playing .film__play { pointer-events: none; }

/* ---------- invitation: a Rajasthani palace doorway ---------- */
/*
  Everything is measured against the palace's own width (cqi), so the doorway
  keeps its proportions from a phone to a laptop:
  pillars 9cqi each, opening 82cqi, the arch above the opening 59cqi tall.
*/
.invite {
  --ivory: #FBF4E8; --gold: #B8893A; --gold-l: #D9B26F; --gold-ink: #9E7330; --stone: #EBD5AF; --stone-d: #DDC296;
  position: relative; overflow: clip; isolation: isolate;
  padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 100px);
  background:
    radial-gradient(64% 46% at 50% 36%, #FFFAF1 0%, rgba(255, 250, 241, 0) 72%),
    linear-gradient(180deg, var(--paper) 0%, #F8EBD8 58%, #F0DEC2 100%);
}
.invite .wrap { position: relative; z-index: 2; padding: 0 max(14px, 4vw); }

/* Udaipur on the lake, far off on either side; a flowering branch in each top corner */
.invite__sky { position: absolute; bottom: 0; z-index: 0; width: min(50vw, 660px); aspect-ratio: 640 / 300; pointer-events: none; will-change: translate; }
.invite__sky--l { left: -2vw; }
.invite__sky--r { right: -2vw; scale: -1 1; }
.invite__sky svg, .invite__branch svg { display: block; width: 100%; height: 100%; overflow: visible; }
.invite__branch { position: absolute; top: 0; z-index: 1; width: min(30vw, 330px); aspect-ratio: 340 / 240; pointer-events: none; will-change: translate; }
.invite__branch--l { left: 0; }
.invite__branch--r { right: 0; scale: -1 1; }
.invite__branch svg { transform-origin: 0 0; animation: branch-sway 9s ease-in-out infinite alternate; }
.invite__branch--r svg { animation-delay: -4s; }
@keyframes branch-sway { from { rotate: -1.4deg; } to { rotate: 1.6deg; } }

/* petals drifting down across the doorway */
.invite__petals { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.invite__petals i {
  position: absolute; top: 0; left: var(--x); width: var(--s); height: calc(var(--s) * 1.35); border-radius: 80% 0 80% 0;
  background: var(--c); opacity: 0; will-change: transform, opacity;
  animation: petal-drift var(--d) linear var(--delay) infinite; animation-play-state: paused;
}
.invite.is-live .invite__petals i { animation-play-state: running; }
@keyframes petal-drift {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .78; }
  35% { transform: translate3d(calc(var(--dx) * .7), calc(var(--fall, 900px) * .35), 0) rotate(calc(var(--r) * .35)); }
  65% { transform: translate3d(calc(var(--dx) * -.4), calc(var(--fall, 900px) * .65), 0) rotate(calc(var(--r) * .65)); }
  90% { opacity: .75; }
  100% { transform: translate3d(var(--dx), var(--fall, 900px), 0) rotate(var(--r)); opacity: 0; }
}

/* the doorway */
.palace { container: palace / inline-size; position: relative; max-width: 740px; margin: 0 auto; }
.palace__crown { position: relative; z-index: 3; display: block; width: 106cqi; height: auto; margin: 0 -3cqi -.4cqi; overflow: visible; }
.palace__door { position: relative; z-index: 2; display: grid; grid-template-columns: 9cqi minmax(0, 1fr) 9cqi; box-shadow: 0 4cqi 6cqi -3cqi rgba(122, 53, 24, .28); }
.palace__pillar {
  position: relative; z-index: 2;
  background:
    linear-gradient(90deg, rgba(122, 53, 24, .2), rgba(122, 53, 24, 0) 26%, rgba(255, 250, 240, .35) 50%, rgba(122, 53, 24, 0) 74%, rgba(122, 53, 24, .2)),
    repeating-linear-gradient(90deg, transparent 0 17%, rgba(184, 137, 58, .55) 17% 19.5%, transparent 19.5% 33%),
    linear-gradient(180deg, #F2E1C2, var(--stone));
  box-shadow: inset 0 0 0 .25cqi var(--gold);
}
/* the block at lintel height, and a carved band at the shaft's middle */
.palace__pillar::before, .palace__pillar::after { content: ""; position: absolute; left: -.8cqi; right: -.8cqi; background: linear-gradient(180deg, var(--stone), var(--stone-d)); box-shadow: inset 0 0 0 .25cqi var(--gold); }
.palace__pillar::before { top: 0; height: 5.3cqi; }
.palace__pillar::after {
  top: calc(59cqi + (100% - 59cqi - 14cqi) * .5); height: 3.4cqi;
  background: radial-gradient(circle, var(--gold-l) 0 .45cqi, transparent .55cqi) center / 2.4cqi 100% repeat-x, linear-gradient(180deg, #C9714A, var(--clay));
}
.palace__cap { position: absolute; z-index: 2; left: 50%; top: calc(59cqi - 11.9cqi); width: 13cqi; height: auto; translate: -50% 0; overflow: visible; }
.palace__base { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 15cqi; height: auto; translate: -50% 0; overflow: visible; }
.palace__opening {
  position: relative; z-index: 1;
  background:
    radial-gradient(70% 36% at 50% 26%, rgba(255, 252, 245, .95), rgba(255, 252, 245, 0) 70%),
    linear-gradient(180deg, #FCF6EB 0%, var(--ivory) 45%, #F5E8D2 100%);
  box-shadow: inset .5cqi 0 0 #B5582F, inset -.5cqi 0 0 #B5582F, inset .9cqi 0 0 rgba(217, 178, 111, .7), inset -.9cqi 0 0 rgba(217, 178, 111, .7), inset 0 -.6cqi 0 var(--gold);
}
.palace__arch { position: absolute; z-index: 1; top: 0; left: 0; display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.palace__steps { position: relative; z-index: 1; display: grid; justify-items: center; }
.palace__steps i { display: block; height: 1.9cqi; background: linear-gradient(180deg, #F3E3C6, var(--stone-d)); box-shadow: inset 0 .25cqi 0 var(--gold-l), 0 .5cqi .8cqi -.4cqi rgba(122, 53, 24, .3); }
.palace__steps i:nth-child(1) { width: 104cqi; }
.palace__steps i:nth-child(2) { width: 109cqi; }
.palace__steps i:nth-child(3) { width: 114cqi; }
.palace__kalash { position: absolute; z-index: 3; bottom: 5.4cqi; width: 11cqi; height: auto; overflow: visible; }
.palace__kalash--l { left: -13cqi; }
.palace__kalash--r { right: -13cqi; scale: -1 1; }

/* the words, set like a printed invitation */
.invite__card { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: 31cqi 7cqi 10cqi; color: var(--ink); }
.invite .kicker { font-size: max(10px, 1.75cqi); letter-spacing: .36em; text-indent: .36em; color: var(--clay); margin-bottom: 4.6cqi; }
.invite__parents { font-family: var(--serif); font-size: clamp(17px, 3.8cqi, 26px); line-height: 1.32; color: var(--ink); text-wrap: balance; }
.invite__and { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 3cqi, 21px); color: var(--gold-ink); margin: 1.4cqi 0; }
.invite__line { margin-top: 3.4cqi; max-width: 44ch; font-size: clamp(13px, 2.5cqi, 16px); line-height: 1.6; letter-spacing: .02em; color: var(--muted); text-wrap: balance; }
.invite__names { display: grid; justify-items: center; margin: 3.4cqi 0 2.2cqi; font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 15.5cqi, 7.6rem); line-height: .9; letter-spacing: -.012em; color: var(--deep); text-wrap: nowrap; }
.invite__names em { display: flex; align-items: center; gap: .32em; margin: .06em 0 .1em; font-size: .4em; line-height: 1; color: var(--clay); }
.invite__names em::before, .invite__names em::after { content: ""; width: 1.7em; height: 1px; background: linear-gradient(90deg, rgba(184, 137, 58, 0), var(--gold)); }
.invite__names em::after { transform: scaleX(-1); }
.invite__rule { display: block; width: clamp(150px, 30cqi, 230px); height: auto; margin: 1cqi 0 3cqi; }
.invite__date { font-size: clamp(10.5px, 1.95cqi, 13.5px); font-weight: 600; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--clay); line-height: 1.8; }
.invite__place { margin-top: .8cqi; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 3.5cqi, 24px); color: var(--deep); }

/* small screens: the brass kalash pots stand just inside the doorway */
@container palace (max-width: 540px) {
  .palace__kalash { width: 12cqi; }
  .palace__kalash--l { left: 9.6cqi; }
  .palace__kalash--r { right: 9.6cqi; }
  .invite__card { padding-bottom: 17cqi; padding-inline: 5cqi; }
}
@media (max-width: 640px) {
  .invite__sky { width: 74vw; opacity: .8; }
  .invite__branch { width: 42vw; }
  .invite__petals i { --s: 8px; }
  .invite__petals i:nth-child(n + 9) { display: none; }
}

/* the entrance: the stone rises into place, the toran falls in, then the words appear line by line */
.js .palace__crown, .js .palace__pillar, .js .palace__arch, .js .palace__steps, .js .palace__kalash, .js .palace .toran, .js .invite__card > * { opacity: 0; }
.js .palace__crown { transform: translateY(-3cqi); }
.js .palace__pillar { transform: scaleY(.94); transform-origin: 50% 100%; }
.js .palace__steps, .js .palace__kalash { transform: translateY(2cqi); }
.js .palace .toran { transform: translateY(-14px); }
.js .invite__card > * { transform: translateY(14px); }
.js .palace.in .palace__crown, .js .palace.in .palace__pillar, .js .palace.in .palace__arch, .js .palace.in .palace__steps, .js .palace.in .palace__kalash, .js .palace.in .toran, .js .palace.in .invite__card > * {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.1s ease var(--dl, 0s), transform 1.5s var(--ease) var(--dl, 0s), filter 1.3s ease var(--dl, 0s);
}
.palace__pillar, .palace__steps { --dl: .05s; }
.palace__crown { --dl: .2s; }
.palace__arch { --dl: .3s; }
.palace__kalash { --dl: .55s; }
.palace .toran { --dl: .85s; }
.invite__card > :nth-child(1) { --dl: .7s; }
.invite__card > :nth-child(2) { --dl: .8s; }
.invite__card > :nth-child(3) { --dl: .88s; }
.invite__card > :nth-child(4) { --dl: .96s; }
.invite__card > :nth-child(5) { --dl: 1.06s; }
.invite__card > :nth-child(6) { --dl: 1.2s; }
.invite__card > :nth-child(7) { --dl: 1.4s; }
.invite__card > :nth-child(8) { --dl: 1.5s; }
.invite__card > :nth-child(9) { --dl: 1.58s; }

/* ---------- countdown ---------- */
.count { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 140px); }
.count__in { display: grid; justify-items: center; gap: 34px; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); width: 100%; max-width: 720px; }
.cd__unit { display: grid; justify-items: center; align-content: end; gap: 8px; aspect-ratio: 3 / 4; padding: 0 4px 18px; border: 1px solid var(--clay); border-radius: 999px 999px 6px 6px; background: linear-gradient(180deg, rgba(232, 163, 61, .14), transparent 70%); }
.cd__num { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--deep); }
.cd__label { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }

/* ---------- story deck ---------- */
.story { padding: clamp(90px, 10vw, 140px) 0; background: var(--sand); overflow: hidden; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.story__copy { display: grid; gap: 22px; }
.story__text { display: grid; gap: 14px; align-content: start; margin-top: 10px; overflow: clip; overflow-clip-margin: 24px; }
.story__when { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--clay); }
.story__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; color: var(--deep); }
.story__body { color: var(--muted); max-width: 440px; }
.story__ctrl { display: flex; align-items: center; gap: 18px; margin-top: -4px; }
.story__count { font-family: var(--serif); font-size: 18px; letter-spacing: .1em; color: var(--deep); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.round { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(122, 53, 24, .35); color: var(--deep); transition: background-color .3s, color .3s, transform .3s var(--spring); }
.round svg { width: 20px; height: 20px; stroke: currentColor; }
#story-prev svg { transform: scaleX(-1); }

.deck { position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5.2; justify-self: center; margin-bottom: 30px; }
.deck__card {
  --x: 0px; --y: 0px; --r: 0deg; --s: 1;
  position: absolute; inset: 0; padding: 12px 12px 0; cursor: pointer;
  background: var(--clay); border-radius: 999px 999px 6px 6px;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform .8s var(--spring), box-shadow .6s, filter .6s;
  box-shadow: 0 30px 50px -30px rgba(122, 53, 24, .6);
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; pointer-events: none; }
.deck__card[data-pos="0"] { --r: -2deg; z-index: 3; }
.deck__card[data-pos="1"] { --x: 26px; --y: 14px; --r: 5deg; --s: .95; z-index: 2; filter: brightness(.93); }
.deck__card[data-pos="2"] { --x: 50px; --y: 28px; --r: 11deg; --s: .9; z-index: 1; filter: brightness(.86); }
.deck__card.is-out { --x: 112%; --y: -6%; --r: 20deg; --s: .96; z-index: 6; transition: transform .48s cubic-bezier(.3, .7, .4, 1); }
.deck__card.is-out-l { --x: -112%; --y: -6%; --r: -20deg; --s: .96; transition: transform .48s cubic-bezier(.3, .7, .4, 1); }
.deck__card.is-under { z-index: 0 !important; }
.deck__card.is-top { z-index: 6 !important; }
.deck__hint { position: absolute; left: 50%; bottom: -44px; translate: -50% 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); white-space: nowrap; }

/* ---------- celebrations by day ---------- */
.days { padding: clamp(90px, 11vw, 150px) 0; }
.tabs { position: relative; display: flex; justify-content: center; gap: 6px; margin: 0 auto clamp(40px, 5vw, 60px); padding: 6px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--sand); }
.tabs__sun { position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; border-radius: 999px; background: var(--clay); box-shadow: 0 10px 22px -10px rgba(192, 100, 60, .8); transition: transform .7s var(--spring), width .7s var(--spring); display: grid; place-items: center start; padding-left: 14px; }
.tabs__sun svg { width: 18px; height: 18px; stroke: var(--marigold); transition: transform .9s var(--ease); }
.tab { position: relative; z-index: 1; display: grid; justify-items: start; gap: 0; padding: 10px 22px 10px 42px; border-radius: 999px; text-align: left; color: var(--muted); transition: color .45s; min-height: 52px; }
.tab b { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; color: inherit; }
.tab small { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tab[aria-selected="true"] { color: var(--cream); }

.day-panel { display: grid; gap: 22px; }
.day-panel.is-enter .ev { animation: evin .8s var(--ease) both; animation-delay: calc(var(--n) * .09s); }
@keyframes evin { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.ev { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: stretch; background: #FFFBF5; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.ev__media { position: relative; min-height: 260px; overflow: hidden; }
.ev__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transition: transform 1.2s var(--ease); }
.ev__time { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(251, 244, 234, .92); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--deep); }
.ev__body { display: grid; align-content: center; gap: 12px; padding: clamp(24px, 4vw, 40px); }
.ev__body h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; color: var(--deep); font-style: italic; }
.ev__tag { color: var(--muted); }
.ev__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }
.ev__meta div { display: grid; gap: 2px; }
.ev__meta dt { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }
.ev__meta dd { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ev__sw { display: inline-flex; gap: 4px; }
.ev__sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(59, 29, 16, .2); }
.ev__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.ev__links a, .ev__links button { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); padding: 6px 0; border-bottom: 1px solid currentColor; }

/* ---------- gallery ---------- */
.gallery { padding: clamp(90px, 11vw, 150px) 0; background: var(--sand); }
/* the reel: arch-framed photos fanned out, the one in the middle upright and full size */
.gallery .head { margin-bottom: clamp(18px, 3vw, 34px); }
.reel { --cw: min(68vw, 360px); position: relative; }
.reel__track {
  position: relative; display: flex; gap: clamp(14px, 3vw, 30px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 34px calc(50% - var(--cw) / 2) 44px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 2px; }
.reel__dots { display: flex; gap: 8px; }
.reel__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(192, 100, 60, .3); transition: background-color .4s, transform .5s var(--spring); }
.reel__dots i.is-on { background: var(--clay); transform: scale(1.45); }
.reel__btn:disabled { opacity: .3; pointer-events: none; }
.reel__prev svg { transform: scaleX(-1); }
@media (hover: none) { .reel__btn { width: 44px; height: 44px; } }
.shot {
  position: relative; flex: 0 0 var(--cw); aspect-ratio: 4 / 5.3; padding: 9px 9px 0; scroll-snap-align: center;
  border-radius: 999px 999px 10px 10px; background: var(--clay); cursor: zoom-in;
  box-shadow: 0 30px 46px -30px rgba(122, 53, 24, .65); transform-origin: 50% 100%; will-change: transform, opacity;
}
.shot::after { content: ""; position: absolute; inset: 15px 15px 6px; border: 1px solid rgba(251, 244, 234, .7); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.shot__frame { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--sand-2); }
.shot img { position: absolute; inset: 0 -9%; width: 118%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.shot__cap {
  position: absolute; left: 50%; bottom: 18px; z-index: 1; translate: -50% 0; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(251, 244, 234, .93); font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--deep);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .7s var(--spring);
}
.shot.is-center .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot:not(.is-center) { cursor: pointer; }
.lb { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; }
.lb__bg { position: absolute; inset: 0; background: rgba(43, 20, 10, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb__stage { position: relative; display: grid; justify-items: center; gap: 16px; padding: 70px 80px 40px; touch-action: pan-y; }
.lb__img { max-width: min(88vw, 1100px); max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); border-radius: 10px; transform-origin: 0 0; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lb__cap { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--cream); }
.lb__count { font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--marigold); }
.lb__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(251, 244, 234, .12); border: 1px solid rgba(251, 244, 234, .35); color: var(--cream); transition: background-color .3s, color .3s, transform .25s var(--ease); }
.lb__btn svg { width: 22px; height: 22px; stroke: currentColor; }
.lb__close { top: 24px; right: 24px; }
.lb__prev { left: 24px; top: 50%; margin-top: -26px; }
.lb__prev svg { transform: scaleX(-1); }
.lb__next { right: 24px; top: 50%; margin-top: -26px; }
.lb.is-closing .lb__btn, .lb.is-closing .lb__cap { opacity: 0; transition: opacity .25s; }

/* ---------- venue ---------- */
.venue { padding: clamp(90px, 11vw, 150px) 0; }
.venue__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.venue__arch { position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 18px; border-radius: 999px 999px 8px 8px; background: radial-gradient(70% 60% at 50% 30%, #D97B4C, var(--clay) 55%, var(--rust)); color: var(--cream); }
.venue__arch::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(251, 244, 234, .55); border-radius: 999px 999px 2px 2px; }
.venue__rays { position: absolute; left: 50%; top: 42%; width: 160%; height: auto; aspect-ratio: 1; translate: -50% -50%; animation: spin 60s linear infinite; opacity: .35; }
.venue__rays line { stroke: var(--cream); stroke-linecap: round; }
.venue__icon { position: relative; width: 70px; height: 70px; stroke: var(--cream); }
.venue__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.venue__arch.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(192, 100, 60, .1) 0%, rgba(122, 53, 24, .05) 45%, rgba(91, 38, 14, .78) 100%); pointer-events: none; }
.venue__arch.has-photo { align-content: end; padding-bottom: 46px; }
.venue__arch.has-photo .venue__rays { top: 34%; opacity: .22; mix-blend-mode: screen; }
.venue__arch.has-photo .venue__icon { width: 46px; height: 46px; }
.venue__arch.has-photo .venue__city { text-shadow: 0 2px 20px rgba(59, 29, 16, .5); }
.venue__city { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.venue__info { display: grid; gap: 20px; }
.venue__addr { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--clay); }
.venue__notes { border-top: 1px solid var(--line); }
.venue__note { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.venue__note dt { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); padding-top: 4px; }
.venue__note dd { font-size: 15px; color: var(--muted); line-height: 1.65; }
.venue__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- rsvp ---------- */
.rsvp { padding: clamp(90px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--paper), var(--sand)); }
.rsvp__card { position: relative; max-width: 740px; margin: 0 auto; padding: clamp(56px, 8vw, 86px) clamp(22px, 6vw, 70px); background: #FFFBF5; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 50px 80px -56px rgba(122, 53, 24, .55); }
.rsvp__card::before { content: ""; position: absolute; left: 50%; top: -1px; width: 120px; height: 4px; margin-left: -60px; border-radius: 0 0 4px 4px; background: var(--clay); }
.rsvp__head { display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: 40px; }
.rsvp__form-wrap { transition: opacity .45s, transform .6s var(--ease), filter .45s; }
.rsvp__form-wrap.is-leaving { opacity: 0; transform: scale(.96); filter: blur(4px); }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); padding: 0; }
.field__label i { font-style: normal; letter-spacing: .06em; text-transform: none; font-weight: 400; color: var(--muted); }
.field__input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); font: inherit; font-family: var(--serif); font-size: 19px; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field__input::placeholder { color: rgba(122, 90, 72, .55); font-style: italic; font-size: 17px; }
.field__input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(192, 100, 60, .14); }
.field__input.is-invalid { border-color: #A23B2A; animation: shake .5s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice legend { margin-bottom: 12px; }
.choice__opt { position: relative; display: block; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__card { display: grid; justify-items: center; gap: 6px; height: 100%; text-align: center; padding: 22px 14px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); cursor: pointer; transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--spring), box-shadow .5s; }
.choice__card b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.choice__card small { font-size: 12.5px; color: var(--muted); }
.choice__icon { width: 40px; height: 40px; stroke: var(--clay); transition: transform .8s var(--ease), stroke .3s; }
.choice__opt input:checked + .choice__card { background: var(--clay); border-color: var(--clay); color: var(--cream); box-shadow: 0 20px 30px -18px rgba(192, 100, 60, .8); animation: pop .5s var(--spring); }
.choice__opt input:checked + .choice__card small { color: rgba(251, 244, 234, .85); }
.choice__opt input:checked + .choice__card .choice__icon { stroke: #FBE3B0; transform: rotate(90deg); }
.choice__opt input:checked + .choice__card .choice__icon--set { transform: none; }
.choice__opt input:focus-visible + .choice__card { outline: 2px solid var(--clay); outline-offset: 3px; }
@keyframes pop { 40% { transform: scale(.95); } 100% { transform: none; } }
.form__yes { display: grid; gap: 26px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.stepper__btn { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--deep); transition: background-color .3s, transform .25s var(--spring); }
.stepper__btn:disabled { opacity: .3; pointer-events: none; }
.stepper__val { min-width: 44px; text-align: center; font-family: var(--serif); font-size: 24px; color: var(--deep); }
.stepper__val.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: translateY(-6px) scale(1.25); color: var(--clay); } }
.chips legend { margin-bottom: 12px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--spring); }
.chip span::before { content: ""; width: 9px; height: 12px; border-radius: 80% 0 80% 0; background: var(--marigold); transform: scale(0) rotate(-90deg); margin-left: -6px; transition: transform .45s var(--spring), margin .3s; }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.chip input:checked + span::before { transform: rotate(-30deg); margin-left: 0; }
.chip input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }
.form__error { min-height: 1.4em; margin-top: -10px; font-size: 14px; color: #A23B2A; }
.form__submit { justify-self: center; min-width: 240px; min-height: 58px; font-size: 13px; }
.form__submit[disabled] { opacity: .7; pointer-events: none; }
.rsvp__done { display: grid; justify-items: center; gap: 18px; text-align: center; outline: none; }
.sunburst { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F6C46A, var(--clay) 70%); box-shadow: 0 0 0 10px rgba(232, 163, 61, .18), 0 0 0 22px rgba(232, 163, 61, .08); animation: rise-sun 1s cubic-bezier(.3, 1.5, .5, 1) both; }
.sunburst svg { width: 64px; height: 64px; stroke: var(--cream); animation: spin 14s linear infinite; }
@keyframes rise-sun { 0% { transform: translateY(80px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.rsvp__done > :not(.sunburst) { animation: fade-up .9s var(--ease) both; animation-delay: .5s; }
.rsvp__done > :nth-child(3) { animation-delay: .6s; }
.rsvp__done > :nth-child(4) { animation-delay: .7s; }
.rsvp__done > :nth-child(5) { animation-delay: .8s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rsvp__thanks { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.rsvp__note { max-width: 440px; color: var(--muted); }
.rsvp__done > :nth-child(6) { animation-delay: .9s; }
.rsvp__keep { min-height: 44px; padding: 0 8px; border: 0; background: none; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(122, 53, 24, .35); cursor: pointer; transition: color .3s; }
.rsvp__keep:hover { color: var(--deep); }
/* bot check: invisible unless Cloudflare needs the guest to tick a box */
.form__check { display: flex; justify-content: center; }
.form__check:empty { display: none; }

/* ---------- footer: a terracotta sunrise on a lotus horizon, between the lotus vines of the ending artwork ---------- */
.footer {
  --vine: min(clamp(210px, 62vw, 470px), 64vh);
  --sun: clamp(62px, 17vw, 128px);
  --div: clamp(200px, 48vw, 430px);
  --horizon: calc(6px + var(--div) * .018);          /* the divider's line, where the sun sits */
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: var(--ink);
  padding: clamp(72px, 9vw, 112px) 0 calc(var(--vine) + 14px);
  background:
    radial-gradient(62% 48% at 50% 100%, rgba(246, 196, 106, .45), rgba(232, 163, 61, .12) 55%, transparent 80%),
    linear-gradient(180deg, var(--sand), var(--paper) 45%, #FBEFDC);
}
/* the lotus lines carry on from the sections above, starting exactly where those leave off */
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: var(--lotus) left top / var(--edge) auto repeat-y, var(--lotus) right top / var(--edge) auto repeat-y;
}
.footer__in { position: relative; z-index: 3; display: grid; justify-items: center; gap: clamp(12px, 1.6vw, 18px); }
.footer__names { font-family: var(--serif); font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1; color: var(--deep); }
.footer__names em { color: var(--clay); font-size: .6em; }
.footer__date { font-size: clamp(10px, 2.9vw, 12px); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); }
.hashtag { display: grid; gap: 4px; justify-items: center; padding: 8px 20px; border-radius: 14px; transition: background-color .3s; }
.hashtag span { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 5.2vw, 22px); color: var(--rust); }
.hashtag small { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer__made { margin-top: clamp(14px, 3.4vw, 30px); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.footer__made a { color: var(--deep); border-bottom: 1px solid rgba(122, 53, 24, .45); }

/* the two lotus vines grow up from the corners, tucked in beside the lotus lines, and sway together in the breeze */
.footer__vine {
  position: absolute; bottom: 0; z-index: 2; height: var(--vine); aspect-ratio: 372 / 1032; pointer-events: none;
  background: center bottom / contain no-repeat; animation: vine-sway 7s ease-in-out infinite alternate;
}
.footer__vine--l { left: calc(var(--edge) * .8); background-image: url(../images/ending-vine-l.webp); transform-origin: 0 100%; }
.footer__vine--r { right: calc(var(--edge) * .8); background-image: url(../images/ending-vine-r.webp); transform-origin: 100% 100%; animation-delay: -2.5s; }
@keyframes vine-sway { from { rotate: -1.1deg; } to { rotate: 1.3deg; } }

/* the sun: a half disc of marigold and clay, its rays turning slowly behind it */
.footer__rise { position: absolute; left: 50%; bottom: var(--horizon); z-index: 1; isolation: isolate; width: calc(var(--sun) * 2); height: var(--sun); translate: -50% 0; pointer-events: none; }
.footer__rise::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, #FCE2A4 0%, #F4B961 38%, #E38B47 72%, #C0643C 100%);
  box-shadow: 0 0 70px 12px rgba(246, 196, 106, .38);
}
.footer__rays-wrap {
  position: absolute; left: 50%; bottom: 0; z-index: -1; width: calc(var(--sun) * 4.2); aspect-ratio: 2 / 1; translate: -50% 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(farthest-side at 50% 100%, #000 60%, transparent 100%); mask-image: radial-gradient(farthest-side at 50% 100%, #000 60%, transparent 100%);
}
.footer__rays { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1; animation: spin 120s linear infinite; }
.footer__rays line { stroke: var(--clay); stroke-opacity: .3; stroke-linecap: round; }
.footer__lotus { position: absolute; left: 50%; bottom: 6px; z-index: 3; width: var(--div); max-width: none; height: auto; translate: -50% 0; pointer-events: none; }

/* when the ending comes into view the sun rises and the vines grow in */
.js .footer__rise { opacity: 0; transform: translateY(75%); }
.js .footer__vine { opacity: 0; transform: scale(.8); }
.js .footer.in .footer__rise { opacity: 1; transform: none; transition: opacity 1.6s ease .15s, transform 2.4s var(--ease) .15s; }
.js .footer.in .footer__vine { opacity: 1; transform: none; transition: opacity 1.4s ease .5s, transform 2.2s var(--ease) .5s; }

@media (min-width: 700px) {
  /* wide screens: the words sit between the vines, above the sun */
  .footer { min-height: calc(var(--vine) + 30px); padding-bottom: calc(var(--sun) * 2.1 + var(--horizon) + 30px); }
}

/* sun progress */
.sunup { position: fixed; right: calc(var(--edge) + 6px); bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: rgba(251, 244, 234, .92); box-shadow: 0 10px 24px -10px rgba(122, 53, 24, .5); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .5s, transform .6s var(--spring); }
.sunup.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sunup svg { width: 100%; height: 100%; }
.sunup__track { fill: none; stroke: var(--line); stroke-width: 2; }
.sunup__fill { fill: none; stroke: var(--clay); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; }
.sunup__sun { fill: none; stroke: var(--marigold); stroke-width: 1.8; stroke-linecap: round; transition: opacity .5s; }
/* the sun is also the song's play/pause: dimmed while the song rests, music notes rising from it while it plays */
.sunup[aria-pressed="false"] .sunup__sun { opacity: .45; }
/* the notes use the device's own font: the web fonts keep these symbols in an extra file that would load mid-scroll */
.sunup__note { position: absolute; left: 50%; top: 42%; z-index: -1; font-family: system-ui, -apple-system, "Segoe UI Symbol", "Apple Symbols", sans-serif; line-height: 1; pointer-events: none; text-shadow: 0 1px 8px rgba(251, 244, 234, .95); }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 450; translate: -50% 0; padding: 12px 22px; border-radius: 999px; background: var(--deep); color: var(--cream); font-size: 13px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 16px 30px rgba(59, 29, 16, .3); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .5s var(--spring); max-width: calc(100vw - 40px); text-align: center; }
.toast.is-on { opacity: 1; transform: none; }

.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--ease); }

/* ---------- hover: only where there is a real pointer, so nothing sticks or flashes after a tap ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scale(1.02); }
  .btn:hover { color: var(--fg-h); }
  .film__cue:hover span { letter-spacing: .5em; text-indent: .5em; }
  .round:hover { background: var(--clay); color: var(--cream); border-color: var(--clay); }
  .deck__card[data-pos="0"]:hover { --r: -4deg; --y: -6px; }
  .ev:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(122, 53, 24, .5); }
  .ev:hover .ev__media img { transform: scale(1.06); }
  .lb__btn:hover { background: var(--cream); color: var(--deep); }
  .venue__arch.has-photo:hover .venue__photo { transform: scale(1); }
  .choice__opt:hover .choice__card { border-color: var(--clay); }
  .stepper__btn:hover { background: var(--sand-2); }
  .hashtag:hover { background: rgba(192, 100, 60, .1); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .story__grid, .venue__in { grid-template-columns: minmax(0, 1fr); }
  .story__copy { order: 2; }
  .deck { width: min(78%, 380px); }
}
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  /* the names sit in the lower third so the couple's faces stay clear */
  .film__intro { align-content: end; gap: 14px; padding-bottom: clamp(118px, 21vh, 210px); }
  .film__names { font-size: clamp(2.6rem, 13.4vw, 5.6rem); }
  .film__date { flex-direction: column; gap: 5px; font-size: 10.5px; letter-spacing: .24em; }
  .film__date i { display: none; }
  .film__line { font-size: clamp(10px, 3vw, 12px); letter-spacing: .28em; text-indent: .28em; }
  .film__name { translate: -50% 0; font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .film__name--l { left: 50%; right: auto; top: auto; bottom: calc(100% - var(--at) + 18px); text-align: center; }
  .film__name--r { left: 50%; top: calc(var(--ab) + 44px); text-align: center; }
  .film__blessing { bottom: calc(100% - var(--at) + 18px + clamp(2.6rem, 12vw, 4.4rem) + 14px); }
  .film__date { top: calc(var(--ab) + 44px + clamp(2.6rem, 12vw, 4.4rem) + 16px); }
  .has-banner .film__date { top: calc(var(--ab) + 46px); }
  /* on tall screens the garlands hang from under the banner rather than over it */
  .film__amp { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 25px; }
}
@media (max-width: 640px) {
  .nav__sound-txt { display: none; }
  .nav__sound { padding: 0 12px; }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .ev__media { min-height: 200px; aspect-ratio: 16 / 10; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 10px 8px 12px; justify-items: center; text-align: center; }
  .tab b { font-size: 15px; }
  .tab small { font-size: 9px; letter-spacing: .14em; }
  .tabs__sun { padding-left: 0; place-items: center; }
  .tabs__sun svg { display: none; }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .btn { max-width: 100%; white-space: normal; text-align: center; padding: 14px 24px; letter-spacing: .14em; line-height: 1.5; }
  .venue__note { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cd__unit { padding-bottom: 12px; }
  .cd__label { font-size: 8.5px; letter-spacing: .14em; }
  .lb__stage { padding: 70px 14px 100px; }
  .lb__img { max-width: 94vw; max-height: calc(100svh - 230px); }
  .lb__prev, .lb__next { top: auto; bottom: 28px; margin-top: 0; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
  .lb__close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal], .js .film__names .ch, .js .film__names em, .js .film__to, .js .film__line, .js .film__cue span { opacity: 1; transform: none; filter: none; transition: none; }
  .js .footer .footer__rise, .js .footer .footer__vine { opacity: 1; transform: none; transition: none; }
  .js .palace__crown, .js .palace__pillar, .js .palace__arch, .js .palace__steps, .js .palace__kalash, .js .palace .toran, .js .invite__card > * { opacity: 1; transform: none; filter: none; transition: none; }
  .invite__petals { display: none; }
  .invite__sky, .invite__branch { translate: none; }
  .deck__card { transition: none; }
}
