:root {
  --vvh: 1vh;
  --svh: 1svh;
  --espresso: #2c1810;
  --espresso-deep: #1a0f0a;
  --espresso-mid: #3d2418;
  --espresso-light: #5c3a28;
  --cream: #f5efe6;
  --ivory: #faf6f0;
  --gold: #c4a574;
  --gold-soft: #d4b896;
  --gold-dim: rgba(196, 165, 116, 0.45);
  --ink: #1a0f0a;
  --muted: rgba(245, 239, 230, 0.65);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --letterbox: clamp(28px, 6vh, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cream);
  background: var(--espresso-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; color: var(--gold); margin-bottom: 0.4em; font-weight: 500; }
.amp { font-style: italic; font-weight: 300; color: var(--gold); padding: 0 0.15em; }

/* Overlays */
.letterbox {
  position: fixed; left: 0; right: 0; height: var(--letterbox);
  background: #000; z-index: 9000; pointer-events: none;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.film-grain {
  position: fixed; inset: 0; z-index: 8000; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(2) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, -1%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 7990; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(26,15,10,0.55) 100%);
}

/* Mute + now playing */
.mute-btn {
  position: fixed; top: calc(var(--letterbox) + 14px); right: 18px; z-index: 9500;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(44, 24, 16, 0.7); border: 1px solid var(--gold-dim);
  color: var(--cream); backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s;
}
.mute-btn:hover { background: rgba(61, 36, 24, 0.9); transform: scale(1.05); }
.mute-btn[aria-pressed="true"] .icon-sound { display: none; }
.mute-btn[aria-pressed="true"] .icon-mute { display: block !important; }

.now-playing {
  position: fixed; top: calc(var(--letterbox) + 22px); right: 70px; z-index: 9500;
  font-family: var(--serif); font-style: italic; font-size: 0.85rem;
  color: var(--gold-soft); letter-spacing: 0.04em;
  background: rgba(26,15,10,0.55); padding: 0.45em 0.9em; border-radius: 999px;
  border: 1px solid var(--gold-dim); backdrop-filter: blur(8px);
  animation: fadeInCredit 1.2s var(--ease) both;
  max-width: min(60vw, 280px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes fadeInCredit { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .now-playing { top: calc(var(--letterbox) + 64px); right: 18px; left: 18px; max-width: none; text-align: center; }
}

/* Ken Burns */
.ken-burns, .panel-media, .scene-bg, .enter-bg, .strip-frame {
  background-image: var(--kb-img);
  background-size: cover;
  background-position: center;
}
.ken-burns {
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
.ken-burns.kb-alt { animation-name: kenBurnsAlt; animation-duration: 32s; }
.ken-burns.kb-slow { animation-duration: 40s; }
@keyframes kenBurns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.18) translate(-2%, 1.5%); }
}
@keyframes kenBurnsAlt {
  from { transform: scale(1.12) translate(1%, -1%); }
  to { transform: scale(1.05) translate(-1.5%, 2%); }
}

/* Enter splash */
.enter-splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center; text-align: center;
  background: var(--espresso-deep);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.enter-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.enter-bg { position: absolute; inset: -5%; }
.enter-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,15,10,0.75) 0%, rgba(44,24,16,0.55) 45%, rgba(26,15,10,0.85) 100%);
}
.enter-content { position: relative; z-index: 1; padding: 2rem; max-width: 40rem; }
.enter-eyebrow, .section-eyebrow {
  font-family: var(--sans); font-weight: 300; font-size: 0.75rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-eyebrow.light { color: var(--gold-soft); }
.enter-names, .credit-names {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  color: var(--ivory); margin-bottom: 0.35em;
}
.enter-family { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-soft); }
.enter-rule {
  width: 64px; height: 1px; background: var(--gold); margin: 1.4rem auto;
  opacity: 0.7;
}
.enter-date { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; color: var(--cream); margin-bottom: 0.55rem; }

.enter-days {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  margin: -1.6rem 0 2.2rem;
  opacity: 0.95;
}


.enter-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.4rem; min-width: 180px;
  border: 1px solid var(--gold); color: var(--ivory);
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: rgba(44,24,16,0.4);
  transition: background 0.4s, color 0.4s, transform 0.3s;
}
.enter-btn:hover, .enter-btn:focus-visible {
  background: var(--gold); color: var(--espresso-deep); outline: none;
}
.enter-btn.solid { background: var(--gold); color: var(--espresso-deep); border: none; opacity: 0.55; cursor: not-allowed; }
.enter-btn-ring {
  position: absolute; inset: -8px; border: 1px solid var(--gold-dim); opacity: 0.5;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.fade-up { opacity: 0; animation: fadeUp 1.1s var(--ease) forwards; }
.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.65s; }
.delay-4 { animation-delay: 0.85s; }
.delay-5 { animation-delay: 1.1s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Site */
.site { position: relative; z-index: 1; }
.site[hidden], [hidden] { display: none !important; }

.scene {
  position: relative; min-height: 100vh;
  padding: calc(var(--letterbox) + 3rem) 1.5rem calc(var(--letterbox) + 4rem);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.scene-bg {
  position: absolute; inset: -8%; z-index: 0;
}
.scene-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,15,10,0.55), rgba(26,15,10,0.72));
}
.scene-shade.deep {
  background: linear-gradient(180deg, rgba(26,15,10,0.7), rgba(26,15,10,0.88));
}

/* Opening */
.opening-scene { text-align: center; }
.title-card { position: relative; z-index: 2; max-width: 42rem; margin: 0 auto; }
.credit-line {
  font-family: var(--serif); font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--cream); margin: 0.55em 0; opacity: 0;
  transform: translateY(12px); transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.credit-line.italic { font-style: italic; color: var(--gold-soft); }
.credit-line.gold { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; font-family: var(--sans); }
.credit-line.days-hero {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem) !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--gold-soft) !important;
  margin-top: 0.85rem !important;
}
.credit-line.small { font-size: 1rem; }
.credit-line.muted { opacity: 0.55 !important; letter-spacing: 0.4em; text-transform: uppercase; font-size: 0.75rem; font-family: var(--sans); }
.credit-line.is-on, .credit-names.is-on { opacity: 1; transform: none; }
.credit-names {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  margin: 0.6em 0 0.4em;
}

.scroll-hint {
  position: absolute; bottom: calc(var(--letterbox) + 1.5rem); left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft);
}
.scroll-arrow {
  width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* Story */
.story-film {
  background: var(--espresso);
  padding: calc(var(--letterbox) + 3rem) 0 calc(var(--letterbox) + 2rem);
  position: relative;
}
.story-intro {
  text-align: center;
  width: min(720px, 92%);
  margin: 0 auto 4rem;
}
.story-intro h2 { color: var(--ivory); margin-bottom: 0.4em; }
.story-intro-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--gold-soft);
}

.story-chapter {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: min(1100px, 94%);
  margin: 0 auto 5.5rem;
  position: relative;
}
.story-chapter.reverse { direction: rtl; }
.story-chapter.reverse > * { direction: ltr; }

/* Chapter pin wraps content — keep photo/copy grid on the stage */
.story-chapter.has-chapter-pin {
  display: block;
  width: min(1100px, 94%);
  margin: 0 auto 5.5rem;
}
.story-chapter.has-chapter-pin .chapter-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.story-chapter.has-chapter-pin.reverse .chapter-stage { direction: rtl; }
.story-chapter.has-chapter-pin.reverse .chapter-stage > * { direction: ltr; }
.story-finale.has-chapter-pin {
  display: block;
  min-height: 0;
}
.story-finale.has-chapter-pin .chapter-stage {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.scene.has-chapter-pin {
  /* scenes already flex; pin then stage */
  display: block;
  padding: 0;
  min-height: 0;
}
.scene.has-chapter-pin .chapter-stage {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  padding: calc(var(--letterbox) + 3rem) 1.5rem calc(var(--letterbox) + 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.save-date-scene.has-chapter-pin .chapter-stage {
  min-height: auto;
  padding: calc(var(--letterbox) + 4rem) 1.5rem calc(var(--letterbox) + 4.5rem);
}
.faq-scene.has-chapter-pin .chapter-stage,
.details-scene.has-chapter-pin .chapter-stage,
.travel-scene.has-chapter-pin .chapter-stage {
  background: inherit;
}

.chapter-media {
  min-height: clamp(340px, 58vh, 640px);
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}
.chapter-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,165,116,0.14), transparent 42%);
  pointer-events: none;
}
.chapter-copy { padding: 0.4rem 0; }
.chapter-roman {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.chapter-copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  color: var(--ivory);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.chapter-copy p {
  color: var(--muted);
  margin-bottom: 0.95rem;
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  max-width: 38ch;
}

.story-chapter.sunset-grade .chapter-media {
  filter: sepia(0.22) saturate(1.15) contrast(1.04);
}
.sunset-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(232, 140, 90, 0.18), transparent 55%),
    linear-gradient(120deg, rgba(180, 70, 80, 0.12), transparent 50%),
    linear-gradient(180deg, transparent 40%, rgba(44, 24, 16, 0.35));
  mix-blend-mode: soft-light;
}
.sunset-wash.strong {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 170, 110, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(190, 70, 90, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(26,15,10,0.25), rgba(26,15,10,0.7));
  mix-blend-mode: screen;
  opacity: 0.85;
}
.story-chapter.sunset-grade .chapter-copy,
.story-chapter.sunset-grade .chapter-media { position: relative; z-index: 2; }

.story-finale {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  margin: 2rem 0 4rem;
  overflow: hidden;
}
.finale-bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
  filter: sepia(0.25) contrast(1.05);
}
.finale-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,15,10,0.55), rgba(26,15,10,0.82));
}
.story-finale .sunset-wash { z-index: 2; }
.finale-line {
  position: relative;
  z-index: 3;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  color: var(--ivory);
  max-width: 16ch;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 12px 40px rgba(0,0,0,0.55);
  padding: 2rem 1.5rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 1.25s var(--ease), transform 1.25s var(--ease);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Chapter stage already fades content — avoid a second snap */
.has-chapter-pin .chapter-stage > .reveal-on-scroll,
.has-chapter-pin.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}
.story-finale.reveal-on-scroll .finale-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s 0.25s var(--ease), transform 1.4s 0.25s var(--ease);
}
.story-finale.reveal-on-scroll.is-visible .finale-line {
  opacity: 1;
  transform: none;
}

.story-strip { margin-top: 1rem; margin-bottom: 2rem; }

.panel-media {
  min-height: clamp(320px, 55vh, 620px); border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative; overflow: hidden;
}
.panel-media.tall { min-height: clamp(380px, 60vh, 700px); }
.panel-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,165,116,0.12), transparent 40%);
  pointer-events: none;
}

.placeholder-note {
  display: inline-block; font-size: 0.72rem !important; font-family: var(--sans) !important;
  letter-spacing: 0.06em; text-transform: uppercase; color: #e8b86d !important;
  background: rgba(232, 184, 109, 0.12); border: 1px dashed rgba(232, 184, 109, 0.45);
  padding: 0.35em 0.65em; margin-bottom: 0.9rem !important; border-radius: 2px;
}
.placeholder-note.light { background: rgba(232,184,109,0.15); }

.film-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  width: min(1100px, 100%); margin: 0 auto; padding: 0 1.25rem 2rem; position: relative; z-index: 2;
}
.strip-frame {
  aspect-ratio: 3/4; border: 1px solid var(--gold-dim);
  box-shadow: inset 0 0 0 6px var(--espresso-deep);
}

/* Countdown */
.countdown-inner, .schedule-inner, .rsvp-inner, .credits-roll, .save-date-inner {
  position: relative; z-index: 2; text-align: center; max-width: 48rem; margin: 0 auto;
}
.countdown-hero {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.cd-days-focal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem 1.5rem;
  min-width: min(90vw, 28rem);
  background: rgba(26,15,10,0.4);
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.cd-days-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5.5rem, 18vw, 10.5rem);
  line-height: 0.9;
  color: var(--ivory);
  letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.cd-days-label {
  margin-top: 0.55rem;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 300;
}
.cd-days-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--gold-soft);
  margin: 0.85rem 0 1.4rem;
  letter-spacing: 0.04em;
}
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem;
}
.countdown-grid.compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0;
  width: min(100%, 28rem);
}
.cd-unit {
  background: rgba(26,15,10,0.45); border: 1px solid var(--gold-dim);
  padding: 1.4rem 0.5rem; backdrop-filter: blur(6px);
}
.countdown-grid.compact .cd-unit {
  padding: 0.85rem 0.4rem;
}
.cd-num {
  display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--ivory); line-height: 1;
}
.countdown-grid.compact .cd-num {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}
.cd-label {
  display: block; margin-top: 0.6rem; font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.countdown-grid.compact .cd-label {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

/* Details */
.details-scene { background: var(--espresso-mid); }
.details-grid, .travel-grid {
  position: relative; z-index: 2; width: min(1100px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.details-copy, .travel-copy { color: var(--muted); }
.detail-block { margin: 1.8rem 0; }
.detail-block p { margin-bottom: 0.4rem; }
.detail-block .meta { color: var(--gold-soft); letter-spacing: 0.08em; margin-top: 0.6rem; }
.text-link { display: inline-block; margin-top: 0.8rem; font-size: 0.9rem; letter-spacing: 0.08em; }
.map-card {
  margin-top: 1rem; border: 1px solid var(--gold-dim); overflow: hidden; border-radius: 2px;
  aspect-ratio: 16/10; background: var(--espresso-deep);
}
.map-card iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.35) saturate(0.7) contrast(1.05); }

/* Schedule */
.timeline {
  list-style: none; margin: 2rem auto 0; max-width: 28rem; text-align: left;
}
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--gold-dim);
  align-items: baseline;
}
.timeline .time {
  font-family: var(--serif); color: var(--gold); font-style: italic; font-size: 1.15rem;
}
.timeline .event { color: var(--cream); font-size: 1.1rem; }

/* Travel */
.travel-scene { background: var(--espresso); }
.travel-media { display: grid; gap: 1rem; }
.travel-media .panel-media { min-height: 260px; }

/* RSVP */
.rsvp-form {
  display: grid; gap: 1rem; text-align: left; margin: 2rem auto 1rem; max-width: 26rem;
}
.rsvp-form label { display: grid; gap: 0.4rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--gold-dim);
  background: rgba(26,15,10,0.5); color: var(--cream); font: inherit;
  border-radius: 2px;
}
.rsvp-note { color: var(--muted); max-width: 36ch; margin: 0 auto 0.5rem; }
.fine-print { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }


.schedule-venue {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  margin: -0.4rem 0 1.5rem;
  font-size: 1.05rem;
}
.hotel-list {
  list-style: none;
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
}
.hotel-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gold-dim);
}
.hotel-list li:last-child { border-bottom: none; }
.hotel-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.25rem; }
.hotel-list strong a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.hotel-list strong a:hover { color: var(--gold); }
.hotel-list span { display: block; color: var(--muted); font-size: 0.92rem; }

.gifts-scene { text-align: center; }
.gifts-inner {
  position: relative; z-index: 2; max-width: 40rem; margin: 0 auto;
}
.gifts-lead {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 34ch;
}
.gifts-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 auto 1.25rem;
}
.gift-card {
  background: rgba(26,15,10,0.5);
  border: 1px solid var(--gold-dim);
  padding: 1.5rem 1rem;
  backdrop-filter: blur(8px);
}
.gift-card h3 { margin-bottom: 0.6rem; }
.gift-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 0.35rem;
}
.gift-handle { font-size: 0.95rem; }
.gift-handle a { color: var(--gold-soft); }

@media (max-width: 560px) {
  .gifts-cards { grid-template-columns: 1fr; }
}


/* Save the Date */
.save-date-scene {
  background: var(--espresso-deep);
  min-height: auto;
  padding-top: calc(var(--letterbox) + 4rem);
  padding-bottom: calc(var(--letterbox) + 4.5rem);
}
.save-date-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.save-date-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto 0.55rem;
  max-width: 34ch;
}
.save-date-venue {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  background: rgba(44, 24, 16, 0.45);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.35s, color 0.35s, transform 0.3s;
}
.cal-btn:hover, .cal-btn:focus-visible {
  background: var(--gold);
  color: var(--espresso-deep);
  outline: none;
}
.rsvp-reminder {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.45;
}

/* FAQ */
.faq-scene { background: var(--espresso-mid); }
.faq-inner { position: relative; z-index: 2; width: min(900px, 100%); margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--gold-dim); padding: 1.1rem 0;
}
.faq-list summary {
  font-family: var(--serif); font-size: 1.35rem; cursor: pointer; list-style: none;
  color: var(--ivory); display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font-weight: 300; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin-top: 0.7rem; max-width: 50ch; }

.faq-list details p a { color: var(--gold); }
.faq-list details[open] summary { color: var(--gold-soft); }
.faq-list details p {
  animation: faqOpen 0.45s var(--ease) both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 3rem;
}
.faq-gallery .panel-media { min-height: 220px; aspect-ratio: 3/4; }

/* Credits */
.credits-scene { min-height: 100vh; }
/* legacy creditRise replaced by rolling credits */

/* Responsive */
@media (max-width: 860px) {
  .story-chapter, .story-chapter.reverse,
  .story-chapter.has-chapter-pin .chapter-stage,
  .story-chapter.has-chapter-pin.reverse .chapter-stage,
  .details-grid, .travel-grid { grid-template-columns: 1fr; direction: ltr; }
  .chapter-media { min-height: 280px; }
  .film-strip, .faq-gallery { grid-template-columns: 1fr 1fr; }
  .film-strip .strip-frame:last-child { display: none; }
  .countdown-grid:not(.compact) { grid-template-columns: repeat(2, 1fr); }
  .countdown-grid.compact { width: 100%; }
  .panel-media { min-height: 280px; }
}

@media (max-width: 520px) {
  .film-strip, .faq-gallery { grid-template-columns: 1fr; }
  .letterbox { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns, .ken-burns.kb-alt, .ken-burns.kb-slow,
  .film-grain, .enter-btn-ring, .scroll-arrow { animation: none !important; }
  .fade-up { opacity: 1; animation: none; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .story-finale.reveal-on-scroll .finale-line { opacity: 1; transform: none; transition: none; }
  .faq-list details p { animation: none; }
}


/* ===== Cinematic grade & overlays ===== */
.color-grade {
  position: fixed; inset: 0; z-index: 7985; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(60, 28, 14, 0.18), transparent 35%, rgba(26, 12, 8, 0.28)),
    radial-gradient(ellipse at 30% 20%, rgba(196, 120, 60, 0.10), transparent 50%);
  mix-blend-mode: soft-light;
  opacity: calc(0.85 + var(--audio-pulse, 0) * 0.15);
  transition: opacity 0.12s linear;
}
.vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(26,15,10,0.62) 100%);
  opacity: calc(0.9 + var(--audio-pulse, 0) * 0.1);
}
.film-grain {
  opacity: calc(0.055 + var(--audio-pulse, 0) * 0.045);
  transform: scale(1.02);
}
.light-leak {
  position: fixed; inset: 0; z-index: 7490; pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at var(--leak-x, 18%) var(--leak-y, 28%), rgba(232, 160, 90, 0.32), transparent 42%),
    radial-gradient(ellipse at 85% 70%, rgba(180, 70, 50, 0.16), transparent 40%);
  mix-blend-mode: screen;
  transition: opacity 0.7s ease;
  will-change: opacity;
}
.light-leak.is-on { opacity: 1; }
/* blackout overlay removed — scroll-linked veils handle fades */

/* Opening letter-by-letter black sequence */
.opening-blackout {
  position: fixed; inset: 0; z-index: 11000;
  display: grid; place-items: center;
  background: #000;
  text-align: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.opening-blackout[hidden] { display: none !important; }
.opening-blackout.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.ob-inner { padding: 2rem; max-width: 90vw; }
.ob-names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.ob-names .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.ob-names .letter.is-on {
  opacity: 1;
  transform: none;
}
.ob-names .letter.space { width: 0.35em; }
.ob-names .letter.amp { color: var(--gold); font-style: italic; }
.ob-date {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.ob-date.is-on { opacity: 1; transform: none; }

/* Scroll-scrubbed sticky chapter pins (no flash toggles) */
.has-chapter-pin {
  --chapter-t: 0;
  position: relative;
}
.chapter-pin {
  /* scroll runway ~50svh — sticky veil crossfades across this range */
  height: 52svh;
  height: 52vh; /* fallback */
  position: relative;
  z-index: 5;
  pointer-events: none;
  margin: 0;
}
.chapter-veil {
  position: sticky;
  top: 0;
  height: 100svh;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: #000;
  opacity: calc(1 - var(--chapter-t, 0));
  transform: translate3d(0, calc((1 - var(--chapter-t, 0)) * -6px), 0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.chapter-veil .chapter-card-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: calc(0.35 + (1 - var(--chapter-t, 0)) * 0.65);
  transform: translate3d(0, calc(var(--chapter-t, 0) * -10px), 0);
}
.chapter-veil .chapter-card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--ivory);
  max-width: 14ch;
  margin: 0 auto;
  line-height: 1.2;
  transform: translate3d(0, calc(var(--chapter-t, 0) * -14px), 0);
}
.chapter-stage {
  position: relative;
  z-index: 1;
  opacity: clamp(0.001, var(--chapter-t, 0), 1);
  transform: translate3d(0, calc((1 - var(--chapter-t, 0)) * 28px), 0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Once mostly revealed, stop promoting will-change to save iOS memory */
.has-chapter-pin.is-settled .chapter-veil,
.has-chapter-pin.is-settled .chapter-stage {
  will-change: auto;
}

/* Soft focus: desktop may tint; iOS/mobile never animates filter blur */
.focus-pull {
  /* no per-frame blur — Ken Burns + translate-friendly */
  filter: saturate(1.06) contrast(1.05);
}
.focus-soft {
  position: absolute;
  inset: -2%;
  background-image: var(--kb-img);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.05);
  opacity: var(--soft-op, 0);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: opacity;
  transition: none;
}
@supports (-webkit-touch-callout: none) {
  /* iOS: skip expensive live blur layer entirely */
  .focus-soft { display: none !important; }
  .focus-pull { filter: none; }
}


/* Deeper amber wash on espresso scenes */
.details-scene, .faq-scene, .save-date-scene, .travel-scene {
  background-image: radial-gradient(ellipse at top, rgba(92, 48, 28, 0.35), transparent 55%);
}
.story-film {
  background-image: linear-gradient(180deg, rgba(44,24,16,0.4), transparent 20%, rgba(26,15,10,0.5));
}

/* Rolling end credits */
.credits-scene {
  min-height: 100vh;
  overflow: hidden;
}
.credits-mask {
  position: relative;
  z-index: 2;
  height: min(78vh, 640px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  width: min(40rem, 100%);
  margin: 0 auto;
}
.credits-roll {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  text-align: center;
  padding: 2rem 1rem 40vh;
  will-change: transform;
}
.credits-roll.is-playing {
  animation: creditsScroll 28s linear forwards;
}
@keyframes creditsScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-100% - 78vh), 0); }
}
.credits-roll .credit-line,
.credits-roll .credit-names,
.credits-roll .credit-role {
  opacity: 1;
  transform: none;
  animation: none;
}
.credit-role {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.6rem 0 0.45rem;
}
.credits-roll .credit-names {
  margin: 0.2em 0 0.5em;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}
.credits-roll .coming {
  margin-top: 1.5rem;
  letter-spacing: 0.18em;
}
.credits-roll .amp-line {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  margin: 0.15rem 0;
}
.credits-roll .enter-rule { margin: 1.6rem auto; }

@media (max-width: 860px) {
  .focus-pull { filter: none; }
  .focus-soft { display: none !important; }
  .chapter-pin { height: 48svh; height: 48vh; }
  .credits-roll.is-playing { animation-duration: 22s; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-blackout, .light-leak { transition: none !important; }
  .ob-names .letter, .ob-date { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chapter-pin { height: 0 !important; overflow: hidden; }
  .chapter-veil { opacity: 0 !important; }
  .chapter-stage { opacity: 1 !important; transform: none !important; }
  .focus-pull, .focus-soft { filter: none !important; opacity: 0 !important; }
  .credits-roll.is-playing { animation: none !important; top: 10%; position: relative; }
  .credits-mask { height: auto; mask-image: none; -webkit-mask-image: none; overflow: visible; }
  .color-grade, .film-grain, .vignette { opacity: 0.7; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
}
