/* =========================================================================
   Arlenys & Ever — wedding invitation
   Design system: "Timeless Botanical Stationery" (see DESIGN.md)
   Plain CSS · mobile-first · no framework
   ========================================================================= */

/* ---------- Custom fonts · Eyesome Script + Eyesome (assets/fonts/*.otf).
   To use smaller .woff2, convert the files and change the url()s below.
   Allura + Playfair are the fallbacks. See assets/fonts/README.md. ---------- */
@font-face {
  font-family: "Eyesome Script";
  src: url("assets/fonts/eyesome-script.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eyesome";
  src: url("assets/fonts/eyesome-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* colour */
  --linen: #faf8f5;
  --paper: #ffffff;
  --paper-warm: #f2efeb;
  --ink: #242d35;
  --ink-soft: #5b6873;
  --blue: #6c8299;
  --blue-dark: #5b6e82;
  --gold: #c5a880;
  --gold-text: #a1845c;
  --mist: #a8bac7;
  --hairline: #ebe6df;
  --gold-frame: rgba(197, 168, 128, .38);
  --field-border: #d9d3ca;
  --night: #232e37;
  --night-2: #1b242c;
  --on-night: #f2f0ed;
  --on-night-soft: #aeb9c1;

  /* type */
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Eyesome Script", "Allura", "Playfair Display", cursive;
  --display: "Eyesome", "Playfair Display", "Georgia", serif;
  --fs-display: 2.5rem;
  --fs-h1: 1.75rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-label: .75rem;
  --fs-label-sm: .6875rem;

  /* spacing */
  --sp-2xs: .25rem;
  --sp-xs: .5rem;
  --sp-sm: .75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --margin: 1.25rem;
  --column: 30rem;

  /* radius */
  --r-card: 1rem;
  --r-input: .5rem;
  --r-pill: 9999px;

  /* elevation */
  --e1: 0 4px 20px -2px rgba(108, 130, 153, .10), 0 1px 3px 0 rgba(108, 130, 153, .05);
  --e2: 0 12px 32px -4px rgba(108, 130, 153, .14), 0 4px 8px -2px rgba(108, 130, 153, .07);
  --e3: 0 20px 48px -6px rgba(36, 45, 53, .16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--blue); text-underline-offset: .18em; }
::selection { background: rgba(197, 168, 128, .3); color: var(--ink); }

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

[hidden] { display: none !important; }

/* =========================================================================
   Animated backdrop
   ========================================================================= */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f3ede2 0%, var(--linen) 30%, #eef1f0 70%, #f1ebe0 100%);
}
.backdrop__wash {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(42% 32% at 10% 6%, rgba(108, 130, 153, .40), transparent 70%),
    radial-gradient(46% 36% at 94% 16%, rgba(197, 168, 128, .38), transparent 72%),
    radial-gradient(52% 42% at 82% 74%, rgba(168, 186, 199, .44), transparent 72%),
    radial-gradient(44% 34% at 4% 88%, rgba(197, 168, 128, .34), transparent 72%),
    radial-gradient(60% 50% at 50% 50%, rgba(129, 150, 138, .16), transparent 75%);
  animation: washDrift 42s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes washDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(3%, -2.5%, 0) scale(1.12) rotate(1.5deg); }
  100% { transform: translate3d(-2.5%, 3%, 0) scale(1.06) rotate(-1deg); }
}
.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(59, 55, 47, .10) 100%);
}

/* ---------- Botanical parallax layer ---------- */
.botanical {
  position: fixed;
  inset: -8% 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.sprig { position: absolute; height: auto; }
.sprig--a { top: 1%;  left: -16%;  width: 44vw; max-width: 230px; color: var(--blue); opacity: .16; }
.sprig--b { top: 26%; right: -18%; width: 46vw; max-width: 240px; color: var(--gold-text); opacity: .17; transform: scaleX(-1); }
.sprig--c { top: 55%; left: -14%;  width: 38vw; max-width: 200px; color: var(--blue); opacity: .13; }
.sprig--d { top: 80%; right: -16%; width: 42vw; max-width: 220px; color: var(--gold-text); opacity: .16; }

/* =========================================================================
   Layout
   ========================================================================= */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--column);
  margin-inline: auto;
  padding: var(--sp-xl) var(--margin) 0;
}

.section { position: relative; }
.section + .section,
.section + .band,
.band + .section,
.band + .band { margin-top: var(--sp-3xl); }
.divider + .section { margin-top: 0; }

/* full-bleed bands escape the centred column */
.band {
  position: relative;
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-block: var(--sp-3xl);
}
.band__inner {
  max-width: var(--column);
  margin-inline: auto;
  padding-inline: var(--margin);
  text-align: center;
}

/* ---------- Section divider (the "vine thread") ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-block: var(--sp-xl);
  color: var(--gold);
}
.divider span {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(197, 168, 128, .55), transparent);
}
.divider svg { width: 20px; height: 20px; opacity: .8; }

/* =========================================================================
   Card system  (one quiet treatment everywhere)
   ========================================================================= */
.card {
  position: relative;
  padding: var(--sp-xl);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--e1), 0 0 0 1px var(--hairline);
}
.card::before { /* inner gold-foil hairline frame */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-frame);
  border-radius: calc(var(--r-card) - 4px);
  pointer-events: none;
}
.card--center { text-align: center; }
.card--hero { text-align: center; }

/* =========================================================================
   Typography helpers
   ========================================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--gold { color: var(--gold-text); }
.eyebrow__rule { width: 1.75rem; height: 1px; background: currentColor; opacity: .5; }

.head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: var(--sp-xs);
}
.head--invert { color: var(--on-night); }
.head__sub {
  margin-top: var(--sp-2xs);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.names {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  font-size: clamp(2.9rem, 13.5vw, 5rem);
  line-height: 1.16;
  letter-spacing: 0;
  margin-top: var(--sp-md);
  color: var(--ink);
  text-wrap: balance;
}
.card--hero > .eyebrow:first-child { margin-top: var(--sp-xs); }
.names__amp { color: var(--gold-text); font-size: .92em; padding-inline: .04em; }

.flourish { display: flex; justify-content: center; margin: var(--sp-sm) auto var(--sp-md); color: var(--gold); }
.flourish svg { width: 108px; height: 15px; }

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto var(--sp-lg);
}
.verse--sm { font-size: var(--fs-body); max-width: 40ch; margin-bottom: var(--sp-xl); }

.fineprint {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-label-sm);
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.mono { display: flex; flex-direction: column; align-items: center; margin-inline: auto; width: 5.5rem; color: var(--gold); position: relative; }
.mono svg { width: 100%; height: auto; }
.mono__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--gold-text);
}
.mono--sm { width: 4rem; color: var(--gold); }
.mono--sm .mono__initials { color: #d9c39f; font-size: .8rem; }

.dot { width: .55rem; height: .55rem; border-radius: var(--r-pill); flex: none; display: inline-block; }
.dot--mist { background: var(--mist); }
.dot--ink { background: var(--ink); }
.dot--blue { background: var(--blue); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-input);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s ease, box-shadow .25s ease, transform .1s ease;
}
.btn svg { width: 1rem; height: 1rem; flex: none; }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; padding-block: .95rem; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(108, 130, 153, .25); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--gold { background: var(--linen); color: var(--gold-text); border-color: var(--gold); }
.btn--gold:hover { background: rgba(197, 168, 128, .1); }

.btn--ghost {
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--field-border);
  letter-spacing: .06em;
}
.btn--ghost:hover { background: var(--paper-warm); }
.btn--ghost.is-done { color: var(--blue); border-color: var(--blue); }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

/* =========================================================================
   Hero carousel
   ========================================================================= */
.carousel { position: relative; margin-top: var(--sp-xs); }
.carousel__track {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--gold-frame);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide.is-active { opacity: 1; }
.carousel__slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: .7rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
}
.carousel__dots button {
  width: .45rem; height: .45rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .5);
  transition: background-color .3s ease, width .3s ease;
}
.carousel__dots button.is-active { background: #fff; width: 1.1rem; }

/* =========================================================================
   Save the date — triptych + countdown
   ========================================================================= */
.triptych {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: var(--sp-lg);
}
.triptych__cell {
  position: relative;
  aspect-ratio: 3 / 4.5;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.triptych__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.triptych__cell::after {           /* scrim so the numeral stays legible */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(15, 21, 30, .40) 0%, rgba(15, 21, 30, .16) 32%,
      rgba(15, 21, 30, .40) 58%, rgba(15, 21, 30, .9) 100%),
    rgba(26, 36, 50, .26);
}
.triptych__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 13vw, 5rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  padding-bottom: .4rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4);
}
.triptych__caption {
  margin-top: var(--sp-md);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, .92);
}

.countdown {
  margin-top: var(--sp-lg);
  padding: var(--sp-md);
  border-radius: .75rem;
  background: rgba(168, 186, 199, .14);
  border: 1px solid rgba(108, 130, 153, .22);
}
.countdown__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-sm);
}
.countdown__title svg { width: .9rem; height: .9rem; color: var(--gold-text); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xs); }
.countdown__unit {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: .5rem;
  padding: .5rem .25rem;
  text-align: center;
}
.countdown__unit span {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.countdown__unit small {
  font-size: .5625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================================
   Location
   ========================================================================= */
.diamond {
  width: 3rem; height: 3rem;
  margin: 0 auto var(--sp-sm);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold);
  background: var(--linen);
  transform: rotate(45deg);
}
.diamond svg { width: 1.25rem; height: 1.25rem; color: var(--blue); transform: rotate(-45deg); }

.lugar__name { font-weight: 600; color: var(--blue); font-size: var(--fs-body-lg); margin-top: var(--sp-xs); }
.lugar__addr { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--sp-xs); line-height: 1.6; }
.lugar__addr em { font-size: var(--fs-label-sm); }

/* =========================================================================
   Dress code
   ========================================================================= */
.dresscode-visual {
  margin: var(--sp-lg) 0 var(--sp-lg);
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-warm);
}
.dresscode-visual img { width: 100%; height: auto; display: block; }
.dresscode-hint {
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-label-sm);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.pair { display: grid; gap: var(--sp-md); text-align: left; }
.pair__col {
  padding: var(--sp-md);
  border-radius: .75rem;
  background: rgba(168, 186, 199, .1);
  border: 1px solid rgba(108, 130, 153, .18);
}
.pair__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}
.pair__col p { font-size: var(--fs-sm); color: var(--ink-soft); }
.dresscode-inspo {
  display: flex;
  width: fit-content;
  margin: var(--sp-lg) auto 0;
}
.dresscode-inspo svg { width: 1.05rem; height: 1.05rem; }
.reserve-note {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: .6rem;
  background: rgba(197, 168, 128, .14);
  border: 1px solid var(--gold-frame);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
}
.reserve-note svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--gold-text); }
.reserve-note strong { color: var(--gold-text); font-weight: 600; }

/* =========================================================================
   Contrasting full-bleed bands  (night · blue · tint)
   ========================================================================= */
.band--night,
.band--blue,
.band--tint {
  isolation: isolate;
  overflow: hidden;
}
.band--night { color: var(--on-night); background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.band--blue  { color: #fff;            background: linear-gradient(168deg, #74899f 0%, #5f748a 55%, #556a80 100%); }
.band--tint  {                         background: linear-gradient(172deg, #e9eef1 0%, #e2eaef 45%, #efe8db 100%); }

.band--night::before, .band--night::after,
.band--blue::before,  .band--blue::after,
.band--tint::before,  .band--tint::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 4rem;
  z-index: 0;
  pointer-events: none;
}
.band--night::before, .band--blue::before, .band--tint::before { top: 0;    background: linear-gradient(var(--linen), transparent); opacity: .55; }
.band--night::after,  .band--blue::after,  .band--tint::after  { bottom: 0; background: linear-gradient(transparent, var(--linen)); opacity: .55; }
.band--footer::after { display: none; }
.band--night > *, .band--blue > *, .band--tint > * { position: relative; z-index: 1; }

/* headings / eyebrows on dark bands */
.band--blue .eyebrow,
.band--night .eyebrow { color: rgba(255, 255, 255, .8); }
.band--blue .eyebrow__rule,
.band--night .eyebrow__rule { background: currentColor; }
.band--blue .head { color: #fff; }
.band--blue .head__sub { color: rgba(255, 255, 255, .78); }

/* countdown on the blue band */
.band--blue .countdown { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.band--blue .countdown__title,
.band--blue .countdown__title svg { color: rgba(255, 255, 255, .8); }
.band--blue .countdown__unit { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .18); }
.band--blue .countdown__unit span { color: #fff; }
.band--blue .countdown__unit small { color: rgba(255, 255, 255, .68); }

.band__eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d9c39f;
}
.band--night .head { margin-bottom: var(--sp-lg); }

/* ---------- Stacked title (script watermark behind a serif heading) ---------- */
.stack-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--sp-lg) 0 var(--sp-2xl);
  min-height: 4.5rem;
}
.stack-title__ghost {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--script);
  font-size: clamp(3.5rem, 17vw, 5.75rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(232, 216, 188, .32);
  pointer-events: none;
  z-index: 0;
}
.stack-title__fore {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-night);
  padding-left: .18em;
}

.band__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-body-lg);
  color: var(--on-night-soft);
  margin-top: var(--sp-lg);
}

.gallery { display: flex; gap: var(--sp-sm); align-items: flex-start; }
.gallery__col { flex: 1; display: flex; flex-direction: column; gap: var(--sp-sm); min-width: 0; }
.gallery__row { display: flex; gap: var(--sp-sm); }
.gallery__row .gallery__item { flex: 1; aspect-ratio: 1 / 1; }
.gallery__item {
  border-radius: .6rem;
  overflow: hidden;
  box-shadow: var(--e2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--lg { aspect-ratio: 3 / 4; }
.gallery__item--md { aspect-ratio: 4 / 3; }
.gallery__item--tall { aspect-ratio: 4 / 5; }

/* =========================================================================
   Timeline
   ========================================================================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: var(--sp-lg) 0 0;
  text-align: left;
}
.timeline__item {
  position: relative;
  padding: 0 0 var(--sp-lg) var(--sp-lg);
  border-left: 1px solid #e2d9cc;
  margin-left: .5rem;
}
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__node {
  position: absolute;
  left: calc(-.5rem + .5px);
  top: .2rem;
  width: 1rem; height: 1rem;
  border-radius: var(--r-pill);
  background: var(--linen);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}
.timeline__node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--blue);
}
.timeline__time {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-body-lg);
}
.timeline__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .1rem;
}
.timeline__item p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .2rem; }

/* =========================================================================
   Registry
   ========================================================================= */
.gift {
  text-align: left;
  padding: var(--sp-md);
  border-radius: .75rem;
  background: rgba(168, 186, 199, .12);
  border: 1px solid rgba(108, 130, 153, .2);
  margin-top: var(--sp-lg);
}
.gift__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--hairline);
}
.gift__title { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.25; }
.gift__rows { display: grid; gap: .4rem; margin: var(--sp-sm) 0; }
.gift__rows > div { display: flex; justify-content: space-between; gap: var(--sp-sm); font-size: var(--fs-sm); }
.gift__rows dt { color: var(--ink-soft); }
.gift__rows dd { font-weight: 500; text-align: right; }
.mono-num { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; }
.gift .btn--ghost { width: 100%; margin-top: var(--sp-xs); }

.gift--qr { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; }
.gift__eyebrow {
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.qr {
  margin: var(--sp-sm) 0;
  padding: .6rem;
  border-radius: .6rem;
  border: 2px solid var(--gold-frame);
  background: #fff;
}
.qr img { width: 9rem; height: auto; display: block; border-radius: .15rem; }
.gift__note { font-size: var(--fs-label-sm); color: var(--ink-soft); }

.envelope-note {
  display: flex;
  gap: var(--sp-sm);
  text-align: left;
  align-items: flex-start;
  margin-top: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: .75rem;
  background: rgba(197, 168, 128, .08);
  border: 1px solid var(--gold-frame);
}
.envelope-note svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--gold-text); margin-top: .1rem; }
.envelope-note h4 { font-size: var(--fs-sm); font-weight: 600; }
.envelope-note p { font-size: var(--fs-label-sm); color: var(--ink-soft); line-height: 1.5; }

/* =========================================================================
   RSVP form
   ========================================================================= */
.form { text-align: left; margin-top: var(--sp-lg); display: grid; gap: var(--sp-md); }
.field { display: grid; gap: .4rem; border: 0; padding: 0; }
.field > label,
.field > legend {
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0;
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: var(--r-input);
  padding: .7rem .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 3rem; }
.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(168, 186, 199, .35);
}

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xs); }
.choice__opt {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .6rem;
  border: 1px solid var(--field-border);
  border-radius: var(--r-input);
  background: #fff;
  font-size: var(--fs-label-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice__opt:hover { background: var(--paper-warm); }
.choice__opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem; height: 1.05rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--r-pill);
  display: grid;
  place-content: center;
  flex: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.choice__opt input::after {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: var(--r-pill);
  background: #fff;
  transform: scale(0);
  transition: transform .15s ease;
}
.choice__opt input:checked { background: var(--blue); border-color: var(--blue); }
.choice__opt input:checked::after { transform: scale(1); }
.choice__opt:has(input:checked) { border-color: var(--blue); background: rgba(108, 130, 153, .08); }

.form__error { font-size: var(--fs-label-sm); color: #ba1a1a; font-weight: 500; }

.form__success {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  border-radius: .75rem;
  background: rgba(140, 156, 138, .14);
  border: 1px solid rgba(88, 107, 87, .4);
  color: #3f5240;
  text-align: left;
}
.form__success strong { font-family: var(--serif); font-size: var(--fs-body-lg); display: block; margin-bottom: .2rem; }
.form__success p { font-size: var(--fs-sm); }

.form__alt {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--hairline);
}
.form__alt p { font-size: var(--fs-label-sm); color: var(--ink-soft); margin-bottom: .3rem; }
.link-wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1f8a4c;
  text-decoration: none;
}
.link-wa:hover { text-decoration: underline; }
.link-wa svg { width: 1.1rem; height: 1.1rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.band--footer {
  margin-top: var(--sp-3xl);
  padding-bottom: var(--sp-xl);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.band--footer .mono { margin-bottom: var(--sp-sm); }
.footer__names {
  font-family: var(--script);
  font-style: normal;
  text-transform: none;
  font-size: clamp(2.6rem, 10vw, 3.4rem);
  line-height: 1;
  color: #d9c39f;
}
.footer__thanks {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-night-soft);
  margin-top: var(--sp-xs);
}
.footer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: var(--sp-md);
  font-size: var(--fs-label-sm);
  color: var(--on-night-soft);
}
.footer__meta i { color: var(--gold); font-style: normal; }

/* =========================================================================
   Envelope intro
   ========================================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  padding: var(--margin);
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(197, 168, 128, .12), transparent 70%),
    var(--linen);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
html.intro-seen .intro { display: none; }
html.intro-active body { overflow: hidden; }

.intro.is-open { opacity: 0; transform: translateY(-2%); visibility: hidden; pointer-events: none; }

.intro__scene { perspective: 1100px; }
.envelope {
  position: relative;
  width: min(76vw, 300px);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
}
.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(160deg, #efe9df, #e3dccd);
  box-shadow: var(--e2);
}
.envelope__card {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 8%;
  bottom: 8%;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--gold-frame);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  box-shadow: 0 6px 18px rgba(36, 45, 53, .12);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .35s;
}
.envelope__mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold-text);
}
.envelope__mono span { color: var(--mist); padding-inline: .1em; }
.envelope__eyebrow {
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.envelope__front {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 45%),
    linear-gradient(160deg, #e3dbcb, #d1c7b1);
  clip-path: polygon(0 30%, 50% 100%, 100% 30%, 100% 100%, 0 100%);
  box-shadow: inset 0 2px 6px rgba(120, 96, 60, .18);
  z-index: 3;
}
.envelope__front::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 30%, 50% 100%, 0 100%);
  background: rgba(120, 96, 60, .06);
}
.envelope__front::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 30%, 50% 100%, 100% 100%);
  background: rgba(255, 255, 255, .14);
}
.envelope__flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 62%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .3), transparent 55%),
    linear-gradient(160deg, #efe8dc, #ddd3bf);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transform: rotateX(0deg);
  transition: transform .9s cubic-bezier(.4, 0, .2, 1);
  filter: drop-shadow(0 3px 4px rgba(120, 96, 60, .22));
  z-index: 5;
  backface-visibility: hidden;
}
.seal {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4.2rem;
  height: 4.2rem;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  color: #b6763f;
  z-index: 8;
  transition: transform .5s ease, opacity .5s ease;
}
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(120, 60, 25, .3)); }
.seal__mono { font-family: var(--serif); font-size: 20px; fill: #f4e4d0; font-style: italic; }
.seal:hover { transform: translate(-50%, -50%) scale(1.04); }

.envelope.is-open .envelope__flap { transform: rotateX(-180deg); z-index: 1; }
.envelope.is-open .seal { opacity: 0; transform: translate(-50%, -50%) scale(.6); pointer-events: none; }
.envelope.is-open .envelope__card { transform: translateY(-64%); z-index: 4; }

/* ---- Lazo de satén — envuelve el sobre cerrado y se desata al abrir ----
   El estado inicial (visible, atado) es puro CSS. La coreografía de soltar +
   caída la ejecuta app.js con la Web Animations API sobre estas capas
   (.bow__fall / .bow__drift / .bow__wobble = ejes de movimiento independientes). */
.envelope__ribbon {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}
.ribbon__strip {
  position: absolute;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 44%, rgba(118, 92, 54, .16)),
    linear-gradient(105deg, #e6d4ac 0%, #d5be8e 46%, #bfa471 100%);
  box-shadow:
    0 10px 18px -8px rgba(118, 92, 54, .34),
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -3px 5px rgba(118, 92, 54, .2);
  will-change: transform, opacity;
}
.ribbon__strip::after {                       /* reflejo de satén */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .4) 50%, transparent 66%);
  opacity: .7;
}
.ribbon__strip--h { left: -6%; right: -6%; top: 40.5%; height: 14%; }
.ribbon__strip--v {
  top: -6%; bottom: -6%; left: 43%; width: 14%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 44%, rgba(118, 92, 54, .16)),
    linear-gradient(195deg, #e6d4ac 0%, #d5be8e 46%, #bfa471 100%);
}
.ribbon__strip--v::after {
  background: linear-gradient(195deg, transparent 34%, rgba(255, 255, 255, .4) 50%, transparent 66%);
}

.ribbon__bow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 64%;
  aspect-ratio: 140 / 128;
  transform: translate(-50%, -50%);
}
.ribbon__bow .bow__fall,
.ribbon__bow .bow__drift,
.ribbon__bow .bow__wobble { position: absolute; inset: 0; will-change: transform, opacity; }
.ribbon__bow svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 7px 11px rgba(120, 96, 60, .32));
}
.ribbon__bow .bow__part { transform-box: fill-box; }
.bow__loop--l { transform-origin: 98% 47%; }
.bow__loop--r { transform-origin: 2% 47%; }
.bow__knot { transform-origin: 50% 18%; }
.bow__tail--l { transform-origin: 96% 2%; }
.bow__tail--r { transform-origin: 4% 2%; }

.intro__hint {
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.intro__skip {
  position: absolute;
  right: var(--margin);
  bottom: var(--margin);
  background: none;
  border: 0;
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Responsive — tablet / desktop
   ========================================================================= */
@media (min-width: 600px) {
  .btn-row { flex-direction: row; justify-content: center; }
  .pair { grid-template-columns: 1fr 1fr; }
  .gift--qr { }
}

@media (min-width: 768px) {
  :root {
    --fs-display: 3.5rem;
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --margin: 3rem;
    --column: 34rem;
  }
  .page { padding-top: var(--sp-3xl); }
  .card { padding: var(--sp-2xl); }
  .section + .section,
  .section + .band,
  .band + .section { margin-top: var(--sp-4xl); }
  .band { padding-block: var(--sp-4xl); }
  .sprig--a { max-width: 300px; }
  .sprig--b { max-width: 320px; }
  .sprig--c, .sprig--d { max-width: 280px; }
}

@media (min-width: 1024px) {
  :root { --column: 40rem; }
  .gallery { gap: var(--sp-md); }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop__wash { animation: none; }
  .carousel__slide.is-active img { animation: none; transform: none; }
  .carousel__slide { transition: opacity .3s ease; }
  .intro__hint { animation: none; opacity: .7; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .envelope__ribbon { display: none; }
  .envelope__flap,
  .envelope__card,
  .seal { transition-duration: .01ms; }
  .intro { transition-duration: .2s; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
