/* ————————————————————————————————————————————————
   Founder Era — sunlit, editorial, warm
   ———————————————————————————————————————————————— */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

:root {
  /* Founder Era brand palette */
  --cream: #F3EAD7;
  --cream-warm: #EFE3CB;
  --sand: #E7D8BC;
  --gold: #C99A5B;
  --taupe: #CBB9A7;
  --espresso: #3E2D1D;
  --espresso-deep: #2E2113;
  --ink: #3E2D1D;
  --muted: #8F7E69;
  --cobalt: #304EE9;
  --cobalt-deep: #2440D6;
  --cobalt-soft: rgba(48, 78, 233, 0.14);
  /* Brand type: Canela Display/Italic + Söhne (licensed) — Fraunces/Inter
     ship as tuned stand-ins and yield automatically if Canela/Söhne load */
  --serif: 'Canela', 'Canela Deck', 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Söhne', 'Sohne', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100svh;
  background: var(--cream);
  overflow-x: hidden;
}

/* ——— Background scenes ————————————————————— */
/* Entry: cream, low sunlight — the world outside the room + graph-paper grid */
.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.scene-entry {
  opacity: 1;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(201, 154, 91, 0.30), transparent 55%),
    radial-gradient(90% 70% at -15% 40%, rgba(233, 220, 195, 0.85), transparent 60%),
    radial-gradient(100% 80% at 70% 110%, rgba(201, 154, 91, 0.20), transparent 58%),
    linear-gradient(160deg, #F8F0DE 0%, var(--cream) 42%, #EBDDC1 100%);
}
.scene-entry::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 43, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 43, 32, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
}
/* Espresso: warm brown with a golden sheen — never flat */
.scene-espresso {
  opacity: 0;
  background:
    radial-gradient(110% 80% at 80% -15%, rgba(201, 154, 91, 0.28), transparent 55%),
    radial-gradient(80% 60% at 10% 105%, rgba(201, 154, 91, 0.14), transparent 60%),
    linear-gradient(155deg, #4A3623 0%, var(--espresso) 45%, var(--espresso-deep) 100%);
}
.scene-espresso::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 234, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 215, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
}
body.is-done .scene-entry { opacity: 0; }
body.is-done .scene-espresso { opacity: 1; }

/* Filmic grain — layered above the grid */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ——— Logo mark — the brand Fe seal, light/dark crossfade ——— */
.logo {
  position: absolute;
  top: clamp(18px, 4vw, 34px);
  left: clamp(18px, 5vw, 42px);
  z-index: 10;
  width: 54px;
  height: 54px;
  display: block;
}
.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1.1s ease;
}
.logo .logo-dark { opacity: 0; }
body.is-done .logo .logo-light { opacity: 0; }
body.is-done .logo .logo-dark { opacity: 1; }

/* ——— Layout ———————————————————————————————— */
.page {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(96px, 16vw, 150px) clamp(20px, 5vw, 28px) 56px;
}

/* ——— Hero / wordmark ——————————————————————— */
.hero { position: relative; margin-bottom: clamp(36px, 7vw, 56px); }

/* warm radial glow behind the wordmark */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -12%;
  width: 90%;
  height: 145%;
  background: radial-gradient(closest-side, rgba(201, 154, 91, 0.2), transparent 78%);
  z-index: -1;
  pointer-events: none;
}

/* the brand lockup image — with a light sheen sweeping across once on load */
.wordmark {
  position: relative;
  display: block;
  max-width: min(100%, 480px);
}
.wm-img {
  display: block;
  width: 100%;
  height: auto;
}
.wordmark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 240, 0.6) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 118% 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: wm-sheen 2.9s cubic-bezier(0.33, 0, 0.2, 1) 0.55s forwards;
}
@keyframes wm-sheen {
  from { background-position: 118% 0; }
  to   { background-position: -18% 0; }
}

.intro {
  margin-top: clamp(20px, 4vw, 28px);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
}
.intro-sub {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #5C4F40;
}

/* ——— Card stage: invite slip + entry card ——— */
.card-stage { position: relative; }

/* invite-slip: a second card sitting directly behind the main one */
.slip {
  position: absolute;
  inset: 0;
  transform: translate(14px, -16px);
  background: linear-gradient(180deg, #FCF8EC 0%, #F2E9D4 100%);
  border: 1px solid rgba(139, 117, 90, 0.3);
  border-radius: 20px;
  box-shadow:
    0 14px 32px -20px rgba(93, 69, 44, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.slip-text em { font-style: normal; color: var(--cobalt); }
.slip-text {
  position: absolute;
  top: 4px;
  right: 28px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

/* printed label inside the card — not a heading */
.card-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.card-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(139, 117, 90, 0.35), transparent);
}

.card {
  position: relative;
  /* lit coated surface: lighter where light lands, deeper toward the base */
  background: linear-gradient(180deg, #FCF7EA 0%, #F6ECD8 52%, #EFE2C8 100%);
  border: 1px solid rgba(139, 117, 90, 0.28);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 44px);
  box-shadow:
    0 36px 70px -32px rgba(93, 69, 44, 0.5),
    0 14px 30px -16px rgba(93, 69, 44, 0.28),
    0 3px 8px -3px rgba(93, 69, 44, 0.14),
    0 0 80px -18px rgba(201, 154, 91, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -20px 34px -26px rgba(139, 117, 90, 0.3);
}
/* faint diagonal sheen, like light on coated paper */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 252, 243, 0.55) 46%, rgba(255, 252, 243, 0.12) 54%, transparent 66%);
  pointer-events: none;
}

/* ——— Fields ————————————————————————————————— */
.field { position: relative; margin-bottom: 26px; border: 0; }

.field > label,
.field legend {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5C4F40;
  margin-bottom: 9px;
}
.field legend { margin-bottom: 12px; }

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #FDF9EE 0%, #F8F0DE 100%);
  border: 1px solid rgba(139, 117, 90, 0.34);
  border-radius: var(--radius);
  padding: 15px 17px;
  outline: none;
  /* part of the same lit surface: inner top light, gentle depth, slight lift */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -9px 16px -12px rgba(139, 117, 90, 0.24),
    0 1px 2px rgba(93, 69, 44, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: #B3A794; }
input:focus {
  border-color: var(--cobalt);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -9px 16px -12px rgba(139, 117, 90, 0.16),
    0 0 0 3.5px var(--cobalt-soft);
}
.field.has-error input {
  border-color: rgba(176, 108, 57, 0.75);
}

/* ——— Phone: searchable country code + number ————— */
.phone-group { display: flex; gap: 10px; }
.phone-group > input[type="tel"] { flex: 1; min-width: 0; }
.dial { position: relative; flex: none; }

.dial-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, #FEFCF6 0%, #F7EFDF 100%);
  border: 1px solid rgba(139, 117, 90, 0.34);
  border-radius: var(--radius);
  padding: 0 14px;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -9px 16px -12px rgba(139, 117, 90, 0.24),
    0 1px 2px rgba(93, 69, 44, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dial-btn[aria-expanded="true"] {
  border-color: var(--cobalt);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), 0 0 0 3.5px var(--cobalt-soft);
}
.dial-flag { font-size: 17px; line-height: 1; }
.dial-code { font-variant-numeric: tabular-nums; }
.dial-chev {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8F7E69;
  margin-left: 1px;
}

/* popover */
.dial-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: 268px;
  max-width: 78vw;
  background: linear-gradient(180deg, #FEFCF6, #F6EDD9);
  border: 1px solid rgba(139, 117, 90, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -18px rgba(93, 69, 44, 0.4), inset 0 1.5px 0 rgba(255,255,255,0.85);
  padding: 8px;
}
#dialSearch {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #FFFDF7;
  border: 1px solid rgba(139, 117, 90, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  margin-bottom: 6px;
}
#dialSearch:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.dial-list {
  list-style: none;
  max-height: 230px;
  overflow-y: auto;
}
.dial-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}
.dial-list li .dl-flag { font-size: 17px; line-height: 1; flex: none; }
.dial-list li .dl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-list li .dl-code { color: var(--muted); font-variant-numeric: tabular-nums; }
.dial-list li:hover,
.dial-list li[aria-selected="true"] { background: var(--cobalt-soft); color: var(--cobalt-deep); }
.dial-list li:hover .dl-code,
.dial-list li[aria-selected="true"] .dl-code { color: var(--cobalt); }
.dial-list li.dl-current { font-weight: 600; }
.dial-empty { padding: 12px; font-size: 14px; color: var(--muted); text-align: center; }

.field-error {
  display: none;
  font-size: 13px;
  line-height: 1.45;
  color: #A25E2B;
  margin-top: 7px;
}
.field.has-error .field-error { display: block; }

/* ——— City autocomplete ————————————————————— */
.field-city { position: relative; }
.city-list {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  background: linear-gradient(180deg, #FDF9EE, #F5EBD6);
  border: 1px solid rgba(139, 117, 90, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -18px rgba(58, 43, 32, 0.35), inset 0 1.5px 0 rgba(255,255,255,0.8);
  max-height: 246px;
  overflow-y: auto;
  padding: 6px;
}
.city-list li {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.city-list li .cc { color: var(--muted); }
.city-list li:hover {
  background: rgba(201, 154, 91, 0.14);
}
.city-list li[aria-selected="true"] {
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
}
.city-list li[aria-selected="true"] .cc { color: var(--cobalt); }

/* ——— Journey pills —————————————————————————— */
.pills { display: grid; gap: 10px; }
.pill {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #FDF9EE 0%, #F6EDD9 100%);
  border: 1px solid rgba(139, 117, 90, 0.32);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}
.pill:hover { border-color: rgba(43, 58, 240, 0.45); }
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill-arrow {
  color: var(--cobalt);
  font-size: 15px;
  line-height: 1.45;
  flex: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pill-text {
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  transition: color 0.18s ease;
}
/* selected: polished cobalt — lit top edge, gentle depth at the base */
.pill:has(input:checked) {
  background: linear-gradient(180deg, #5A73FF 0%, var(--cobalt) 52%, #1F38C4 100%);
  border-color: #1C31B4;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px -12px rgba(10, 16, 92, 0.5),
    0 14px 30px -14px rgba(43, 58, 240, 0.6);
}
.pill:has(input:checked)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 46%, transparent 60%);
  pointer-events: none;
}
.pill:has(input:checked) .pill-text { color: #F6F3EC; }
.pill:has(input:checked) .pill-arrow { color: #CBD1FF; transform: translateX(2px); }
.pill:has(input:focus-visible) {
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), 0 0 0 3.5px var(--cobalt-soft);
}

/* ——— Honeypot ——————————————————————————————— */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ——— CTA ———————————————————————————————————— */
.cta {
  position: relative;
  width: 100%;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FDFCF8;
  background: linear-gradient(180deg, #5A73FF 0%, var(--cobalt-deep) 58%, #1D35BE 100%);
  border: 1px solid #1C31B4;
  border-radius: var(--radius);
  padding: 17px 20px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -12px 20px -14px rgba(10, 16, 92, 0.55),
    0 18px 40px -14px rgba(43, 58, 240, 0.55),
    0 0 60px -8px rgba(201, 154, 91, 0.35);
  transition: transform 0.18s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
/* lacquer: a still highlight across the upper face */
.cta::before {
  content: '';
  position: absolute;
  inset: 1px 1px 46%;
  border-radius: 13px 13px 50% 50% / 13px 13px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}
/* sheen that sweeps on hover */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.22) 46%, transparent 64%);
  background-size: 240% 100%;
  background-position: 118% 0;
  pointer-events: none;
}
.cta:hover { transform: translateY(-1px); box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -12px 20px -14px rgba(10, 16, 92, 0.55),
    0 22px 48px -14px rgba(43, 58, 240, 0.6),
    0 0 70px -6px rgba(201, 154, 91, 0.45); }
.cta:hover::after { animation: cta-sheen 0.9s ease forwards; }
@keyframes cta-sheen {
  from { background-position: 118% 0; }
  to   { background-position: -18% 0; }
}
.cta:active { transform: translateY(0); }
.cta[disabled] { opacity: 0.72; cursor: default; transform: none; }
.cta .cta-sending { display: none; }
.cta.is-sending .cta-label { display: none; }
.cta.is-sending .cta-sending { display: inline; }

.consent {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form-error {
  font-size: 14px;
  color: #A25E2B;
  background: rgba(201, 154, 91, 0.14);
  border: 1px solid rgba(201, 154, 91, 0.4);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 16px;
}

.footnote {
  position: relative;
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ——— Done / waitlist state ————————————————— */
.state-done { color: var(--cream); }
.done-inner {
  max-width: 620px;
  margin-top: clamp(8px, 6vw, 40px);
}
.done-title {
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(52px, 13vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 420;
  font-variation-settings: 'opsz' 144;
  color: #F6F0E3;
  margin-bottom: clamp(28px, 5vw, 40px);
}
.done-title .dt-italic { font-style: italic; color: #93A0FF; }

/* confirmation slip — the copy sits in a designed block, not floating */
.done-panel {
  position: relative;
  background: linear-gradient(170deg, rgba(255, 250, 238, 0.075) 0%, rgba(255, 250, 238, 0.03) 100%);
  border: 1px solid rgba(201, 154, 91, 0.3);
  border-radius: 20px;
  padding: clamp(24px, 5.5vw, 38px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 250, 238, 0.14),
    0 30px 70px -42px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.done-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 34%, rgba(255, 250, 238, 0.06) 48%, transparent 64%);
  pointer-events: none;
}
.done-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(230, 214, 185, 0.65);
  margin-bottom: 22px;
}
.done-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(201, 154, 91, 0.45), transparent);
}
.done-copy {
  text-wrap: pretty;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243, 234, 215, 0.88);
  margin-bottom: 18px;
  max-width: 48ch;
}
.done-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 154, 91, 0.7), transparent);
  margin: 26px 0;
}
.done-share { color: rgba(243, 234, 215, 0.75); margin-bottom: 6px; }
/* polished lacquered action, not a hyperlink */
.share-link {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FDFCF8;
  background: linear-gradient(180deg, #5A73FF 0%, var(--cobalt-deep) 58%, #1D35BE 100%);
  border: 1px solid #1C31B4;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -9px 14px -10px rgba(10, 16, 92, 0.55),
    0 14px 30px -14px rgba(43, 58, 240, 0.65);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.share-link:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -9px 14px -10px rgba(10, 16, 92, 0.55),
    0 18px 36px -14px rgba(43, 58, 240, 0.75);
}

/* state transitions */
.state { transition: opacity 0.7s ease, transform 0.7s ease; }
.state[hidden] { display: none !important; }
.state.is-leaving { opacity: 0; transform: translateY(-14px); }
.state.is-entering { opacity: 0; transform: translateY(14px); }

/* ——— Reduced motion ————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  .wordmark::after { animation: none; opacity: 0; }
  .cta:hover::after { animation: none; }
  .state, .scene, .logo img { transition: none; }
}

/* ——— Wider screens ————————————————————————— */
@media (min-width: 720px) {
  .page { max-width: 660px; }
}

/* ——— Desktop: editorial poster composition ——— */
/* brand anchors the upper-left; the entry card sits offset right,
   overlapping the lower portion of the brand area */
@media (min-width: 1080px) {
  .page {
    max-width: 1250px;
    padding-top: clamp(110px, 13vh, 160px);
  }
  .state-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    column-gap: clamp(56px, 7vw, 110px);
    align-items: start;
  }
  .hero {
    grid-column: 1;
    margin-bottom: 0;
    padding-top: 16px;
  }
  .wordmark { max-width: 560px; }
  .intro { font-size: 19px; margin-top: 32px; }
  .intro-sub { font-size: 17px; margin-top: 14px; }
  .card-stage {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 110px;
  }
  .footnote {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    text-align: left;
    margin-top: 72px;
    padding-bottom: 8px;
  }
  .done-inner { margin-top: clamp(30px, 8vh, 80px); }
}
