/* ============================================================
   ANTI-MORTGAGE — ink ledger / protest poster
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/assets/fonts/BigShouldersDisplay-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --ink-2: #101010;
  --ink-3: #171717;
  --paper: #EFE7D8;
  --dim: #9C9282;
  --line: rgba(239, 231, 216, 0.14);
  --line-soft: rgba(239, 231, 216, 0.08);
  --accent: #FF4D00;
  --accent-soft: rgba(255, 77, 0, 0.12);
  --dust: #A79A82;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec-pad: clamp(4.5rem, 12vw, 9rem);
  --max: 76rem;
}

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

/* author display rules (e.g. .btn) must never resurrect [hidden] elements */
[hidden] { display: none !important; }

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

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
}

::selection { background: var(--accent); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.mono { font-family: var(--mono); }

.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

.display em {
  font-style: normal;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 100;
  transform: translateY(-250%);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 0.7rem 1rem;
  transition: transform 0.2s;
}
.skip-link:focus-visible { transform: none; }

/* anchor jumps land clear of the sticky header */
[id] { scroll-margin-top: 4.5rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: '// ';
  color: var(--dim);
}

.micro {
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.sec-h {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.sec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

section, .site-foot {
  padding: var(--sec-pad) var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-word {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.head-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.55rem 0.9rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.head-cta:hover { background: var(--accent); color: var(--ink); }

/* narrow phones: keep brand and CTA from colliding */
@media (max-width: 26.25rem) {
  .site-head { padding-inline: 0.9rem; }
  .brand { gap: 0.45rem; min-width: 0; }
  .brand img { width: 24px; height: 24px; }
  .brand-word { font-size: 1rem; letter-spacing: 0.03em; }
  .head-cta { font-size: 0.68rem; padding: 0.5rem 0.6rem; letter-spacing: 0.1em; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: none;
  padding-inline: 0;
  min-height: calc(100svh - 3.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the roofline in frame when wide viewports crop vertically */
  object-position: 74% 36%;
}

/* wide frames: push the hourglass into the right third so the
   text column and subject balance instead of pooling dead space */
@media (min-width: 60rem) {
  .hero-media { left: 4vw; right: -4vw; }
}
@media (min-width: 60rem) and (min-aspect-ratio: 27/20) {
  .hero-media video { object-position: 24% 36%; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--ink) 4%,
    color-mix(in srgb, var(--ink) 70%, transparent) 36%,
    transparent 60%);
}

@media (max-width: 48rem) {
  .hero-media video { object-position: 75% center; }
  .hero-scrim {
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--ink) 84%, transparent) 0%,
        color-mix(in srgb, var(--ink) 58%, transparent) 55%,
        color-mix(in srgb, var(--ink) 30%, transparent) 100%),
      linear-gradient(90deg, var(--ink) 0%, transparent 55%);
  }
}

.hero-kicker { margin-bottom: 2rem; }

.hero-h {
  /* height-aware cap keeps all four lines + CTA above the fold */
  font-size: clamp(3.4rem, 13vw, 10rem);
  font-size: min(clamp(3.4rem, 13vw, 10rem), 11.5svh);
  margin-bottom: 2rem;
}

/* short desktop viewports: keep the CTA above the fold */
@media (min-width: 60rem) and (max-height: 53.125rem) {
  .hero { padding-top: 2rem; padding-bottom: 2rem; }
  .hero-h { font-size: clamp(3rem, 8vw, 6.6rem); margin-bottom: 1.4rem; }
  .hero-kicker { margin-bottom: 1.2rem; }
  .hero-sub { margin-bottom: 1.6rem; }
}

.hero-line { display: block; }

.hero-sub {
  max-width: 34em;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
  margin-bottom: 2.5rem;
}
.hero-sub strong { color: var(--accent); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.9rem 1.8rem 0.8rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { background: var(--ink); color: var(--accent); }
.btn:active { transform: translateY(1px); }

/* ---------- hero (press variant, ?hero=press) ---------- */

.hero-press {
  position: relative;
  max-width: none;
  padding: 0;
  min-height: calc(100svh - 3.6rem);
  display: flex;
  overflow: hidden;
  background: var(--ink);
}

.hero-press-media {
  position: absolute;
  inset: 0;
  /* flower-press-housev2.png: house sits ~1.3% left of frame center;
     nudge the media right so the subject aligns under the centered type */
  left: 1.3vw;
  right: -1.3vw;
  z-index: 0;
  pointer-events: none;
}

.hero-press-media img,
.hero-press-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-press-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 78%, transparent) 0%, transparent 22%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 62%, transparent) 0%, transparent 26%);
}

.hero-press-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2.8rem, 10svh, 6.5rem) var(--gutter) clamp(2.2rem, 6svh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-press-h {
  font-size: clamp(3rem, 8.5vw, 7rem);
  font-size: min(clamp(3rem, 8.5vw, 7rem), 12svh);
  margin: 0.9rem 0 1.1rem;
}

.hero-press-sub {
  max-width: 40em;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
}

.hero-press-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 2rem;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.8rem 0;
  background: var(--ink-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  white-space: nowrap;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- machine ---------- */

.machine {
  position: relative;
  max-width: none;
  padding-block: var(--sec-pad);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 30% 50%, rgba(255, 77, 0, 0.08), transparent 70%),
    var(--ink);
}

.machine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.machine-canvas.is-live { opacity: 1; }

.machine-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--gutter);
}

.machine-copy {
  max-width: 30em;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
}
.machine-copy strong { color: var(--accent); font-weight: 500; }

/* ---------- the amortization barcode ----------
   360 bars, one per payment on the $400K / 6.5% / 30yr example the copy
   cites and the calculator defaults to. Accent = that month's interest
   share, paper = principal. */

.barcode-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.barcode {
  width: 100%;
  height: clamp(200px, 34vh, 320px);
  display: block;
  cursor: crosshair;
  touch-action: pan-y;
}
.barcode-read {
  display: flex;
  justify-content: space-between;
  gap: 1.125rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.125rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.br-month { color: var(--paper); }
.br-split { color: var(--dim); }
.br-red,
.br-bone {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  vertical-align: -1px;
}
.br-red { background: var(--accent); }
.br-bone { background: var(--paper); }
#br-int { color: #FF7A33; }
#br-pri { color: var(--paper); }
.barcode-legend {
  display: flex;
  gap: 1.625rem;
  flex-wrap: wrap;
  padding-top: 0.875rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.bl-note { margin-left: auto; }
.barcode-truth {
  margin-top: 1.625rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--paper);
  max-width: 42.5rem;
}
.barcode-truth strong { font-weight: 400; color: #fff; }
.barcode-truth .bt-red { color: #FF7A33; }

@media (max-width: 48rem) {
  .barcode { height: 190px; }
  .bl-note { margin-left: 0; width: 100%; }
}

/* ---------- the sink (black hole beat) ---------- */

.sink {
  position: relative;
  max-width: none;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.sink-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.sink-canvas.is-live { opacity: 1; }

.sink-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--gutter);
}

.sink-copy {
  max-width: 26em;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
}

/* phone: copy sits up top, the hole gets the bottom of the frame to itself */
@media (max-width: 48rem) {
  .sink { align-items: flex-start; }
  .sink-inner { padding-top: clamp(3.5rem, 14vw, 5.5rem); }
}

/* ---------- calculator ---------- */

.calc-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 60rem) {
  .calc-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}

.field { margin-bottom: 1.6rem; }

.field label,
.field .flabel {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color 0.15s;
}
.input-wrap:focus-within { border-color: var(--accent); }

.input-wrap input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1.35rem;
  padding: 0.8rem 1rem;
}

.prefix, .suffix { color: var(--dim); font-size: 1.1rem; padding-inline: 1rem; }
.prefix + input { padding-left: 0; }

.seg { display: flex; border: 1px solid var(--line); }

.seg-btn {
  flex: 1;
  background: var(--ink-2);
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 48px;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { color: var(--paper); }
.seg-btn.is-on { background: var(--accent); color: var(--ink); }

input[type='range'] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  background: var(--accent);
  border: 0;
  border-radius: 0;
}
input[type='range']::-moz-range-track { height: 2px; background: var(--line); }
input[type='range']::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border: 0; border-radius: 0;
}

/* receipt */

.receipt {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}

.receipt-key {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.receipt-val { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 500; }

.receipt-row.is-hot .receipt-val {
  color: var(--accent);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}
.receipt-row.is-hot .receipt-key { color: var(--paper); }

.receipt-row.is-total { border-bottom: 2px solid var(--paper); }

/* bars */

.bars { margin-top: 2rem; display: grid; gap: 1.1rem; }

.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.bar-name {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.bar-val { font-size: 0.95rem; color: var(--paper); }

.bar-track {
  height: 18px;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
}

.bar {
  height: 100%;
  width: 0%;
  border-radius: 0 4px 4px 0;
}
.bar-30 { background: var(--dust); }
.bar-acc { background: var(--accent); }

.bar-note { margin-top: 0.35rem; }

.delta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.delta-key {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.delta-val {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  color: var(--accent);
}

.math { margin-top: 1.6rem; border-top: 1px dashed var(--line); padding-top: 1rem; }

.math summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
  list-style: none;
}
.math summary::-webkit-details-marker { display: none; }
.math summary::before { content: '+ '; color: var(--accent); }
.math[open] summary::before { content: '\2212  '; }
.math summary:hover { color: var(--paper); }

.math-body { padding-top: 0.9rem; font-size: 0.8rem; color: var(--dim); display: grid; gap: 0.5rem; }

.formula {
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}

.myth { margin-top: 1.4rem; max-width: 46em; font-size: 0.8rem; line-height: 1.55; }

.footnote { margin-top: 2rem; max-width: 46em; }

/* ---------- stats ---------- */

.stat-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 40rem) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 15rem;
}

.stat-num {
  font-size: clamp(3.6rem, 9vw, 5.2rem);
  color: var(--accent);
}

.stat-unit { font-size: 0.45em; letter-spacing: 0.06em; }

.stat-copy { font-size: 0.95rem; line-height: 1.5; flex: 1; }

.stat-src {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
}

/* ---------- path ---------- */

.path-lead { max-width: 32em; color: var(--dim); margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}

@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step {
  border-top: 2px solid var(--accent);
  padding-top: 1.2rem;
}

.step-num {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.step-h { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 0.8rem; }

.step p:last-child { font-size: 0.95rem; color: color-mix(in srgb, var(--paper) 82%, var(--dim)); }

/* ---------- pledge (the fine print) ---------- */

.pledge {
  position: relative;
  max-width: none;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-2);
}

.pledge-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.pledge-video.is-live { opacity: 1; }

.pledge-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 35%),
    radial-gradient(62% 54% at 26% 70%, color-mix(in srgb, var(--ink) 82%, transparent), transparent 72%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 60%, transparent) 34%, transparent 60%);
}

.pledge-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem);
}

.pledge-copy {
  max-width: 28em;
  color: color-mix(in srgb, var(--paper) 88%, var(--dim));
}

/* ---------- voices ---------- */

.voice-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

@media (min-width: 56rem) { .voice-grid { grid-template-columns: repeat(3, 1fr); } }

.voice {
  background: var(--ink-2);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.voice::before {
  content: '\201C';
  font-family: var(--display);
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--accent);
}

.voice p { font-size: 1rem; line-height: 1.55; flex: 1; }

.voice footer {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ---------- qualify ---------- */

.qualify-sub { max-width: 34em; color: color-mix(in srgb, var(--paper) 85%, var(--dim)); margin-bottom: 2.5rem; }

.quiz { max-width: 44rem; }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.quiz-bar { flex: 1; height: 2px; background: var(--line); }
.quiz-bar-fill { height: 100%; width: 16.7%; background: var(--accent); transition: width 0.35s ease; }

.q-step { display: none; border: 0; min-inline-size: 0; }
.q-step.is-on { display: block; }

.q-q {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  color: var(--paper);
  margin-bottom: 0.5rem;
  outline: 0;
}

.q-hint { font-size: 0.75rem; color: var(--dim); margin-bottom: 1.4rem; }

.q-opts { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .q-opts { grid-template-columns: 1fr 1fr; } }

.q-opt {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(239, 231, 216, 0.035);
  color: var(--paper);
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 48px;
}
.q-opt:hover { border-color: var(--dim); background: rgba(239, 231, 216, 0.06); }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-opt.is-sel {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.q-opt:has(input:focus-visible) { outline: 2px solid var(--paper); outline-offset: 3px; }

.lead-fields { display: grid; gap: 0.2rem; }
@media (min-width: 40rem) {
  .lead-fields { grid-template-columns: 1fr 1fr; gap: 0.2rem 1.5rem; }
  .lead-fields .field:first-child { grid-column: 1 / -1; }
  .lead-fields .field-wide { grid-column: 1 / -1; }
}

.quiz input[type='text'],
.quiz input[type='email'],
.quiz input[type='tel'],
.quiz textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  outline: 0;
  transition: border-color 0.15s;
}
.quiz input:focus,
.quiz textarea:focus { border-color: var(--accent); }
.quiz input.is-bad { border-color: #E34948; }
.quiz textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; display: block; }

.hp-field { position: absolute; left: -6000px; top: -6000px; }

.q-nav { display: flex; align-items: center; gap: 1.6rem; margin-top: 2rem; }

.q-back {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0;
}
.q-back:hover { color: var(--paper); }

.q-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.quiz-result {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.result-h { font-size: clamp(1.9rem, 5.5vw, 2.9rem); margin-bottom: 0.9rem; }
.result-copy { max-width: 38em; margin-bottom: 1.3rem; }

.form-status { min-height: 1.4em; font-size: 0.85rem; margin-top: 0.4rem; }
.form-status.ok { color: #1BAF7A; }
.form-status.bad { color: #E34948; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 1.1rem;
}

.foot-brand { display: flex; align-items: center; gap: 0.6rem; }
.foot-brand .brand-word { font-size: 1.05rem; }

.foot-copy { max-width: 46em; font-size: 0.9rem; color: color-mix(in srgb, var(--paper) 80%, var(--dim)); }

.foot-contact { font-size: 0.78rem; color: var(--dim); }
.foot-contact a { color: var(--dim); }
.foot-contact a:hover { color: var(--accent); }

.foot-legal { max-width: 56em; font-size: 0.72rem; line-height: 1.6; color: var(--dim); }

/* ---------- focus & motion ---------- */

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

[data-reveal], [data-hero] { will-change: transform, opacity; }

/* Word-split reveal (pledge headline): each word is transformed and blurred
   on its own, so it has to be its own inline-block box. Added by JS only —
   without JS the heading stays plain text. */
.rv-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  body::after { display: none; }
}
