/* ============================================================
   TWENTY-TWO — A Little Piece of My Heart
   Luxury romantic stylesheet
   ============================================================ */

:root {
  /* palette */
  --black: #0B0B0B;
  --wine: #A30015;
  --rose: #FF4D6D;
  --cream: #FFF8F0;
  --blush: #FFD6DD;

  --black-soft: #14100f;
  --glass-bg: rgba(255, 248, 240, 0.06);
  --glass-border: rgba(255, 214, 221, 0.18);
  --glass-shadow: rgba(163, 0, 21, 0.25);

  /* type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
  --font-numeral: 'Bodoni Moda', serif;

  --container: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* ============================================================
   AMBIENT LAYERS — stars + floating hearts
   ============================================================ */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, #1a1010 0%, var(--black) 60%);
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blush);
  opacity: 0.6;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.6); }
}

.floating-hearts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -40px;
  font-size: 1.1rem;
  color: var(--rose);
  opacity: 0.55;
  pointer-events: auto;
  cursor: pointer;
  animation: floatUp linear forwards;
  filter: drop-shadow(0 0 6px rgba(255, 77, 109, 0.45));
  user-select: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-50vh) translateX(20px) rotate(15deg); }
  90% { opacity: 0.5; }
  100% { transform: translateY(-105vh) translateX(-15px) rotate(-10deg); opacity: 0; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-seal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numeral);
  font-size: 1.6rem;
  color: var(--rose);
  animation: pulseSeal 1.6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.25);
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 77, 109, 0.2); }
  50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(255, 77, 109, 0.45); }
}

.loader-text {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--blush);
  text-transform: lowercase;
}

.dots span {
  animation: dotBlink 1.4s infinite;
  opacity: 0;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================================
   ENVELOPE STAGE
   ============================================================ */
.envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(ellipse at center, #1c1210 0%, var(--black) 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 1s ease, visibility 1s ease, transform 1s ease;
}

.envelope-stage.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

.envelope {
  position: relative;
  width: min(78vw, 320px);
  height: min(56vw, 220px);
  perspective: 1200px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2a1414, #170c0c);
  border: 1px solid rgba(255, 214, 221, 0.15);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(163,0,21,0.15);
}

.envelope-letter {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  height: 70%;
  background: var(--cream);
  color: var(--black);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(.22,1,.36,1);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.envelope-letter-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.envelope-letter-line.small {
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--wine);
  text-transform: uppercase;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(160deg, #3a1a1a, #200f0f);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 1s cubic-bezier(.22,1,.36,1);
  z-index: 3;
  border-bottom: 1px solid rgba(255,214,221,0.1);
}

.envelope-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--wine));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numeral);
  color: var(--cream);
  font-size: 1.15rem;
  z-index: 4;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(163,0,21,0.5);
  transition: transform 0.4s ease, opacity 0.6s ease;
  animation: sealBreathe 2.2s ease-in-out infinite;
}

@keyframes sealBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.07); }
}

.envelope-seal:hover { transform: translate(-50%, -50%) scale(1.12); }

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}
.envelope.open .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
}
.envelope.open .envelope-letter {
  transform: translateY(-135%);
}

.envelope-hint {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--blush);
  opacity: 0.8;
  animation: hintFade 2s ease-in-out infinite;
  text-transform: lowercase;
}

@keyframes hintFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* ============================================================
   MUSIC PLAYER
   ============================================================ */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.music-player.show { opacity: 1; transform: translateY(0); }

.music-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose), var(--wine));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  flex-shrink: 0;
}

.music-icon { font-size: 1rem; }

.music-bars {
  position: absolute;
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.music-bars i {
  width: 2px;
  background: var(--cream);
  animation: barBounce 0.8s infinite ease-in-out;
}
.music-bars i:nth-child(1){ animation-delay: 0s; height: 6px;}
.music-bars i:nth-child(2){ animation-delay: 0.2s; height: 12px;}
.music-bars i:nth-child(3){ animation-delay: 0.4s; height: 8px;}

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.music-player.playing .music-icon { display: none; }
.music-player.playing .music-bars { display: flex; }

.music-label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--blush);
  white-space: nowrap;
}

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
.main-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
}
.main-content.show { opacity: 1; }

.section {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.6rem;
  display: block;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.section-title.center { text-align: center; }

.accent { color: var(--rose); font-style: italic; }
.accent-text { color: var(--rose); }

/* glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 2.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
}

.hero-badge {
  font-family: var(--font-numeral);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--blush);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-numeral);
  font-weight: 900;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.95;
  display: flex;
  flex-direction: column;
}
.hero-title-line { color: var(--cream); }
.hero-title-line.accent {
  color: var(--rose);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 700;
}

.hero-subtitle {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--blush);
  min-height: 2.4em;
}

.hero-names {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}
.heart-divider { color: var(--rose); margin: 0 0.4rem; }

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue span {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--rose), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
.scroll-cue p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--blush);
  opacity: 0.7;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BIRTHDAY
   ============================================================ */
.birthday-card { text-align: center; }
.birthday-copy {
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.85;
  max-width: 60ch;
  margin: 0 auto;
}

.heartbeat-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.heartbeat {
  width: 26px;
  height: 26px;
  background: var(--rose);
  transform: rotate(45deg);
  position: relative;
  animation: beat 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255,77,109,0.5));
}
.heartbeat::before, .heartbeat::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--rose);
  border-radius: 50%;
}
.heartbeat::before { top: -13px; left: 0; }
.heartbeat::after { top: 0; left: -13px; }
@keyframes beat {
  0%, 100% { transform: rotate(45deg) scale(1); }
  20% { transform: rotate(45deg) scale(1.15); }
  40% { transform: rotate(45deg) scale(0.95); }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 3rem; }
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--wine), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 3rem;
}
.timeline-item.reverse { justify-content: flex-end; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.6rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255,77,109,0.15);
  z-index: 2;
}

.timeline-card { width: 44%; }
.timeline-year {
  font-family: var(--font-numeral);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--rose);
  text-transform: uppercase;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.5rem 0 0.6rem;
}
.timeline-card p { font-size: 0.92rem; opacity: 0.85; }

/* ============================================================
   ANNIVERSARY DEBATE
   ============================================================ */
.debate-chat { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-bubble {
  max-width: 75%;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  font-size: 0.95rem;
  position: relative;
}
.chat-bubble .chat-name {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.2rem;
}
.chat-bubble.left {
  align-self: flex-start;
  background: rgba(255,214,221,0.1);
  border-bottom-left-radius: 4px;
}
.chat-bubble.right {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,77,109,0.25), rgba(163,0,21,0.25));
  border-bottom-right-radius: 4px;
  text-align: right;
}
.debate-verdict {
  margin-top: 1rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.debate-verdict p { font-size: 0.95rem; opacity: 0.8; }
.verdict-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.2rem !important;
  margin-top: 0.5rem;
  opacity: 1 !important;
}

/* ============================================================
   FIGHTS
   ============================================================ */
.fights-copy { font-size: 1rem; opacity: 0.85; margin-bottom: 1rem; max-width: 65ch; }
.fights-highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--rose);
  margin-top: 1.5rem;
}

/* ============================================================
   DISTANCE
   ============================================================ */
.distance-section { text-align: center; }
.distance-intro {
  max-width: 60ch;
  margin: 0 auto 0.8rem;
  font-size: 1.05rem;
  opacity: 0.85;
}
.distance-intro.accent-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
}

/* ============================================================
   THINGS I MISS
   ============================================================ */
.miss-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.miss-card {
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform 0.4s ease;
}
.miss-card:hover { transform: translateY(-6px); }
.miss-icon { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; }
.miss-card p { font-size: 0.92rem; opacity: 0.85; }

/* ============================================================
   22 REASONS
   ============================================================ */
.reasons-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.reason-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.reason-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,77,109,0.5);
}
.reason-num {
  font-family: var(--font-numeral);
  color: var(--rose);
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.reason-card p { font-size: 0.92rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.polaroid {
  background: var(--cream);
  padding: 0.7rem 0.7rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.06) translateY(-6px);
  box-shadow: 0 25px 50px rgba(163,0,21,0.35);
  z-index: 5;
}
.polaroid-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-family: var(--font-numeral);
  font-size: 1.6rem;
  overflow: hidden;
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-caption {
  color: var(--black);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  text-align: center;
  margin-top: 0.6rem;
  padding: 0 0.2rem;
}

/* ============================================================
   LETTER
   ============================================================ */
.letter-section { text-align: center; }
.letter-envelope-toggle {
  margin: 2rem auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.letter-seal-mini {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--wine));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-numeral);
  color: var(--cream);
  transition: transform 0.4s ease;
}
.letter-envelope-toggle:hover .letter-seal-mini { transform: scale(1.1) rotate(-8deg); }
.letter-envelope-toggle p {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--blush);
}

.letter-paper {
  margin-top: 2rem;
  text-align: left;
  max-height: 0;
  overflow: hidden;
  padding: 0 2.5rem;
  opacity: 0;
  transition: max-height 1.2s cubic-bezier(.22,1,.36,1), opacity 0.9s ease, padding 1.2s ease;
}
.letter-paper.open {
  max-height: 3200px;
  opacity: 1;
  padding: 2.8rem 2.5rem;
}
.letter-body p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  opacity: 0.92;
}
.letter-signoff { font-style: italic; color: var(--rose); }
.letter-signoff.strong { font-size: 1.3rem; }

/* ============================================================
   CAKE
   ============================================================ */
.cake-section { text-align: center; }
.cake-hint { font-size: 0.85rem; color: var(--blush); opacity: 0.7; margin-bottom: 2.5rem; }
.cake-wrap { display: flex; justify-content: center; }
.cake {
  position: relative;
  width: 320px;
  padding-top: 90px;
}
.candles {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  z-index: 3;
}
.candle {
  width: 6px;
  height: 42px;
  background: linear-gradient(var(--blush), var(--rose));
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.candle .flame {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(circle at 50% 70%, #fff3c4, #ff9f4d 60%, transparent 80%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.candle.blown .flame {
  opacity: 0;
  transform: translateX(-50%) scaleY(0.2);
}
.candle.blown::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  width: 4px;
  height: 10px;
  background: rgba(200,200,200,0.4);
  transform: translateX(-50%);
  filter: blur(2px);
  animation: smoke 1.2s ease-out forwards;
}
@keyframes smoke {
  0% { opacity: 0.6; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -20px) scale(2); }
}
@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.15) rotate(2deg); }
}


.cake-message {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--rose);
  min-height: 2em;
}

/* ============================================================
   FUTURE
   ============================================================ */
.future-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.future-card { text-align: center; padding: 2rem 1.4rem; }
.future-icon { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; }
.future-card p { font-size: 0.92rem; opacity: 0.85; }

/* ============================================================
   PROMISE
   ============================================================ */
.promise-card { text-align: center; }
.promise-line {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  opacity: 0.9;
}
.promise-line.strong { color: var(--rose); font-style: italic; font-size: 1.4rem; }

/* ============================================================
   ENDING
   ============================================================ */
.ending-section { text-align: center; padding-bottom: 12rem; }
.ending-copy { font-size: 1.05rem; opacity: 0.85; margin-bottom: 0.5rem; }
.ending-signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}
.hidden-btn {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,214,221,0.35);
  border: 1px solid rgba(255,214,221,0.15);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  transition: all 0.4s ease;
}
.hidden-btn:hover {
  color: var(--cream);
  border-color: var(--rose);
  box-shadow: 0 0 20px rgba(255,77,109,0.35);
}

/* ============================================================
   FINAL BLACK SCREEN
   ============================================================ */
.final-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}
.final-screen.show { opacity: 1; visibility: visible; }
.final-stars { position: absolute; inset: 0; }
.final-message {
  position: relative;
  z-index: 2;
  max-width: 40ch;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--cream);
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 2s ease;
}
.final-message.show { opacity: 1; }

/* ============================================================
   LOVE NOTE POPUP
   ============================================================ */
.love-note {
  position: fixed;
  z-index: 150;
  background: var(--cream);
  color: var(--wine);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  max-width: 240px;
  text-align: center;
}
.love-note.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   FX CANVAS (confetti / fireworks)
   ============================================================ */
#fxCanvas {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .section { padding: 5rem 1.2rem; }
  .glass-card { padding: 1.8rem; }
  .timeline-line { left: 20px; }
  .timeline-item, .timeline-item.reverse { justify-content: flex-start; padding-left: 44px; }
  .timeline-dot { left: 20px; }
  .timeline-card { width: 100%; }
  .chat-bubble { max-width: 88%; }
  .music-label { display: none; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(3.4rem, 18vw, 5rem); }
}
