/* ═══════════════════════════════════════════════════════════════
   CHARL & LYNETTE WEDDING WEBSITE
   Design system: soft-skill aesthetic — luxury whitespace,
   spring animations, depth layering, pastel palette
   ═══════════════════════════════════════════════════════════════ */

/* ── CUSTOM FONTS ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Ferdan Ligate';
  src: url('Ferdan-Ligate-Demo-BF695b7047877e5.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Palette */
  --white:        #ffffff;
  --cream:        #F8F4EF;
  --blue-pale:    #eaf6ff;
  --yellow-mid:   #F5E6B8;
  --gold:         #c8a96e;
  --text-dark:    #303e44;
  --text-mid:     #6B6158;
  --text-light:   #9E9690;
  --border:       #EAE4DC;

  /* Typography */
  --font-heading: 'calder-dark', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-ui:      'calder-dark', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

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


/* ── SHARED UTILITIES ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
  text-align: center;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.divider-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: #97c6e9;
  vertical-align: middle;
}
.divider-diamond {
  display: inline-block;
  color: #97c6e9;
  font-size: 0.7rem;
  margin: 0 0.75rem;
  vertical-align: middle;
}

/* Reveal animation (triggered by IntersectionObserver in JS) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  padding: 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo centred between two equal-width link groups */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 1rem;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: filter 0.4s;
}

/* White logo when navbar is transparent (over hero) */
#navbar:not(.scrolled) .nav-logo-img {
  filter: brightness(0) invert(1);
}

/* Blue logo when navbar is scrolled (white background) */
#navbar.scrolled .nav-logo-img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(28%) saturate(550%) hue-rotate(178deg) brightness(102%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
}
.nav-links--left  { justify-content: flex-end; }
.nav-links--right { justify-content: flex-start; }

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-dark); background: var(--blue-pale); }

/* White links when transparent (over hero) */
#navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}
#navbar:not(.scrolled) .nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease-spring);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  gap: 0.15rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--text-dark); }
.mobile-rsvp {
  margin-top: 0.5rem;
  background: var(--text-dark);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 0.7rem !important;
  border-bottom: none !important;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 1 — HERO (static illustrated)
   ══════════════════════════════════════════════════════════════ */
.hero-static {
  position: relative;
  overflow: hidden;
  /* Scales with viewport width — smoothly shrinks on smaller screens */
  min-height: clamp(550px, 62.5vw, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 68px;
}

/* Background fills the entire section, behind everything including navbar */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  object-position: center 10%;
  display: block;
}

.hero-static-content {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) var(--space-md) clamp(0.5rem, 1.5vw, 1rem);
  animation: heroFadeUp 1s var(--ease-out) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-static-eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9bbcdd;
  margin-bottom: 1rem;
}

.hero-static-title {
  font-family: var(--font-ui);
  font-size: clamp(1.78rem, 4.46vw, 3.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #303e44;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-static-date {
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9bbcdd;
  margin-bottom: 2rem;
}

.hero-static-rsvp-btn {
  display: inline-block;
  padding: 0.65rem 2.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9bbcdd;
  border: 1.5px solid #9bbcdd;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s;
}
.hero-static-rsvp-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #9bbcdd;
}

/* Illustration container: absolute, fills the section, sits below content */
@media (max-width: 700px) {
  .hero-static-title { font-size: clamp(1.6rem, 4.46vw, 3.65rem); }
  .hero-static-date  { margin-bottom: 1rem; }
}

.hero-static-illustration {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  animation: heroFadeUp 1.2s 0.2s var(--ease-out) both;
}

/* Scene anchored to bottom — scales continuously with viewport, no breakpoint jumps */
.hero-scene {
  position: absolute;
  bottom: -16%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(700px, 95vw, 936px);
  aspect-ratio: 1543 / 1692;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Trimmed cloud PNGs — positioned at their original canvas coordinates
   Canvas: 1543×1692
   Cloud-L1:    left=0    top=1227  w=487  h=275
   Cloud-R1:    left=816  top=1138  w=727  h=320
   Cloud-Bg-L:  left=527  top=954   w=148  h=87
   Cloud-Bg-R:  left=1123 top=916   w=205  h=108  */
.hero-layer[data-name="cloud-l1"] img,
.hero-layer[data-name="cloud-r1"] img,
.hero-layer[data-name="cloud-bg-l"] img,
.hero-layer[data-name="cloud-bg-r"] img {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: unset;
}
.hero-layer[data-name="cloud-l1"] img {
  left: 0;
  top: 72.5%;          /* 1227 / 1692 */
  width: 31.6%;        /* 487  / 1543 */
}
.hero-layer[data-name="cloud-r1"] img {
  right: 0;            /* right edge = canvas right (816+727=1543) */
  top: 67.3%;          /* 1138 / 1692 */
  width: 47.1%;        /* 727  / 1543 */
}
.hero-layer[data-name="cloud-bg-l"] img {
  left: 34.2%;         /* 527  / 1543 */
  top: 56.4%;          /* 954  / 1692 */
  width: 9.6%;         /* 148  / 1543 */
}
.hero-layer[data-name="cloud-bg-r"] img {
  left: 72.8%;         /* 1123 / 1543 */
  top: 54.1%;          /* 916  / 1692 */
  width: 13.3%;        /* 205  / 1543 */
}

/* Stairs-L — trimmed PNG positioned at canvas coords
   Canvas 1543×1692: left=490 top=1152 w=205 h=270 */
.hero-layer[data-name="stairs-l"] {
  opacity: 1 !important;
}
.hero-layer[data-name="stairs-l"] img {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: unset;
  left: 31.8%;         /* 490  / 1543 */
  top: 68.1%;          /* 1152 / 1692 */
  width: 13.3%;        /* 205  / 1543 */
}

/* Mt Fuji scaled up and shifted down 40% of its own height */
.hero-layer[data-name="mt-fuji"] img {
  transform: translate(-10%, 25%) scale(1.47);
  transform-origin: center bottom;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 3 — THE MAP OF US
   ══════════════════════════════════════════════════════════════ */
.section-map {
  background: var(--white);
  overflow: hidden;
  padding: var(--space-lg) 0 0;
}

/* ── Map stage: positioned composition container ── */
.map-stage {
  position: relative;
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  aspect-ratio: 1920 / 1700;
}

/* All children share absolute positioning */
.map-arrow,
.map-sticky,
.map-polaroid,
.map-icon {
  position: absolute;
}

/* Arrows — back layer */
.map-arrow {
  display: block;
  z-index: 1;
  pointer-events: none;
  height: auto;
}

/* Stickies — mid-back layer */
.map-sticky {
  display: block;
  z-index: 2;
  pointer-events: none;
  height: auto;
}

/* Polaroids — mid layer */
.map-polaroid {
  display: block;
  z-index: 3;
  height: auto;
}

/* Polaroid button wrapper */
button.map-polaroid {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
}
button.map-polaroid img {
  display: block;
  width: 100%;
  height: auto;
}
button.map-polaroid:hover {
  transform: scale(1.07) translateY(-4px);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  z-index: 10;
}

/* ── Polaroid lightbox ── */
.polaroid-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid-lightbox[hidden] { display: none; }

.polaroid-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lbFadeIn 0.25s ease both;
}

.polaroid-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  animation: lbPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  cursor: default;
}

.polaroid-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.polaroid-lightbox-close:hover { background: rgba(255,255,255,0.28); }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Icons — front layer, interactive */
.map-icon {
  z-index: 4;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.35s ease;
}
.map-icon img {
  display: block;
  width: 100%;
  height: auto;
}
.map-icon:hover {
  transform: scale(1.1) translateY(-6px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.13));
  z-index: 10;
}

/* ── Arrow positions ── */
/* Arrow1 (230×60, horiz): University → Art Gallery */
.map-arrow--1 { left: 28%;  top: 12%;  width: 9%;  }
/* Arrow2 (180×250, tall): Art Gallery → La Union */
.map-arrow--2 { left: 59%;  top: 8%;   width: 9%;  }
/* Arrow3 (190×230, tall): La Union → Japan */
.map-arrow--3 { left: 85%;  top: 25%;  width: 9%;  }
/* Arrow4 (1000×250, wide sweep): Japan → Propose */
.map-arrow--4 { left: 26%;  top: 32%;  width: 49%;  transform: rotate(4deg); }
/* Arrow5 (270×260, ~sq): Propose → Wedding */
.map-arrow--5 { left: 26%;  top: 50%;  width: 13%; }

/* ── Sticky positions ── */
/* Sticky1 (180×160): upper right space between Art Gallery and La Union */
.map-sticky--1 { left: 29%;  top: 25%;  width: 8%;  }
/* Sticky2 (110×115): right of Japan, no overlap */
.map-sticky--2 { left: 89%;  top: 44%;  width: 6%;  }

/* ── Polaroid positions ── */
/* Polaroid1 (1317×1251, ~sq): middle, below Arrow4, above Wedding */
.map-polaroid--1 { left: 42%;  top: 37%;  width: 17%; }
/* Polaroid2 (835×959, portrait): lower right, below Japan */
.map-polaroid--2 { left: 70%;  top: 67%;  width: 13.5%; }
/* Polaroid3 (835×918, portrait): lower left, left of Wedding */
.map-polaroid--3 { left: 17%;  top: 66%;  width: 13.5%; }

/* ── Icon positions ── */
.map-icon--1 { left: 7%;   top: 5%;   width: 22%; } /* University, #97c6e9  */
.map-icon--2 { left: 38%;  top: 2%;   width: 22%; } /* Art Gallery, #b6c68b */
.map-icon--3 { left: 68%;  top: 5%;   width: 17%; } /* La Union, #e5c2ba   */
.map-icon--4 { left: 70%;  top: 37%;  width: 20%; } /* Japan, #c4aed2      */
.map-icon--5 { left: 8%;   top: 37%;  width: 17.5%; } /* Propose, #efd8a3    */
.map-icon--6 { left: 40%;  top: 57%;  width: 21%; } /* Wedding, #dc939f    */

/* ── Icon text labels ── */
.map-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(7px, 1.1vw, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0.4em 0 0;
}
.map-label span:first-child {
  font-weight: 700;
}
.map-label span:last-child {
  font-weight: 400;
  opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 2 — COUNTDOWN
   ══════════════════════════════════════════════════════════════ */
/* ── Section heading SVGs (used across all sections 2-9) ── */
.section-heading-svg {
  display: block;
  height: clamp(60px, 10vw, 110px);
  width: auto;
  margin: 0 auto;
}

.section-countdown {
  background: #fffee1;
  padding: var(--space-lg) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.countdown-number {
  font-family: var(--font-ui);
  font-size: clamp(2.55rem, 6.8vw, 5.53rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease-spring);
}
.countdown-number.tick {
  transform: scale(1.08);
}

.countdown-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #efd8a3;
  margin-top: 0.5rem;
}

.countdown-sep {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #efd8a3;
  line-height: 1;
  padding-bottom: 1.5rem;
  align-self: flex-start;
  margin-top: 0.4rem;
}

.countdown-tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #efd8a3;
}


/* ══════════════════════════════════════════════════════════════
   SECTIONS 4–6 — THINGS WE LOVE / SPACER TICKER / WEDDING TIMELINE
   ══════════════════════════════════════════════════════════════ */

/* ── Wedding Timeline ── */
.section-timeline {
  background: #97c6e9;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.timeline-heading {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-lg);
}

.timeline-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: repeat(6, auto);
  gap: 0 clamp(0.5rem, 2vw, 2rem);
  max-width: 860px;
  margin: 0 auto;
}

/* Separator spans all 6 rows down the centre */
.tl-sep {
  grid-column: 2;
  grid-row: 1 / 7;
  display: flex;
  align-items: stretch;
  width: clamp(56px, 7vw, 96px);
}
#tl-sep-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Grid placement */
.tl-item--left  { grid-column: 1; }
.tl-item--right { grid-column: 3; }
.tl-r1 { grid-row: 1; }
.tl-r2 { grid-row: 2; }
.tl-r3 { grid-row: 3; margin-top: -1.5rem; }
.tl-r4 { grid-row: 4; margin-top: -1.5rem; }
.tl-r5 { grid-row: 5; }
.tl-r6 { grid-row: 6; }

/* Item layout: horizontal row */
.tl-item {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 2rem) 0;
}
.tl-item--left  { justify-content: flex-end; }
.tl-item--right { justify-content: flex-start; }

.tl-item img {
  width: clamp(72px, 12vw, 140px);
  height: auto;
  flex-shrink: 0;
  display: block;
}

.timeline-text { display: flex; flex-direction: column; gap: 0.2em; }
.timeline-text--right { text-align: right; }
.timeline-text--left  { text-align: left; }

.timeline-time {
  font-family: var(--font-ui);
  font-size: clamp(8px, 1.1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  opacity: 0.85;
}
.timeline-label {
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.5vw, 17px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* ── Section 7: Attire ── */
.section-attire {
  background: var(--white);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.attire-ribbon {
  display: block;
  width: clamp(180px, 32vw, 380px);
  height: auto;
  margin: var(--space-sm) auto var(--space-md);
}

.attire-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 0 clamp(1rem, 4vw, 4rem);
  max-width: 640px;
  margin: 0 auto var(--space-md);
}

.attire-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.attire-figure-title {
  margin-top: -2.5rem;
}
.attire-figure img {
  width: clamp(130px, 24vw, 260px);
  height: auto;
  display: block;
}

.attire-figure-title {
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.6vw, 16px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dc939f;
  margin: 0.4rem 0 0;
}
.attire-figure-desc {
  font-family: var(--font-ui);
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dc939f;
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
}

.attire-palette {
  display: block;
  width: clamp(200px, 55vw, 560px);
  height: auto;
  margin: var(--space-md) auto var(--space-sm);
}

.attire-note {
  font-family: var(--font-ui);
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc939f;
  opacity: 0.8;
  line-height: 1.8;
  margin: 0 auto;
}

/* ── Section 8: A Note on Gifts ── */
.section-gifts {
  background: #fce9ed;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.gifts-heading {
  display: block;
  height: clamp(50px, 8vw, 90px);
  width: auto;
  margin: 0 auto var(--space-sm);
}

.gifts-illustration {
  display: block;
  width: clamp(100px, 18vw, 180px);
  height: auto;
  margin: 0 auto var(--space-sm);
}

.gifts-text {
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc939f;
  margin: 0 auto;
  line-height: 1.8;
}
.gifts-text--lead {
  font-size: clamp(10px, 1.4vw, 15px);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.gifts-text--body {
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 400;
  opacity: 0.85;
}

/* Shared: full-bleed SVG image sections */
.section-svg-full {
  overflow: hidden;
  line-height: 0; /* remove inline-block gap under img */
}
.svg-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Things We Love ─────────────────────────── */
.twl-section {
  background: #b6c68b;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 5vw, 4rem);
}

.twl-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.twl-heading {
  flex-shrink: 0;
}

.twl-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  color: #e4ecd2;
  line-height: 1.05;
  margin: 0;
  font-weight: normal;
}

.twl-title-indent {
  display: inline-block;
  margin-left: -0.5em;
}

.twl-cards-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.twl-cards {
  display: flex;
  gap: clamp(0.6rem, 1.4vw, 1.2rem);
  flex: 1;
  min-width: 0;
}

/* ── Individual flip card ── */
.twl-card {
  flex: 1;
  min-width: 0;
  perspective: 1200px;
}

.twl-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 10px;
}

.twl-card:hover .twl-card-inner,
.twl-card.is-flipped .twl-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.twl-card-front,
.twl-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  /* force GPU layer so border-radius is respected during 3D flip */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Front face — equal padding all around so top & bottom spacing match          */
/* 6% top/bottom, 8% left/right; content is inset → icons appear slightly smaller */
.twl-card-front {
  display: flex;
  flex-direction: column;
  padding: 6% 8%;
}

/* Per-card background colors (show in the padding margins around the illo) */
.twl-card--steak  .twl-card-front { background: #f9eff9; }
.twl-card--pancake .twl-card-front { background: #fffee1; }
.twl-card--sapporo .twl-card-front { background: #eaf6ff; }

/* Illustration via CSS background-image — works on file:// and https:// alike */
/* background-size: 410.26% scales so 1 SVG section = illo content width        */
/* x-positions remain 35.52 / 67.77 / 100% (scale-invariant math)               */
/* y-position 8%: skips a few px of blank top margin in the SVG section          */
.twl-illo {
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  background-size: 105%;
  background-repeat: no-repeat;
  background-position: center 8%;
}
.twl-card--steak   .twl-illo { background-image: url('Things We Love_Steak.svg'); }
.twl-card--pancake .twl-illo { background-image: url('Things We Love_Pancake.svg'); }
.twl-card--sapporo .twl-illo { background-image: url('Things We Love_Sapporo.svg'); }

/* Card label — transparent so per-card bg colour shows through */
.twl-card-label {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 1.4vw, 0.95rem);
  margin: 0;
  padding: 0.3em 0.6em 0.4em;
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: normal;
  line-height: 1.2;
  flex-shrink: 0;
  background: transparent;
}
.twl-card--steak  .twl-card-front .twl-card-label { color: #c4aed2; }
.twl-card--pancake .twl-card-front .twl-card-label { color: #efd8a3; }
.twl-card--sapporo .twl-card-front .twl-card-label { color: #97c6e9; }

/* Back face — full-bleed photo */
.twl-card-back {
  transform: rotateY(180deg);
}

/* Photo fills the entire flipped card */
.twl-photo-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.twl-card--steak   .twl-photo-placeholder { background-image: url('TWL_Steak.png'); }
.twl-card--pancake .twl-photo-placeholder { background-image: url('TWL_Pancake.png'); }
.twl-card--sapporo .twl-photo-placeholder { background-image: url('TWL_Sapporo.png'); }

/* ── Responsive ── */
/* Arrow buttons — hidden on desktop */
.twl-arrow {
  display: none;
}

/* Mobile hint note — hidden on desktop */
.twl-mobile-note {
  display: none;
}

@media (max-width: 700px) {
  /* Extra vertical breathing room */
  .twl-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  /* Heading stacks above cards */
  .twl-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .twl-heading {
    text-align: center;
  }
  .twl-title-indent {
    margin-left: 0;
  }
  .twl-mobile-note {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: rgba(228, 236, 210, 0.7);
    margin: 0.4rem 0 0;
    font-weight: 400;
  }
  /* Arrows hidden */
  .twl-arrow { display: none; }
  /* Cards wrap fills full width */
  .twl-cards-wrap {
    width: 100%;
    display: block;
  }
  /* Cards side by side like desktop */
  .twl-cards {
    flex-direction: row;
    gap: clamp(0.4rem, 2vw, 0.75rem);
    overflow-x: unset;
    scroll-snap-type: unset;
    padding-bottom: 0;
  }
  .twl-card {
    flex: 1;
    min-width: 0;
    scroll-snap-align: unset;
  }
  /* Disable CSS hover flip — JS handles tap via .is-flipped */
  .twl-card:hover .twl-card-inner {
    transform: none;
    -webkit-transform: none;
  }
  /* .is-flipped always wins on mobile */
  .twl-card.is-flipped .twl-card-inner {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
  }
}

/* Horizontal scrolling ticker */
.section-ticker {
  background: var(--white);
  border-top: 1px solid #97c6e9;
  border-bottom: 1px solid #97c6e9;
  overflow: hidden;
  padding: 0.9rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-item {
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #97c6e9;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION 9 — TRAVEL & ACCOMMODATION
   ══════════════════════════════════════════════════════════════ */
.section-travel {
  background: var(--white);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.travel-heading {
  margin-bottom: var(--space-sm);
}

.travel-cards {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.travel-card {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.travel-card--getting-there { background: #a4ae8a; }
.travel-card--accommodations { background: #e4ecd2; }

.travel-card-label {
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 0.85vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
}
.travel-card--getting-there .travel-card-label { color: rgba(255,255,255,0.65); }
.travel-card--accommodations .travel-card-label { color: #a4ae8a; }

.travel-venue {
  font-family: var(--font-ui);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

.travel-address {
  font-family: var(--font-ui);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin: 0;
}

.travel-note {
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.04em;
}

/* Hotels list */
.travel-hotel {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(164,174,138,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.travel-hotel:first-of-type { padding-top: 0.25rem; }
.travel-hotel:last-of-type  { border-bottom: none; margin-bottom: 0.5rem; }

/* In 2-col grid, both row-1 hotels need the same reduced top padding */
.travel-card--accommodations .travel-hotels-grid .travel-hotel:nth-child(-n+2) {
  padding-top: 0.25rem;
}

/* Remove border from both hotels in the last row of the 2-col grid */
.travel-card--accommodations .travel-hotels-grid .travel-hotel:nth-last-child(-n+2) {
  border-bottom: none;
}

/* 2-column grid for the accommodations card */
.travel-card--accommodations {
  display: grid;
  grid-template-columns: 1fr;
}
.travel-card--accommodations .travel-card-label {
  grid-column: 1 / -1;
}
.travel-card--accommodations .travel-hotels-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.travel-card--accommodations .travel-hotels-grid .travel-hotel:nth-child(odd):last-child {
  grid-column: 1 / -1;
}
.travel-card--accommodations .travel-btn--outline {
  justify-self: start;
}

.travel-hotel-name {
  font-family: var(--font-ui);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64685a;
  margin: 0 0 0.3rem;
}

.travel-hotel-desc {
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  letter-spacing: 0.03em;
  color: #7a8568;
  line-height: 1.7;
  margin: 0 0 0.35rem;
}

.travel-hotel-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  background: #a4ae8a;
  border-radius: var(--radius-pill);
  padding: 0.18em 0.65em;
  vertical-align: middle;
  margin-left: 0.4em;
}

.travel-hotel-note {
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 0.82vw, 0.72rem);
  letter-spacing: 0.05em;
  color: #a4ae8a;
  line-height: 1.65;
  margin-top: 0.2rem;
  font-style: italic;
}

.travel-hotel-time {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a4ae8a;
  background: rgba(164,174,138,0.15);
  border-radius: var(--radius-pill);
  padding: 0.25em 0.75em;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.travel-hotel-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 0.85vw, 0.72rem);
  letter-spacing: 0.1em;
  color: #a4ae8a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.travel-hotel-link:hover { opacity: 0.65; }

/* Buttons */
.travel-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: clamp(0.62rem, 0.85vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
  text-align: center;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.travel-btn:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.travel-btn--white {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  margin-top: auto;
}

.travel-btn--outline {
  background: transparent;
  color: #64685a;
  border: 1.5px solid #a4ae8a;
}

@media (max-width: 680px) {
  .travel-cards { grid-template-columns: 1fr; }
  .travel-card--accommodations .travel-hotels-grid { grid-template-columns: 1fr; }
  /* In 1-col, restore border for all except the very last hotel */
  .travel-card--accommodations .travel-hotels-grid .travel-hotel:nth-last-child(-n+2) { border-bottom: 1px solid rgba(164,174,138,0.35); }
  .travel-card--accommodations .travel-hotels-grid .travel-hotel:last-of-type { border-bottom: none; margin-bottom: 0.5rem; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION 8 — FAQs ACCORDION
   ══════════════════════════════════════════════════════════════ */
.section-faqs {
  background: #e4ecd2;
  padding: var(--space-lg) 0 var(--space-xl);
}

.faq-heading-wrap {
  text-align: center;
  margin-bottom: var(--space-md);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #a4ae8a;
}

.faq-item {
  border-bottom: 1px solid #a4ae8a;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.5rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64685a;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question:hover { opacity: 0.72; }

.faq-icon {
  flex-shrink: 0;
  color: #a4ae8a;
  transition: transform 0.35s var(--ease-spring);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-answer p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #a4ae8a;
  line-height: 1.75;
  padding: 0 0.5rem 1.35rem;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 9 — RSVP FORM
   ══════════════════════════════════════════════════════════════ */
.section-rsvp {
  background: var(--white);
  padding: 4.5rem 0 6rem;
}

.rsvp-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-intro-text {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #a482a4;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.rsvp-deadline-text {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #a482a4;
  margin-bottom: var(--space-lg);
}
.rsvp-deadline-text strong { font-weight: 700; }

.rsvp-form-new {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rsvp-field--hidden {
  display: none;
}

.rsvp-field-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a482a4;
}
.rsvp-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.76rem;
}

.rsvp-text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #a482a4;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #64685a;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.rsvp-text-input:focus { border-color: #64685a; }
.rsvp-textarea { min-height: 4rem; }

.rsvp-radio-group {
  display: flex;
  gap: 2rem;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: #a482a4;
  cursor: pointer;
  user-select: none;
}

.rsvp-radio-label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #a482a4;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.rsvp-radio-label input[type="radio"]:checked {
  border-color: #a482a4;
}
.rsvp-radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #a482a4;
  border-radius: 50%;
}

.rsvp-field-error {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #b05070;
  letter-spacing: 0.04em;
  min-height: 1rem;
}

.rsvp-submit-btn {
  align-self: center;
  background: #a482a4;
  color: #ffffff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
  margin-top: 0.5rem;
}
.rsvp-submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.rsvp-submit-btn:active { transform: translateY(0); }

.rsvp-confirmation {
  text-align: center;
  padding: var(--space-lg) 0;
}
.rsvp-confirmation--hidden { display: none; }

.rsvp-confirm-title {
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.rsvp-confirm-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.rsvp-confirm-sign {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rsvp-confirmation--accept .rsvp-confirm-title,
.rsvp-confirmation--accept .rsvp-confirm-body,
.rsvp-confirmation--accept .rsvp-confirm-sign {
  color: #efd8a3;
}

.rsvp-confirmation--decline .rsvp-confirm-title,
.rsvp-confirmation--decline .rsvp-confirm-body,
.rsvp-confirmation--decline .rsvp-confirm-sign {
  color: #97c6e9;
}


/* ── RSVP Lookup (simplified section) ── */
.rsvp-lookup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   RSVP MODAL
   ══════════════════════════════════════════════════════════════ */
.rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(40,35,32,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.rsvp-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.rsvp-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
}
.rsvp-modal-overlay.open .rsvp-modal-box {
  transform: translateY(0) scale(1);
}

.rsvp-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rsvp-modal-close:hover { background: var(--border); color: var(--text-dark); }

.rsvp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a482a4;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.rsvp-back-btn:hover { opacity: 1; }

.rsvp-modal-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a482a4;
  margin-bottom: 0.4rem;
}

.rsvp-modal-title {
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.rsvp-modal-text {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

/* Guest cards */
.rsvp-guest-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rsvp-guest-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-guest-name-row {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
}

.rsvp-plus-one-tag {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a482a4;
  background: rgba(164,130,164,0.12);
  border-radius: var(--radius-pill);
  padding: 0.2em 0.6em;
}

.rsvp-guest-note {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #a482a4;
  text-align: center;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(164, 130, 164, 0.07);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(164, 130, 164, 0.3);
}

.rsvp-att-group {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.rsvp-att-btn {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  color: var(--text-light);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.rsvp-att-btn:hover         { border-color: var(--text-mid); color: var(--text-mid); }
.rsvp-att-btn.att-accept    { background: #a4ae8a; border-color: #a4ae8a; color: #ffffff; }
.rsvp-att-btn.att-decline   { background: #dc939f; border-color: #dc939f; color: #ffffff; }

/* Summary */
.rsvp-summary-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.rsvp-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.rsvp-summary-badge {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-pill);
}
.rsvp-summary-badge.accept  { color: #a4ae8a; background: rgba(164,174,138,0.15); }
.rsvp-summary-badge.decline { color: #dc939f; background: rgba(220,147,159,0.15); }

.rsvp-field-hint {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ── RSVP Done Card ──────────────────────────────────────────── */
.rsvp-done-card {
  /* Bleed to all modal edges — cancel the modal's own padding exactly */
  --modal-pad: clamp(1.75rem, 4vw, 2.75rem);
  margin: calc(-1 * var(--modal-pad));
  text-align: center;
  overflow: hidden;
}

/* Theme backgrounds */
.rsvp-done-card[data-type="accept"]  { background: #fdf9ec; }
.rsvp-done-card[data-type="decline"] { background: #eaf6ff; }
.rsvp-done-card[data-type="mixed"]   { background: #fce9ed; }

/* Ribbons */
.rsvp-done-ribbon {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
}
.rsvp-done-ribbon--bottom { padding: 0 1.5rem 1.5rem; }

.rsvp-done-ribbon-img {
  width: clamp(160px, 55%, 240px);
  height: auto;
  display: block;
}

/* Card content */
.rsvp-done-content {
  padding: 1.5rem 2.5rem;
}

.rsvp-done-headline {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.rsvp-done-card[data-type="accept"]  .rsvp-done-headline { color: #c8a96e; }
.rsvp-done-card[data-type="decline"] .rsvp-done-headline { color: #80bce0; }
.rsvp-done-card[data-type="mixed"]   .rsvp-done-headline { color: #dc939f; }

.rsvp-done-body {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.9;
  margin-bottom: 0.85rem;
}
.rsvp-done-card[data-type="accept"]  .rsvp-done-body { color: #c8a96e; }
.rsvp-done-card[data-type="decline"] .rsvp-done-body { color: #80bce0; }
.rsvp-done-card[data-type="mixed"]   .rsvp-done-body { color: #dc939f; }

.rsvp-done-secondary {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.rsvp-done-card[data-type="accept"]  .rsvp-done-secondary { color: #c8a96e; }
.rsvp-done-card[data-type="decline"] .rsvp-done-secondary { color: #80bce0; }
.rsvp-done-card[data-type="mixed"]   .rsvp-done-secondary { color: #dc939f; }

.rsvp-done-signature {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.8;
}
.rsvp-done-card[data-type="accept"]  .rsvp-done-signature { color: #c8a96e; }
.rsvp-done-card[data-type="decline"] .rsvp-done-signature { color: #80bce0; }
.rsvp-done-card[data-type="mixed"]   .rsvp-done-signature { color: #dc939f; }

.rsvp-ghost-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.rsvp-ghost-btn:hover { color: var(--text-dark); }

@media (max-width: 480px) {
  .rsvp-modal-box { border-radius: var(--radius-md); padding: 1.5rem; }
  .rsvp-guest-card { flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #eaf6ff;
  border-top: none;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.footer-monogram {
  height: 72px;
  width: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: brightness(0) saturate(100%) invert(73%) sepia(28%) saturate(550%) hue-rotate(178deg) brightness(102%);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: normal;
  color: #92d0ff;
  margin-bottom: 0.4rem;
}
.footer-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92d0ff;
  margin-bottom: 1.5rem;
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-divider .divider-line   { background: #92d0ff; }
.footer-divider .divider-diamond { color: #92d0ff; }
.footer-made-with {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92d0ff;
}


/* ══════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring), background 0.2s, color 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Centre logo between left edge and hamburger */
  .nav-inner { position: relative; justify-content: flex-end; }
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .countdown-sep { display: none; }
  .countdown-grid { gap: 1rem; }
  .countdown-unit { padding: 0 1rem; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .rsvp-card { padding: 2rem 1.5rem; }
  .section-heading { margin-bottom: var(--space-md); }
}
