/* ═══════════════════════════════════════════════════════════════
   Happy Birthday, Ruheena Syed
   A cinematic, luxury birthday experience.
   Palette: soft white · champagne · cream · rose gold · blush · beige
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────── Design tokens ─────────────── */
:root {
  /* Colors */
  --white-soft:   #fdfaf6;
  --cream:        #faf4ec;
  --champagne:    #f3e5d3;
  --beige:        #e9dcc9;
  --blush:        #f6dfe0;
  --blush-deep:   #ecc7ca;
  --rose-gold:    #c99a86;
  --rose-deep:    #a97865;
  --gold:         #c9a86a;
  --gold-soft:    #e5d4b3;
  --ink:          #4a3f39;
  --ink-soft:     #8a7a70;
  --ink-faint:    #b4a89e;

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Motion — Apple-style spring-ish easings */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease-soft:   cubic-bezier(0.45, 0, 0.15, 1);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(122, 96, 80, 0.06);
  --shadow-md: 0 10px 35px rgba(122, 96, 80, 0.10);
  --shadow-lg: 0 25px 70px rgba(122, 96, 80, 0.16);
  --shadow-glow: 0 0 45px rgba(201, 154, 134, 0.22);

  /* Rhythm */
  --section-gap: clamp(6rem, 14vh, 11rem);
  --radius: 22px;
}

/* ─────────────── Reset & base ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white-soft);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* Elegant thin scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--rose-gold); border-radius: 99px; border: 2px solid var(--cream); }

/* ─────────────── Reusable pieces ─────────────── */
.glass {
  background: rgba(255, 253, 250, 0.6);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--section-gap) clamp(1.4rem, 5vw, 3rem) 0;
}

.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose-gold);
  text-align: center;
  margin-bottom: 1.1rem;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-align: center;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.section__lede {
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  max-width: 46ch;
  margin: 0 auto 3.5rem;
}

/* Scroll-triggered reveal (Intersection Observer adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero load-in reveal (triggered after preloader) */
.reveal-on-load {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 1.3s var(--ease-out) var(--d, 0s),
    transform 1.4s var(--ease-out) var(--d, 0s),
    filter 1.3s var(--ease-out) var(--d, 0s);
}
body.is-loaded .reveal-on-load { opacity: 1; transform: none; filter: blur(0); }

/* ─────────────── Preloader ─────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; gap: 1rem;
  background: linear-gradient(160deg, var(--white-soft), var(--champagne));
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__heart {
  font-size: 3rem;
  color: var(--rose-gold);
  text-align: center;
  animation: heartbeat 1.4s var(--ease-soft) infinite;
}
.preloader__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  25%      { transform: scale(1.18); opacity: 1; }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
}

/* ─────────────── Scroll progress ─────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--rose-gold), var(--gold), var(--blush-deep));
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ─────────────── Cursor glow ─────────────── */
.cursor-glow {
  position: fixed; z-index: 1;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 190, 170, 0.16) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  body.is-loaded .cursor-glow { opacity: 1; }
}

/* ─────────────── Celebration canvas ─────────────── */
.celebration-canvas {
  position: fixed; inset: 0; z-index: 120;
  pointer-events: none;
}

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

/* Slow drifting luxury gradient */
.hero__gradient {
  position: absolute; inset: -30%;
  background:
    radial-gradient(42% 42% at 25% 30%, rgba(246, 223, 224, 0.9) 0%, transparent 70%),
    radial-gradient(45% 45% at 78% 24%, rgba(243, 229, 211, 0.95) 0%, transparent 70%),
    radial-gradient(50% 50% at 65% 78%, rgba(236, 199, 202, 0.55) 0%, transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(229, 212, 179, 0.6) 0%, transparent 70%),
    linear-gradient(160deg, var(--white-soft) 0%, var(--cream) 100%);
  animation: gradient-drift 26s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes gradient-drift {
  0%   { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(7deg) scale(1.12); }
}

.hero__particles { position: absolute; inset: 0; }

.hero__content { position: relative; z-index: 2; max-width: 60rem; }

.hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 2.4rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.hero__line { display: block; font-size: clamp(2.6rem, 7.5vw, 5.6rem); }
.hero__line--name {
  font-style: italic;
  font-size: clamp(3.1rem, 9.5vw, 7rem);
  background: linear-gradient(115deg, var(--rose-deep) 10%, var(--gold) 48%, var(--rose-gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rose-deep); /* fallback */
  padding-bottom: 0.12em; /* keep italic descenders unclipped */
}

.hero__rule {
  width: 72px; height: 1px;
  margin: 2.6rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 42ch;
  margin: 0 auto;
}

/* Scroll cue — anchored bottom-right */
.hero__scroll {
  position: absolute;
  bottom: 2.6rem; right: clamp(1.4rem, 5vw, 3.4rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.hero__scroll-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--rose-gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, var(--rose-deep), transparent);
  animation: scroll-drip 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-drip {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ─────────────── Countdown ─────────────── */
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.7rem, 2vw, 1.4rem);
  max-width: 900px;
  margin: 3rem auto 0;
}
@media (max-width: 640px) {
  .countdown__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .countdown__card:nth-child(4) { grid-column: 1 / 2; }
}
.countdown__card {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.4rem) 0.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: transform 0.7s var(--ease-spring), box-shadow 0.7s var(--ease-out);
}
.countdown__card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.countdown__value {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────── Statistics ─────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 1.5rem;
  margin-top: 3.4rem;
  text-align: center;
}
.stats__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stats__value--serif { font-style: italic; color: var(--rose-deep); }
.stats__value--infinity.is-infinite {
  background: linear-gradient(115deg, var(--rose-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─────────────── Gallery ─────────────── */
.gallery__masonry {
  columns: 3;
  column-gap: 1.4rem;
  margin-top: 1rem;
}
@media (max-width: 900px) { .gallery__masonry { columns: 2; } }
@media (max-width: 540px) { .gallery__masonry { columns: 1; } }

.gallery__item {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
  transition:
    transform 0.8s var(--ease-spring),
    box-shadow 0.8s var(--ease-out);
  /* Gentle idle float — each item gets a stagger via --float-d */
  animation: gallery-float 7s ease-in-out var(--float-d, 0s) infinite;
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 2;
}
@keyframes gallery-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.gallery__item img {
  width: 100%;
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.gallery__item:hover img { transform: scale(1.06); }

/* Diagonal shine sweep on hover */
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease-out);
  pointer-events: none;
}
.gallery__item:hover::after { transform: translateX(120%); }

/* Gallery items also reveal on scroll */
.gallery__item.reveal { animation-play-state: paused; }
.gallery__item.reveal.is-visible { animation-play-state: running; }

/* A whisper of warmth behind one very special photo */
.gallery__item--glow {
  box-shadow: var(--shadow-sm), 0 0 34px rgba(196, 42, 42, 0.16);
}
.gallery__item--glow:hover,
.gallery__item--glow:focus-visible {
  box-shadow: var(--shadow-lg), 0 0 46px rgba(196, 42, 42, 0.22);
}

/* ─────────────── The Places That Made You (3D globe) ─────────────── */
.globe-stage {
  position: relative;
  width: 100%;
  margin: 3.4rem auto 0;
  max-width: 1080px;
  aspect-ratio: 16 / 11;
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 12%, #0a0f1e 0%, #050710 55%, #02030a 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
  touch-action: pan-y;
}
.globe-stage:active { cursor: grabbing; }
@media (max-width: 640px) { .globe-stage { aspect-ratio: 4 / 5; } }

/* Three.js mounts its <canvas> here */
.globe-stage canvas {
  position: absolute; inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Loader */
.globe-loader {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 1.1rem; justify-items: center;
  background: radial-gradient(120% 120% at 50% 12%, #0a0f1e, #02030a);
  z-index: 4;
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s;
}
.globe-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.globe-loader__ring {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(230, 200, 140, 0.18);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.globe-loader__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(240, 232, 220, 0.7);
  letter-spacing: 0.04em;
}

/* Floating glass information card (dark, over space) */
.journey-card {
  position: absolute;
  left: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 5;
  max-width: min(340px, 74%);
  padding: 1.3rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 26, 42, 0.62), rgba(10, 13, 22, 0.52));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(230, 200, 140, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-spring);
  pointer-events: none;
}
.journey-card.is-visible { opacity: 1; transform: none; }
.journey-card__index {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.journey-card__place {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fbf6ec;
  margin: 0.35rem 0 0.3rem;
  line-height: 1.15;
}
.journey-card__caption {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(233, 226, 214, 0.82);
}

/* Final message reveal */
.journey-finale {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s var(--ease-soft);
}
.journey-finale.is-visible { opacity: 1; }
.journey-finale__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.3;
  color: #fbf6ec;
  max-width: 20ch;
  margin: 0 auto;
  text-shadow: 0 2px 34px rgba(201, 168, 106, 0.45);
}

/* ─── Hidden jumpscares (easter eggs) ─── */
.jumpscare {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  overflow: hidden;
  cursor: none;
}
.jumpscare img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show the whole picture, zoomed out */
}
.jumpscare--shake img { animation: jumpscare-shake 90ms steps(2, end) infinite; }
.jumpscare.is-out { opacity: 0; transition: opacity 0.3s ease; }
@keyframes jumpscare-shake {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-14px, 10px); }
  40%  { transform: translate(12px, -12px); }
  60%  { transform: translate(-10px, -8px); }
  80%  { transform: translate(9px, 12px); }
  100% { transform: translate(0, 0); }
}

/* Replay button (glass) */
.journey-replay {
  position: absolute;
  top: clamp(1rem, 3vw, 1.6rem);
  right: clamp(1rem, 3vw, 1.6rem);
  z-index: 7;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fbf1dc;
  background: linear-gradient(160deg, rgba(40, 34, 22, 0.55), rgba(20, 16, 10, 0.45));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(230, 200, 140, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease, opacity 0.6s ease, border-color 0.5s ease;
}
.journey-replay[hidden] { display: none; }
.journey-replay:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(201, 168, 106, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.journey-replay:active { transform: scale(0.96); }
.journey-replay:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Interaction hint */
.globe-hint {
  position: absolute;
  bottom: clamp(0.7rem, 2vw, 1.1rem);
  right: clamp(1rem, 3vw, 1.6rem);
  z-index: 5;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 226, 214, 0.4);
  opacity: 0;
  transition: opacity 1s ease;
}
.globe-stage.is-ready .globe-hint { opacity: 1; }
@media (max-width: 560px) { .globe-hint { display: none; } }

/* Luxury horizontal timeline */
.journey-timeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  max-width: 1080px;
  margin: 1.8rem auto 0;
  padding: 0.4rem 0.2rem 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.journey-timeline::-webkit-scrollbar { display: none; }

.timeline-stop {
  position: relative;
  flex: 1 1 0;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.3rem 0.2rem;
  cursor: pointer;
  background: none;
  text-align: center;
}
/* Connecting rail behind the dots */
.timeline-stop::before {
  content: "";
  position: absolute;
  top: calc(0.7rem + 5px);
  left: -50%; right: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.25));
}
.timeline-stop:first-child::before { display: none; }

.timeline-stop__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.22);
  box-shadow: 0 0 0 0 rgba(201, 168, 106, 0);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
  position: relative;
  z-index: 1;
}
.timeline-stop__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--ink-faint);
  transition: color 0.5s var(--ease-out);
}
/* Visited (gold) */
.timeline-stop.is-done .timeline-stop__dot {
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(201, 168, 106, 0.6);
}
.timeline-stop.is-done .timeline-stop__label { color: var(--ink-soft); }
/* Current (bright, pulsing) */
.timeline-stop.is-current .timeline-stop__dot {
  background: #ffe9b8;
  box-shadow: 0 0 16px 3px rgba(255, 214, 130, 0.85);
  transform: scale(1.35);
  animation: timeline-pulse 1.6s var(--ease-soft) infinite;
}
.timeline-stop.is-current .timeline-stop__label { color: var(--rose-deep); font-weight: 600; }
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 16px 3px rgba(255, 214, 130, 0.55); }
  50%      { box-shadow: 0 0 22px 6px rgba(255, 214, 130, 0.95); }
}
.timeline-stop:hover .timeline-stop__dot { transform: scale(1.3); background: var(--gold); }
.timeline-stop:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }

/* ─────────────── Reasons ─────────────── */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 3.4rem;
}
.reason-card {
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  background: rgba(255, 253, 250, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.7s var(--ease-spring),
    box-shadow 0.7s var(--ease-out),
    border-color 0.7s var(--ease-out);
  animation: card-float 9s ease-in-out var(--float-d, 0s) infinite;
  will-change: transform;
}
.reason-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--gold-soft);
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}
.reason-card__heart {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 3px 10px rgba(201, 154, 134, 0.5));
  transition: transform 0.6s var(--ease-spring);
}
.reason-card:hover .reason-card__heart { transform: scale(1.25) rotate(-6deg); }
.reason-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
}

/* ─────────────── Closing ─────────────── */
.closing { text-align: center; padding-bottom: 2rem; }
.closing__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.15;
}
.closing__title em {
  background: linear-gradient(115deg, var(--rose-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing__text {
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
}

/* ─────────────── Footer ─────────────── */
.footer {
  margin-top: var(--section-gap);
  padding: 4.5rem 2rem 5.5rem;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--champagne));
}
.footer__hearts {
  color: var(--rose-gold);
  letter-spacing: 1.2em;
  padding-left: 1.2em; /* optically center the tracked glyphs */
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
}
.footer__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--rose-deep);
}

/* ─────────────── Lightbox ─────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 170;
  display: grid; place-items: center;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(58, 46, 40, 0.55);
  backdrop-filter: blur(22px) saturate(0.9);
  -webkit-backdrop-filter: blur(22px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }

.lightbox__figure {
  position: relative; z-index: 2;
  max-width: min(92vw, 900px);
  max-height: 86vh;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s var(--ease-out), transform 0.65s var(--ease-spring);
}
.lightbox.is-open .lightbox__figure { opacity: 1; transform: scale(1); }
.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(30, 20, 15, 0.5);
}

.lightbox__btn {
  position: absolute; z-index: 3;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.4s ease, transform 0.5s var(--ease-spring);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.08); }
.lightbox__btn--close { top: 1.4rem; right: 1.4rem; }
.lightbox__btn--prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox__counter {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

/* ─────────────── Back to top ─────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 140;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--rose-deep);
  background: rgba(255, 253, 250, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-spring), box-shadow 0.5s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); }

/* ─────────────── Reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-on-load { opacity: 1; transform: none; filter: none; }
  .celebration-canvas, .hero__particles, .cursor-glow { display: none; }
}
