/* ============================================================
   KEEPSIKA INVITATIONS — "Azure" template
   Palette: porcelain paper, sky wash, navy ink,
   deep-sea depth, silvered ornament, blush petals
   ============================================================ */

:root {
  --porcelain: #F6F2EC;
  --sky: #DBE4EC;
  --sky-deep: #A7BDCE;
  --navy: #4E6B82;
  --navy-soft: #6E8AA1;
  --depth: #2F4658;
  --silver: #C4CFD8;
  --silver-line: rgba(78, 107, 130, 0.28);
  --ink: #34495B;
  --ink-soft: #6B8299;
  --petal: #E8D9C9;
  --petal-warm: #D8C2AC;

  --font-display: "Marcellus", serif;
  --font-script: "Pinyon Script", cursive;
  --font-body: "Cormorant Garamond", serif;

  --measure: 42rem;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.18rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: var(--navy); }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy);
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.005em;
  text-transform: none;
  text-align: center;
  color: var(--depth);
  margin-bottom: 2.5rem;
}

/* ============================================================
   VIDEO INTRO — cinematic double-rod parchment scroll unfurling
   with dusty sky-blue petals settling onto it.
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--porcelain);            /* matches the video's marble tone */
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.intro.is-playing { cursor: default; }
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* Slight zoom past fill to hide any AI watermark near the frame edges.
   Poster is also painted as CSS background — iOS Safari won't decode
   the video's first frame until playback starts, so without this we'd
   flash the porcelain backdrop before the tap-to-play. */
.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--porcelain) url("../assets/scroll-intro-poster.webp") center / cover no-repeat;
  pointer-events: none;
  transform: scale(var(--intro-zoom, 1.06));
  transform-origin: center center;
}
.intro { --intro-zoom: 1.06; }

/* Tap-to-open prompt shown before the video begins. Sits low over the
   paused first frame (closed double-rod scroll on marble). */
.intro__prompt {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.intro.is-playing .intro__prompt { opacity: 0; pointer-events: none; }

.intro__prompt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow:
    0 0 0 6px rgba(78, 107, 130, 0.16),
    0 0 24px 4px rgba(78, 107, 130, 0.32);
  animation: introPromptPulse 1.8s ease-in-out infinite;
}
@keyframes introPromptPulse {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.3); opacity: 1;    }
}

.intro__prompt-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 6px rgba(246, 242, 236, 0.7);
}

/* Cinematic title that fades in at the start of playback, holds through
   the quiet beat before the scroll unfurls, then fades out just as the
   rods begin separating. Timed via CSS animation triggered by .is-playing
   so it stays in sync with when the video actually starts (not when the
   page loads). Font is Cormorant italic to match Azure's editorial voice. */
.intro__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  margin: 0;
  padding: 0 1.5rem;
  max-width: min(88vw, 560px);
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(246, 242, 236, 0.6),
    0 2px 24px rgba(246, 242, 236, 0.7);
  pointer-events: none;
  opacity: 0;
}
/* Script accent on "unfold" — matches how Azure uses Pinyon Script for the
   couple names inside the invitation. Sized up slightly and pulled down a
   hair so its descenders sit naturally on the same baseline as the italic. */
.intro__title-accent {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.5em;
  line-height: 0.9;
  color: var(--navy);
  letter-spacing: 0;
  margin-left: 0.1em;
  vertical-align: -0.14em;
}
.intro.is-playing .intro__title {
  animation: introTitleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}
@keyframes introTitleReveal {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .intro.is-playing .intro__title {
    animation: none;
    opacity: 1;
  }
}

/* Skip pill — fades in a beat after the video starts so it doesn't
   compete with the opening moment. Inverted styling for the light
   backdrop: depth-colored pill with silver-blue border. */
.intro__skip {
  position: absolute;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 10;
  background: rgba(47, 70, 88, 0.72);
  color: rgba(246, 242, 236, 0.94);
  border: 1px solid rgba(167, 189, 206, 0.5);
  padding: 0.55rem 1rem 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.intro.is-ready .intro__skip { opacity: 0.9; transform: translateY(0); }
.intro__skip:hover  { opacity: 1; background: rgba(47, 70, 88, 0.88); }
.intro__skip:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 2px;
  opacity: 1;
}
@media (max-width: 480px) {
  .intro__skip {
    bottom: 1rem; right: 1rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.55rem;
  }
}

/* Reduced motion — skip is fine, drop the pulsing prompt dot animation. */
@media (prefers-reduced-motion: reduce) {
  .intro__prompt-dot { animation: none; }
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.page { overflow-x: hidden; }

.section {
  padding: var(--space-section) 1.5rem;
  max-width: var(--measure);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Section heading arrives first with a hairline underline draw-in */
.reveal .section__heading {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 60ms,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}
.reveal .section__heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 2.4rem;
  height: 1px;
  background: var(--sky-deep);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 320ms;
}
.reveal.is-visible .section__heading { opacity: 1; transform: none; }
.reveal.is-visible .section__heading::after { transform: translateX(-50%) scaleX(1); }

/* Child stagger — set --i via nth-child so items rise in sequence */
.reveal .timeline__item,
.reveal .venue,
.reveal .gallery__frame,
.reveal .countdown__cell,
.reveal .dresscode__swatch,
.reveal .faq__item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible .timeline__item,
.reveal.is-visible .venue,
.reveal.is-visible .gallery__frame,
.reveal.is-visible .countdown__cell,
.reveal.is-visible .dresscode__swatch,
.reveal.is-visible .faq__item {
  opacity: 1;
  transform: none;
}
.reveal.is-visible .timeline__item:nth-child(1),
.reveal.is-visible .venue:nth-child(1),
.reveal.is-visible .gallery__frame:nth-child(1),
.reveal.is-visible .countdown__cell:nth-child(1),
.reveal.is-visible .dresscode__swatch:nth-child(1),
.reveal.is-visible .faq__item:nth-child(1) { transition-delay: 220ms; }
.reveal.is-visible .timeline__item:nth-child(2),
.reveal.is-visible .venue:nth-child(2),
.reveal.is-visible .gallery__frame:nth-child(2),
.reveal.is-visible .countdown__cell:nth-child(2),
.reveal.is-visible .dresscode__swatch:nth-child(2),
.reveal.is-visible .faq__item:nth-child(2) { transition-delay: 300ms; }
.reveal.is-visible .timeline__item:nth-child(3),
.reveal.is-visible .venue:nth-child(3),
.reveal.is-visible .gallery__frame:nth-child(3),
.reveal.is-visible .countdown__cell:nth-child(3),
.reveal.is-visible .dresscode__swatch:nth-child(3),
.reveal.is-visible .faq__item:nth-child(3) { transition-delay: 380ms; }
.reveal.is-visible .timeline__item:nth-child(4),
.reveal.is-visible .countdown__cell:nth-child(4),
.reveal.is-visible .dresscode__swatch:nth-child(4),
.reveal.is-visible .faq__item:nth-child(4) { transition-delay: 460ms; }
.reveal.is-visible .timeline__item:nth-child(5),
.reveal.is-visible .faq__item:nth-child(5) { transition-delay: 540ms; }
.reveal.is-visible .timeline__item:nth-child(n+6) { transition-delay: 620ms; }

/* Hero-name entrance — each name floats up with tight cascade */
.hero__name {
  opacity: 0;
  transform: translateY(24px);
  animation: heroNameRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__name:nth-of-type(1) { animation-delay: 0.35s; }
.hero__name:nth-of-type(2) { animation-delay: 0.55s; }
.hero__amp {
  opacity: 0;
  animation: heroAmpFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}
@keyframes heroNameRise {
  to { opacity: 1; transform: none; }
}
@keyframes heroAmpFade {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 0.9; transform: none; }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 22rem;
  margin: 0 auto;
  color: var(--navy);
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--silver-line));
}

.divider__line:last-child {
  background: linear-gradient(to left, transparent, var(--silver-line));
}

/* ============================================================
   HERO with sky + petals
   ============================================================ */

.hero {
  position: relative;
  min-height: 96vh;
  max-width: none;
  padding: var(--space-section) 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(167, 189, 206, 0.45), transparent 65%),
    linear-gradient(180deg, var(--porcelain) 0%, #EAE6E0 45%, var(--sky) 100%);
  z-index: 0;
}

.hero__petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.petal {
  position: absolute;
  top: -6vh;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 1.4);
  color: var(--petal);
  opacity: 0;
  will-change: transform, opacity;
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.petal svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(15, 37, 66, 0.08)); }

.petal--warm { color: var(--petal-warm); }

@keyframes petalFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.9; }
  50% { transform: translate3d(calc(var(--drift) * 0.5), 55vh, 0) rotate(calc(var(--spin) * 0.5)); }
  92% { opacity: 0.85; }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__ornament { color: var(--navy); opacity: 0.7; margin-bottom: 1.6rem; }

.hero__eyebrow { max-width: 28rem; line-height: 1.9; }

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  margin: 1.8rem 0 0;
}

.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4rem, 15vw, 7.2rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--depth);
}

.hero__amp {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
  color: var(--navy);
  letter-spacing: 0;
  margin: 0.35em 0;
  line-height: 1;
}

.hero__rule {
  width: 5.5rem;
  height: 1px;
  background: var(--sky-deep);
  margin: 2rem 0 1.5rem;
}

.hero__date {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--depth);
}

.hero__hashtag {
  margin-top: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.2rem;
  background: var(--navy);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown { text-align: center; }

.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 2.8rem);
  margin-top: 2.2rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 3.2rem;
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  color: var(--depth);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============================================================
   STORY & GALLERY
   ============================================================ */

.story__text { text-align: center; }

.story__text p + p { margin-top: 1.2rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 3rem;
}

.gallery__frame {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--silver-line);
  padding: 0.45rem;
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(15, 37, 66, 0.08);
}

.gallery__frame:nth-child(2) { transform: translateY(1.2rem); }

.gallery__img,
.gallery__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, var(--sky), #B7C9D6);
  color: var(--navy);
}

/* ============================================================
   VENUES
   ============================================================ */

.venues__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.venue {
  border: 1px solid var(--silver-line);
  background: #FFFFFF;
  padding: 2.4rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.venue__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}

.venue__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--depth);
}

.venue__time { font-style: italic; color: var(--ink-soft); }

.venue__address { color: var(--ink-soft); font-size: 1rem; }

.venue .btn { margin-top: auto; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.78rem 1.6rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: 0.8rem;
}

.btn:hover { background: var(--navy); color: var(--porcelain); }

.btn--solid {
  background: var(--navy);
  color: var(--porcelain);
}

.btn--solid:hover { background: var(--depth); border-color: var(--depth); }

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 24rem;
  position: relative;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--silver-line) 12%, var(--silver-line) 88%, transparent);
}

.timeline__item {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  position: relative;
  padding: 1.1rem 0;
}

.timeline__icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--silver-line);
  background: var(--porcelain);
  color: var(--navy);
  position: relative;
  z-index: 1;
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--navy);
  min-width: 4.6rem;
}

.timeline__title { font-size: 1.1rem; color: var(--depth); }

/* ============================================================
   ENTOURAGE (deep-navy band)
   ============================================================ */

.section--dark {
  max-width: none;
  background:
    radial-gradient(ellipse at 50% 0%, #40596E 0%, var(--depth) 60%);
  color: #DDE3EA;
}

.section--dark .section__heading { color: #F1EEE9; }

.entourage__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.entourage .eyebrow { color: var(--sky-deep); }

.entourage__group-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky-deep);
  text-align: center;
  margin-bottom: 1.3rem;
}

.entourage__sponsors { margin-bottom: 3rem; }

.entourage__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  text-align: center;
}

.entourage__col-head {
  font-style: italic;
  color: var(--sky-deep);
  margin-bottom: 0.5rem;
}

.entourage__name { line-height: 1.9; white-space: nowrap; }

.entourage__roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.entourage__pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--silver-line);
}
.entourage__pair + .entourage__pair { margin-top: -1.8rem; }

.entourage__role-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 0.4rem;
}

.entourage__secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(168, 196, 216, 0.24);
  padding-top: 2.4rem;
}

/* ============================================================
   DRESS CODE
   ============================================================ */

.dresscode { text-align: center; }

.dresscode__text { max-width: 34rem; margin: 0 auto; }

.dresscode__swatches {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 2.2rem 0 1.6rem;
}

.dresscode__swatch {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--silver-line);
  box-shadow: inset 0 0 0 3px var(--porcelain), 0 4px 12px rgba(15, 37, 66, 0.12);
}

.dresscode__note { font-style: italic; color: var(--ink-soft); }

/* ============================================================
   GIFTS
   ============================================================ */

.gifts { text-align: center; }

.gifts__text { max-width: 32rem; margin: 0 auto; font-style: italic; }

/* ============================================================
   RSVP
   ============================================================ */

.rsvp { max-width: 36rem; }

.rsvp__card {
  border: 1px solid var(--silver-line);
  background: #FFFFFF;
  padding: clamp(2rem, 6vw, 3.2rem);
  box-shadow: 0 14px 40px rgba(15, 37, 66, 0.09);
}

.rsvp__deadline {
  text-align: center;
  margin: -1.4rem 0 2.2rem;
  color: var(--ink-soft);
}

.rsvp__form { display: flex; flex-direction: column; gap: 1.4rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }

.field--radios { border: none; margin: 0; padding: 0; }

.field__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}

.field__optional { text-transform: none; letter-spacing: 0.05em; color: var(--ink-soft); }

.field__input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--silver-line);
  padding: 0.78rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.25s ease;
  width: 100%;
}

.field__input:focus {
  outline: none;
  border-color: var(--navy);
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.radio input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; }

.rsvp__submit { margin-top: 0.4rem; }

.rsvp__status { text-align: center; color: #9C3D2E; min-height: 1.4em; }

.rsvp__success { text-align: center; padding: 1.5rem 0 0.5rem; }

.rsvp__success-orn { color: var(--navy); }

.rsvp__success-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  margin: 0.6rem 0 0.4rem;
  color: var(--depth);
}

.rsvp__success-text { color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-width: 38rem; }

.faq__item { border-bottom: 1px solid var(--silver-line); }

.faq__item:first-child { border-top: 1px solid var(--silver-line); }

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--depth);
  padding: 1.2rem 0.2rem;
}

.faq__q::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
  transition: transform 0.35s ease;
  flex: none;
}

.faq__item.is-open .faq__q::after { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.faq__a-inner {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, var(--sky), #A7BDCE);
}

.footer__sprig { color: var(--navy); }

.footer__mono {
  font-family: var(--font-script);
  font-size: 3rem;
  margin: 0.8rem 0 0.3rem;
  color: var(--depth);
}

.footer__date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer__brand {
  margin-top: 2.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   MUSIC TOGGLE
   ============================================================ */

.music-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: rgba(251, 250, 246, 0.94);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(15, 37, 66, 0.2);
  transition: transform 0.3s ease;
}

.music-toggle[hidden] { display: none; }

.music-toggle:hover { transform: scale(1.08); }

.music-toggle[aria-pressed="true"] {
  background: var(--navy);
  color: var(--porcelain);
  animation: musicSpin 6s linear infinite;
}

@keyframes musicSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ASSET OVERRIDES (activated when files exist in assets/)
   ============================================================ */

.hero.hero--photo .hero__sky {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.15) 0%, rgba(251, 250, 246, 0.45) 45%, rgba(251, 250, 246, 0.85) 100%),
    var(--asset-hero) center/cover no-repeat;
}

.has-paper-texture .rsvp__card,
.has-paper-texture .venue {
  background-color: #FFFFFF;
  background-image: var(--asset-paper);
  background-size: 320px;
  background-blend-mode: multiply;
}

.has-door-texture .door {
  background:
    linear-gradient(180deg, rgba(15, 37, 66, 0.55), rgba(15, 37, 66, 0.35)),
    var(--asset-door) center/cover no-repeat;
}

.petal .petal__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(15, 37, 66, 0.15));
}

.asset-img { display: block; margin: 0 auto; }
.asset-img--ornament {
  width: 100%;
  height: auto;
  max-width: 200px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__frame:nth-child(3) { display: none; }
  .countdown__grid { gap: 1rem; }
  .entourage__columns { grid-template-columns: 1fr 1fr; gap: 1.2rem 0.6rem; }
  .entourage__roles,
  .entourage__secondary { grid-template-columns: 1fr 1fr; gap: 1.4rem 0.6rem; }
  .entourage__name { font-size: clamp(0.68rem, 3vw, 0.9rem); line-height: 1.7; }
  .entourage__col-head,
  .entourage__role-title { font-size: 0.62rem; letter-spacing: 0.22em; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .section__heading,
  .reveal .timeline__item, .reveal .venue, .reveal .gallery__frame,
  .reveal .countdown__cell, .reveal .dresscode__swatch, .reveal .faq__item {
    opacity: 1; transform: none; transition: none;
  }
  .reveal .section__heading::after { transform: translateX(-50%) scaleX(1); transition: none; }
  .hero__name, .hero__amp { opacity: 1; transform: none; animation: none; }
  .intro, .door, .doors__knocker { transition: none; }
  .intro__hint, .hero__scroll-line, .music-toggle[aria-pressed="true"], .petal { animation: none; }
  .petal { opacity: 0; }
}

/* ============================================================
   STORY WIDGET (Aceternity Draggable Card, pre-bundled)
   Class names must stay in sync with story-widget/src/*.jsx
   ============================================================ */

.story-section {
  max-width: none;
  padding: var(--space-section) 0 calc(var(--space-section) * 0.6);
  text-align: center;
}

.story-section__heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--depth);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.story-section__lede {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  max-width: 30rem;
  margin: 0 auto 0.6rem;
}

.sw-perspective {
  perspective: 3000px;
}

.sw-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(78vh, 640px);
  overflow: clip;
}

.sw-caption,
.sw-subtitle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 26rem;
  text-align: center;
  pointer-events: none;
  color: var(--ink-soft);
  z-index: 0;
}
.sw-caption {
  top: 46%;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.7vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.sw-subtitle {
  top: 54%;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

.sw-card {
  position: relative;
  min-height: 22rem;
  width: 17rem;
  overflow: hidden;
  border-radius: 4px;
  background: var(--porcelain);
  padding: 0.85rem 0.85rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 40px -18px rgba(47, 70, 88, 0.35),
    0 6px 14px rgba(47, 70, 88, 0.14);
  cursor: grab;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-select: none;
}
.sw-card:active { cursor: grabbing; }

.sw-card__glare {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: #ffffff;
  user-select: none;
}

.sw-card__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 17rem;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sw-card__placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 17rem;
  background:
    linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  border-radius: 2px;
}

.sw-card__title {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

@media (max-width: 640px) {
  .sw-stage { min-height: min(70vh, 560px); }
  .sw-card { width: 12.5rem; min-height: 16.5rem; padding: 0.65rem 0.65rem 0.85rem; }
  .sw-card__img,
  .sw-card__placeholder { height: 12.5rem; }
  .sw-card__title { font-size: 0.72rem; letter-spacing: 0.18em; }
  .sw-caption { top: 44%; }
  .sw-subtitle { top: 52%; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-card { transition: none; }
}

/* ============================================================
   PREVIEW MODE — subtle corner pill + selection/drag friction.
   Only visible when cfg.preview === true (unpaid demo).
   Set `preview: false` in js/config.js on paid client deliveries.
   ============================================================ */
.preview-pill {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  will-change: transform;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(11, 11, 11, 0.82);
  color: #fff;
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
}
.preview-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb74a;
  box-shadow: 0 0 0 3px rgba(255, 183, 74, 0.25);
  animation: previewPulse 1.8s ease-in-out infinite;
}
@keyframes previewPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@media (max-width: 480px) {
  .preview-pill { bottom: 0.6rem; left: 0.6rem; right: auto; padding: 0.4rem 0.7rem; font-size: 0.55rem; }
}

.is-preview { user-select: none; -webkit-user-select: none; }
.is-preview input,
.is-preview textarea,
.is-preview select { user-select: text; -webkit-user-select: text; }
.is-preview img,
.is-preview svg { -webkit-user-drag: none; user-drag: none; }

/* ============================================================
   SCROLLBAR — thin, brand-tinted rail so the page still feels
   coastal-serene when framed in the catalog phone modal.
   ============================================================ */
:root {
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 107, 130, 0.22) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(78, 107, 130, 0.22);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 107, 130, 0.55);
  background-clip: padding-box;
  border: 2px solid transparent;
}
::-webkit-scrollbar-corner { background: transparent; }
/* Slow DVD-ish corner tour. 4-corner loop over 90s. Pure CSS, GPU-only transforms. */
@media (prefers-reduced-motion: no-preference) {
  .preview-pill { animation: previewPillDvd 90s linear infinite; }
}
@keyframes previewPillDvd {
  0%,   100% { transform: translate(0, 0); }
  25%        { transform: translate(0, calc(-100vh + 100% + 2rem)); }
  50%        { transform: translate(calc(100vw - 100% - 2rem), calc(-100vh + 100% + 2rem)); }
  75%        { transform: translate(calc(100vw - 100% - 2rem), 0); }
}
