/* ============================================================= */
/*  Mark & Skye — Tuscany 2027 (Save the Date)                    */
/*  Photo-led hero, light & airy below, garnet accents           */
/* ============================================================= */

:root {
  /* Palette */
  --garnet:      #6e1423;   /* primary garnet red */
  --garnet-deep: #4a0e18;
  --parchment:   #f6efe3;   /* light warm background */
  --parchment-2: #efe6d5;   /* slightly deeper cream panel */
  --ink:         #2a1a16;   /* warm dark text (on light bg) */
  --ink-soft:    #6b574c;   /* muted brown text */
  --cream:       #f6efe3;   /* light text on dark */
  --night:       #2e0a12;   /* deep-garnet dark surface (was near-black) */
  /* accent: rich champagne gold */
  --gold:        #9c7f3e;   /* deeper champagne — accent on light backgrounds */
  --gold-light:  #d3b87f;   /* rich champagne — accent on dark/garnet backgrounds */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--garnet-deep);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.amp { font-style: italic; color: var(--gold-light); font-weight: 400; }
.muted { color: var(--ink-soft); font-size: 0.85em; font-style: italic; }
.center { text-align: center; }

/* Shared labels & type --------------------------------------- */
.kicker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.kicker--light { color: var(--gold-light); }

.title {
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}
.title--light { color: var(--cream); }

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 auto 1.4rem;
  max-width: 60ch;
}
.lede--light { color: rgba(246,239,227,0.86); }
.fineprint {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 2.4rem;
}

/* Bands (sections) ------------------------------------------- */
.band { padding: clamp(4rem, 9vw, 7.5rem) 1.5rem; }
.band--light, .band--cream, .band--garnet {
  background:
    radial-gradient(120% 100% at 50% 0%, var(--garnet) 0%, var(--garnet-deep) 100%);
  color: var(--cream);
}
/* alternate shade for rhythm */
.band--cream {
  background:
    radial-gradient(120% 100% at 50% 100%, #5a1020 0%, var(--garnet-deep) 100%);
}
/* light ivory section (gallery) — a calm break from the garnet */
.band--ivory { background: #f4ede1; color: var(--ink); }
.band--ivory .title { color: var(--ink); }
.band--ivory .lede { color: var(--ink-soft); }
.band--ivory .kicker { color: var(--gold); }
/* text on the garnet bands reads light */
.band--light .title, .band--cream .title, .band--garnet .title { color: var(--cream); }
.band--light .lede, .band--cream .lede, .band--garnet .lede { color: rgba(246,239,227,0.82); }
.band--light .kicker, .band--cream .kicker, .band--garnet .kicker { color: var(--gold-light); }
.band--light .fineprint, .band--cream .fineprint, .band--garnet .fineprint { color: rgba(246,239,227,0.7); }
.band--light .muted, .band--cream .muted, .band--garnet .muted { color: rgba(246,239,227,0.6); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 680px; }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid var(--garnet);
  background: var(--garnet);
  color: var(--cream);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, transform .15s ease;
}
.btn:hover { background: var(--garnet-deep); border-color: var(--garnet-deep); }
.btn:active { transform: translateY(1px); }

/* ============================================================= */
/*  PASSWORD GATE                                                 */
/* ============================================================= */
.gate {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% -10%, #7e1a2b 0%, transparent 55%),
    radial-gradient(120% 95% at 50% 115%, #4a0e18 0%, transparent 55%),
    var(--night);
  box-shadow: inset 0 0 240px 50px rgba(0,0,0,0.5);  /* vignette for depth */
  transition: opacity 1s ease, visibility 1s ease;
}
/* static soft glow for depth */
.gate::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 40% at 32% 30%, color-mix(in srgb, var(--gold-light) 12%, transparent), transparent 70%),
    radial-gradient(46% 46% at 70% 64%, rgba(110,20,35,0.45), transparent 72%);
}
/* fine static grain for texture */
.gate::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gate__frame {
  position: absolute; inset: clamp(14px, 2.4vw, 30px); z-index: 2; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold-light) 38%, transparent);
}

.gate__inner { position: relative; z-index: 3; max-width: 620px; will-change: transform; }
.gate__kicker { color: var(--gold-light); }

/* M & S monogram with hairlines */
.gate__monogram { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 1rem 0 0; }
.gate__rule { height: 1px; width: clamp(28px, 9vw, 64px); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-light) 70%, transparent)); }
.gate__monogram .gate__rule:last-child { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--gold-light) 70%, transparent)); }
.gate__mletters { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.34em; color: var(--gold-light); }
.gate__mletters em { font-style: italic; }

.gate__title {
  font-weight: 300; font-size: clamp(3rem, 13vw, 7rem); line-height: 1; margin: 0;
  display: flex; gap: 0.28em; align-items: baseline; justify-content: center; flex-wrap: wrap;
}
.gate__word { display: inline-block; color: var(--cream); transition: text-shadow .5s ease; }
.gate__amp { font-style: italic; color: var(--gold-light); transition: text-shadow .5s ease; }
.gate__title { cursor: default; }
.gate__title:hover .gate__word,
.gate__title:hover .gate__amp { text-shadow: 0 0 26px color-mix(in srgb, var(--gold-light) 55%, transparent); }

.gate__sub {
  font-family: var(--sans); letter-spacing: 0.26em; text-transform: uppercase;
  font-size: 0.74rem; color: rgba(246,239,227,0.72); margin: 1.1rem 0 0;
}

/* quiet fade-in (no movement) */
.gate__kicker, .gate__monogram, .gate__title, .gate__sub, .gate__form {
  opacity: 0; animation: gateFade 1.1s ease forwards;
}
.gate__monogram { animation-delay: .14s; }
.gate__title    { animation-delay: .26s; }
.gate__sub      { animation-delay: .4s; }
.gate__form     { animation-delay: .55s; }
@keyframes gateFade { to { opacity: 1; } }

/* password field — minimalist underline */
.gate__form { margin-top: 2.6rem; }
.gate__hint {
  display: block; font-family: var(--sans); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(246,239,227,0.45); margin-top: 1.4rem;
}
.gate__field { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.gate__field.is-shaking { animation: gateShake .5s; }
@keyframes gateShake {
  10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); }
  30%,50%,70% { transform: translateX(-7px); } 40%,60% { transform: translateX(7px); }
}
.gate__field input {
  background: transparent; border: none; border-bottom: 1px solid color-mix(in srgb, var(--gold-light) 50%, transparent);
  color: var(--cream); padding: 0.7rem 0.4rem; min-width: 230px; text-align: center;
  font-family: var(--sans); font-size: 1.02rem; letter-spacing: 0.18em;
  transition: border-color .3s ease;
}
.gate__field input::placeholder { color: rgba(246,239,227,0.4); letter-spacing: 0.12em; }
.gate__field input:focus { outline: none; border-color: var(--gold-light); }
.gate__enter {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: transparent; border: 1px solid var(--gold-light); color: var(--gold-light);
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.72rem 1.2rem; transition: background .3s ease, color .3s ease;
}
.gate__enter:hover { background: var(--gold-light); color: var(--ink); }
.gate__enter svg { display: block; transition: transform .3s cubic-bezier(.16,.84,.24,1); }
.gate__enter:hover svg { transform: translateX(5px); }
.btn--solid { background: var(--cream); color: var(--garnet); border-color: var(--cream); }
.btn--solid:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
.gate__error { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: #f3b0b0; margin-top: 1.3rem; }

/* solid button on the garnet bands = cream, fills on hover */
.band--light .btn--solid, .band--cream .btn--solid, .band--garnet .btn--solid {
  background: var(--cream); color: var(--garnet); border-color: var(--cream);
}
.band--light .btn--solid:hover, .band--cream .btn--solid:hover, .band--garnet .btn--solid:hover {
  background: transparent; color: var(--cream); border-color: var(--cream);
}

/* ============================================================= */
/*  SITE                                                          */
/* ============================================================= */
.site { opacity: 0; transition: opacity 1.2s ease 0.2s; }
.site.is-visible { opacity: 1; }

/* HERO -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 1.5rem 4rem;
  color: var(--cream);
  /* Fallback gradient shows until you add hero.jpg. With hero.jpg present,
     the photo sits on top of the gradient. */
  background:
    linear-gradient(180deg, rgba(42,15,20,0.25), rgba(42,15,20,0.55)),
    image-set(url("hero.jpg") 1x),
    radial-gradient(120% 100% at 50% 0%, var(--garnet) 0%, var(--garnet-deep) 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(42,15,20,0.30) 0%, rgba(42,15,20,0.60) 100%);
}
.hero__content { position: relative; z-index: 3; }
.hero__names {
  font-weight: 300; font-size: clamp(3.4rem, 14vw, 8.5rem);
  line-height: 0.95; margin: 0.4rem 0; letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__detail {
  font-style: italic; font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(246,239,227,0.92); margin: 0 0 1.4rem;
}
.hero__meta {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(246,239,227,0.9);
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.hero__meta .dot { color: var(--gold-light); }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--cream); font-size: 1.4rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* COUNTDOWN --------------------------------------------------- */
.countdown { display: flex; gap: clamp(1.2rem, 5vw, 3rem); justify-content: center; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; }
.countdown__num {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 300; line-height: 1;
  color: var(--cream); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.countdown__label {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-light); margin-top: 0.55rem;
}

/* WEEKEND TEASER --------------------------------------------- */
.teaser { list-style: none; padding: 0; margin: 3rem auto 0; max-width: 760px; }
.teaser__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-areas: "date name" "date where";
  gap: 0 1.8rem;
  align-items: center;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(110,20,35,0.18);
  text-align: left;
}
.teaser__item:last-child { border-bottom: 1px solid rgba(110,20,35,0.18); }
.teaser__date {
  grid-area: date; font-size: 1.6rem; color: var(--garnet);
  font-style: italic; line-height: 1;
}
.teaser__name { grid-area: name; font-size: 1.7rem; font-weight: 500; }
.teaser__where { grid-area: where; color: var(--ink-soft); font-weight: 300; }

/* PHOTO + PLACEHOLDER SYSTEM --------------------------------- */
/* Missing images never show a broken icon — they fall back to a
   tasteful gradient with an "add your photo" hint (see script.js). */
.photo {
  position: relative; overflow: hidden; margin: 0;
  background:
    linear-gradient(135deg, rgba(110,20,35,0.45), rgba(46,10,18,0.6)),
    var(--night);
  border: 1px solid color-mix(in srgb, var(--gold-light) 18%, transparent);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo__ph {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.photo.is-empty img { display: none; }
.photo.is-empty .photo__ph { display: flex; }

/* OUR STORY — STICKY-PINNED SCROLLYTELLING ------------------- */
.story-pin { position: relative; background: var(--night); }
.story-pin__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.story-pin__label {
  position: absolute; top: 2rem; left: clamp(1.5rem, 5vw, 4rem); z-index: 5;
  margin: 0; font-family: var(--sans); font-size: 1rem;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-light);
}

/* scenes stack and cross-fade */
.scenes { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.scene.is-active { opacity: 1; }

.photo--scene { position: absolute; inset: 0; height: 100%; width: 100%; border: none; }
.photo--scene img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); transition: transform 7s ease-out;
}
.scene.is-active .photo--scene img { transform: scale(1); }
.photo--scene .photo__ph { color: var(--cream); }

.scene__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(46,10,18,0.78) 0%, rgba(46,10,18,0.25) 45%, transparent 75%),
    linear-gradient(0deg, rgba(46,10,18,0.55) 0%, transparent 45%);
}
.scene:nth-child(even) .scene__overlay {
  background:
    linear-gradient(270deg, rgba(46,10,18,0.78) 0%, rgba(46,10,18,0.25) 45%, transparent 75%),
    linear-gradient(0deg, rgba(46,10,18,0.55) 0%, transparent 45%);
}

/* big editorial text, alternating sides */
.scene__content {
  position: absolute; bottom: 14vh; left: clamp(1.5rem, 6vw, 6rem);
  max-width: min(620px, 80vw); z-index: 2; color: var(--cream); text-align: left;
}
.scene:nth-child(even) .scene__content {
  left: auto; right: clamp(1.5rem, 6vw, 6rem); text-align: right;
}
.scene__num {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.85;
  color: rgba(246,239,227,0.85); margin-bottom: 0.4rem;
}
.scene__year {
  display: block; font-family: var(--sans); font-size: 0.74rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.7rem;
}
.scene__name {
  font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 400; line-height: 1.02;
  margin: 0 0 1rem; letter-spacing: -0.015em; text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.scene__desc { font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 300; color: rgba(246,239,227,0.9); margin: 0; }

/* text rises in when its scene becomes active */
.scene__content > * { opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.1s ease; }
.scene.is-active .scene__content > * { opacity: 1; transform: none; }
.scene.is-active .scene__content > *:nth-child(2) { transition-delay: .12s; }
.scene.is-active .scene__content > *:nth-child(3) { transition-delay: .24s; }
.scene.is-active .scene__content > *:nth-child(4) { transition-delay: .36s; }

/* progress rail (the "snake") */
.story-pin__rail {
  position: absolute; right: clamp(1.2rem, 3vw, 2.4rem); top: 50%; transform: translateY(-50%);
  width: 2px; height: min(260px, 36vh); background: rgba(246,239,227,0.25); z-index: 4; border-radius: 2px;
}
.scene:nth-child(even) ~ .story-pin__rail { /* keep rail on right always */ }
.story-pin__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--gold-light), var(--garnet)); border-radius: 2px; }

/* the steps that create the scroll length (generated by JS) */
.story-pin__step { height: 100vh; height: 100svh; }

/* THE WEEKEND — EDITORIAL DAY COVERS ------------------------- */
.days {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 3.2rem;
}
.day {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--night);
}
.day .photo--day { position: absolute; inset: 0; height: 100%; width: 100%; border: none; }
.day .photo--day img { transition: transform 1.1s cubic-bezier(.16,.84,.24,1); transform: scale(1); }
.day:hover .photo--day img { transform: scale(1.06); }
.photo--day .photo__ph { color: var(--cream); }

.day__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(46,10,18,0.82) 0%, rgba(46,10,18,0.18) 55%, rgba(46,10,18,0.30) 100%);
}
.day__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2rem 1.6rem 2.2rem; text-align: center; color: var(--cream);
}
.day__rn {
  display: block; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 2.4rem; line-height: 1; color: var(--gold-light); margin-bottom: 0.6rem;
}
.day__date {
  display: block; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246,239,227,0.85); margin-bottom: 0.5rem;
}
.day__name { font-size: 2rem; font-weight: 400; margin: 0 0 0.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.day__where { color: var(--gold-light); font-style: italic; margin: 0 0 0.9rem; }
/* description slides up on hover (desktop); always visible on touch */
.day__desc {
  font-size: 1rem; font-weight: 300; color: rgba(246,239,227,0.92); margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
}
.day:hover .day__desc, .day:focus-within .day__desc { max-height: 8rem; opacity: 1; }

/* INTEREST METER / RSVP -------------------------------------- */
.rsvp { margin-top: 2.6rem; display: grid; gap: 1.5rem; text-align: left; }
.field { display: grid; gap: 0.55rem; }
.field[hidden] { display: none; }   /* let the hidden attribute win over display:grid */
.field label, .field legend {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0;
}
.field input, .field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid color-mix(in srgb, var(--cream) 28%, transparent);
  color: var(--cream); padding: 0.9rem 1.1rem;
  font-family: var(--serif); font-size: 1.1rem; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246,239,227,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-light); }
.field--attending { border: none; padding: 0; margin: 0; }
.toggle { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }
.toggle__opt {
  position: relative; flex: 1; min-width: 150px;
  border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.1rem; text-align: center; cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
  font-size: 1.05rem;
}
.toggle__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle__opt:has(input:checked) {
  border-color: var(--garnet); background: var(--garnet); color: var(--cream);
}
.rsvp__submit { justify-self: center; margin-top: 0.6rem; }
.rsvp__status {
  font-family: var(--sans); font-size: 0.85rem; min-height: 1.4em; text-align: center;
}
.rsvp__status.is-ok { color: var(--garnet); }
.rsvp__status.is-err { color: #b3261e; }

/* FOOTER ------------------------------------------------------ */
.footer {
  text-align: center; padding: 4.5rem 1.5rem;
  background: var(--night); color: var(--cream);
}
.footer__names { font-size: 2.2rem; font-weight: 300; margin: 0 0 0.6rem; }
.footer__detail {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(246,239,227,0.7); margin: 0 0 1.2rem;
}
.footer__small { font-style: italic; color: rgba(246,239,227,0.8); margin: 0; }

/* SCROLL REVEAL ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  html { scroll-behavior: auto; }
  .gate::before { animation: none; }
  .gate__word { animation: none; background: none; -webkit-text-fill-color: var(--cream); color: var(--cream); }
  .gate__kicker, .gate__monogram, .gate__title, .gate__sub, .gate__form {
    opacity: 1; transform: none; animation: none;
  }
}

/* RESPONSIVE -------------------------------------------------- */
/* WINE GLASS CURSOR ------------------------------------------ */
.wine-cursor {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  width: 30px; height: auto; opacity: 0; transition: opacity .35s ease;
  will-change: transform; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
body.has-wine.wine-ready .wine-cursor { opacity: 1; }
body.has-wine { cursor: none; }
body.has-wine a, body.has-wine button, body.has-wine label,
body.has-wine .photo, body.has-wine .toggle__opt, body.has-wine summary { cursor: none; }
body.has-wine input, body.has-wine textarea { cursor: text; }  /* keep typing legible */

/* SR-ONLY ----------------------------------------------------- */
.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;
}

/* PETALS (easter eggs + RSVP yes) ---------------------------- */
.petal {
  position: fixed; top: -24px; z-index: 9990; pointer-events: none;
  will-change: transform;
}
.petal svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }

/* WHERE — STYLIZED MAP -------------------------------------- */
.map { max-width: 880px; margin: 3rem auto 0; padding: 0 1.5rem; }
.map__svg { width: 100%; height: auto; display: block; }
.map__bg { fill: var(--night); stroke: color-mix(in srgb, var(--gold-light) 30%, transparent); stroke-width: 1.5; }
.map__topo path { fill: none; stroke: rgba(246,239,227,0.16); stroke-width: 1.4; }
.map__route {
  fill: none; stroke: var(--gold-light); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 6 11; animation: ants 6s linear infinite;
}
@keyframes ants { to { stroke-dashoffset: -170; } }
.map__city circle { fill: var(--cream); }
.map__city text, .map__pin .map__label { text-anchor: middle; }
.map__city text {
  font-family: var(--sans); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; fill: rgba(246,239,227,0.7);
}
.map__pinbody { fill: var(--gold-light); }
.map__pinhole { fill: var(--night); }
.map__pulse { fill: color-mix(in srgb, var(--gold-light) 32%, transparent); transform-box: fill-box; transform-origin: center;
  animation: mappulse 2.6s ease-out infinite; }
@keyframes mappulse { 0% { transform: scale(.5); opacity: .6; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
.map__label { font-family: var(--serif); font-style: italic; font-size: 21px; fill: var(--gold-light); }
.map__cta { margin-top: 2.4rem; }

/* CLOSING RSVP MOMENT --------------------------------------- */
.rsvp-final {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}
.rsvp-final__q { font-size: clamp(2.6rem, 7vw, 5rem); }
.rsvp-note {
  max-width: 540px; margin: 1.8rem auto 0; padding: 1rem 1.4rem;
  font-family: var(--sans); font-size: 0.92rem; line-height: 1.6;
  color: rgba(246,239,227,0.9);
  border: 1px solid color-mix(in srgb, var(--gold-light) 35%, transparent); border-radius: 4px;
}
.rsvp-note strong { color: var(--gold-light); font-weight: 500; }
.rsvp-final .field label { color: rgba(246,239,227,0.85); }
.rsvp-final .muted { color: rgba(246,239,227,0.65); }
.toggle--big { gap: 1rem; margin-top: 1.5rem; }
.toggle--big .toggle__opt {
  background: transparent; border-color: rgba(246,239,227,0.5); color: var(--cream);
  font-size: 1.2rem; padding: 1.2rem 1.3rem;
}
.toggle--big .toggle__opt:has(input:checked) {
  background: var(--cream); border-color: var(--cream); color: var(--garnet);
}
/* progressive reveal of the rest of the form */
.rsvp__details {
  display: grid; gap: 1.5rem; text-align: left;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .7s ease, opacity .6s ease, margin .6s ease;
}
.rsvp__details.is-open { max-height: 760px; opacity: 1; margin-top: 1.8rem; }

/* SCROLL PROGRESS BAR ---------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9997;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--garnet));
}

/* CINEMATIC ENTRANCE ----------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: flex; }
.curtain__panel { width: 50%; height: 100%; background: var(--garnet-deep); transition: transform 1.05s cubic-bezier(.76,0,.24,1); }
.curtain__panel--l { background: linear-gradient(90deg, var(--garnet-deep), var(--garnet)); }
.curtain__panel--r { background: linear-gradient(270deg, var(--garnet-deep), var(--garnet)); }
.curtain.is-open .curtain__panel--l { transform: translateX(-101%); }
.curtain.is-open .curtain__panel--r { transform: translateX(101%); }
.curtain.is-done { display: none; }

/* hero names — letters mask up */
.hero__names .chw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__names .ch { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.16,.84,.24,1); }
.hero__names.is-revealed .ch { transform: translateY(0); }

.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(246,239,227,0.6); }
.btn--ghost-light:hover { background: var(--cream); color: var(--garnet); border-color: var(--cream); }

/* FILM-STRIP GALLERY ----------------------------------------- */
.gallery .wrap { margin-bottom: 2.6rem; }
.filmstrip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.filmstrip__track { display: flex; gap: 1rem; width: max-content; animation: filmscroll 48s linear infinite; }
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.photo--film { flex: 0 0 auto; width: clamp(210px, 26vw, 340px); aspect-ratio: 3 / 4; margin: 0; border-radius: 2px; }
@keyframes filmscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* RESPONSIVE -------------------------------------------------- */
@media (max-width: 820px) {
  .days { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .scene__content { bottom: 12vh; left: 1.5rem; right: 1.5rem; max-width: none; text-align: left; }
  .scene:nth-child(even) .scene__content { left: 1.5rem; right: 1.5rem; text-align: left; }
  .scene__overlay, .scene:nth-child(even) .scene__overlay {
    background: linear-gradient(0deg, rgba(46,10,18,0.85) 0%, rgba(46,10,18,0.2) 55%, rgba(46,10,18,0.35) 100%);
  }
  .story-pin__rail { right: 1rem; }
}

/* On touch / no-hover devices, always show the day description */
@media (hover: none) {
  .day__desc { max-height: 8rem; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .photo--scene img, .scene.is-active .photo--scene img { transform: none; }
  .scene__content > * { opacity: 1; transform: none; }
  .hero__names .ch { transform: none; }
  .filmstrip { overflow-x: auto; }
  .filmstrip__track { animation: none; }
  .curtain__panel { transition: none; }
  .map__route { animation: none; }
  .map__pulse { animation: none; opacity: 0; }
}
