/* ============================================================
   WEDDING WEBSITE — Advanced Design System
   Colour of the Day: Burgundy · Gold · White
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --burg:          #800020;
  --burg-dark:     #5a0016;
  --burg-light:    #a3002a;
  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-pale:     #f5e9c8;
  --white:         #ffffff;
  --off-white:     #fdf9f4;
  --cream:         #f9f3e8;
  --text-dark:     #1a0a00;
  --text-mid:      #4a2c1a;
  --text-light:    #8a6a58;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-script:   'Great Vibes', cursive;
  --font-ui:       'Montserrat', system-ui, sans-serif;

  --shadow-sm:     0 2px 8px rgba(128,0,32,.10);
  --shadow-md:     0 8px 32px rgba(128,0,32,.15);
  --shadow-lg:     0 20px 60px rgba(128,0,32,.22);
  --shadow-gold:   0 8px 32px rgba(201,168,76,.3);

  --radius:        16px;
  --radius-sm:     8px;
  --radius-pill:   50px;

  --ease-out-expo: cubic-bezier(0.16,1,.3,1);
  --transition:    .35s var(--ease-out-expo);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none; /* hidden — replaced by custom cursor */
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; }

/* ── CUSTOM CURSOR (desktop only) ──────────────────────────── */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%; transition: opacity .3s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: translate(-50%,-50%);
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 2px solid rgba(201,168,76,.5);
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s, transform .3s;
}
@media (hover: none) {
  .cursor-dot, .cursor-outline { display: none; }
  body, button { cursor: auto; }
}

/* ── FLOATING MUSIC FAB ─────────────────────────────────────── */
.music-fab {
  position: fixed; bottom: 28px; right: 24px;
  z-index: 8000; display: flex; align-items: center; gap: 12px;
  flex-direction: row-reverse;
}
.music-fab-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--burg);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.music-fab-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scale(0); border-radius: 50%;
  transition: transform .4s ease;
  z-index: 0;
}
.music-fab-btn:hover::before, .music-fab-btn:focus::before { transform: scale(1); }
.music-fab-btn:hover i, .music-fab-btn:focus i { color: var(--burg); z-index: 1; }
.music-fab-btn i { position: relative; z-index: 1; transition: color .3s; }
.music-fab-btn:focus { outline: 3px solid var(--gold); outline-offset: 3px; }

.music-fab-btn.playing {
  animation: musicPop .5s ease;
}
@keyframes musicPop {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.music-tooltip {
  background: rgba(128,0,32,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none;
  transform: translateX(10px);
  transition: var(--transition);
}
.music-fab:hover .music-tooltip,
.music-fab.active .music-tooltip {
  opacity: 1; pointer-events: auto; transform: translateX(0);
}
.music-title {
  color: var(--gold-light);
  font-size: .8rem; font-family: var(--font-ui);
  font-weight: 500; white-space: nowrap;
}
.music-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 16px;
}
.music-bars span {
  width: 3px; background: var(--gold);
  border-radius: 2px;
  animation: barBounce 1s ease-in-out infinite;
}
.music-bars span:nth-child(1) { height:8px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height:14px; animation-delay:.15s; }
.music-bars span:nth-child(3) { height:10px; animation-delay:.3s; }
.music-bars span:nth-child(4) { height:16px; animation-delay:.45s; }
.music-bars span:nth-child(5) { height:6px; animation-delay:.6s; }
.music-bars.paused span { animation-play-state: paused; }

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

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,4vw,48px);
  height: 70px;
  z-index: 7000;
  transition: background .4s, box-shadow .4s;
}
.navbar.scrolled {
  background: rgba(253,249,244,.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--white);
  transition: color .3s;
}
.navbar.scrolled .nav-logo { color: var(--burg); }
.nav-menu {
  display: flex; gap: clamp(12px,2vw,32px); align-items: center;
}
.nav-link {
  font-size: .875rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  position: relative; padding-bottom: 4px;
  transition: color .3s;
}
.navbar.scrolled .nav-link { color: var(--text-mid); }
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .35s ease;
}
.nav-link:hover::after, .nav-link:focus::after { width: 100%; }
.nav-link:hover, .nav-link:focus { color: var(--gold); outline: none; }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link:focus { color: var(--burg); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
  z-index: 7100;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--burg); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center; color: var(--white);
}
#particleCanvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(90,0,22,.75) 0%,
    rgba(128,0,32,.55) 40%,
    rgba(20,0,5,.7) 100%
  );
}

/* Floating petals */
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  width: clamp(6px,1.5vw,14px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,168,76,.7), transparent);
  border-radius: 0 50% 50% 50%;
  animation: petalFall linear infinite;
}
.petal:nth-child(1){ left:10%; animation-duration:14s; animation-delay:0s; }
.petal:nth-child(2){ left:25%; animation-duration:18s; animation-delay:3s; }
.petal:nth-child(3){ left:50%; animation-duration:12s; animation-delay:6s; }
.petal:nth-child(4){ left:70%; animation-duration:16s; animation-delay:1s; }
.petal:nth-child(5){ left:85%; animation-duration:11s; animation-delay:4s; }
.petal:nth-child(6){ left:40%; animation-duration:20s; animation-delay:8s; }
@keyframes petalFall {
  0%  { top: -5%; opacity:0; transform: rotate(0deg); }
  10% { opacity: 1; }
  90% { opacity: .6; }
  100%{ top: 105%; opacity:0; transform: rotate(720deg); }
}

.hero-content {
  position: relative; z-index: 3;
  padding: clamp(16px,4vw,40px);
  max-width: min(860px, 92vw);
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(.8rem,2vw,1rem);
  font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 12px;
}
.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 20px; color: var(--gold);
}
.hero-divider span {
  display: block; height: 1px; width: clamp(40px,8vw,100px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-divider i { font-size: .9rem; animation: heartBeat 2s ease-in-out infinite; }
@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  70% { transform: scale(1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem,9vw,7rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 16px;
}
.script-name {
  font-family: var(--font-script);
  color: var(--white); display: block;
  font-size: 1.15em; line-height: 1.1;
}
.hero-amp {
  display: block;
  font-family: var(--font-script);
  font-size: .5em; color: var(--gold);
  line-height: 1; margin: -8px 0;
}
.hero-hashtag {
  font-family: var(--font-ui); font-size: clamp(.85rem,2vw,1.05rem);
  font-weight: 700; letter-spacing: .08em;
  color: var(--gold-light); margin-bottom: 28px;
}
.hero-date-badge {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  margin-bottom: 32px;
}
.date-day, .date-rest {
  font-size: clamp(.75rem,1.8vw,.95rem);
  font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.85);
}
.date-num {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 700; color: var(--gold);
  line-height: 1;
}

/* Countdown bar */
.countdown-strip {
  position: relative; z-index: 3;
  display: flex; gap: clamp(4px,2.5vw,20px);
  align-items: center; justify-content: center;
  background: rgba(128,0,32,.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201,168,76,.3);
  width: 100%; max-width: 100%;
  padding: 16px clamp(8px,3vw,32px);
  margin-top: auto;
  box-sizing: border-box;
}
.countdown-unit {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  min-width: 0; flex: 1 1 0; max-width: 76px;
}
.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem,5.5vw,3rem);
  font-weight: 700; color: var(--gold);
  line-height: 1;
  transition: transform .2s, color .2s;
}
.countdown-num.tick { transform: scale(1.15); color: var(--gold-light); }
.countdown-label {
  font-size: clamp(.5rem,1.4vw,.7rem);
  font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.1rem,3.8vw,2.2rem);
  color: var(--gold); opacity: .5;
  padding-bottom: 12px; /* visually align with numbers */
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 80px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.scroll-cue-wheel {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: block; position: relative;
}
.scroll-cue-wheel::after {
  content: '';
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel { to { top: 22px; opacity: 0; } }

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(48px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}

/* ── SECTION COMMONS ────────────────────────────────────────── */
.section { padding: clamp(60px,10vw,120px) 0; position: relative; }
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.section-header { text-align: center; margin-bottom: clamp(32px,6vw,64px); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,5vw,3.8rem);
  font-weight: 400; color: var(--burg);
  line-height: 1.2; margin-bottom: 16px;
}
.title-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; color: var(--gold); margin-top: 4px;
}
.title-ornament span {
  display: block; height: 1px; width: clamp(30px,6vw,80px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.title-ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.title-ornament i { font-size: .8rem; }
.section-sub {
  font-size: clamp(.875rem,2vw,1rem); color: var(--text-light);
  margin-top: 12px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.btn:hover::before { transform: translateX(0); }
.btn:focus { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-hero {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--burg-dark);
  box-shadow: 0 6px 24px rgba(201,168,76,.5);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(201,168,76,.6); }

.btn-primary {
  background: var(--burg);
  color: var(--white);
  border-color: var(--burg);
}
.btn-primary:hover { background: var(--burg-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-event {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  font-size: .8rem; padding: 10px 24px;
  margin-top: 8px;
}
.btn-event:hover {
  background: var(--gold);
  color: var(--burg-dark);
}

/* ── STORY SECTION ──────────────────────────────────────────── */
.story-section {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(201,168,76,.12), transparent 70%),
    radial-gradient(ellipse 50% 35% at 100% 30%, rgba(128,0,32,.07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(246,228,225,.9), transparent 70%),
    var(--off-white);
  overflow: hidden;
}

/* Intro: collage + opening text */
.story-intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-bottom: clamp(64px, 9vw, 110px);
}
.story-collage {
  position: relative;
  padding: 0 14% 16% 0;
}

/* Polaroid frames (shared) */
.polaroid {
  position: relative;
  background: var(--white);
  padding: 14px 14px 58px;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(74,20,10,.18), 0 2px 6px rgba(0,0,0,.06);
  transition: transform .7s var(--ease-out-expo), box-shadow .7s var(--ease-out-expo);
}
.polaroid-img { position: relative; overflow: hidden; border-radius: 2px; }
.polaroid-img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}
.polaroid:hover .polaroid-img img { transform: scale(1.05); }
.polaroid-caption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--burg); line-height: 1;
}
.polaroid-tape {
  position: absolute; top: -14px; left: 50%; z-index: 2;
  width: 96px; height: 28px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(245,233,200,.85);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.polaroid-main { transform: rotate(-3deg); }
.polaroid-accent {
  position: absolute; right: 0; bottom: 0;
  width: 50%;
  padding: 10px 10px 42px;
  transform: rotate(6deg);
  z-index: 2;
}
.polaroid-accent .polaroid-img img { aspect-ratio: 1; }
.polaroid-accent .polaroid-caption { font-size: clamp(1rem, 1.8vw, 1.25rem); bottom: 11px; }
.story-collage:hover .polaroid-main { transform: rotate(-1deg) translateY(-6px); }
.story-collage:hover .polaroid-accent { transform: rotate(2deg) translateY(-12px); }

.photo-badge {
  position: absolute; top: 28px; left: -18px; z-index: 3;
  background: linear-gradient(135deg, var(--burg), var(--burg-light));
  color: var(--gold-light);
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 6px;
}
.photo-badge i { animation: heartBeat 2s ease-in-out infinite; }

.story-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.story-kicker::before { content: ''; width: 40px; height: 1px; background: var(--gold); }

.love-story-pullquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic; font-weight: 400;
  color: var(--burg); line-height: 1.45;
  margin-bottom: 26px;
}
.love-story-pullquote::before {
  content: '\201C';
  position: absolute; top: -.55em; left: -.25em; z-index: -1;
  font-size: 5em; line-height: 1;
  color: rgba(201,168,76,.28);
}
.story-intro-text p:not(.story-kicker):not(.story-signature) {
  font-size: clamp(.98rem, 1.6vw, 1.06rem);
  line-height: 1.9; color: var(--text-mid);
  margin-bottom: 14px;
}
.story-intro-text strong { color: var(--burg); }
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.8em; font-weight: 600;
  line-height: .82; padding: 6px 10px 0 0;
  color: var(--burg);
}
.story-signature {
  font-family: var(--font-ui);
  font-weight: 700; letter-spacing: .08em;
  font-size: .9rem; color: var(--gold);
  margin-top: 10px;
}

/* Milestones */
.milestones {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto clamp(64px, 9vw, 110px);
  list-style: none;
}
.milestones::before {
  content: '';
  position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: .45;
}
.milestone { position: relative; text-align: center; }
.ms-dot {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--burg); font-size: 1.05rem;
  box-shadow: 0 0 0 6px var(--off-white), var(--shadow-sm);
  transition: transform .45s var(--ease-out-expo), background .35s, color .35s;
}
.milestone:hover .ms-dot { transform: translateY(-4px) scale(1.06); background: var(--burg); color: var(--gold); }
.ms-highlight .ms-dot {
  background: linear-gradient(135deg, var(--burg), var(--burg-light));
  color: var(--gold-light);
  box-shadow: 0 0 0 6px var(--off-white), 0 0 0 9px rgba(201,168,76,.35), var(--shadow-md);
}
.ms-highlight .ms-dot i { animation: heartBeat 2.2s ease-in-out infinite; }
.ms-text { display: block; }
.ms-year {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600; color: var(--burg); line-height: 1.15;
}
.ms-label {
  display: block; margin-top: 6px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light);
}

/* Timeline (he said / she said) */
.love-timeline {
  --tl-progress: 0;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 0;
  view-timeline: --love-tl block;
}
.love-timeline::before,
.love-timeline::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  border-radius: 2px;
}
.love-timeline::before { background: rgba(201,168,76,.22); }
.love-timeline::after {
  background: linear-gradient(180deg, var(--gold), var(--burg-light));
  box-shadow: 0 0 12px rgba(201,168,76,.45);
  transform-origin: top;
  transform: scaleY(var(--tl-progress));
}
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .love-timeline::after {
    animation: tlGrow linear both;
    animation-timeline: --love-tl;
    animation-range: entry 50% exit 50%;
  }
}
@keyframes tlGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.tl-node {
  grid-column: 2; grid-row: 1;
  justify-self: center;
  position: relative; z-index: 2;
  width: 52px; height: 52px; margin-top: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--burg); font-size: 1rem;
  box-shadow: 0 0 0 6px var(--off-white), var(--shadow-sm);
  transition: background .4s, color .4s, transform .5s var(--ease-out-expo);
}
.tl-item:hover .tl-node { background: var(--burg); color: var(--gold); transform: scale(1.08); }

.tl-card {
  grid-row: 1;
  position: relative;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,168,76,.22);
  border-top: 3px solid var(--voice, var(--burg));
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(90,0,22,.08);
  overflow: hidden;
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.tl-card:hover { transform: translateY(-5px); box-shadow: 0 22px 60px rgba(90,0,22,.15); }
.tl-left  .tl-card { grid-column: 1; }
.tl-right .tl-card { grid-column: 3; }

.voice-chisom { --voice: var(--burg); --voice-grad: linear-gradient(135deg, var(--burg-dark), var(--burg-light)); }
.voice-love   { --voice: hsl(40,72%,48%); --voice-grad: linear-gradient(135deg, hsl(36,70%,38%), hsl(43,80%,55%)); }
.voice-couple { --voice: var(--gold); --voice-grad: linear-gradient(135deg, var(--burg), var(--gold)); }

.tl-card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px 14px;
  border-bottom: 1px dashed rgba(201,168,76,.32);
}
.tl-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--voice-grad);
  color: var(--white);
  font-family: var(--font-script);
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(90,0,22,.2);
}
.tl-voice {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem; font-style: italic; font-weight: 600;
  color: var(--burg); line-height: 1.1;
}
.tl-date {
  display: block; margin-top: 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.tl-card-body {
  padding: 18px 24px 22px;
  font-size: clamp(.92rem, 1.5vw, .98rem);
  line-height: 1.85; color: var(--text-mid);
}
.tl-card-body p { margin-bottom: 12px; }
.tl-card-body p:last-child { margin-bottom: 0; }
.tl-card-body em { color: var(--burg-dark); }

.story-quote-inline {
  margin: 14px 0 !important;
  padding: 10px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(128,0,32,.04));
  font-family: var(--font-display);
  font-size: 1.22em;
  color: var(--burg) !important;
}

/* Photo moment inside timeline */
.tl-photo {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  margin: clamp(8px, 2vw, 20px) 0 clamp(44px, 6vw, 72px);
}
.tl-photo .polaroid { width: min(340px, 78%); transform: rotate(-2.5deg); }
.tl-photo .polaroid:hover { transform: rotate(0) translateY(-6px); }

/* THE YES */
.tl-yes {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: clamp(48px, 7vw, 88px) 0;
  position: relative;
}
.tl-yes .tl-node {
  width: 68px; height: 68px; margin: 0 auto -34px;
  z-index: 3;
  position: relative;
  background: linear-gradient(135deg, var(--burg), var(--burg-light));
  color: var(--gold-light); font-size: 1.5rem;
  border-color: var(--gold);
  box-shadow: 0 0 0 8px var(--off-white), 0 0 0 11px rgba(201,168,76,.4), var(--shadow-md);
}
.tl-yes .tl-node i { animation: heartBeat 2s ease-in-out infinite; }
.tl-yes .tl-card {
  width: 100%; max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding-top: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.22), transparent 60%),
    linear-gradient(160deg, var(--burg-dark), var(--burg) 55%, #6a0a24);
  border: 1px solid rgba(201,168,76,.55);
  box-shadow: 0 30px 80px rgba(90,0,22,.35);
}
.tl-yes .tl-card::after {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 12px;
  pointer-events: none;
}
.tl-yes .tl-card-head { justify-content: center; border-bottom-color: rgba(201,168,76,.3); }
.tl-yes .tl-card-head > div { text-align: left; }
.tl-yes .tl-voice { color: var(--gold-light); }
.tl-yes .tl-date { color: rgba(255,255,255,.65); }
.tl-yes .tl-card-body {
  position: relative; z-index: 1;
  padding: 22px clamp(22px, 6vw, 64px) 40px;
  color: rgba(255,255,255,.85);
}
.tl-yes .tl-card-body em { color: var(--gold-pale); }
.story-date-big {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  font-style: italic; letter-spacing: .04em;
  color: var(--gold-light);
  margin: 4px 0 0 !important;
}
.story-yes {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 20px !important;
  text-shadow: 0 4px 30px rgba(201,168,76,.45);
}
.story-yes strong {
  font-family: var(--font-display);
  font-size: .78em; font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
}
.yes-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.yes-hearts span {
  position: absolute; bottom: -30px; left: var(--x);
  font-size: 1.4rem; color: rgba(232,201,106,.35);
  animation: heartRiseSm var(--d, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes heartRiseSm {
  0%   { transform: translateY(0) rotate(-10deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-640px) rotate(20deg); opacity: 0; }
}

/* Timeline end ring */
.tl-end {
  position: relative; z-index: 2;
  width: 46px; height: 46px; margin: 8px auto 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--burg-dark);
  box-shadow: 0 0 0 6px var(--off-white), var(--shadow-gold);
}

/* Finale card */
.story-finale {
  position: relative;
  max-width: 840px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 60px);
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(90,0,22,.10);
}
.story-finale::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 18px;
  pointer-events: none;
}
.story-reflection {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-mid);
  line-height: 1.8;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.story-closing {
  display: flex; flex-direction: column; align-items: center;
  margin: 28px 0;
}
.story-closing p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--burg); line-height: 1.6;
}
.story-closing p + p::before {
  content: '\2665';
  display: block;
  font-size: .6rem; color: var(--gold);
  margin: 6px 0;
}
.story-closing p:last-child {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600; color: var(--burg-dark);
}
.story-gratitude {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  color: var(--gold);
  line-height: 1.7;
  padding-top: 24px;
  border-top: 1px solid rgba(201,168,76,.25);
}
.story-gratitude strong {
  display: block; margin-top: 12px;
  font-family: var(--font-ui);
  font-size: clamp(.92rem, 2vw, 1.02rem);
  color: var(--burg); letter-spacing: .04em; font-weight: 700;
}

/* ── LOVE INTERLUDE ─────────────────────────────────────────── */
.love-interlude {
  position: relative;
  min-height: clamp(380px, 62vh, 580px);
  display: grid; place-items: center;
  overflow: hidden;
  text-align: center; color: var(--white);
  padding: 90px 0;
  view-timeline: --interlude block;
}
.interlude-bg {
  position: absolute; inset: -12% 0;
  background-size: cover; background-position: center 30%;
}
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .interlude-bg {
    animation: interludeParallax linear both;
    animation-timeline: --interlude;
    animation-range: cover;
  }
}
@keyframes interludeParallax {
  from { transform: translateY(-8%) scale(1.04); }
  to   { transform: translateY(8%) scale(1.04); }
}
.interlude-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(90,0,22,.55) 0%, rgba(20,0,6,.88) 100%);
}
.float-hearts { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.float-hearts span {
  position: absolute; bottom: -40px; left: var(--x);
  font-size: var(--s, 18px);
  color: rgba(232,201,106,.4);
  animation: heartRise var(--d, 15s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes heartRise {
  0%   { transform: translateY(0) rotate(-12deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(-700px) rotate(18deg); opacity: 0; }
}
.interlude-content { position: relative; z-index: 2; max-width: 860px; padding: 0 24px; }
.interlude-heart {
  display: inline-block;
  color: var(--gold); font-size: 1.6rem;
  margin-bottom: 18px;
  animation: heartBeat 2s ease-in-out infinite;
}
.interlude-quote {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.interlude-ref {
  margin-top: 20px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-light);
}

/* ── FAMILIES SECTION ───────────────────────────────────────── */
.families-section {
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(201,168,76,.10), transparent 70%),
    var(--off-white);
}
.families-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}
.family-card {
  position: relative;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 46px) clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
}
.family-card::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 14px;
  pointer-events: none;
}
.family-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.family-crest {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burg), var(--burg-light));
  color: var(--gold); font-size: 1.25rem;
  box-shadow: 0 0 0 5px var(--gold-pale), var(--shadow-md);
}
.family-intro {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.family-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600; line-height: 1.3;
  color: var(--burg);
  margin-bottom: 12px;
}
.family-location {
  display: inline-flex; align-items: flex-start; gap: 6px;
  font-size: .88rem; line-height: 1.5;
  color: var(--text-light);
}
.family-location i { color: var(--gold); margin-top: 3px; }
.families-amp {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 7vw, 5rem);
  color: var(--gold); line-height: 1;
}
.families-invite {
  max-width: 700px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.7; color: var(--text-mid);
}
.families-invite strong { color: var(--burg); font-weight: 600; }

/* Colour Palette */
.colour-palette { margin: 40px auto 0; text-align: center; }
.colour-palette h4 {
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 18px; font-family: var(--font-ui);
}
.palette-swatches { display: flex; gap: clamp(20px, 4vw, 40px); justify-content: center; flex-wrap: wrap; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mid);
  transition: transform .35s var(--ease-out-expo);
}
.swatch::before {
  content: '';
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--sw);
  border: 1px solid rgba(201,168,76,.45);
  box-shadow: inset 0 0 0 4px var(--white), 0 8px 20px rgba(90,0,22,.15);
}
.swatch:hover { transform: translateY(-4px); }
.swatch span { pointer-events: none; }
.burgundy-swatch { --sw: var(--burg); }
.gold-swatch     { --sw: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.white-swatch    { --sw: var(--white); }




/* ── EVENTS SECTION ─────────────────────────────────────────── */
.events-section { background: var(--cream); overflow: hidden; }
.events-bg-art {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23800020'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='70' cy='10' r='2'/%3E%3Ccircle cx='10' cy='70' r='2'/%3E%3Ccircle cx='70' cy='70' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,360px), 1fr));
  gap: clamp(20px,4vw,40px);
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px,4vw,48px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--gold);
  transition: transform .35s ease, box-shadow .35s ease;
}
.event-card:hover, .event-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.event-card-accent {
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 70%);
  border-radius: 0 var(--radius) 0 0;
}
.event-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--burg), var(--burg-light));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.event-badge {
  font-family: var(--font-ui);
  font-size: .75rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--burg); margin-bottom: 20px;
}
.event-meta {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}
.event-meta li {
  display: flex; gap: 14px; align-items: flex-start;
}
.event-meta li i {
  color: var(--gold); font-size: 1rem;
  width: 18px; flex-shrink: 0; margin-top: 3px;
}
.event-meta li div { display: flex; flex-direction: column; gap: 2px; }
.event-meta li strong {
  font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-light);
  font-weight: 700;
}
.event-meta li span {
  font-size: clamp(.9rem,2vw,1rem);
  color: var(--text-dark); line-height: 1.5;
}

/* Directions Accordion */
.directions-block { margin-bottom: 20px; }
.directions-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--burg);
  width: 100%;
  transition: var(--transition);
}
.directions-toggle:hover, .directions-toggle:focus {
  background: var(--gold-pale);
  outline: none;
}
.directions-toggle .chev {
  margin-left: auto;
  transition: transform .35s;
}
.directions-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.directions-content {
  padding: 14px 16px;
  font-size: .9rem; line-height: 1.7;
  color: var(--text-mid);
  border: 1px solid rgba(201,168,76,.2);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(245,233,200,.3);
}

/* ── INVITATION SECTION ─────────────────────────────────────── */
.invitation-section { background: var(--off-white); }
.invitation-showcase {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.invitation-card-wrap {
  position: relative;
  max-width: min(480px, 90vw);
  width: 100%;
}
.invitation-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse, rgba(201,168,76,.3) 0%, transparent 70%);
  border-radius: 20px;
  filter: blur(20px);
  animation: inviteGlow 4s ease-in-out infinite alternate;
}
@keyframes inviteGlow {
  from { opacity: .5; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.02); }
}
.invitation-card-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  transition: transform .4s ease, box-shadow .4s ease;
}
.invitation-card-img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(128,0,32,.3);
}
.btn-download {
  font-size: .9rem; padding: 16px 40px;
}

/* ── GALLERY SECTION ────────────────────────────────────────── */
.gallery-section { background: var(--burg-dark); overflow: hidden; }
.gallery-section .section-title { color: var(--gold); }
.gallery-section .eyebrow { color: var(--gold-light); }
.gallery-section .section-sub { color: rgba(255,255,255,.5); }
.gallery-section .title-ornament { color: var(--gold); }

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
  max-width: 1200px;
  margin-inline: auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.4s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(128, 0, 32, 0.35), 0 0 18px rgba(201, 168, 76, 0.25);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}
.gallery-item:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(128, 0, 32, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  color: var(--gold);
  font-size: 2rem;
}
.gallery-item:hover .gallery-hover-overlay,
.gallery-item:focus .gallery-hover-overlay {
  opacity: 1;
}

/* ── PHOTO CREDIT OVERLAY (hidden as requested) ─────── */
.photo-credit {
  display: none !important;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,0,3,.97);
  display: flex; align-items: center; justify-content: center;
  animation: lbFadeIn .35s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(201,168,76,.15); color: var(--white);
  border: 1px solid rgba(201,168,76,.3);
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 1;
}
.lb-close:hover, .lb-close:focus { background: var(--burg); outline: none; }
.lb-img-wrap {
  max-width: min(90vw, 1000px); max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0,0,0,.8);
  animation: lbImgIn .3s ease;
  user-select: none;
}
@keyframes lbImgIn { from { transform: scale(.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  color: var(--white); border: 1px solid rgba(255,255,255,.15);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lb-prev { left: clamp(8px,3vw,24px); }
.lb-next { right: clamp(8px,3vw,24px); }
.lb-nav:hover, .lb-nav:focus { background: var(--gold); color: var(--burg-dark); outline: none; }
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  color: rgba(255,255,255,.5); font-family: var(--font-ui);
}

/* ── PHOTO REELS SECTION ─────────────────────────────────────── */
.reels-section { background: var(--cream); }

.reel-player {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201,168,76,.3),
    0 30px 80px rgba(0,0,0,.55),
    0 0 60px rgba(128,0,32,.15);
  cursor: pointer;
}

/* ---- slides ---- */
.reel-slides { position: absolute; inset: 0; }
.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.reel-slide.active { opacity: 1; }
.reel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 5s ease-in-out forwards;
  transform-origin: center center;
}
/* Ken Burns variants — assigned by JS */
.reel-slide.kb-0 img { animation-name: kbZoomIn; }
.reel-slide.kb-1 img { animation-name: kbZoomOut; }
.reel-slide.kb-2 img { animation-name: kbPanRight; }
.reel-slide.kb-3 img { animation-name: kbPanLeft; }
.reel-slide.kb-4 img { animation-name: kbDiag; }

@keyframes kbZoomIn   { from { transform: scale(1);     } to { transform: scale(1.18); } }
@keyframes kbZoomOut  { from { transform: scale(1.18);  } to { transform: scale(1);    } }
@keyframes kbPanRight { from { transform: scale(1.12) translateX(-4%); } to { transform: scale(1.12) translateX(4%); } }
@keyframes kbPanLeft  { from { transform: scale(1.12) translateX(4%);  } to { transform: scale(1.12) translateX(-4%); } }
@keyframes kbDiag     { from { transform: scale(1) translate(-3%,-3%); } to { transform: scale(1.15) translate(3%,3%); } }
@keyframes kbInvitationZoom { from { transform: scale(0.97); } to { transform: scale(1.02); } }

/* Invitation Slide (Final Slide) — perfectly framed, legible & elegant */
.reel-slide.slide-invitation {
  background: radial-gradient(circle at center, #26030c 0%, #080003 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-slide.slide-invitation img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  padding: 18px 12px 28px;
  animation-name: kbInvitationZoom !important;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.7));
}
.reel-slide.slide-invitation::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 72%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* vignette per slide */
.reel-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* ---- top bar ---- */
.reel-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%);
  z-index: 10;
}
.reel-branding {
  display: flex; align-items: center; gap: 7px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(.85rem, 2.5vw, 1rem);
  font-style: italic;
}
.reel-branding i { font-size: .8em; color: var(--burg-light); animation: heartbeat 1.4s ease-in-out infinite; }
.reel-counter {
  font-family: var(--font-ui);
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
}

/* ---- bottom bar ---- */
.reel-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
  z-index: 10;
}

/* music bars animation */
.reel-song-info {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.reel-song-bars {
  display: flex; align-items: flex-end; gap: 3px; height: 20px;
}
.reel-song-bars span {
  display: block; width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: musicBar 0.8s ease-in-out infinite alternate;
}
.reel-song-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.reel-song-bars span:nth-child(2) { height: 16px; animation-delay: .15s; }
.reel-song-bars span:nth-child(3) { height: 12px; animation-delay: .3s; }
.reel-song-bars span:nth-child(4) { height: 18px; animation-delay: .45s; }
.reel-song-bars span:nth-child(5) { height: 10px; animation-delay: .6s; }
@keyframes musicBar {
  from { transform: scaleY(.4); opacity:.5; }
  to   { transform: scaleY(1);  opacity:1; }
}
/* pause bars when reel is paused */
.reel-player.paused .reel-song-bars span { animation-play-state: paused; opacity: .35; }

.reel-song-text { display: flex; flex-direction: column; gap: 2px; }
.reel-song-title {
  font-size: .85rem; font-weight: 700;
  color: #fff; letter-spacing: .04em;
}
.reel-song-note {
  font-size: .68rem; color: rgba(255,255,255,.45); line-height: 1.4;
}

/* controls row */
.reel-controls {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 14px;
}
.reel-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}
.reel-btn:hover, .reel-btn:focus {
  background: rgba(201,168,76,.35);
  border-color: var(--gold);
  outline: none;
  transform: scale(1.08);
}
.reel-playpause {
  width: 56px; height: 56px;
  font-size: 1.2rem;
  background: rgba(128,0,32,.7);
  border-color: var(--burg-light);
}
.reel-playpause:hover { background: var(--burg); }

/* progress bar */
.reel-progress-wrap {
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}
.reel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--burg-light), var(--gold));
  width: 0%; transition: width .15s linear;
  border-radius: 2px;
}

/* loading */
.reel-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; z-index: 20;
  background: rgba(10,0,3,.85);
  color: rgba(255,255,255,.6);
  font-size: .9rem; font-family: var(--font-ui);
}
.reel-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(201,168,76,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reel-loading.hidden { display: none; }

/* fullscreen */
.reel-player:fullscreen,
.reel-player:-webkit-full-screen {
  max-width: none;
  border-radius: 0;
  aspect-ratio: auto;
}

/* responsive — wider on desktop */
@media (min-width: 768px) {
  .reel-player { max-width: 400px; }
}
@media (min-width: 1024px) {
  .reel-player { max-width: 420px; }
}



/* ── RSVP SECTION ───────────────────────────────────────────── */
.rsvp-section {
  position: relative;
  overflow: hidden;
  padding: clamp(60px,10vw,120px) 0;
}
.rsvp-bg-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.rsvp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(90,0,22,.9), rgba(0,0,0,.75));
}
.rsvp-glass-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px,6vw,72px);
  max-width: min(720px, 92vw);
  margin-inline: auto;
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
}
.light-eyebrow { color: var(--gold-light); }
.light-title { color: var(--white); }
.light-ornament { color: var(--gold); }
.light-ornament span {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.6));
}
.light-ornament span:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.6), transparent);
}
.rsvp-note {
  color: rgba(255,255,255,.75); text-align: center;
  font-size: clamp(.9rem,2vw,1.05rem); line-height: 1.8;
  margin-bottom: 32px;
}
.rsvp-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,200px), 1fr));
  gap: 16px; margin-bottom: 32px;
}
.rsvp-contact-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.rsvp-contact-card:hover,
.rsvp-contact-card:focus-visible,
.rsvp-contact-card:active {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  transform: translateY(-3px);
  outline: none;
}
.rsvp-contact-card i {
  color: var(--gold); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0;
}
.rsvp-contact-card div {
  display: flex; flex-direction: column; gap: 4px;
}
.rsvp-contact-card strong {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-light);
}
.rsvp-contact-card span {
  font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.5;
}
/* ── WEDDING GIFTS & BANK ACCOUNT CARD ──────────────────────── */
.gift-account-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}
.gift-account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gift-account-card:hover {
  border-color: rgba(201, 168, 76, 0.7);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}
.gift-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.gift-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(128, 0, 32, 0.4));
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
}
.gift-header-text {
  text-align: left;
}
.gift-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.gift-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.gift-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 20px;
}
.gift-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.gift-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.gift-val {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.account-number-field {
  grid-column: span 1;
}
.account-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.account-number {
  font-family: 'Courier New', Courier, monospace, var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--gold-light);
  font-weight: 700;
  background: rgba(201, 168, 76, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(201, 168, 76, 0.4);
}
.btn-copy-acc {
  background: linear-gradient(135deg, var(--gold), #a88430);
  color: #1a0006;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}
.btn-copy-acc:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.45);
}
.btn-copy-acc:active {
  transform: scale(0.96);
}
.btn-copy-acc.copied {
  background: #2e7d32;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.4);
}

.rsvp-hashtag {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem,4vw,2.5rem);
  font-style: italic;
  color: var(--gold);
  letter-spacing: .04em;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--burg-dark), #20000a);
  padding: clamp(40px,8vw,80px) 0 clamp(24px,4vw,40px);
  text-align: center;
  position: relative;
}
.footer-top-border {
  position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem,7vw,4.5rem);
  color: var(--gold);
  margin-bottom: 8px; line-height: 1.2;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem,2.5vw,1.4rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 24px;
}
.footer-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; color: var(--gold);
  margin-bottom: 20px;
}
.footer-divider span {
  display: block; height: 1px; width: clamp(30px,6vw,80px);
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5));
}
.footer-divider span:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.5), transparent);
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  justify-content: center; margin-bottom: 24px;
}
.footer-nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .3s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--gold); outline: none; }
.footer-copy {
  font-size: .8rem; color: rgba(255,255,255,.25);
  font-family: var(--font-ui);
  margin-bottom: 40px;
}

/* ── FOOTER AGENCY CREDIT (Donsoft) ────────────────────────── */
.footer-agency {
  margin-top: 12px;
  padding-top: 28px;
  text-align: center;
}
.footer-agency-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 20px;
  color: rgba(201, 168, 76, 0.4);
  font-size: 0.8rem;
}
.footer-agency-divider span {
  display: block; height: 1px; width: clamp(24px, 5vw, 60px);
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3));
}
.footer-agency-divider span:last-child {
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.3), transparent);
}
.footer-powered {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}
.footer-agency-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  margin-bottom: 4px;
}
.footer-agency-name:hover {
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}
.footer-agency-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-agency-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.footer-agency-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-agency-link:hover { color: var(--gold-light); }
.footer-agency-link i { font-size: 0.75rem; }
.footer-agency-sep { color: rgba(201, 168, 76, 0.4); font-size: 1rem; }
.footer-agency-cta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}
.footer-agency-cta-link {
  color: var(--gold) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-agency-cta-link:hover {
  color: var(--gold-light) !important;
  text-decoration: none;
}

/* ── RESPONSIVE — MOBILE & TABLET (100% Mobile Responsive) ─── */

/* ── Tablets & Medium Screens (<= 992px) ─────────────────────── */
@media (max-width: 992px) {
  .section { padding: clamp(48px, 8vw, 84px) 0; }
  .story-intro { grid-template-columns: 1fr; gap: 36px; }
  .story-collage { max-width: 440px; margin: 0 auto; width: 100%; padding: 0 12% 14% 0; }

  /* Timeline switches to single rail */
  .love-timeline::before, .love-timeline::after { left: 24px; }
  .tl-item:not(.tl-yes) { grid-template-columns: 48px 1fr; column-gap: 16px; margin-bottom: 32px; }
  .tl-item:not(.tl-yes) .tl-node { grid-column: 1; width: 48px; height: 48px; font-size: 0.95rem; margin-top: 14px; }
  .tl-left .tl-card, .tl-right .tl-card { grid-column: 2; }
  .tl-photo { padding-left: 48px; }
  .tl-photo .polaroid { width: min(320px, 90%); }
  .tl-yes { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 40px 0; }
  .tl-yes .tl-node { margin: 0 auto -30px; }
  .tl-yes .tl-card { width: 100%; max-width: 780px; margin: 0 auto; }
  .tl-end { margin-left: 0; }
}

/* ── Mobile Devices & Small Tablets (<= 768px) ───────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  /* Hamburger & Mobile Navigation */
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100dvh;
    background: rgba(253, 249, 244, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    overflow-y: auto;
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    z-index: 7000;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-link {
    color: var(--burg) !important;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    min-height: 52px;
  }
  .nav-link::after { display: none; }
  .nav-link:active {
    background: rgba(201, 168, 76, 0.1);
  }

  /* Hero adjustments */
  .hero-content {
    padding: clamp(70px, 14vh, 110px) 16px clamp(24px, 5vh, 44px);
    width: 100%;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10.5vw, 4.4rem);
    word-break: break-word;
  }
  .hero-amp {
    margin: -4px 0;
  }
  .hero-date-badge {
    padding: 8px 18px;
    gap: 8px;
  }
  .date-num {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
  .date-day, .date-rest {
    font-size: 0.72rem;
  }
  .btn-hero {
    padding: 12px 26px;
    font-size: 0.82rem;
  }

  /* Milestones on mobile -> Vertical stacked rail */
  .milestones {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 320px;
    margin: 0 auto clamp(40px, 7vw, 70px);
  }
  .milestones::before {
    top: 24px;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), rgba(201, 168, 76, 0.2));
  }
  .milestone {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .ms-dot {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }
  .ms-year {
    font-size: 1.15rem;
  }
  .ms-label {
    font-size: 0.7rem;
    margin-top: 2px;
  }

  /* Families Section */
  .families-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .families-amp {
    font-size: 3rem;
    margin: -8px 0;
  }
  .family-card {
    padding: 26px 20px;
  }

  /* Floating Music FAB */
  .music-fab {
    flex-direction: column;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    gap: 8px;
  }
  .music-fab-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  .music-tooltip {
    transform: translateY(10px);
    bottom: 100%;
    top: auto;
    right: 0;
    padding: 6px 12px;
  }
  .music-fab:hover .music-tooltip,
  .music-fab.active .music-tooltip {
    transform: translateY(0);
  }
}

/* ── Phones (<= 600px) ───────────────────────────────────────── */
@media (max-width: 600px) {
  /* Global typography & containers */
  .container {
    width: 100%;
    padding-inline: 16px;
  }
  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }
  .section-sub {
    font-size: 0.85rem;
  }

  /* Story Intro */
  .story-collage {
    max-width: 320px;
    padding: 0 10% 12% 0;
    margin-bottom: 28px;
  }
  .polaroid {
    padding: 10px 10px 46px;
  }
  .polaroid-caption {
    font-size: 1.3rem;
    bottom: 10px;
  }
  .polaroid-accent {
    width: 54%;
    right: -2%;
    bottom: -4%;
    padding: 8px 8px 36px;
  }
  .polaroid-accent .polaroid-caption {
    font-size: 1.05rem;
    bottom: 8px;
  }
  .photo-badge {
    left: 4px;
    top: 10px;
    font-size: 0.7rem;
    padding: 6px 12px;
  }
  .drop-cap::first-letter {
    font-size: 2.8em;
    line-height: 0.82;
    padding: 4px 6px 0 0;
  }
  .love-story-pullquote {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  /* Timeline */
  .love-timeline::before, .love-timeline::after { left: 18px; }
  .tl-item:not(.tl-yes) {
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
    margin-bottom: 24px;
  }
  .tl-item:not(.tl-yes) .tl-node {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    margin-top: 12px;
  }
  .tl-card {
    border-radius: 14px;
  }
  .tl-card-head {
    padding: 14px 16px 10px;
    gap: 10px;
  }
  .tl-avatar {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
  .tl-voice {
    font-size: 1.05rem;
  }
  .tl-date {
    font-size: 0.64rem;
  }
  .tl-card-body {
    padding: 14px 16px 18px;
    font-size: 0.88rem;
    line-height: 1.75;
  }
  .story-quote-inline {
    margin: 10px 0 !important;
    padding: 8px 14px;
    font-size: 1.05em;
  }

  /* Photo inside timeline */
  .tl-photo {
    padding-left: 36px;
    margin: 10px 0 36px;
  }
  .tl-photo .polaroid {
    width: 100%;
    max-width: 280px;
    transform: rotate(-1.5deg);
  }

  /* THE YES card — full width on mobile */
  .tl-yes {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin: 36px 0 !important;
  }
  .tl-yes .tl-node {
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
    margin: 0 auto -27px !important;
    z-index: 3;
    position: relative;
  }
  .tl-yes .tl-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 14px 28px;
    border-radius: 16px;
    box-sizing: border-box;
  }
  .tl-yes .tl-card::after {
    inset: 6px;
    border-radius: 12px;
  }
  .story-date-big {
    font-size: 1.25rem;
  }
  .story-yes {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    margin-bottom: 12px !important;
  }
  .tl-yes .tl-card-body {
    padding: 14px 10px 20px;
    font-size: 0.88rem;
  }

  /* Story Finale */
  .story-finale {
    padding: 26px 16px;
    border-radius: 18px;
    margin-top: 36px;
  }
  .story-finale::before {
    inset: 6px;
    border-radius: 14px;
  }
  .story-reflection {
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 18px;
  }
  .story-closing {
    margin: 18px 0;
  }
  .story-closing p {
    font-size: 0.98rem;
  }
  .story-closing p:last-child {
    font-size: 1.18rem;
  }
  .story-gratitude {
    font-size: 1.35rem;
    line-height: 1.6;
    padding-top: 18px;
  }

  /* Love Interlude */
  .love-interlude {
    min-height: 280px;
    padding: 56px 16px;
  }
  .interlude-heart {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .interlude-quote {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    line-height: 1.3;
  }
  .interlude-ref {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    margin-top: 14px;
  }

  /* Events Section */
  .event-card {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .event-icon-wrap {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .event-meta {
    gap: 10px;
  }
  .event-meta li span {
    font-size: 0.88rem;
  }
  .btn-event {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .directions-toggle {
    font-size: 0.75rem;
    padding: 9px 12px;
  }
  .directions-content {
    font-size: 0.84rem;
    padding: 12px;
  }

  /* Gallery */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-item {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-sm);
  }

  /* Moments / Photo Reel */
  .reel-player {
    max-width: min(100%, 360px);
    max-height: 72vh;
    border-radius: 16px;
  }
  .reel-topbar {
    padding: 12px 14px 26px;
  }
  .reel-bottom {
    padding: 26px 14px 12px;
  }
  .reel-song-info {
    margin-bottom: 10px;
    gap: 8px;
  }
  .reel-song-title {
    font-size: 0.78rem;
  }
  .reel-song-note {
    font-size: 0.62rem;
  }
  .reel-controls {
    gap: 8px;
    margin-bottom: 10px;
  }
  .reel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .reel-playpause {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  /* RSVP & Gifts */
  .rsvp-glass-card {
    padding: 24px 14px;
    border-radius: 18px;
  }
  .rsvp-contacts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .rsvp-contact-card {
    padding: 14px 16px;
  }
  .gift-account-card {
    padding: 18px 12px;
    margin-bottom: 24px;
    border-radius: 14px;
  }
  .gift-card-header {
    gap: 12px;
    margin-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .gift-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .gift-title {
    font-size: 1.15rem;
  }
  .gift-subtitle {
    font-size: 0.82rem;
  }
  .gift-details-grid {
    padding: 14px 12px;
    gap: 12px;
  }
  .account-copy-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .account-number {
    text-align: center;
    font-size: 1.15rem;
    padding: 6px 10px;
    display: block;
  }
  .btn-copy-acc {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    font-size: 0.85rem;
  }
  .rsvp-hashtag {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  /* Footer */
  .footer {
    padding: 40px 16px 24px;
  }
  .footer-script {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }
  .footer-tagline {
    font-size: 0.95rem;
  }
  .footer-nav {
    gap: 8px 18px;
  }
  .footer-nav a {
    font-size: 0.75rem;
  }
  .footer-agency-name {
    font-size: 1.4rem;
  }
  .footer-agency-contacts {
    flex-direction: column;
    gap: 8px;
  }
  .footer-agency-sep {
    display: none;
  }
}

/* ── Small Phones (<= 380px e.g. iPhone SE / Galaxy Fold) ───── */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }
  .countdown-strip {
    padding: 12px 4px;
    gap: 2px;
  }
  .countdown-num {
    font-size: 1.25rem;
  }
  .countdown-label {
    font-size: 0.48rem;
  }
  .countdown-sep {
    font-size: 1rem;
    padding-bottom: 8px;
  }

  /* Timeline */
  .love-timeline::before, .love-timeline::after { left: 14px; }
  .tl-item:not(.tl-yes) {
    grid-template-columns: 28px 1fr;
    column-gap: 8px;
  }
  .tl-item:not(.tl-yes) .tl-node {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
    margin-top: 10px;
  }
  .tl-card-head {
    padding: 10px 12px 8px;
  }
  .tl-avatar {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .tl-voice {
    font-size: 0.95rem;
  }
  .tl-card-body {
    padding: 10px 12px 14px;
    font-size: 0.82rem;
    line-height: 1.65;
  }
  .tl-photo {
    padding-left: 28px;
  }

  /* Gallery becomes 1 column on extremely small screens */
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item.tall, .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  /* Palette swatches */
  .palette-swatches {
    gap: 12px;
  }
  .swatch::before {
    width: 42px;
    height: 42px;
  }
}

/* ── Landscape Mobile Height Fix (<= 640px height) ───────────── */
@media (max-height: 640px) {
  .scroll-cue { display: none; }
  .hero-content { padding-top: 60px; padding-bottom: 12px; }
  .hero-title { font-size: 2.4rem; margin-bottom: 8px; }
  .hero-date-badge { margin-bottom: 14px; padding: 6px 16px; }
  .hero-hashtag { margin-bottom: 12px; }
}

/* ── UTILITY ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
