/* ═══════════════════════════════════════════════════════════════
   SHANAI — A Proposal Written in Light
   Palette: midnight plum · rose · blush · antique gold · cream
   ═══════════════════════════════════════════════════════════════ */

:root {
  --plum-950: #0b0512;
  --plum-900: #150a1c;
  --plum-800: #20101f;
  --plum-700: #2e1630;
  --plum-600: #3d1f38;

  --rose-700: #c21847;
  --rose-500: #f43f72;
  --rose-400: #ff6f9c;
  --rose-300: #ff9db8;
  --rose-200: #ffc4d6;
  --rose-100: #ffe3ec;

  --gold: #f5c97b;
  --gold-soft: #d9b36a;
  --cream: #fff5ee;

  --serif: 'Playfair Display', Georgia, serif;
  --body: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--plum-950);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rose-500); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════ FX CANVAS ═══════════ */
#fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   THE GATE
   ═══════════════════════════════════════════════════════════════ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 118%, rgba(244, 63, 114, .38), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% -20%, rgba(245, 201, 123, .14), transparent 55%),
    linear-gradient(180deg, #07030d 0%, #150a1c 55%, #241026 100%);
  transition: opacity 1.1s var(--ease-out), visibility 1.1s;
  overflow: hidden;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-glow {
  position: absolute;
  width: 130vmax; height: 130vmax;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 111, 156, .16) 0%, transparent 42%);
  animation: gateBreath 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gateBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .7; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.gate-inner { position: relative; text-align: center; padding: 24px; z-index: 1; }

.gate-heart { width: clamp(110px, 22vmin, 160px); margin: 0 auto 8px; animation: heartbeat 1.4s ease-in-out infinite; filter: drop-shadow(0 0 42px rgba(244, 63, 114, .55)); }
.gate-heart-svg { width: 100%; height: auto; display: block; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.16); }
  28%      { transform: scale(.97); }
  42%      { transform: scale(1.22); }
  70%      { transform: scale(1); }
}

.gate-kicker {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(.78rem, 2.4vw, .95rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose-200);
  opacity: .85;
  margin-bottom: 10px;
}

.gate-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 8rem);
  line-height: 1.05;
  background: linear-gradient(168deg, #fff0f5 8%, #ffc4d6 28%, #ff6f9c 52%, #f5c97b 78%, #fff0f5 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 30px rgba(255, 111, 156, .35));
}
@keyframes shimmer { 0% { background-position: 50% 0%; } 100% { background-position: 50% 100%; } }

.gate-sub {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-style: italic;
  color: var(--cream);
  opacity: .82;
  margin: 14px 0 34px;
}

.open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  letter-spacing: .04em;
  color: #2b0a16;
  padding: 18px 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(160deg, #ffe3ec 0%, #ffb3cd 30%, #ff6f9c 75%, #f43f72 100%);
  box-shadow: 0 14px 44px rgba(244, 63, 114, .45), 0 2px 0 rgba(255,255,255,.6) inset, 0 -3px 8px rgba(160, 20, 60, .35) inset;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
  overflow: hidden;
}
.open-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 60px rgba(244, 63, 114, .55), 0 2px 0 rgba(255,255,255,.6) inset; }
.open-btn:active { transform: translateY(1px) scale(.98); }
.open-btn-ring {
  position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(255,255,255,.65);
  animation: ringPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%   { opacity: 0; transform: scale(.96); }
  35%  { opacity: .9; }
  100% { opacity: 0; transform: scale(1.25); }
}
.open-btn-heart { color: var(--rose-700); animation: heartbeat 1.4s ease-in-out infinite; }

.gate-note { margin-top: 26px; font-size: .85rem; letter-spacing: .12em; color: rgba(255, 245, 238, .42); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════
   MAIN + SHARED SECTION PIECES
   ═══════════════════════════════════════════════════════════════ */
.main { opacity: 1; }

.section {
  position: relative;
  padding: clamp(72px, 12vh, 130px) clamp(20px, 6vw, 80px);
  text-align: center;
}

.section-head { margin-bottom: clamp(36px, 6vw, 64px); }

.section-kicker {
  font-style: italic;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: clamp(.68rem, 1.8vw, .82rem);
  color: var(--gold);
  opacity: .9;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  color: var(--cream);
  letter-spacing: .01em;
}
.section-title em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--rose-300);
  font-size: 1.18em;
  padding: 0 .08em;
}

.title-divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.title-divider span { display: block; width: clamp(60px, 14vw, 130px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.title-divider i { color: var(--rose-400); font-size: 1.15rem; font-style: normal; animation: heartbeat 1.6s ease-in-out infinite; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(46px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ═══════════════════════════════════════════════════════════════
   SECTION 1 · HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* optional user-drop-in backdrop: assets/hero.jpg (gradient art covers if absent) */
.sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 75% 55% at 50% 118%, rgba(255, 141, 155, .5) 0%, rgba(255, 141, 155, 0) 62%),
    radial-gradient(ellipse 60% 45% at 72% 12%, rgba(245, 201, 123, .22) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 18% 30%, rgba(122, 60, 160, .3) 0%, transparent 60%),
    linear-gradient(180deg, #060213 0%, #140a2c 30%, #2c1030 56%, #57203a 76%, #8f3a3f 88%, #c2604f 100%),
    url('assets/hero.jpg') center 30% / cover no-repeat;
  background-blend-mode: screen, screen, screen, normal, normal;
}

.stars { position: absolute; inset: 0; z-index: -2; }
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: .9;
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
  box-shadow: 0 0 6px 1px rgba(255,255,255,.75);
}
.star.gold { background: #ffe9b8; box-shadow: 0 0 8px 2px rgba(255, 233, 184, .8); }
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

.moon {
  position: absolute;
  z-index: -2;
  top: 9%; right: 12%;
  width: clamp(90px, 16vmin, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffdf0 0%, #f7ead0 45%, #e8d5af 78%, #d9c49a 100%);
  box-shadow:
    0 0 60px 18px rgba(255, 250, 220, .35),
    0 0 140px 60px rgba(255, 244, 205, .18),
    inset -14px -12px 34px rgba(120, 100, 60, .35);
  animation: moonGlow 7s ease-in-out infinite;
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 60px 18px rgba(255,250,220,.35), 0 0 140px 60px rgba(255,244,205,.18), inset -14px -12px 34px rgba(120,100,60,.35); }
  50%      { box-shadow: 0 0 80px 26px rgba(255,250,220,.45), 0 0 180px 80px rgba(255,244,205,.24), inset -14px -12px 34px rgba(120,100,60,.35); }
}
.crater { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #e3d3ac, #c9b687); opacity: .8; }
.c1 { width: 22%; height: 22%; left: 30%; top: 28%; }
.c2 { width: 13%; height: 13%; left: 58%; top: 52%; }
.c3 { width: 9%;  height: 9%;  left: 26%; top: 62%; }

.cloud {
  position: absolute; z-index: -1;
  width: clamp(220px, 40vw, 480px);
  height: clamp(60px, 10vw, 110px);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 205, 220, .28), rgba(255,205,220,0) 70%);
  filter: blur(14px);
  animation: cloudDrift var(--cd, 60s) linear infinite;
}
.cloud-a { top: 16%; left: -30%; --cd: 78s; }
.cloud-b { top: 34%; left: -45%; --cd: 95s; animation-delay: -30s; opacity: .75; }
.cloud-c { top: 7%;  left: -20%; --cd: 66s; animation-delay: -52s; opacity: .6; }
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(180vw); } }

.horizon-glow {
  position: absolute; z-index: -1; bottom: -10%; left: 50%;
  width: 120vw; height: 55vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 171, 145, .42), transparent 65%);
  pointer-events: none;
}

.hill-svg {
  position: absolute; z-index: 0;
  bottom: -2px; left: 0;
  width: 100%; height: clamp(160px, 32vh, 320px);
  display: block;
}
.hill-back  { fill: #23101f; opacity: .92; }
.hill-mid   { fill: #170a14; }
.hill-front { fill: #0d050d; }
.couple { fill: #08030a; }
.couple-arm { stroke: #08030a; }

.fireflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.firefly {
  position: absolute;
  width: var(--size, 5px); height: var(--size, 5px);
  border-radius: 50%;
  background: #ffe98a;
  box-shadow: 0 0 8px 3px rgba(255, 233, 138, .65);
  animation: fireflyFloat var(--fd, 9s) ease-in-out var(--fdelay, 0s) infinite,
             fireflyBlink 2.6s ease-in-out var(--fdelay, 0s) infinite;
}
@keyframes fireflyFloat {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(14px, -34px); }
  50%      { transform: translate(-10px, -62px); }
  75%      { transform: translate(16px, -28px); }
}
@keyframes fireflyBlink { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px;
  transform: translateY(-6vh);
}

.hero-kicker {
  font-style: italic;
  font-size: clamp(.82rem, 2.6vw, 1.08rem);
  letter-spacing: .16em;
  color: rgba(255, 227, 236, .92);
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
  line-height: 1.7;
  margin-bottom: 6px;
  animation: fadeSlideDown 1.6s var(--ease-out) .2s both;
}

.hero-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: 1.1;
  background: linear-gradient(170deg, #fff7fa 5%, #ffd3e1 25%, #ff8fb1 48%, #f43f72 68%, #f5c97b 92%);
  background-size: 100% 220%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate, fadeSlideUp 1.6s var(--ease-out) .45s both;
  filter: drop-shadow(0 10px 44px rgba(244, 63, 114, .4));
}

.hero-tag {
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-style: italic;
  color: var(--cream);
  opacity: .95;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
  margin-top: 2px;
  animation: fadeSlideUp 1.6s var(--ease-out) .7s both;
}

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(44px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 5vh, 54px);
  text-decoration: none;
  color: rgba(255, 245, 238, .85);
  animation: fadeSlideUp 1.4s var(--ease-out) 1.1s both;
}
.scroll-cue-text { font-style: italic; letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; }
.scroll-cue-line { width: 1.5px; height: 64px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-cue-dot {
  position: absolute; left: 50%; top: -12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 2px rgba(245, 201, 123, .8);
  transform: translateX(-50%);
  animation: cueDrop 2.1s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -12px; opacity: 0; } 25% { opacity: 1; } 100% { top: 105%; opacity: .4; } }

/* ═══════════════════════════════════════════════════════════════
   SECTION 2 · REASONS
   ═══════════════════════════════════════════════════════════════ */
.reasons {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244, 63, 114, .12), transparent 60%),
    linear-gradient(180deg, var(--plum-950), #170b18 50%, var(--plum-950));
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 1200px;
  margin: 0 auto;
}

.reason-card {
  position: relative;
  text-align: left;
  padding: 26px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(61, 31, 56, .55), rgba(32, 16, 31, .75));
  border: 1px solid rgba(245, 201, 123, .16);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s;
  overflow: hidden;
}
.reason-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(255, 157, 184, .22), transparent 55%);
  pointer-events: none;
}
.reason-card:hover { transform: translateY(-8px); border-color: rgba(245, 201, 123, .45); box-shadow: 0 34px 80px rgba(0,0,0,.5), 0 0 44px rgba(244,63,114,.18); }

.reason-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .8rem;
  letter-spacing: .28em;
  color: var(--gold);
  opacity: .95;
}

.reason-card h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--rose-200);
  margin: 10px 0 10px;
}

.reason-card p {
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 245, 238, .82);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3 · POLAROID PHOTO
   ═══════════════════════════════════════════════════════════════ */
.photo-section {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(245, 201, 123, .08), transparent 65%),
    linear-gradient(180deg, var(--plum-950), #1d0e1d 55%, var(--plum-950));
}

.polaroid {
  position: relative;
  width: clamp(250px, 62vw, 380px);
  margin: 0 auto;
  background: #fffdf6;
  padding: 16px 16px 0;
  border-radius: 6px;
  transform: rotate(-3.2deg);
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 8px 22px rgba(0,0,0,.4),
    inset 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .6s var(--ease-spring);
}
.polaroid:hover { transform: rotate(0deg) scale(1.03); }

.polaroid img,
.photo-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 300 / 330;
  object-fit: cover;
  border-radius: 3px;
  background: #2b1020;
}

.polaroid figcaption {
  font-family: var(--script);
  font-size: 1.55rem;
  color: #4a2733;
  padding: 14px 8px 20px;
  line-height: 1.35;
}
.polaroid figcaption span { color: #c21847; }
.polaroid figcaption i { color: #e2547e; font-style: normal; }

.tape {
  position: absolute;
  width: 110px; height: 34px;
  top: -14px;
  background: rgba(245, 222, 160, .75);
  border-left: 2px dashed rgba(120, 90, 30, .35);
  border-right: 2px dashed rgba(120, 90, 30, .35);
  box-shadow: 0 3px 8px rgba(0,0,0,.3);
  backdrop-filter: blur(1px);
  opacity: .95;
  z-index: 2;
}
.tape-left  { left: -34px; transform: rotate(-38deg); }
.tape-right { right: -34px; transform: rotate(38deg); }

.photo-note { margin-top: 34px; font-style: italic; font-size: .95rem; color: rgba(255,245,238,.55); }
.photo-note code {
  font-family: 'Courier New', monospace; font-style: normal;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .85em;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 4 · THE QUESTION
   ═══════════════════════════════════════════════════════════════ */
.question {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(244, 63, 114, .22), transparent 65%),
    radial-gradient(ellipse 45% 40% at 50% 55%, rgba(245, 201, 123, .14), transparent 60%),
    linear-gradient(180deg, var(--plum-950), #241026 50%, var(--plum-950));
}

.question-aura {
  position: absolute;
  width: 90vmin; height: 90vmin;
  border-radius: 50%;
  border: 1px solid rgba(245, 201, 123, .12);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  animation: auraSpin 40s linear infinite;
  pointer-events: none;
}
.question-aura::before, .question-aura::after {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 157, 184, .18);
}
.question-aura::after { inset: 18%; border-color: rgba(245, 201, 123, .15); }
@keyframes auraSpin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.question-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 4.6rem);
  line-height: 1.14;
  color: var(--cream);
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}

.question-script {
  display: inline-block;
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.32em;
  background: linear-gradient(165deg, #fff0f5 5%, #ffa4bd 30%, #f43f72 62%, #f5c97b 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 34px rgba(244, 63, 114, .5));
  animation: scriptPulse 2.6s ease-in-out infinite;
  margin-top: .1em;
}
@keyframes scriptPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

.answer-zone {
  position: relative;
  margin-top: clamp(34px, 6vh, 58px);
  min-height: 110px;
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.yes-btn {
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  letter-spacing: .03em;
  color: #fff;
  padding: 20px 46px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(155deg, #ff8fb1 0%, #f43f72 42%, #c21847 100%);
  box-shadow:
    0 18px 54px rgba(244, 63, 114, .5),
    0 3px 0 rgba(255,255,255,.35) inset,
    0 -4px 12px rgba(90, 5, 30, .5) inset;
  animation: yesBreath 2.2s ease-in-out infinite;
  transition: transform .3s var(--ease-spring), font-size .3s;
  overflow: hidden;
}
@keyframes yesBreath {
  0%, 100% { box-shadow: 0 18px 54px rgba(244,63,114,.5), 0 3px 0 rgba(255,255,255,.35) inset; }
  50%      { box-shadow: 0 22px 72px rgba(244,63,114,.72), 0 3px 0 rgba(255,255,255,.4) inset, 0 0 0 6px rgba(244,63,114,.18); }
}
.yes-btn:hover { transform: scale(1.07); }
.yes-btn:active { transform: scale(.97); }
.yes-heart { display: inline-block; }

.no-btn {
  font-family: var(--body);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 245, 238, .75);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s;
  z-index: 5;
  white-space: nowrap;
}
.no-btn.dodging { position: absolute; }

.question-sub {
  margin-top: 22px;
  font-style: italic;
  color: rgba(255, 227, 236, .6);
  letter-spacing: .05em;
  font-size: .98rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 5 · THE LETTER
   ═══════════════════════════════════════════════════════════════ */
.letter {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(245, 201, 123, .1), transparent 60%),
    linear-gradient(180deg, var(--plum-950), #1c0d17 60%, #120812);
}
.letter[hidden] { display: none; }

.letter-paper {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(194, 152, 92, .12), transparent 45%),
    linear-gradient(178deg, #fdf6ea 0%, #f6ead8 100%);
  color: #402533;
  border-radius: 4px 26px 4px 26px;
  padding: clamp(48px, 8vw, 74px) clamp(26px, 6vw, 60px) clamp(40px, 6vw, 56px);
  box-shadow:
    0 50px 110px rgba(0,0,0,.6),
    0 0 0 1px rgba(120, 80, 30, .18),
    inset 0 0 80px rgba(160, 120, 60, .15);
  text-align: left;
  transform: rotate(.4deg);
  animation: paperIn 1.3s var(--ease-out);
}
@keyframes paperIn { from { opacity: 0; transform: translateY(70px) rotate(4deg); } to { opacity: 1; transform: translateY(0) rotate(.4deg); } }

.letter-wax { position: absolute; top: -30px; right: clamp(16px, 6vw, 52px); width: 84px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); transform: rotate(-8deg); }

.letter-date {
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #a0714a;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(160, 113, 74, .35);
  padding-bottom: 14px;
}

.letter-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  color: #7c2a3d;
  margin-bottom: 22px;
}

.letter-body p {
  font-size: 1.13rem;
  line-height: 1.85;
  color: #45303a;
  margin-bottom: 1em;
}
.letter-body .cursor {
  display: inline-block;
  width: .55em; height: 1.1em;
  background: #7c2a3d;
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.letter-sign {
  font-family: var(--script);
  font-size: 1.9rem;
  color: #7c2a3d;
  line-height: 1.5;
  margin-top: 26px;
  text-align: right;
}
.letter-sign span { font-size: .62em; color: #a0714a; letter-spacing: .08em; }

.forever-badge {
  margin: 54px auto 0;
  text-align: center;
  animation: foreverIn 1.4s var(--ease-spring);
}
@keyframes foreverIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.rings-svg { width: clamp(140px, 32vw, 210px); margin: 0 auto 18px; display: block; animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.forever-big {
  font-family: var(--script);
  font-size: clamp(3.4rem, 13vw, 6rem);
  background: linear-gradient(160deg, #fff6e8, #f5c97b 45%, #e2547e 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.forever-big em { font-style: normal; }
.forever-sub { font-style: italic; font-size: 1.2rem; color: rgba(255,245,238,.85); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 70px 20px 90px;
  background: #0c050e;
  border-top: 1px solid rgba(245, 201, 123, .12);
}
.footer-heart { color: var(--rose-500); font-size: 2rem; animation: heartbeat 1.5s ease-in-out infinite; }
.footer-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--rose-100); margin: 18px 0 12px; }
.foot-small { font-size: .82rem; letter-spacing: .14em; color: rgba(255,245,238,.32); text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════════
   FLOATING HEARTS LAYER
   ═══════════════════════════════════════════════════════════════ */
.heart-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.float-heart {
  position: absolute;
  bottom: -60px;
  color: rgba(255, 141, 155, .5);
  font-size: var(--hs, 22px);
  animation: floatUp var(--ft, 16s) linear var(--fdelay, 0s) infinite;
  text-shadow: 0 0 14px rgba(244,63,114,.4);
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translateY(-115vh) translateX(var(--sway, 60px)) rotate(var(--spin, 40deg)); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 150;
  display: flex; align-items: center; gap: 12px;
  background: rgba(21, 10, 28, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 201, 123, .3);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  cursor: pointer;
  color: var(--gold);
  font-family: var(--body);
  font-style: italic;
  letter-spacing: .18em;
  font-size: .72rem;
  text-transform: uppercase;
  transition: transform .3s var(--ease-spring), border-color .3s;
}
.music-toggle:hover { transform: scale(1.06); border-color: rgba(245, 201, 123, .65); }
.mt-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.mt-bars i {
  display: block; width: 3.5px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--rose-400));
  animation: barDance 1.1s ease-in-out infinite;
}
.mt-bars i:nth-child(1) { animation-delay: 0s;    height: 60%; }
.mt-bars i:nth-child(2) { animation-delay: .18s;  height: 100%; }
.mt-bars i:nth-child(3) { animation-delay: .32s;  height: 45%; }
.mt-bars i:nth-child(4) { animation-delay: .12s;  height: 80%; }
@keyframes barDance { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.music-toggle[aria-pressed="false"] .mt-bars i { animation-play-state: paused; transform: scaleY(.25); opacity: .5; }
.music-toggle[aria-pressed="false"] { color: rgba(245, 201, 123, .5); }
.music-toggle[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .reason-grid { grid-template-columns: 1fr; }
  .moon { right: 6%; top: 7%; }
  .answer-zone { flex-direction: column; gap: 18px; }
  .no-btn.dodging { position: absolute; }
  .tape { width: 78px; height: 26px; }
  .tape-left { left: -18px; }
  .tape-right { right: -18px; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION — love gently, not loudly
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .3s !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   COOL-FACTOR UPGRADE · scroll ribbon · petals · sparkles · tilt
   --------------------------------------------------------------- */

/* -- scroll progress ribbon -- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  z-index: 160; pointer-events: none;
  background: rgba(255, 255, 255, .05);
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #c21847, #ff6f9c 35%, #f5c97b 75%, #ffe9b8);
  box-shadow: 0 0 14px rgba(255, 111, 156, .65), 0 0 4px rgba(245, 201, 123, .8);
}

/* -- falling rose petals -- */
.petal-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -46px;
  width: var(--pw, 14px); height: calc(var(--pw, 14px) * 1.3);
  background: radial-gradient(ellipse at 32% 30%, #ffb3cd 0%, #f06a97 45%, #c21847 100%);
  border-radius: 62% 38% 58% 42% / 55% 62% 38% 45%;
  box-shadow: inset -2px -3px 5px rgba(90, 5, 30, .45), 0 2px 6px rgba(0,0,0,.25);
  opacity: var(--po, .9);
  animation: petalFall var(--pd, 15s) linear var(--pdelay, 0s) infinite;
}
.petal:nth-child(3n)    { background: radial-gradient(ellipse at 32% 30%, #ffd9e6 0%, #ff8fb1 50%, #d94a74 100%); }
.petal:nth-child(4n)    { background: radial-gradient(ellipse at 32% 30%, #ff9db8 0%, #e2547e 55%, #a3123a 100%); }
.petal:nth-child(5n)    { background: radial-gradient(ellipse at 32% 30%, #fff0f5 0%, #f5c97b 80%); opacity: .85; }
@keyframes petalFall {
  0%   { transform: translate3d(0, -6vh, 0) rotate(0deg); }
  25%  { transform: translate3d(var(--sway, 60px), 28vh, 0) rotate(160deg); }
  50%  { transform: translate3d(calc(var(--sway, 60px) * -0.6), 55vh, 0) rotate(300deg); }
  75%  { transform: translate3d(var(--sway, 60px), 82vh, 0) rotate(430deg); }
  100% { transform: translate3d(calc(var(--sway, 60px) * -1), 112vh, 0) rotate(560deg); }
}

/* -- cursor sparkle trail -- */
.sparkle {
  position: fixed; z-index: 170; pointer-events: none;
  font-size: var(--ss, 13px);
  color: var(--sc, #f5c97b);
  text-shadow: 0 0 8px currentColor;
  animation: sparkleFade .95s ease-out forwards;
  transform: translate(-50%, -50%);
  user-select: none;
}
@keyframes sparkleFade {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -46px))) scale(1.05) rotate(120deg); }
}

/* -- shooting stars -- */
.shooting-star {
  position: absolute; z-index: 0;
  width: 150px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff 30%, #ffe9b8 60%, transparent);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  transform: rotate(-32deg);
  animation: shoot 1.5s cubic-bezier(.15, .6, .35, 1) forwards;
  pointer-events: none;
}
@keyframes shoot {
  0%   { opacity: 0; translate: 0 0; }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; translate: -62vw 42vh; }
}

/* -- rising sky lanterns -- */
.lanterns { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lantern {
  position: absolute; bottom: -90px;
  width: var(--lw, 22px); height: calc(var(--lw, 22px) * 1.35);
  background: radial-gradient(ellipse at 50% 38%, #fff3c9 0%, #f5c97b 38%, #d98032 78%, #8a3d12 100%);
  border-radius: 46% 46% 52% 52% / 62% 62% 38% 38%;
  box-shadow: 0 0 18px 4px rgba(245, 201, 123, .55), 0 0 44px 10px rgba(255, 176, 66, .28);
  animation: lanternRise var(--ld, 22s) linear var(--ldelay, 0s) infinite;
  opacity: 0;
}
.lantern::after {
  content: ""; position: absolute; left: 50%; top: 38%;
  width: 34%; height: 26%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #fffbe0 0%, #ffd25e 70%, transparent 100%);
  border-radius: 50%;
  animation: flameFlicker .9s ease-in-out infinite alternate;
}
@keyframes lanternRise {
  0%   { transform: translate3d(0, 0, 0) rotate(-2deg); opacity: 0; }
  8%   { opacity: .95; }
  85%  { opacity: .8; }
  100% { transform: translate3d(var(--ldrift, 40px), -105vh, 0) rotate(3deg); opacity: 0; }
}
@keyframes flameFlicker {
  from { transform: translate(-50%, -50%) scale(.85); opacity: .75; }
  to   { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* -- reason cards: pointer-following sheen -- */
.reason-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 226, .16), transparent 62%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.reason-card:hover::before { opacity: 1; }
.reason-card > * { position: relative; z-index: 1; }

/* -- blooming rose divider -- */
.bloom-divider { display: flex; justify-content: center; margin: -30px 0 -34px; position: relative; z-index: 3; }
.bloom-divider svg { width: clamp(150px, 26vw, 230px); overflow: visible; }
.bd-rose { transform-origin: center; transform: scale(.2) rotate(-40deg); opacity: 0; }
.bloom-divider.is-visible .bd-rose { animation: bloomIn 1.15s var(--ease-spring) .1s both; }
@keyframes bloomIn {
  0%   { transform: scale(.2) rotate(-40deg); opacity: 0; }
  60%  { transform: scale(1.35) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.bloom-divider.is-visible .bd-stem { stroke-dasharray: 120; stroke-dashoffset: 120; animation: stemDraw 1.05s ease-out both; }
@keyframes stemDraw { to { stroke-dashoffset: 0; } }

/* -- polaroid 3d tilt + moving glare -- */
.photo-section { perspective: 1100px; }
.polaroid { transform-style: preserve-3d; will-change: transform; }
.polaroid-glare {
  position: absolute; inset: 0; z-index: 4; border-radius: 6px; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.5), transparent 55%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .3s;
}
.polaroid:hover .polaroid-glare { opacity: .55; }

/* -- yes button: travelling light sweep + richer hover lift -- */
.yes-btn::after {
  content: ""; position: absolute; top: -30%; left: -80%;
  width: 55%; height: 160%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-22deg);
  animation: yesSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes yesSweep { 0% { left: -80%; } 55%, 100% { left: 140%; } }

/* -- floating hearts & petals off for reduced motion (CSS layer) -- */
@media (prefers-reduced-motion: reduce) {
  .petal, .sparkle, .shooting-star, .lantern { display: none !important; }
  .scroll-progress span { transition: none; }
}

/* -- scroll choreography · reveal variants -- */
html { scroll-padding-top: 24px; }
.reveal { will-change: transform, opacity, filter; }
.reveal[data-reveal="left"]  { transform: translate(-76px, 30px) rotate(-3deg); }
.reveal[data-reveal="right"] { transform: translate(76px, 30px) rotate(3deg); }
.reveal[data-reveal="scale"] { transform: scale(.68) rotate(-4deg); }
.reveal[data-reveal="drop"]  { transform: translateY(-64px); filter: blur(8px); }
.reveal[data-reveal].is-visible { transform: translate(0, 0) rotate(0) scale(1); filter: blur(0); }

/* hero layers that can transition smoothly */
.sky, .stars, .moon, .hill-svg, .horizon-glow, .hero-content { will-change: transform, opacity, filter; }
.sky { will-change: transform; transform-origin: center 70%; }
