/* ==========================================================================
   Hansel & Maria — 09.11.2026
   Art Deco Miami glam: deep emerald, dusty rose, charcoal, warm gold.
   ========================================================================== */

:root {
  --emerald: #0E3B2E;
  --emerald-deep: #08261D;
  --emerald-bright: #17553F;
  --blush: #D9A6A6;
  --blush-deep: #C08585;
  --charcoal: #131313;
  --charcoal-soft: #1C1C1C;
  --gold: #C6A15B;
  --gold-bright: #E3C888;
  --ivory: #F4EDE0;
  --ivory-dim: rgba(244, 237, 224, 0.72);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Futura', sans-serif;

  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Native smooth-scroll off — Locomotive Scroll drives scrolling */
html { scroll-behavior: auto; scroll-padding-top: 96px; }

/* Locomotive scrollbar, tinted to the palette */
.c-scrollbar_thumb { background-color: var(--gold); opacity: 0.45; }

body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-bright); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--blush); }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
}

/* ---------- Utility layout ---------- */
.container { width: min(1180px, 92%); margin: 0 auto; position: relative; }
.container-narrow { width: min(860px, 92%); }

/* Fixed layer behind everything; JS melts its color between sections
   (each section declares its color via data-bg). */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--charcoal);
  transition: background-color 0.9s ease;
}

/* Sections are transparent — the bg-layer provides the base color;
   these classes only add an atmospheric radial accent. */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-dark { background: transparent; }
.section-emerald {
  background: radial-gradient(120% 90% at 50% 0%, rgba(23, 85, 63, 0.4) 0%, transparent 60%);
}
.section-blush {
  background: radial-gradient(100% 100% at 50% 100%, rgba(192, 133, 133, 0.22) 0%, transparent 65%);
}

/* ---------- Section headers & deco ornaments ---------- */
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.overline {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.4rem auto 0;
}
.deco-divider span {
  display: block;
  width: clamp(48px, 8vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.deco-divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.deco-divider i {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  background: transparent;
  color: var(--gold-bright);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }

.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-bright); color: var(--charcoal); }

.btn-outline:hover { background: rgba(198, 161, 91, 0.12); color: var(--gold-bright); }

.btn-emerald { background: var(--emerald); border-color: var(--emerald-bright); color: var(--ivory); }
.btn-emerald:hover { background: var(--emerald-bright); color: var(--ivory); }

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 1001;
}

/* ---------- Floating pill nav ----------
   Hidden over the hero; fades in past it. Hides on scroll-down,
   reappears on scroll-up (handled by JS via .shown). */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 94vw;
  padding: 0.55rem clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.nav.shown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-monogram {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
.nav-monogram em { color: var(--gold); font-style: italic; margin: 0 0.1em; }

/* Real logo file, if provided in wedding-photos/brand/ */
/* favicon-gold.svg ships with width/height="100%", so as an <img> it has no
   intrinsic width and `width:auto` collapses to 0 (invisible in the desktop
   pill). Pin an explicit width (34px height × the 970×595 viewBox ratio ≈ 55px)
   so it renders undistorted on every browser. */
.nav-logo { height: 34px; width: 55px; display: block; flex: 0 0 auto; }

.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after, .nav-links a:hover::after { right: 0; }

.nav-links a.nav-rsvp {
  border: 1px solid var(--gold);
  padding: 0.5rem 1.2rem;
  color: var(--gold-bright);
}
.nav-links a.nav-rsvp:hover, .nav-links a.nav-rsvp.active { background: var(--gold); color: var(--charcoal); }
.nav-links a.nav-rsvp::after { display: none; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav {
    left: 16px;
    right: 16px;
    max-width: none;
    justify-content: space-between;
    transform: translateY(-16px);
  }
  .nav.shown { transform: translateY(0); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
  }
  .nav-toggle span {
    display: block;
    width: 26px; height: 1.5px;
    background: var(--gold-bright);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  /* Dropdown panel hanging off the pill (the pill's transform/backdrop-filter
     would trap a position:fixed overlay, so the panel is absolute instead) */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.15rem;
    padding: 1.5rem 1.2rem;
    border: 1px solid rgba(198, 161, 91, 0.4);
    border-radius: 26px;
    background: rgba(12, 12, 12, 0.97);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 0.92rem; }
  .nav-links a::after { display: none; }
}

/* ---------- Hero ----------
   Centered stack (logo, names, date) pinned to the top of the frame;
   the countdown rides the bottom edge. */
.hero {
  /* Spacing tokens: bottom chrome stacks up from the safe-area inset —
     safe-area → cue-gap → scroll cue (cue-h) → stack-gap → bottom group.
     Shared math means the pieces can never collide at any height. */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --cue-gap: 2rem;    /* scroll cue above safe area */
  --cue-h: 44px;      /* scroll cue height */
  --stack-gap: 0.5rem; /* bottom group above the cue */

  position: relative;
  min-height: 100svh;
  min-height: 100dvh; /* tracks mobile browser chrome; stops the next section peeking */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Poster paints instantly; the video is layered on top and fades in once it
   can play, so the handoff is seamless (no black flash while it buffers). */
.hero-media video { opacity: 0; transition: opacity 0.7s ease; }
.hero-media video.is-playing { opacity: 1; }

/* Deco fallback when no hero asset present */
.hero.media-missing .hero-media {
  background:
    repeating-conic-gradient(from 90deg at 50% 120%, rgba(198, 161, 91, 0.10) 0deg 1deg, transparent 1deg 12deg),
    radial-gradient(90% 70% at 50% 115%, rgba(23, 85, 63, 0.8) 0%, transparent 65%),
    linear-gradient(180deg, #0B0B0B 0%, var(--emerald-deep) 130%);
}

/* Desktop scrim: eased 5-stop bands (slow start, fast middle, gentle
   tail) so the fade reads cinematic instead of a hard linear cutoff.
   Tuned for worst-case bright frames; middle stays fully clear.
   Top: opaque → gone by 28%. Bottom: fades in from 78%. */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.72) 12%,
      rgba(0, 0, 0, 0.52) 22%,
      rgba(0, 0, 0, 0.24) 30%,
      rgba(0, 0, 0, 0) 38%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0) 78%,
      rgba(0, 0, 0, 0.14) 84%,
      rgba(0, 0, 0, 0.42) 90%,
      rgba(0, 0, 0, 0.68) 95%,
      rgba(0, 0, 0, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 760px);
  /* desktop: lifted ~5-6vh into the sky (mobile overrides its own padding) */
  padding: clamp(1.8rem, 2.5vh, 2.5rem) 1.5rem 2rem;
}

.hero-content .deco-divider { margin: 1.6rem auto 0; }

/* The logo is the hero statement (asset is trimmed to its art bounds,
   ~1.9:1, so rendered size = visible size) */
.hero-logo {
  display: block;
  width: min(17vw, 210px); /* desktop size; mobile overrides below */
  height: auto;
  margin: 0 auto 0.7rem;
  /* minimal shadow — the extended overlay gradient does the contrast work */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.hero-names {
  /* desktop size (halved); mobile blocks below override to their own sizes */
  font-size: clamp(1.2rem, 3.25vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ivory);
  /* tight + soft shadows: worst-case legibility at the scrim's tail */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.85), 0 6px 40px rgba(0, 0, 0, 0.7);
}
/* Name lockup asset (replaces the text; wide thin line, sized to the
   footprint the text had at each breakpoint) */
.hero-names-img {
  display: block;
  width: min(26vw, 330px);
  height: auto;
  margin: 0 auto;
  /* minimal shadow — clean letterforms; gradient carries the contrast */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.hero-names .amp {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
  font-size: 0.62em;
  vertical-align: 6%;
  margin: 0 0.12em;
}

.hero-date {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-top: 1.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 4px 22px rgba(0, 0, 0, 0.6);
}

/* Bottom-anchored group, positioned via the shared spacing tokens */
.hero-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-b) + var(--cue-gap) + var(--cue-h) + var(--stack-gap));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 420px);
}
/* The date rides on top of the countdown in the bottom group
   (all breakpoints); the top-stack date is retired */
.hero-date-bottom { display: block; margin: 0 0 0.7rem; }
.hero-date-top { display: none; }

/* Countdown: frosted bar */
.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(0.8rem, 2.2vw, 1.3rem);
  padding: 0.65rem 1.25rem;
  /* frosted glass: low-opacity fill, heavier blur */
  background: rgba(10, 10, 10, 0.32);
  border: 1px solid rgba(244, 237, 224, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.count-cell {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.count-sep {
  width: 3px;
  height: 3px;
  background: rgba(244, 237, 224, 0.5);
  transform: rotate(45deg);
}
.count-num {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-label {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.7);
}

/* ----- Hero, mobile (<768px) -----
   Logo + names + divider anchored top; date + countdown + RSVP anchored
   bottom; the middle stays clear so the couple is always visible no
   matter where the video's motion puts them. */
@media (max-width: 768px) {
  .hero {
    --cue-gap: 0.75rem;  /* cue sits just above the safe area */
    --cue-h: 38px;       /* cue renders at 0.85 scale */
    --stack-gap: 0.9rem;
  }

  /* Mobile scrim: same eased 5-stop curves, shorter top reach — fully
     faded by 22%, clear of the face zone (~27%+) at any playback point.
     Bottom band fades in from 85% behind date/countdown/scroll cue. */
  .hero-vignette {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 10%,
        rgba(0, 0, 0, 0.6) 16%,
        rgba(0, 0, 0, 0.3) 22%,
        rgba(0, 0, 0, 0) 27%),
      linear-gradient(180deg,
        rgba(0, 0, 0, 0) 85%,
        rgba(0, 0, 0, 0.16) 89%,
        rgba(0, 0, 0, 0.45) 93%,
        rgba(0, 0, 0, 0.7) 97%,
        rgba(0, 0, 0, 0.9) 100%);
  }

  /* Top block: compact — text must sit inside the top scrim band,
     which fades out by 22% (clear of the ~27% face zone) */
  .hero-content {
    padding-top: calc(env(safe-area-inset-top, 0px) + 1.6rem);
    padding-bottom: 0;
  }
  .hero-logo { width: min(55vw, 248px); margin-bottom: 0.3rem; }
  .hero-names { font-size: 2.1rem; }
  .hero-names-img { width: min(66vw, 300px); }
  .hero-content .deco-divider { margin-top: 0.8rem; }
  .hero-date-top { display: none; }

  /* Bottom group: date above countdown (tight), RSVP beneath */
  .hero-date-bottom {
    display: block;
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
  }
  .hero-scroll { transform: translateX(-50%) scale(0.85); }
}

/* Short phones (iPhone SE class): compress both blocks so the clear
   middle survives on ~667px-tall screens, and pull the dark bands to
   match the taller-relative stacks */
@media (max-width: 768px) and (max-height: 700px) {
  .hero-content { padding-top: calc(env(safe-area-inset-top, 0px) + 1.2rem); }
  .hero-logo { width: min(48vw, 225px); margin-bottom: 0.3rem; }
  .hero-names { font-size: 2rem; }
  .hero-content .deco-divider { margin-top: 0.9rem; }
}

@media (max-width: 400px) {
  .countdown { gap: 0.55rem; padding: 0.6rem 0.9rem; }
  .count-label { letter-spacing: 0.12em; }
}

.hero-scroll {
  position: absolute;
  bottom: calc(var(--safe-b) + var(--cue-gap));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1px solid rgba(198, 161, 91, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  display: block;
  width: 3px; height: 9px;
  background: var(--gold-bright);
  border-radius: 2px;
  margin-top: 8px;
  animation: scrollHint 2.2s infinite var(--ease-out);
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* Progress-driven scroll effects (transform/opacity set by JS) */
[data-fx] { will-change: transform, opacity; }

/* ---------- Media frames & placeholders ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-soft);
}
.media-frame img, .media-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Placeholder shown until real photos are dropped into wedding-photos/ */
.media-frame.ph {
  border: 1px solid rgba(198, 161, 91, 0.35);
  background:
    repeating-linear-gradient(45deg, rgba(198, 161, 91, 0.05) 0 2px, transparent 2px 14px),
    radial-gradient(70% 70% at 50% 30%, rgba(23, 85, 63, 0.45) 0%, transparent 70%),
    var(--charcoal-soft);
}
.media-frame.ph::before {
  content: 'H · M';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: rgba(198, 161, 91, 0.55);
}
.media-frame.ph::after {
  content: attr(data-ph);
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(244, 237, 224, 0.35);
}

/* ---------- Weekend timeline ---------- */
.timeline { position: relative; padding: 1rem 0; }

.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(198, 161, 91, 0.2);
}
.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
  transition: height 0.2s linear;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3.4rem 2rem 0;
}
/* items are <article>, so nth-of-type skips the .timeline-line div */
.timeline-item:nth-of-type(even) { margin-left: 50%; padding: 2rem 0 2rem 3.4rem; }

.timeline-dot {
  position: absolute;
  top: 3.2rem;
  right: -6px;
  width: 11px; height: 11px;
  background: var(--charcoal);
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  z-index: 2;
}
.timeline-item:nth-of-type(even) .timeline-dot { right: auto; left: -6px; }

.timeline-card {
  border: 1px solid rgba(198, 161, 91, 0.3);
  background: rgba(28, 28, 28, 0.6);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.timeline-card:hover {
  border-color: rgba(198, 161, 91, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.timeline-media { aspect-ratio: 16 / 9; }

.timeline-body { padding: 1.6rem 1.8rem 1.9rem; }

.timeline-day {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.5rem;
}
/* small ornamental rule flanking the day label (timeline vignette nod) */
.timeline-day::before, .timeline-day::after {
  content: '';
  height: 1px;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.timeline-day::after { background: linear-gradient(90deg, var(--gold), transparent); }
/* Day + date share one flex slot between the ornamental rules. Desktop keeps
   them inline ("Thursday, September 10"); mobile stacks day over date. */
.td-when { display: inline; }
.td-day::after { content: ',\00A0'; }
@media (max-width: 768px) {
  .td-when { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; line-height: 1.2; }
  .td-day::after { content: none; }
}
.timeline-body h3 { font-size: 1.9rem; color: var(--ivory); }
.timeline-time {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin: 0.5rem 0 0.75rem;
}
.timeline-place { font-size: 1.05rem; color: var(--ivory-dim); }

@media (max-width: 760px) {
  .timeline-line { left: 8px; transform: none; }
  .timeline-item,
  .timeline-item:nth-of-type(even) {
    width: 100%;
    margin-left: 0;
    padding: 1.4rem 0 1.4rem 2.4rem;
  }
  .timeline-dot,
  .timeline-item:nth-of-type(even) .timeline-dot { left: 3px; right: auto; top: 2.6rem; }
}

/* ---------- Celebration (two-column: details left, collage right) ---------- */
.celebration-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.celebration-intro {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: var(--blush);
  margin-bottom: 2rem;
}

/* Invitation-style event card — double gold frame, big time pair,
   quiet last-dance line beneath */
.event-card {
  position: relative;
  text-align: center;
  border: 1px solid rgba(198, 161, 91, 0.5);
  background: rgba(10, 10, 10, 0.35);
  padding: 2.2rem 1.8rem 2rem;
  margin-bottom: 2.4rem;
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(198, 161, 91, 0.2);
  pointer-events: none;
}
.event-card-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.4rem;
}
.event-date {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  color: var(--ivory);
  margin-bottom: 1.6rem;
}
.event-times-major {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.event-time { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.event-time-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}
.event-time-value small { font-size: 0.45em; font-weight: 500; letter-spacing: 0.08em; }
.event-time-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.event-time-sep {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(198, 161, 91, 0.6), transparent);
}
.event-time-minor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(244, 237, 224, 0.6);
  margin-bottom: 1.6rem;
}
.event-venue { font-size: 1.08rem; color: var(--ivory-dim); }
.event-venue a { display: inline-block; margin-top: 0.15rem; }

.finer-details { margin-bottom: 2.4rem; }
.finer-head {
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 0.4rem;
}

.celebration-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Offset/overlapping collage; sticky so it keeps you company down the accordion */
.celebration-photos { position: sticky; top: 110px; }
.collage { position: relative; padding: 0 0 4.5rem 12%; }
.collage-main {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
}
.collage-main.ph::before { transform: translate(-50%, -20%); }
.collage-overlap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 1px solid rgba(198, 161, 91, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.collage-caption {
  position: absolute;
  right: 4%;
  bottom: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-bright);
}
.collage-caption::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.7rem;
}

@media (max-width: 860px) {
  .celebration-grid { grid-template-columns: 1fr; }
  .celebration-photos { position: static; order: -1; }
  .collage { padding-left: 8%; }
}

/* ---------- FAQ accordion (no top rule — the heading stands alone) ---------- */
.accordion { border-top: none; }

.acc-item { border-bottom: 1px solid rgba(198, 161, 91, 0.3); }

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 0.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
  text-align: left;
  transition: color 0.25s;
}
.acc-header:hover { color: var(--gold-bright); }
.acc-header[aria-expanded="true"] { color: var(--gold-bright); }

.acc-icon {
  position: relative;
  flex: 0 0 18px;
  height: 18px;
}
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-header[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-header[aria-expanded="true"] .acc-icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.acc-content { padding: 0.2rem 0.4rem 1.8rem; color: var(--ivory-dim); }
.acc-content p + p, .acc-content ul { margin-top: 0.9rem; }
.acc-content ul { padding-left: 1.4rem; }
.acc-content strong { color: var(--ivory); }

.parking-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.4rem;
}
.parking-photos .media-frame { aspect-ratio: 4 / 3; }
/* Clickable wayfinding shots */
.parking-shot {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.parking-shot:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
@media (max-width: 640px) { .parking-photos { grid-template-columns: 1fr; } }

/* ---------- Travel tabs ---------- */
.tab-bar {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(198, 161, 91, 0.3);
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 1rem 1.2rem;
  transition: color 0.3s;
}
.tab-btn:hover { color: var(--ivory); }
.tab-btn.active { color: var(--gold-bright); }

.tab-ink {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transition: left 0.4s var(--ease-out), width 0.4s var(--ease-out);
}

.tab-panel { animation: tabIn 0.55s var(--ease-out); }
.tab-panel[hidden] { display: none; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.tab-note {
  text-align: center;
  font-style: italic;
  color: var(--blush);
  margin-bottom: 2rem;
}

.tab-subhead {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.4rem 0 1.2rem;
  text-align: center;
}
.tab-subhead:first-of-type { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid-3 { grid-template-columns: 1fr; } }

.info-card {
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: rgba(19, 19, 19, 0.45);
  padding: 1.7rem 1.7rem 1.6rem;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.info-card:hover {
  border-color: rgba(198, 161, 91, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.info-card.featured { border-color: rgba(198, 161, 91, 0.55); background: rgba(8, 38, 29, 0.5); }

.info-card h5 { font-size: 1.45rem; color: var(--ivory); margin-bottom: 0.35rem; }
.info-card p { font-size: 1.02rem; color: var(--ivory-dim); }
.info-card p + p { margin-top: 0.55rem; }

.card-tag {
  font-family: var(--sans);
  font-size: 0.64rem !important;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blush) !important;
  margin-bottom: 0.7rem;
}
.card-addr {
  font-family: var(--sans);
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  color: rgba(244, 237, 224, 0.5) !important;
  margin-bottom: 0.7rem;
}
.card-picks { font-style: italic; color: var(--blush) !important; }
.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(198, 161, 91, 0.5);
  padding-bottom: 2px;
}
.card-btn {
  margin-top: 1.1rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.74rem;
}

/* ---------- Gallery (Locomotive Scroll 12-col dense grid) ----------
   Hardcoded aspect-ratios on every wrapper keep Locomotive's height
   math exact — no overlap or clipping from late-loading media. */
.g-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.g-item {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  background: var(--charcoal-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.4s;
}
.g-item:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55); }
.g-item img, .g-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.g-item:hover img, .g-item:hover video { transform: scale(1.05); }

/* Spans chosen so every row sums to 12 columns (4+4+4 or 8+4) — no holes */
.item--portrait  { grid-column: span 4; aspect-ratio: 3 / 4; }
.item--landscape { grid-column: span 8; aspect-ratio: 16 / 9; }
.item--square    { grid-column: span 4; aspect-ratio: 1 / 1; }
/* Filmstrip spans two grid rows and stretches to fill them exactly, so
   two portraits stack cleanly beside it with no dead space */
.item--filmstrip { grid-column: span 4; grid-row: span 2; }

@media (max-width: 768px) {
  .g-grid { gap: 12px; }
  .item--portrait  { grid-column: span 6; }
  .item--landscape { grid-column: span 12; }
  .item--square    { grid-column: span 6; }
  .item--filmstrip { grid-column: span 6; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 8, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img, .lb-stage video {
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(198, 161, 91, 0.4);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(198, 161, 91, 0.5);
  color: var(--gold-bright);
  cursor: pointer;
  font-family: var(--serif);
  transition: background 0.25s, color 0.25s;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--charcoal); }

.lb-close {
  top: 1.4rem; right: 1.4rem;
  width: 46px; height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 66px;
  font-size: 2.2rem;
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
@media (max-width: 640px) {
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
  .lb-prev, .lb-next { width: 40px; height: 54px; font-size: 1.7rem; }
}

/* ---------- Send-a-gift modal ----------
   Light "invitation card" on the dark overlay so the Apple Pay (black) and
   Zelle (purple) brand marks read correctly. */
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 8, 8, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.gift-modal[hidden] { display: none; }

.gift-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--ivory);
  color: var(--emerald-deep);
  border: 1px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  animation: giftIn 0.3s var(--ease-out);
}
.gift-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(198, 161, 91, 0.3);
  pointer-events: none;
}
@keyframes giftIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.gift-close {
  position: absolute;
  top: 0.6rem; right: 0.9rem;
  background: none; border: none;
  color: var(--emerald-deep);
  font-family: var(--serif);
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  z-index: 2;
}
.gift-close:hover { opacity: 1; }

.gift-overline { color: #A5813C; margin-bottom: 0.5rem; }
.gift-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.6rem);
  color: var(--emerald-deep);
  margin: 0;
}
.gift-divider { margin: 0.9rem auto 1.3rem; }

.gift-intro {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(8, 38, 29, 0.82);
  max-width: 42ch;
  margin: 0 auto 1.7rem;
}
.gift-intro strong { color: var(--emerald-deep); font-weight: 600; }

.gift-recipient {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}
.gift-to {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #A5813C;
}
.gift-name { font-family: var(--serif); font-size: 1.55rem; color: var(--emerald-deep); }
.gift-num {
  font-family: var(--sans);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--emerald-bright);
}

.gift-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}
.gift-logo img { height: 34px; width: auto; display: block; }

.gift-qr-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold);
  padding: 0.15rem 0.1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.gift-qr-link:hover { color: #A5813C; border-color: #A5813C; }

.gift-qr { margin-top: 1.4rem; text-align: center; }
.gift-qr[hidden] { display: none; }
.gift-qr img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  border: 1px solid rgba(198, 161, 91, 0.45);
}

.gift-num-row { display: flex; align-items: center; justify-content: center; gap: 0.55rem; }
/* Copy-to-clipboard button — mobile only (desktop guests scan the QR) */
.gift-copy {
  display: none;
  background: none;
  border: none;
  padding: 9px;
  margin: -9px 0;
  line-height: 0;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s;
}
.gift-copy img { width: 21px; height: 21px; display: block; }
.gift-copy:active { transform: scale(0.88); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%) translateY(10px);
  z-index: 1200;
  background: var(--emerald-deep);
  color: var(--ivory);
  border: 1px solid var(--gold);
  padding: 0.7rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* On a phone the guest is already on the device that would scan the code,
   so the Zelle QR (and its toggle) are hidden; the copy button shows instead. */
@media (max-width: 768px) {
  .gift-qr-link, .gift-qr { display: none !important; }
  .gift-copy { display: inline-flex; }
}

/* ---------- RSVP ---------- */
/* Halved gap between the end of RSVP and the start of Registry */
#rsvp { padding-bottom: clamp(2.25rem, 4.5vw, 4rem); }
#registry { padding-top: clamp(2.25rem, 4.5vw, 4rem); }

/* Optional full-bleed background photo behind the whole section */
.rsvp-bg { position: absolute; inset: 0; overflow: hidden; }
.rsvp-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.rsvp-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 42, 32, 0.85), rgba(10, 10, 10, 0.6) 50%, rgba(11, 42, 32, 0.9));
}

.rsvp-copy {
  max-width: 560px;
  margin: 1.6rem auto 0;
  color: var(--ivory-dim);
}

/* Auto-scrolling marquee photo strip */
.rsvp-strip {
  overflow: hidden;
  margin: 0.6rem 0 0;
  padding: 0.4rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rsvp-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: stripScroll 45s linear infinite;
}
.rsvp-strip:hover .rsvp-strip-track { animation-play-state: paused; }
@keyframes stripScroll {
  to { transform: translateX(calc(-50% - 8px)); } /* -8px = half the 16px gap */
}
.rsvp-strip .media-frame {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 3 / 2;
  border-radius: 10px;
}
/* These two are tall portraits with faces near the top — the default centered
   crop cuts them off, so bias the crop upward. */
.rsvp-strip .media-frame[data-ph="gallery-17.jpg"] img,
.rsvp-strip .media-frame[data-ph="gallery-18.jpg"] img { object-position: 50% 12%; }
/* Mobile: the marquee is replaced by a scroll-driven sweep (js) */
@media (max-width: 768px) {
  .rsvp-strip-track { animation: none; will-change: transform; }
  /* Balance the footer photo on mobile so Maria and Hansel each fill ~half
     of the narrow vertical crop (their faces meet at the horizontal center) */
  .footer-media img { object-position: 66% 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .rsvp-strip-track { animation: none; }
}

.rsvp-deadline {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}
.rsvp-deadline strong { color: var(--gold-bright); font-weight: 500; }

.rsvp-box {
  border: 1px solid rgba(198, 161, 91, 0.4);
  background: rgba(8, 38, 29, 0.45);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  position: relative;
}
.rsvp-box::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(198, 161, 91, 0.18);
  pointer-events: none;
}
.rsvp-box > * { position: relative; }

.rsvp-instructions { text-align: center; color: var(--ivory-dim); margin-bottom: 1.8rem; }

.rsvp-lookup-form {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}
.rsvp-name-fields { display: flex; flex: 1; gap: 12px; }
.rsvp-name-fields input { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .rsvp-lookup-form { flex-direction: column; }
  .rsvp-name-fields { flex-direction: row; }
}

input[type="text"] {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ivory);
  background: rgba(19, 19, 19, 0.6);
  border: 1px solid rgba(198, 161, 91, 0.4);
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.3s;
}
input[type="text"]::placeholder { color: rgba(244, 237, 224, 0.35); font-style: italic; }
input[type="text"]:focus { border-color: var(--gold); }

.rsvp-msg {
  text-align: center;
  margin-top: 1.2rem;
  font-style: italic;
  color: var(--blush);
  min-height: 1.5em;
}
.rsvp-msg.error { color: #E8A0A0; }
.rsvp-msg.success { color: var(--gold-bright); }

/* Fuzzy "did you mean" confirm step */
.rsvp-suggest-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.4rem;
}
.rsvp-suggest-yes { width: 100%; max-width: 22rem; }
.rsvp-suggest-retry { display: block; margin: 0 auto; }

.guest-card {
  border: 1px solid rgba(198, 161, 91, 0.35);
  background: rgba(19, 19, 19, 0.4);
  padding: 1.6rem 1.6rem 1.5rem;
  margin-bottom: 1.2rem;
}
.guest-card h4 {
  font-size: 1.55rem;
  color: var(--ivory);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}

.rsvp-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.rsvp-q-label { color: var(--ivory-dim); }
.rsvp-q-label small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
/* Venue tag sharing the title line (e.g. "Pool Day - DORAL") */
.q-where {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.toggle-group { display: flex; gap: 8px; }
/* Desktop: keep the Yes/No group pinned to the right on the same row as the
   label (never wrap below) so the buttons line up across every event. */
@media (min-width: 769px) {
  .rsvp-q { flex-wrap: nowrap; }
  .rsvp-q-label { min-width: 0; }
  .toggle-group { flex: 0 0 auto; }
}
.toggle-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  background: transparent;
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: var(--ivory-dim);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.toggle-btn:hover { border-color: var(--gold); color: var(--ivory); }
.toggle-btn.on-yes { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.toggle-btn.on-no { background: rgba(192, 133, 133, 0.25); border-color: var(--blush-deep); color: var(--blush); }

.rsvp-q.unanswered .toggle-btn { border-color: #C97; }
.rsvp-q.unanswered .rsvp-q-label small { color: #E8A0A0; }

.song-field { margin-top: 1rem; }
.song-field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.song-field input { width: 100%; }

.rsvp-submit { width: 100%; margin-top: 0.8rem; }
.rsvp-submit[disabled] { opacity: 0.55; cursor: wait; transform: none; }

.rsvp-done { text-align: center; }
.rsvp-done h3 { font-size: 2.2rem; margin: 1.4rem 0 0.8rem; color: var(--gold-bright); }
.rsvp-done p { color: var(--ivory-dim); margin-bottom: 1.6rem; }

/* ---------- Honeymoon fund ---------- */
.registry-inner { text-align: center; }
.registry-copy {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--ivory-dim);
  max-width: 620px;
  margin: 2rem auto 2.4rem;
}
#honeymoonLink[aria-disabled="true"] { opacity: 0.7; cursor: default; }
#honeymoonLink[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

/* ---------- Back-to-top ----------
   Mirrors the pill nav: appears past the hero on scroll-up, fades on scroll-down. */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.7rem 0.9rem 0.55rem;
  border: 1px solid rgba(198, 161, 91, 0.5);
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-bright);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), background 0.25s;
}
.to-top.shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: rgba(198, 161, 91, 0.18); }
.to-top-arrow { font-size: 1.1rem; line-height: 1; }
.to-top-label {
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--emerald-deep);
}
.footer-media {
  position: absolute;
  inset: 0;
  background: none;
}
.footer-media.ph::before, .footer-media.ph::after { display: none; }
.footer-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
/* Frame the couple (faces ~58% across, ~30% down in the landscape original).
   Desktop uses a min-width query so it can't override the mobile crop below
   regardless of source order. */
@media (min-width: 769px) {
  .footer-media img { object-position: 58% 30%; }
}
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 38, 29, 0.75), rgba(10, 10, 10, 0.85));
}

.footer-content { position: relative; z-index: 2; }

.footer-hashtag {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-style: italic;
  color: var(--gold-bright);
}
.footer-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--ivory-dim);
  margin-top: 0.7rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin-top: 2.2rem;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.footer-nav a:hover { color: var(--gold-bright); }

.footer-monogram { margin: 2.6rem auto 0; opacity: 0.95; display: flex; justify-content: center; }
.footer-monogram img { width: min(80vw, 600px); height: auto; }
