/* ============================================================
   STYLES.CSS — Nicole & Stephen Wedding Website  (V3)
   Matching zaneandzoe.com layout 1:1 with custom palette
   ============================================================ */

/* ─── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --dark:    #002F5E;
  --headline: #005B8D; /* headline/title text color (WCAG AA 6.9:1 on cream) */
  --coral-a11y: #935460; /* accessible coral tone for small text (asterisk, guest labels): 5.4:1 on cream vs. 2.6:1 for solid --coral */
  --light:   #FFF8F0;
  --coral:   #FE6F62;
  --sky:     #AFC9E0;
  --navy:    #001E3E;
  --gold:    #DEBE1E;
  --teal:      #8DC3C2;
  --lavender:  #B5AEF0;

  /* Unmodified hexes from the brand spec sheet, used for the schedule day
     accents. They sit on the smoked-glass panels (see .sc-05__table), whose
     0.68 fill is tuned so every one of these clears 3.8:1+ even over the
     brightest part of the sunset gradient. Keep these literal — the whole
     point is that the schedule reads in the real brand palette. */
  --brand-coral:    #FE6F62;
  --brand-papaya:   #F99E00;
  --brand-lime:     #9EA91F;
  --brand-teal:     #70B4B3;
  --brand-lavender: #B5AEF0;

  /* Eyebrow labels in Travel sit directly on the purple sky with no veil, so
     the full-strength accents only reach 2.4-3.8:1. These keep the same hue
     and saturation at a higher lightness to clear AA (4.8:1+) at small sizes. */
  --coral-eyebrow: #FFD5D1;
  --sky-eyebrow:   #CFDFEC;

  /* Accessible, darkened variants of the menu-overlay hover palette
     (see .menu-overlay__nav-item), reused for the RSVP guest-name cycle so
     each name in a party stands out — all ~5.4:1+ contrast on --light. */
  --lavender-a11y:    #6659B5;
  --papaya-a11y:      #8C5900;
  --citrus-a11y:      #5C6B12;
  --teal-a11y:        #2E6665;
  --periwinkle-a11y:  #3A5AC0;

  --sidebar-w: 4.819vw;
  --header-h:  3.193vw;

  --font-editorial: 'PPEditorialNew', Georgia, serif;
}

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

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

body {
  font-family: var(--font-editorial);
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.map-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.map-link:hover { text-decoration-thickness: 2px; }
.map-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ─── FONTS ──────────────────────────────────────────────── */
@font-face {
  font-family: 'PPEditorialNew';
  src: url('../fonts/PPEditorialNew-UltralightItalic-Bw7LjlFL.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PPEditorialNew';
  src: url('../fonts/PPEditorialNew-Ultralight-ChorL6Ve.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPEditorialNew';
  src: url('../fonts/PPEditorialNew-LightItalic-zJPdxT_Y.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PPEditorialNew';
  src: url('../fonts/PPEditorialNew-Ultrabold-BFfmAO5X.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPEditorialNew';
  src: url('../fonts/PPEditorialNew-UltraboldItalic-BYM9vjzi.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.sidebar__toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38vw;
  margin-top: 0.6vw;
}

.sidebar__toggle span {
  display: block;
  width: 1.5vw;
  height: 1px;
  background: var(--light);
  transition: opacity 0.2s;
}

.sidebar__toggle:hover span { opacity: 0.5; }

.sidebar__marquee {
  position: absolute;
  top: 50%;
  left: 50%;
  /* rotate so horizontal text flows as a vertical strip */
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 90vh;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar__track {
  display: inline-flex;
  align-items: center;
  gap: 1.2vw;
  white-space: nowrap;
  animation: marquee-sidebar 24s linear infinite;
}

.sidebar__track span {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.85vw;
  letter-spacing: 0.1em;
  color: #ffffff;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.sidebar__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.85;
  flex-shrink: 0;
}

@keyframes marquee-sidebar {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-vert {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--header-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.41vw;
  --header-fade: 0; /* 0 → 1, driven by scroll position (see main.js) */
  backdrop-filter: blur(calc(var(--header-fade) * 8px));
  -webkit-backdrop-filter: blur(calc(var(--header-fade) * 8px));
  transition: backdrop-filter 0.25s ease;
}

/* Over opaque light/cream sections (RSVP, Our Story), flip nav to dark
   navy so it stays readable against the bright background. */
.header--on-light .header__logo {
  filter: none;
  opacity: 0.85;
}
.header--on-light .header__nav a,
.header--on-light .header__placeholder {
  color: var(--dark);
}
.header--on-light .header__toggle span {
  background: var(--dark);
}

.header__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3vw;
  display: none;
  flex-direction: column;
  gap: 0.35vw;
}

.header__toggle span {
  display: block;
  width: 1.6vw;
  height: 1px;
  background: var(--light);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.header__logo {
  height: 1.6vw;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.4vw;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__nav a,
.header__placeholder {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.95vw;
  letter-spacing: 0.14em;
  color: var(--light);
  opacity: 0.7;
  text-transform: uppercase;
  transition: opacity 0.2s ease, color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__nav a:hover { opacity: 1; }

.header__placeholder:hover {
  color: var(--light);
  opacity: 1;
}

.header__placeholder {
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.header__placeholder small {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55vw;
  letter-spacing: 0.12em;
}

/* ─── MENU OVERLAY ───────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--light);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  transform: translateX(-100%);
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-overlay.is-open {
  transform: translateX(0);
}

/* Left content area */
.menu-overlay__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3vw 6vw 3vw 6vw;
  overflow-y: auto;
}

.menu-overlay__logo {
  width: 11vw;
  filter: brightness(0) saturate(100%) invert(13%) sepia(66%) saturate(2600%) hue-rotate(196deg) brightness(94%) contrast(101%);
  opacity: 0.8;
  flex-shrink: 0;
}

/* Nav list */
.menu-overlay__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-overlay__nav-item {
  overflow: hidden;
  border-top: 1px solid rgba(0, 47, 94, 0.15);
  padding: 0.6vw 0;
}

.menu-overlay__nav-item:last-child {
  border-bottom: 1px solid rgba(0, 47, 94, 0.15);
}

.menu-overlay__nav-item a,
.menu-overlay__placeholder {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: min(5vw, 6vh);
  line-height: 1.05;
  color: var(--dark);
  transition: color 0.2s, padding-left 0.3s;
  white-space: nowrap;
}

.menu-overlay__nav-item a:hover {
  padding-left: 0.5vw;
}

.menu-overlay__placeholder small {
  display: block;
  font-size: 0.25em;
  letter-spacing: 0.12em;
  color: var(--coral-a11y);
  vertical-align: middle;
}

.header__placeholder small,
.menu-overlay__placeholder small,
.footer__nav-soon {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header__placeholder:hover small,
.menu-overlay__placeholder:hover small,
.footer__nav-item:hover .footer__nav-soon {
  visibility: visible;
  opacity: 1;
}

/* Hover cycles through the brand accents, link by link — one unique
   color per nav item (6 items, 6 colors) so nothing repeats. */
.menu-overlay__nav-item:nth-child(6n+1) a:hover { color: #B5AEF0; } /* Lavender */
.menu-overlay__nav-item:nth-child(6n+2) a:hover { color: #FE6F62; } /* Coral */
.menu-overlay__nav-item:nth-child(6n+3) a:hover { color: #F99E00; } /* Papaya */
.menu-overlay__nav-item:nth-child(6n+4) a:hover { color: #C7D92E; } /* Citrus */
.menu-overlay__nav-item:nth-child(6n+5) a:hover { color: #70B4B3; } /* Teal */
.menu-overlay__nav-item:nth-child(6n+6) a:hover { color: #6791F4; } /* Periwinkle */

/* Footer meta */
.menu-overlay__footer {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.72vw + 2px);
  letter-spacing: 0.18em;
  color: var(--dark);
  opacity: 0.5;
  text-transform: uppercase;
  line-height: 1.9;
}

/* Left strip — vertical marquee matching sidebar */
.menu-overlay__right {
  border-right: 1px solid rgba(0, 47, 94, 0.12);
  position: relative;
  overflow: hidden;
}

.menu-overlay__marquee {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 95vh;
  overflow: hidden;
  white-space: nowrap;
}

.menu-overlay__marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.2vw;
  white-space: nowrap;
  animation: marquee-sidebar 20s linear infinite;
}

.menu-overlay__marquee-track span {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.58vw;
  letter-spacing: 0.18em;
  color: var(--dark);
  opacity: 0.35;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Close button */
.menu-overlay__close {
  position: absolute;
  top: var(--header-h);
  right: 2.41vw;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.72vw;
  letter-spacing: 0.12em;
  color: var(--dark);
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}

.menu-overlay__close:hover { opacity: 1; }

/* ─── MAIN WRAPPER ───────────────────────────────────────── */
.site-main {
  padding-left: var(--sidebar-w);
}

/* ─── SC-01  HERO ────────────────────────────────────────── */
.sc-01 {
  position: relative;
  height: 160vh;
  margin-left: calc(-1 * var(--sidebar-w));
  width: calc(100% + var(--sidebar-w));
}

.sc-01__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Sky backdrop lives on a STATIC layer so we can fade its bottom edge into the
   atmosphere without compositing the animated flower above it. It is masked
   (fades to transparent at the bottom) so the fixed atmosphere shows through —
   this keeps the hero→RSVP transition seamless, because both sides reveal the
   same moving sky. To avoid the mask forcing an oversized (tiling) GPU layer on
   tall/hiDPI displays, JS caps this element's box to a single tile and scales it
   back up to full-bleed (same guard as the flower media). See main.js sizeSky(). */
.sc-01__sky {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;   /* pre-JS fallback; real size set in sizeSky() */
  height: 100vh;
  z-index: -1;
  transform: translate(-50%, -50%);
  background-color: var(--sky);
  background-image: url('../images/renders/Background-light-leaks.webp');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
}

/* Flower image layer — behind the logo */
.sc-01__flower-frame {
  position: absolute;
  /* Centered with inset + margin:auto — NOT a transform. A transform here
     promotes this full-viewport (100% x 100%) clip window to its OWN GPU
     composite layer. On Retina (2x) that backing store (~3024x1900) exceeds
     Chrome's ~2048px tile limit, so at the landing (frame at full size) the
     layer drops out entirely (blank) or splits down the centre (seam). Using
     inset:0 + margin:auto keeps it centred while the width/height crop tween
     runs, with no transform, so the frame is never its own oversized layer.
     Only the small (single-tile) .sc-01__flower-media inside gets a transform. */
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
}

/* Media layer — fixed to the viewport so the frame acts as a pure clip window.
   Centered via GSAP xPercent/yPercent so it can also be scaled without drift. */
.sc-01__flower-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  /* CSS fallback centering so the media is centered even before GSAP runs
     (GSAP sets xPercent/yPercent -50, i.e. the same translate, then composes
     scale on top — so this never conflicts). Prevents a down-right shift if
     a stale/old main.js loads without the centering set. */
  /* Size is set in JS (sizeFlowerMedia) to keep the layer's backing store a
     single GPU tile on Retina; these 100vw/100vh values are only a pre-JS
     fallback. The element box is shrunk and transform-scaled back to full
     bleed so the oversized-layer tile seam/blank cannot occur. See main.js. */
  transform: translate(-50%, -50%);
}

.sc-01__flower-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.sc-01__flower-img--secondary {
  opacity: 0;
  transform: scale(0.90);
  transform-origin: 50% 50%;
}

/* Logo — sits above the flower */
.sc-01__logo-wrap {
  position: relative;
  z-index: 2;
  width: 87vw;
  opacity: 0;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}

.sc-01__logo-wrap img,
.sc-01__logo-wrap .logo-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sc-01__meta {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.614vw;
  text-align: center;
  opacity: 0;
  white-space: nowrap;
}

.sc-01__meta p {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(1.04vw + 2px);
  letter-spacing: 0.14em;
  color: var(--dark);
  opacity: 0.6;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ─── HERO LOGO SHIMMER ──────────────────────────────────── */
/* Shimmer is driven by JS rAF on #holoShimmer inside the inline SVG.
   Cursor moves the gradient translate; auto-sweeps when not hovering. */


/* ─── CIRCULAR SEAL ─────────────────────────────────────── */
.seal {
  position: absolute;
  bottom: 4vw;
  right: 4vw;
  width: 11vw;
  height: 11vw;
  z-index: 3;
  animation: seal-spin 28s linear infinite;
}

.seal__ring {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seal__ring text {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  fill: var(--dark);
  opacity: 0.7;
}

.seal__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 9.2vw;
  color: var(--dark);
  opacity: 0.55;
  /* counter-rotate so the & stays upright while ring spins */
  animation: seal-spin 28s linear infinite reverse;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

/* Story section seal (replaces circle) */
.story-seal {
  width: 22vw;
  height: 22vw;
  position: relative;
  margin-bottom: 3vw;
  flex-shrink: 0;
}

.story-seal .seal__ring {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: seal-spin 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .story-seal .seal__ring { animation: none; }
}

.story-seal .seal__ring text {
  fill: var(--dark);
  opacity: 0.6;
}

.story-seal .seal__center {
  /* silver holographic foil sweep, clipped to the & glyph */
  font-size: 13.5vw;
  padding-top: 1.6vw; /* nudge the & down a few px so it optically centers */
  opacity: 1;
  color: transparent;
  background-image: linear-gradient(
    115deg,
    #b9c1ce 0%,
    #dfe5ee 12%,
    #d8c6ec 24%,
    #c4e8e0 36%,
    #ffffff 48%,
    #f0d6e4 60%,
    #cfe0f0 72%,
    #dbe1ea 86%,
    #b9c1ce 100%
  );
  background-size: 420% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: seal-foil 26s ease-in-out infinite;
}

@keyframes seal-foil {
  0%   { background-position: 0% 0%; }
  100% { background-position: 420% 0%; }
}

/* ─── PRISM CANVAS — generative light leaks ──────────────── */
#prism-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

/* ─── SC-02  RSVP ────────────────────────────────────────── */
.sc-02 {
  position: relative;
  height: auto;
  padding: 5vw 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-02__inner {
  width: 100%;
  max-width: 58vw;
  padding: 5.2vw 5vw;
  text-align: center;
  background: var(--light);
}

.sc-02__label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 4.2vw;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--headline);
  text-transform: uppercase;
  margin-bottom: 1.5vw;
}

.sc-02__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 4.2vw;
  line-height: 1.05;
  color: var(--headline);
  margin-bottom: 3.614vw;
}

/* RSVP deadline */
.sc-02__deadline {
  margin-bottom: 2.4vw;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.9vw + 2px);
  letter-spacing: 0.2em;
  color: var(--coral-a11y);
  text-transform: uppercase;
}

.sc-02__countdown {
  margin-bottom: 2.4vw;
  padding: 2.8vw 0;
  border-top: 1px solid rgba(0, 47, 94, 0.15);
  border-bottom: 1px solid rgba(0, 47, 94, 0.15);
}

.sc-02__countdown .sc-02__deadline { margin-bottom: 0.9vw; }

.sc-02__countdown-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9vw;
}

.sc-02__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.4vw;
}

.sc-02__countdown-value {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: calc(2.6vw + 2px);
  line-height: 1;
  color: var(--headline);
}

.sc-02__countdown-name {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.68vw + 2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 47, 94, 0.5);
  margin-top: 0.3vw;
}

.sc-02__countdown-sep {
  font-size: 2vw;
  line-height: 1;
  color: rgba(0, 47, 94, 0.3);
  transform: translateY(-0.3vw);
}

.sc-02__countdown-note {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.94vw + 2px);
  color: rgba(0, 47, 94, 0.65);
  margin-top: 1.2vw;
}

.sc-02__countdown--ended .sc-02__countdown-value { opacity: 0.4; }

.sc-02__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw 2.41vw;
}

.sc-02__form[hidden] {
  display: none;
}

.sc-02__field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sc-02__field[hidden] {
  display: none;
}

.sc-02__field--full {
  grid-column: 1 / -1;
}

.sc-02__field label {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.78vw + 2px);
  letter-spacing: 0.2em;
  color: rgba(0, 47, 94, 0.5);
  text-transform: uppercase;
  margin-bottom: 0.6vw;
}

.sc-02__field input,
.sc-02__field select,
.sc-02__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 47, 94, 0.22);
  color: var(--dark);
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.08vw;
  padding: 0.5vw 0;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.sc-02__field select {
  cursor: pointer;
}

.sc-02__field select option {
  background: var(--light);
  color: var(--dark);
}

.sc-02__field textarea {
  resize: none;
  height: 4vw;
}

.sc-02__field input:focus,
.sc-02__field select:focus,
.sc-02__field textarea:focus {
  border-bottom-color: var(--coral);
}

.sc-02__field input::placeholder,
.sc-02__field textarea::placeholder {
  color: rgba(0, 47, 94, 0.68);
}

.sc-02__required {
  color: var(--coral-a11y);
  font-style: normal;
}

.sc-02__optional {
  text-transform: none;
  letter-spacing: 0;
}

/* ─── RSVP lookup (step 1) ──────────────────────────────── */
.sc-02__lookup-submit {
  background: transparent;
  border: 1px solid rgba(0, 47, 94, 0.55);
  color: var(--dark);
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.9vw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.7vw 2vw;
  margin-top: 1.2vw;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.sc-02__lookup-submit:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--light);
}

.sc-02__lookup-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sc-02__lookup-status {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.98vw;
  color: rgba(0, 47, 94, 0.7);
  margin-top: 1vw;
}

.sc-02__lookup-status:empty {
  display: none;
}

.sc-02__lookup-results {
  margin-top: 1.2vw;
  display: flex;
  flex-direction: column;
  gap: 0.7vw;
}

.sc-02__lookup-results[hidden] {
  display: none;
}

.sc-02__lookup-result {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(0, 47, 94, 0.22);
  color: var(--dark);
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.02vw;
  padding: 0.8vw 1.2vw;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sc-02__lookup-result:hover {
  border-color: var(--coral);
  background: rgba(254, 111, 98, 0.06);
}

/* ─── RSVP party (step 2) ───────────────────────────────── */
.sc-02__party[hidden] {
  display: none;
}

.sc-02__party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw 2.41vw;
}

.sc-02__party-intro {
  grid-column: 1 / -1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.98vw;
  color: rgba(0, 47, 94, 0.7);
  text-align: center;
  margin: 0 0 0.6vw;
}

.sc-02__lookup-back {
  display: block;
  width: fit-content;
  background: none;
  border: none;
  padding: 0;
  margin: 0.5vw auto 0;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.86vw;
  color: var(--coral-a11y);
  text-decoration: underline;
  cursor: pointer;
}

.sc-02__party-guests {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw 2.41vw;
}

.sc-02__form-error {
  grid-column: 1 / -1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.98vw;
  color: var(--coral-a11y);
}

.sc-02__form-error[hidden] {
  display: none;
}

.sc-02__decline-note {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.02vw;
  color: var(--dark);
  opacity: 0.75;
  line-height: 1.5;
}

.sc-02__group-label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.78vw + 2px);
  letter-spacing: 0.2em;
  color: rgba(0, 47, 94, 0.68);
  text-transform: uppercase;
  margin-bottom: 0.8vw;
}

/* Days stack vertically as a single list so the weekend reads in
   chronological order top-to-bottom, rather than wrapping side-by-side. */
.sc-02__checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75vw;
}

.sc-02__checkbox {
  display: flex;
  align-items: center;
  gap: 0.6vw;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.02vw;
  color: var(--dark);
  cursor: pointer;
}

.sc-02__checkbox input[type="checkbox"] {
  all: revert;
  width: 0.95vw;
  height: 0.95vw;
  margin: 0;
  accent-color: var(--dark);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Grouped RSVP days ───────────────────────────────────────────────
   Guests were reading all five days as equally binding, so unsure guests
   either over-committed or gave up. The days are split into two groups
   with deliberately different weight: the first is bounded by a solid
   coral rule and reads as a commitment, the second is dimmer and dashed
   and says in plain words that it is only an estimate. The two must not
   look interchangeable -- that sameness is what caused the confusion.

   This is presentation only. The checkbox `value` strings are unchanged,
   so Code.gs still matches them and records all five days as before. */
.rsvp-daygroup {
  border-left: 2px solid;
  padding: 0.1vw 0 0.1vw 1.1vw;
}

.rsvp-daygroup + .rsvp-daygroup {
  margin-top: 1.6vw;
}

.rsvp-daygroup--main {
  border-left-color: var(--guest-accent, var(--coral));
}

.rsvp-daygroup--extra {
  border-left-style: dashed;
  border-left-color: rgba(255, 248, 240, 0.32);
}

.rsvp-daygroup__head {
  display: flex;
  align-items: baseline;
  gap: 0.7vw;
  flex-wrap: wrap;
}

.rsvp-daygroup__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.82vw + 2px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
}

.rsvp-daygroup--extra .rsvp-daygroup__title {
  color: rgba(255, 248, 240, 0.82);
}

.rsvp-daygroup__badge {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.68vw + 2px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.12vw 0.5vw;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.rsvp-daygroup--main .rsvp-daygroup__badge {
  color: var(--guest-accent, var(--coral));
}

.rsvp-daygroup--extra .rsvp-daygroup__badge {
  color: rgba(255, 248, 240, 0.55);
}

.rsvp-daygroup__note {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.92vw;
  line-height: 1.5;
  color: rgba(255, 248, 240, 0.7);
  margin: 0.35vw 0 0.8vw;
}

.rsvp-daygroup .sc-02__checkbox-group {
  gap: 0.6vw;
}

/* The event name is what guests actually recognise -- the bare date was
   making them guess which day was the wedding. The separating dash lives
   in CSS rather than the markup so it can disappear cleanly when the name
   drops to its own line on narrow screens. */
.rsvp-day__event {
  color: rgba(255, 248, 240, 0.62);
  font-style: italic;
}

.rsvp-day__event::before {
  content: "\2014\00a0";
}

.sc-02__checkbox:has(input:checked) .rsvp-day__event {
  color: inherit;
  opacity: 0.8;
}

/* Per-guest cards within a matched party, injected by JS (see
   initRsvpForm in main.js). First card has no top border/margin since it's
   the first item in .sc-02__party-guests, not stacked under other fields. */
.sc-02__guest-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw 2.41vw;
  border-top: 1px solid rgba(254, 111, 98, 0.4);
  padding-top: 1.5vw;
  margin-top: 1.5vw;
  transition: opacity 0.2s ease;
}

.sc-02__guest-card:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.sc-02__guest-card--declined {
  opacity: 0.55;
}

.sc-02__guest-card-label {
  grid-column: 1 / -1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.78vw + 2px);
  letter-spacing: 0.22em;
  color: var(--coral-a11y);
  text-transform: uppercase;
}

.sc-02__guest-name-display {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.7vw;
  color: var(--dark);
  text-align: left;
  margin: 0;
  padding: 0.5vw 0;
}

/* Cycle each guest in a party through a distinct accessible color so
   names stand out from one another — same 6-color logic as the nav's
   hover cycle (.menu-overlay__nav-item), just darkened for contrast on
   the light form background. Published as --guest-accent so every control
   inside that guest's card can carry their colour (see the night-glass
   overrides for the bright-hue equivalents). */
.sc-02__guest-card:nth-child(6n+1) { --guest-accent: var(--coral-a11y); }
.sc-02__guest-card:nth-child(6n+2) { --guest-accent: var(--periwinkle-a11y); }
.sc-02__guest-card:nth-child(6n+3) { --guest-accent: var(--papaya-a11y); }
.sc-02__guest-card:nth-child(6n+4) { --guest-accent: var(--teal-a11y); }
.sc-02__guest-card:nth-child(6n+5) { --guest-accent: var(--lavender-a11y); }
.sc-02__guest-card:nth-child(6n+6) { --guest-accent: var(--citrus-a11y); }

.sc-02__guest-card .sc-02__guest-name-display { color: var(--guest-accent, var(--dark)); }

/* ─── Already-RSVP'd notice + locked guest cards ─────────── */
/* Notice and locked cards share one visual language: no heavy filled box,
   just a coloured rule down the left edge with the tint fading out to the
   right, so they sit on the page rather than floating above it. */
.sc-02__already {
  grid-column: 1 / -1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.02vw;
  line-height: 1.55;
  color: var(--dark);
  border: none;
  padding: 1.1vw 1.5vw;
  margin-bottom: 0.6vw;
}

.sc-02__already[hidden] {
  display: none;
}

/* Locked = this guest already responded, so the card is informational
   only. It keeps the guest's own accent colour rather than a generic
   coral, so the card still reads as belonging to that person. */
.sc-02__guest-card--locked {
  border-top: none;
  border-left: 2px solid color-mix(in srgb, var(--guest-accent, var(--coral-a11y)) 65%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--guest-accent, var(--coral-a11y)) 9%, transparent) 0%,
    color-mix(in srgb, var(--guest-accent, var(--coral-a11y)) 2%, transparent) 55%,
    transparent 100%
  );
  gap: 0.5vw 2.41vw;
  padding: 1.25vw 1.6vw;
  margin-top: 1.6vw;
}

.sc-02__guest-card--locked:first-child {
  margin-top: 0;
}

/* The name sits tighter to the label here — there are no inputs below it
   to space away from. */
.sc-02__guest-card--locked .sc-02__guest-name-display {
  padding: 0.25vw 0 0;
}

.sc-02__locked-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7vw;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.98vw;
  color: rgba(0, 47, 94, 0.78);
  margin: 0;
}

.sc-02__locked-badge {
  font-style: normal;
  font-size: calc(0.72vw + 2px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  background: var(--guest-accent, var(--coral-a11y));
  padding: 0.3vw 0.7vw;
}

.sc-02__locked-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1vw;
  margin-top: 0.4vw;
}

.sc-02__locked-note {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.9vw;
  color: rgba(0, 47, 94, 0.7);
  margin: 0;
}

.sc-02__locked-note a {
  color: var(--guest-accent, var(--coral-a11y));
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sc-02__resend-btn {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--guest-accent, var(--coral-a11y)) 55%, transparent);
  color: var(--guest-accent, var(--dark));
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.82vw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6vw 1.4vw;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.sc-02__resend-btn:hover:not(:disabled) {
  background: var(--guest-accent, var(--coral-a11y));
  border-color: var(--guest-accent, var(--coral-a11y));
  color: var(--light);
}

.sc-02__resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sc-02__resend-status {
  grid-column: 1 / -1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.9vw;
  color: rgba(0, 47, 94, 0.78);
  margin: 0.5vw 0 0;
}

.sc-02__resend-status:empty {
  display: none;
}

.sc-02__submit[hidden] {
  display: none;
}

.sc-02__confirmation {
  text-align: center;
  margin-top: 2vw;
}

.sc-02__confirmation-text {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.4vw;
  line-height: 1.5;
  color: var(--dark);
}

.sc-02__submit {
  grid-column: 1 / -1;
  margin-top: 1vw;
  background: transparent;
  border: 1px solid rgba(0, 47, 94, 0.55);
  color: var(--dark);
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.95vw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1vw 3vw;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.sc-02__submit:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--light);
}

.sc-02__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── MARQUEE BELT ───────────────────────────────────────── */
.belt {
  overflow: hidden;
  background: linear-gradient(90deg,
    #B5AEF0, #FE6F62, #F99E00, #C7D92E, #6FC7E0, #E58CC6, #B5AEF0);
  background-size: 300% 100%;
  animation: belt-iridescent 16s linear infinite;
  padding: 0.8vw 0;
}

@keyframes belt-iridescent {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.belt__track {
  display: flex;
  gap: 0;
  animation: belt-scroll 20s linear infinite;
  width: max-content;
}

.belt__item {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  padding: 0 1.5vw;
  flex-shrink: 0;
}

.belt__item span {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.1vw;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.belt__dot {
  width: 0.36vw;
  height: 0.36vw;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0.6;
  flex-shrink: 0;
}

@keyframes belt-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SC-03  GALLERY (horizontal scroll) ─────────────────── */
/* The track scrubs horizontally across the section's scroll distance, so the
   height has to scale with the number of items or the pan speeds up. Eight
   items travel ~202vw; at the original 6-item rate of ~1.28vw per vh of
   scroll that needs ~160vh of scrolling on top of the 100vh sticky frame. */
.sc-03 {
  position: relative;
  height: 260vh;
  background: var(--dark);
}

.sc-03__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sc-03__track {
  display: flex;
  gap: 3.614vw;
  padding: 0 3.614vw;
  will-change: transform;
}

.sc-03__item {
  flex-shrink: 0;
  width: 33.735vw;
  height: 50.602vw;
  overflow: hidden;
}

.sc-03__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SC-04  LOVE STORY ──────────────────────────────────── */
.sc-04 {
  position: relative;
  min-height: 74.096vw;
  background: var(--light);
  color: var(--dark);
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
}

.sc-04__left {
  position: relative;
  padding-left: 6vw;
  padding-right: 3vw;
  padding-top: 4vw;
  padding-bottom: 4vw;
}

.sc-04__circle {
  width: 16.747vw;
  height: 16.747vw;
  border-radius: 50%;
  background: var(--coral);
  margin-bottom: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sc-04__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-04__label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 1.2vw;
}

.sc-04__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 6.6vw;
  line-height: 1.0;
  color: var(--headline);
  margin-bottom: 2vw;
}

.sc-04__body {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1vw;
  line-height: 1.7;
  color: var(--dark);
  opacity: 0.75;
  max-width: 38vw;
}

.sc-04__right {
  position: relative;
  height: 78%;
  overflow: hidden;
}

.sc-04__photo {
  position: absolute;
  inset: 0;
}

.sc-04__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sc-04__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SC-05  SCHEDULE ────────────────────────────────────── */
/* The schedule scrolls through the *peak* of the sunset, where the sky is
   bright salmon (measured ~#EB98A4) and every accent in the palette sits at
   a similar mid-luminance, so day names were landing at ~1.1:1. Rather than
   veil the whole section and flatten the sunset, the two panels below carry
   the same night glass as .sc-02__inner. The sky stays open around them. */
.sc-05 {
  position: relative;
  background: transparent;
  color: var(--light);
  padding: 6vw calc(var(--sidebar-w) + 3vw);
  overflow-x: clip;
}

.sc-05__head {
  margin-bottom: 4vw;
}

.sc-05__container {
  max-width: 58vw;
  margin: 0 auto;
}

.sc-05__label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 1.5vw;
}

.sc-05__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 4.6vw;
  line-height: 1;
  color: var(--light);
  text-align: center;
  margin-bottom: 2vw;
}

/* ─── SC-05  Weather forecast strip (final row of the table, expandable) ── */
.sc-05__forecast {
  border-top: 1px solid rgba(255, 248, 240, 0.15);
  padding: 1.5vw 1.6vw;
}

.sc-05__forecast-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2vw;
}

.sc-05__forecast-heading {
  flex: 1;
  text-align: center;
}

.sc-05__forecast-label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(1.15vw + 2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.sc-05__forecast-days {
  display: flex;
  justify-content: center;
  gap: 0;
}

.sc-05__forecast-day {
  flex: 1;
  max-width: 12vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vw;
  padding: 0 1vw;
  text-align: center;
}

.sc-05__forecast-day + .sc-05__forecast-day {
  border-left: 1px solid rgba(255, 248, 240, 0.12);
}

.sc-05__forecast-day-label {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: normal;
  font-size: calc(1.2vw + 2px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.8;
}

.sc-05__forecast-icon {
  width: 2.2vw;
  height: 2.2vw;
  color: var(--gold);
}

.sc-05__forecast-temp-hi {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: normal;
  font-size: 1.95vw;
  color: var(--light);
  line-height: 1;
}

.sc-05__forecast-temp-lo {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.2vw;
  color: var(--sky);
}

.sc-05__forecast-caption {
  margin-top: 1.6vw;
  text-align: center;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.95vw;
  color: var(--light);
  opacity: 0.65;
  line-height: 1.5;
}

.sc-05__forecast-caption a {
  color: var(--sky);
  border-bottom: 1px solid rgba(175, 201, 224, 0.4);
  opacity: 1;
  transition: color 0.2s, border-color 0.2s;
}

.sc-05__forecast-caption a:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.sc-05__weather-note {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.15vw;
  color: var(--light);
  opacity: 0.72;
  line-height: 1.5;
  text-align: center;
  max-width: 46vw;
  margin: 0.5vw auto 0;
}

/* ─── SC-05  Date box (Friday / through / Sunday) ───────── */
/* Night glass, matching .sc-02__inner. This is what lifts the accents off
   the sunset. At 0.68 the backdrop settles around #523746 at the brightest
   point of the gradient, which is what lets the unmodified brand hexes
   (--brand-coral etc.) land at 3.8-5.2:1 instead of 1.1-2.8:1. The day names
   are display sizes (4.4vw), so 3:1 is the AA threshold that applies. */
.sc-05__datebox {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border: 1px solid rgba(255, 248, 240, 0.4);
  background: rgba(10, 9, 26, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 2vw;
}

.sc-05__datebox-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3vw;
  padding: 1.4vw 1vw;
  text-align: center;
}

.sc-05__datebox-cell + .sc-05__datebox-cell {
  border-left: 1px solid rgba(255, 248, 240, 0.15);
}

.sc-05__datebox-day {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.85vw;
  color: var(--light);
}

.sc-05__datebox-date {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: italic;
  font-size: 3.4vw;
  color: var(--brand-teal);
  line-height: 1.1;
}

.sc-05__datebox-cell--end .sc-05__datebox-date {
  color: var(--brand-lavender);
}

.sc-05__datebox-cell--through {
  padding: 1vw;
}

.sc-05__datebox-through {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.85vw;
  color: var(--light);
}

.sc-05__datebox-bloom {
  width: clamp(9px, 0.95vw, 16px);
  height: clamp(7px, 0.75vw, 13px);
  color: var(--light);
}

.sc-05__datebox-bloom--top { transform: rotate(180deg); }

/* ─── SC-05  "Wedding Festival" swash rule ──────────────── */
.sc-05__festival-rule {
  display: flex;
  align-items: center;
  margin-bottom: 3vw;
}

.sc-05__festival-line {
  flex: 1;
  height: 1px;
  background: var(--light);
}

.sc-05__festival-coil {
  width: 3.6vw;
  height: 1.8vw;
  color: var(--light);
  flex-shrink: 0;
}

.sc-05__festival-coil--flip {
  transform: scaleX(-1);
}

.sc-05__festival-text {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.9vw;
  color: var(--light);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 1.2vw;
}

/* ─── SC-05  Lineup table ────────────────────────────────── */
/* Same night glass as .sc-05__datebox — see the note there for why 0.68. */
.sc-05__table {
  border: 1px solid rgba(255, 248, 240, 0.4);
  background: rgba(10, 9, 26, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sc-05__row {
  display: grid;
  grid-template-columns: 38% 1fr;
}

.sc-05__row + .sc-05__row {
  border-top: 1px solid rgba(255, 248, 240, 0.15);
}

.sc-05__row-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2vw 1vw;
  border-right: 1px solid rgba(255, 248, 240, 0.15);
}

.sc-05__row-day-name {
  font-family: var(--font-editorial);
  font-style: normal;
  font-weight: 300;
  font-size: 4.4vw;
  line-height: 1;
  color: var(--row-accent, var(--gold));
  text-align: center;
}

.sc-05__row-day-name--compact {
  white-space: nowrap;
}

.sc-05__row-day-time {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 200;
  font-size: 1.9vw;
  line-height: 1.4;
  color: var(--row-accent, var(--gold));
  text-align: center;
  display: grid;
  /* minmax(0, Xfr) rather than a bare Xfr: a lone `0fr` track resolves to
     minmax(auto, 0fr), and that `auto` floor refuses to shrink past the
     content's min-height. The time here is a bare text node, so the
     `> *` overflow rule below never matches it and cannot zero that floor
     out -- which left the collapsed time holding ~42px of empty space and
     shoving the day name off-centre in the row. */
  grid-template-rows: minmax(0, 0fr);
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
  overflow: hidden;
}

.sc-05__row-day-time > * { overflow: hidden; }

.sc-05__row.is-open .sc-05__row-day-time {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
  margin-top: 0.4vw;
}

.sc-05__row-content {
  padding: 1.5vw 1.6vw;
  min-width: 0;
  /* Centre the summary in the row while collapsed. Once the row opens, the
     panel makes this column the tallest thing in the row, so there is no free
     space left and the summary settles back at the top on its own. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-05__row-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2vw;
}

.sc-05__row-title {
  flex: 1;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 2.6vw;
  line-height: 1.15;
  color: var(--light);
  text-align: left;
}

.sc-05__row-heading {
  flex: 1;
  min-width: 0;
}

.sc-05__row-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5vw;
  background: none;
  border: 1px solid var(--row-accent, var(--gold));
  color: var(--row-accent, var(--gold));
  padding: 0.55vw 1.1vw;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sc-05__row-toggle:hover {
  background: rgba(255, 248, 240, 0.06);
}

/* A row picks one accent and sets --row-accent; because custom properties
   inherit, that single value then drives every themed descendant — the
   toggle, day name, day time, facts, list bullets and the
   "Dress Code:" style labels. Elements outside a themed row (e.g. the
   Travel & Stay panels) fall back to gold. */
.sc-05__row--accent-coral    { --row-accent: var(--brand-coral); }
.sc-05__row--accent-papaya   { --row-accent: var(--brand-papaya); }
.sc-05__row--accent-lime     { --row-accent: var(--brand-lime); }
.sc-05__row--accent-teal     { --row-accent: var(--brand-teal); }
.sc-05__row--accent-lavender { --row-accent: var(--brand-lavender); }

.sc-05__row-toggle-label {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 1.05vw;
  white-space: nowrap;
}

.sc-05__row-toggle-icon {
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.25vw;
  line-height: 1;
}

.sc-05__row-toggle-icon::before {
  content: '+';
}

.sc-05__row-toggle[aria-expanded="true"] .sc-05__row-toggle-icon::before {
  content: '\2212';
}

/* Accordion body: grid-rows trick animates height without JS measurement. */
.sc-05__row-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.sc-05__row.is-open .sc-05__row-panel,
.sc-05__forecast.is-open .sc-05__row-panel {
  grid-template-rows: 1fr;
}

.sc-05__row-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.sc-05__row.is-open .sc-05__row-panel-inner,
.sc-05__forecast.is-open .sc-05__row-panel-inner {
  padding-top: 1.2vw;
}

.sc-05__row-rule {
  border: none;
  border-top: 1px solid rgba(255, 248, 240, 0.3);
  margin: 1vw 0;
}

.sc-05__row-desc {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: normal;
  font-size: 1.2vw;
  color: var(--light);
  opacity: 0.85;
  line-height: 1.55;
}

.sc-05__row-fact {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: normal;
  font-size: 1.15vw;
  color: var(--row-accent, var(--gold));
  line-height: 1.5;
}

.sc-05__row-gtk {
  list-style: none;
  margin-top: 1vw;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.sc-05__row-gtk li {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: normal;
  font-size: 1.05vw;
  /* Softened via the text colour rather than `opacity`, which would also
     fade the ::before bullet and the <strong> label and leave them reading
     as grey instead of the row's accent. */
  color: rgba(255, 248, 240, 0.78);
  line-height: 1.5;
  padding-left: 0.9vw;
  position: relative;
}

.sc-05__row-gtk li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--row-accent, var(--gold));
  border-radius: 50%;
}

.sc-05__row-gtk li strong {
  /* Deliberately not bold: the label already reads as a label from the accent
     colour and the trailing colon, and weight 800 against the 200-weight body
     was shouting. */
  font-weight: inherit;
  color: var(--row-accent, var(--gold));
}

/* Links follow their row's accent too, so a day reads as one palette. The
   underline carries the "this is a link" cue, so colour alone isn't doing
   that work. */
.sc-05__row-gtk-link {
  color: var(--row-accent, var(--sky));
  border-bottom: 1px solid currentColor;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.sc-05__row-gtk-link:hover {
  color: var(--light);
  opacity: 1;
}

.sc-05__row-host {
  margin-top: 0.5vw;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 0.85vw;
  color: var(--light);
  opacity: 0.5;
  text-align: left;
}

.sc-05__closing-swash {
  display: block;
  width: clamp(18px, 1.9vw, 32px);
  height: clamp(14px, 1.5vw, 26px);
  margin: 1.4vw auto 0;
  color: var(--light);
}

/* ─── SC-06  JOURNEY ─────────────────────────────────────── */
.sc-06 {
  position: relative;
  padding: 5vw 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sc-06__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-06__img--main {
  position: relative;
  width: 39.2vw;
  height: 39.2vw;
  max-width: 608px;
  max-height: 608px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 30, 60, 0.18);
  z-index: 1;
}

.sc-06__img--main img,
.sc-06__img--main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-06__caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-text {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-style: normal;
  font-size: 8.5vw;
  line-height: 0.92;
  color: var(--light);
  white-space: nowrap;
  text-shadow: 0 2px 26px rgba(0, 30, 60, 0.28);
  /* Clip window for the per-line rise reveal. Padding + equal negative
     margin expands the clip box so ascenders/descenders are never cut,
     while keeping the visual line rhythm unchanged. */
  overflow: hidden;
  padding: 0.16em 0 0.24em;
  margin: -0.16em 0 -0.24em;
}

.jt-line {
  display: block;
  will-change: transform;
}

/* Wraps all caption lines so the parallax animates this group's y only,
   keeping the caption's centering purely in CSS. */
.jt-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.journey-text--accent {
  font-style: italic;
  font-weight: 300;
  /* Swashy italic caps/numerals (e.g. the "7" in "California, 2027") slant
     below the baseline AND past the right edge of the line box, so this line
     needs extra room on both axes inside the reveal mask. Padding is matched
     by equal negative margin, so the visual line rhythm is unchanged. */
  padding-bottom: 0.62em;
  margin-bottom: -0.62em;
  padding-left: 0.28em;
  padding-right: 0.28em;
  margin-left: -0.28em;
  margin-right: -0.28em;
}

/* ─── TRAVEL ─────────────────────────────────────────────── */
.travel {
  background: var(--dark);
  padding: 6vw calc(var(--sidebar-w) + 3vw) 6vw;
  color: var(--light);
}

.travel__label {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--sky-eyebrow);
  text-transform: uppercase;
  margin-bottom: 1.5vw;
}

.travel__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 5.5vw;
  line-height: 1.0;
  color: var(--light);
  margin-bottom: 4vw;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.41vw;
}

.travel-card {
  border-top: 1px solid rgba(255, 248, 240, 0.2);
  padding-top: 1.5vw;
}

.travel-card__tag {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--coral-eyebrow);
  text-transform: uppercase;
  margin-bottom: 0.8vw;
}

.travel-card__name {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 2vw;
  color: var(--light);
  margin-bottom: 0.8vw;
  line-height: 1.15;
}

.travel-card__desc {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.8vw + 2px);
  color: var(--light);
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 1.2vw;
}

.travel-card__link {
  display: inline-block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.18em;
  color: var(--sky);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(175, 201, 224, 0.4);
  padding-bottom: 0.2vw;
  transition: color 0.2s, border-color 0.2s;
}

.travel-card__link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.travel-acc .map-link {
  color: var(--coral);
}

.travel .sc-05__row-gtk-link {
  color: var(--light);
}

.travel .sc-05__row-desc {
  font-size: calc(1.2vw + 2px);
}

/* ─── TRAVEL ACCORDION ───────────────────────────────────── */
/* Borrows the schedule's panel mechanics (.sc-05__row-panel) so the
   open/close animation and toggle button styling stay identical; only
   the row chrome below is travel-specific. */
/* Travel's toggles and labels inherited the default gold. Setting the accent
   here routes them through the same --row-accent plumbing as the schedule, so
   the "Details" buttons and panel labels match the coral tags above them. */
.travel-acc {
  --row-accent: var(--coral);
  margin-top: 4vw;
  border-top: 1px solid rgba(255, 248, 240, 0.2);
}

.travel-acc__row {
  border-bottom: 1px solid rgba(255, 248, 240, 0.2);
  padding: 1.6vw 0;
}

/* Coral and the Travel sky are both mid-luminance, so coral on the bare
   background measured only 2.8:1. A smoked chip behind the label — the same
   night-glass fill the RSVP panel uses — lifts it to ~5.4:1 while keeping the
   button unmistakably coral. Hover deepens rather than lightens, so contrast
   only ever improves. */
.travel-acc__toggle {
  background: rgba(10, 8, 26, 0.6);
}

.travel-acc__toggle:hover {
  background: rgba(10, 8, 26, 0.78);
}

.travel-acc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2vw;
}

.travel-acc__heading {
  min-width: 0;
}

.travel-acc__tag {
  display: block;
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--coral-eyebrow);
  text-transform: uppercase;
  margin-bottom: 0.5vw;
}

.travel-acc__title {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: 2vw;
  line-height: 1.15;
  color: var(--light);
}

.travel-acc__row.is-open .sc-05__row-panel {
  grid-template-rows: 1fr;
}

.travel-acc__row.is-open .sc-05__row-panel-inner {
  padding-top: 1.2vw;
}

.travel-hotel {
  margin-top: 1.2vw;
}

.travel-hotel__group {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.7vw + 2px);
  letter-spacing: 0.22em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 2vw;
  margin-bottom: 0.2vw;
}

.travel-hotel__group:first-of-type {
  margin-top: 0.6vw;
}

.travel-hotel__name {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: normal;
  font-size: calc(1.15vw + 2px);
  color: var(--coral);
  line-height: 1.4;
}

.travel-hotel__addr {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: normal;
  font-size: calc(1.05vw + 2px);
  color: var(--light);
  line-height: 1.5;
}

.travel-hotel__meta {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.95vw + 2px);
  color: var(--light);
  line-height: 1.5;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 248, 240, 0.1);
  padding: 4vw calc(var(--sidebar-w) + 3vw);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.footer__logo {
  height: 2.5vw;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer__copy {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.65vw + 2px);
  letter-spacing: 0.15em;
  color: var(--light);
  opacity: 0.4;
  text-transform: uppercase;
}

/* Placeholder footer menu — not linked anywhere yet, so these are plain
   text rather than anchors (see index.html footer). */
.footer__nav {
  display: flex;
  gap: 3vw;
  align-items: flex-start;
}

.footer__nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.3vw;
  text-align: center;
}

.footer__nav-label {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.footer__nav-item:hover .footer__nav-label {
  color: var(--light);
  opacity: 1;
}

.footer__nav-soon {
  font-family: var(--font-editorial);
  font-weight: 200;
  font-style: italic;
  font-size: calc(0.6vw + 2px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
/* Schedule: 4-across on desktop → 2×2 on tablet → 1 col on phone. */
@media (max-width: 1100px) and (min-width: 1025px) {
  .sc-05__grid { grid-template-columns: 1fr 1fr; gap: 4vw 4vw; }
}

/* Schedule lineup — collapse fluid vw sizing into fixed px + stack the
   day/title columns once the table gets too tight to read on phones. */
@media (max-width: 768px) {
  .sc-05__forecast { padding: 8vw 5vw; }
  .sc-05__forecast-summary { flex-direction: column; align-items: center; gap: 4vw; }
  .sc-05__forecast-label { font-size: calc(3vw + 2px); margin-bottom: 3vw; }
  .sc-05__weather-note { font-size: 3.4vw; margin: 2vw auto 0; max-width: none; }
  .sc-05__forecast-day { max-width: none; gap: 1.2vw; }
  .sc-05__forecast-day-label { font-size: calc(3.4vw + 2px); }
  .sc-05__forecast-icon { width: 6vw; height: 6vw; }
  .sc-05__forecast-temp-hi { font-size: 5.5vw; }
  .sc-05__forecast-temp-lo { font-size: 3.4vw; }
  .sc-05__forecast-caption { font-size: 3vw; margin-top: 4vw; }

  .sc-05__title { font-size: 8vw; }
  .sc-05__container { max-width: 100%; }

  .sc-05__datebox { grid-template-columns: 1fr; }
  .sc-05__datebox-cell + .sc-05__datebox-cell { border-left: none; border-top: 1px solid rgba(255, 248, 240, 0.15); }
  .sc-05__datebox-day { font-size: 4vw; }
  .sc-05__datebox-date { font-size: 6vw; }
  .sc-05__datebox-through { font-size: 3.6vw; }

  .sc-05__festival-text { font-size: 4vw; }
  .sc-05__festival-coil { width: 8vw; height: 4vw; }

  .sc-05__row { grid-template-columns: 1fr; }
  /* Stacked on phones, the day block sits full-width above the content, so
     centring it leaves "Friday" floating away from the summary beneath it.
     Align the whole block left so it shares the content's left edge. */
  .sc-05__row-day {
    border-right: none;
    border-bottom: 1px solid rgba(255, 248, 240, 0.15);
    padding: 4vw;
    align-items: flex-start;
  }
  .sc-05__row-day-name { font-size: 10vw; text-align: left; }
  .sc-05__row-day-time { font-size: 6vw; text-align: left; }
  .sc-05__row-content { padding: 4vw; }
  .sc-05__row-title { font-size: 5.5vw; }
  .sc-05__row-toggle { padding: 1.8vw 3vw; }
  .sc-05__row-toggle-label { font-size: 3vw; }
  .sc-05__row-toggle-icon { font-size: 4vw; }

  .sc-05__row-desc,
  .sc-05__row-fact { font-size: 3.4vw; }
  .travel .sc-05__row-desc { font-size: calc(3.4vw + 2px); }
  .sc-05__row-gtk li { font-size: 3.2vw; }
  .sc-05__row-host { font-size: 3vw; }
}

/* Tablet + narrow: retire the left rail (and its top-left hamburger),
   drop the small secondary wordmark, and let the header's own toggle sit
   alone at the top-right. Phone content sizing stays in the 900px block. */
@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .header { left: 0; justify-content: flex-start; }
  .header__logo { display: none; }
  .header__nav { display: none; }
  .header__toggle { display: flex; }

  .sc-03 { height: auto; }
  .sc-03__sticky {
    position: relative;
    height: auto;
    padding: 8vw 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10vw;
    overscroll-behavior-x: contain;
  }
  .sc-03__track {
    width: max-content;
    gap: 5vw;
    padding: 0 10vw;
    will-change: auto;
  }
  .sc-03__item {
    width: 80vw;
    height: 120vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Disable the full-viewport mix-blend overlays on mobile/tablet. A top-level
     blend layer (soft-light/screen) forces the browser to composite the whole
     page backdrop — including the sticky hero flower — into a single
     viewport-sized buffer. On tall iOS/Safari displays that buffer exceeds the
     ~2048px GPU texture limit and tiles, dropping the flower out on one side
     (a hard vertical seam). The flower's own single-tile size-guard can't
     shrink this separate backdrop buffer, so we remove the blend layers here.
     They are subtle desktop-only flourishes; mobile loses nothing meaningful. */
  #prism-canvas { display: none; }
  .night-glow { display: none; }
  .atmosphere::before,
  .atmosphere::after { display: none; }

  /* Static, non-composited hero flower for mobile/tablet. No transform-scale,
     no crop animation (that JS is gated off) — the flower is a plain
     object-fit:cover image so iOS Safari never promotes it to an oversized GPU
     texture that tiles/drops out. The hero is one screen tall here. */
  .sc-01 { height: 100svh; }
  .sc-01__flower-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }
  .sc-01__flower-media {
    position: absolute;
    inset: 0;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    transform: none;
  }
  /* Couple-photo crossfade is a desktop-only crop effect. */
  .sc-01__flower-img--secondary { display: none; }
  /* Sky backdrop: drop the mask + transform so it stays a plain, painted
     full-cover layer (a masked/transformed full-viewport layer can also tile
     on iOS). The opaque flower covers it at the landing anyway. */
  .sc-01__sky {
    inset: 0;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 0px;
    --header-h: 14vw;
  }

  .sidebar { display: none; }

  .header { left: 0; padding: 0 5vw; }
  .header__logo  { height: 6vw; }
  .header__nav   { display: none; }
  .header__toggle { display: flex; }
  .header__toggle span { width: 6vw; height: 1.5px; }

  .sc-01 { height: 100svh; }
  .sc-01__logo-wrap { width: 92vw; }
  .sc-01__meta { bottom: 6vw; }
  .sc-01__meta p { font-size: calc(2.8vw + 2px); }

  .sc-02 { height: auto; padding: 11vw 6vw; }
  .sc-02__inner { max-width: 100%; padding: 11vw 7vw; }
  .sc-02__title { font-size: 10.5vw; }
  .sc-02__label { font-size: 10.5vw; }
  .sc-02__deadline { font-size: calc(3vw + 2px); margin-bottom: 6vw; }
  .sc-02__countdown { padding: 6vw 0; margin-bottom: 6vw; }
  .sc-02__countdown .sc-02__deadline { margin-bottom: 3vw; }
  .sc-02__countdown-timer { gap: 3vw; }
  .sc-02__countdown-unit { min-width: 12vw; }
  .sc-02__countdown-value { font-size: calc(8vw + 2px); }
  .sc-02__countdown-name { font-size: calc(2.2vw + 2px); }
  .sc-02__countdown-sep { font-size: 6vw; }
  .sc-02__countdown-note { font-size: calc(3.2vw + 2px); margin-top: 4vw; }
  .sc-02__form { grid-template-columns: 1fr; gap: 6vw 0; }
  .sc-02__field label { font-size: calc(2.5vw + 2px); }
  .sc-02__field input, .sc-02__field select, .sc-02__field textarea { font-size: 3.8vw; }
  .sc-02__submit { font-size: 3.3vw; padding: 4vw 8vw; }
  .sc-02__lookup-submit { font-size: 3.3vw; padding: 3vw 6vw; margin-top: 9vw; }
  .sc-02__lookup-status { font-size: 3.6vw; }
  .sc-02__lookup-result { font-size: 3.6vw; padding: 3vw 4vw; }
  .sc-02__party { grid-template-columns: 1fr; gap: 6vw 0; }
  .sc-02__party-intro { font-size: 3.6vw; }
  .sc-02__lookup-back { font-size: 3.2vw; }
  .sc-02__party-guests { grid-template-columns: 1fr; gap: 6vw 0; }
  .sc-02__form-error { font-size: 3.6vw; }
  .sc-02__group-label { font-size: calc(3.2vw + 2px); margin-bottom: 3vw; }
  .sc-02__checkbox-group { grid-template-columns: 1fr; gap: 4vw; margin-bottom: 5vw; }
  .sc-02__checkbox { font-size: 4.6vw; gap: 3vw; }
  .sc-02__checkbox input[type="checkbox"] { width: 6.5vw; height: 6.5vw; min-width: 24px; min-height: 24px; }

  /* The day groups are sized in vw for desktop, which collapses to a few
     unreadable pixels on a phone. Rescale the whole block, and let the
     event name drop to its own line: "Friday, April 30 — Welcome to the
     Weekend" otherwise wraps and strands "Weekend" on a line by itself.
     The dash is a ::before so it vanishes with the inline layout. */
  .rsvp-daygroup { padding-left: 4vw; }
  .rsvp-daygroup + .rsvp-daygroup { margin-top: 7vw; }
  .rsvp-daygroup__head { gap: 2.5vw; }
  .rsvp-daygroup__title { font-size: calc(3.2vw + 2px); }
  .rsvp-daygroup__badge { font-size: calc(2.8vw + 2px); padding: 0.8vw 2vw; }
  .rsvp-daygroup__note { font-size: 3.5vw; margin: 1.5vw 0 3.5vw; }
  .rsvp-daygroup .sc-02__checkbox-group { gap: 4vw; margin-bottom: 0; }
  /* Two-line labels now, so pin the box to the first line instead of
     floating it against the middle of the stack. */
  .rsvp-daygroup .sc-02__checkbox { align-items: flex-start; }
  .rsvp-daygroup .sc-02__checkbox input[type="checkbox"] { margin-top: 0.6vw; }
  .rsvp-day__event { display: block; }
  .rsvp-day__event::before { content: none; }
  .sc-02__decline-note { font-size: 3.8vw; }
  .sc-02__guest-card { grid-template-columns: 1fr; gap: 6vw 0; }
  .sc-02__guest-card-label { font-size: calc(2.8vw + 2px); }
  .sc-02__guest-name-display { font-size: 5.5vw; }
  .sc-02__already { font-size: 3.6vw; padding: 4vw 4.5vw; margin-bottom: 2vw; }
  .sc-02__guest-card--locked { padding: 4.5vw 4.5vw; gap: 2vw 0; margin-top: 5vw; }
  .sc-02__guest-card--locked .sc-02__guest-name-display { padding: 1vw 0 0; }
  .sc-02__locked-status { font-size: 3.6vw; gap: 2.5vw; }
  .sc-02__locked-badge { font-size: calc(2.8vw + 2px); padding: 1.2vw 2.4vw; }
  .sc-02__locked-actions { gap: 3.5vw; }
  .sc-02__locked-note { font-size: 3.3vw; }
  .sc-02__resend-btn { font-size: 3.3vw; padding: 3vw 5vw; }
  .sc-02__resend-status { font-size: 3.3vw; }
  .sc-02__confirmation-text { font-size: 4.8vw; }

  .belt__item span { font-size: 3.5vw; }

  .sc-04 { grid-template-columns: 1fr; height: auto; }
  .sc-04__left { padding: 15vw 8vw; }
  .sc-04__label { font-size: calc(2.5vw + 2px); }
  .sc-04__title { font-size: 12vw; }
  .sc-04__body { font-size: 3.5vw; max-width: 100%; }
  .sc-04__circle { width: 40vw; height: 40vw; }
  .sc-04__right { height: 80vw; }

  .sc-05 { padding: 15vw 8vw; min-height: auto; }
  .sc-05__label { font-size: calc(2.5vw + 2px); }
  .sc-05__title { font-size: 10vw; }
  .sc-05__coming-soon { padding-top: 4vw; }
  .sc-05__coming-soon span { font-size: 2.5vw; }
  .sc-05__coming-soon p { font-size: 6vw; }

  .sc-06 { height: auto; padding-bottom: 20vw; }
  .journey-text { font-size: 10.5vw; }
  .sc-06__img--main { position: relative; width: 84vw; height: 120vw; top: 0; left: 0; transform: none; margin: 10vw auto; }
  .sc-06__t--0, .sc-06__t--1, .sc-06__t--2, .sc-06__t--3 { position: relative; top: auto; margin: 4vw 0; }
  .sc-06__img--side-a, .sc-06__img--side-b { display: none; }

  .travel { padding: 15vw 8vw; }
  .travel__label { font-size: calc(2.5vw + 2px); }
  .travel__title { font-size: 10vw; }
  .travel-grid { grid-template-columns: 1fr; gap: 8vw; }
  .travel-card__tag { font-size: calc(2.5vw + 2px); }
  .travel-card__name { font-size: 6vw; }
  .travel-card__desc { font-size: calc(3vw + 2px); }
  .travel-card__link { font-size: calc(2.5vw + 2px); }

  .travel-acc { margin-top: 10vw; }
  .travel-acc__row { padding: 5vw 0; }
  .travel-acc__tag { font-size: calc(2.5vw + 2px); margin-bottom: 1.5vw; }
  .travel-acc__title { font-size: 6vw; }
  .travel-acc__row.is-open .sc-05__row-panel-inner { padding-top: 4vw; }
  .travel-hotel { margin-top: 4vw; }
  .travel-hotel__group { font-size: calc(2.5vw + 2px); margin-top: 7vw; margin-bottom: 1vw; }
  .travel-hotel__group:first-of-type { margin-top: 2vw; }
  .travel-hotel__name { font-size: calc(3.6vw + 2px); }
  .travel-hotel__addr { font-size: calc(3.2vw + 2px); }
  .travel-hotel__meta { font-size: calc(3vw + 2px); }

  .footer { flex-direction: column; align-items: center; gap: 4vw; padding: 10vw 8vw; text-align: center; }
  .footer__logo { height: 7vw; }
  .footer__copy { font-size: calc(2.5vw + 2px); }
  .footer__nav { gap: 4vw; justify-content: center; }
  .footer__nav-item { gap: 2vw; }
  .footer__nav-label { font-size: clamp(12px, 3.5vw, 18px); }
  .footer__nav-soon { font-size: calc(2.4vw + 2px); }

  .menu-overlay { grid-template-columns: 1fr 0; }
  .menu-overlay__right { display: none; }
  .menu-overlay__left { padding: 12vw 8vw; }
  .menu-overlay__logo { width: 35vw; }
  .menu-overlay__nav-item a,
  .menu-overlay__placeholder { font-size: min(12vw, 5.5svh); }
  .menu-overlay__nav-item { padding: 1vw 0; }
  .menu-overlay__footer { font-size: calc(3vw + 2px); }
  .menu-overlay__close { right: 8vw; font-size: 3vw; }
}

/* ============================================================
   DAY → SUNSET → NIGHT  scroll atmosphere
   A single fixed sky behind the whole page. Its colours are
   interpolated by scroll progress in main.js (initAtmosphere).
   Sections that should reveal it are made transparent below;
   cream editorial sections stay opaque as bright "paper" breaks.
   ============================================================ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Defaults = daytime (overwritten live via CSS vars from JS) */
  --atmo-top: #AFC9E0;
  --atmo-mid: #CADAEA;
  --atmo-bot: #FFF8F0;
  --atmo-sun: #FFE7C4;
  --atmo-sun-y: 16%;
  background:
    radial-gradient(130% 78% at 50% var(--atmo-sun-y),
      var(--atmo-sun) 0%,
      rgba(255, 255, 255, 0) 55%),
    linear-gradient(to bottom,
      var(--atmo-top) 0%,
      var(--atmo-mid) 46%,
      var(--atmo-bot) 100%);
}

/* Dark-effective grain — screen-blend so it can dither the
   near-black night bottom, where the overlay grain below is
   useless (overlay crushes shadows). Kept faint so the deep
   "almost black" finale is preserved, just de-banded. */
.atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='nd'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='0.11' intercept='0'/%3E%3CfeFuncG type='linear' slope='0.11' intercept='0'/%3E%3CfeFuncB type='linear' slope='0.11' intercept='0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nd)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Fine premium grain over the sky — breaks gradient banding so
   the background reads as film, not flat CSS. */
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Iridescent "disco" bloom — invisible by day, blooms at night.
   The group opacity is driven by scroll progress in JS. Inside it, several
   individual light divs (injected in main.js) each TWINKLE asynchronously:
   they fade up from nothing, swell slightly, then fade back — so the finale
   shimmers instead of sitting at a constant glow. Each light carries an
   organic turbulence-distorted edge (SVG #glow-turb). Because only opacity +
   transform animate, the lights stay GPU-composited (the filter is static). */
.night-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.nglow-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: url(#glow-turb);
  opacity: 0;
  will-change: transform, opacity;
  animation: nglow-twinkle var(--dur, 9s) ease-in-out infinite;
}
@keyframes nglow-twinkle {
  0%, 100% { opacity: calc(var(--peak, 0.9) * 0.04); transform: scale(0.68); }
  50%      { opacity: var(--peak, 0.9);              transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .nglow-light { animation: none; opacity: calc(var(--peak, 0.9) * 0.7); transform: none; }
}

/* ── Sections that reveal the sky ──────────────────────────
   These sit low enough in the page that the sky behind them is
   already deep, so their existing light text stays readable. */
.sc-03 { background: transparent; }
.travel { background: transparent; }

/* The footer is the tail of the RSVP section's veil, not a separate slab.
   It picks up exactly where .sc-02's gradient ends (rgba(4,3,12,0.55)) and
   keeps deepening, and the hairline border is dropped, so there's no seam
   between the last section and the footer. */
.footer {
  background: linear-gradient(180deg,
    rgba(4, 3, 12, 0.55) 0%,
    rgba(3, 2, 10, 0.72) 100%);
  border-top: none;
}

/* ── RSVP: now the LAST section, sitting at the night end of the
   sunset scroll (after Travel). It used to live near the top and was
   styled as light "daytime" glass; it's now dark "night glass" — a
   translucent smoked panel with cream text, so it reads against the
   near-black sky instead of blasting a cream card over it. ────────── */
.sc-02 {
  background: linear-gradient(180deg,
    rgba(8, 6, 20, 0) 0%,
    rgba(10, 8, 26, 0.35) 28%,
    rgba(4, 3, 12, 0.55) 100%);
  color: var(--light);
}

.sc-02__inner {
  background: rgba(10, 9, 26, 0.55);
  border: 1px solid rgba(255, 248, 240, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2vw 6vw rgba(0, 0, 0, 0.45);
}

.sc-02__label { color: var(--light); opacity: 0.65; }
.sc-02__title { color: var(--light); }

.sc-02__deadline { color: rgba(255, 248, 240, 0.7); }

.sc-02__countdown {
  border-top-color: rgba(255, 248, 240, 0.18);
  border-bottom-color: rgba(255, 248, 240, 0.18);
}
.sc-02__countdown-value { color: var(--light); }
.sc-02__countdown-name { color: rgba(255, 248, 240, 0.55); }
.sc-02__countdown-sep { color: rgba(255, 248, 240, 0.45); }
.sc-02__countdown-note { color: rgba(255, 248, 240, 0.7); }

/* Fields — labels are full-strength cream. At the small, wide-tracked size
   these are set in, dimming them made them very hard to read on night glass. */
.sc-02__field label { color: var(--light); opacity: 1; }
.sc-02__field input,
.sc-02__field select,
.sc-02__field textarea {
  color: var(--light);
  border-bottom-color: rgba(255, 248, 240, 0.28);
}
.sc-02__field select option { background: #12102b; color: var(--light); }
.sc-02__field input::placeholder,
.sc-02__field textarea::placeholder { color: rgba(255, 248, 240, 0.45); }
.sc-02__field input:focus,
.sc-02__field select:focus,
.sc-02__field textarea:focus { border-bottom-color: var(--coral); }
.sc-02__required { color: var(--coral); }

/* Lookup step */
.sc-02__lookup-submit { color: var(--light); border-color: rgba(255, 248, 240, 0.5); }
.sc-02__lookup-submit:hover { background: var(--coral); border-color: var(--coral); color: #14122e; }
.sc-02__lookup-status { color: rgba(255, 248, 240, 0.75); }
.sc-02__lookup-result {
  color: var(--light);
  border-color: rgba(255, 248, 240, 0.22);
}
.sc-02__lookup-result:hover { border-color: var(--coral); background: rgba(254, 111, 98, 0.14); }
.sc-02__lookup-back { color: var(--coral); }

/* Party step */
.sc-02__party-intro { color: rgba(255, 248, 240, 0.85); }
.sc-02__group-label { color: var(--light); }
.sc-02__checkbox { color: var(--light); }
.sc-02__checkbox input[type="checkbox"] { accent-color: var(--coral); }
.sc-02__guest-card { border-top-color: rgba(254, 111, 98, 0.35); }
.sc-02__guest-card-label { color: var(--coral); }
.sc-02__decline-note { color: rgba(255, 248, 240, 0.8); }
.sc-02__form-error { color: #FF9A8F; }

/* Already-RSVP'd notice + locked cards. These sit *before* the per-guest
   accent block below, which is what supplies --guest-accent — so the
   locked card, badge, link and resend button all inherit the colour of
   that guest's name rather than a blanket coral. */
.sc-02__already {
  color: var(--light);
}
.sc-02__guest-card--locked {
  border-left-color: color-mix(in srgb, var(--guest-accent, var(--coral)) 72%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--guest-accent, var(--coral)) 13%, transparent) 0%,
    color-mix(in srgb, var(--guest-accent, var(--coral)) 4%, transparent) 55%,
    transparent 100%
  );
}
.sc-02__locked-status { color: rgba(255, 248, 240, 0.82); }
.sc-02__locked-badge { color: #14122e; background: var(--guest-accent, var(--coral)); }
.sc-02__locked-note { color: rgba(255, 248, 240, 0.72); }
.sc-02__locked-note a { color: var(--guest-accent, var(--coral)); }
.sc-02__resend-btn {
  color: var(--guest-accent, var(--light));
  border-color: color-mix(in srgb, var(--guest-accent, var(--coral)) 60%, transparent);
}
.sc-02__resend-btn:hover:not(:disabled) {
  background: var(--guest-accent, var(--coral));
  border-color: var(--guest-accent, var(--coral));
  color: #14122e;
}
.sc-02__resend-status { color: rgba(255, 248, 240, 0.8); }
.sc-02__confirmation-text { color: var(--light); }

/* ── Per-guest accent ─────────────────────────────────────────
   Each guest card already cycled a signature colour on the name; that
   colour is now published as --guest-accent and carried through every
   control inside that card (checkboxes, focus underlines, required marks,
   the divider and the card label) so a guest's selections visually belong
   to them. The --*-a11y tokens are darkened for the old cream panel, so on
   night glass we use the bright source hues. */
.sc-02__guest-card:nth-child(6n+1) { --guest-accent: #FF8E80; }
.sc-02__guest-card:nth-child(6n+2) { --guest-accent: #9FB6FF; }
.sc-02__guest-card:nth-child(6n+3) { --guest-accent: #F5C06A; }
.sc-02__guest-card:nth-child(6n+4) { --guest-accent: #7FCFCE; }
.sc-02__guest-card:nth-child(6n+5) { --guest-accent: #C4BDFF; }
.sc-02__guest-card:nth-child(6n+6) { --guest-accent: #CBDB6E; }

/* Matches the base cycle's specificity (0,3,0) so it wins by order. */
.sc-02__guest-card:nth-child(6n+1) .sc-02__guest-name-display,
.sc-02__guest-card:nth-child(6n+2) .sc-02__guest-name-display,
.sc-02__guest-card:nth-child(6n+3) .sc-02__guest-name-display,
.sc-02__guest-card:nth-child(6n+4) .sc-02__guest-name-display,
.sc-02__guest-card:nth-child(6n+5) .sc-02__guest-name-display,
.sc-02__guest-card:nth-child(6n+6) .sc-02__guest-name-display {
  color: var(--guest-accent);
}

.sc-02__guest-card {
  border-top-color: color-mix(in srgb, var(--guest-accent, var(--coral)) 42%, transparent);
}
.sc-02__guest-card .sc-02__guest-card-label { color: var(--guest-accent, var(--coral)); }
.sc-02__guest-card .sc-02__required { color: var(--guest-accent, var(--coral)); }
.sc-02__guest-card .sc-02__checkbox input[type="checkbox"] {
  accent-color: var(--guest-accent, var(--coral));
}
.sc-02__guest-card .sc-02__field input:focus,
.sc-02__guest-card .sc-02__field select:focus,
.sc-02__guest-card .sc-02__field textarea:focus {
  border-bottom-color: var(--guest-accent, var(--coral));
}
/* Checked day labels lift toward the guest's colour. */
.sc-02__guest-card .sc-02__checkbox:has(input:checked) {
  color: var(--guest-accent, var(--coral));
}

/* A declined guest's card steps back to neutral. Needs to match the
   nth-child rules' specificity (0,2,0) to override the cycled hue. */
.sc-02__guest-card.sc-02__guest-card--declined { --guest-accent: rgba(255, 248, 240, 0.45); }

.sc-02__submit { color: var(--light); border-color: rgba(255, 248, 240, 0.55); }
.sc-02__submit:hover { background: var(--coral); border-color: var(--coral); color: #14122e; }

/* ─── Sticky scroll-to-top button ────────────────────────── */
.scroll-top {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 240, 0.55);
  background: rgba(0, 47, 94, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease, background .3s ease, border-color .3s ease;
  z-index: 9999;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.scroll-top svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
