/* =====================================================================
   DURGAA — A Digital Love & Memory Story
   Theme: "Blush & Crimson" — light, warm, romantic, birthday.
   Mobile-first. Colours & fonts are all tokens below.
   ===================================================================== */

:root {
  /* colour — light world */
  --bg:       #fff4f6;
  --bg-2:     #ffe8ee;
  --blush:    #ffd9e3;
  --petal:    #f9b8cb;
  --rose:     #e2457a;
  --rose-2:   #f27ba0;
  --crimson:  #b0123f;
  --wine:     #6e0b2b;
  --deep:     #4a0820;
  --gold:     #9a6a1c;   /* gold for text on light (AA) */
  --gold-2:   #e7c27a;   /* gold for deep sections / ribbon */
  --gold-3:   #c99a3e;
  --ink:      #3b0d1c;
  --ink-2:    #6b3446;
  --faint:    #a27382;
  --cream:    #fff6ef;
  --paper:    #fffbf6;
  --card:     #ffffff;
  --line:     rgba(176, 18, 63, .14);
  --police:   #4a63b8;

  --shadow:   0 24px 48px -28px rgba(176, 18, 63, .45), 0 2px 6px -2px rgba(176, 18, 63, .10);
  --shadow-lg: 0 40px 80px -36px rgba(110, 11, 43, .55), 0 4px 12px -4px rgba(110, 11, 43, .12);

  /* type — every Marathi role has its own face */
  --f-body:    "Tiro Devanagari Marathi", "Noto Serif Devanagari", serif;   /* main Marathi text */
  --f-ui:      "Mukta", "Noto Sans Devanagari", sans-serif;                 /* buttons, meta */
  --f-hand:    "Kalam", "Tiro Devanagari Marathi", cursive;                 /* romantic quotes, letter */
  --f-display: "Rozha One", "Tiro Devanagari Marathi", serif;               /* memory / chapter titles */
  --f-script:  "Pinyon Script", cursive;                                    /* Durgaa */
  --f-latin:   "Cormorant Garamond", Georgia, serif;                        /* small english labels */

  /* rhythm — mobile first */
  --gutter: clamp(22px, 6.2vw, 40px);
  --sec:    clamp(68px, 11vh, 120px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(17.5px, 4.6vw, 20px);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
body.is-locked, body.lb-lock { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
p { margin: 0 0 .95em; }
a { color: inherit; }
::selection { background: rgba(226, 69, 122, .25); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* Rozha One has no real Devanagari digits — render ०-९ in Tiro instead */
.dn { font-family: var(--f-body); font-weight: 400; }

/* ---------- fixed layers ---------- */
.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 12% 8%,  rgba(255, 196, 214, .75), transparent 70%),
    radial-gradient(55% 38% at 92% 30%, rgba(255, 223, 200, .65), transparent 70%),
    radial-gradient(60% 40% at 20% 75%, rgba(248, 205, 232, .55), transparent 70%),
    radial-gradient(60% 45% at 90% 95%, rgba(255, 205, 216, .7), transparent 70%),
    var(--bg);
  animation: auraDrift 24s ease-in-out infinite alternate;
}
@keyframes auraDrift { to { transform: translate3d(1.5%, -2%, 0) scale(1.04); } }

/* your photos, softly blurred, behind the pink — they drift and cross-fade on scroll */
.bg-photos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 2.4s var(--ease);
}
.bg-photos.on { opacity: 1; }
.bg-photos { filter: saturate(1.25) brightness(1.06); }
.bgp {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.bg-wash { /* keeps it pink and the text readable */
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 12% 8%,  rgba(255, 196, 214, .45), transparent 70%),
    radial-gradient(60% 45% at 90% 95%, rgba(255, 205, 216, .45), transparent 70%),
    linear-gradient(rgba(255, 236, 242, var(--bg-wash, .55)), rgba(255, 226, 236, var(--bg-wash, .55)));
}

/* petals / glitter float above the content (they never block taps) */
#sky, #fx {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
#sky { z-index: 3; }
#fx  { z-index: 88; }

.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 70;
  height: calc(3px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}
.progress span {
  display: block; height: 3px;
  background: linear-gradient(90deg, var(--rose-2), var(--crimson), var(--gold-3));
  box-shadow: 0 0 10px rgba(226, 69, 122, .5);
  transform-origin: left; transform: scaleX(0);
  border-radius: 0 3px 3px 0;
}

.curtain {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .9s var(--ease);
}
.curtain.on { opacity: 1; pointer-events: auto; }

main { position: relative; z-index: 1; overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }

/* ---------- layout helpers ---------- */
section { position: relative; }
.screen { min-height: 100vh; min-height: 100svh; }
.sec { padding: var(--sec) 0; }

.wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  position: relative; z-index: 1;
}
.wrap--wide { max-width: 1040px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .82em; }
.pink { color: var(--crimson); font-weight: 400; }

.center p, p.center, .lead, .ch-head h2, .closer, .big-line, .hand-quote, .special__quote,
.since__pre, .nahi-after, .final__lines p, .note p, .memory__desc, .memory__quote, .wish p { text-wrap: balance; }

/* full-screen grids: never let a long Marathi line widen the track */
.hero, .intro, .special, .secret, .final, .secret__stage { grid-template-columns: minmax(0, 1fr); }

/* soft tinted band for rhythm between sections */
.tint {
  background: linear-gradient(180deg, transparent, rgba(255, 214, 226, .55) 14%, rgba(255, 214, 226, .55) 86%, transparent);
}

/* deep crimson "moments" — the cinematic highlights */
.deep {
  color: var(--cream);
  border-radius: 34px;
  margin: 18px 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(110, 11, 43, .6);
}
.deep .ch-head h2 { color: #fff; text-shadow: 0 0 30px rgba(255, 170, 200, .45); }
.deep .ch-num { color: var(--gold-2); }
.deep .lead { color: #ffe3ea; }
.deep p { color: #ffeef2; }

.lead { font-size: 1.1em; color: var(--wine); }
.hand { font-family: var(--f-hand); color: var(--rose); font-size: 1.15em; line-height: 1.8; }
.big-line {
  font-family: var(--f-display);
  font-size: clamp(24px, 6.8vw, 34px);
  line-height: 1.5;
  color: var(--crimson);
  margin: 1.1em 0;
}
.display-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(30px, 8.6vw, 50px); line-height: 1.4;
  color: var(--crimson);
  margin: 0 0 .8em;
}
.hand-quote {
  margin: 1.4em auto 0;
  font-family: var(--f-hand);
  font-size: clamp(20px, 5.4vw, 25px);
  line-height: 1.75;
  color: var(--rose);
}
.closer {
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1.55;
  color: var(--crimson);
  margin: 1.2em 0 0;
}

/* chapter heading */
.ch-head { text-align: center; margin-bottom: clamp(28px, 5vh, 48px); }
.ch-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-latin); font-style: italic; font-weight: 500;
  font-size: 15px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.ch-num::before, .ch-num::after {
  content: "♡"; font-style: normal; letter-spacing: 0; font-size: 12px; opacity: .8;
}
.ch-head h2 {
  margin: .35em 0 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 7.8vw, 44px);
  line-height: 1.4;
  color: var(--crimson);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--f-ui); font-size: 17px; font-weight: 500; line-height: 1.3;
  color: #fff;
  background: linear-gradient(180deg, var(--rose), var(--crimson));
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 14px 30px -12px rgba(176, 18, 63, .65);
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), opacity .5s;
  touch-action: manipulation;
  text-align: center;
  max-width: 100%;
}
.btn:active { transform: scale(.96); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 20px 40px -12px rgba(176,18,63,.75); }
}
.btn--latin { font-family: var(--f-latin); font-size: 18px; font-weight: 500; letter-spacing: .14em; }
.btn--glow { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe {
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 40px -6px rgba(226,69,122,.8), 0 0 0 9px rgba(226,69,122,.12); }
}
.btn--ghost {
  color: var(--crimson);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(176, 18, 63, .25);
  box-shadow: var(--shadow);
}
.deep .btn--ghost { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); box-shadow: none; }

/* =====================================================================
   REVEAL SYSTEM  (only active when JS is running)
   ===================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease-out), filter 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="blur"]  { transform: scale(1.03); filter: blur(10px); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

.words .w {
  display: inline-block;
  opacity: 0; transform: translateY(.45em); filter: blur(5px);
  transition: opacity .9s var(--ease), transform 1s var(--ease-out), filter .9s var(--ease);
  transition-delay: calc(var(--i) * 85ms + .1s);
}
.words.in .w { opacity: 1; transform: none; filter: none; }

.type { position: relative; min-height: 1.8em; }
.type__ghost { visibility: hidden; }
.type__live { position: absolute; inset: 0; }
.type.typing .type__live::after {
  content: ""; display: inline-block; width: 2px; height: 1em;
  margin-left: 3px; vertical-align: -.12em;
  background: var(--rose);
  animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* =====================================================================
   GATE — a wrapped gift
   ===================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 80;
  transition: visibility 0s 1.9s;
}
.gate.leaving { visibility: hidden; pointer-events: none; }

.gate__half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    /* horizontal ribbon */
    linear-gradient(180deg, transparent calc(30% - 15px), #b98a33 calc(30% - 15px), #f3d48c 30%, #b98a33 calc(30% + 15px), transparent calc(30% + 15px)),
    /* tiny heart-dot wrapping paper */
    radial-gradient(circle at 14px 14px, rgba(255, 255, 255, .12) 2.2px, transparent 3px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 50% 30%, #d0245a, #9e1442 55%, #5e0a26);
  transition: transform 1.25s cubic-bezier(.7, 0, .2, 1) .45s;
  box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}
.gate__half--l { left: 0; }
.gate__half--r { right: 0; }
.gate__half::after { /* vertical ribbon, split in two */
  content: ""; position: absolute; top: 0; bottom: 0; width: 15px;
}
.gate__half--l::after { right: 0; background: linear-gradient(90deg, #b98a33, #f3d48c); }
.gate__half--r::after { left: 0;  background: linear-gradient(90deg, #f3d48c, #b98a33); }
.gate.leaving .gate__half--l { transform: translateX(-103%); }
.gate.leaving .gate__half--r { transform: translateX(103%); }

.bow {
  position: absolute; left: 50%; top: 30%;
  width: 170px; height: 110px;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
  animation: bowFloat 3.6s ease-in-out infinite;
}
@keyframes bowFloat { 50% { transform: translate(-50%, -54%) rotate(-2deg); } }
.gate.leaving .bow { animation: none; transform: translate(-50%, -50%) scale(.2) rotate(40deg); opacity: 0; }
.bow__loop {
  position: absolute; top: 10px; width: 78px; height: 58px;
  background: radial-gradient(circle at 35% 35%, #fbe6b0, #e2b65a 45%, #a8792a 100%);
  box-shadow: inset 0 0 0 9px rgba(120, 80, 20, .18), 0 8px 18px rgba(0, 0, 0, .3);
}
.bow__loop--l { left: 4px;  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%; transform: rotate(-14deg); }
.bow__loop--r { right: 4px; border-radius: 30% 70% 70% 30% / 40% 60% 40% 60%; transform: rotate(14deg); }
.bow__knot {
  position: absolute; left: 50%; top: 39px;
  width: 32px; height: 32px; margin-left: -16px; border-radius: 10px;
  background: linear-gradient(160deg, #f8dc95, #c99a3e);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.bow__tail {
  position: absolute; top: 56px; width: 22px; height: 56px;
  background: linear-gradient(180deg, #e9c06a, #b98a33);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.bow__tail--l { left: 62px;  transform: rotate(22deg);  transform-origin: top; }
.bow__tail--r { right: 62px; transform: rotate(-22deg); transform-origin: top; }

.gate__inner {
  position: absolute; left: 0; right: 0; top: calc(30% + 70px); bottom: 0;
  display: grid; justify-items: center; align-content: start; gap: 20px;
  padding: 10px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 2;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.gate.leaving .gate__inner { opacity: 0; transform: translateY(20px); }
.gate__tag {
  margin: 0;
  font-family: var(--f-latin); font-style: italic; font-size: 18px; letter-spacing: .1em;
  color: rgba(255, 238, 243, .85);
  animation: softIn 1.8s var(--ease) both .2s;
}
.gate__tag span { font-family: var(--f-script); font-style: normal; font-size: 44px; letter-spacing: 0; color: #fff; margin-left: 6px; text-shadow: 0 0 20px rgba(255, 170, 200, .7); }
.gate__eyebrow {
  margin: 0; font-family: var(--f-hand); color: #ffe3ea; font-size: 20px; line-height: 1.7;
  animation: softIn 2s var(--ease) both .5s;
}
.gate__hint {
  margin: 0; font-family: var(--f-ui); font-size: 14px; color: rgba(255, 230, 238, .75);
  animation: softIn 2s var(--ease) both 1.2s;
}
.btn--gift {
  color: var(--crimson);
  background: linear-gradient(180deg, #fffaf4, #ffe6ec);
  box-shadow: inset 0 -2px 0 rgba(176, 18, 63, .12), 0 16px 34px -12px rgba(0, 0, 0, .55);
  animation: softIn 2s var(--ease) both .8s, giftPulse 2.8s ease-in-out 2.8s infinite;
}
@keyframes giftPulse {
  50% { box-shadow: inset 0 -2px 0 rgba(176,18,63,.12), 0 16px 34px -12px rgba(0,0,0,.55), 0 0 0 10px rgba(255, 255, 255, .14); }
}
@keyframes softIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* =====================================================================
   HERO — photo fan + handwritten name
   ===================================================================== */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(34px + env(safe-area-inset-top)) var(--gutter) calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
  --hp: 0;   /* 0 → 1 as she scrolls away from the hero */
}
.hero__bg, .final__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.85);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 15%, transparent 85%);
          mask-image: radial-gradient(70% 60% at 50% 45%, #000 15%, transparent 85%);
  transition: opacity 3s var(--ease);
  pointer-events: none;
}
.hero.play .hero__bg.loaded { opacity: .18; }

/* slow turning light rays behind the photos */
.hero__rays {
  position: absolute; left: 50%; top: 30%;
  width: 170vw; max-width: 1000px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .7) 0deg 3.5deg, rgba(255, 255, 255, 0) 3.5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 40%, transparent 72%);
          mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .5) 40%, transparent 72%);
  opacity: 0;
  transition: opacity 2.5s var(--ease) .4s;
  animation: raysSpin 90s linear infinite;
  pointer-events: none;
}
.hero.play .hero__rays { opacity: .55; }
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__inner { position: relative; z-index: 1; width: 100%; max-width: 640px; }

/* the photo fan */
.hfan {
  position: relative;
  width: min(88vw, 420px);
  height: min(66vw, 316px);
  margin: 0 auto 4px;
  opacity: calc(1 - var(--hp) * .8);
  transform: translateY(calc(var(--hp) * -50px));
}
.hp {
  position: absolute; top: 0; width: 41%;
  --sx: 0px; --sr: 0deg; --base: 0deg;
  transform: translateX(calc(var(--sx) * var(--hp))) rotate(calc(var(--base) + var(--sr) * var(--hp)));
  cursor: zoom-in;
}
.hp--l { left: 0;  top: 15%; --base: -11deg; --sx: -80px; --sr: -10deg; z-index: 1; }
.hp--r { right: 0; top: 13%; --base: 10deg;  --sx: 80px;  --sr: 10deg;  z-index: 1; }
.hp--c { left: 50%; width: 46%; margin-left: -23%; --base: -2deg; --sr: 0deg; z-index: 2; }
.hp__in { opacity: 0; transform: translateY(-80px) scale(1.2) rotate(10deg); filter: blur(8px); }
.hero.play .hp__in { animation: hpDrop 1.15s var(--ease-out) forwards; }
.hero.play .hp--l .hp__in { animation-delay: .15s; }
.hero.play .hp--r .hp__in { animation-delay: .4s; }
.hero.play .hp--c .hp__in { animation-delay: .7s; }
@keyframes hpDrop {
  60%  { opacity: 1; filter: blur(0); transform: translateY(8px) scale(.97) rotate(-1.5deg); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.hp .polaroid {
  padding: 7px 7px 28px;
  border-radius: 3px;
  animation: bob 5.5s ease-in-out infinite;
  box-shadow: 0 24px 40px -18px rgba(110, 11, 43, .55), 0 2px 6px rgba(110, 11, 43, .12);
}
.hp--r .polaroid { animation-delay: -1.8s; }
.hp--c .polaroid { animation-delay: -3.4s; box-shadow: 0 30px 50px -18px rgba(110, 11, 43, .6), 0 0 50px -10px rgba(255, 255, 255, .9); }
@keyframes bob { 50% { transform: translateY(-7px); } }
.hp .polaroid::before { width: 54px; height: 18px; top: -9px; }
.hp .polaroid figcaption { bottom: 4px; font-size: 13px; }
.hp .ph { aspect-ratio: 3 / 4; }
.hfan__heart {
  position: absolute; z-index: 3; color: var(--rose); line-height: 1;
  opacity: 0; transition: opacity 1s var(--ease) 1.6s;
  animation: beat 2.4s ease-in-out infinite;
  text-shadow: 0 4px 12px rgba(226, 69, 122, .4);
}
.hero.play .hfan__heart { opacity: 1; }
.hfan__heart--1 { left: 26%; top: -4%; font-size: 22px; }
.hfan__heart--2 { right: 8%; bottom: 6%; font-size: 26px; animation-delay: .8s; }
.hfan__heart--3 { left: 4%; bottom: 0; font-size: 20px; color: var(--crimson); animation-delay: 1.4s; }

.script-name { width: min(90vw, 600px); height: auto; overflow: visible; display: block; margin: 0 auto; }
.script-name text {
  font-family: var(--f-script);
  font-size: 176px;
  fill: transparent;
  stroke: var(--crimson);
  stroke-width: 1.4;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.hero__name {
  width: min(78vw, 480px);
  margin-top: -6px;
  filter: drop-shadow(0 6px 18px rgba(226, 69, 122, .35));
  opacity: calc(1 - var(--hp) * .6);
}
.hero.play .hero__name text,
.final.in .final__name text {
  animation: write 3.4s var(--ease) forwards, inkFill 1.8s var(--ease) 2.3s forwards;
}
.hero.play .hero__name text { animation-delay: 1.1s, 3.2s; }
@keyframes write  { to { stroke-dashoffset: 0; } }
@keyframes inkFill { to { fill: var(--crimson); stroke-opacity: .25; } }
.final .script-name text { stroke: #fff; }
.final.in .final__name text { animation-name: write, inkFillLight; }
@keyframes inkFillLight { to { fill: #fff; stroke-opacity: .25; } }
.final__name { filter: drop-shadow(0 0 20px rgba(255, 170, 200, .6)); }

.hero__line {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(17.5px, 4.7vw, 22px);
  line-height: 1.8;
  color: var(--ink);
  opacity: 0; transform: translateY(18px); filter: blur(8px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease-out), filter 1.6s var(--ease);
  text-wrap: balance;
}
.hero__l1 { margin-top: 4px; }
.hero__l2 { margin-top: 12px; font-family: var(--f-hand); color: var(--rose); }
.hero.s1 .hero__l1, .hero.s2 .hero__l2 { opacity: 1; transform: none; filter: none; }

/* inviting scroll button */
.scroll-cue {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 10px;
  margin-top: 22px; padding: 4px;
  text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease-out);
}
.hero.s3 .scroll-cue { opacity: calc(1 - var(--hp) * 2); transform: none; }
.cue-pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 24px;
  border-radius: 999px;
  font-family: var(--f-hand); font-size: 18px; color: var(--crimson);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 30px -14px rgba(176, 18, 63, .6), inset 0 0 0 1px rgba(226, 69, 122, .2);
  animation: cueGlow 2.6s ease-in-out infinite;
}
@keyframes cueGlow {
  50% { box-shadow: 0 14px 30px -14px rgba(176, 18, 63, .6), inset 0 0 0 1px rgba(226, 69, 122, .2), 0 0 0 9px rgba(255, 255, 255, .35); }
}
.chev {
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--rose); border-bottom: 2.5px solid var(--rose);
  transform: rotate(45deg);
  animation: nudge 1.8s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .45; }
  50%      { transform: translateY(9px) rotate(45deg); opacity: 1; }
}

/* =====================================================================
   INTRO + CONTENTS
   ===================================================================== */
.intro { display: grid; place-items: center; min-height: 72vh; min-height: 72svh; }
.intro .lead { font-size: clamp(20px, 5.4vw, 26px); margin-bottom: 1.2em; }
.intro .type { font-size: clamp(20px, 5.4vw, 25px); }

/* =====================================================================
   POLAROID + MEMORY COMPONENT
   ===================================================================== */
.polaroid {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 12px 12px 54px;
  border-radius: 4px;
  transform: rotate(var(--rot, -2deg));
  box-shadow: var(--shadow-lg);
}
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -13px; left: 50%;
  width: 96px; height: 28px;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(242, 123, 160, .55) 0 8px, rgba(255, 190, 210, .55) 8px 16px);
  box-shadow: 0 2px 6px rgba(110, 11, 43, .15);
  z-index: 2;
}
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-family: var(--f-hand); font-size: 19px; color: var(--crimson);
  line-height: 1.4;
}
.ph { position: relative; overflow: hidden; background: var(--blush); }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%;   /* faces are usually in the upper part */
  cursor: zoom-in;
  transition: filter 1.5s var(--ease), transform 1.8s var(--ease-out);
}

.memory-list { display: grid; gap: clamp(70px, 11vh, 110px); margin-top: clamp(40px, 7vh, 70px); }

.memory { display: grid; gap: 30px; align-items: center; }
.memory__media { width: min(80vw, 370px); margin: 0 auto; }
.memory__body { text-align: center; }
.memory__num {
  font-family: var(--f-latin); font-style: italic; font-size: 16px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.memory__title {
  margin: .25em 0 .4em;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(26px, 7vw, 36px); line-height: 1.4;
  color: var(--crimson);
}

.memory.is-locked .ph img { filter: blur(16px) saturate(.7) brightness(.95); transform: scale(1.1); }
.unlock {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content; max-width: 88%;
  min-height: 48px; padding: 10px 20px;
  font-size: 16px;
  z-index: 3;
  animation: breathe 3.4s ease-in-out infinite;
  transition: opacity .6s var(--ease), transform .6s var(--ease-out);
}
.unlock:active { transform: translate(-50%, -50%) scale(.96); }
.memory.is-open .unlock { opacity: 0; transform: translate(-50%, -50%) scale(.85); pointer-events: none; }

.memory__reveal {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 1.1s var(--ease-out);
}
.memory__reveal > div { min-height: 0; overflow: hidden; }
.memory.is-open .memory__reveal { grid-template-rows: 1fr; }
.memory__reveal > div > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease-out);
}
.memory.is-open .memory__reveal > div > * { opacity: 1; transform: none; }
.memory.is-open .memory__reveal > div > :nth-child(2) { transition-delay: .25s; }
.memory.is-open .memory__reveal > div > :nth-child(3) { transition-delay: .5s; }
.memory.is-open .memory__reveal > div > :nth-child(4) { transition-delay: .7s; }

.memory__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  font-family: var(--f-ui); font-size: 15px;
  margin-bottom: 1em;
}
.memory__meta span {
  padding: 3px 14px; border-radius: 999px;
  background: #fff; color: var(--wine);
  box-shadow: 0 6px 16px -10px rgba(176, 18, 63, .5);
}
.memory__desc { color: var(--ink); }
.memory__quote {
  margin: 1.1em 0 0;
  font-family: var(--f-hand); font-size: 1.12em; line-height: 1.8;
  color: var(--rose);
}
.memory__minis { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 1.3em; padding: 6px 0 4px; }
.mini {
  width: 84px; padding: 6px 6px 16px; border: 0; border-radius: 3px; background: #fff;
  cursor: zoom-in; box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.mini:nth-child(even) { transform: rotate(3deg); }
.mini img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.ch1 .memory__media { width: min(82vw, 410px); }
.ch1 .memory__num, .ch1 .memory__title { display: none; }



/* live "together" counter (inside the 05/11/2023 moment) */
.together { margin-top: 2.2em; }
.together__pre, .together__post { font-family: var(--f-hand); color: #ffd9e3 !important; font-size: 1.05em; }
.together__post { margin: 1em 0 0; }
.together__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: 420px; margin: 0 auto;
}
.together__grid div {
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.together__grid b {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(22px, 6.6vw, 32px); line-height: 1.2; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 170, 200, .6);
}
.together__grid div:first-child b { color: var(--gold-2); }
.together__grid span { font-family: var(--f-ui); font-size: 13px; color: #ffd9e3; }

/* memories carousel — swipe sideways */
.carousel {
  --card: min(80vw, 380px);
  position: relative;
  display: flex; align-items: flex-start; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 36px calc((100% - var(--card)) / 2) 24px;
  margin-top: 10px;
  transition: height .6s var(--ease-out);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > .memory { flex: 0 0 var(--card); scroll-snap-align: center; gap: 24px; }
.carousel .memory__media { width: 100%; }
.carousel__nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.carousel__nav[hidden] { display: none; }
.carousel__hint { font-family: var(--f-hand); color: var(--rose); font-size: 16px; }
.dots { display: flex; }
.dot {
  width: 36px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px;
  background: rgba(176, 18, 63, .25);
  transition: width .35s var(--ease-out), background .35s;
}
.dot.on::before { width: 22px; background: var(--crimson); }

/* =====================================================================
   CH 02 — karaoke lines
   ===================================================================== */
.torch {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 28% at 50% 35%, rgba(255, 255, 255, .7), transparent 70%);
  animation: torch 14s ease-in-out infinite alternate;
}
@keyframes torch { to { transform: translate3d(0, 28%, 0); } }
.karaoke { margin: 0 0 clamp(50px, 8vh, 80px); }
.k-line {
  font-size: clamp(21px, 5.6vw, 28px); line-height: 1.65;
  margin-bottom: 1em;
  color: var(--wine);
  opacity: .2;
  transition: opacity .9s var(--ease), color .9s var(--ease);
}
.k-line.lit { opacity: 1; }

.since {
  text-align: center; margin: 0 0 clamp(40px, 7vh, 70px);
  padding: 26px 20px 12px;
  background: #fff; border-radius: 26px; box-shadow: var(--shadow);
}
.since__pre, .since__post { color: var(--ink-2); }
.since__num {
  margin: .1em 0 .3em;
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 44px); line-height: 1.3;
  color: var(--wine);
}
.since__num b {
  font-family: var(--f-body); font-weight: 400;
  font-size: 1.7em; color: var(--rose);
  display: inline-block; min-width: 1.1em;
}

/* =====================================================================
   CH 03 — heartbeat
   ===================================================================== */
.thought {
  position: relative;
  margin: 26px auto 52px;
  padding: 26px 22px;
  max-width: 460px;
  text-align: center;
  border: 2px dashed rgba(226, 69, 122, .45);
  border-radius: 40px;
  background: #fff;
  box-shadow: var(--shadow);
}
.thought .hand { margin: 0; font-size: clamp(19px, 5.2vw, 23px); }
.thought__b {
  position: absolute; border: 2px dashed rgba(226, 69, 122, .45); border-radius: 50%;
  background: #fff;
}
.thought__b1 { width: 22px; height: 22px; left: 22%; bottom: -32px; }
.thought__b2 { width: 12px; height: 12px; left: 16%; bottom: -52px; }

/* =====================================================================
   CH 04 — stamps
   ===================================================================== */
.nahi { position: relative; height: 280px; margin: 16px auto 22px; max-width: 420px; }
.stamp {
  position: absolute;
  font-family: var(--f-display);
  font-size: clamp(34px, 10vw, 52px); line-height: 1.25;
  color: var(--crimson);
  border: 3px solid currentColor; border-radius: 12px;
  padding: .02em .4em .08em;
  white-space: nowrap;
  background: rgba(255, 255, 255, .6);
  opacity: 0;
  transform: rotate(var(--r)) scale(2.2);
}
.stamp.s1 { --r: -11deg; top: 4%;  left: 2%; }
.stamp.s2 { --r: 8deg;   top: 36%; right: 0; }
.stamp.s3 { --r: -4deg;  bottom: 4%; left: 8%; }
.ho {
  --r: -3deg; left: 0; right: 0; top: 50%;
  width: fit-content; margin: -.75em auto 0;
  color: #fff;
  background: linear-gradient(180deg, var(--rose), var(--crimson));
  border-color: transparent;
  box-shadow: 0 20px 40px -14px rgba(176, 18, 63, .7);
  font-size: clamp(44px, 12.5vw, 64px);
}
.nahi.in .stamp:not(.ho) { animation: stamp .55s var(--ease-out) forwards; }
.nahi.in .stamp.s1 { animation-delay: .3s; }
.nahi.in .stamp.s2 { animation-delay: 1s; }
.nahi.in .stamp.s3 { animation-delay: 1.7s; }
@keyframes stamp {
  0%   { opacity: 0; transform: rotate(var(--r)) scale(2.2); }
  60%  { opacity: 1; transform: rotate(var(--r)) scale(.93); }
  100% { opacity: 1; transform: rotate(var(--r)) scale(1); }
}
.nahi.turned .stamp:not(.ho) { animation: fallAway .9s var(--ease) forwards; }
.nahi.turned .stamp.s2 { animation-delay: .1s; }
.nahi.turned .stamp.s3 { animation-delay: .2s; }
@keyframes fallAway {
  from { opacity: 1; transform: rotate(var(--r)) scale(1); }
  to   { opacity: 0; transform: translateY(90px) rotate(calc(var(--r) * 3)) scale(.8); }
}
.nahi.turned .ho { animation: stamp .7s var(--ease-out) .45s forwards; }

#nahiNext { transition: opacity .5s, transform .5s var(--ease-out); }
#nahiNext.gone { opacity: 0; transform: scale(.9); pointer-events: none; }
.nahi-after {
  margin-top: -20px;
  font-family: var(--f-hand); font-size: clamp(20px, 5.4vw, 25px); line-height: 1.8;
  color: var(--rose);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease) .6s, transform 1.2s var(--ease-out) .6s;
}
.nahi-after.show { opacity: 1; transform: none; }

/* =====================================================================
   CH 05 — the date (deep crimson moment)
   ===================================================================== */
.special {
  display: grid; align-items: center;
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, .06) 2px, transparent 3px) 0 0 / 40px 40px,
    radial-gradient(120% 70% at 50% 15%, #d0245a 0%, #9e1442 45%, #5e0a26 100%);
}
.special__halo {
  position: absolute; left: 50%; top: 30%;
  width: 150vw; max-width: 1100px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 190, 210, .35), rgba(255, 140, 180, .1) 50%, transparent);
  animation: halo 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }

.date-glow {
  position: relative;
  display: flex; justify-content: center; align-items: baseline;
  font-family: var(--f-latin); font-weight: 500;
  font-size: clamp(48px, 14.5vw, 110px); line-height: 1;
  color: #fff;
  margin: 6px 0 34px;
  text-shadow: 0 0 8px rgba(255, 220, 230, .9), 0 0 30px rgba(255, 150, 190, .8), 0 0 70px rgba(255, 120, 170, .5);
  padding: 8px 0;
}
.date-glow span, .date-glow i {
  display: inline-block;
  opacity: 0; transform: translateY(40%); filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out), filter 1.2s var(--ease);
}
.date-glow i { font-style: normal; color: var(--gold-2); font-size: .6em; margin: 0 .12em; }
.date-glow.in span, .date-glow.in i { opacity: 1; transform: none; filter: none; }
.date-glow.in > :nth-child(1)  { transition-delay: .1s; }
.date-glow.in > :nth-child(2)  { transition-delay: .25s; }
.date-glow.in > :nth-child(3)  { transition-delay: .4s; }
.date-glow.in > :nth-child(4)  { transition-delay: .55s; }
.date-glow.in > :nth-child(5)  { transition-delay: .7s; }
.date-glow.in > :nth-child(6)  { transition-delay: .85s; }
.date-glow.in > :nth-child(7)  { transition-delay: 1s; }
.date-glow.in > :nth-child(8)  { transition-delay: 1.15s; }
.date-glow.in > :nth-child(9)  { transition-delay: 1.3s; }
.date-glow.in > :nth-child(10) { transition-delay: 1.45s; }
.date-glow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.date-glow.in::after { animation: sweep 5s var(--ease) 2s infinite; }
@keyframes sweep { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }

.special__quote {
  font-family: var(--f-hand);
  font-size: clamp(22px, 6vw, 29px); line-height: 1.8;
  color: #ffd9e3 !important;
  margin-bottom: 1.8em;
}
.special__photo { width: min(74vw, 340px); margin: 0 auto 2.6em; }
.special .polaroid { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }

/* =====================================================================
   CH 06 — threads
   ===================================================================== */
.ch6 { overflow: hidden; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .45; }
.threads path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.thread-a { stroke: var(--rose); }
.thread-b { stroke: var(--gold-3); }
.struggle { margin: 1.4em 0 1.6em; }
.struggle p {
  font-family: var(--f-display);
  font-size: clamp(30px, 9vw, 52px); line-height: 1.35;
  color: var(--wine);
  margin: 0 0 .3em;
}
.struggle__r { text-align: right; color: var(--rose) !important; }

/* =====================================================================
   CH 07 — route
   ===================================================================== */
.route { position: relative; width: min(90vw, 440px); margin: 0 auto 34px; }
.route svg { width: 100%; height: auto; display: block; overflow: visible; }
.route__base { fill: none; stroke: rgba(176, 18, 63, .25); stroke-width: 1.5; stroke-dasharray: 3 6; }
.route__glow { fill: none; stroke: var(--rose-2); stroke-width: 7; opacity: .45; }
.route__line { fill: none; stroke: var(--crimson); stroke-width: 2; stroke-linecap: round; }
.route__glow, .route__line { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2.6s var(--ease); }
.route.in .route__glow, .route.in .route__line { stroke-dashoffset: 0; }
.pin__dot { fill: var(--crimson); }
.pin__ring {
  fill: none; stroke: var(--rose); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
  animation: ring 2.4s ease-out infinite;
}
.pin--b .pin__ring { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.traveler { fill: var(--rose); filter: drop-shadow(0 2px 4px rgba(176, 18, 63, .5)); }
#traveler { opacity: 0; transition: opacity 1s 2s; }
.route.in #traveler { opacity: 1; }
.route__label {
  position: absolute; display: grid; line-height: 1.3;
  font-family: var(--f-ui); font-size: 16px; color: var(--ink); text-align: left;
}
.route__label small { font-size: 14px; color: var(--ink-2); padding-left: 1.5em; }
.route__label--a { left: 2%; top: 38%; }
.route__label--b { right: 0; top: 86%; text-align: right; }
.route__label--b small { padding: 0; }

/* =====================================================================
   CH 08 — kilometres
   ===================================================================== */
.km {
  margin: 0 auto 50px; max-width: 460px;
  padding: 4px 22px;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
}
.km__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 20px 0;
}
.km__row + .km__row { border-top: 1px solid var(--line); }
.km__label { font-family: var(--f-ui); font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.km__val { font-family: var(--f-latin); font-size: 22px; color: var(--gold); white-space: nowrap; }
.km__val b {
  font-weight: 600; font-size: clamp(38px, 11vw, 58px); color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.km__row--heart { opacity: .15; transition: opacity 1.2s var(--ease); }
.km__row--heart .km__val b { color: var(--rose); }
.km.done .km__row--heart { opacity: 1; }
.km.done .km__row:first-child .km__val { opacity: .45; text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; transition: opacity 1s; }

/* =====================================================================
   PRIDE — the only (subtle) police section
   ===================================================================== */
.police { overflow: hidden; }
.police__lights {
  position: absolute; inset: -10% -30%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(110, 140, 255, .22), transparent) 10% 22% / 70% 45% no-repeat,
    radial-gradient(closest-side, rgba(226, 69, 122, .12), transparent) 90% 32% / 70% 45% no-repeat;
  animation: patrol 8s ease-in-out infinite alternate;
}
@keyframes patrol {
  0%   { opacity: .55; transform: translate3d(-5%, 0, 0); }
  50%  { opacity: 1; }
  100% { opacity: .6; transform: translate3d(5%, 0, 0); }
}
.police__photo { width: min(72vw, 330px); margin: 0 auto 38px; }
.police__photo .ph {
  border-radius: 22px;
  border: 7px solid #fff;
  box-shadow: 0 0 0 1px rgba(74, 99, 184, .25), 0 30px 60px -28px rgba(40, 50, 120, .6), 0 0 60px -16px rgba(110, 140, 255, .5);
}
.police__photo figcaption {
  margin-top: 14px;
  font-family: var(--f-latin); font-style: italic; letter-spacing: .3em; text-transform: uppercase;
  font-size: 13px; color: var(--police);
}

/* =====================================================================
   CH 09 — honesty, ego, future
   ===================================================================== */
.honest { margin-bottom: 2em; }
.honest p { font-size: 1.06em; margin-bottom: .5em; }
.honest__yes { font-family: var(--f-display); font-size: clamp(32px, 8.6vw, 44px) !important; color: var(--rose); }
.ego-line {
  text-align: center;
  font-family: var(--f-display); font-size: clamp(24px, 6.6vw, 34px); line-height: 1.5;
  color: var(--wine); margin: .7em 0 1em;
}
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 54%;
  height: 3px; border-radius: 3px;
  background: var(--rose);
  transform: scaleX(0) rotate(-4deg); transform-origin: left;
  transition: transform .9s var(--ease) .9s;
}
.in .strike::after { transform: scaleX(1) rotate(-4deg); }
.strike--soft { display: inline; text-decoration: line-through; text-decoration-thickness: 2px;
  text-decoration-color: transparent; transition: text-decoration-color 1.2s var(--ease) .9s; }
.strike--soft::after { content: none; }
.in .strike--soft { text-decoration-color: var(--rose); }
.crossed { text-align: center; font-family: var(--f-hand); color: var(--faint); font-size: 1.04em; }

.promises { list-style: none; padding: 0; margin: 2.2em 0; display: grid; gap: 14px; }
.promises li {
  position: relative;
  padding: 15px 18px 15px 58px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.75;
}
.promises li::before {
  content: "❤"; position: absolute; left: 17px; top: 17px;
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  color: #fff; background: linear-gradient(180deg, var(--rose), var(--crimson));
  transform: scale(0); transition: transform .7s var(--ease-out) .5s;
}
.promises li.in::before { transform: scale(1); }

.horizon { position: relative; height: 140px; margin: 2.6em 0 1.8em; overflow: hidden; }
.horizon::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-3), var(--rose), var(--gold-3), transparent);
}
.horizon__sun {
  position: absolute; left: 50%; bottom: -80px;
  width: 160px; height: 160px; margin-left: -80px; border-radius: 50%;
  background: radial-gradient(circle, #fff3d6, #ffc3a8 35%, rgba(242, 123, 160, .55) 55%, rgba(242, 123, 160, 0) 72%);
  transform: translateY(80px); opacity: 0;
  transition: transform 3s var(--ease-out), opacity 2s var(--ease);
}
.horizon.in .horizon__sun { transform: none; opacity: 1; }

/* =====================================================================
   WHY I LOVE YOU — flip cards
   ===================================================================== */
.loves {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 760px; margin: 26px auto 0;
}
.love {
  border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 1000px; text-align: center;
  touch-action: manipulation;
}
.love__in {
  display: grid; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
}
.love.flipped .love__in { transform: rotateY(180deg); }
.love__face {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 168px; padding: 16px 12px;
  border-radius: 20px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.love__front {
  color: #fff;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .12) 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(155deg, var(--rose-2), var(--crimson));
  box-shadow: 0 18px 34px -18px rgba(176, 18, 63, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.love__heart { font-size: 26px; line-height: 1; color: #fff; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 20% { transform: scale(1); } 30% { transform: scale(1.12); } }
.love__title { font-family: var(--f-display); font-size: clamp(17px, 4.8vw, 21px); line-height: 1.45; }
.love__tap { font-family: var(--f-ui); font-size: 12px; opacity: .8; letter-spacing: .04em; }
.love__back {
  transform: rotateY(180deg);
  background: #fff;
  border: 2px solid rgba(226, 69, 122, .3);
  color: var(--wine);
  font-family: var(--f-hand); font-size: 16px; line-height: 1.7;
  box-shadow: var(--shadow);
}
.love--last { grid-column: 1 / -1; }
.love--last .love__face { min-height: 190px; }
.love--last .love__front {
  color: var(--crimson);
  background: linear-gradient(180deg, #fffaf4, #ffe6ec);
  border: 2px solid var(--gold-2);
}
.love--last .love__front .love__heart { color: var(--rose); }
.love--last .love__front .love__title { font-size: clamp(21px, 5.8vw, 27px); }
.love--last .love__back {
  background: radial-gradient(circle at 50% 35%, #d0245a, #7a0d31 80%);
  border: 0;
  color: #fff;
  font-family: var(--f-display); font-size: clamp(27px, 7.6vw, 38px); line-height: 1.4;
  text-shadow: 0 0 24px rgba(255, 170, 200, .6);
}
@media (min-width: 700px) {
  .loves { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* =====================================================================
   PHOTO WALL — masonry
   ===================================================================== */
.wall { columns: 2; column-gap: 14px; max-width: 980px; margin: 0 auto; padding: 10px 2px; }
@media (min-width: 720px) { .wall { columns: 3; column-gap: 26px; } }
.tile-wrap { break-inside: avoid; padding: 10px 3px 12px; }
.tile {
  display: block; width: 100%;
  border: 0; padding: 0; background: none; cursor: zoom-in;
  transform: rotate(var(--rot, 0deg));
  transition: transform .6s var(--ease-out);
  touch-action: manipulation;
}
.tile:active { transform: rotate(0deg) scale(.97); }
@media (hover: hover) { .tile:hover { transform: rotate(0deg) scale(1.03); } }
.tile .ph img { cursor: inherit; }
.tile__cap { display: block; font-family: var(--f-hand); line-height: 1.4; }

.tile--polaroid { background: #fff; padding: 8px 8px 36px; border-radius: 3px; position: relative; box-shadow: var(--shadow-lg); }
.tile--polaroid .tile__cap { position: absolute; left: 0; right: 0; bottom: 7px; font-size: 15px; color: var(--crimson); }
.tile--rounded .ph { border-radius: 22px; border: 5px solid #fff; box-shadow: var(--shadow-lg); }
.tile--rounded .tile__cap, .tile--plain .tile__cap { margin-top: 9px; font-size: 15px; color: var(--rose); }
.tile--plain .ph { border-radius: 4px; outline: 1.5px solid rgba(201, 154, 62, .6); outline-offset: 5px; box-shadow: var(--shadow); }

/* =====================================================================
   BIRTHDAY CAKE
   ===================================================================== */
.cake-sec { overflow: hidden; }
.cake {
  position: relative;
  width: 270px; height: 290px;
  margin: 28px auto 22px;
}
.cake__plate {
  position: absolute; left: 50%; bottom: 0;
  width: 290px; height: 30px; margin-left: -145px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #fff, #f3dde3);
  box-shadow: 0 16px 30px -12px rgba(110, 11, 43, .45);
}
.cake__tier {
  position: absolute; left: 50%;
  border-radius: 16px 16px 20px 20px;
  box-shadow: inset 0 -10px 0 rgba(110, 11, 43, .08), 0 10px 20px -12px rgba(110, 11, 43, .4);
}
.cake__tier::before { /* frosting with drips */
  content: ""; position: absolute; left: -4px; right: -4px; top: -6px; height: 30px;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(circle at 50% 0, #fffaf5 9px, transparent 10px) 0 14px / 24px 24px repeat-x,
    linear-gradient(#fffaf5, #fff1ea);
  background-size: 24px 24px, 100% 20px;
  background-position: 0 12px, 0 0;
  background-repeat: repeat-x, no-repeat;
  box-shadow: 0 3px 6px -3px rgba(110, 11, 43, .2);
}
.cake__tier--base {
  bottom: 14px; width: 240px; height: 100px; margin-left: -120px;
  background:
    radial-gradient(circle, #ffd54f 2.2px, transparent 2.8px) 8px 44px / 38px 26px,
    radial-gradient(circle, #8fd3ff 2.2px, transparent 2.8px) 27px 58px / 44px 30px,
    radial-gradient(circle, #ffffff 2.2px, transparent 2.8px) 18px 72px / 34px 22px,
    linear-gradient(180deg, #f7a6c0, #e2457a);
}
.cake__tier--top {
  bottom: 104px; width: 176px; height: 80px; margin-left: -88px;
  background:
    radial-gradient(circle, #ffd54f 2.2px, transparent 2.8px) 12px 40px / 36px 24px,
    radial-gradient(circle, #ffffff 2.2px, transparent 2.8px) 26px 54px / 40px 22px,
    linear-gradient(180deg, #fff3e6, #ffd2dc);
  display: grid; place-items: center; padding-top: 22px;
}
.cake__heart { color: var(--rose); font-size: 26px; line-height: 1; animation: beat 2.4s ease-in-out infinite; }

.candles {
  position: absolute; left: 50%; bottom: 172px;
  width: 188px; margin-left: -94px;
  display: flex; justify-content: space-around;
  z-index: 2;
}
.candle {
  position: relative;
  width: 46px; height: 92px;
  border: 0; padding: 0; background: none; cursor: pointer;
  touch-action: manipulation;
}
.candle__stick {
  position: absolute; left: 50%; bottom: 0;
  width: 13px; height: 48px; margin-left: -6.5px; border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(135deg, #fff 0 6px, #f27ba0 6px 12px);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, .06);
}
.candle__stick::before { /* wick */
  content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 8px; margin-left: -1px;
  background: #5a3a2a; border-radius: 1px;
}
.flame {
  position: absolute; left: 50%; bottom: 52px;
  width: 16px; height: 28px; margin-left: -8px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 18%, #ffe27a 34%, #ffa53a 62%, rgba(255, 120, 60, 0) 75%);
  box-shadow: 0 0 22px 8px rgba(255, 190, 90, .55);
  transform-origin: 50% 90%;
  animation: flicker 1.1s ease-in-out infinite alternate;
  transition: opacity .25s, transform .3s;
}
.candle:nth-child(2) .flame { animation-delay: .3s; }
.candle:nth-child(3) .flame { animation-delay: .6s; }
.candle:nth-child(4) .flame { animation-delay: .15s; }
@keyframes flicker {
  0%   { transform: scale(1, 1) rotate(-2deg); }
  50%  { transform: scale(.92, 1.08) rotate(2deg); }
  100% { transform: scale(1.04, .96) rotate(-1deg); }
}
.candle.out .flame { opacity: 0; transform: scale(.2, .1); animation: none; }
.smoke {
  position: absolute; left: 50%; bottom: 54px;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: rgba(150, 120, 130, .45);
  opacity: 0;
}
.candle.out .smoke { animation: smoke 1.8s ease-out forwards; }
@keyframes smoke {
  0%   { opacity: .8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(8px, -60px) scale(4); }
}

#blowAll { transition: opacity .5s, transform .5s var(--ease-out); }
#blowAll.gone { opacity: 0; transform: scale(.9); pointer-events: none; }

.wish {
  margin-top: -36px;
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity 1.2s var(--ease) .3s, transform 1.4s var(--ease-out) .3s;
}
.wish.show { opacity: 1; transform: none; }
.wish__hb {
  margin: 0;
  font-family: var(--f-script); font-size: clamp(40px, 11.2vw, 84px); line-height: 1.3; white-space: nowrap;
  color: var(--crimson);
  text-shadow: 0 8px 24px rgba(226, 69, 122, .3);
}
.wish__mr { font-family: var(--f-display); font-size: clamp(22px, 6.2vw, 30px); color: var(--wine); margin-bottom: .6em; }
.wish__line { font-family: var(--f-hand); color: var(--rose); font-size: 1.1em; line-height: 1.8; }

/* =====================================================================
   CH 10 — the letter
   ===================================================================== */
.letter {
  position: relative;
  margin: 18px auto 0; max-width: 560px;
  padding: 42px clamp(22px, 6vw, 46px) 64px;
  border-radius: 6px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 200, 215, .25), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--f-hand);
  font-size: clamp(17.5px, 4.8vw, 20px); line-height: 2;
  box-shadow: var(--shadow-lg);
}
.letter::after { /* washi tape */
  content: ""; position: absolute; top: -14px; left: 50%;
  width: 110px; height: 30px; transform: translateX(-50%) rotate(3deg);
  background: repeating-linear-gradient(45deg, rgba(242, 123, 160, .55) 0 8px, rgba(255, 190, 210, .55) 8px 16px);
}
.js .letter[data-reveal="scale"] { transform: scale(.96) rotate(-.6deg); }
.js .letter[data-reveal].in { transform: rotate(-.6deg); }
.letter::before { /* paper fibre */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.letter p { position: relative; margin-bottom: 1.1em; }
.letter__to { font-size: 1.2em; color: var(--crimson); }
.letter__hi { font-size: 1.3em; color: var(--crimson); }
.letter__mark { background: linear-gradient(transparent 62%, rgba(242, 123, 160, .35) 62%); padding: 0 .1em; }
.letter__sign { text-align: right; font-size: 1.25em; color: var(--crimson); margin-top: 1.4em; }
.seal {
  position: absolute; left: 50%; bottom: -26px;
  width: 56px; height: 56px; margin-left: -28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; color: #ffe1ea;
  background: radial-gradient(circle at 35% 30%, #ef6e98, #b0123f 60%, #7a0d31);
  box-shadow: 0 8px 18px -4px rgba(110, 11, 43, .55);
  animation: beat 2.6s ease-in-out infinite;
}

/* =====================================================================
   SECRET SURPRISE — envelope (deep moment)
   ===================================================================== */
.secret {
  display: grid; place-items: center;
  padding: 80px var(--gutter);
  margin-bottom: 0;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, .05) 2px, transparent 3px) 0 0 / 40px 40px,
    radial-gradient(90% 60% at 50% 50%, #8a1037, #4a0820);
}
.secret__stage { display: grid; place-items: center; width: 100%; }
.secret__stage > * { grid-area: 1 / 1; }

.secret__ask { text-align: center; z-index: 3; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.secret__text {
  font-family: var(--f-hand); font-size: clamp(23px, 6.4vw, 31px); color: #fff !important;
  margin-bottom: 1.3em;
}
.secret .btn--glow { color: var(--crimson); background: linear-gradient(180deg, #fffaf4, #ffe6ec); }
.secret.st1 .secret__ask { opacity: 0; transform: translateY(-20px) scale(.96); pointer-events: none; }

.envelope {
  position: relative; width: min(80vw, 330px); aspect-ratio: 3 / 2;
  perspective: 900px;
  opacity: 0; transform: translateY(30px) scale(.9);
  transition: opacity .9s var(--ease) .3s, transform 1s var(--ease-out) .3s;
  pointer-events: none;
}
.secret.st1 .envelope { opacity: 1; transform: none; }
.secret.st4 .envelope { opacity: 0; transform: translateY(70px) scale(.9); transition-delay: 0s; }
.env__back {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, #f3a9bf, #e07b9c);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.env__letter {
  position: absolute; left: 7%; right: 7%; top: 8%; height: 86%; z-index: 2;
  border-radius: 4px; background: var(--paper);
  display: grid; place-items: start center; padding-top: 6%;
  font-family: var(--f-script); font-size: clamp(30px, 9vw, 40px); color: var(--crimson);
  transition: transform 1.2s var(--ease-out);
}
.secret.st3 .env__letter { transform: translateY(-58%); }
.env__front {
  position: absolute; inset: 0; z-index: 3; border-radius: 10px;
  background: linear-gradient(200deg, #fbd0dc, #f2a3bb);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  background: linear-gradient(180deg, #fcc5d4, #ee98b3);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1s var(--ease), z-index 0s .5s;
}
.secret.st2 .env__flap { transform: rotateX(180deg); z-index: 1; }
.env__seal {
  position: absolute; left: 50%; top: 56%; z-index: 5;
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: #ffe1ea;
  background: radial-gradient(circle at 35% 30%, #ef6e98, #b0123f 60%, #7a0d31);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: opacity .5s, transform .6s var(--ease-out);
}
.secret.st2 .env__seal { opacity: 0; transform: scale(.4); }

.note {
  width: min(92vw, 460px);
  text-align: center;
  padding: 38px 24px 42px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(255, 150, 190, .5);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity 1.2s var(--ease) .2s, transform 1.4s var(--ease-out) .2s;
  pointer-events: none;
  z-index: 2;
}
.secret.st4 .note { opacity: 1; transform: none; pointer-events: auto; }
.note > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out);
}
.secret.st4 .note > * { opacity: 1; transform: none; }
.secret.st4 .note > :nth-child(1) { transition-delay: .5s; }
.secret.st4 .note > :nth-child(2) { transition-delay: 1.2s; }
.secret.st4 .note > :nth-child(3) { transition-delay: 2.4s; }
.secret.st4 .note > :nth-child(4) { transition-delay: 3.6s; }
.secret.st4 .note > :nth-child(5) { transition-delay: 4.6s; }
.note__photo {
  width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--petal), 0 14px 30px -10px rgba(176, 18, 63, .55);
}
.note__photo img { width: 100%; height: 100%; object-fit: cover; }
.note p { font-size: 1.05em; color: var(--ink) !important; }
.note p:nth-of-type(2) { font-family: var(--f-hand); color: var(--rose) !important; font-size: 1.15em; }
.note__name {
  margin: .2em 0 .1em;
  font-family: var(--f-script); font-size: clamp(62px, 18vw, 90px); line-height: 1.15;
  color: var(--crimson);
}
.note__last { margin: 0; color: var(--ink-2) !important; }

/* =====================================================================
   FINAL (deep moment)
   ===================================================================== */
.final {
  display: grid; place-items: center; overflow: hidden;
  margin: 0;
  border-radius: 0;
  padding: calc(70px + env(safe-area-inset-top)) 0 calc(80px + env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 45% at 50% 38%, rgba(255, 150, 190, .28), transparent 70%),
    linear-gradient(180deg, #4a0820 0%, #7a0d31 55%, #a3123d 100%);
  box-shadow: none;
}
.final.in .final__bg.loaded { opacity: .16; }
.final__glow { display: none; }
.final__name { margin-bottom: 8px; }
.final__lines p { color: #ffe3ea; font-size: 1.06em; }
.fl {
  opacity: 0; transform: translateY(16px); filter: blur(8px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease-out), filter 1.6s var(--ease);
}
.final.in .fl { opacity: 1; transform: none; filter: none; }
.final.in .final__lines .fl:nth-child(1) { transition-delay: 2.4s; }
.final.in .final__lines .fl:nth-child(2) { transition-delay: 3.5s; }
.final.in .final__lines .fl:nth-child(3) { transition-delay: 4.7s; }
.final.in .final__lines .fl:nth-child(4) { transition-delay: 5.8s; }
.final.in .final__sign { transition-delay: 7.2s; }
.final.in #restart { transition-delay: 8s; }
.final__lines .fl--big {
  font-family: var(--f-display); font-size: clamp(25px, 7vw, 38px) !important; line-height: 1.55;
  color: #fff !important;
  text-shadow: 0 0 30px rgba(255, 170, 200, .55);
  margin-top: .3em;
}
.final__sign {
  font-family: var(--f-hand); font-size: clamp(22px, 6vw, 28px); color: var(--gold-2) !important;
  margin: 1.4em 0 1.4em;
}

/* =====================================================================
   MUSIC CONTROL
   ===================================================================== */
.music {
  position: fixed; z-index: 75;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.music[hidden] { display: none; }
.music__main, .music__btn {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(226, 69, 122, .25);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--crimson);
  box-shadow: 0 12px 26px -12px rgba(176, 18, 63, .6);
  cursor: pointer; padding: 0;
  touch-action: manipulation;
}
.music__main { position: relative; }
.music__note { font-size: 20px; line-height: 1; transition: opacity .3s; }
.eq { position: absolute; display: flex; align-items: flex-end; gap: 3px; height: 16px; opacity: 0; transition: opacity .3s; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--rose); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .25s; }
.eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music.is-playing:not(.is-muted) .eq { opacity: 1; }
.music.is-playing:not(.is-muted) .music__note { opacity: 0; }

.music__menu {
  display: flex; gap: 10px;
  opacity: 0; transform: translateX(16px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.music.is-open .music__menu { opacity: 1; transform: none; pointer-events: auto; }
.music__btn svg { width: 22px; height: 22px; fill: currentColor; }
.i-pause, .i-mute { display: none; }
.music.is-playing .i-play { display: none; }
.music.is-playing .i-pause { display: block; }
.music.is-muted .i-vol { display: none; }
.music.is-muted .i-mute { display: block; }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  padding: calc(64px + env(safe-area-inset-top)) 16px calc(70px + env(safe-area-inset-bottom));
  background: rgba(58, 8, 26, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb__fig {
  margin: 0; width: 100%; max-width: 760px; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: scale(.94); transition: transform .6s var(--ease-out);
}
.lb.open .lb__fig { transform: none; }
.lb__imgwrap { width: 100%; display: grid; place-items: center; }
.lb__fig img {
  max-width: 100%; max-height: 62vh; max-height: 62svh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
  border: 5px solid #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.lb__fig.swap img { animation: lbSwap .6s var(--ease-out); }
@keyframes lbSwap { from { opacity: 0; transform: scale(.96); filter: blur(8px); } }
.lb__cap { text-align: center; max-width: 520px; padding: 0 6px; }
.lb__cap h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 6vw, 28px); line-height: 1.4; color: #fff; }
.lb__meta { margin: .3em 0 .5em; font-family: var(--f-ui); font-size: 14px; color: var(--gold-2); }
.lb__meta:empty, .lb__desc:empty { display: none; }
.lb__desc { margin: 0; font-size: .95em; color: #ffe3ea; }
.lb__close, .lb__nav {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--crimson); cursor: pointer; padding: 0;
  font-family: var(--f-latin); font-size: 30px; line-height: 1;
}
.lb__close { top: calc(12px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); font-size: 20px; font-family: var(--f-ui); }
.lb__nav { bottom: calc(14px + env(safe-area-inset-bottom)); }
.lb__prev { left: max(16px, env(safe-area-inset-left)); }
.lb__next { right: max(16px, env(safe-area-inset-right)); }
.lb__count {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-family: var(--f-latin); font-style: italic; letter-spacing: .2em; font-size: 15px; color: rgba(255, 227, 234, .7);
}
@media (min-width: 900px) { .lb__nav { top: 50%; bottom: auto; margin-top: -24px; } }

/* =====================================================================
   heart burst particles
   ===================================================================== */
.burst {
  position: fixed; z-index: 86; pointer-events: none;
  color: var(--rose); line-height: 1;
  will-change: transform, opacity;
}

/* =====================================================================
   ACCESSIBILITY — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
}
