/* ============================================================
   BASE
   ============================================================ */
:root {
  --red: #c32636;
  --red-soft: #d9505d;
  --bg: #ffffff;
  --cream: #faf6ef; /* text/fills sitting on top of red */
  --pink: #f3c6cb; /* muted labels on red surfaces */
  --ink: #8a5a52; /* warm brown for secondary copy */
  --ink-soft: #5a4a42;
  --gray: #3f3f42; /* dark grey for subtitles/leads */
  --page: #fbfbfb; /* warm off-white page, so white cards read */
  --card: #ffffff; /* white paper cards */
  --card-tint: #fbeceb; /* pink-tinted cards (buses) */
  --border: rgba(122, 58, 52, 0.16); /* subtle warm hairline on cards */
  --border-strong: rgba(122, 58, 52, 0.26);
  --ease-write: cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* The UA rule for [hidden] loses against any author `display`, so JS toggling
   `hidden` on flex/grid elements (.field, .wizard__done) needs this. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: var(--page);
  color: var(--red);
  font-family: "Montserrat", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vh, 2.5rem);
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.section__title {
  font-size: clamp(1.9rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--red);
}

.section__lead {
  max-width: 42ch;
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.5;
  text-wrap: balance;
  color: var(--gray);
}

/* ============================================================
   REVEAL ON SCROLL (JS toggles .is-visible)
   ============================================================ */
/* Hidden initial state only applies when JS is present (progressive
   enhancement): no-JS visitors see everything, JS visitors get the reveal. */
.js .reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s var(--ease-write),
    clip-path 0.9s var(--ease-write);
  will-change: opacity, transform;
}

/* up: slide from below */
.js .reveal[data-reveal="up"] {
  transform: translateY(2.5rem);
}

/* write: hidden via opacity only. A clip-path here would collapse the
   element's intersection rect to zero width and IntersectionObserver would
   never fire; the wipe runs as an animation on reveal instead (see below). */
.js .reveal[data-reveal="write"] {
  opacity: 0;
}

/* stamp: pop in with overshoot */
.js .reveal[data-reveal="stamp"] {
  transform: scale(0.8);
}

/* Final state — same specificity as the per-variant initial states above and
   placed AFTER them so it wins the cascade on source order. */
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal[data-reveal="write"].is-visible {
  animation: write 0.9s var(--ease-write) both;
}
.js .reveal[data-reveal="stamp"].is-visible {
  animation: pop 0.55s var(--ease-write) both;
}
@keyframes pop {
  0% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

/* ride: the couple cross the countdown right to left, once, braking briefly in
   the middle. The drawing is a white-filled overlay hanging low over the digits
   row, so only the heads pass in front of it and the layout below is untouched.
   Horizontal overflow needs no clipping here: the body already hides it. */
.countdown-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
/* Full-bleed box with its own horizontal clip, so the vespa parked off-screen
   can never add scrollable width. `clip` (not `hidden`) is what lets the
   vertical overflow — the drawing is taller than this box — still show. */
.ride {
  --ride-w: clamp(8rem, 30vw, 17rem);
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow-x: clip;
  pointer-events: none;
}
/* The ground they ride on: hairline at wheel level, fading out at both ends.
   0.860 = wheel baseline (99% of the artwork height) once the +4% offset and
   the 2005/2400 aspect ratio are folded in. */
.ride::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  translate: 0 calc(0.860 * var(--ride-w));
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63, 63, 66, 0.22) 20%,
    rgba(63, 63, 66, 0.22) 80%,
    transparent
  );
}
.ride__bike {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--ride-w);
  height: auto;
  /* Sits low on purpose, so only the heads pass over the digits. Placement
     lives in `translate` so the keyframes keep `transform` to themselves;
     the two compose. */
  translate: -50% 4%;
}
/* No fade: they are only ever hidden by being outside the viewport */
.js .reveal[data-reveal="ride"] {
  opacity: 1;
  transition: none;
}
.js .reveal[data-reveal="ride"] .ride__bike {
  transform: translateX(calc(50vw + 100%));
}
.reveal[data-reveal="ride"].is-visible .ride__bike {
  animation: ride 8s infinite both;
}
/* One pass takes the first 6.5s (0 → 81%), then it waits off-screen for the
   remaining ~1.5s before coming round again. Per-segment easing gives a
   near-constant cruise, a short brake in the middle, then back up to speed. */
@keyframes ride {
  0% {
    transform: translateX(calc(50vw + 100%)) skewX(7deg) scaleX(1.08);
    filter: blur(1.5px);
    animation-timing-function: cubic-bezier(0.25, 0.55, 0.45, 1);
  }
  40%,
  42% {
    transform: none;
    filter: none;
    animation-timing-function: cubic-bezier(0.55, 0, 0.75, 0.45);
  }
  81%,
  100% {
    transform: translateX(calc(-50vw - 100%)) skewX(7deg) scaleX(1.08);
    filter: blur(1.5px);
  }
}

/* stagger: children fade up one after another using --i */
.js .reveal[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-write);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.reveal[data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   INTRO / HERO
   ============================================================ */
.section--intro {
  gap: clamp(1rem, 6vh, 3.5rem);
}

/* On phones, full-viewport sections leave big empty gaps between short
   content blocks. Let sections size to their content instead, keeping only
   the intro at full height. */
@media (max-width: 640px) {
  .section {
    min-height: auto;
    padding-block: clamp(4rem, 12vh, 5.5rem);
  }
  .section--intro {
    min-height: 100svh;
  }

  /* Stacked cards: icon on top, time and event on separate centered rows */
  .timeline__item {
    width: 100%;
  }
  .timeline__card {
    flex-direction: column;
    text-align: center;
  }
  .timeline__icon {
    width: clamp(5rem, 26vw, 7.5rem);
    height: clamp(5rem, 26vw, 7.5rem);
  }
  .timeline__event {
    display: block;
  }
  /* Extra specificity: the base ::before rule comes later in the file */
  .timeline__time .timeline__event::before {
    content: none;
  }
}

/* Centered hero content */
.intro__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* Signature-style left-to-right reveal, shared by load + scroll reveals */
@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.names {
  width: clamp(16rem, 74vmin, 29rem);
  max-width: 100%;
  height: auto;
  animation: write 0.9s 0.2s var(--ease-write) both;
}

.date {
  margin-top: 0.5rem;
  font-size: clamp(1.25rem, 4.8vmin, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: write 0.9s 0.5s ease both;
}

.subtitle {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 3vmin, 1.15rem);
  text-wrap: balance;
  line-height: 1.3;
  overflow-wrap: break-word;
  font-weight: 400;
  color: var(--gray);
  animation: write 0.9s 0.8s ease both;
}

/* Scroll hint at the bottom of the hero */
.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  animation: fade-in 0.8s 1.2s ease both;
}
.scroll-cue__arrow {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.6s ease-in-out 1.4s infinite;
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(0.3rem) rotate(45deg);
  }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown__badge {
  display: inline-block;
  background: rgba(195, 38, 54, 0.85);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 999px;
  rotate: -2deg;
}

.section--countdown .section__title {
  color: var(--red);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* Always four across; type and padding shrink with the viewport so it fits
   even on a 320px phone. */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: clamp(0.35rem, 1.6vw, 2rem);
  width: min(100%, 46rem);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: clamp(0.6rem, 2.4vw, 1.5rem) clamp(0.25rem, 1.4vw, 1.5rem);
  background: var(--red);
  border-radius: 14px;
  rotate: calc(-2deg + var(--i) * 1.2deg);
}
.countdown__value {
  font-size: clamp(1.1rem, 6.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
/* Tick animation when a digit changes (JS toggles .is-ticking) */
.countdown__value.is-ticking {
  animation: tick 0.4s ease;
}
@keyframes tick {
  0% {
    transform: translateY(-0.25rem);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.countdown__label {
  font-size: clamp(0.45rem, 1.9vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--pink);
}

/* ============================================================
   PLANNING / TIMELINE (incluye hitos de bus)
   ============================================================ */
.section__note {
  color: var(--red);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

/* Reusable dashed placeholder for future illustrations */
.img-slot {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px dashed var(--red);
  background: color-mix(in srgb, var(--red) 5%, transparent);
}

.timeline {
  position: relative;
  list-style: none;
  width: min(720px, 100%);
  margin-top: clamp(1rem, 4vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.25rem, 6.5vh, 3.75rem);
}

/* Cards hug their content instead of filling the column, with a floor so the
   short ones ("14:00 Cóctel") don't end up tiny */
.timeline__item {
  position: relative;
  width: fit-content;
  min-width: min(22rem, 100%);
  max-width: 100%;
  text-align: left;
}

.timeline__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3.5vw, 1.5rem);
  padding: clamp(1.15rem, 3.6vw, 1.75rem) clamp(1.35rem, 4vw, 2rem);
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  rotate: var(--rotate, 0deg);
}

/* Illustration now lives inside the card, to the left of the text */
.timeline__icon {
  display: block;
  flex-shrink: 0;
  width: clamp(4.5rem, 14vw, 6.75rem);
  height: clamp(4.5rem, 14vw, 6.75rem);
  object-fit: contain;
}

.timeline__body {
  flex: 1;
}
.timeline__item--bus .timeline__card {
  background: var(--card-tint);
}

.timeline__badge {
  position: absolute;
  top: -0.6rem;
  right: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline__time {
  display: block;
  color: var(--red);
  font-weight: 800;
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  line-height: 1.2;
}
.timeline__event {
  color: var(--ink-soft);
  font-weight: 700;
}
/* Em dash separator, dropped on mobile where time and event stack */
.timeline__event::before {
  content: "—";
  margin-inline-start: 0.3em;
}
.timeline__place {
  margin-top: 0.3rem;
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(0.88rem, 2.4vw, 1rem);
}
.timeline__note {
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: clamp(0.82rem, 2.1vw, 0.92rem);
}

/* Bus transfers: small badge-like mini cards, aligned with the cards but
   less prominent than the milestones */
.timeline__transfer {
  align-self: center;
  margin-top: calc(-1 * clamp(1rem, 3vh, 1.75rem));
  margin-bottom: calc(-1 * clamp(1rem, 3vh, 1.75rem));
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background: var(--card-tint);
  border: 1px solid var(--border);
  font-size: clamp(0.8rem, 2.1vw, 0.9rem);
}
.timeline__transfer-time {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.timeline__transfer-text {
  color: var(--ink);
}

/* "Ver en Google Maps" link inside a card */
/* flex + fit-content so consecutive links stack instead of sharing a line */
.timeline__map {
  margin-top: 0.35rem;
  display: inline-block;
  width: fit-content;
  align-items: center;
  gap: 0.35em;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.1vw, 0.9rem);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.timeline__map:hover {
  text-decoration: none;
}
.timeline__map-icon {
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
}

/* ============================================================
   RSVP WIZARD
   ============================================================ */
.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;
}

.wizard {
  position: relative;
  width: min(560px, 100%);
  text-align: left;
  border: 0;
  border-radius: 22px 8px 22px 8px;
  padding: clamp(1.75rem, 6vw, 3rem);
  padding-top: clamp(2.75rem, 8vw, 3.5rem);
  background: var(--red);
  rotate: -0.6deg;
  color: var(--bg);
}

/* Header: eyebrow only; the progress bar shows position */
.wizard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.wizard__header[hidden] {
  display: none;
}
.wizard__eyebrow {
  margin: 0;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  line-height: 1.4;
}
.wizard__progress {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 25%, transparent);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.wizard__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cream);
  border-radius: 999px;
  transition: width 0.4s var(--ease-write);
}

.wizard__step {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: step-in 0.4s var(--ease-write) both;
}
/* An author `display` beats the UA rule for [hidden], so restore it here. */
.wizard__step[hidden] {
  display: none;
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.wizard__legend {
  font-size: clamp(1.3rem, 4.5vw, 1.85rem);
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.75rem;
  color: var(--cream);
}
.wizard__help {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--pink);
  margin-top: -0.4rem;
}

/* Choice grid (radio cards) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
/* Force a fixed 2-column layout (e.g. the bus step: 2x2, 50% each),
   collapsing to a single column on very narrow screens. */
.choice-grid--2col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 360px) {
  .choice-grid--2col {
    grid-template-columns: 1fr;
  }
}
/* An option that takes the whole row (e.g. "Sin preferencia" in the menus) */
.choice--full {
  grid-column: 1 / -1;
}
.choice {
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid color-mix(in srgb, var(--cream) 55%, transparent);
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: center;
  background: transparent;
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}
.choice input:checked + .choice__box {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--red);
  transform: translateY(-2px);
}
/* Check sticker on the selected option */
.choice input:checked + .choice__box::after {
  content: "✓";
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--cream);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.choice input:focus-visible + .choice__box {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

/* Text fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pink);
}
.field input,
.field textarea,
.companions input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: 0.7rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  background: var(--cream);
  width: 100%;
  transition: border-color 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder,
.companions input::placeholder {
  color: var(--ink);
  opacity: 0.6;
}
.field input:focus,
.field textarea:focus,
.companions input:focus {
  outline: none;
  border-color: var(--red-soft);
}
.field input:focus-visible,
.field textarea:focus-visible,
.companions input:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}
.field textarea {
  resize: vertical;
}
.field__hint {
  font-weight: 400;
  font-style: normal;
  opacity: 0.8;
}
/* A <legend> is not a flex item, so this .field falls back to block flow */
[data-companions-count] {
  display: block;
  border: 0;
}
[data-companions-count] .field__label {
  display: block;
  margin-bottom: 0.4rem;
}

/* Companion count: six single-digit pills in one row. No check sticker here —
   they would overlap each other, and the filled state already reads. */
.choice-grid--count {
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}
.choice-grid--count .choice__box {
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-weight: 700;
}
.choice-grid--count input:checked + .choice__box::after {
  content: none;
}

/* Compact choice grid used for each companion's menu */
.choice-grid--sm {
  gap: 0.5rem;
}
.choice-grid--sm .choice__box {
  min-height: 2.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Summary */
.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}
.summary dt {
  font-weight: 700;
  color: var(--pink);
}
.summary dd {
  font-weight: 400;
  color: var(--cream);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--cream);
  border-radius: 0.75rem;
  background: var(--cream);
  color: var(--red);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.btn:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}
/* Secondary buttons: the translucent fill carries them, no border needed.
   Kept transparent (not removed) so they stay the same size as .btn. */
.btn--ghost {
  border-color: transparent;
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  color: var(--cream);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--bg) 22%, transparent);
}
.btn--send {
  background: var(--cream);
  color: var(--red);
}
.wizard__nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.wizard__nav[hidden] {
  display: none;
}
.wizard__nav [data-next],
.wizard__nav [data-send] {
  margin-left: auto;
}
.wizard__status {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--cream);
}
.wizard__status[data-state="error"] {
  color: var(--red);
  background: var(--cream);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
}
.wizard__status[data-state="success"] {
  font-size: 1.1rem;
  color: var(--cream);
}

/* Loading state: hide the label and spin a ring in its place */
.btn.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: auto;
  border: 2px solid color-mix(in srgb, var(--red) 30%, transparent);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Confirmation panel shown after a successful submit */
.wizard__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: clamp(0.5rem, 3vw, 1.5rem) 0;
  animation: done-in 0.5s var(--ease-write) both;
}
.wizard__done-icon {
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 12vw, 4rem);
  height: clamp(3.25rem, 12vw, 4rem);
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1;
}
.wizard__done-title {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  color: var(--cream);
}
.wizard__done-text {
  max-width: 34ch;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  line-height: 1.5;
}
.wizard__done-resend {
  margin-top: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}
@keyframes done-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Red confetti fired once on a successful submit */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}
.confetti span {
  position: absolute;
  top: -10vh;
  width: 0.5rem;
  height: 0.85rem;
  border-radius: 1px;
  background: var(--red);
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.confetti span:nth-child(3n) {
  background: var(--red-soft);
}
.confetti span:nth-child(5n) {
  background: var(--pink);
}
.confetti__heart {
  width: auto;
  height: auto;
  background: none !important;
  color: var(--red);
  font-size: 1.1rem;
  line-height: 1;
}
@keyframes confetti-fall {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translate3d(var(--drift), 120vh, 0) rotate(var(--spin));
    opacity: 0.9;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: clamp(2rem, 6vh, 4rem) 1.5rem clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  font-weight: 300;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--red);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-heart {
  color: var(--red);
}

/* ============================================================
   REDUCED MOTION — everything lands in its final, static state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Kill the load entrance */
  .names,
  .subtitle,
  .date,
  .scroll-cue,
  .scroll-cue__arrow {
    animation: none;
  }
  .scroll-cue {
    opacity: 1;
  }
  /* Reveals: visible and static regardless of scroll */
  .reveal,
  .reveal[data-reveal="up"],
  .reveal[data-reveal="write"],
  .reveal[data-reveal="stamp"] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
    animation: none;
  }
  .reveal[data-reveal="stagger"] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Nothing to park here: static, the vespa would just cover the digits */
  .ride {
    display: none;
  }
  .countdown__value.is-ticking {
    animation: none;
  }
  .wizard__step {
    animation: none;
  }
  .btn.is-loading::after {
    animation: none;
  }
  .wizard__done {
    animation: none;
  }
  /* JS skips the confetti entirely; belt and braces if it ever runs */
  .confetti {
    display: none;
  }
}
