/* =========================================================
   María's Thirty Club
   Estética: club de cócteles clásico — terciopelo burdeos,
   papel crema, tinta y detalles en oro viejo.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --burgundy: #5c0f17;
  --burgundy-deep: #3a070d;
  --ink: #140b0b;
  --cream: #f4ecdd;
  --cream-shade: #e8dcc6;
  --gold: #b8955a;
  --gold-light: #d9bd86;
  --gold-ink: #8a6a35;   /* oro legible sobre crema */
  --olive: #5e6b32;

  --font-script: "Pinyon Script", cursive;
  --font-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-type: "Courier Prime", "Courier New", monospace;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-curtain: cubic-bezier(.75, 0, .2, 1);

  --gutter: clamp(16px, 5vw, 40px);
  --radius: 2px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Sin scroll-behavior: smooth: interfiere con las mediciones de GSAP ScrollTrigger.
     El desplazamiento suave de los enlaces internos se hace en JS. */
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* nada se sale de lado en móvil */
  overflow-x: hidden;
  overflow-x: clip;
}

/* que la barra superior no tape los títulos al saltar a un ancla */
[id] { scroll-margin-top: calc(64px + env(safe-area-inset-top)); }

a, button, label { touch-action: manipulation; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

img, svg { display: block; }

/* contenedor de los símbolos SVG reutilizables (sin estilo en línea, por la CSP) */
.svg-defs { position: absolute; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 1.5px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Terciopelo ---------- */
.velvet {
  position: relative;
  background-color: var(--burgundy);
  background-image:
    /* foco de luz cenital */
    radial-gradient(ellipse 80% 55% at 50% 0%, rgb(255 140 140 / .16), transparent 70%),
    /* viñeta */
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 45%, rgb(0 0 0 / .55) 100%),
    /* pliegues verticales */
    repeating-linear-gradient(90deg,
      rgb(0 0 0 / .38) 0,
      rgb(0 0 0 / 0) 26px,
      rgb(255 255 255 / .07) 42px,
      rgb(0 0 0 / 0) 58px,
      rgb(0 0 0 / .38) 84px);
}

.velvet--soft {
  background-color: var(--burgundy-deep);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgb(255 140 140 / .10), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgb(0 0 0 / .5) 100%),
    repeating-linear-gradient(90deg,
      rgb(0 0 0 / .25) 0,
      rgb(0 0 0 / 0) 30px,
      rgb(255 255 255 / .04) 48px,
      rgb(0 0 0 / 0) 66px,
      rgb(0 0 0 / .25) 96px);
}

/* ---------- Tarjeta de papel con marco doble ---------- */
.card {
  position: relative;
  width: 100%;
  background: var(--cream);
  color: var(--burgundy);
  border-radius: var(--radius);
  padding: clamp(36px, 8vw, 64px) clamp(24px, 7vw, 56px);
  text-align: center;
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / .65),
    0 8px 18px rgb(0 0 0 / .25);
}

/* marco doble interior */
.card::before,
.card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid currentColor;
}
.card::before { inset: 10px; border-width: 1.5px; }
.card::after  { inset: 15px; opacity: .55; }

/* ---------- Tipografía común ---------- */
.eyebrow {
  margin: 0 0 .9rem;
  font-family: var(--font-type);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.eyebrow--ink { color: var(--gold-ink); }

.section-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 4.5rem);
  line-height: 1.05;
  color: var(--cream);
}
.section-title--ink { color: var(--burgundy); }

/* ---------- 1. Apertura ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding:
    calc(40px + env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    calc(28px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

/* contenedor que GSAP aleja al hacer scroll (la tarjeta tiene su propia entrada en CSS) */
.hero__stage {
  width: 100%;
  max-width: 460px;
  will-change: transform, opacity;
}

.card--hero {
  padding-top: clamp(38px, 9vw, 56px);
  padding-bottom: clamp(34px, 8vw, 50px);
}

.card--hero .eyebrow { margin-bottom: .4rem; }

.hero__title {
  margin: 0;
  font-weight: 400;
}

.hero__name {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(4rem, 19vw, 5.6rem);
  line-height: 1;
  /* la caligrafía cae un poco hacia la izquierda: compensamos */
  padding-right: .08em;
}

.hero__club {
  display: block;
  margin-top: .1em;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 7.4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: .16em;
  /* el espaciado añade aire a la derecha de la última letra: lo compensamos */
  padding-left: .16em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero__martini {
  width: clamp(110px, 34vw, 150px);
  height: auto;
  aspect-ratio: 200 / 240;
  margin: 22px auto 14px;
  color: var(--burgundy);
}
.martini-olives  { fill: var(--olive); }
.martini-pimento { fill: var(--burgundy); stroke: none; }

.est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 18px;
  max-width: 260px;
  font-family: var(--font-serif);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.est__rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.hero__date {
  margin: 0;
  font-family: var(--font-type);
  font-size: clamp(.74rem, 3.2vw, .85rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.dot {
  display: inline-block;
  margin: 0 .35em;
  color: var(--gold-ink);
  font-size: .8em;
  transform: translateY(-1px);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-type);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
}
.scroll-cue svg {
  width: 12px;
  height: 20px;
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- 2. Los detalles ---------- */
.details {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(184 149 90 / .08), transparent 70%),
    var(--ink);
  padding: clamp(80px, 16vw, 130px) var(--gutter);
  text-align: center;
}

.details__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* Nota de María: texto grande que se ilumina palabra a palabra al hacer scroll */
.statement {
  max-width: 40rem;
  margin: 0 auto;
}
.statement__text {
  margin: 0 0 .9em;
  font-size: clamp(1.7rem, 7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--cream);
  text-wrap: balance;
}
.statement__text .word { display: inline; }
.has-gsap .statement__text .word { opacity: .16; }

.statement__signature {
  margin: .3em 0 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--gold-light);
}

/* Separador: filete dorado con destello */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 220px;
  margin: clamp(56px, 12vw, 88px) auto;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(184 149 90 / .5);
}
.divider svg { width: 12px; height: 12px; }

.details__list {
  margin: 48px 0 44px;
  display: grid;
  gap: 0;
}

.detail {
  position: relative;
  padding: 26px 0;
}
/* separador: filete dorado con destello */
.detail + .detail::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 14px;
  background: var(--ink);
  color: var(--gold);
  font-size: .7rem;
}
.detail + .detail {
  border-top: 1px solid rgb(184 149 90 / .35);
}

.detail dt {
  margin-bottom: 8px;
  font-family: var(--font-type);
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.detail dd {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  line-height: 1.25;
  color: var(--cream);
}
.detail address {
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-type);
  font-size: .9rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgb(244 236 221 / .72);
}

@media (min-width: 760px) {
  .details__list {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .detail { padding: 8px 28px; }
  .detail + .detail {
    border-top: 0;
    border-left: 1px solid rgb(184 149 90 / .35);
  }
  .detail + .detail::before {
    top: 50%;
    left: 0;
    padding: 10px 0;
  }
}

/* ---------- Acciones de los detalles ---------- */
.details__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--font-type);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn svg { width: 20px; height: 12px; transition: transform .3s var(--ease-out); }

.btn--ghost {
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
}
.btn--ghost:active { background: rgb(184 149 90 / .12); }

.btn--solid {
  width: 100%;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
}
.btn--solid:active { transform: scale(.985); background: var(--burgundy-deep); }

/* hover solo donde hay ratón: en iPhone se quedaría "pegado" tras tocar */
@media (hover: hover) {
  .btn--ghost:hover { background: rgb(184 149 90 / .12); }
  .btn--ghost:hover svg { transform: translateX(4px); }
  .btn--solid:hover { background: var(--burgundy-deep); }
  .choice__option:hover span { border-color: var(--burgundy); }
}
.btn--solid[disabled] { opacity: .6; cursor: progress; }

/* ---------- 3. El plan (carta de cócteles) ---------- */
.plan {
  display: flex;
  justify-content: center;
  padding: clamp(80px, 14vw, 120px) var(--gutter);
}

.card--menu { max-width: 500px; }

.menu__intro {
  margin: 12px auto 34px;
  max-width: 30ch;
  font-size: 1.02rem;
  font-style: italic;
  color: rgb(92 15 23 / .85);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  text-align: left;
}

/* Nombre ........ valor, como en una carta */
.menu__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.menu__name {
  font-size: clamp(1.2rem, 5vw, 1.4rem);
  letter-spacing: .02em;
}
.menu__dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 1.5px dotted rgb(92 15 23 / .45);
  transform: translateY(-5px);
}
.menu__value {
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
.menu__mark {
  width: 11px;
  height: 11px;
  color: var(--gold-ink);
  align-self: center;
}
.menu__desc {
  margin: 4px 0 0;
  text-wrap: pretty;
  font-family: var(--font-type);
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgb(92 15 23 / .75);
}

.menu__total {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgb(92 15 23 / .35);
  text-align: left;
}
.menu__total .menu__name {
  font-style: italic;
}
.menu__total .menu__value {
  font-size: 1.25rem;
}

/* ---------- Cinta dorada en movimiento ---------- */
/* El envoltorio recorta la cinta girada: sin él, en iPhone la página
   se podría desplazar de lado o alejar el zoom. */
.ticker-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 26px 0;
  margin: -46px 0;
}
.ticker {
  width: 110%;
  margin-left: -5%;
  padding: 12px 0;
  overflow: hidden;
  background: var(--gold-light);
  color: var(--burgundy-deep);
  transform: rotate(-2deg);
  box-shadow: 0 6px 14px rgb(0 0 0 / .35);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker span {
  padding: 0 22px;
  font-family: var(--font-type);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--burgundy);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Cuenta atrás ---------- */
.countdown {
  padding: clamp(110px, 20vw, 160px) var(--gutter) clamp(24px, 6vw, 48px);
  text-align: center;
  /* brillo que se desvanece dentro de la sección: sin bordes visibles */
  background:
    radial-gradient(closest-side at 50% 50%, rgb(184 149 90 / .09), transparent),
    var(--ink);
}

.countdown__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 640px;
  margin: 40px auto 26px;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.countdown__unit + .countdown__unit {
  border-left: 1px solid rgb(184 149 90 / .35);
}
.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 12vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cream);
}
.countdown__unit--accent .countdown__num { color: var(--gold-light); }
.countdown__label {
  font-family: var(--font-type);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: .26em; /* compensa el espaciado final */
}

.countdown__note {
  margin: 0 auto 34px;
  max-width: 30ch;
  text-wrap: balance;
  font-style: italic;
  font-size: 1.1rem;
  color: rgb(244 236 221 / .8);
}

/* El día de la fiesta, a partir de las 21:00 */
.countdown.is-live .countdown__clock { display: none; }

.btn--gold {
  border: 1px solid var(--gold-light);
  background: var(--gold-light);
  color: var(--ink);
}
.btn--gold:active { transform: scale(.985); background: var(--gold); }
@media (hover: hover) {
  .btn--gold:hover { background: var(--gold); border-color: var(--gold); }
}

/* ---------- 4. Confirmación ---------- */
.rsvp {
  display: flex;
  justify-content: center;
  padding: clamp(64px, 12vw, 110px) var(--gutter) clamp(80px, 14vw, 120px);
  background: var(--ink);
}

.card--rsvp { max-width: 540px; }

.rsvp__intro {
  margin: 12px auto 30px;
  max-width: 34ch;
  font-size: 1.02rem;
  font-style: italic;
  color: rgb(92 15 23 / .85);
}

.form {
  text-align: left;
  display: grid;
  gap: 22px;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--font-type);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.optional {
  letter-spacing: .08em;
  text-transform: none;
  color: var(--gold-ink);
}

/* Campos tipo "línea para escribir" en una tarjeta impresa */
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgb(92 15 23 / .45);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;   /* ≥16px evita el zoom automático en iOS */
  line-height: 1.4;
  transition: border-color .25s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
  box-shadow: 0 1px 0 0 var(--burgundy);
}
.field [aria-invalid="true"] { border-bottom-color: #a3261b; }

/* Sí / No como dos opciones tipo píldora */
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice__option { position: relative; cursor: pointer; }
.choice__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid rgb(92 15 23 / .45);
  border-radius: 999px;
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.choice__option input:checked + span {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}
.choice__option input:focus-visible + span {
  outline: 1.5px solid var(--burgundy);
  outline-offset: 3px;
}

.field__error {
  margin: 8px 0 0;
  font-size: .9rem;
  font-style: italic;
  color: #a3261b;
}

@keyframes fieldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn--solid { margin-top: 8px; }

.form__status {
  margin: 0;
  min-height: 1.4em;
  text-align: center;
  font-size: .95rem;
  font-style: italic;
  color: #a3261b;
}
.form__status:empty { display: none; }

/* Estado tras confirmar */
.rsvp__done {
  padding: 6px 0 4px;
  outline: none;
  animation: fieldIn .6s var(--ease-out);
}
.rsvp__martini {
  width: 92px;
  height: auto;
  aspect-ratio: 200 / 240;
  margin: 0 auto 18px;
  color: var(--burgundy);
  transform-origin: 50% 90%;
  animation: toast 1.4s var(--ease-out) .2s both;
}
@keyframes toast {
  0%   { transform: rotate(0); }
  35%  { transform: rotate(-14deg); }
  60%  { transform: rotate(6deg); }
  80%  { transform: rotate(-2deg); }
  100% { transform: rotate(0); }
}
.rsvp__done-kicker { margin-bottom: .4rem; }
.rsvp__done-title {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 1.1;
}
.rsvp__done-text {
  margin: 12px auto 0;
  max-width: 30ch;
  font-style: italic;
}

/* ---------- Barra superior translúcida (estilo Apple) ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    calc(8px + env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    8px
    max(var(--gutter), env(safe-area-inset-left));
  background: rgb(20 11 11 / .62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(184 149 90 / .2);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
}
.topbar.is-shown { transform: none; }

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
}
.topbar__script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-light);
  line-height: 1;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--ink);
  font-family: var(--font-type);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
/* en la propia sección de confirmar, el botón sobra */
.topbar.on-rsvp .topbar__cta {
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
}

/* ---------- 5. Cierre ---------- */
.closing {
  padding: clamp(80px, 14vw, 120px) var(--gutter) calc(72px + env(safe-area-inset-bottom));
  text-align: center;
}
.closing__sparkles {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
}
.closing__sparkles svg { width: 10px; height: 10px; }
.closing__sparkles svg:nth-child(2) { width: 16px; height: 16px; }

.closing__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 11vw, 4rem);
  line-height: 1.1;
  color: var(--gold-light);
}
.closing__meta {
  margin: 18px 0 0;
  font-family: var(--font-type);
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgb(244 236 221 / .6);
}

/* =========================================================
   Movimiento (solo con JS activo)
   ========================================================= */

/* --- Telón --- */
.curtain { display: none; }

.js .curtain {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  cursor: pointer;
  touch-action: none;
}
.js.curtain-open .curtain { pointer-events: none; }

.curtain__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background-color: var(--burgundy);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgb(255 140 140 / .14), transparent 70%),
    linear-gradient(180deg, transparent 75%, rgb(0 0 0 / .45)),
    repeating-linear-gradient(90deg,
      rgb(0 0 0 / .42) 0,
      rgb(0 0 0 / 0) 22px,
      rgb(255 255 255 / .08) 36px,
      rgb(0 0 0 / 0) 50px,
      rgb(0 0 0 / .42) 72px);
  transition: transform 1.7s var(--ease-curtain);
  will-change: transform;
}
.curtain__panel--left  { left: 0;  box-shadow: inset -24px 0 30px -10px rgb(0 0 0 / .6); }
.curtain__panel--right { right: 0; box-shadow: inset 24px 0 30px -10px rgb(0 0 0 / .6); }

.curtain-open .curtain__panel--left  { transform: translateX(-102%); }
.curtain-open .curtain__panel--right { transform: translateX(102%); }

.curtain__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 2.6rem;
  letter-spacing: .1em;
  transition: opacity .5s var(--ease-out);
  animation: markIn 1s var(--ease-out) both;
}
.curtain__sparkle { width: 12px; height: 12px; }
.curtain-open .curtain__mark { opacity: 0; }
@keyframes markIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.js.is-locked { overflow: hidden; }

/* --- Entrada de la tarjeta de apertura (escalonada) --- */
.js .hero__item {
  opacity: 0;
  transform: translateY(12px);
}
.js .card--hero {
  opacity: 0;
  transform: translateY(24px) scale(.985);
}
.js .scroll-cue { opacity: 0; }

.js.is-revealed .card--hero {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.js.is-revealed .hero__item {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js.is-revealed .hero__item:nth-child(1) { transition-delay: .35s; }
.js.is-revealed .hero__pre               { transition-delay: .5s; }
.js.is-revealed .hero__name              { transition-delay: .7s; }
.js.is-revealed .hero__martini           { transition-delay: .95s; }
.js.is-revealed .est                     { transition-delay: 1.1s; }
.js.is-revealed .hero__date              { transition-delay: 1.25s; }
.js.is-revealed .scroll-cue {
  opacity: .85;
  transition: opacity 1s var(--ease-out) 1.8s;
}

/* --- Aparición al hacer scroll --- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js .details__list .detail:nth-child(2) { transition-delay: .12s; }
.js .details__list .detail:nth-child(3) { transition-delay: .24s; }

/* --- Movimiento reducido: todo visible y sin desplazamientos --- */
@media (prefers-reduced-motion: reduce) {
  .js .curtain { display: none; }
  .js .hero__item,
  .js .card--hero,
  .js .scroll-cue,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .topbar,
  .topbar__cta { transition: none; }
  .ticker__track { animation: none; }
  .scroll-cue svg,
  .rsvp__martini,
  .rsvp__done { animation: none; }
}
