/* Darma landing page. Tokens are documented in DESIGN.md (written from this file at finish). */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Ink and cobalt on white */
  --ink: #0b1b34;
  --ink-2: #33415c;
  --ink-3: #5a6782;
  --cobalt: #1f5bff;
  --cobalt-deep: #1a4fe0;
  --cobalt-50: #eaf0ff;
  --cobalt-100: #d5e1ff;
  --white: #ffffff;
  --cloud: #f5f7fb;
  --cloud-2: #eef1f6;
  --line: #e3e8f0;
  --line-strong: #cbd3e1;

  /* Navy surfaces */
  --navy: #0b1b34;
  --navy-2: #13284a;
  --navy-3: #0f2140;
  --navy-ink: #ffffff;
  --navy-ink-2: #b9c5dc;
  --navy-link: #9db5ff;
  --navy-line: rgba(255, 255, 255, 0.12);

  /* States (product UI only) */
  --ok: #0e7a4f;
  --ok-bg: #e6f6ee;
  --hold: #8a5a00;
  --hold-bg: #fff4db;
  --stop: #b42318;
  --stop-bg: #fdecea;
  --wait: #4b5875;
  --wait-bg: #eef1f6;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 28px 60px -24px rgba(3, 10, 25, 0.55), 0 8px 18px -8px rgba(3, 10, 25, 0.35);
  --shadow-soft: 0 12px 32px -18px rgba(11, 27, 52, 0.28), 0 2px 6px -2px rgba(11, 27, 52, 0.08);

  color-scheme: light;
  scrollbar-color: var(--line-strong) var(--cloud);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--cobalt);
}
::selection {
  background: var(--cobalt);
  color: var(--white);
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--cobalt-deep);
}
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden,
.sprite {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp {
  position: absolute;
  left: -9999px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

/* Headline test: one variant visible, chosen before first paint (index.html head). */
.v {
  display: none;
}
[data-variant='A'] .v-a,
[data-variant='B'] .v-b,
[data-variant='C'] .v-c {
  display: inline;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  word-spacing: 0.07em;
  font-size: clamp(2.6rem, 1.25rem + 4.3vw, 4.75rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.headline {
  word-spacing: 0.07em;
  font-size: clamp(2.05rem, 1.25rem + 2.6vw, 3.4rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
}
.section-lede {
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.fineprint {
  font-size: 0.9rem;
  color: var(--ink-3);
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}
.btn .icon {
  transition: transform 220ms var(--ease-out);
}
.btn:hover .icon {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(1px);
}
.btn-small {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.9375rem;
}
.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  box-shadow: 0 6px 16px -8px rgba(31, 91, 255, 0.7);
}
.btn-primary:hover {
  background: var(--cobalt-deep);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(31, 91, 255, 0.8);
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: #152a4d;
  color: var(--white);
}
.btn-outline {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.btn[disabled] {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}
.btn[aria-busy='true'] {
  cursor: progress;
}

/* ---------- Chips and pills (product UI) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.pill .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.2;
}
.pill-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill-hold {
  background: var(--hold-bg);
  color: var(--hold);
}
.pill-stop {
  background: var(--stop-bg);
  color: var(--stop);
}
.pill-wait {
  background: var(--wait-bg);
  color: var(--wait);
}
.pill-info {
  background: var(--cobalt-50);
  color: var(--cobalt-deep);
}
.synthetic {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  min-height: 4.25rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark-mark {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.975rem;
  font-weight: 550;
  text-decoration: none;
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current='true'] {
  background: var(--cloud);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--navy-ink);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(31, 91, 255, 0.16) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem);
}
.hero .display {
  max-width: 14ch;
}
[data-variant='A'] .hero .display {
  max-width: 16ch;
}
.hero .lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--navy-ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero :focus-visible {
  outline-color: var(--white);
}
.hero-fine {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--navy-ink-2);
  font-size: 0.95rem;
}
.hero-fine .icon {
  color: var(--navy-link);
}

/* The record inspector */
.stage {
  position: relative;
  padding-bottom: 7.25rem;
}
.inspector {
  position: relative;
  max-width: 32rem;
  margin-left: auto;
  padding: 1.35rem 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.insp-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.insp-type {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
}
.insp-replay {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}
.insp-replay:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.js .insp-replay {
  display: inline-flex;
}
.insp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.95rem;
}

.trace {
  position: relative;
  margin-top: 0.4rem;
}
/* Connector segments: each step draws the half above and below its own node, so the line
   meets every node centre whatever the row height. */
.step::before,
.step::after {
  content: '';
  position: absolute;
  left: calc(0.475rem - 1px);
  width: 2px;
  background: var(--cobalt);
}
.step::before {
  top: 0;
  bottom: 50%;
}
.step::after {
  top: 50%;
  bottom: 0;
}
.step:first-child::before,
.step:last-child::after {
  display: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
}
.step + .step {
  border-top: 1px solid var(--cloud-2);
}
.node {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 3px var(--white);
}
.step-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
}
.step-time {
  font-size: 0.75rem;
  font-weight: 500;
}
.step-value {
  margin-top: 0.1rem;
  font-size: 0.975rem;
  font-weight: 550;
  line-height: 1.4;
}
.swap {
  display: inline-grid;
}
.swap > * {
  grid-area: 1 / 1;
}
.swap > .is-before {
  visibility: hidden;
  opacity: 0;
}
.step-value.swap {
  display: grid;
}
.pill-swap {
  justify-items: end;
}
.seal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}
.seal > .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--navy-link);
}
.seal-title {
  font-size: 0.95rem;
  font-weight: 650;
}
.seal-hash {
  color: var(--navy-ink-2);
  font-size: 0.78rem;
}
.seal-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #7ee2b0;
  font-size: 0.8125rem;
  font-weight: 650;
}
.seal-mark .icon {
  stroke-width: 2.4;
}

.mail-card {
  position: absolute;
  left: -2.5rem;
  bottom: 0;
  z-index: 2;
  width: min(18rem, 64%);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.mail-from {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
}
.mail-q {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
}
.mail-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  font-weight: 650;
}
.mail-yes,
.mail-no {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.mail-yes {
  border-color: var(--ok);
  background: var(--ok);
  color: var(--white);
}
.mail-yes .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.4;
}
.mail-no {
  color: var(--ink-3);
}

/* The authored moment: the record resolves once, top to bottom. Without JS or with reduced
   motion nothing below runs and the finished record shows. */
@keyframes swap-out {
  from {
    visibility: visible;
    opacity: 1;
  }
  to {
    visibility: hidden;
    opacity: 0;
  }
}
@keyframes swap-in {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}
@keyframes node-on {
  from {
    border-color: var(--line-strong);
    background: var(--white);
  }
  to {
    border-color: var(--cobalt);
    background: var(--cobalt);
  }
}
@keyframes line-on {
  from {
    background: var(--line);
  }
  to {
    background: var(--cobalt);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes press {
  from {
    border-color: var(--line-strong);
    background: var(--white);
    color: var(--ink);
  }
  to {
    border-color: var(--ok);
    background: var(--ok);
    color: var(--white);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 122, 79, 0.45);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(14, 122, 79, 0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .stage.run .step .is-before {
    animation: swap-out 260ms var(--ease-out) var(--at) both;
  }
  .js .stage.run .step .is-after {
    animation: swap-in 420ms var(--ease-out) var(--at) both;
  }
  .js .stage.run .node {
    animation: node-on 300ms var(--ease-out) var(--at) both;
  }
  .js .stage.run .step::before {
    animation: line-on 300ms var(--ease-out) var(--at) both;
  }
  .js .stage.run .step::after {
    animation: line-on 300ms var(--ease-out) var(--next) both;
  }
  .js .stage.run .seal {
    animation: rise 600ms var(--ease-out) 5.2s both;
  }
  .js .stage.run .mail-card {
    animation: rise 700ms var(--ease-out) 2.4s both;
  }
  .js .stage.run .mail-yes {
    animation: press 260ms var(--ease-out) 3.5s both;
  }
  .js .stage.run .live-dot {
    animation: pulse 1.6s ease-out 0s 4;
  }
}

/* ---------- Facts strip ---------- */
.facts-strip {
  border-bottom: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts > div {
  display: grid;
  gap: 0.2rem;
  padding: 1.35rem 1.5rem;
}
.facts > div:first-child {
  padding-left: 0;
}
.facts > div + div {
  border-left: 1px solid var(--line);
}
.facts dt {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 600;
}
.facts dd {
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 550;
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}
.section-cloud {
  background: var(--cloud);
}
.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* Problem */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split-lead {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1.25rem;
}
.problems li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.problems li:last-child {
  border-bottom: 1px solid var(--line);
}
.problems h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.15;
  word-spacing: 0.05em;
}
.problems p {
  max-width: 36rem;
  margin-top: 0.55rem;
  color: var(--ink-2);
}

.figures {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(0.5rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 20px;
  background: var(--navy);
  color: var(--navy-ink);
}
.figures-table {
  width: 100%;
  border-collapse: collapse;
}
.figures-table thead th {
  padding: 1rem 1.5rem 0.75rem 0;
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
}
.figures-table tbody th,
.figures-table td {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--navy-line);
  text-align: left;
  vertical-align: middle;
}
.figures-table tbody tr:last-child > * {
  border-bottom: 0;
}
.figure {
  width: 34%;
  font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.6rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 1;
  letter-spacing: -0.01em;
  word-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure .to {
  color: var(--navy-link);
  font-weight: 500;
}
.figure-what {
  color: var(--white);
  font-weight: 600;
}
.figure-note {
  color: var(--navy-ink-2);
  font-size: 0.95rem;
}
.source {
  width: 30%;
  font-size: 0.875rem;
}
.source a {
  color: var(--navy-link);
}
.source a:hover {
  color: var(--white);
}
.figures :focus-visible {
  outline-color: var(--white);
}

/* How it works */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
}
.rail-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 2.4rem;
}
.rail-step::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: -2rem;
  height: 2px;
  background: var(--cobalt-100);
}
.rail-step:last-child::before {
  right: 0;
  background: linear-gradient(90deg, var(--cobalt-100), transparent);
}
.rail-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--cloud);
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt);
}
.rail-step-name {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.1;
}
.rail-step > p {
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.55;
}
.vignette {
  margin-top: auto;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.vignette-list li,
.vignette-tiers li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.9;
}
.vignette-list .icon {
  color: var(--cobalt);
}
.vignette-list .off {
  color: var(--ink-3);
}
.vignette-list .off .icon {
  color: var(--ink-3);
}
.vignette-tiers .chip {
  min-width: 3.4rem;
  justify-content: center;
}
.vignette-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vignette-chain,
.art-seal {
  display: flex;
  align-items: center;
}
.block {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.72rem;
  white-space: nowrap;
}
.block-on {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
}
.link {
  flex: 1 1 0.6rem;
  min-width: 0.5rem;
  height: 2px;
  background: var(--line-strong);
}

.runway {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.runway figcaption {
  color: var(--ink-2);
  font-size: 0.975rem;
}
.runway figcaption strong {
  color: var(--ink);
}
.runway-track {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 6px;
}
.rw {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.9rem 1rem 0.85rem;
  border-radius: var(--radius);
}
.rw-when {
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.3;
}
.rw-what {
  font-weight: 700;
  line-height: 1.3;
}
.rw-watch {
  background: var(--cobalt-50);
  color: var(--ink);
}
.rw-watch .rw-when {
  color: var(--cobalt-deep);
}
.rw-days {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
  margin-top: 0.55rem;
}
.rw-days i {
  height: 6px;
  border-radius: 3px;
  background: var(--cobalt);
  opacity: 0.35;
}
.rw-days i:nth-child(n + 8) {
  opacity: 0.6;
}
.rw-days i:last-child {
  opacity: 1;
}
.rw-you {
  background: var(--ink);
  color: var(--white);
}
.rw-you .rw-when {
  color: var(--navy-ink-2);
}

/* Sample report */
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.panel-sub {
  color: var(--ink-3);
  font-weight: 500;
}
.coverage {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.coverage p {
  display: grid;
  text-align: right;
  line-height: 1.3;
}
.coverage-label {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}
.coverage-value {
  font-size: 0.95rem;
  font-weight: 600;
}
.meter {
  position: relative;
  width: 9rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--cloud-2);
  overflow: hidden;
}
.meter::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--cobalt);
}
.table-wrap {
  overflow-x: auto;
}
.report {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.report th,
.report td {
  padding: 0.95rem 1.5rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.report th:first-child,
.report td:first-child {
  padding-left: 1.5rem;
}
.report thead th {
  padding-block: 0.65rem;
  background: var(--cloud);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.report tbody th {
  font-weight: 400;
}
.report tbody tr:last-child > * {
  border-bottom: 0;
}
.report tbody tr {
  transition: background-color 160ms var(--ease-out);
}
.report tbody tr:hover {
  background: #fafbfd;
}
.act {
  display: block;
  font-weight: 650;
}
.ref {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-3);
  font-size: 0.78rem;
}
.report td .chip {
  margin-right: 0.4rem;
}
.panel-foot {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--cloud);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.sample-request {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--cloud);
}
.sample-request p {
  margin-top: 0.3rem;
  color: var(--ink-2);
  font-size: 0.975rem;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.inline-form input[type='email'] {
  flex: 1 1 15rem;
  width: auto;
}
.form-status {
  flex-basis: 100%;
  font-size: 0.9375rem;
}
.form-status:empty {
  display: none;
}
.form-status.is-error {
  color: var(--stop);
}

/* No black box */
.section-dark {
  background: var(--navy);
  color: var(--navy-ink);
}
.section-dark .section-lede {
  color: var(--navy-ink-2);
}
.open-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.open-card.open-card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 2.5rem;
  padding: 1.5rem;
}
.open-card.open-card-lead .open-art {
  grid-row: 1 / -1;
  gap: 0.2rem;
  padding: 1.25rem 1.4rem;
  font-size: 0.95rem;
}
.open-card.open-card-lead h3 {
  grid-row: 2;
  margin-top: 0;
  font-size: 1.35rem;
}
.open-card.open-card-lead > p {
  grid-row: 3;
}
.art-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-ink-2);
}
.synthetic-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--navy-ink-2);
}
.art-facts .t {
  margin-left: auto;
  color: var(--navy-ink-2);
  font-size: 0.78rem;
}
.art-facts p:not(.art-head) {
  padding: 0.5rem 0;
}
.open-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.6rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  background: var(--navy-2);
}
.open-card h3 {
  margin-top: 0.75rem;
}
.open-card > p {
  color: var(--navy-ink-2);
  font-size: 0.975rem;
}
.open-art {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-height: 9.5rem;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--navy-3);
  font-size: 0.85rem;
}
.art-facts p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}
.art-facts .inferred {
  margin-top: 0.35rem;
  padding-top: 0.85rem !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--navy-ink-2);
}
.tag {
  display: inline-flex;
  justify-content: center;
  min-width: 5.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.tag-fact {
  background: rgba(126, 226, 176, 0.14);
  color: #7ee2b0;
}
.tag-infer {
  border: 1px dashed rgba(255, 207, 112, 0.6);
  color: #ffcf70;
}
.art-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  color: var(--navy-ink-2);
}
.art-row-on {
  border-color: rgba(157, 181, 255, 0.5);
  background: rgba(31, 91, 255, 0.14);
  color: var(--white);
}
.art-x {
  color: var(--navy-ink-2);
  font-size: 0.78rem;
}
.art-ok {
  color: #7ee2b0;
  font-size: 0.78rem;
  font-weight: 650;
}
.open-art.art-seal {
  display: flex;
  align-items: center;
}
.art-seal .block {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--navy-ink-2);
}
.art-seal .block-on {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
}
.art-seal .link {
  background: rgba(255, 255, 255, 0.2);
}

/* Pricing */
.trade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.trade-card {
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--cloud);
}
.checks {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.checks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  color: var(--ink-2);
}
.checks .icon {
  margin-top: 0.22rem;
  color: var(--cobalt);
  stroke-width: 2.1;
}
.tiers-title {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.tier {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}
.tier:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.tier-band {
  font-size: 1.15rem;
  font-weight: 700;
}
.tier-sub {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.5rem 0 1.75rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.price {
  color: var(--ink);
  font-size: 2.75rem;
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tier .btn {
  margin-top: auto;
}
#pricing-note {
  margin-top: 1rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--ink-3);
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq summary:hover {
  color: var(--cobalt-deep);
}
.faq details p {
  max-width: 40rem;
  padding-bottom: 1.4rem;
  color: var(--ink-2);
}

/* Request form */
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.request-lead {
  display: grid;
  gap: 1.25rem;
}
.next {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.next li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
}
.next-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cobalt-50);
  color: var(--cobalt-deep);
  font-size: 0.9rem;
  font-weight: 700;
}
.next h3 {
  font-size: 1.05rem;
}
.next p {
  color: var(--ink-3);
  font-size: 0.95rem;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field-wide {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}
.field legend {
  float: left;
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0;
  line-height: 1.4;
}
.optional {
  color: var(--ink-3);
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%235a6782' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-3);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.2);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--cloud);
  color: var(--ink-3);
}
input[type='radio'] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--cobalt);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  clear: both;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 550;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}
.choices label:hover {
  border-color: var(--ink-3);
}
.choices label:has(input:checked) {
  border-color: var(--cobalt);
  background: var(--cobalt-50);
}
.field.is-valid:not(.field-wide)::after {
  content: '';
  position: absolute;
  right: 0.85rem;
  top: 2.55rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--ok);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}
.field.is-valid:has(select)::after {
  right: 2.4rem;
}
.field.is-invalid input {
  border-color: var(--stop);
  background: #fff8f7;
}
.field-error {
  color: var(--stop);
  font-size: 0.875rem;
  font-weight: 550;
}
.field-error:empty {
  display: none;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 0.5rem;
}
.form-foot .fineprint {
  flex: 1 1 14rem;
}
.form-result {
  grid-column: 1 / -1;
}
.form-result:not(:empty) {
  padding: 1.1rem 1.25rem;
  border: 1px solid #b7e4cc;
  border-radius: 12px;
  background: var(--ok-bg);
}
.form-result h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}
.form-result.is-error {
  border-color: #f5c2bd;
  background: var(--stop-bg);
  color: var(--stop);
}
.form-result .btn {
  margin-top: 0.85rem;
}

/* ---------- Close and footer ---------- */
.closing {
  background: var(--navy);
  color: var(--navy-ink);
}
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 3rem;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}
.closing-h {
  word-spacing: 0.07em;
  max-width: 20ch;
  margin-bottom: 2rem;
  font-size: clamp(2.2rem, 1.3rem + 3vw, 3.9rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.closing :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}
.founder-note {
  position: relative;
  padding: 1.6rem 1.75rem 1.5rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  background: var(--navy-2);
  color: var(--navy-ink-2);
  font-size: 0.975rem;
  line-height: 1.65;
}
.founder-note .note-h {
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.2;
}
.founder-note p + p {
  margin-top: 0.75rem;
}
.founder-note .note-sign {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--navy-line);
  color: var(--white);
  font-weight: 650;
}
.footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
  color: var(--navy-ink-2);
  font-size: 0.925rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}
.footer-brand {
  display: grid;
  gap: 0.35rem;
}
.wordmark-light {
  color: var(--white);
  font-size: 1.3rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.footer-links a {
  color: var(--navy-ink-2);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-fine {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-line);
}

/* Mobile dock: appears once the hero's own button has scrolled away. */
.dock {
  display: none;
}

/* ---------- Secondary pages (thanks, privacy) ---------- */
.simple-page {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 6rem;
}
.simple-page .display {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem);
}
.simple-page .lede {
  margin: 1.25rem 0 2rem;
  color: var(--ink-2);
}
.prose h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.25rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1.02;
}
.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.prose p {
  max-width: 68ch;
  color: var(--ink-2);
}
.prose p + p {
  margin-top: 1rem;
}
.prose h1 + .muted-line {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.prose ul {
  max-width: 68ch;
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-2);
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose li::marker {
  color: var(--cobalt);
}
.prose strong {
  color: var(--ink);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
}
.prose ul + p,
.prose p + ul {
  margin-top: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .display,
  [data-variant='A'] .hero .display {
    max-width: 18ch;
  }
  .inspector {
    margin-inline: 0 auto;
  }
  .stage {
    max-width: 36rem;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
  .rail-step:nth-child(2)::before {
    right: 0;
  }
}

@media (max-width: 860px) {
  .split,
  .faq-grid,
  .request-grid,
  .runway,
  .sample-request,
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-lead {
    position: static;
  }
  .open-grid,
  .tiers,
  .trade {
    grid-template-columns: minmax(0, 1fr);
  }
  .open-card.open-card-lead {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .open-card.open-card-lead .open-art,
  .open-card.open-card-lead h3,
  .open-card.open-card-lead > p {
    grid-row: auto;
  }
  .open-card.open-card-lead h3 {
    margin-top: 0.75rem;
  }
  .figures-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .figures-table,
  .figures-table tbody,
  .figures-table tr,
  .figures-table tbody th,
  .figures-table td {
    display: block;
    width: auto;
  }
  .figures-table tr {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--navy-line);
  }
  .figures-table tbody tr:last-child {
    border-bottom: 0;
  }
  .figures-table tbody th,
  .figures-table td {
    padding: 0;
    border: 0;
  }
  .figures-table td {
    margin-top: 0.5rem;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Report rows become stacked records */
  .report thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .report,
  .report tbody,
  .report tr,
  .report th,
  .report td {
    display: block;
  }
  .report tbody tr {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .report tbody tr:last-child {
    border-bottom: 0;
  }
  .report th,
  .report td,
  .report th:first-child,
  .report td:first-child {
    padding: 0.2rem 0;
    border: 0;
  }
  .report tbody th {
    margin-bottom: 0.5rem;
  }
  .report td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }
  .report td::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .report td > .pill {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .nav-inner {
    min-height: 3.75rem;
    gap: 1rem;
  }
  .wordmark {
    font-size: 1.3rem;
  }
  .hero-grid {
    padding-block: 2.5rem 3rem;
    gap: 2.5rem;
  }
  .hero .lede {
    margin-top: 1.1rem;
  }
  .hero-actions {
    margin-top: 1.75rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stage {
    padding-bottom: 0;
  }
  .inspector {
    padding: 1.1rem 1.1rem 1rem;
  }
  .step {
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.2rem 0.85rem;
  }
  .step .pill-swap {
    grid-column: 2;
    justify-items: start;
  }
  .step .node {
    grid-row: span 2;
  }
  .mail-card {
    position: relative;
    width: auto;
    margin: -0.75rem 1rem 0;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts > div,
  .facts > div:first-child,
  .facts > div:nth-child(3) {
    padding: 1rem 0;
    border-left: 0;
  }
  .facts > div + div {
    border-top: 1px solid var(--line);
  }
  .rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rail-step {
    padding: 0 0 2.25rem 2.25rem;
  }
  .rail-step::before,
  .rail-step:nth-child(2)::before,
  .rail-step:last-child::before {
    top: 0.5rem;
    bottom: 0;
    left: calc(0.55rem - 1px);
    right: auto;
    width: 2px;
    height: auto;
    background: var(--cobalt-100);
  }
  .rail-step:last-child::before {
    display: none;
  }
  .rail-step-name {
    margin-top: -0.3rem;
  }
  .art-facts p:not(.art-head) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.15rem 0.6rem;
  }
  .art-facts .t {
    grid-column: 2;
    margin-left: 0;
  }
  .tag {
    min-width: 0;
  }
  .mail-card {
    left: auto;
  }
  .panel-bar {
    padding: 1rem 1.25rem;
  }
  .coverage {
    width: 100%;
    justify-content: space-between;
  }
  .coverage p {
    text-align: left;
  }
  .runway-track {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-foot .btn,
  .inline-form .btn,
  .closing .btn {
    width: 100%;
  }
  .faq summary {
    font-size: 1.05rem;
  }

  .dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: block;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(11, 27, 52, 0.4);
    transform: translateY(110%);
    transition: transform 320ms var(--ease-out);
  }
  .dock .btn {
    width: 100%;
  }
  .dock.is-shown {
    transform: none;
  }
  .footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .insp-replay {
    display: none;
  }
}

/* ---------- Signal field (field.js) ----------
   Thin cobalt-family strands that converge on the record. Decoration only: the page is complete without
   it, and reduced motion gets a single still frame. */
.signal-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid,
.has-field > .wrap {
  position: relative;
  z-index: 1;
}
.has-field {
  position: relative;
  overflow: hidden;
}
.stage {
  z-index: 1;
}

/* Cards: a soft highlight follows the pointer. */
[data-glow] {
  position: relative;
  isolation: isolate;
}
[data-glow]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--gx, -300px) var(--gy, -300px),
    rgba(31, 91, 255, 0.1),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}
.section-dark [data-glow]::after {
  background: radial-gradient(
    260px circle at var(--gx, -300px) var(--gy, -300px),
    rgba(143, 184, 255, 0.14),
    transparent 62%
  );
}
[data-glow]:hover::after {
  opacity: 1;
}

/* Section heads settle in as they are reached; the resting state is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0.35;
    transform: translateY(14px);
    filter: blur(3px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .will-reveal.revealed {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
