/* Reset & base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }

/* Type scale ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-2); font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 0; }
h4 { font-size: var(--step-1); font-variation-settings: "opsz" 24, "SOFT" 20, "WONK" 0; }
p { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.measure { max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body);
  font-variation-settings: "wdth" 88;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.75em;
  height: 2px;
  background: currentColor;
  flex: none;
}
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1.1rem; background: var(--ink); color: var(--fg-on-dark);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus-visible { top: 1rem; outline-color: var(--red); }

/* Layout primitives ------------------------------------------------------ */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.7); }
.section--dark { background: var(--ink); color: var(--fg-on-dark); }
.section--dark .eyebrow { color: var(--red-on-dark); }
.section--dark .lede, .section--dark .muted { color: var(--fg-on-dark-soft); }
.section--panel { background: var(--paper-2); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-l); }
.stack { display: flex; flex-direction: column; gap: var(--space-m); }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
.section-head { display: grid; gap: var(--space-s); max-width: 44rem; margin-bottom: var(--space-l); }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-l);
}
@media (max-width: 720px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* Motion ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .reveal { opacity: 1; transform: none; }
  .site-header { position: static; }
  .call-bar, .ticker__pause, .nav-toggle { display: none; }
}
