/* ============================================================
   "For You" — a cinematic experience
   Night base · warm glow · serif headings + clean sans
   ============================================================ */

:root {
  --night:    #0C0910;
  --night-2:  #120D17;
  --panel:    #181019;
  --panel-2:  #1F1622;
  --line:     rgba(232,176,107,.16);

  --cream:    #F4ECDF;
  --muted:    #B7A693;
  --faint:    #8A7C6E;

  --gold:     #E8B06B;
  --gold-2:   #D89A4E;
  --rose:     #D98A86;
  --rose-2:   #C2706C;
  --wine:     #5A2A33;

  --paper:    #F2E7D2;
  --ink:      #3A2A20;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: 'Playfair Display', Georgia, serif;
  --serif-2: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--night);
  color: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(232,176,107,.3); color: var(--cream); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,48px); }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: clamp(20px,5vw,40px); }

/* ============================================================
   INTRO / LOCK SCREEN
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 40%, #140d18 0%, #0a0710 60%, #060409 100%);
  text-align: center; padding: 24px;
  transition: opacity .9s var(--ease);
}
.intro.gone { opacity: 0; pointer-events: none; }
.intro__glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,107,.18), rgba(217,138,134,.08) 40%, transparent 70%);
  filter: blur(20px); animation: breathe 7s var(--ease) infinite; pointer-events: none;
}
@keyframes breathe { 0%,100%{ transform: scale(.9); opacity:.7; } 50%{ transform: scale(1.08); opacity:1; } }
.intro__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.intro__inner { position: relative; z-index: 2; max-width: 560px; }
.intro__hi {
  font-family: var(--serif); font-size: clamp(30px, 7vw, 60px); font-weight: 500;
  letter-spacing: .01em; min-height: 1.3em; color: var(--cream);
}
.intro__hi em, .intro__hi .nm { font-style: italic; color: var(--gold); }
.caret { color: var(--gold); font-weight: 200; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.intro__gate { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro__gate[hidden] { display: none; }
[hidden] { display: none !important; }
.intro__prompt { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

.hold {
  position: relative; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; touch-action: none;
  transition: transform .3s var(--ease);
}
.hold:active { transform: scale(.96); }
.hold__ring { width: 116px; height: 116px; transform: rotate(-90deg); }
.hold__track { fill: none; stroke: rgba(244,236,223,.14); stroke-width: 3; }
.hold__fill {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 339.292; stroke-dashoffset: 339.292;
  transition: stroke-dashoffset .12s linear;
  filter: drop-shadow(0 0 6px rgba(232,176,107,.6));
}
.hold__dot {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 18px 4px rgba(232,176,107,.55);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:.9; } 50%{ transform: scale(1.5); opacity:.5; } }

/* password variant */
.intro__pass { width: min(440px, 90vw); }
.intro__q { font-family: var(--serif-2); font-size: clamp(19px,3.4vw,24px); color: var(--cream); font-style: italic; }
.intro__passrow {
  display: flex; gap: 10px; width: 100%;
  border-bottom: 1px solid rgba(244,236,223,.25); padding-bottom: 8px;
}
.intro__input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-family: var(--serif-2); font-size: 22px; text-align: center;
}
.intro__input::placeholder { color: var(--faint); }
.intro__go {
  width: 42px; height: 42px; border-radius: 50%; color: var(--night);
  background: var(--gold); display: grid; place-items: center; flex: 0 0 auto;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.intro__go:hover { transform: translateX(2px); background: var(--gold-2); }
.intro__go svg { width: 20px; height: 20px; }
.intro__hint { font-size: 13px; color: var(--rose); min-height: 1.2em; transition: opacity .3s; }
.intro__pass.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }

/* reveal bloom */
.bloom {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff, rgba(255,255,255,0) 60%);
  opacity: 0; transform: scale(.2);
}
.bloom.play { animation: bloom 1.1s var(--ease) forwards; }
@keyframes bloom {
  0% { opacity: 0; transform: scale(.1); }
  40% { opacity: .95; }
  100% { opacity: 0; transform: scale(3); }
}

/* ============================================================
   FLOATING CONTROLS
   ============================================================ */
.mute, .calm {
  position: fixed; z-index: 200; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  background: rgba(24,16,25,.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s;
}
.mute { bottom: 18px; right: 18px; }
.calm { bottom: 18px; right: 72px; }
.mute:hover, .calm:hover { transform: scale(1.08); color: var(--gold); }
.mute svg, .calm svg { width: 20px; height: 20px; }
.mute__off { display: none; }
.mute.muted .mute__on { display: none; }
.mute.muted .mute__off { display: block; }
body.calm-on .calm { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   MAIN / SECTIONS
   ============================================================ */
.site { opacity: 0; transition: opacity 1s var(--ease) .2s; }
.site.show { opacity: 1; }

.section { padding-block: clamp(80px, 13vw, 170px); position: relative; }
.sec-no {
  font-family: var(--serif); font-size: 14px; letter-spacing: .3em; color: var(--gold);
  opacity: .75; margin-bottom: 14px;
}
.sec-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 7vw, 72px); line-height: 1.05; }
.sec-title em { font-style: italic; color: var(--gold); }
.sec-intro { color: var(--muted); max-width: 48ch; margin-top: 18px; font-size: clamp(16px,2.2vw,19px); }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 26px; }

.kicker { font-family: var(--script); font-size: clamp(24px,4vw,34px); color: var(--rose); }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ============================================================
   OPENING / HERO
   ============================================================ */
.opening {
  min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(232,176,107,.10), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, rgba(217,138,134,.10), transparent 60%);
}
.opening__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px,5vw,48px); width: 100%; }
.opening__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 9vw, 104px);
  line-height: 1.02; letter-spacing: -.01em; margin: 14px 0 22px;
}
.opening__sub { color: var(--muted); font-size: clamp(16px,2.4vw,20px); max-width: 40ch; }

/* counter */
.counter { margin-top: 52px; }
.counter__lead { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.counter__grid { display: flex; flex-wrap: wrap; gap: clamp(16px, 4vw, 40px); margin-top: 14px; }
.counter__grid > div { display: flex; flex-direction: column; }
.counter__grid b {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 5vw, 46px);
  color: var(--cream); line-height: 1; font-variant-numeric: tabular-nums;
}
.counter__grid small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.counter__note { font-family: var(--serif-2); font-style: italic; font-size: 20px; color: var(--gold); margin-top: 20px; }

.scrollcue { margin-top: 46px; }
.scrollcue span {
  display: block; width: 1px; height: 50px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite; transform-origin: top;
}
@keyframes cue { 0%,100%{transform:scaleY(.3);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { list-style: none; padding: 0; margin: clamp(40px,7vw,72px) 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), rgba(232,176,107,.1)); opacity: .5;
}
.tl-item { position: relative; padding: 0 0 clamp(40px,6vw,64px) clamp(44px,7vw,72px); }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(232,176,107,.12);
}
.tl-date { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; letter-spacing: .04em; }
.tl-card {
  margin-top: 12px; display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px,3vw,28px);
  align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.tl-card.noimg { grid-template-columns: 1fr; }
.tl-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; }
.tl-h { font-family: var(--serif); font-size: clamp(20px,3vw,26px); font-weight: 500; }
.tl-p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.tl-p em { color: var(--rose); font-style: italic; }

/* ============================================================
   3D GALLERY
   ============================================================ */
.gallery3d .wrap { margin-bottom: clamp(24px,4vw,40px); }
.stage {
  position: relative; height: clamp(440px, 70vw, 620px); width: 100%;
  perspective: 1100px; transform-style: preserve-3d;
  touch-action: pan-y;
}
.pola {
  position: absolute; top: 50%; left: 50%; width: clamp(150px, 22vw, 210px);
  background: #f6f1e7; padding: 10px 10px 0; border-radius: 6px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5); cursor: pointer;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .3s var(--ease);
}
.pola img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 3px; background: #ccc;
  pointer-events: none;
}
.pola figcaption {
  font-family: var(--script); color: #5a4632; font-size: 17px; text-align: center;
  padding: 8px 4px 12px; line-height: 1.2;
}
.pola:hover { box-shadow: 0 34px 70px rgba(0,0,0,.6); z-index: 50 !important; }

/* ============================================================
   REASONS DRAW
   ============================================================ */
.draw { margin-top: clamp(36px,6vw,56px); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.draw__card { width: min(520px, 92vw); min-height: 240px; perspective: 1200px; }
.draw__face {
  position: relative; min-height: 240px; height: 100%;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px,5vw,44px);
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: transform .5s var(--ease), opacity .3s;
}
.draw__face.flip { transform: rotateY(90deg); opacity: 0; }
.draw__quote { font-family: var(--serif); font-size: 60px; color: var(--gold); opacity: .35; line-height: .2; height: 24px; }
.draw__text { font-family: var(--serif-2); font-size: clamp(20px,3.4vw,28px); line-height: 1.4; color: var(--cream); }
.draw__num { margin-top: 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }

.btn-soft {
  padding: 15px 30px; border-radius: 999px; background: var(--gold); color: #2a1c0c;
  font-weight: 600; letter-spacing: .02em; box-shadow: 0 12px 30px rgba(232,176,107,.25);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn-soft:hover { transform: translateY(-2px); background: var(--gold-2); }
.btn-soft:active { transform: translateY(0); }

/* ============================================================
   SOUNDTRACK
   ============================================================ */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: clamp(32px,5vw,48px); }
.track {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.track__media { aspect-ratio: 16/10; background: #0a0710; position: relative; }
.track__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.track__ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px;
  color: var(--faint); font-size: 13px; gap: 6px;
}
.track__ph svg { width: 30px; height: 30px; color: var(--gold); opacity: .7; margin-bottom: 6px; }
.track__now { color: var(--gold-soft, #d9b879); }
.track__now .nowtag {
  display: inline-flex; align-items: center; gap: 7px; color: var(--gold);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.track__now .nowtag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(232,176,107,.6); animation: nowpulse 1.8s var(--ease) infinite;
}
@keyframes nowpulse { 0%{box-shadow:0 0 0 0 rgba(232,176,107,.5)} 70%{box-shadow:0 0 0 7px rgba(232,176,107,0)} 100%{box-shadow:0 0 0 0 rgba(232,176,107,0)} }
.track__body { padding: 18px 20px 22px; }
.track__title { font-family: var(--serif); font-size: 20px; }
.track__artist { color: var(--gold); font-size: 13px; margin-top: 2px; }
.track__note { color: var(--muted); font-size: 14.5px; margin-top: 12px; font-style: italic; font-family: var(--serif-2); font-size: 17px; }

/* ============================================================
   OPEN-WHEN LETTERS
   ============================================================ */
.envgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; margin-top: clamp(36px,6vw,56px); }
.env {
  position: relative; aspect-ratio: 7/5; border-radius: 14px; cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, #efe2c9, #e3d2b2);
  box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: grid; place-items: center; text-align: center; padding: 22px;
}
.env::before { /* flap */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(160deg, #e7d7b8, #d8c39d);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .5s var(--ease); z-index: 2;
}
.env__seal {
  position: absolute; top: 48%; left: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--wine));
  display: grid; place-items: center; color: #f3dcd8; font-family: var(--serif); font-style: italic; font-size: 19px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); transition: transform .4s var(--ease), opacity .3s;
}
.env__label {
  position: relative; z-index: 1; margin-top: 26%; font-family: var(--serif-2); font-style: italic;
  color: #5a4632; font-size: clamp(17px,2.6vw,21px); line-height: 1.25;
}
.env:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,0,0,.5); }
.env:hover::before { transform: rotateX(38deg); }
.env:hover .env__seal { transform: translate(-50%,-50%) scale(.92) rotate(-6deg); }
.env.opened::before { transform: rotateX(180deg); }
.env.opened .env__seal { opacity: 0; transform: translate(-50%,-50%) scale(.4); }

/* ============================================================
   BIG LETTER
   ============================================================ */
.bigletter {
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(232,176,107,.08), transparent 60%);
}
.paper {
  background: linear-gradient(180deg, #f4ead4, #ecdfc3);
  color: var(--ink); border-radius: 6px; padding: clamp(34px,6vw,72px);
  box-shadow: 0 40px 90px rgba(0,0,0,.55); position: relative;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(120,90,50,.05) 0 1px, transparent 1px),
    linear-gradient(180deg, #f4ead4, #ecdfc3);
}
.paper::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  box-shadow: inset 0 0 60px rgba(120,80,40,.12); pointer-events: none;
}
.paper__body { font-family: var(--serif-2); font-size: clamp(18px, 2.6vw, 23px); line-height: 1.85; }
.paper__body p { margin-bottom: 1em; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.paper__body p.in { opacity: 1; transform: none; }
.paper__body .salute { font-family: var(--serif); font-size: 1.3em; font-style: italic; }
.paper__body .sign { font-family: var(--script); font-size: 1.7em; color: var(--wine); margin-top: .3em; }
.paper__body .lead-type { white-space: pre-wrap; }

/* ============================================================
   STAR MAP
   ============================================================ */
.starmap .wrap { margin-bottom: clamp(28px,5vw,48px); }
.sky { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sky canvas {
  width: min(620px, 88vw); height: auto; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #141d33 0%, #0c1120 55%, #070a14 100%);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.5),
              0 0 0 1px rgba(232,176,107,.18), 0 0 0 10px rgba(232,176,107,.05);
}
.sky__cap {
  font-family: var(--serif-2); font-style: italic; font-size: clamp(16px,2.4vw,20px);
  color: var(--gold-soft, #d9b879); letter-spacing: .06em; color: var(--gold);
}

/* ============================================================
   FINAL REVEAL
   ============================================================ */
.final {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: radial-gradient(80% 70% at 50% 50%, #160e1a, #080510 70%);
}
.final__inner { width: min(820px, 92vw); padding: 40px; }
.countdown { font-family: var(--serif); font-size: clamp(70px, 22vw, 200px); color: var(--gold); line-height: 1; min-height: 1em; }
.countdown .n { display: inline-block; animation: pop .9s var(--ease); }
@keyframes pop { 0%{transform:scale(.3);opacity:0} 40%{transform:scale(1.1);opacity:1} 100%{transform:scale(1);opacity:1} }
.final__reveal { animation: fadeUp 1.2s var(--ease); }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.final__line { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 5.5vw, 56px); line-height: 1.25; color: var(--cream); }
.final__line .hl { color: var(--gold); }
.final__extra { margin-top: 34px; display: grid; place-items: center; gap: 14px; }
.final__extra img { width: 180px; height: 180px; border-radius: 14px; background: #fff; padding: 10px; }
.final__extra iframe { width: min(680px,90vw); aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.final__extra p { color: var(--muted); font-size: 14px; }
.final__cartoon {
  width: min(420px, 82vw); height: auto; border-radius: 16px; cursor: pointer;
  box-shadow: 0 26px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(232,176,107,.25), 0 0 0 9px rgba(232,176,107,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.final__cartoon:hover, .final__cartoon:focus-visible {
  transform: translateY(-4px) scale(1.01); outline: none;
  box-shadow: 0 34px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(232,176,107,.5), 0 0 0 9px rgba(232,176,107,.1);
}
.final__hint { font-family: var(--serif-2); font-style: italic; letter-spacing: .12em; text-transform: lowercase; }

/* soundtrack inline audio player */
.track__player { gap: 12px; padding: 16px; }
.track__audio { width: 100%; height: 38px; }
.track__player svg { margin-bottom: 0; }

.endmark { padding: 50px; display: grid; place-items: center; }
.fourteen {
  font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--faint);
  cursor: pointer; transition: color .3s, transform .3s; user-select: none;
}
.fourteen:hover { color: var(--gold); transform: scale(1.1); }

/* ============================================================
   LIGHTBOX + LETTER MODAL
   ============================================================ */
.lb, .letterbox {
  position: fixed; inset: 0; z-index: 800; display: none; place-items: center; padding: 5vw;
  background: rgba(8,5,12,.94); backdrop-filter: blur(8px);
}
.lb.open, .letterbox.open { display: grid; }
.lb__fig { margin: 0; text-align: center; animation: fadeUp .5s var(--ease); }
.lb__fig img { max-width: 88vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__fig figcaption { font-family: var(--script); font-size: 22px; color: var(--gold); margin-top: 16px; }
.lb__close, .letterbox__close {
  position: fixed; top: 20px; right: 20px; z-index: 810; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream); background: rgba(255,255,255,.1);
  transition: background .25s;
}
.lb__close:hover, .letterbox__close:hover { background: rgba(255,255,255,.22); }
.lb__close svg, .letterbox__close svg { width: 22px; height: 22px; }

.letterbox__paper {
  width: min(640px, 92vw); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #f4ead4, #ecdfc3); color: var(--ink);
  border-radius: 8px; padding: clamp(30px,6vw,56px); box-shadow: 0 40px 90px rgba(0,0,0,.6);
  animation: letterIn .6s var(--ease);
}
@keyframes letterIn { from{opacity:0;transform:translateY(24px) scale(.98)} to{opacity:1;transform:none} }
.letterbox__label { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px,4vw,30px); color: var(--wine); margin-bottom: 18px; }
.letterbox__text { font-family: var(--serif-2); font-size: clamp(17px,2.6vw,21px); line-height: 1.8; }
.letterbox__text p { margin-bottom: .9em; }
.letterbox__sign { font-family: var(--script); font-size: 26px; color: var(--wine); margin-top: 18px; }

/* easter egg burst */
.eggburst { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.heart {
  position: absolute; font-size: 22px; will-change: transform, opacity;
  animation: floatUp 2.4s var(--ease) forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-70vh) scale(1.1); opacity: 0; }
}

/* ============================================================
   REDUCED MOTION / CALM MODE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body.calm-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.calm-on .intro__glow,
body.calm-on .hold__dot,
body.calm-on .scrollcue span,
body.calm-on .pola { animation: none !important; }
body.calm-on .paper__body p { opacity: 1 !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tl-card { grid-template-columns: 1fr; }
  .tl-card img { width: 100%; height: 200px; }
  .counter__grid b { font-size: 30px; }
  .mute { bottom: 14px; right: 14px; }
  .calm { bottom: 14px; right: 66px; }
}
