/* Raychel & Drew — site styles
   Claret-led, golden-hour imagery. No build step: edit and deploy.
   Motion is layered on by site.js (GSAP + Lenis). Everything here must read
   correctly with JS off, so no content is hidden by CSS alone except the
   loader, which only exists when html has .js.loading.                      */

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

:root {
  /* Claret — the brand. 800 is #4d0011, unchanged from the first site. */
  --night:    #12030a;
  --wine-950: #1a040b;
  --wine-900: #2a0610;
  --wine-800: #4d0011;
  --wine-700: #6b0018;
  --wine-600: #8c0a24;
  --wine-500: #ad1c37;

  /* Rose — accent on dark. 400 passes AA on every wine surface. */
  --rose-700: #8a3a4a;
  --rose-500: #c17f8a;
  --rose-400: #f7cdd0;
  --rose-200: #f6dde1;

  /* Champagne — borrowed from the golden-hour footage. Rules, numerals, small caps only. */
  --gold:     #e6c79c;
  --gold-dim: rgba(230,199,156,0.38);

  /* Paper sections */
  --paper:    #f7eee8;
  --paper-2:  #efe2d9;
  --ink:      #2a0d14;
  --ink-70:   #5a3a42;

  --on-dark:      #fbf1ee;
  --on-dark-soft: #e4ced1;
  --on-dark-mute: #b99aa2;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { -webkit-text-size-adjust: 100%; background: var(--night); }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  background: var(--night);
  color: var(--on-dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--rose-400); color: var(--wine-900); }

/* Film grain over everything. Static SVG noise, nudged by a stepped
   animation so it reads as film rather than a dirty screen. */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.07;
  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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); }
}

/* ---------- A11Y ---------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--rose-400); color: var(--wine-900);
  padding: 0.85rem 1.5rem; font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--rose-400); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--wine-600); }
.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;
}

/* ---------- LOADER ----------
   Exists only for JS visitors without a deep link or reduced motion. The CSS
   failsafe fades it out at 4s even if site.js never runs. */
.loader { display: none; }
html.js.loading .loader {
  display: flex; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; flex-direction: column; gap: 1.4rem;
  background: var(--wine-950);
  animation: loaderFailsafe 0.6s ease 4s forwards;
}
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader-mark {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(2.6rem, 8vw, 4.2rem); color: var(--rose-400); line-height: 1;
  display: flex; gap: 0.18em;
}
.loader-mark span { display: inline-block; }
.loader-line { width: min(40vw, 12rem); height: 1px; background: rgba(247,205,208,0.18); overflow: hidden; }
.loader-line i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.loader-meta { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-dark-mute); }
html.js.loading, html.js.loading body { overflow: hidden; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(26,4,11,0.72);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: rgba(230,199,156,0.12);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav.hide { transform: translateY(-100%); }
.nav-mark {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.6rem; line-height: 1; letter-spacing: 0.02em;
  color: var(--rose-200); text-decoration: none; padding: 0.3rem 0;
}
.nav-mark b { font-weight: 300; color: var(--gold); margin: 0 0.12em; }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); list-style: none; }
.nav-links a {
  position: relative; display: inline-block; padding: 0.5rem 0;
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--on-dark-soft); text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav-links a:not(.pill)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--rose-400); }
.nav-links a:hover::after, .nav-links a[aria-current="location"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.pill, .nav-links a.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 44px; padding: 0 1.5rem 0 calc(1.5rem + 0.24em);
  border: 1px solid rgba(247,205,208,0.5); border-radius: 999px;
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rose-200); background: transparent; text-decoration: none; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover, .nav-links a.pill:hover { background: var(--rose-400); border-color: var(--rose-400); color: var(--wine-900); }
}
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--rose-200);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 1px; background: currentColor; position: relative;
  transition: transform 0.4s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  padding: 6rem var(--gutter) 3rem;
  background: var(--wine-950);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.drawer.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
.drawer a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.15;
  color: var(--rose-200); text-decoration: none;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.drawer a small { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gold); }
.drawer.open a { opacity: 1; transform: none; }
.drawer.open a:nth-child(2) { transition-delay: 0.05s; } .drawer.open a:nth-child(3) { transition-delay: 0.1s; }
.drawer.open a:nth-child(4) { transition-delay: 0.15s; } .drawer.open a:nth-child(5) { transition-delay: 0.2s; }
.drawer-foot { margin-top: 2.5rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mute); }

/* ---------- SHARED TYPE ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.66rem; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.7; }
.paper .eyebrow { color: var(--rose-700); }
.display {
  font-family: var(--serif); font-weight: 300; line-height: 0.98; letter-spacing: -0.02em;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  color: var(--rose-200);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--rose-400); }
.paper .display { color: var(--wine-800); }
.paper .display em { color: var(--wine-600); }
.lede { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.85; color: var(--on-dark-soft); max-width: 38rem; text-wrap: pretty; }
.paper .lede { color: var(--ink-70); }

/* Split-text scaffolding. site.js wraps words/chars in these. */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w, .c { display: inline-block; will-change: transform; }

section { position: relative; }
.paper { background: var(--paper); color: var(--ink); }

/* Media frames that reveal with a clip-path wipe */
.frame { position: relative; overflow: hidden; background: var(--wine-900); }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame-arch { border-radius: 999px 999px 0 0; }
/* Daylight photo in a dusk site: pull it toward the evening grade */
.graded { filter: saturate(0.78) sepia(0.18) brightness(0.86) contrast(1.05); }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100svh; min-height: 36rem;
  overflow: hidden; background: var(--wine-950);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
}
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.ready { opacity: 1; }
/* Pull the saturated sunset toward claret, then darken top and bottom so the
   type always has something to sit on. */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26,4,11,0.72) 0%, rgba(26,4,11,0.15) 34%, rgba(26,4,11,0.1) 55%, rgba(18,3,10,0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, rgba(18,3,10,0.55) 100%);
}
.hero-tint { position: absolute; inset: 0; z-index: -1; background: #5a0a1e; mix-blend-mode: color; opacity: 0.28; pointer-events: none; }

.hero-inner {
  height: 100%;
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(6rem, 13vh, 9rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
}
.hero-title-wrap { align-self: center; text-align: center; }
.hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.hero-names {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(4.2rem, 14.5vw, 13.5rem); line-height: 0.84; letter-spacing: -0.035em;
  color: var(--on-dark);
  text-shadow: 0 2px 60px rgba(26,4,11,0.35);
}
.hero-names .row { display: block; overflow: hidden; padding: 0 0.04em 0.06em; }
.hero-names .row-1 { transform: translateX(-9%); }
.hero-names .row-3 { transform: translateX(10%); }
.hero-names .amp {
  display: block; font-style: italic; font-weight: 300; color: var(--rose-400);
  font-size: 0.42em; line-height: 1.1; letter-spacing: 0;
}
.hero-invite {
  margin-top: clamp(1rem, 3vh, 2rem);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem); color: var(--on-dark-soft);
}
.hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(230,199,156,0.22);
}
.meta-item { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-soft); line-height: 1.9; }
.meta-item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: 0.02em; text-transform: none; color: var(--on-dark); }
.meta-right { justify-self: end; text-align: right; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0 1.8rem 0 calc(1.8rem + 0.24em);
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn-solid { background: var(--rose-400); color: var(--wine-900); }
.btn-line  { background: rgba(26,4,11,0.25); color: var(--rose-200); border-color: rgba(247,205,208,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--on-dark); }
  .btn-line:hover { border-color: var(--rose-400); color: var(--wine-900); background: var(--rose-400); }
}
.btn:active { transform: scale(0.97); }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(6.5rem, 14vh, 8.5rem); transform: translateX(-50%);
  width: 1px; height: 3.2rem; background: rgba(230,199,156,0.2); overflow: hidden;
}
.scroll-cue::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ---------- STORY ---------- */
.story { padding: clamp(6rem, 13vw, 11rem) var(--gutter); overflow: hidden; }
.story-grid {
  max-width: 78rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
}
.story-media { position: relative; }
.story-media .frame { aspect-ratio: 1 / 1; }
.story-media .frame img { object-position: 58% 32%; }
.story-media .tag {
  position: absolute; left: -1rem; bottom: 2.2rem; z-index: 2;
  background: var(--wine-800); color: var(--rose-200);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  padding: 0.7rem 1.3rem;
}
.story-media .ring {
  position: absolute; right: -2.2rem; top: -2.2rem; width: 8.5rem; height: 8.5rem; z-index: 2;
  color: var(--wine-700);
  background: var(--paper); border-radius: 50%;
  box-shadow: 0 10px 30px rgba(42,13,20,0.18);
}
.story-copy .display { margin: 1.4rem 0 2rem; }
.story-pull {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.4; color: var(--wine-700);
  margin-bottom: 1.8rem;
}
.story-copy p + p { margin-top: 1.1rem; }
.story-copy p:not(.story-pull):not(.story-sign) { color: var(--ink-70); line-height: 1.9; max-width: 34rem; }
.story-sign { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--wine-800); }

/* ---------- DETAILS (horizontal on desktop) ---------- */
.details { background: var(--wine-950); }
.h-pin { position: relative; }
.h-track {
  display: flex; flex-direction: column; gap: clamp(4rem, 10vw, 6rem);
  padding: clamp(6rem, 12vw, 9rem) var(--gutter);
}
.panel { position: relative; }
.panel-intro .display { margin: 1.4rem 0 1.6rem; }
.panel-num {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.panel-num::after { content: ''; width: 3rem; height: 1px; background: var(--gold-dim); }
.panel-media { aspect-ratio: 4 / 3; margin-bottom: 1.8rem; }
.panel-media.tall { aspect-ratio: 4 / 5; }
.panel-type { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 0.4rem; }
.panel h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.02; color: var(--rose-200); margin-bottom: 1rem; }
.panel p { color: var(--on-dark-soft); line-height: 1.85; max-width: 30rem; }
.panel .where { color: var(--on-dark); font-weight: 400; }
.panel .when { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--rose-400); margin: 0.4rem 0 0.8rem; }
.panel-note { margin-top: 0.9rem; font-size: 0.8rem; font-style: italic; color: var(--on-dark-mute); }
.panel-link {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-dim); padding-bottom: 0.3rem;
}
.panel-link:hover { color: var(--rose-400); border-color: var(--rose-400); }
.h-progress { display: none; }

@media (min-width: 900px) {
  .h-pin { height: 100vh; overflow: hidden; }
  .h-track {
    flex-direction: row; align-items: center; gap: clamp(4rem, 7vw, 8rem);
    height: 100%; width: max-content; padding-block: 0;
    padding-right: 12vw;
  }
  .panel { flex: none; }
  .panel-intro { width: min(34rem, 38vw); }
  .panel-card { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(2rem, 3vw, 3.5rem); }
  .panel-card .panel-media { height: min(68vh, 40rem); aspect-ratio: auto; margin: 0; }
  .panel-card .panel-media.wide { width: min(52vw, 56rem); }
  .panel-card .panel-media.tall { width: min(30vw, 30rem); }
  .panel-card .panel-body { width: min(24rem, 26vw); padding-bottom: 1rem; }
  .h-progress {
    display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.2rem;
    height: 1px; background: rgba(230,199,156,0.14);
  }
  .h-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
}

/* ---------- COUNTDOWN (record player) ---------- */
.record { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; background: #0b0205; }
.record-media { position: absolute; inset: 0; }
.record-media img, .record-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.record-media video { opacity: 0; transition: opacity 0.8s var(--ease); }
.record-media video.ready { opacity: 1; }
.record-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,2,5,0.94) 0%, rgba(11,2,5,0.78) 34%, rgba(11,2,5,0.1) 68%), linear-gradient(0deg, rgba(11,2,5,0.6), transparent 40%); }
.record-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  max-width: 46rem;
}
.cd-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(1.2rem, 3.5vw, 3rem); margin: 2rem 0 1.6rem; }
.cd-unit { display: flex; flex-direction: column; }
.cd-number {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7.5vw, 6.2rem); line-height: 0.9;
  color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.cd-unit:first-child .cd-number { color: var(--rose-400); }
.cd-label { margin-top: 0.8rem; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.cd-foot { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--on-dark-soft); }

/* ---------- SCHEDULE ---------- */
.schedule { background: var(--wine-900); padding: clamp(6rem, 12vw, 10rem) var(--gutter); }
.sched-grid { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(3rem, 8vw, 8rem); }
.sched-aside { align-self: start; position: sticky; top: 7rem; }
.sched-aside .display { margin: 1.4rem 0 1.5rem; }
.sched-aside .frame { margin-top: 2.5rem; aspect-ratio: 3 / 4; width: min(100%, 22rem); }
.timeline { position: relative; padding-left: clamp(2.5rem, 5vw, 4rem); }
.tl-rail { position: absolute; left: 0.45rem; top: 0.8rem; bottom: 0.8rem; width: 1px; background: rgba(230,199,156,0.16); }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(var(--gold), var(--rose-400)); transform: scaleY(0); transform-origin: 50% 0; }
.tl-item { position: relative; padding: 0 0 clamp(3rem, 7vw, 5rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: calc(-1 * clamp(2.5rem, 5vw, 4rem) + 0.08rem); top: 0.85rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--wine-900); border: 1px solid var(--gold);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tl-item.lit::before { background: var(--rose-400); border-color: var(--rose-400); box-shadow: 0 0 0 6px rgba(247,205,208,0.12); }
.tl-time { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--gold); }
.tl-name { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.02; color: var(--rose-200); margin: 0.3rem 0 0.7rem; }
.tl-note { color: var(--on-dark-soft); max-width: 30rem; }

/* ---------- RECEPTION BAND (festoon) ---------- */
.band {
  position: relative; height: clamp(26rem, 80vh, 48rem); overflow: hidden;
  display: flex; align-items: flex-end;
}
.band-media { position: absolute; inset: -12% 0; }
.band-media img, .band-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-media video { opacity: 0; transition: opacity 0.8s var(--ease); }
.band-media video.ready { opacity: 1; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,3,10,0.9) 0%, rgba(18,3,10,0.1) 55%, rgba(18,3,10,0.35) 100%); }
.band-copy { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4.5rem); max-width: 60rem; }
.band-copy .display { font-size: clamp(2.6rem, 6.5vw, 5.8rem); }

/* ---------- TRAVEL ---------- */
.travel { padding: clamp(6rem, 12vw, 10rem) var(--gutter); overflow: hidden; }
.travel-head { max-width: 78rem; margin: 0 auto clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; align-items: end; }
.travel-head .display { margin-top: 1.4rem; }
.travel-grid { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.map { position: relative; background: var(--paper-2); padding: clamp(1rem, 2vw, 1.5rem); }
.map svg { width: 100%; height: auto; overflow: visible; }
.map-caption { margin-top: 0.8rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-70); font-style: italic; }
.map .river { fill: none; stroke: #c9b3ab; stroke-linecap: round; stroke-linejoin: round; }
.map .route { fill: none; stroke: var(--wine-600); stroke-width: 2.2; stroke-linecap: round; }
.map .route.alt { stroke: var(--rose-500); stroke-dasharray: 2 7; stroke-width: 2.4; }
.map .pin { fill: var(--paper); stroke: var(--wine-800); stroke-width: 1.5; }
.map .pin.main { fill: var(--wine-800); }
.map .pin-halo { fill: var(--wine-600); opacity: 0.18; transform-origin: center; transform-box: fill-box; }
.map text { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink); }
.map text.big { font-family: var(--serif); font-size: 21px; letter-spacing: 0; text-transform: none; font-style: italic; fill: var(--wine-800); }
.map text.small { font-size: 10px; fill: var(--ink-70); }
.map text.time { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; fill: var(--wine-600); }
.info-list { list-style: none; }
.info-list li { padding: 1.8rem 0; border-top: 1px solid rgba(77,0,17,0.14); display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; }
.info-list li:last-child { border-bottom: 1px solid rgba(77,0,17,0.14); }
.info-list .n { font-family: var(--serif); font-style: italic; color: var(--rose-700); font-size: 1.05rem; padding-top: 0.25rem; }
.info-list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--wine-800); margin-bottom: 0.45rem; }
.info-list p { color: var(--ink-70); line-height: 1.8; font-size: 0.97rem; }

/* ---------- RSVP ---------- */
.rsvp { background: var(--wine-950); padding: clamp(6rem, 12vw, 10rem) var(--gutter); overflow: hidden; }
.rsvp-grid { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.rsvp-aside .display { margin: 1.4rem 0 1.5rem; }
.rsvp-aside .frame { margin-top: 2.8rem; aspect-ratio: 4 / 5; width: min(100%, 24rem); }
/* Text set onto the blank card in stationery.webp. The frame and the photo
   share a 4:5 ratio, so percentages land on the card at any width. */
.stationery { container-type: inline-size; }
.card-print {
  position: absolute; left: 12.8%; top: 48.7%; width: 37.4%; height: 40.3%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
  transform: rotate(-10deg);
  color: #5b1622; mix-blend-mode: multiply; text-align: center;
}
.card-print span { font-family: var(--serif); font-weight: 300; font-size: 8.6cqw; line-height: 1; }
.card-print span em { font-style: italic; color: #8a3a4a; font-size: 0.7em; margin: 0 0.05em; }
.card-print small { font-size: 1.8cqw; letter-spacing: 0.3em; }
.card-print i { font-family: var(--serif); font-size: 2.8cqw; opacity: 0.8; border-bottom: 1px solid rgba(91,22,34,0.35); padding: 0 0.6em 0.2em; }
.card-print i:first-of-type { margin-top: 1.5cqw; }
.rsvp-by { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold); }
.rsvp-card {
  background: var(--paper); color: var(--ink);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  position: relative;
}
.rsvp-card::before { content: ''; position: absolute; inset: 0.6rem; border: 1px solid rgba(77,0,17,0.12); pointer-events: none; }
.rsvp-card-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--wine-800); margin-bottom: 1.8rem; line-height: 1.1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }
.field.full { grid-column: 1 / -1; }
.rsvp-card label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-70); }
.rsvp-card label .opt { font-weight: 300; letter-spacing: 0; text-transform: none; font-style: italic; }
.rsvp-card input, .rsvp-card select, .rsvp-card textarea {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--ink);
  width: 100%; min-height: 48px; padding: 0.55rem 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(77,0,17,0.28); border-radius: 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rsvp-card input::placeholder, .rsvp-card textarea::placeholder { color: #a08a8f; font-style: italic; }
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus {
  outline: none; border-bottom-color: var(--wine-700); box-shadow: 0 1px 0 0 var(--wine-700);
}
.rsvp-card input[aria-invalid="true"] { border-bottom-color: #b3261e; box-shadow: 0 1px 0 0 #b3261e; }
.rsvp-card select {
  appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234d0011' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
}
.rsvp-card textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
@media (max-width: 780px) { .rsvp-card input, .rsvp-card select, .rsvp-card textarea { font-size: max(16px, 1.1rem); } }

/* Attend toggle — the select stays the source of truth; these are a nicer face on it */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.4rem; }
.choice button {
  min-height: 56px; padding: 0.6rem 1rem; cursor: pointer;
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--wine-800);
  background: transparent; border: 1px solid rgba(77,0,17,0.25); border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.choice button[aria-pressed="true"] { background: var(--wine-800); color: var(--rose-200); border-color: var(--wine-800); }
.js .has-choice select { position: absolute; opacity: 0; pointer-events: none; height: 1px; min-height: 0; width: 1px; }

.err { display: none; font-size: 0.76rem; color: #b3261e; }
.err.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit {
  width: 100%; margin-top: 0.6rem; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: var(--wine-800); color: var(--rose-200);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn-submit:hover:not(:disabled) { background: var(--wine-600); } }
.btn-submit:active:not(:disabled) { transform: scale(0.985); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.spinner { width: 14px; height: 14px; border: 1.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin-top: 1rem; text-align: center; font-size: 0.8rem; color: var(--ink-70); }
.form-alert { display: none; margin-top: 1rem; padding: 0.85rem 1rem; font-size: 0.86rem; line-height: 1.6; background: #fbeeec; border: 1px solid rgba(179,38,30,0.3); color: #8c1d18; }
.form-alert.show { display: block; }
.success { text-align: center; padding: 2rem 0; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 1.5rem; border: 1px solid var(--rose-500); border-radius: 50%; display: grid; place-items: center; color: var(--wine-700); }
.success h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2.8rem; color: var(--wine-800); line-height: 1.1; margin-bottom: 0.6rem; }
.success p { color: var(--ink-70); max-width: 26rem; margin: 0 auto; }

/* ---------- FOOTER ---------- */
footer { background: var(--night); padding: 2.5rem 0; overflow: hidden; position: relative; }
.foot-row {
  margin: 0 var(--gutter);
  padding-top: 1.8rem; border-top: 1px solid rgba(230,199,156,0.14);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mute);
}
.foot-row a { color: var(--rose-200); text-decoration: none; border-bottom: 1px solid rgba(246,221,225,0.3); letter-spacing: 0.06em; text-transform: none; font-size: 0.9rem; }
.foot-row a:hover { color: var(--rose-400); border-color: var(--rose-400); }
.foot-admin { color: rgba(255,255,255,0.14) !important; border: 0 !important; font-size: 0.7rem !important; padding: 0.5rem; }
.foot-admin:hover { color: rgba(255,255,255,0.45) !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .story-grid, .sched-grid, .travel-grid, .rsvp-grid, .travel-head { grid-template-columns: 1fr; }
  .sched-aside { position: static; }
  .sched-aside .frame { display: none; }
  .story-media { max-width: 34rem; }
  .rsvp-aside .frame { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-actions { grid-column: 1 / -1; grid-row: 1; justify-content: stretch; margin-bottom: 0.6rem; }
  .hero-actions .btn { flex: 1; padding-left: 1rem; padding-right: 1rem; }
  .scroll-cue { display: none; }
  .hero-names .row-1, .hero-names .row-3 { transform: none; }
  .record-shade { background: linear-gradient(0deg, rgba(11,2,5,0.95) 0%, rgba(11,2,5,0.75) 48%, rgba(11,2,5,0.15) 80%); }
  .record-inner { justify-content: flex-end; padding-bottom: 4rem; }
  .record-media img, .record-media video { object-position: 72% 30%; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .cd-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .cd-number { font-size: clamp(2.3rem, 11vw, 3rem); }
  .meta-item { font-size: 0.58rem; letter-spacing: 0.18em; }
  .meta-item strong { font-size: 1.02rem; }
  .hero-names { font-size: clamp(4.2rem, 23vw, 7rem); line-height: 0.86; }
  .hero-names .amp { font-size: 0.5em; }
  .hero-inner { padding-top: 7rem; }
  .map text { font-size: 17px; }
  .map text.big { font-size: 28px; }
  .map text.small { font-size: 15px; }
  .map text.time { font-size: 20px; }
  .map .opt { display: none; }
  .story-media .ring { right: -0.6rem; top: -1.6rem; width: 6rem; height: 6rem; }
  .story-media .tag { left: 0; }
}
@media (max-height: 700px) and (min-width: 861px) {
  .hero-names { font-size: clamp(3.6rem, 11vw, 9rem); }
  .scroll-cue { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue::after { animation: none; }
  .drawer, .drawer a { transition-duration: 0.01s !important; }
}

/* ---------- PRINT ---------- */
@media print {
  .nav, .drawer, .grain, .loader, .hero-media, .hero-actions, .scroll-cue, .record, .band, .rsvp-card form, .foot-admin { display: none !important; }
  body, section, .details, .schedule, .rsvp, footer { background: #fff !important; color: #000 !important; }
  .hero { height: auto; min-height: 0; background: #fff; }
  .display, .hero-names, .statement, .panel h3, .tl-name { color: #000 !important; }
}
