/* ============================================================================
   Quantify Terminal Labs — stylesheet

   The same visual language as quantifyterminal.com: a white page, one-pixel
   dashed rules at 4px on / 4px off, Space Grotesk for everything that is read,
   Poppins for the wordmark alone, and the purple full stop. On top of it, the
   Labs register: monospace for anything that is data — stamps, hashes, field
   names, verifier output — and the cutoff line, which is the one idea the
   whole business rests on.
   ========================================================================== */

/* ---------- fonts, self-hosted so no visitor's address goes to a font service ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0b0e17;
  --muted: #5c6270;
  --quiet: #8b909c;
  --line: #e5e7eb;
  --line-soft: #eef0f2;
  --panel: #fafafa;
  --soft: #f6f6f7;
  --purple: #9810fa;
  --purple-deep: #7d0cd6;
  --green: #138a52;
  --red: #c8321f;
  --dark: #0b0e17;
  /* Measured off the main site: 4px dash, 4px gap, one pixel thick. */
  --rule-dash: #b3b8c1;
  --rule-line: #d3d7dd;
  --dash-h: linear-gradient(to right, var(--rule-dash) 0 4px, transparent 4px 8px);
  --dash-v: linear-gradient(to bottom, var(--rule-dash) 0 4px, transparent 4px 8px);
  --max: 1120px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mark: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
/* The canvas is the strip's colour, as on the main site: pull the page down past
   its top and the strip appears to continue; Safari tints its chrome to match. The
   value lives in three places: here, on the strip, and in each page's theme-color. */
html {
  background: var(--dark);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre, .mono { font-family: var(--mono); }
::selection { background: #efe3fd; color: var(--text); }

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
/* an anchor lands below the sticky header, not under it */
[id] { scroll-margin-top: 92px; }
.page { display: flex; flex-direction: column; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* One rule drawn the same way everywhere: dashed, edge to edge, one pixel. */
.ruled {
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}

/* ============================================================================
   TOP BAR — a dark strip above the header, one sentence and a short link.
   It scrolls away; the header does not.
   ========================================================================== */
/* The strip is a sticky element inside a slot exactly its own height, so it has
   nowhere to travel and scrolls away like an ordinary block. The sticky is not for
   the layout: Safari tints its tab bar from sticky or fixed elements that sit at the
   top and span the width, and a static strip is never sampled. */
.topbar { position: relative; z-index: 20; background: var(--dark); color: #fff; }
.topbar-bar {
  position: sticky;
  top: 0;
  padding: 6px 16px;
  padding-top: calc(6px + env(safe-area-inset-top));
  background: var(--dark);
  text-align: center;
}
.topbar-in {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.topbar-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 120ms ease;
}
.topbar-link:hover { text-decoration-thickness: 2px; }
.topbar-link:focus-visible { outline-color: #fff; }

/* ============================================================================
   HEADER — white, sticky, a dashed rule beneath. Wordmark left, the five
   links in the middle, the one action on the right.
   ========================================================================== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
}
.hdr::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background-image: var(--dash-h);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding: 0 40px;
}
.hdr-mark, .foot-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mark);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--text);
  line-height: 1;
}
.hdr-mark { font-size: 27px; min-height: 44px; align-items: center; margin-right: auto; }
.hdr-mark .labs, .foot-mark .labs { color: var(--quiet); margin-left: 0.28em; }
.mark-dot { color: var(--purple); font-weight: 700; }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: 12px;
}
.hdr-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.hdr-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}
.hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-nav a:hover { color: var(--text); }

.hdr-end { display: flex; align-items: center; gap: 14px; }
.hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}
.hdr-cta:hover { background: transparent; color: var(--text); }

/* three 1px lines in a 44px target; shown only when the nav is hidden */
.hdr-burger {
  position: relative;
  display: none;
  flex: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}
.hdr-burger span,
.hdr-burger span::before,
.hdr-burger span::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 1px;
  background: var(--text);
  transition: transform 150ms ease, opacity 150ms ease, top 150ms ease;
}
.hdr-burger span { top: 50%; margin-top: -0.5px; }
.hdr-burger span::before { content: ""; left: 0; top: -6px; }
.hdr-burger span::after { content: ""; left: 0; top: 6px; }
.hdr-burger[aria-expanded="true"] span { background: transparent; }
.hdr-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hdr-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* The menu is a screen of its own. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: calc(60px + env(safe-area-inset-top) + 36px) 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu-in { display: flex; flex-direction: column; gap: 6px; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 8px 1px;
}
.menu-nav a::after { content: "\2192"; color: var(--quiet); font-weight: 400; }
.menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 52px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.menu-meta { margin-top: 28px; color: var(--quiet); font-size: 13px; line-height: 1.7; }
.menu-meta a { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ============================================================================
   BUTTONS AND LINKS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { border-color: var(--text); }
.btn.primary { border-color: var(--text); background: var(--text); color: #fff; }
.btn.primary:hover { border-color: #000; background: #000; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.link {
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.link:hover { color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

/* ============================================================================
   HERO — flush left, the headline given the full column, a rule closing it,
   and the claim held to a reading measure beneath. Two dashed uprights frame
   it and a dashed line across the page closes it.
   ========================================================================== */
.hero { position: relative; }
.hero-in {
  position: relative;
  padding: 72px 0 36px;
}
.hero-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dash-v), var(--dash-v);
  background-size: 1px 8px, 1px 8px;
  background-position: left top, right top;
  background-repeat: repeat-y, repeat-y;
  pointer-events: none;
}
.hero-in::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 100vw; height: 1px;
  transform: translateX(-50%);
  background-image: var(--dash-h);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.hero h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(34px, 6.4vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .type-line { display: inline; }
.hero h1 .type-caret {
  display: inline-block;
  width: 0.5em; height: 0.07em;
  min-height: 3px;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: baseline;
  animation: caret 0.7s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-claim {
  max-width: 820px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule-line);
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.008em;
}
.hero-claim b { color: var(--text); font-weight: 500; }
.hero .actions { margin-top: 34px; }

/* Subpage heroes are the same frame at a smaller volume. */
.hero.sub .hero-in { padding: 60px 0 34px; }
.hero.sub h1 { font-size: clamp(32px, 5.2vw, 68px); letter-spacing: -0.03em; }

/* ============================================================================
   THE CUTOFF — the one picture on the site. A timeline of documents, a task
   date T drawn through it, and everything to the right of T refused.
   ========================================================================== */
.cutoff { padding: 38px 0 54px; }
.cutoff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
}
.cutoff-head b { color: var(--text); font-weight: 500; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--text);
}
.legend i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--quiet); }

.tl { position: relative; height: 230px; }
.tl-axis {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--rule-line);
}
.tl-axis::after {
  /* the axis keeps going: the future is longer than the picture */
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--rule-line);
  border-right: 1px solid var(--rule-line);
  transform: rotate(45deg);
}
.tl-doc {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 0;
}
.tl-doc::before {
  /* the tick on the axis, and the mark that says whether the agent gets it */
  content: "";
  position: absolute;
  left: -4px; top: -4px;
  width: 9px; height: 9px;
  background: var(--text);
}
.tl-doc.after::before { background: #fff; box-shadow: inset 0 0 0 1px var(--quiet); }
.tl-doc .lbl {
  position: absolute;
  left: 0;
  width: 140px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--text);
}
/* the last document sits at the frame's edge, so its label hangs to the left of its tick */
.tl-doc.end .lbl { left: auto; right: 0; text-align: right; }
.tl-doc.end .lbl::after { left: auto; right: 0; }
.tl-doc .lbl small { display: block; color: var(--quiet); font-size: 11.5px; }
/* alternate above / below the axis so neighbours never collide */
.tl-doc.up .lbl { bottom: 18px; }
.tl-doc.down .lbl { top: 18px; }
.tl-doc.up .lbl::after, .tl-doc.down .lbl::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px; height: 10px;
  background: var(--rule-dash);
}
.tl-doc.up .lbl::after { bottom: -14px; }
.tl-doc.down .lbl::after { top: -14px; }
.tl-doc.after .lbl { color: var(--quiet); }
.tl-doc.after .lbl small { color: var(--quiet); }
.tl-doc .chip {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-cut {
  position: absolute;
  left: var(--x);
  top: 0; bottom: 0;
  width: 0;
  border-left: 2px solid var(--text);
}
.tl-cut .lbl {
  position: absolute;
  left: 12px; top: 0;
  width: 170px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
.tl-cut .lbl b { display: block; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tl-cut .lbl small { display: block; color: var(--quiet); font-size: 11.5px; }
/* the refused side is shaded, lightly, so the eye knows which half is which */
.tl-shade {
  position: absolute;
  left: var(--x); right: 0;
  top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, var(--soft) 0 6px, transparent 6px 14px);
  opacity: 0.9;
  pointer-events: none;
}

/* The picture draws itself in once it is on screen: the cutoff arrives, then
   what lies past it fades. Nothing moves for anyone who has asked it not to. */
.js .tl .tl-cut, .js .tl .tl-shade { opacity: 0; }
.js .tl .tl-doc.after { opacity: 1; }
.js .tl.is-visible .tl-cut { animation: cut-in 700ms cubic-bezier(.2,.7,.2,1) 200ms forwards; }
.js .tl.is-visible .tl-shade { animation: fade-to 600ms ease 700ms forwards; --to: 0.9; }
.js .tl.is-visible .tl-doc.after { animation: fade-to 600ms ease calc(800ms + var(--i, 0) * 120ms) forwards; --to: 0.62; }
@keyframes cut-in { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes fade-to { to { opacity: var(--to); } }

@media (max-width: 860px) {
  /* The axis turns and the documents become a list, in the same order. */
  .tl { height: auto; display: flex; flex-direction: column; }
  .tl-axis, .tl-shade { display: none; }
  .tl-doc {
    position: static;
    width: auto;
    padding: 12px 0 12px 22px;
    background-image: var(--dash-h);
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 8px 1px;
  }
  .tl-doc:first-child { background-image: none; }
  .tl-doc::before { left: 0; top: 17px; }
  .tl-doc .lbl { position: static; width: auto; font-size: 12px; }
  .tl-doc.end .lbl { text-align: left; }
  .tl-doc.up .lbl::after, .tl-doc.down .lbl::after { display: none; }
  .tl-doc .chip { margin-left: 8px; margin-top: 0; }
  .tl-cut {
    position: static;
    width: auto;
    margin: 6px 0;
    padding: 12px 0 12px 22px;
    border-left: 0;
    border-top: 2px solid var(--text);
  }
  .tl-cut .lbl { position: static; width: auto; }
  .js .tl.is-visible .tl-cut { animation-name: cut-in-y; }
  @keyframes cut-in-y { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ============================================================================
   FACTS — numbers from the literature, each with where it came from.
   ========================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts.four .fact-n { font-size: clamp(30px, 3.1vw, 42px); }
.facts.four .fact-n small { white-space: nowrap; }
.fact { padding: 26px 26px 24px; background: #fff; min-width: 0; }
.fact-n {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.fact-n small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.fact-t { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fact-s {
  margin-top: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.fact-s a { text-decoration: underline; text-underline-offset: 3px; }
.fact-s a:hover { color: var(--text); }

/* ============================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 64px 0; }
.section.tight { padding-top: 44px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 76px;
  align-items: start;
  margin-bottom: 34px;
}
.section-head > div { min-width: 0; }
.section-head > p {
  max-width: 48ch;
  /* the paragraph's first baseline on the headline's first baseline */
  padding-top: 50px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}
.section-head h2 {
  max-width: none;
  font-size: clamp(26px, 2.9vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--text);
  text-wrap: balance;
}
.section-head:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--text); }

.section-foot { margin-top: 26px; }

/* A grid of cells with hairlines between them: the table that is not a table. */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 26px 28px;
  background: #fff;
}
.cell-k {
  margin-bottom: 44px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cell-k span { color: var(--text); }
.cell h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cell h3.big { font-size: 28px; letter-spacing: -0.025em; }
.cell p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.cell p + p { margin-top: 10px; }

/* the small spec table at the foot of a product cell */
.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}
.spec > * {
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}
.spec dt { color: var(--quiet); white-space: nowrap; }
.spec dd { color: var(--text); min-width: 0; }
.cell .spec { margin-top: 22px; }

/* verifier checks at the foot of a task cell */
.checks {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}
.checks b { display: block; color: var(--quiet); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; margin-bottom: 6px; }
.checks span { color: var(--text); }

/* a strip beneath a grid: one bold claim and its sentence */
.strip {
  display: grid;
  grid-template-columns: minmax(200px, 0.42fr) 1fr;
  gap: 30px;
  margin-top: 1px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
}
.strip strong { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.strip p { max-width: 68ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.strip p a { text-decoration: underline; text-underline-offset: 3px; }

/* rows on the same two columns as the head above them: a spine for the page */
.rows { margin-top: 10px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 76px;
  align-items: start;
  padding: 26px 0;
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.row > div { min-width: 0; }
.row-k {
  margin-bottom: 9px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.row h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--text);
}
.row > p {
  max-width: 48ch;
  padding-top: 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.row > p a { text-decoration: underline; text-underline-offset: 3px; }
.row > p a:hover { color: var(--text); }

/* ============================================================================
   THE SPECIMEN — one record, as it ships. A document, not a card.
   ========================================================================== */
.specimen { border: 1px solid var(--text); background: #fff; }
.specimen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}
.specimen-head b { color: var(--text); font-weight: 600; }
.specimen-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}
.pane { padding: 20px 22px 22px; background: #fff; min-width: 0; }
.pane-t {
  margin-bottom: 14px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kv {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.kv > * { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.kv > :nth-child(-n+2) { border-top: 0; }
.kv dt { color: var(--quiet); }
.kv dd { color: var(--text); overflow-wrap: anywhere; }
.kv dd .q { color: var(--muted); }
.vo { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.vo li {
  display: grid;
  grid-template-columns: 18px 112px minmax(0, 1fr);
  gap: 0 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}
.vo li:first-child { border-top: 0; }
.vo .ok { color: var(--green); }
.vo .no { color: var(--red); }
.vo .k { color: var(--quiet); }
.vo .v { color: var(--text); overflow-wrap: anywhere; }
.vo li.sum { margin-top: 6px; border-top: 1px solid var(--text); padding-top: 10px; }
.specimen-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ============================================================================
   BUILT ON THE TERMINAL — one still, and what each part of it becomes.
   ========================================================================== */
.still {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #000;
}
.still img { width: 100%; }
.still figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.still figcaption b { color: var(--text); font-weight: 500; }

/* ============================================================================
   STATUS — where the work stands, said plainly.
   ========================================================================== */
.status { margin-top: 8px; }
.status li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 40px;
  padding: 20px 0;
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.status .st {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status .st::before { content: ""; width: 9px; height: 9px; background: var(--text); }
.status .st.now::before { background: var(--purple); }
.status .st.next::before { background: #fff; box-shadow: inset 0 0 0 1px var(--text); }
.status .st.never::before { background: #fff; box-shadow: inset 0 0 0 1px var(--quiet); }
.status .st.never { color: var(--quiet); }
.status h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.status p { margin-top: 6px; max-width: 70ch; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ============================================================================
   FAQ — questions a buyer actually asks, answered without a slide.
   ========================================================================== */
.faq { margin-top: 6px; }
.faq details {
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  color: var(--quiet);
  font-weight: 400;
  text-align: right;
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.2;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 22px; max-width: 72ch; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq .a p + p { margin-top: 10px; }
.faq .a a { text-decoration: underline; text-underline-offset: 3px; }
.faq .a a:hover { color: var(--text); }
.faq .a code { font-size: 0.92em; background: var(--soft); padding: 1px 5px; color: var(--text); }

/* ============================================================================
   PROSE — the method and trust pages are written, not laid out.
   ========================================================================== */
.prose { max-width: 760px; }
.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
}
.prose h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.72; }
.prose p + p { margin-top: 14px; }
.prose p b, .prose li b { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--muted); }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 0; }
.prose li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose li + li { margin-top: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--text); }
.prose ol { counter-reset: n; }
.prose ol li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 0.2em;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
}
.prose .note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.prose dl.defs { margin-top: 14px; }
.prose dl.defs dt { font-family: var(--mono); font-size: 13px; color: var(--text); }
.prose dl.defs dd { margin: 4px 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* a numbered band for each method step, on the page's two columns */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  column-gap: 76px;
  padding: 40px 0;
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.band .band-k {
  margin-bottom: 10px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.band h2 {
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.024em;
}
.band .band-sub { margin-top: 12px; max-width: 38ch; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.band .prose { max-width: none; }

/* code / schema block */
.code {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.code .c { color: var(--quiet); }
.code .k { color: var(--purple-deep); }
.code .s { color: var(--green); }

/* reading list: the literature the method stands on */
.reading li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  padding: 16px 0;
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.reading li::before { display: none; }
.reading .yr { padding-top: 3px; color: var(--quiet); font-family: var(--mono); font-size: 12px; }
.reading .ti { color: var(--text); font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.reading .by { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 2px; }
.reading .so { margin-top: 4px; color: var(--quiet); font-size: 13.5px; line-height: 1.55; }
.reading .so a { color: var(--text); }

/* ============================================================================
   FORM — the request for the sample pack. No backend: Send composes an
   email in the visitor's own mail client, so nothing leaves this page.
   ========================================================================== */
.form { max-width: 760px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); }
.field label small { margin-left: 6px; color: var(--quiet); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 150ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field .err { display: none; color: var(--red); font-size: 13px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.choices label:hover { border-color: var(--text); }
.choices input { width: 14px; height: 14px; margin: 0; accent-color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}
.form-note { color: var(--quiet); font-size: 13.5px; line-height: 1.6; max-width: 56ch; }
.feedback {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.feedback.is-visible { display: block; }
.feedback.is-error { border-color: var(--red); color: var(--red); }
.feedback a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   CLOSING — one line about the page it closes, and the action beneath it.
   ========================================================================== */
.closing { padding: 60px 0 72px; }
.closing-line {
  max-width: 30ch;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.closing .actions { margin-top: 26px; }
.closing .mail {
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.closing .mail:hover { color: var(--muted); }

/* ============================================================================
   FOOTER — the site's visible map. Brand left, columns of plain links,
   a rule, then the copyright and the profiles.
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 64px 0 28px;
  color: var(--quiet);
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: 8px 1px;
}
.foot {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  column-gap: 64px;
}
.foot-mark { font-size: 24px; }
.foot-line { max-width: 300px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.foot-h {
  margin: 0 0 16px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.foot-col ul { display: grid; gap: 11px; }
.foot-col li { font-size: 14px; line-height: 1.3; }
.foot-col a { color: var(--muted); transition: color 150ms ease; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--text); }
.foot-bottom {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
}
.foot-bottom::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 100vw; height: 1px;
  transform: translateX(-50%);
  background-image: var(--dash-h);
  background-repeat: repeat-x;
  background-size: 8px 1px;
  pointer-events: none;
}
.foot-copy { color: var(--quiet); font-size: 13px; }
.foot-copy a { color: var(--muted); }
.foot-copy a:hover { color: var(--text); }
.social { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--quiet);
  transition: color 150ms ease;
}
.social a:hover { color: var(--text); }
.social svg { width: 16px; height: 16px; }

/* ============================================================================
   404
   ========================================================================== */
.lost { padding: 120px 0 140px; }
.lost .code-n { color: var(--quiet); font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; margin-bottom: 18px; }
.lost h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.lost p { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 17px; }
.lost .actions { margin-top: 30px; }

/* ============================================================================
   REVEAL — things arrive as the reader reaches them. Without JS, or for
   anyone who has asked for less motion, they are simply there.
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .type-caret { display: none; }
  .js .tl .tl-cut, .js .tl .tl-shade { opacity: 1; animation: none !important; }
  .js .tl .tl-doc.after { opacity: 0.62; animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .hdr-nav { gap: 22px; }
  .hdr-mark { font-size: 24px; }
}
@media (max-width: 1120px) {
  .hdr-nav { display: none; }
  .hdr-burger { display: block; }
}
@media (max-width: 960px) {
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-in { height: 64px; padding: 0 20px; }
  .hdr-mark { font-size: 22px; }
  .hdr-cta { height: 36px; padding: 0 14px; }
  .section-head { grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 26px; }
  .section-head > p { padding-top: 0; max-width: 62ch; font-size: 15px; }
  .row { grid-template-columns: 1fr; row-gap: 10px; padding: 20px 0; }
  .row > p { padding-top: 0; max-width: 62ch; font-size: 15px; }
  .band { grid-template-columns: 1fr; row-gap: 18px; padding: 32px 0; }
  .band .band-sub { max-width: 62ch; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen-body { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-cols { margin-top: 40px; }
}
@media (max-width: 760px) {
  .topbar-bar { padding: 7px 14px; padding-top: calc(7px + env(safe-area-inset-top)); }
  .topbar-in { font-size: 13.5px; line-height: 1.5; }
  .hero-in { padding: 54px 0 30px; }
  .hero h1 { font-size: clamp(30px, 10.2vw, 48px); letter-spacing: -0.028em; line-height: 1.08; }
  .hero-claim { margin-top: 22px; font-size: 16px; }
  .hero .actions { margin-top: 26px; }
  .hero.sub .hero-in { padding: 44px 0 28px; }
  .cutoff { padding: 30px 0 40px; }
  .section { padding: 48px 0; }
  .section.tight { padding-top: 34px; }
  .facts, .facts.four, .grid.three, .grid.four, .grid.two { grid-template-columns: 1fr; }
  .cell { padding: 22px 20px 24px; }
  .cell-k { margin-bottom: 28px; }
  .strip { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .status li { grid-template-columns: 1fr; row-gap: 8px; padding: 18px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .closing { padding: 48px 0 56px; }
  .site-footer { padding: 48px 0 24px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; margin-top: 36px; }
  .foot-col ul { gap: 2px; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 40px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; }
  .kv { grid-template-columns: 104px minmax(0, 1fr); font-size: 12.5px; }
  .vo li { grid-template-columns: 16px 96px minmax(0, 1fr); font-size: 12.5px; }
  .reading li { grid-template-columns: 1fr; row-gap: 4px; }
  .lost { padding: 80px 0 100px; }
}
/* Below 600px the wordmark and the burger are the header: the one action
   lives in the menu, where there is room to say it in full. */
@media (max-width: 600px) {
  .hdr-in { padding: 0 16px; height: 60px; }
  .hdr-mark { font-size: 20px; }
  .hdr-cta { display: none; }
  .hdr-burger { margin-right: -8px; }
  .menu { padding-top: calc(60px + env(safe-area-inset-top) + 28px); }
}
