/* =========================================================
   HUSAIN & MALEKA — A YEAR IN STARLIGHT
   Cinematic scroll-driven anniversary site.
   ========================================================= */

:root {
  --bg-0:        #ffe0e9;
  --bg-1:        #f7c4d6;
  --bg-2:        #dca5c9;
  --ink:         #45182f;
  --ink-soft:    #69324b;
  --ink-faint:   #925d74;
  --rose:        #d93170;
  --rose-soft:   #ff8daf;
  --gold:        #c78522;
  --gold-deep:   #8e5f18;
  --violet:      #9d55bd;
  --plum:        #632044;
  --rose-glow:   rgba(217, 49, 112, 0.34);
  --gold-glow:   rgba(199, 133, 34, 0.34);
  --violet-glow: rgba(157, 85, 189, 0.30);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.6, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

html, body {
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 245, 232, 0.82), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 141, 175, 0.34), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(99, 32, 68, 0.24), transparent 40%),
    linear-gradient(180deg, #ffe7ef 0%, var(--bg-0) 34%, #f4c2d4 68%, #e8b2cf 100%);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  html, body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

img, svg { display: block; max-width: 100%; }

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

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--plum);
  border: 2px solid #fff4d6;
  box-shadow:
    0 0 0 1px rgba(69, 24, 47, 0.25),
    0 0 18px rgba(217, 49, 112, 0.74);
  transition: width .25s, height .25s, background .25s;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid rgba(99, 32, 68, 0.76);
  background: rgba(255, 141, 175, 0.10);
  box-shadow:
    0 0 0 1px rgba(255, 244, 214, 0.72),
    0 0 24px rgba(217, 49, 112, 0.34);
  opacity: 0.95;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .25s, opacity .25s, background .25s;
}
.cursor-ring.hover {
  width: 68px;
  height: 68px;
  opacity: 1;
  border-color: var(--rose);
  background: rgba(255, 230, 187, 0.16);
}
.cursor-dot.hover  { width: 6px; height: 6px; background: var(--rose); }

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet));
  box-shadow: 0 0 12px var(--rose-glow);
  z-index: 100;
  transition: width 0.15s linear;
}

/* =========================================================
   COSMIC BACKGROUND
   ========================================================= */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 13%, rgba(255, 245, 229, 0.78) 0%, transparent 38%),
    radial-gradient(ellipse at 82% 16%, rgba(217, 49, 112, 0.32) 0%, transparent 44%),
    radial-gradient(ellipse at 18% 82%, rgba(255, 214, 154, 0.36) 0%, transparent 42%),
    radial-gradient(ellipse at 78% 76%, rgba(99, 32, 68, 0.28) 0%, transparent 48%),
    linear-gradient(180deg, #ffe4ed 0%, #f4bfd2 42%, #ddb0ce 100%);
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.54;
  animation: nebula-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.nebula-1 { width: 480px; height: 480px; top:  -10%; left:  -10%;
            background: radial-gradient(circle, var(--rose) 0%, transparent 70%); }
.nebula-2 { width: 540px; height: 540px; bottom: -15%; right: -10%;
            background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
            animation-duration: 30s; animation-delay: -8s; }
.nebula-3 { width: 360px; height: 360px; top: 40%; left: 60%;
            background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
            opacity: 0.34; animation-duration: 36s; animation-delay: -14s; }

@keyframes nebula-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

.stars-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.stars-layer .star {
  position: absolute;
  background: #fffdf7;
  border-radius: 50%;
  opacity: 0;
  animation: star-twinkle linear infinite;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0; }
  50%      { opacity: var(--peak, 1); }
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, var(--ink) 1px, transparent 2px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0, var(--ink) 1px, transparent 3px);
  mix-blend-mode: overlay;
}

/* Ambient particles canvas */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   UI BUTTONS
   ========================================================= */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 235, 242, 0.62);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(99, 32, 68, 0.22);
  border-radius: 30px;
  cursor: none;
  backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.ui-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-soft), #ffe4a8);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: -1;
}
.ui-btn:hover {
  border-color: var(--rose);
  color: #421b2f;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--rose-glow);
}
.ui-btn:hover::before { opacity: 1; }

.audio-toggle {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
}
.audio-toggle .icon { font-size: 16px; }

/* =========================================================
   INTRO HINT (bouncing dots while user lingers on hero)
   ========================================================= */
.intro-hint {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.intro-hint .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: hint-bounce 1.2s ease-in-out infinite;
}
.intro-hint .dot:nth-child(2) { animation-delay: 0.15s; }
.intro-hint .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-8px); opacity: 1; }
}

/* =========================================================
   SCENES
   ========================================================= */
.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
  z-index: 1;
}

.kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.kicker::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.chapter-num {
  display: inline-block;
  font-family: 'Pinyon Script', cursive;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 10px;
}

/* =========================================================
   TEXT REVEAL UTILS
   ========================================================= */
.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
.reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out);
}
.reveal-mask.in > span {
  transform: translateY(0);
  opacity: 1;
}

.reveal-line {
  overflow: hidden;
  display: block;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
}
.reveal-line.in > span { transform: translateY(0); opacity: 1; }

/* split-up — adjusted by JS to wrap each word/letter */
.split-up { line-height: 1.1; }
.split-up .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.25em;
}
.split-up .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out);
}
.split-up.in .word > span { transform: translateY(0); opacity: 1; }
.split-up.in .word:nth-child(n) > span { transition-delay: calc(var(--i, 0) * 80ms); }

/* =========================================================
   SCENE 1 — HERO
   ========================================================= */
.scene-hero {
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.constellation-stage {
  position: absolute;
  inset: 0;
}
#constellationCanvas { width: 100%; height: 100%; }

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-pretitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(56px, 11vw, 140px);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-amp {
  font-family: 'Pinyon Script', cursive;
  font-size: 0.75em;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin: -0.1em 0;
}
.hero-name { font-style: italic; }
.hero-name > span {
  background: linear-gradient(180deg, #4a1830 0%, #c92868 64%, #9a5f13 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 22px rgba(232, 79, 130, 0.18));
}

.hero-date {
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--ink-faint);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: scroll-cue-fade 1.6s ease 2.5s both;
}
@keyframes scroll-cue-fade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.scroll-cue-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: scroll-cue-drop 2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue-drop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* =========================================================
   SCENE 2 — DATE
   ========================================================= */
.scene-date .date-wrap {
  text-align: center;
  max-width: 680px;
}

.date-numbers {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(64px, 13vw, 180px);
  line-height: 1;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 40px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(99, 32, 68, 0.16));
}
.date-numbers .sep {
  font-family: 'Pinyon Script', cursive;
  font-size: 0.6em;
  -webkit-text-fill-color: var(--ink-faint);
  opacity: 0.6;
}
.date-numbers .digit { display: inline-block; min-width: 0.62em; text-align: center; }

.date-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--ink);
  margin-top: 30px;
}

/* =========================================================
   SCENE 3 — MEETING
   ========================================================= */
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.polaroid-wrap {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.polaroid {
  position: relative;
  width: min(340px, 70vw);
  padding: 18px 18px 60px;
  background: #f6efe2;
  border-radius: 4px;
  box-shadow:
    0 25px 60px rgba(122, 57, 82, 0.18),
    0 10px 25px rgba(122, 57, 82, 0.16),
    inset 0 0 0 1px rgba(0,0,0,0.05);
  transform: rotate(-3deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  color: #221a14;
}

.polaroid .photo-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg, rgba(160,120,60,0.08) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #ebe1cc, #d5c6a8);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 2px;
  overflow: hidden;
}
.polaroid .photo-slot img {
  width: 100%; height: 100%; object-fit: cover;
}
.polaroid .placeholder-icon {
  font-size: 36px; color: var(--gold-deep); opacity: 0.7;
}
.polaroid .photo-slot small {
  font-family: monospace;
  font-size: 10px;
  color: #6b4e36;
  background: rgba(253,246,227,0.7);
  padding: 2px 6px;
  border-radius: 3px;
}

.polaroid-caption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: #5a4030;
}

.polaroid-tape {
  position: absolute;
  width: 70px; height: 18px;
  top: -8px;
  background: rgba(255, 215, 107, 0.65);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: rotate(-12deg);
}
.tape-l { left: -10px; }
.tape-r { right: -10px; transform: rotate(12deg); }

.polaroid-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 30px;
  background: radial-gradient(ellipse, rgba(122,57,82,0.28), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.meet-text h2,
.ring-text h2,
.falling-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ink);
}
.meet-text em, .ring-text em {
  font-style: italic;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paragraph {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* =========================================================
   SCENE 4 — FALLING
   ========================================================= */
.falling-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.chat-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  position: relative;
  backdrop-filter: blur(10px);
}
.chat-bubble.left {
  align-self: flex-start;
  background: rgba(255, 235, 242, 0.72);
  border: 1px solid rgba(99, 32, 68, 0.18);
  border-bottom-left-radius: 6px;
}
.chat-bubble.right {
  align-self: flex-end;
  background: rgba(255, 202, 219, 0.78);
  border: 1px solid rgba(217, 49, 112, 0.26);
  border-bottom-right-radius: 6px;
}
.chat-bubble.center {
  align-self: center;
  background: linear-gradient(135deg, rgba(255,235,242,0.78), rgba(255,211,178,0.62));
  border: 1px solid rgba(199, 133, 34, 0.28);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
}
.falling-wrap.in .chat-bubble {
  opacity: 1;
  transform: translateY(0);
}
.falling-wrap.in .bubble-1 { transition-delay: 0.1s; }
.falling-wrap.in .bubble-2 { transition-delay: 0.4s; }
.falling-wrap.in .bubble-3 { transition-delay: 0.7s; }
.falling-wrap.in .bubble-4 { transition-delay: 1.0s; }
.falling-wrap.in .bubble-5 { transition-delay: 1.3s; }
.falling-wrap.in .bubble-6 { transition-delay: 1.6s; }
.falling-wrap.in .bubble-7 { transition-delay: 2.0s; }

.heart-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.heart-pulse {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 30px;
}
.heart-shape {
  width: 90px; height: 90px;
  background: radial-gradient(circle at 30% 30%, var(--rose-soft), var(--rose) 50%, #b04668 100%);
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 0 60px var(--rose-glow);
  animation: heart-beat 1.4s var(--ease-in-out) infinite;
}
.heart-shape::before, .heart-shape::after {
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: inherit;
}
.heart-shape::before { top: -45px; left: 0; }
.heart-shape::after  { top: 0; right: -45px; }

@keyframes heart-beat {
  0%, 100%   { transform: rotate(-45deg) scale(1); }
  15%, 35%   { transform: rotate(-45deg) scale(1.15); }
  25%        { transform: rotate(-45deg) scale(1.08); }
}

.heart-ring {
  position: absolute;
  inset: 50%;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  opacity: 0;
  animation: ring-expand 2.2s ease-out infinite;
}
.r1 { animation-delay: 0s; }
.r2 { animation-delay: 0.7s; }
.r3 { animation-delay: 1.4s; }
@keyframes ring-expand {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* =========================================================
   SCENE 5 — 365 DAYS
   ========================================================= */
.scene-days {
  padding-top: 14vh;
  padding-bottom: 14vh;
}
.days-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 40px;
}
.days-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 12px 0;
}
.days-header h2 em {
  background: linear-gradient(90deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.days-sub {
  color: var(--ink-soft);
  font-size: 16px;
  font-style: italic;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 4px;
  max-width: 920px;
  width: 100%;
  padding: 18px;
  background: rgba(255, 225, 235, 0.42);
  border: 1px solid rgba(99, 32, 68, 0.14);
  box-shadow: 0 24px 70px rgba(99, 32, 68, 0.13);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.day-cell {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: rgba(99, 32, 68, 0.13);
  border: 1px solid rgba(255, 244, 214, 0.14);
  transition: all 0.5s var(--ease-out);
}
.day-cell.lit {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 6px var(--rose-glow);
}
.day-cell.lit.gold {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.day-cell.lit.violet {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 10px var(--violet-glow);
}
.day-cell:hover {
  transform: scale(1.6);
  z-index: 5;
}

.days-counter {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.days-counter .big {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 80px);
  background: linear-gradient(180deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-feature-settings: 'tnum';
}
.days-counter .small {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================
   SCENE 5.5 — LITTLE MOMENTS
   ========================================================= */
.scene-moments {
  padding: 14vh 6vw;
  gap: 46px;
}

.moments-copy {
  text-align: center;
  max-width: 740px;
}

.moments-copy h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  margin: 12px 0 20px;
}

.memory-strip {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  perspective: 1200px;
}

.memory-card {
  position: relative;
  padding: 12px 12px 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 246, 226, 0.76), transparent 36%),
    linear-gradient(180deg, rgba(255, 235, 242, 0.86), rgba(246, 192, 213, 0.72)),
    rgba(255, 215, 228, 0.78);
  border: 1px solid rgba(99, 32, 68, 0.16);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(99, 32, 68, 0.22);
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.scene-moments.in .memory-card {
  opacity: 1;
  transform: translateY(0);
}

.scene-moments.in .memory-card:nth-child(2) { transition-delay: 0.16s; }
.scene-moments.in .memory-card:nth-child(3) { transition-delay: 0.32s; }

.memory-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 222, 158, 0.58), transparent 34%),
    linear-gradient(145deg, rgba(255, 181, 204, 0.74), rgba(214, 159, 220, 0.56)),
    rgba(255, 232, 240, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.media-carousel {
  cursor: none;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.media-carousel::after {
  content: 'click';
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 244, 214, 0.78);
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}

.media-carousel:hover,
.media-carousel:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(99, 32, 68, 0.20);
  outline: none;
}

.media-carousel:hover::after,
.media-carousel:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.carousel-next {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 244, 214, 0.74);
  border-radius: 50%;
  background: rgba(99, 32, 68, 0.56);
  color: #fff4d6;
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  line-height: 30px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(99, 32, 68, 0.24);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.memory-carousel-card:hover .carousel-next,
.memory-carousel-card:focus-within .carousel-next {
  opacity: 1;
  transform: translateX(0);
}

.carousel-next:hover,
.carousel-next:focus-visible {
  background: rgba(217, 49, 112, 0.82);
  outline: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(99, 32, 68, 0.26);
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.carousel-dot.active {
  background: var(--rose);
  transform: scale(1.35);
}

.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tap-to-unmute speaker button on videos (essential on mobile, where
   there is no hover). Sits in the bottom-right corner of the video. */
.sound-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(40, 12, 26, 0.55);
  color: #fff;
  font-size: 17px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: rgba(217, 49, 112, 0.85);
  transform: scale(1.08);
}
.sound-toggle:active { transform: scale(0.94); }

.media-slot.no-photo {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 222, 158, 0.60), transparent 32%),
    radial-gradient(circle at 30% 70%, rgba(217, 49, 112, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(255, 238, 244, 0.82), rgba(238, 182, 211, 0.82));
}

.memory-photo small {
  max-width: calc(100% - 24px);
  font-family: monospace;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  overflow-wrap: anywhere;
}

.memory-card figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--rose-soft);
}

.memory-note {
  margin-top: 8px;
  min-height: 4.6em;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.memory-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 20px;
  align-items: center;
}

.memory-card-wide figcaption,
.memory-card-wide .memory-note {
  text-align: left;
}

.memory-card-wide figcaption {
  align-self: end;
  margin-top: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.memory-card-wide .memory-note {
  grid-column: 2;
  min-height: auto;
  align-self: start;
  max-width: 520px;
}

/* =========================================================
   SCENE 6 — TWO PATHS
   ========================================================= */
.scene-paths {
  padding: 14vh 6vw;
}
.paths-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 60px);
  margin-bottom: 40px;
  text-align: center;
}

.paths-svg {
  width: min(800px, 100%);
  height: auto;
}
.love-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.5s var(--ease-in-out);
}
.scene-paths.in #pathH,
.scene-paths.in #pathM { stroke-dashoffset: 0; }

.path-label {
  fill: var(--ink-soft);
  font-family: 'Pinyon Script', cursive;
  font-size: 28px;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.scene-paths.in .path-label { opacity: 1; }

.path-meet circle:first-child { transition: r 0.8s var(--ease-spring) 2.2s; }
.path-meet circle:last-child  { transition: r 1.4s var(--ease-out) 2.4s, opacity 1s 2.4s; }
.scene-paths.in .path-meet circle:first-child { r: 12; }
.scene-paths.in .path-meet circle:last-child  { r: 40; opacity: 0; }

/* =========================================================
   SCENE 7 — RING
   ========================================================= */
.scene-ring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: 14vh 6vw;
}
@media (max-width: 880px) {
  .scene-ring,
  .meet-grid,
  .falling-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    place-items: center;
  }
  .meet-text, .ring-text { text-align: center; }
}

.ring-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  perspective: 800px;
}
.ring-3d {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: ring-rotate 14s linear infinite;
}
@keyframes ring-rotate {
  0%   { transform: rotateY(-12deg) rotateX(8deg); }
  50%  { transform: rotateY(12deg) rotateX(-4deg); }
  100% { transform: rotateY(-12deg) rotateX(8deg); }
}

.ring-band {
  width: 55%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 14px solid transparent;
  background:
    linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
    conic-gradient(from 0deg,
      #f7d27a, #fff4b8, #c9a24a, #fff4b8, #d4a754, #fff8c2, #b8862c, #f7d27a) border-box;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.6));
  position: relative;
}
.ring-band::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(transparent 0deg, rgba(255,255,255,0.6) 30deg, transparent 60deg);
  filter: blur(12px);
  animation: ring-shine 4s linear infinite;
  pointer-events: none;
}
@keyframes ring-shine {
  to { transform: rotate(360deg); }
}

.ring-stone {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%) translateZ(20px);
  width: 26%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
}
.stone-facet {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #e6f4ff 30%, #ffdee9 60%, #fff8c2 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
  filter: brightness(1.1);
}
.stone-facet.f2 { clip-path: polygon(50% 10%, 90% 50%, 50% 90%, 10% 50%);
                  background: linear-gradient(135deg, #ffd1e1, #fff, #c8e8ff); opacity: 0.85; }
.stone-facet.f3 { clip-path: polygon(50% 25%, 80% 50%, 50% 75%, 20% 50%);
                  background: linear-gradient(135deg, #fff8c2, #fff, #ffd1e1); opacity: 0.85; }
.stone-facet.f4 { clip-path: polygon(50% 40%, 65% 50%, 50% 60%, 35% 50%);
                  background: #fff; opacity: 1; }
.stone-shine {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(255,255,255,0.9) 30deg,
    transparent 60deg,
    transparent 180deg,
    rgba(255,200,220,0.7) 200deg,
    transparent 230deg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: stone-rotate 6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes stone-rotate {
  to { transform: rotate(360deg); }
}

.ring-sparkle {
  position: absolute;
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 12px white, 0 0 24px var(--gold);
  opacity: 0;
  animation: sparkle-pop 3s ease-in-out infinite;
}
.s1 { top: 10%; left: 70%; animation-delay: 0s; }
.s2 { top: 30%; left: 20%; animation-delay: 0.4s; }
.s3 { top: 60%; left: 80%; animation-delay: 0.8s; }
.s4 { top: 80%; left: 35%; animation-delay: 1.2s; }
.s5 { top: 20%; left: 50%; animation-delay: 1.6s; }
.s6 { top: 50%; left: 10%; animation-delay: 2.0s; }
@keyframes sparkle-pop {
  0%, 100% { transform: scale(0); opacity: 0; }
  50%      { transform: scale(1); opacity: 1; }
}

/* =========================================================
   SCENE 8 — FOREVER
   ========================================================= */
/* Size this scene to its content instead of forcing a full viewport,
   which left a large empty gap below the tagline. */
.scene-forever {
  min-height: auto;
  padding-top: 16vh;
  padding-bottom: 16vh;
}
.scene-forever .forever-wrap {
  text-align: center;
  max-width: 800px;
}
.forever-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0 30px;
}
.forever-amp {
  font-family: 'Pinyon Script', cursive;
  font-size: 0.65em;
  color: var(--gold);
  margin: -0.15em 0;
}

.starlight-text {
  display: inline-block;
  font-style: italic;
  background:
    linear-gradient(90deg, var(--ink), var(--gold) 50%, var(--rose) 75%, var(--ink)) 0 0 / 200% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px var(--gold-glow));
  animation: starlight-shift 6s linear infinite;
}
@keyframes starlight-shift {
  0%   { background-position:   0% 0%; }
  100% { background-position: 200% 0%; }
}

.infinity-svg {
  width: min(360px, 80vw);
  height: auto;
  margin: 30px auto 20px;
  display: block;
}
#infinityPath {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 3.5s var(--ease-in-out);
}
.scene-forever.in #infinityPath { stroke-dashoffset: 0; }

.forever-tag {
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--ink-soft);
  margin-top: 14px;
}

/* =========================================================
   SCENE 9 — LETTER (envelope opens)
   ========================================================= */
.scene-letter {
  perspective: 1400px;
  padding: 18vh 6vw;
}

.envelope {
  position: relative;
  width: min(540px, 90vw);
  aspect-ratio: 1.5 / 1;
  margin: 0 auto 60px;
  transform-style: preserve-3d;
  cursor: none;
  transition: transform 0.6s var(--ease-out);
}

.env-back, .env-front, .env-flap {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.env-back {
  background: linear-gradient(135deg, #6b3d8a, #3d2152);
  z-index: 1;
}
.env-front {
  background: linear-gradient(135deg, #b04668, #8a2d4e);
  clip-path: polygon(0 50%, 50% 100%, 100% 50%, 100% 100%, 0 100%);
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255,215,107,0.4);
}
.env-flap {
  background: linear-gradient(135deg, #c25979, #b04668);
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  z-index: 5;
  transform-origin: top;
  transition: transform 1.3s var(--ease-in-out);
  box-shadow: inset 0 0 0 1px rgba(255,215,107,0.4);
}
.envelope.opened .env-flap {
  transform: rotateX(-180deg);
}

.env-seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 6;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd76b, #c9a24a 70%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: #4a2515;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(0,0,0,0.15);
  transition: opacity 0.4s ease;
}
.env-seal span { color: var(--rose); margin: 0 1px; }
.envelope.opened .env-seal { opacity: 0; }

.letter-sheet {
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(transparent 0 30px, rgba(140, 106, 37, 0.1) 30px 31px),
    linear-gradient(180deg, #fffaeb 0%, #f6e7c2 100%);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,107,0.3);
  padding: 30px 36px;
  color: #3a2a1a;
  text-align: left;
  z-index: 3;
  transform: translateY(0) scale(0.6);
  opacity: 0;
  transition: transform 1.4s var(--ease-spring) 0.6s, opacity 0.8s ease 0.7s;
  font-family: 'Cormorant Garamond', serif;
}


.envelope {
  overflow: visible;
}

.envelope.opened {
  transform: translateY(-40px);
}

.envelope.opened .letter-sheet {
  transform: translateY(-60%) scale(1);
  opacity: 1;
  z-index: 999;
}

.letter-sheet {
  position: absolute;
  z-index: 999;
}

.env-front,
.env-back,
.env-flap {
  z-index: 1;
}

.letter-sheet {
  max-height: 80vh;
  overflow-y: auto;
}

.letter-greeting {
  font-family: 'Pinyon Script', cursive;
  font-size: 32px;
  color: #5a2540;
  margin-bottom: 14px;
}
.letter-body {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.75;
  white-space: pre-wrap;
  min-height: 220px;
}
.letter-body .cursor {
  display: inline-block;
  width: 2px; height: 16px;
  background: #5a2540;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursor-blink .85s steps(2) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

.letter-sign {
  margin-top: 18px;
  text-align: right;
  font-style: italic;
  opacity: 0;
  transition: opacity 1s ease;
}
.letter-sign.show { opacity: 1; }
.letter-sign span {
  display: inline-block;
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-size: 30px;
  color: #5a2540;
  margin-top: 4px;
}

.letter-hint {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 60px;
  animation: hint-fade 2s ease-in-out infinite;
  transition: opacity 0.5s;
}
.letter-hint.hidden { opacity: 0; }
@keyframes hint-fade {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* =========================================================
   SCENE 10 — FINALE
   ========================================================= */
.scene-finale {
  min-height: 100vh;
  text-align: center;
}
.finale-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.finale-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold);
}
.finale-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1.05;
}
.finale-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 1.4s var(--ease-spring);
}
.scene-finale.in .w1 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.2s; }
.scene-finale.in .w2 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.6s; }
.scene-finale.in .w3 { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.1s; }

.finale-name {
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px var(--rose-glow));
}

.finale-sub {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--rose-soft);
  margin-top: 6px;
}

.finale-heart {
  font-size: clamp(64px, 12vw, 110px);
  color: var(--rose);
  text-shadow: 0 0 40px var(--rose-glow);
  animation: heart-throb 1.4s ease-in-out infinite;
  margin: 10px 0 20px;
}
@keyframes heart-throb {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.2); }
  40%      { transform: scale(1.08); }
}

.replay-btn { margin-top: 20px; }

/* =========================================================
   CLICK HEARTS + CURSOR TRAIL
   ========================================================= */
.click-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 14px currentColor;
  animation: click-heart-rise 1.5s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes click-heart-rise {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0;
         transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -80px))) scale(0.3) rotate(var(--rot, 0deg)); }
}

.trail-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--rose);
  opacity: 0;
  text-shadow: 0 0 8px var(--rose-glow);
  animation: trail-heart 1.1s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes trail-heart {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(0.2) rotate(20deg); }
}

/* =========================================================
   FLOATY HEARTS (rising from the beating heart)
   ========================================================= */
.floaty-heart {
  position: absolute;
  bottom: 50%;
  left: 50%;
  font-size: 18px;
  color: var(--rose);
  text-shadow: 0 0 14px var(--rose-glow);
  opacity: 0;
  animation: floaty-rise 4.5s ease-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
.floaty-heart.fh1 { animation-delay: 0s;    --dx:  20px; }
.floaty-heart.fh2 { animation-delay: 1s;    --dx: -28px; font-size: 14px; }
.floaty-heart.fh3 { animation-delay: 2s;    --dx:  36px; font-size: 22px; }
.floaty-heart.fh4 { animation-delay: 2.8s;  --dx: -16px; font-size: 12px; opacity: 0; color: var(--gold); }
.floaty-heart.fh5 { animation-delay: 3.6s;  --dx:  10px; font-size: 20px; color: var(--rose-soft); }
@keyframes floaty-rise {
  0%   { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 20px)), -240px) scale(1.4) rotate(8deg); opacity: 0; }
}

/* =========================================================
   SCENE — RUMI QUOTE
   ========================================================= */
.scene-quote {
  min-height: 90vh;
  position: relative;
}
.quote-frame {
  text-align: center;
  max-width: 760px;
  padding: 60px 30px;
  position: relative;
  z-index: 2;
}
.quote-ornament {
  font-family: 'Pinyon Script', cursive;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 8px;
  opacity: 0.7;
}
.quote-ornament.top { margin-bottom: 30px; }
.quote-ornament.bottom { margin-top: 30px; }

.rumi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.2;
  color: var(--ink);
}
.quote-line { display: block; }
.rumi-quote .line-1 span {
  background: linear-gradient(120deg, var(--ink), var(--rose-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rumi-quote .line-2 span {
  background: linear-gradient(120deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px var(--rose-glow));
}
.rumi-quote .line-2 { margin-top: 6px; }

.reveal-mask.in.line-2 > span { transition-delay: 0.6s; }

.quote-cite {
  display: block;
  margin-top: 26px;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold);
}

.rose-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.rose-rain .rose {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, var(--rose-soft), var(--rose) 50%, #8a2d4e 100%);
  border-radius: 60% 40% 60% 40% / 70% 70% 30% 30%;
  opacity: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  animation: rose-fall linear infinite;
  will-change: transform, opacity;
}
@keyframes rose-fall {
  0%   { transform: translate(0, -40px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translate(var(--rx, 60px), 110vh) rotate(540deg); opacity: 0; }
}

/* =========================================================
   SCENE — VOWS / PROMISE
   ========================================================= */
.scene-vows {
  padding: 16vh 6vw;
}
.vows-wrap {
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 40px 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 214, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(255, 229, 238, 0.76), rgba(238, 182, 211, 0.66));
  border: 1px solid rgba(99, 32, 68, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(99, 32, 68, 0.22), inset 0 0 0 1px rgba(255, 244, 214, 0.46);
}
.vows-wrap::before,
.vows-wrap::after {
  content: '❀';
  position: absolute;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.7;
}
.vows-wrap::before { top: 14px; left: 18px; }
.vows-wrap::after  { bottom: 14px; right: 18px; }

.vows-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 76px);
  margin: 14px 0 30px;
  color: var(--rose);
}
/* split-up wraps each word in nested spans, which breaks a parent-level
   background-clip:text gradient — so apply the gradient per word instead. */
.vows-title .word > span {
  background: linear-gradient(90deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vows-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 540px;
  text-align: left;
}
.vows-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px dashed rgba(255, 215, 107, 0.15);
}
.vows-list li:last-child { border-bottom: none; }

.vow-bullet {
  display: inline-block;
  width: 1em;
  flex-shrink: 0;
  color: var(--rose);
  text-shadow: 0 0 10px var(--rose-glow);
  transform: scale(0) rotate(-30deg);
  transition: transform 0.7s var(--ease-spring);
}
.vow-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease-out);
  font-style: italic;
  color: var(--ink-soft);
}
.vows-list.in li:nth-child(1) .vow-bullet { transition-delay: 0.20s; transform: scale(1) rotate(0); animation: vow-bullet-throb 2s ease-in-out 1.5s infinite; }
.vows-list.in li:nth-child(2) .vow-bullet { transition-delay: 0.90s; transform: scale(1) rotate(0); animation: vow-bullet-throb 2s ease-in-out 2.2s infinite; }
.vows-list.in li:nth-child(3) .vow-bullet { transition-delay: 1.60s; transform: scale(1) rotate(0); animation: vow-bullet-throb 2s ease-in-out 2.9s infinite; }
.vows-list.in li:nth-child(4) .vow-bullet { transition-delay: 2.30s; transform: scale(1) rotate(0); animation: vow-bullet-throb 2s ease-in-out 3.6s infinite; }
.vows-list.in li:nth-child(5) .vow-bullet { transition-delay: 3.00s; transform: scale(1) rotate(0); animation: vow-bullet-throb 2s ease-in-out 4.3s infinite; }
.vows-list.in li:nth-child(1) .vow-text { transition-delay: 0.40s; clip-path: inset(0 0 0 0); }
.vows-list.in li:nth-child(2) .vow-text { transition-delay: 1.10s; clip-path: inset(0 0 0 0); }
.vows-list.in li:nth-child(3) .vow-text { transition-delay: 1.80s; clip-path: inset(0 0 0 0); }
.vows-list.in li:nth-child(4) .vow-text { transition-delay: 2.50s; clip-path: inset(0 0 0 0); }
.vows-list.in li:nth-child(5) .vow-text { transition-delay: 3.20s; clip-path: inset(0 0 0 0); }

@keyframes vow-bullet-throb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.vows-sign {
  display: block;
  margin-top: 28px;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--rose-soft);
}

/* =========================================================
   SCENE — REASONS I LOVE YOU (flip cards)
   ========================================================= */
.scene-reasons {
  padding: 14vh 6vw;
}
.reasons-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.reasons-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 70px);
  margin: 12px 0;
}
.reasons-title em {
  background: linear-gradient(90deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reasons-sub {
  color: var(--ink-faint);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1400px;
}
@media (max-width: 760px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.reason-card {
  aspect-ratio: 4 / 5;
  cursor: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reasons-grid.in .reason-card { opacity: 1; transform: translateY(0); }
.reasons-grid.in .reason-card[data-i="1"] { transition-delay: 0.05s; }
.reasons-grid.in .reason-card[data-i="2"] { transition-delay: 0.15s; }
.reasons-grid.in .reason-card[data-i="3"] { transition-delay: 0.25s; }
.reasons-grid.in .reason-card[data-i="4"] { transition-delay: 0.35s; }
.reasons-grid.in .reason-card[data-i="5"] { transition-delay: 0.45s; }
.reasons-grid.in .reason-card[data-i="6"] { transition-delay: 0.55s; }

.reason-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-spring);
}
.reason-card.flipped .reason-inner,
.reason-card:hover .reason-inner {
  transform: rotateY(180deg);
}
.reason-card.flipped:hover .reason-inner {
  transform: rotateY(0deg);
}

.reason-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(99, 32, 68, 0.24),
    inset 0 0 0 1px rgba(99, 32, 68, 0.16);
}
.reason-face.front {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 224, 154, 0.52), transparent 60%),
    linear-gradient(160deg, rgba(255, 230, 238, 0.88), rgba(232, 173, 205, 0.86));
}
.reason-face.back {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 141, 175, 0.48), transparent 60%),
    linear-gradient(160deg, rgba(255, 233, 241, 0.90), rgba(235, 181, 211, 0.92));
  transform: rotateY(180deg);
}
.reason-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px var(--gold-glow));
  line-height: 1;
}
.reason-icon {
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--gold);
  opacity: 0.8;
}
.reason-face.back p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
  color: var(--ink);
}
.reason-face.back em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), var(--rose-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.reasons-foot {
  text-align: center;
  margin-top: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-soft);
}

/* =========================================================
   CELEBRATION CANVAS
   ========================================================= */
.celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .scene { padding: 10vh 5vw; }
  .hero-title { font-size: clamp(48px, 14vw, 92px); }
  .date-numbers { font-size: clamp(48px, 16vw, 110px); }
  .days-grid { grid-template-columns: repeat(20, 1fr); gap: 3px; padding: 12px; }
  .memory-strip { grid-template-columns: 1fr; max-width: 400px; }
  .memory-card-wide {
    grid-column: auto;
    display: block;
  }
  .memory-card-wide figcaption,
  .memory-card-wide .memory-note {
    text-align: center;
  }
  .audio-toggle { top: 14px; right: 14px; width: 38px; height: 38px; }
  .scroll-cue { display: none; }
  .heart-pulse { width: 160px; height: 160px; }
  .heart-shape { width: 70px; height: 70px; }
  .heart-shape::before, .heart-shape::after { width: 70px; height: 70px; }
  .heart-shape::before { top: -35px; }
  .heart-shape::after  { right: -35px; }
  .letter-sheet { padding: 22px 24px; }
  .letter-body { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  html { scroll-behavior: auto; }
  .reveal-mask > span,
  .reveal-line > span,
  .split-up .word > span,
  .chat-bubble,
  .memory-card,
  .reason-card,
  .finale-word {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

.reason-card {
  position: relative;
  overflow: hidden;
}

.reason-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.reason-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reason-face.back {
  transform: rotateY(180deg);
}

.reason-card:hover .reason-inner {
  transform: none;
}
