/* ══════════════════════════════════════════════════════
   Suvi & Nikhit — editorial one-scroll redesign
   ══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --color-bg:        #FFF9F3;
  --color-bg-warm:   #F0E6DA;
  --color-terracotta:#B85C38;
  --color-terra-deep:#582823;
  --color-chestnut:  #7B4E35;
  --color-cafe-noir: #443223;
  --color-mauve:     #755151;
  --color-beige:     #DBC4A5;
  --color-weathered: #A08670;
  --color-olive:     #7C7960;
  --color-cream:     #FFF9F3;
  --color-text:      #331F18;
  --color-text-soft: #6B5544;
  --color-ink:       #2B1A13;
  --color-border:    #D4C4B0;
  --color-hairline:      rgba(51, 31, 24, .18);
  --color-hairline-inv:  rgba(255, 249, 243, .25);

  --font-display:    'Fraunces', Georgia, serif;
  --font-accent:     'Fraunces', Georgia, serif;
  --font-italic:     'Cormorant Garamond', Georgia, serif;
  --font-body:       'Montserrat', 'Helvetica Neue', sans-serif;

  --fs-hero:       clamp(3rem, 12vw, 11.5rem);
  --fs-giant:      clamp(4.2rem, 16.5vw, 18rem);
  --fs-display:    clamp(2.4rem, 6.5vw, 5.2rem);
  --fs-display-lg: clamp(1.8rem, 4vw, 3rem);
  --fs-label:      .72rem;

  --space-section: clamp(96px, 13vw, 170px);
  --space-block:   clamp(40px, 6vw, 72px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ── Reset / base ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
html.no-lenis { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--color-terracotta); color: var(--color-cream); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }

section { position: relative; padding: var(--space-section) 0; }
section[id] { scroll-margin-top: 72px; }

/* ── Type utilities ─────────────────────────────────── */
.serif-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
}
.accent { color: var(--color-terracotta); }
.muted { color: var(--color-text-soft); font-size: .85rem; }

.kicker {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.22;   /* room for descenders — SplitText's mask clips them at tighter leading */
  letter-spacing: .005em;
  text-align: center;
  color: var(--color-ink);
}
.display-title .serif-italic { font-size: .92em; font-weight: 300; }

.giant-headline {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--fs-giant);
  line-height: .84;
  letter-spacing: -.01em;
  color: var(--color-ink);
  white-space: nowrap;
  width: max-content;
  text-transform: uppercase;
}

.paren-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--color-ink);
  text-align: center;
  display: flex; align-items: baseline; justify-content: center; gap: .08em;
}
.paren-title .paren {
  font-family: var(--font-italic);
  font-style: italic; font-weight: 300;
  font-size: 1.12em;
  color: var(--color-terracotta);
  transform: translateY(.02em);
}

.section-sub {
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin: 18px auto 0;
  max-width: 560px;
}

/* LABEL / value rows */
.label-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: var(--fs-label);
  line-height: 1.6;
}
.label-row .lbl {
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-terracotta);
  white-space: nowrap;
}
.label-row .lbl::after { content: ' /'; color: var(--color-terracotta); }
.label-row .val {
  font-weight: 500; letter-spacing: .06em;
  color: var(--color-ink);
}
.label-row .val a { text-decoration: underline; text-underline-offset: 3px; }
.label-row--inv .lbl, .label-row--inv .lbl::after { color: rgba(51, 31, 24, .75); }
.label-row--inv .val { color: var(--color-cream); }

/* underline CTA (replaces .btn) */
.cta-underline {
  display: inline-block;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-ink);
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  transition: color .3s, border-color .3s;
  cursor: pointer;
}
.cta-underline:hover { color: var(--color-terracotta); }

/* ── Photo frames & placeholders ────────────────────── */
.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  background: var(--color-bg);
  aspect-ratio: 4 / 5;
}
.frame::before {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid var(--color-hairline);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.frame--arch { border-radius: 999px 999px 0 0; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--ornate { border-width: 2px; border-color: rgba(51,31,24,.3); }
.frame--polaroid {
  background: #fff;
  border: none;
  padding: 10px 10px 34px;
  aspect-ratio: 4 / 5.4;
  box-shadow: 0 10px 34px rgba(20, 8, 4, .28);
}
.frame--polaroid::before { display: none; }
/* pin the photo to exact insets — iOS Safari resolves height:100% against the
   wrong box and paints over the thick bottom border otherwise */
.frame--polaroid img {
  position: absolute;
  top: 10px; left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 44px);
}

/* placeholder state (photo not yet dropped into images/) */
.frame.is-ph {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(51,31,24,.05) 14px 15px),
    var(--color-bg-warm);
}
.frame--polaroid.is-ph {
  background: #fff;
}
.frame--polaroid.is-ph::after,
.frame.is-ph::after {
  content: attr(data-ph-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .66rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-terracotta);
  text-align: center;
  padding: 12px;
}
.frame--polaroid.is-ph::after {
  inset: 10px 10px 34px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(51,31,24,.05) 14px 15px),
    var(--color-bg-warm);
}
.frame img { cursor: zoom-in; }
#things-to-do .frame img { cursor: default; }   /* not part of the lightbox */
.frame.is-ph { cursor: default; }

/* ── Password gate (postcard) ───────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 300;
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(51,31,24,.028) 22px 23px),
    var(--color-bg-warm);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity .6s ease, visibility .6s;
}
.gate.gate-out { opacity: 0; visibility: hidden; pointer-events: none; }
html.gate-open #gate { display: none; }
body.gate-locked { overflow: hidden; height: 100dvh; }

.gate-card {
  background: #fff;
  width: min(920px, 100%);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 30px 90px rgba(30, 12, 6, .25);
}
.gate-card.shake { animation: gateShake .45s ease; }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.gate-photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.gate-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gate-photo.is-ph {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(51,31,24,.05) 14px 15px),
    var(--color-bg-warm);
}
.gate-photo.is-ph::after {
  content: attr(data-ph-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-terracotta);
}
.gate-side {
  position: relative;
  border-left: 1px solid var(--color-hairline);
  margin-left: 14px;
  padding: 26px 10px 22px 30px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.gate-stamp {
  position: absolute; top: 16px; right: 12px;
  width: 230px;
}
.gate-stamp img {
  display: block; width: 100%; height: auto;
  /* artwork sits on #ffffff — multiply melts the white into the card */
  mix-blend-mode: multiply;
}
.gate-names {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 420;
  color: var(--color-ink);
  margin-top: 10px;
  line-height: 1.1;
}
.gate-sub {
  font-size: 1.02rem;
  color: var(--color-text-soft);
  margin-top: 6px;
}
.gate-lines {
  display: grid; gap: 12px;
  margin: 26px 0 22px;
  max-width: 260px;
}
.gate-lines span { height: 1px; background: var(--color-hairline); }
.gate-label {
  display: block;
  font-size: .64rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 10px;
}
.gate-input-row {
  display: flex; align-items: center; gap: 10px;
  max-width: 300px;
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 7px;
}
.gate-input-row input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: none;
  font-family: var(--font-body);
  font-size: 16px; letter-spacing: .14em;   /* 16px prevents iOS focus-zoom */
  color: var(--color-ink);
}
.gate-input-row input::placeholder { color: var(--color-weathered); letter-spacing: .1em; }
.gate-input-row button {
  border: none; background: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1;
  color: var(--color-terracotta);
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin: -10px -6px -10px 0;   /* larger tap area without shifting layout */
  transition: transform .25s var(--ease-out);
}
.gate-input-row button:hover { transform: translateX(4px); }
.gate-error {
  font-size: .78rem;
  color: #A03B22;
  margin-top: 12px;
}
.gate-hint {
  font-size: .95rem;
  color: var(--color-text-soft);
  margin-top: 26px;
}

/* ── Nav ────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 20px 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255, 249, 243, .94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--color-hairline);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; letter-spacing: .02em;
  color: var(--color-cream);
  transition: color .4s;
  white-space: nowrap;
}
#navbar.scrolled .nav-logo { color: var(--color-ink); }

.nav-links {
  display: flex; gap: 26px;
  margin: 0 auto;
}
.nav-links a {
  font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--color-terracotta);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--color-text-soft); }
#navbar.scrolled .nav-links a:hover { color: var(--color-text); }

.nav-links a.active { color: var(--color-terracotta); }
.nav-links a.active::after { width: 100%; }
#navbar.scrolled .nav-links a.active { color: var(--color-terracotta); }

.nav-rsvp {
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-cream);
  transition: color .3s;
  white-space: nowrap;
  padding: 11px 2px;   /* taller tap target */
  margin: -11px 0;
  position: relative;
}
.nav-rsvp::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 8px;
  height: 1px; background: currentColor;
}
#navbar.scrolled .nav-rsvp { color: var(--color-ink); }
.nav-rsvp:hover { color: var(--color-terracotta); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 13px 11px;   /* ~44px tap target (bars + padding) */
  margin: -13px -11px -13px 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-cream);
  transition: background .3s, transform .3s;
}
#navbar.scrolled .nav-toggle span { background: var(--color-text); }

/* ── RSVP rails ─────────────────────────────────────── */
.rsvp-rail {
  position: fixed; top: 50%; z-index: 90;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--color-terracotta);
  padding: 10px 4px;
  transition: color .3s;
}
.rsvp-rail:hover { color: var(--color-terra-deep); }
.rsvp-rail--left  { left: 14px; }
.rsvp-rail--right { right: 14px; }

/* ── Hero ───────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  text-align: center;
  color: var(--color-cream);
  padding: 120px 24px 11vh;
  overflow: clip;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    url('images/hero.jpg') center / cover no-repeat,
    linear-gradient(160deg, #7B4E35 0%, #582823 40%, #331F18 100%);
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,12,8,.62) 0%, rgba(26,12,8,.18) 45%, rgba(26,12,8,.3) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-kicker { color: var(--color-cream); font-weight: 700; margin-bottom: 3vh; }
.hero-names {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: var(--fs-hero);
  line-height: .9;
  letter-spacing: -.015em;
  display: flex; align-items: center; justify-content: center;
  gap: 3.5vw;
  white-space: nowrap;
}
/* balance the names around the exact viewport center so the ornament (and
   the couple in the photo) sit dead-center — "Nikhit" being longer than
   "Suvi" was dragging the midpoint left */
.hero-names .hero-name:first-child { flex: 1 1 0; text-align: right; }
.hero-names .hero-name:last-child  { flex: 1 1 0; text-align: left; }
.hero-orn {
  width: .42em; flex: none;
  color: var(--color-beige);
  transform: translateY(.03em);
}
.hero-orn svg { width: 100%; height: auto; }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,249,243,.85);
  margin-top: 3.5vh;
}
.hero-meta {
  font-size: .74rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-beige);
  margin-top: 10px;
}
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50%      { transform: scaleY(1);  opacity: 1;  transform-origin: top; }
}

/* ── Countdown strip ────────────────────────────────── */
.countdown-strip {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 26px 24px;
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-bg);
  flex-wrap: wrap;
}
.countdown { display: flex; gap: clamp(28px, 5vw, 64px); }
.cd-cell { text-align: center; }
.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 450;
  line-height: 1.1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: .64rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-text-soft);
}

/* ── The Details (bold collage) ─────────────────────── */
#details {
  background: var(--color-terracotta);
  color: var(--color-cream);
  overflow: clip;
  isolation: isolate;   /* keeps the negative-z watermark above the section bg */
}
.details-watermark {
  position: absolute; inset: 0;
  font-size: clamp(6rem, 19vw, 16rem);
  line-height: .9;
  color: var(--color-cream);
  opacity: .09;
  pointer-events: none;
  user-select: none;
}
.details-watermark span {
  position: absolute;
  white-space: nowrap;
  transform: rotate(-3deg);
  top: 2%; left: -2%;
}
/* "Guatemala" is anchored to the section so it sits behind the photos at
   every carousel station (it used to live inside the scroller and rode away
   with the first card on mobile) */
.details-wm-guatemala {
  position: absolute;
  bottom: 0.37em;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-size: clamp(6rem, 19vw, 16rem);
  line-height: .9;
  color: var(--color-cream);
  opacity: .09;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/* desktop: pull the top watermark word ~½ inch toward the center */
@media (min-width: 901px) {
  .details-watermark span { top: 4%; left: calc(-2% + 48px); }
}
.details-title { color: var(--color-cream); margin-bottom: var(--space-block); }
.details-dots { display: none; }   /* station dots appear only on the mobile carousel */
.details-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  position: relative;   /* anchors the Guatemala watermark to the collage */
}
.polaroid {
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}
.details-collage .polaroid:nth-child(1) { margin-top: 56px; }
.details-collage .polaroid:nth-child(2) { margin-top: 0; }
.details-collage .polaroid:nth-child(3) { margin-top: 56px; }
.polaroid figcaption { margin-top: 16px; }

/* ── The Programme of Events ────────────────────────── */
#schedule { background: var(--color-bg); overflow: clip; }
.programme-title { margin-bottom: 6px; }
#schedule .section-sub { margin-bottom: var(--space-block); }
.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  margin-top: var(--space-block);
}
.programme-col { display: flex; flex-direction: column; }
.prog-head { margin: 0; }
.prog-toggle {
  display: block; width: 100%;
  padding: 0; border: none; background: none; cursor: default;
  font: inherit; color: inherit; text-align: left;
}
.prog-numeral {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 12px;
}
.prog-name {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 12px;
}
.prog-chevron { display: none; color: var(--color-text-soft); }
.prog-desc {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  margin-bottom: 18px;
}
.prog-rows .label-row {
  padding: 9px 0;
  border-top: 1px solid var(--color-hairline);
}
.prog-rows .label-row:last-child { border-bottom: 1px solid var(--color-hairline); }
.prog-rows .label-row--multi { align-items: flex-start; }
.prog-rows .label-row .val { line-height: 1.5; }
.prog-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.programme-col .frame--arch { margin-bottom: 22px; }   /* couple photo sits above the Date row */

/* line up the Date/Time/Location/Attire dividers across the four columns:
   subgrid shares one set of row tracks, so every row starts at the same y
   (single-band 4-col layout only — wrapped bands would inherit row-gap: 0) */
@media (min-width: 1201px) {
  .programme-grid { row-gap: 0; }
  .programme-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;   /* head · desc · photo · date · time · location · attire */
  }
  .programme-col .prog-body,
  .programme-col .prog-rows { display: contents; }
}

/* ── Travel & Stay ──────────────────────────────────── */
#logistics {
  background: var(--color-bg);
  overflow: clip;
  padding-top: calc(var(--space-section) * .55);
  padding-bottom: calc(var(--space-section) * .5);
}
#logistics .giant-headline {
  position: relative; z-index: 0;
  margin-left: -3vw;
  margin-bottom: -.14em;
}
.travel-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(28px, 4vw, 60px);
  align-items: start;
}
.travel-media { position: relative; }
.travel-orn {
  position: absolute; bottom: -26px; left: -22px;
  width: 60px;
  color: var(--color-terracotta);
}
.travel-orn svg { width: 100%; height: auto; }
.travel-info .info-row {
  border-top: 1px solid var(--color-hairline);
  padding: 24px 0;
}
.travel-info .info-row:last-child { border-bottom: 1px solid var(--color-hairline); }
.info-row > .label-row { margin-bottom: 12px; }
.info-row > .label-row .val { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.info-row p:not(.label-row) {
  font-size: .9rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.info-row p:not(.label-row):last-child { margin-bottom: 0; }
.info-row a:not(.cta-underline) { text-decoration: underline; text-underline-offset: 3px; }
.info-row .cta-underline { margin-top: 8px; }

/* ── Accordion (shared: hotels + FAQs) ─────────────── */
.acc-list { margin-top: 16px; border-top: 1px solid var(--color-hairline); }
/* the row after the accordion draws its own top border — avoid a double line */
.acc-list .faq-item:last-child { border-bottom: none; }
.faq-item { border-bottom: 1px solid var(--color-hairline); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-ink);
  text-align: left;
}
.hotel-rate {
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--color-text-soft);
}
.faq-answer .label-row { margin-bottom: 8px; padding: 0 4px; }
.faq-answer .cta-underline { margin: 10px 4px 4px; }
.faq-chevron { flex: none; transition: transform .35s var(--ease-out); color: var(--color-text-soft); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out), padding-bottom .3s;
}
.faq-item.open .faq-answer {
  max-height: 640px;
  padding-bottom: 22px;
}
.faq-answer p {
  font-size: .9rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
  padding: 0 4px;
}
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

/* ── RSVP ───────────────────────────────────────────── */
#rsvp {
  background: var(--color-bg-warm);
  padding-top: calc(var(--space-section) + 14px);
}
.rsvp-pattern {
  position: absolute; top: 0; left: 0; right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-terracotta) 0 12px,
    var(--color-bg-warm) 12px 24px,
    var(--color-beige) 24px 36px,
    var(--color-bg-warm) 36px 48px
  );
  opacity: .55;
}
.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.rsvp-center { text-align: center; position: relative; }

/* photo covers that part on scroll to reveal (RSVP) — only when JS animations run */
.rsvp-covers {
  display: none;
  position: absolute;
  inset: -30px -12px;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  z-index: 3;
  pointer-events: none;
}
html.js-anim .rsvp-covers { display: grid; }
.rsvp-cover {
  aspect-ratio: auto;
  height: 100%;
  background: var(--color-bg);
  box-shadow: 0 22px 60px rgba(30, 12, 6, .22);
}
/* flanking photos sit above the covers so they tuck underneath as they part */
.rsvp-grid .rsvp-photo { position: relative; z-index: 4; }
.rsvp-lead {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--color-text-soft);
  margin-top: 30px;
}
.rsvp-cta { margin: 30px 0 20px; }
.rsvp-note { font-size: .82rem; color: var(--color-text-soft); }
.rsvp-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ── FAQs ───────────────────────────────────────────── */
#faq {
  background: var(--color-bg);
  overflow: clip;
  padding-top: 0;
}
.giant-headline--crop {
  margin-top: -.13em;
  margin-left: -1vw;
}
.faq-layout {
  max-width: 760px;
  margin: clamp(20px, 3vw, 44px) auto 0;
}
.faq-layout .faq-list { border-top: 1px solid var(--color-hairline); }

/* ── Things to Do ───────────────────────────────────── */
#things-to-do {
  background: var(--color-bg);
  padding-top: calc(var(--space-section) * .45);   /* tighter gap above */
  padding-bottom: calc(var(--space-section) * .4); /* tighter gap into Gallery */
}
.ttd-intro {
  max-width: 720px;
  margin: 24px auto calc(var(--space-block) * .8);
  text-align: center;
  color: var(--color-text-soft);
  line-height: 1.9;
}
.ttd-intro--lead { margin-bottom: 18px; }
.ttd-intro--lead + .ttd-intro { margin-top: 0; }

/* ── Registry ───────────────────────────────────────── */
#registry {
  background: var(--color-bg);
  padding-top: calc(var(--space-section) * .1);
  padding-bottom: calc(var(--space-section) * .4);
}
.registry-note {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--color-text-soft);
  line-height: 1.9;
}
.ttd-list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 84px);
}
.ttd-item {
  display: grid;
  grid-template-columns: 300px 1fr;   /* photo column stays smaller than the text */
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ttd-item--reverse { grid-template-columns: 1fr 300px; }
.ttd-item--reverse .ttd-media { order: 2; }
.ttd-media .frame {
  aspect-ratio: 1 / 1;   /* 300px square — always shorter than the item's text */
  border-color: rgba(51,31,24,.24);
}
.ttd-body { position: relative; }
.ttd-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: .9;
  color: var(--color-terracotta);
  opacity: .32;
  margin-bottom: 10px;
}
.ttd-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 450;
  color: var(--color-ink);
  margin-bottom: 14px;
}
.ttd-body .label-row { margin-bottom: 16px; }
.ttd-body p:not(.label-row) {
  font-size: .92rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.ttd-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Gallery ────────────────────────────────────────── */
#gallery {
  background: var(--color-bg);
  padding-top: calc(var(--space-section) * .4);
}
#gallery .display-title { margin-bottom: var(--space-block); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.gallery-item {
  display: block; padding: 0; border: none; background: none; cursor: pointer;
  width: 100%;
}
.frame--gallery {
  aspect-ratio: 4 / 5;
  border-color: var(--color-hairline);
}
.frame--gallery::before { inset: 5px; }
.frame--gallery img {
  cursor: zoom-in;
  transition: transform .8s var(--ease-out);
}
.gallery-item:hover .frame--gallery img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 2px solid var(--color-terracotta); outline-offset: 3px; }

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--color-terra-deep);
  color: var(--color-cream);
  text-align: center;
  padding: 84px 0 64px;
}
.footer-names {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 400;
}
.footer-date {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-beige);
  margin-top: 10px;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}
.footer-links a {
  font-size: .6rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,249,243,.65);
  transition: color .3s;
}
.footer-links a:hover { color: var(--color-cream); }

/* ── Lightbox ───────────────────────────────────────── */
/* ── Attire mood board popup ────────────────────────── */
.mood-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mood-link:hover { color: var(--color-ink); }
.moodbox {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(70, 30, 24, .96);
  display: flex;
  align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.moodbox[hidden] { display: none; }
.moodbox-inner {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.moodbox-img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  border: 10px solid #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  background: #fff;
}
.moodbox-title {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-cream);
  text-align: center;
}
.moodbox-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: none; cursor: pointer;
  color: var(--color-cream);
  font-size: 2.3rem; line-height: 1;
  padding: 12px;
  opacity: .8;
  transition: opacity .25s;
}
.moodbox-close:hover { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(70, 30, 24, .96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 5vh 7vw;
}
.lightbox[hidden] { display: none; }
.lightbox-caption {
  flex: none;
  max-width: min(640px, 86vw);
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-cream);
}
.lightbox-caption[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 76vh;
  object-fit: contain;
  border: 10px solid #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.lightbox button {
  position: absolute;
  background: none; border: none; cursor: pointer;
  color: var(--color-cream);
  font-size: 1.9rem;
  line-height: 1;
  padding: 12px;
  opacity: .8;
  transition: opacity .25s;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 26px; font-size: 2.3rem; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .programme-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .rsvp-rail { display: none; }
}

@media (max-width: 1024px) {
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
  /* details stays 3-up (only 3 photos) but tighten the stagger on tablet */
  .details-collage { gap: 32px; }
  .details-collage .polaroid:nth-child(1),
  .details-collage .polaroid:nth-child(3) { margin-top: 32px; }
}

/* Password gate: stack the postcard on narrow screens so the photo isn't
   crushed to a sliver — photo on top (landscape crop), form below. */
@media (max-width: 600px) {
  .gate {
    padding: 20px;
    align-items: flex-start;
    overflow-y: auto;     /* card may exceed short screens — allow scroll */
  }
  .gate-card {
    grid-template-columns: 1fr;
    max-width: 340px;
    padding: 10px;
    margin: auto;         /* centers when it fits, scrolls when it doesn't */
  }
  .gate-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;   /* near-native, with a little trimmed off the bottom */
  }
  .gate-photo img { object-position: 50% 20%; }  /* keep the arch; crop the pavement */
  .gate-side {
    border-left: none;
    border-top: 1px solid var(--color-hairline);
    margin-left: 0;
    margin-top: 10px;
    padding: 18px 12px 6px;
  }
  /* not enough width to share a row with the names — flow the stamp above them */
  .gate-stamp { position: static; align-self: flex-end; width: 150px; margin-bottom: 2px; }
  .gate-names { font-size: 1.7rem; margin-top: 6px; }
  .gate-sub { font-size: .92rem; }
  .gate-lines { display: none; }        /* decorative address lines — drop on mobile */
  .gate-label { margin-top: 16px; }
  .gate-hint { margin-top: 16px; font-size: .88rem; }
}

@media (max-width: 900px) {
  /* RSVP on mobile: the curtain pair is the moment — no standing photos
     (they made a mismatched 4-image pile under the curtains) */
  .rsvp-grid { grid-template-columns: 1fr; }
  .rsvp-photo { display: none; }

  /* breathing room between RSVP and the FAQs title (the desktop crop pulls
     them together on small screens) */
  #faq { padding-top: clamp(44px, 9vw, 72px); }
  .giant-headline--crop { margin-top: 0; }

  /* TRAVEL & STAY stays oversized on mobile; the scroll drift is tuned to
     carry every letter through the viewport (starts left-aligned, ends with
     "STAY" fully on screen) */
  #logistics .giant-headline {
    font-size: 16vw;
    margin-left: 0;
  }

  .travel-grid { grid-template-columns: 1fr; }
  .travel-media { max-width: 440px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 249, 243, .98);
    backdrop-filter: blur(12px);
    flex-direction: column; align-items: center;
    gap: 20px;
    padding: 28px 24px;
    border-bottom: 1px solid var(--color-hairline);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--color-text-soft); }
  .nav-links a.active { color: var(--color-terracotta); }
  .nav-rsvp { margin-left: auto; }

  section { padding: 84px 0; }
  #hero { padding-bottom: 14vh; }
  .hero-names { gap: 4vw; }

  .countdown-strip { gap: 20px; padding: 22px 16px; }
  .countdown { gap: 22px; }
  .cd-num { font-size: 1.35rem; }

  .details-collage { gap: 36px 20px; }
  .polaroid { --rot: 0deg; }
  .details-collage .polaroid:nth-child(even) { margin-top: 28px; }

  .ttd-item { grid-template-columns: 1fr; gap: 22px; }
  .ttd-item--reverse .ttd-media { order: 0; }
  .ttd-media { max-width: 420px; }
  .ttd-media .frame { aspect-ratio: 3 / 2; }


  /* ── Mobile readability: enlarge informational text for older readers.
     Decorative uppercase micro-labels (the "WHERE /" keys, kickers) are left
     small on purpose; this raises the text guests actually need to READ. */
  .label-row .val { font-size: .84rem; }          /* venues, times, addresses: ~13.4px */
  .label-row .lbl { font-size: .78rem; }           /* the key labels, slightly up too */
  .info-row > .label-row .val { font-size: .78rem; }
  .cta-underline { font-size: .82rem; }            /* RSVP / Zola buttons: ~13px */
  .info-row p:not(.label-row),
  .faq-answer p,
  .ttd-body p:not(.label-row),
  .prog-desc,
  .rsvp-note,
  .rsvp-lead { font-size: .95rem; }                /* body copy floor: ~15px */
  .prog-name { font-size: .9rem; }                 /* event names */
  .hero-sub { font-size: 1.15rem; }
}

@media (max-width: 640px) {
  /* Program events collapse to tappable dropdown cards on mobile */
  .programme-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--color-hairline); }
  .programme-col { border-bottom: 1px solid var(--color-hairline); }
  .prog-toggle {
    display: flex; align-items: center; gap: 14px;
    cursor: pointer;
    padding: 18px 4px;
    min-height: 44px;
  }
  .prog-numeral { font-size: 1.4rem; margin-bottom: 0; flex: none; min-width: 34px; }
  .prog-name { margin-bottom: 0; flex: 1; }
  .prog-chevron { display: block; flex: none; transition: transform .35s var(--ease-out); }
  .programme-col.open .prog-chevron { transform: rotate(180deg); }
  .prog-body { display: none; padding: 4px 4px 26px; }
  .programme-col.open .prog-body { display: block; }
  /* wider, shorter arch on mobile so landscape photos aren't cropped to a sliver */
  .programme-col .frame--arch { max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 3.4; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Details photos: three fixed "stations" — one centered card per swipe,
     locks at each (snap-stop), no neighbors peeking. */
  .details-collage {
    display: flex;
    gap: 0;
    max-width: none;
    margin: 0 -24px;
    padding: 6px 0 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;   /* horizontal swipes drive the carousel; vertical swipes still scroll the page */
  }
  .details-collage::-webkit-scrollbar { display: none; }
  /* sit the Guatemala watermark higher, behind every station's card */
  .details-wm-guatemala { bottom: 32%; }
  .details-collage .polaroid { --rot: 0deg !important; transform: none !important; }
  .details-collage .polaroid:nth-child(n) {
    flex: 0 0 100%;
    max-width: none;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex; flex-direction: column; align-items: center;
  }
  .details-collage .polaroid .frame--polaroid { width: min(300px, 76vw); }
  .details-collage .polaroid figcaption { justify-content: center; }
  /* station dots */
  .details-dots {
    display: flex; justify-content: center; gap: 10px;
    margin-top: 18px;
  }
  .details-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 249, 243, .35);
    transition: background .3s, transform .3s;
  }
  .details-dots span.active {
    background: var(--color-cream);
    transform: scale(1.25);
  }
  .footer-links { gap: 14px; }
}
