/* ============================================================
   PreFab-Cell-E1 — Factory Intelligence  (v2 / warm editorial)
   Parchment + charcoal + terracotta accent.
   Playfair Display display serif / Inter body / IBM Plex Mono labels.
   ============================================================ */

:root {
  --bg: #F1ECE6;
  --nav-bg: #F7F4ED;
  --text: #16170F;
  --body: #6C6962;
  --muted: #8F8A7D;
  --rule: #ECE8DC;
  --surface: #F1ECE6;
  --invert-bg: #423E32;
  --invert-text: #FFFFFF;
  --accent: #B25323;

  --serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 144px);
}

html[data-theme="dark"] {
  --bg: #1A1816;
  --nav-bg: #161412;
  --text: #EAE9E3;
  --body: #9A9995;
  --muted: #605E5A;
  --rule: #272421;
  --surface: #232120;
  --invert-bg: #D4D4CC;
  --invert-text: #161412;
  --accent: #E16F39;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 180ms linear, color 180ms linear;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--text); color: var(--bg); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.nav__logo {
  color: var(--text);
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: block;
}

.nav__right {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.nav__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav__toggle {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
}

.nav__toggle:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav__inner { padding: 14px var(--gutter); }
  .nav__wordmark span { font-size: 10px; }
  .nav__label { display: none; }
}

/* ---------- HERO (stacked, centered: headline → copy → video → CTA) ---------- */
.hero {
  position: relative;
  background: var(--bg);
  min-height: calc(100vh - var(--nav-h, 64px));
  padding-top: clamp(24px, 3vw, 56px);
  padding-bottom: clamp(32px, 4vw, 72px);
  display: flex;
  align-items: center;
}

.hero > .container { width: 100%; }

.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  text-align: center;
  padding-top: clamp(12px, 1.6vw, 24px);
  padding-bottom: clamp(12px, 1.6vw, 24px);
}

.hero__stack .hero__content { max-width: 62ch; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 0.85fr 1.25fr;
    gap: clamp(40px, 5vw, 80px);
  }
}

.hero__content {
  position: relative;
}

.hero__stack .hero__sub {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0 0 clamp(12px, 1.2vw, 18px) 0;
  font-size: clamp(36px, 4.4vw, 64px);
  max-width: 22ch;
  text-wrap: balance;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
  color: var(--text);
}

.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 clamp(20px, 2vw, 28px) 0;
  max-width: 48ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero__cta .btn {
  font-size: 14px;
  padding: 16px 26px;
}

/* ---------- HERO VIDEO (centered, fits above fold) ---------- */
.hero-video__figure {
  width: 100%;
  max-width: 70vw;
  /* Cap by viewport height so the stack (nav + headline + sub + video + CTA) stays above the fold. */
  max-height: calc(100vh - 500px);
  margin: 0 auto;
  padding: 0;
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.hero-video__el {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 92%;
  background: #000;
  border: 0;
  /* Filmic base: deep contrast, slight lift, natural saturation — no sepia */
  filter:
    contrast(1.18)
    brightness(1.00)
    saturate(0.78);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
}

/* Teal-orange film duotone: warm amber highlights, cool teal shadows */
.hero-video__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Warm top → cool bottom for classic Hollywood split-tone */
  background: linear-gradient(
    180deg,
    rgba(214, 150, 90, 0.18) 0%,
    rgba(180, 120, 70, 0.10) 35%,
    rgba(40, 60, 70, 0.14) 70%,
    rgba(20, 40, 55, 0.22) 100%
  );
  mix-blend-mode: soft-light;
}

/* Cinema vignette — widescreen feel, deeper corners */
.hero-video__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.38) 100%);
}

/* Transparent tap-blocking overlay — prevents iOS from opening native video player on tap */
.hero-video__shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.hero-video__caption {
  z-index: 5;
}

/* Tablet / mobile: let the video go wider since the viewport is narrower */
@media (max-width: 860px) {
  .hero-video__figure { max-width: 100%; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hero-video__figure { aspect-ratio: 4 / 3; max-height: 60vh; max-width: 100%; }
}
/* Kill native iOS/Android video controls in every rendering path */
.hero-video__el::-webkit-media-controls,
.hero-video__el::-webkit-media-controls-enclosure,
.hero-video__el::-webkit-media-controls-panel,
.hero-video__el::-webkit-media-controls-play-button,
.hero-video__el::-webkit-media-controls-start-playback-button,
.hero-video__el::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .hero-video__el {
  filter: grayscale(0.85) contrast(1.08) brightness(1.0) saturate(0.9);
}

.hero-video__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-video__label {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.35;
}

.hero-video__sub {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .hero-video__sub {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
  .hero-video__caption { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-video__sub { text-align: left; }
}

/* ---------- CARD (shared surface for stats / what / request) ---------- */
.card {
  background: var(--nav-bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 80px);
}

/* ---------- STATS SECTION ---------- */
.stats-section {
  padding: clamp(80px, 12vh, 160px) 0 clamp(72px, 10vw, 128px);
}

.stats-band {
  /* Card look comes from .card; this class reserved for stats-specific tweaks. */
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--invert-bg);
  background: var(--invert-bg);
  color: var(--invert-text);
  cursor: pointer;
  border-radius: 0;
  transition: opacity 150ms linear, transform 150ms linear;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }

.link--tiny {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link--tiny:hover { color: var(--text); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
}

.stats::before,
.stats::after {
  /* placeholder — we use explicit divider cells below */
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.stat__num--bold {
  font-weight: 700;
}



.stat__label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28ch;
}

/* Vertical dividers via pseudo column cells */
.stats > .stat:nth-child(1) { grid-column: 1; }
.stats > .stat:nth-child(2) { grid-column: 3; }
.stats > .stat:nth-child(3) { grid-column: 5; }
.stats::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}
.stats::before {
  content: "";
  grid-column: 4;
  grid-row: 1;
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}

@media (max-width: 820px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px;
  }
  .stats > .stat:nth-child(n) { grid-column: 1; }
  .stats::before,
  .stats::after { display: none; }
  .stat {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
  }
  .stat:last-child { border-bottom: 0; }
}

/* ---------- STATION (contained image, matches card rhythm) ---------- */
.station {
  background: var(--bg);
  padding: clamp(48px, 6vw, 96px) 0;
}

.station__figure {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  border: 0;
  background: transparent;
}

/* Inner wrapper so the rounded corners clip both the image and the caption gradient. */
.station__figure > img,
.station__figure > .station__caption {
  /* Image handles its own radius; caption rounded at bottom to match. */
}

.station__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--rule);
  border-radius: 0;
}

.station__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.60) 55%, rgba(0,0,0,0) 100%);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.station__label { color: #FFFFFF; font-weight: 700; font-size: 14px; letter-spacing: 0.18em; }
.station__sub   { letter-spacing: 0.02em; text-transform: none; font-size: 16px; color: #FFFFFF; text-align: right; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.station__sub-line { display: block; }

/* Very subtle asterisk on the station caption, hinting at the footnote. */
.station__asterisk {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  /* Simplify: on phones the two sub-lines crowd the photo. Keep only the label. */
  .station__caption {
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0) 100%);
  }
  .station__label { font-size: 11px; letter-spacing: 0.14em; }
  .station__sub { display: none; }
}

/* ---------- WHAT / MATH ---------- */
.what {
  padding: var(--section-y) 0;
}

@media (min-width: 821px) {
  .what {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .what > .container { width: 100%; }

  /* Scale "What it is / The math" up on desktop so it feels prominent. */
  .what .h2 {
    font-size: clamp(44px, 5.2vw, 76px);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
  }
  .what .body {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    max-width: none;
    color: var(--text);
  }
  .what .math__row {
    padding: 28px 0;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    color: var(--text);
  }
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}

.what__col {
  display: flex;
  flex-direction: column;
}

/* Left column: stack body paragraphs with same border/padding rhythm as .math__row so both columns have identical row heights. */
.what__col .body {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.what__col .body:first-of-type {
  border-top: 1px solid var(--rule);
}
.what__col .body + .body { margin-top: 0; }

@media (min-width: 821px) {
  .what__col .body {
    padding: 28px 0;
  }
}

@media (max-width: 820px) {
  .what__grid { grid-template-columns: 1fr; gap: 56px; }
}

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
}

.body {
  font-size: 16px;
  line-height: 1.65;
  max-width: 54ch;
  margin: 0;
  color: var(--body);
}

.body + .body { margin-top: 0.9em; }

.math {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.math__row {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---------- REQUEST ---------- */
.request { padding: var(--section-y) 0; }

.request__wrap { max-width: 980px; margin: 0 auto; }

.request__form-col { min-width: 0; }

/* ---------- Map band (top of Request card) ---------- */
.request__map-band {
  margin: 0 0 clamp(48px, 6vw, 80px) 0;
  color: var(--text);
}

.request__map-frame {
  position: relative;
  width: 100%;
  background: transparent;
  padding: clamp(8px, 1.5vw, 20px) 0;
}

.request__map {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  color: var(--text);
}

.request__map .us-map { width: 100%; height: auto; display: block; }

/* Neutral dots — 4-tier gradient fading from Midwest edge outward.
   Light mode: cool graphite ramp from darker to lighter.
   Dark mode:  cream ramp from bold to faint. */
.us-map__dot--n1 { fill: #3A3A36; opacity: 0.62; }
.us-map__dot--n2 { fill: #5A5A55; opacity: 0.48; }
.us-map__dot--n3 { fill: #7D7C75; opacity: 0.36; }
.us-map__dot--n4 { fill: #A3A198; opacity: 0.24; }

/* Accent dots (Midwest pilot region) — use accent token, brighter in dark mode */
.us-map__dot--accent { fill: var(--accent); }

/* Lafayette crosshair */
.us-map__ring   { fill: none; stroke: var(--accent); stroke-width: 0.8; opacity: 0.5; }
.us-map__tick   { stroke: var(--accent); stroke-width: 1; }
.us-map__dot-center { fill: var(--accent); }

/* Dark mode: bright cream ramp */
html[data-theme="dark"] .us-map__dot--n1 { fill: #F5F2EA; opacity: 0.82; }
html[data-theme="dark"] .us-map__dot--n2 { fill: #F5F2EA; opacity: 0.58; }
html[data-theme="dark"] .us-map__dot--n3 { fill: #F5F2EA; opacity: 0.36; }
html[data-theme="dark"] .us-map__dot--n4 { fill: #F5F2EA; opacity: 0.20; }
html[data-theme="dark"] .us-map__dot--accent  { fill: #F08A4F; }
html[data-theme="dark"] .us-map__ring   { stroke: #F08A4F; opacity: 0.7; }
html[data-theme="dark"] .us-map__tick   { stroke: #F08A4F; }
html[data-theme="dark"] .us-map__dot-center { fill: #F08A4F; }

.request__map-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.request__map-meta-item { white-space: nowrap; }
.request__map-meta-item--end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.request__flag {
  display: block;
  width: 42px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .request__map-meta { flex-wrap: wrap; gap: 8px 16px; font-size: 10px; }
  .request__map-meta-item--end { margin-left: 0; width: 100%; }
}

.request__lead {
  margin-top: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 62ch;
  font-size: 17px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 18px 0;
  border-bottom: 1px solid var(--rule);
}

.field:first-of-type { border-top: 1px solid var(--rule); }

.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  padding: 4px 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.field textarea { resize: vertical; }

.field select {
  background-image: none;
  padding-right: 18px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
}

.field--submit {
  border: 0;
  padding-top: 36px;
  flex-direction: row;
  align-items: center;
}

[hidden] { display: none !important; }

.confirm {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  max-width: 60ch;
  background: linear-gradient(180deg, transparent 0%, rgba(178, 83, 35, 0.035) 100%);
  animation: confirmIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html[data-theme="dark"] .confirm {
  background: linear-gradient(180deg, transparent 0%, rgba(225, 111, 57, 0.07) 100%);
}

@keyframes confirmIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.confirm__mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.confirm__body { min-width: 0; }

.confirm__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.confirm__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
}

.confirm__lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 20px;
  max-width: 48ch;
}

.confirm__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 560px) {
  .confirm { grid-template-columns: 1fr; gap: 18px; padding: 32px 20px; }
  .confirm__mark { width: 40px; height: 40px; }
}

/* Submit button states — sending + success */
.btn--primary.is-sending {
  opacity: 0.78;
  cursor: progress;
  pointer-events: none;
}
.btn--primary.is-sending::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  vertical-align: -1px;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn--primary.is-success {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  pointer-events: none;
  transform: translateY(-1px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* ---------- FOOTER ---------- */
.footer { margin-top: clamp(40px, 6vw, 96px); }

.footer__inner {
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer__inner > div { white-space: nowrap; }

.footer__note {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: none;
}
.footer__note span { margin-right: 2px; }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer__inner > div { white-space: normal; }
}

/* ---------- Motion reduction ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
