/* ─────────────────────────────────────────────────────────────────
   FORTY IN BLACK — premium mobile-first invitation
   ─────────────────────────────────────────────────────────────── */

:root {
  --black: #0A0908;
  --charcoal: #15110E;
  --coal: #1f1a16;
  --paper: #d8cbb5;
  --bone: #f0e6d2;
  --amber: #E89148;
  --amber-bright: #FFB066;
  --amber-deep: #B5651D;
  --copper: #C76E3A;
  --gold: #D4A55B;

  --serif-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --serif-italic: "Cormorant Garamond", "Cormorant", "Didot", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #050403;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  min-height: 100dvh;          /* iOS Safari friendly dynamic viewport */
  min-height: 100vh;           /* fallback for older browsers */
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;            /* clean vertical scroll when content overflows */
  position: relative;
}

/* ── Frame ───────────────────────────────────────────────────────── */

.invite {
  position: relative;
  z-index: 1;                  /* sits above fixed bg layers */
  width: 100%;
  max-width: 480px;            /* mobile baseline (invitation feel) */
  margin: 0 auto;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  height: auto;
  background: transparent;     /* atmosphere shows through */
  overflow-x: clip;            /* clip horizontally — without blocking sticky/fixed kids */
  overflow-y: visible;
  display: block;              /* plain block; centered via margin auto */
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Fallback: browsers without overflow:clip fall back to hidden, which is fine here. */
@supports not (overflow: clip) {
  .invite { overflow-x: hidden; }
}

/* Tablet — slightly wider for better reading rhythm */
@media (min-width: 600px) {
  .invite { max-width: 540px; }
}
/* Desktop — wider still per spec */
@media (min-width: 1024px) {
  .invite { max-width: 620px; }
}

/* ── Atmospheric background layers ───────────────────────────── */

.bg {
  position: fixed;            /* covers full viewport — no black gutters on desktop */
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  z-index: 0;
}
.bg-base {
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, #1a120c 0%, #15110E 38%, #0A0908 75%, #050403 100%);
}
.bg-horizon {
  z-index: 2;
  background: radial-gradient(ellipse 80% 28% at 50% 102%, rgba(255,140,60,0.55) 0%, rgba(232,145,72,0.18) 35%, transparent 65%);
}
.bg-emberpool {
  z-index: 3;
  background: radial-gradient(ellipse 60% 35% at 78% 92%, rgba(255,160,80,0.35) 0%, rgba(232,145,72,0.10) 35%, transparent 65%);
}
.bg-spotlight {
  z-index: 3;
  background: radial-gradient(ellipse 65% 32% at 22% 10%, rgba(140,95,60,0.28) 0%, rgba(80,55,35,0.08) 40%, transparent 70%);
}
.bg-smoke {
  z-index: 4;
  opacity: 0.7;
  background:
    radial-gradient(ellipse 80% 14% at 50% 32%, rgba(170,130,95,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 14% at 80% 50%, rgba(150,110,80,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 12% at 18% 64%, rgba(140,100,75,0.12) 0%, transparent 70%);
}
.bg-vignette {
  z-index: 8;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.55) 92%, rgba(0,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 12%, transparent 82%, rgba(0,0,0,0.5) 100%);
}
.bg-speckle {
  z-index: 7;
  opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 17% 11%, rgba(255,200,140,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 22%, rgba(255,200,140,0.45), transparent 60%),
    radial-gradient(2px 2px at 35% 41%, rgba(255,180,110,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 58%, rgba(255,210,150,0.4), transparent 60%),
    radial-gradient(2.5px 2.5px at 24% 72%, rgba(255,170,90,0.65), transparent 60%),
    radial-gradient(2px 2px at 86% 78%, rgba(255,180,110,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 12% 88%, rgba(255,200,140,0.5), transparent 60%),
    radial-gradient(2.5px 2.5px at 55% 92%, rgba(255,160,80,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 76% 38%, rgba(255,210,150,0.45), transparent 60%),
    radial-gradient(2px 2px at 42% 64%, rgba(255,180,110,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 52%, rgba(255,200,140,0.4), transparent 60%),
    radial-gradient(2px 2px at 8% 56%, rgba(255,180,110,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 18%, rgba(255,200,140,0.4), transparent 60%),
    radial-gradient(2px 2px at 31% 86%, rgba(255,170,90,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 86%, rgba(255,210,150,0.45), transparent 60%),
    radial-gradient(2px 2px at 50% 50%, rgba(255,200,140,0.4), transparent 60%);
}

/* ── Edge marks ──────────────────────────────────────────────── */

.edge-mark {
  position: absolute;
  top: 0; bottom: 0;
  display: none;          /* hidden by default on mobile */
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(216,203,181,0.4);
  z-index: 20;
  white-space: nowrap;
  font-weight: 500;
}
.edge-left  { left: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
.edge-right { right: 12px; writing-mode: vertical-rl; }
.edge-dot {
  width: 3px; height: 3px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}

/* Show edge marks on wider screens (when there's room) */
@media (min-width: 500px) {
  .edge-mark { display: flex; }
}

/* ── Shared atoms ────────────────────────────────────────────── */

.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 60%;
  margin: 0 auto;
}
.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(216,203,181,0) 0%,
    rgba(216,203,181,0.55) 50%,
    rgba(216,203,181,0) 100%);
}
.rule-pip { flex: 0 0 auto; }
.pip-diamond {
  width: 7px; height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(232,145,72,0.6);
}
.pip-bar {
  width: 18px; height: 1px;
  background: var(--amber);
}

.eyebrow {
  font-family: var(--sans);
  font-size: clamp(10px, 2.8vw, 13px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  font-weight: 500;
  padding-left: 0.55em;
  text-align: center;
}

/* ── HERO ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 20;
  padding: clamp(36px, 9vw, 56px) 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-eyebrow {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 18px);
  align-items: center;
  width: 100%;
}

.monogram {
  width: 100%;
  margin: clamp(28px, 7vw, 48px) auto 0;
  text-align: center;
  filter: drop-shadow(0 0 40px rgba(232,145,72,0.35));
  overflow: visible;
}
.m40 {
  display: inline-block;
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(120px, 28vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  text-stroke: 2px var(--amber);
  max-width: 100%;
  overflow: visible;
  /* Subtle warm glow via background-clip layered through filter on parent */
}

.wordmark {
  margin: clamp(14px, 3.5vw, 22px) 0 0;
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(22px, 6.8vw, 36px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  gap: clamp(8px, 2.4vw, 14px);
  align-items: baseline;
  padding-left: 0.28em;
  text-shadow: 0 0 24px rgba(0,0,0,0.5);
  flex-wrap: nowrap;
  max-width: 100%;
}
.wordmark-amp {
  font-family: var(--serif-italic);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: clamp(20px, 6vw, 32px);
  color: var(--amber);
  padding-left: 0;
  text-shadow: 0 0 18px rgba(232,145,72,0.55);
  flex-shrink: 0;
}

.hero-sub {
  margin-top: clamp(16px, 4vw, 26px);
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 5.8vw, 32px);
  color: var(--bone);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.bullet { color: var(--amber); margin: 0 6px; }

/* ── Quote ───────────────────────────────────────────────────── */

.quote-section {
  position: relative;
  z-index: 20;
  margin-top: clamp(32px, 8vw, 48px);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.5vw, 22px);
}
.quote-section .rule { width: 35%; }
.quote {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(15px, 4.4vw, 22px);
  letter-spacing: 0.02em;
  color: rgba(216,203,181,0.85);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  max-width: 92%;
}
.quote-mark {
  color: var(--amber);
  font-family: var(--serif-display);
  font-size: 1.4em;
  vertical-align: -0.12em;
  margin: 0 3px;
}

/* ── Info ────────────────────────────────────────────────────── */

.info {
  position: relative;
  z-index: 20;
  margin: clamp(36px, 9vw, 56px) auto 0;
  padding: 0 24px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 5.5vw, 32px);
  text-align: center;
}
.info-block { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 36px);
}
.info-key {
  font-family: var(--sans);
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  padding-left: 0.5em;
  opacity: 0.95;
}
.info-val {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(19px, 5.2vw, 26px);
  color: var(--bone);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.info-sub {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(14px, 3.6vw, 18px);
  color: rgba(216,203,181,0.6);
}
.info-divider {
  width: 1px;
  height: clamp(36px, 9vw, 50px);
  background: linear-gradient(180deg, transparent, rgba(216,203,181,0.35), transparent);
  flex-shrink: 0;
}

/* ── Dress code ──────────────────────────────────────────────── */

.dress {
  position: relative;
  z-index: 20;
  margin-top: clamp(40px, 10vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.6vw, 14px);
  padding: 0 24px;
}
.dress-label {
  font-family: var(--sans);
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(216,203,181,0.6);
  font-weight: 500;
  padding-left: 0.55em;
}
.dress-value {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(26px, 7.6vw, 42px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding-left: 0.24em;
  max-width: 100%;
  background: linear-gradient(180deg, #f4ead4 0%, var(--paper) 55%, var(--amber) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dress-dot {
  width: clamp(6px, 1.8vw, 9px);
  height: clamp(6px, 1.8vw, 9px);
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  vertical-align: 0.4em;
  margin: 0 clamp(8px, 2.2vw, 14px);
  box-shadow: 0 0 14px rgba(232,145,72,0.7);
  flex-shrink: 0;
}

/* ── Countdown ───────────────────────────────────────────────── */

.countdown-section {
  position: relative;
  z-index: 20;
  margin-top: clamp(48px, 12vw, 72px);
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.5vw, 22px);
}
.cd-eyebrow {
  font-family: var(--sans);
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(216,203,181,0.55);
  font-weight: 500;
  padding-left: 0.5em;
}
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 16px);
  font-family: var(--serif-display);
  flex-wrap: nowrap;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.2vw, 8px);
  min-width: clamp(46px, 13vw, 64px);
}
.cd-num {
  font-size: clamp(26px, 7.6vw, 40px);
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 20px rgba(232,145,72,0.15);
}
.cd-label {
  font-family: var(--sans);
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(216,203,181,0.5);
  padding-left: 0.32em;
}
.cd-sep {
  font-size: clamp(18px, 5vw, 24px);
  color: var(--amber);
  opacity: 0.5;
  align-self: flex-start;
  margin-top: clamp(4px, 1vw, 6px);
}
.countdown.elapsed .cd-cell { opacity: 0.6; }
.countdown.elapsed::after {
  content: 'La noche ya empezó.';
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--amber);
  font-size: clamp(14px, 3.6vw, 18px);
  margin-top: 8px;
  display: block;
  width: 100%;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── RSVP form ───────────────────────────────────────────────── */

.rsvp {
  position: relative;
  z-index: 20;
  margin-top: clamp(56px, 14vw, 88px);
  padding: 0 clamp(20px, 6vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rsvp-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 7.2vw, 38px);
  letter-spacing: 0.04em;
  color: var(--bone);
  margin: clamp(10px, 2.5vw, 16px) 0 4px;
  text-align: center;
}
.rsvp-sub {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(13px, 3.4vw, 16px);
  color: rgba(216,203,181,0.6);
  text-align: center;
  margin: 0 0 clamp(18px, 4.5vw, 26px);
}

.form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 22px);
}

.field {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field > label,
.field > legend {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  padding-left: 0.4em;
  opacity: 0.95;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(216,203,181,0.18);
  border-bottom: 1px solid rgba(216,203,181,0.35);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--serif-display);
  font-size: 17px;        /* >=16px prevents iOS zoom */
  font-weight: 400;
  color: var(--bone);
  letter-spacing: 0.01em;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
  font-style: normal;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(216,203,181,0.32);
  font-style: italic;
  font-family: var(--serif-italic);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(232,145,72,0.04);
  box-shadow: 0 0 0 1px rgba(232,145,72,0.25), 0 0 20px -8px rgba(232,145,72,0.6);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(232, 110, 90, 0.55);
}

/* Field hint (RUT live validation, etc.) */
.field-hint {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(216,203,181,0.55);
  min-height: 1.2em;
  padding-left: 2px;
  transition: color 0.25s ease;
}
.field-hint.is-error   { color: #e88573; }
.field-hint.is-success { color: var(--amber); }
.field textarea {
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--serif-italic);
  font-style: italic;
  min-height: 80px;
}

/* Radio groups */
.field-radio { gap: 10px; }
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216,203,181,0.18);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  min-height: 48px;
  font-family: var(--serif-display);
  font-size: 16px;
  color: var(--bone);
}
.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-mark {
  width: 16px; height: 16px;
  border: 1px solid rgba(216,203,181,0.45);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.radio-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--amber);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.2,0.7,0.2,1);
  box-shadow: 0 0 10px rgba(232,145,72,0.7);
}
.radio:hover { border-color: rgba(232,145,72,0.4); }
.radio input:checked ~ .radio-mark {
  border-color: var(--amber);
}
.radio input:checked ~ .radio-mark::after {
  transform: scale(1);
}
.radio:has(input:checked) {
  border-color: var(--amber);
  background: rgba(232,145,72,0.06);
}
.radio input:focus-visible ~ .radio-mark {
  box-shadow: 0 0 0 2px rgba(232,145,72,0.4);
}

/* Submit button */
.rsvp-btn {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, rgba(232,145,72,0.12), rgba(232,145,72,0.03));
  border: 1px solid rgba(232,145,72,0.55);
  border-radius: 0;
  color: var(--bone);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 18px 22px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  min-height: 54px;
  padding-left: calc(22px + 0.35em);
}
.rsvp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,180,100,0.22) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}
.rsvp-btn:hover:not(:disabled)::before { transform: translateX(110%); }
.rsvp-btn:hover:not(:disabled) {
  border-color: var(--amber);
  box-shadow: 0 0 28px rgba(232,145,72,0.35), inset 0 0 24px rgba(232,145,72,0.08);
}
.rsvp-btn:active:not(:disabled) { transform: translateY(1px); }
.rsvp-btn .btn-arrow {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--amber);
  transition: transform 0.3s ease;
}
.rsvp-btn:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.rsvp-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.rsvp-btn.is-loading .btn-arrow {
  animation: btn-spin 0.9s linear infinite;
  display: inline-block;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Confirmed state */
.rsvp-btn.is-confirmed {
  background: linear-gradient(180deg, rgba(232,145,72,0.85), rgba(181,101,29,0.95));
  border-color: rgba(232,145,72,0.9);
  color: #0A0908;
}
.rsvp-btn.is-confirmed .btn-arrow { color: #0A0908; }

/* Feedback message */
.form-feedback {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  min-height: 1.5em;
  margin-top: 4px;
  color: rgba(216,203,181,0.7);
  transition: color 0.3s ease;
}
.form-feedback.is-error { color: #e88573; }
.form-feedback.is-success { color: var(--amber); }

/* When form is submitted, lock it down */
.form.is-submitted .field input,
.form.is-submitted .field textarea,
.form.is-submitted .radio { opacity: 0.55; pointer-events: none; }
.form.is-submitted .radio { cursor: default; }

/* ── Footer ──────────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 20;
  margin-top: clamp(56px, 14vw, 88px);
  padding: clamp(48px, 12vw, 72px) 24px clamp(28px, 7vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.foot .rule { width: 25%; }
.foot-text {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(216,203,181,0.4);
  font-weight: 500;
  padding-left: 0.5em;
  margin: 0;
  text-align: center;
}

/* ── Reveal-on-scroll subtle entry (purely additive) ─────── */

@media (prefers-reduced-motion: no-preference) {
  .quote-section,
  .info,
  .dress,
  .countdown-section,
  .rsvp,
  .foot {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
  }
  .is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero .monogram,
  .hero .wordmark,
  .hero .hero-sub,
  .hero .top-eyebrow {
    opacity: 0;
    transform: translateY(8px);
    animation: fade-in 1.1s cubic-bezier(0.2,0.7,0.2,1) forwards;
  }
  .hero .top-eyebrow { animation-delay: 0.1s; }
  .hero .monogram    { animation-delay: 0.3s; }
  .hero .wordmark    { animation-delay: 0.6s; }
  .hero .hero-sub    { animation-delay: 0.85s; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Small screens (< 360px) tighten paddings ─────────────── */
@media (max-width: 359px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .quote-section, .info, .countdown-section, .rsvp { padding-left: 16px; padding-right: 16px; }
}

/* ── Short viewports (landscape phones, small laptops) ─────
   Compress vertical rhythm so the form is reachable quickly. */
@media (max-height: 760px) and (min-width: 600px) {
  .hero { padding-top: clamp(20px, 4vh, 36px); }
  .monogram { width: clamp(160px, 36vw, 240px); margin-top: clamp(16px, 3vh, 28px); }
  .wordmark { margin-top: clamp(8px, 2vh, 14px); }
  .hero-sub { margin-top: clamp(10px, 2vh, 18px); }
  .quote-section { margin-top: clamp(22px, 4.5vh, 36px); }
  .info { margin-top: clamp(22px, 4.5vh, 36px); gap: clamp(16px, 3vh, 24px); }
  .dress { margin-top: clamp(24px, 5vh, 40px); }
  .countdown-section { margin-top: clamp(28px, 6vh, 44px); }
  .rsvp { margin-top: clamp(32px, 7vh, 56px); }
  .foot { padding: clamp(28px, 6vh, 48px) 24px clamp(20px, 4vh, 32px); }
}

/* ── Desktop polish ──────────────────────────────────────── */
@media (min-width: 1024px) {
  /* The fixed atmosphere covers the full viewport — add a soft
     elliptical halo to anchor the centered invitation card. */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(232,145,72,0.05) 0%, transparent 55%);
  }
}
