/* Harsh & Archita — save the date. Illustrated, full-screen, everything centred. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/CormorantGaramond-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/CormorantGaramond-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/CormorantGaramond-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/CormorantGaramond-400i-latin.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Jost-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Jost-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/PinyonScript-400-latin.woff2) format('woff2'); }

:root {
  --ivory: #F6F0E6;
  --paper: #FBF8F2;
  --surface: #EDE3D3;
  --ink: #3A2E28;
  --muted: #6B5A4E;
  --gold: #B8893E;
  --gold-l: #E2C27A;
  --sindoor: #8B1E22;
  --sindoor-d: #6E1519;
  --cream: #F7F1E6;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;

  --step-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  --step-display: clamp(2.75rem, 1.2rem + 5.6vw, 7rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
/* With a mouse or trackpad the script glides between screens itself; browser snapping would fight it. */
html.paged { scroll-snap-type: none; scroll-behavior: auto; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 var(--step-body)/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--sindoor); color: var(--cream); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.is-locked { overflow: hidden; }

/* ---------- Type ---------- */

.display { margin: 0; font: 500 var(--step-display)/1.04 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.display--line { font-size: clamp(2rem, 1rem + 3.2vw, 4rem); }
.script { margin: 0; font: 400 clamp(2.4rem, 1.4rem + 3.4vw, 4.75rem)/1.05 var(--script); color: var(--sindoor); }
.script--light { color: var(--gold-l); }
.script--red { color: var(--sindoor); }
.italic { margin: 0; font: italic 400 var(--step-lead)/1.25 var(--serif); }
.caps { margin: 0; font: 500 var(--step-small)/1.5 var(--sans); letter-spacing: 0.26em; padding-left: 0.26em; text-transform: uppercase; }
.caps--soft { opacity: 0.75; }
.body { margin: 0; max-width: 44ch; font: 400 var(--step-body)/1.6 var(--sans); }
.lotus { width: 60px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.6; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--sindoor); color: var(--cream);
  font: 500 var(--step-small)/1 var(--sans); letter-spacing: 0.06em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.button:active { transform: scale(0.97); }
.button--ivory { background: var(--cream); color: var(--sindoor); }
.button--quiet { background: var(--surface); color: var(--ink); }
.link-button { padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--sindoor-d); }
  .button--ivory:hover { background: #fff; }
  .button--quiet:hover { background: #E2D6C2; }
}

/* ---------- Screens ---------- */

.screen {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: max(56px, env(safe-area-inset-top)) 20px max(56px, env(safe-area-inset-bottom));
  scroll-snap-align: start; scroll-snap-stop: always;
}
.screen--red { background: var(--sindoor); color: var(--cream); }
.screen--ivory { background: var(--ivory); color: var(--ink); }
.screen--pattern { background-color: var(--ivory); background-size: 120px; }
.stack { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 1100px; }

/* ---------- Dawn scene ---------- */

.scene { padding: 0; place-items: stretch; }
.layer { position: absolute; inset: 0; }
.sky { background: linear-gradient(180deg, #F3C3A6 0%, #F8D8C2 30%, #FBE8D8 52%, #FCEFE3 60%); }
.sun { inset: auto; left: 80%; top: 41%; width: 32vmin; height: 32vmin; margin-left: -16vmin; border-radius: 50%;
       background: radial-gradient(circle, #F9B98C 0 52%, rgba(249, 185, 140, 0.35) 53%, rgba(249, 185, 140, 0) 70%); }
.hill { inset: auto 0 40% 0; }
.hill svg { width: 100%; height: 100%; }
.hill--back { height: 15%; opacity: 0.9; }
.hill--front { height: 10%; }
.lake { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; overflow: hidden;
        background: linear-gradient(180deg, #BFD5D1 0%, #93B9BA 45%, #6E9AA2 100%); }
.lake__reflect { position: absolute; left: -2vw; top: 0; width: min(80vw, 760px); transform: scaleY(-1); transform-origin: top; opacity: 0.22; filter: blur(1.5px); }
.lake__shine { position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(255, 255, 255, 0.22) 14px 15px, transparent 15px 34px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 110px); mask-image: repeating-linear-gradient(90deg, #000 0 60px, transparent 60px 110px); }
.palace { position: absolute; left: -4vw; bottom: 40%; width: min(80vw, 760px); z-index: 2; }
.island { position: absolute; right: 6vw; bottom: 33%; width: min(34vw, 300px); z-index: 2; }
.boat { position: absolute; left: 52%; bottom: 14%; width: min(26vw, 190px); z-index: 2; }
.lilies { position: absolute; left: 14%; right: 14%; bottom: 3%; height: 12%; z-index: 2; }
.lilies svg { width: 100%; height: 100%; }
.birds { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.birds span { position: absolute; width: 34px; }
.birds span:nth-child(1) { left: 14%; top: 49%; }
.birds span:nth-child(2) { left: 22%; top: 47%; width: 24px; }
.birds span:nth-child(3) { left: 66%; top: 45%; width: 28px; }

.frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.toran { position: absolute; left: 0; right: 0; top: 0; height: 12svh; z-index: 4; pointer-events: none; }
.toran svg { width: 100%; height: 100%; overflow: visible; }
.toran--slim { height: 10svh; }
.lantern { position: absolute; top: -2svh; z-index: 4; width: min(15vw, 110px); transform-origin: 50% 0; pointer-events: none; }
.lantern--l { left: 3vw; }
.lantern--r { right: 3vw; }
.flowers { position: absolute; z-index: 4; pointer-events: none; }
.flowers svg { width: 100%; height: 100%; overflow: visible; }
.flowers--l { left: -4vw; bottom: -2svh; width: min(48vw, 460px); aspect-ratio: 1.25; }
.flowers--r { right: -4vw; bottom: -2svh; width: min(44vw, 420px); aspect-ratio: 1.25; }
.flowers--tl { left: -6vw; top: -4svh; width: min(52vw, 420px); aspect-ratio: 1.25; transform: scaleY(-1); }
.flowers--br { right: -6vw; bottom: -4svh; width: min(52vw, 420px); aspect-ratio: 1.25; }
.flowers--tr { right: -6vw; top: -4svh; width: min(50vw, 400px); aspect-ratio: 1.25; transform: scaleY(-1); }

.scene__text { position: absolute; left: 0; right: 0; top: 17svh; max-width: none; margin: 0 auto; padding: 0 12vw; gap: 14px; }
.scene--dawn .display { color: var(--ink); font-size: clamp(2.2rem, 1rem + 5vw, 6.25rem); }
.scene--dawn .caps { color: var(--ink); }

/* ---------- Doors ---------- */

.doors { position: fixed; inset: 0; z-index: 45; display: flex; perspective: 2200px; }
.doors[hidden] { display: none; }
.door { position: relative; flex: 1; background-color: var(--sindoor); background-size: 72px; transition: transform 1900ms var(--ease-in-out); backface-visibility: hidden; }
.door--l { transform-origin: 0 50%; box-shadow: inset -2px 0 0 var(--gold); }
.door--r { transform-origin: 100% 50%; box-shadow: inset 2px 0 0 var(--gold); }
.door::before { content: ""; position: absolute; inset: 18px; border: 2px solid var(--gold); }
.door__arch { position: absolute; inset: 40px 34px 60px; width: auto; height: auto; overflow: visible; }
.door__ring { position: absolute; top: 56%; width: 30px; height: 30px; border-radius: 50%; border: 4px solid var(--gold-l); }
.door--l .door__ring { right: 30px; }
.door--r .door__ring { left: 30px; }
.door__half { position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px; overflow: hidden; }
.door--l .door__half { right: 0; width: 60px; }
.door--r .door__half { left: 0; width: 60px; }
.door__half b { position: absolute; top: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--gold); color: var(--sindoor-d);
                display: grid; place-items: center; font: 500 2.4rem/1 var(--serif); }
.door--l .door__half b { left: 0; padding-right: 50px; }
.door--r .door__half b { right: 0; padding-left: 50px; }
.doors.is-open .door--l { transform: rotateY(-112deg); }
.doors.is-open .door--r { transform: rotateY(112deg); }
.doors.is-gone { opacity: 0; transition: opacity 500ms ease; }

/* ---------- Envelope ---------- */

.envelope-stage {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--ivory); background-size: 120px; perspective: 1600px;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.envelope-stage[hidden] { display: none; }
.envelope { position: relative; width: min(76vw, 420px, 46svh); aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform 140ms var(--ease-out); }
.envelope:active { transform: scale(0.985); }
.envelope > span { position: absolute; display: block; }
.envelope__back { inset: 0; background-color: var(--sindoor); background-size: 56px; }
.envelope__letter { left: 7%; right: 7%; top: 6%; bottom: 7%; z-index: 1; display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 12%; gap: 0.35em;
                    background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold-l); transition: transform 1000ms var(--ease-out) 520ms; }
.envelope__letter-script { font: 400 clamp(1.4rem, 1rem + 1.4vw, 2rem)/1 var(--script); color: var(--sindoor); }
.envelope__letter-names { font: 500 clamp(1.4rem, 1rem + 1.4vw, 2rem)/1.1 var(--serif); }
.envelope__letter-date { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); }
.envelope__pocket { inset: 0; z-index: 2; }
.envelope__pocket--left { background: #ECE2D2; clip-path: polygon(0 0, 54% 54%, 0 100%); }
.envelope__pocket--right { background: #E7DCCB; clip-path: polygon(100% 0, 46% 54%, 100% 100%); }
.envelope__pocket--bottom { background: #F1E8DA; clip-path: polygon(0 100%, 50% 47%, 100% 100%); z-index: 3; }
.envelope__to { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 400 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1 var(--script); color: var(--gold); }
.envelope__flap { left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-style: preserve-3d; transform-origin: 50% 0; transform: rotateX(0deg);
                  transition: transform 850ms var(--ease-in-out), z-index 0s linear 420ms; }
.envelope__flap-front, .envelope__flap-back { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; }
.envelope__flap-front { background: #EBE0CF; }
.envelope__flap-back { background-color: var(--sindoor); background-size: 56px; transform: rotateX(180deg); }
.envelope__monogram { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: italic 500 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1 var(--serif); color: #D6C6AC; }
.envelope__seal { left: 50%; top: 58%; z-index: 5; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; gap: 4px;
                  background: radial-gradient(circle at 38% 34%, #B03036, var(--sindoor) 60%, var(--sindoor-d)); color: var(--gold-l); font: 500 1.2rem/1 var(--serif);
                  box-shadow: 0 0 0 4px rgba(139, 30, 34, 0.35); transition: transform 320ms var(--ease-out), opacity 320ms ease; }
.envelope__note { margin: 6px 0 0; font: italic 400 var(--step-lead)/1.1 var(--serif); }
.envelope__hint { margin: 0; font-size: var(--step-small); color: var(--muted); transition: opacity 300ms ease; }
.envelope-stage.is-open .envelope__seal { transform: scale(0.2) rotate(40deg); opacity: 0; }
.envelope-stage.is-open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.envelope-stage.is-open .envelope__letter { transform: translateY(-40%); }
.envelope-stage.is-open .envelope { transform: translateY(17%); transition: transform 1000ms var(--ease-out) 520ms; }
.envelope-stage.is-open .envelope__hint, .envelope-stage.is-open .envelope__note { opacity: 0; }
.envelope-stage.is-leaving { opacity: 0; transform: scale(1.08); pointer-events: none; }

/* ---------- Countdown ---------- */

.mandala { position: absolute; left: 50%; top: 50%; width: 130vmin; height: 130vmin; margin: -65vmin 0 0 -65vmin; opacity: 0.22; z-index: 0; pointer-events: none; }
.mandala svg { width: 100%; height: 100%; }
.mandala--corner { left: auto; top: auto; right: -40vmin; bottom: -40vmin; width: 90vmin; height: 90vmin; margin: 0; opacity: 0.16; }
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 14px; height: 18px; border-radius: 60% 60% 60% 8%; }
.countdown__row { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 36px); margin: 0; }
.countdown__unit { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
                   width: clamp(74px, 15vw, 190px); aspect-ratio: 0.7; padding-bottom: clamp(18px, 3.2vw, 38px); background-size: 100% 100%; }
.countdown__n { display: inline-block; font: 400 clamp(2.4rem, 1rem + 6vw, 7rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--cream); }
.countdown__l { margin-top: 8px; font: 500 var(--step-small)/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-l); }

/* ---------- Scratch heart ---------- */

.scratch { position: relative; width: min(74vw, 400px); aspect-ratio: 100 / 92; margin: 4px 0; touch-action: none; cursor: grab; }
.scratch__photo, .scratch__foil { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: url(#heart-clip); }
.scratch__photo { object-fit: cover; }
.scratch__foil { transition: opacity 700ms ease; }
.scratch__line { position: absolute; inset: -4%; width: 108%; height: 108%; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.4; pointer-events: none; }
.scratch.is-done .scratch__foil { opacity: 0; }
.scratch__after { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; color: var(--ink); }
.scratch.is-done ~ .scratch__after { opacity: 1; transform: none; }
.scratch.is-done ~ .link-button { visibility: hidden; }

/* ---------- The days ---------- */

.day { gap: clamp(18px, 3.4vh, 40px); }
/* The date, set large: an upright numeral and an italic month, under a small tracked line. */
.day__title { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.day__date { margin: 0; font: 500 clamp(3.8rem, 1.6rem + 8vw, 11rem)/0.95 var(--serif); letter-spacing: -0.015em; font-variant-numeric: lining-nums; white-space: nowrap; }
.day__date em { font-style: italic; font-weight: 400; }
.screen--ivory .day__title .caps { color: var(--sindoor); }
.screen--red .day__title .caps { color: var(--gold-l); }
.events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); width: 100%; margin: 0; padding: 0; list-style: none; }
.events li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.event__icon { display: grid; place-items: center; width: clamp(76px, 8vw, 116px); aspect-ratio: 1; margin-bottom: 8px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px var(--cream), 0 0 0 8px var(--gold-l); }
.event__icon svg { width: 72%; height: 72%; overflow: visible; }
.events b { font: 500 clamp(1.25rem, 1rem + 1.1vw, 2rem)/1.15 var(--serif); }
.events i { font: italic 400 var(--step-body)/1.3 var(--serif); opacity: 0.8; }
.screen--red .events .caps { color: var(--gold-l); }

/* ---------- Venue ---------- */

.venue-art { position: relative; width: min(78vw, 460px); aspect-ratio: 4 / 3; }
.venue-art__gate svg { width: 100%; height: 100%; }
.venue-art__pin { position: absolute; left: 50%; top: -14%; width: 15%; margin-left: -7.5%; }

/* ---------- Night scene ---------- */

.night-sky { background: linear-gradient(180deg, #160E22 0%, #2A1838 40%, #4A2846 58%, #5E3148 60%); }
.stars { position: absolute; inset: 0 0 40% 0; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFF4D6; }
.moon { position: absolute; right: 16%; top: 13%; width: 9vmin; height: 9vmin; border-radius: 50%; box-shadow: -2.4vmin 1.2vmin 0 0 #F8E7B8; transform: rotate(-20deg); }
.fireworks { position: absolute; inset: 0 0 38% 0; width: 100%; height: 62%; z-index: 1; }
.lake--night { background: linear-gradient(180deg, #3A2140 0%, #241430 60%, #160D1E 100%); z-index: 1; }
.lake--night .lake__reflect { opacity: 0.4; filter: blur(2px); }
.scene--night .palace, .scene--night .island { z-index: 2; }
.diyas { position: absolute; inset: 0; }
.diya { position: absolute; width: 16px; height: 7px; border-radius: 0 0 10px 10px; background: #9C5A2C; }
.diya::before { content: ""; position: absolute; left: 4px; top: -10px; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: #FFD36E; box-shadow: 0 0 14px 6px rgba(255, 190, 90, 0.45); }
.sky-lanterns { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sky-lantern { position: absolute; bottom: 38%; width: 18px; height: 24px; border-radius: 40% 40% 30% 30%; background: linear-gradient(180deg, #FFB45C, #F27F2E); box-shadow: 0 0 22px 8px rgba(255, 170, 80, 0.35); }
.scene__text--night { top: 12svh; color: var(--cream); }
.scene__text--night .caps { color: var(--gold-l); }
.credit { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; margin: 0; font-size: var(--step-small); color: rgba(247, 241, 230, 0.75); }

/* ---------- Screen dots ---------- */

.dots { position: fixed; right: 10px; top: 50%; z-index: 30; display: flex; flex-direction: column; transform: translateY(-50%); color: var(--dots-ink, var(--ink)); transition: color 300ms ease; }
.dots button { width: 26px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.dots button[aria-current="true"]::before { opacity: 1; transform: scale(1.45); }
.dots[hidden] { display: none; }

/* ---------- Calendar sheet ---------- */

.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(28, 20, 16, 0.42); }
.sheet[hidden] { display: none; }
.sheet__panel { width: min(100%, 440px); display: grid; gap: 10px; padding: 28px; border-radius: 6px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.sheet__title { margin: 0 0 10px; font: 500 var(--step-lead)/1.1 var(--serif); }
.sheet__option { display: flex; align-items: center; min-height: 56px; padding: 0 18px; border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.sheet__option:active { transform: scale(0.985); }
.sheet__close { justify-self: start; margin-top: 4px; padding: 8px 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .sheet__option:hover { background: #E2D6C2; } }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  /* Wide screens: a lower waterline and a smaller palace, so the names have the sky to themselves. */
  .hill { bottom: 30%; }
  .lake { height: 30%; }
  .palace { left: 18vw; bottom: 30%; width: 30vw; }
  .lake__reflect { left: 18vw; width: 30vw; }
  .island { right: 22vw; bottom: 24%; width: 15vw; }
  .scene--night .palace, .scene--night .lake__reflect { left: 6vw; width: 32vw; }
  .scene--night .island { right: 10vw; }
  .boat { left: 54%; width: 11vw; }
  .sun { left: 64%; top: 52%; }
  .lilies { left: 26%; right: 26%; }
  .lantern { width: 7vw; top: -1svh; }
  .lantern--l { left: 7vw; }
  .lantern--r { right: 7vw; }
  .flowers--l { left: -2vw; width: 30vw; }
  .flowers--r { right: -2vw; width: 28vw; }
  .scene__text { top: 15svh; padding: 0 20vw; }
  .scene__text--night { top: 12svh; padding: 0 10vw; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .stack { gap: 14px; }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .events b { font-size: 1.2rem; }
  .events i { font-size: 0.95rem; }
  .event__icon { width: 70px; margin-bottom: 6px; }
  .caps { letter-spacing: 0.18em; padding-left: 0.18em; }
  .dots { display: none; }
  .actions .button { flex: 1 1 100%; }
  .door__arch { inset: 34px 22px 50px; }
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---------- Motion (only with script; the reduced state is the finished state) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 130ms + 150ms); }
  .js .is-in [data-rise] { opacity: 1; transform: none; }

  .envelope__seal { animation: breathe 2.6s var(--ease-in-out) infinite; }
  .envelope-stage.is-open .envelope__seal { animation: none; }

  .is-live .sun { animation: rise 9s var(--ease-soft) both; }
  .is-live .birds span { animation: fly 22s linear infinite, flap 0.9s ease-in-out infinite; }
  .is-live .birds span:nth-child(2) { animation-delay: -6s, -0.3s; }
  .is-live .birds span:nth-child(3) { animation-delay: -12s, -0.5s; animation-direction: reverse, normal; }
  .is-live .lake__shine { animation: shimmer 9s linear infinite; }
  .is-live .boat { animation: drift 34s ease-in-out infinite alternate; }
  .is-live .lantern { animation: swing 4.6s ease-in-out infinite; }
  .is-live .lantern--r { animation-delay: -2.3s; }
  .is-live .lantern .glow { animation: glow 2.2s ease-in-out infinite alternate; }
  .is-live .toran svg { animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
  .is-live .mandala svg { animation: turn 140s linear infinite; }
  .is-live .petal { animation: fall var(--dur, 9s) linear infinite; animation-delay: var(--delay, 0s); }
  .is-live .icon-anim .spin { animation: turn 14s linear infinite; }
  .is-live .icon-anim .steam { animation: steam 2.8s ease-in-out infinite; }
  .is-live .icon-anim .flicker { animation: flicker 0.9s ease-in-out infinite alternate; }
  .is-live .icon-anim .float { animation: notes 3s ease-in-out infinite; }
  .is-live .icon-anim .twinkle { animation: glow 1.4s ease-in-out infinite alternate; }
  .is-live .venue-art__pin { animation: pin 2.4s var(--ease-out) infinite; }
  .is-live .flag { animation: flag 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
  .is-live .star { animation: twinkle var(--dur, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .is-live .diya { animation: bob 5s ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .is-live .sky-lantern { animation: float-up var(--dur, 16s) linear infinite; animation-delay: var(--delay, 0s); }
  .is-live .lit { animation: glow 3s ease-in-out infinite alternate; }
  .countdown__n.tick { animation: tick 460ms var(--ease-out); }
}
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes rise { from { transform: translateY(8vmin); } }
@keyframes fly { from { translate: -8vw 0; } to { translate: 22vw -2vh; } }
@keyframes flap { 50% { transform: scaleY(0.55); } }
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 0 68px; } }
@keyframes drift { from { transform: translateX(-12vw); } to { transform: translateX(10vw); } }
@keyframes swing { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes glow { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-0.4deg); } 50% { transform: rotate(0.4deg); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes fall { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--sway, 40px), 110vh) rotate(var(--spin, 540deg)); } }
@keyframes steam { 0%, 100% { opacity: 0.4; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes flicker { from { transform: scale(0.94, 0.9); } to { transform: scale(1.04, 1.06); } }
@keyframes notes { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes pin { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-16%); } 55% { transform: translateY(0); } 70% { transform: translateY(-5%); } }
@keyframes flag { from { transform: skewY(-6deg) scaleX(0.9); } to { transform: skewY(6deg) scaleX(1.05); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -3px); } }
@keyframes float-up { from { transform: translateY(0) scale(1); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-58vh) scale(0.55); opacity: 0; } }
@keyframes tick { from { transform: translateY(-30%); opacity: 0; } }
