/* ==========================================================================
   ANTIHORIZN: shared design system
   One stylesheet for every page. White ground, near-black ink, one accent,
   and one neo-grotesk family set on a fixed scale (section 3). Page layers
   (launch.css, story.css, library.css) add sections; they do not restate
   type. If a size is not in the scale below, it does not belong on the site.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

/*  Design language.
    ANTIHORIZN is ink, paper and one grey. There is no accent hue. What used
    to be an accent is now --hot: ink on a light ground, paper on a dark one,
    with --on-hot for the text that sits on it. Emphasis in a headline is two
    tones: the lead-in in grey, the phrase that matters in --hot. Type is a
    single neo-grotesk family; monospace is kept for literal code and for
    readouts that reproduce tool output.                                    */

/* The one face. Inter (SIL Open Font License, assets/fonts/Inter-LICENSE.txt),
   self-hosted so no page waits on another company's server and every device
   gets the same font. One variable file carries every weight and the optical
   size axis, so headlines get the display cut without a second download. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* Brand: ANTIHORIZN is ink, paper and one grey. Nothing else.
     --hot is "the thing that matters here": ink on a light ground, paper on
     a dark one (the dark contexts re-point it below). --on-hot is the text
     that sits on a --hot fill. */
  --grey:   #8A8A8F;
  --hot:    #0B0B0C;
  --on-hot: #FFFFFF;

  /* Surfaces: the ground is white, full stop */
  --paper:        #FFFFFF;
  --paper-deep:   #F4F4F5;   /* hover only */
  --sheet:        #FFFFFF;
  --ink-surface:  #0B0B0C;   /* hero and footer ground */

  /* Ink */
  --ink:          #0B0B0C;
  --ink-soft:     #3A3A3E;
  --ink-mute:     #6E6E73;
  --ink-faint:    #8A8A8F;
  --on-dark:      #F4F4F5;
  --on-dark-mute: #8A8A8F;

  /* Accent: ink carries text-weight accents; hot colour is the graphic mark. */
  --accent:       #0B0B0C;
  --accent-flare: #FFFFFF;
  --signal:       #8A8A8F;   /* verification pass: quiet grey, a pass is not news */
  --warn:         #6E6E73;   /* verification warn */
  --fail:         #0B0B0C;   /* verification fail: ink, the loudest thing on the sheet */

  /* Chart: the site's palette. Ink for what was counted longest, grey for
     the second series, hot colour (with ink beside it) for the one point that
     matters. No other colours. */
  --c-web:      #0B0B0C;   /* websites online, measured */
  --c-git:      #8A8A8F;   /* GitHub repositories, measured */
  --c-hw:       #0B0B0C;   /* hardware designs, the one measured point */
  --c-hw-ink:   #0B0B0C;   /* text beside it: hot colour is never text on white */
  --c-grid:     rgba(11, 11, 12, 0.10);

  /* Lines */
  --rule:         rgba(11, 11, 12, 0.16);
  --rule-soft:    rgba(11, 11, 12, 0.08);
  --rule-dark:    rgba(244, 244, 245, 0.18);

  /* Type. One neo-grotesk family does everything, the way Apple sets its
     pages in SF Pro and Anduril sets its own in Helvetica Now Display. Both
     of those are licensed faces, so the site ships its own: Inter, one
     variable file in assets/fonts (see the @font-face above), named first
     in the stack so a Mac, a Windows laptop and a phone all draw the same
     letters at the same widths. The names after it are fallbacks for the
     moment before the file arrives.
     --display is for headlines and figures, --sans for everything read at
     text size. Monospace is for code only: tool names, file paths,
     addresses, and readouts that reproduce tool output. It uses the
     device's own code face; nothing is fetched for it. */
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4.2vw, 68px);
  --stack:  clamp(72px, 11vh, 148px);
  --maxw:   1560px;
  --nav-h:  60px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --slow:     900ms;
}

/* Every dark ground flips the accent pair: paper is the hot colour there. */
.night, .section--dark, .foot, .hero, .lhero, .consent, .nav[data-tone="dark"] {
  --hot:    #FFFFFF;
  --on-hot: #0B0B0C;
}

/* --- 2. Reset ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  /* Inter, tuned toward the references: square dots and quotes like a
     Helvetica, compact f and t so tight headlines do not collide. */
  font-feature-settings: "ss07", "ss08", "cv12", "cv13";
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Body: 17 / 1.5, the size Apple reads at. Everything inherits it. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Every heading starts in the display face at semibold. Size comes from a
   class in section 3, never from the tag. */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
}

::selection { background: var(--hot); color: var(--on-hot); }

/* No italics anywhere. Also blocks the browser from synthesising an oblique
   for faces we ship without an italic cut. */
em, i, cite, var, address, dfn, blockquote, figcaption, q {
  font-style: normal;
  font-synthesis-style: none;
}
/* Titles of works still need to read as titles. Weight does the job a slant
   used to do. */
i, cite { font-weight: 500; }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}
/* Ink cannot ring a dark ground. */
.nav[data-tone="dark"] :focus-visible,
.section--dark :focus-visible,
.foot :focus-visible { outline-color: var(--hot); }

/* The chromatic split is retired. The class is still on a heading or two in
   page bodies, so it resolves to plain text until those are cleaned up. */
.glitch { color: inherit; }
.glitch::before, .glitch::after { content: none; }

/* --- 3. Type primitives ------------------------------------------------- */

/*  The scale, at 1440 wide. clamp() holds it from 1280 to 1920.

    Hero headline      96 to 112   700   1.0     -0.03em    page layers
    Page headline      64 to 80    700   1.02    -0.03em    .page-head h1
    Section headline   56 to 68    600   1.05    -0.022em   .display
    Sub-headline       30 to 36    600   1.14    -0.015em   .subhead
    Item title         21 to 24    600   1.2     -0.012em   .headline
    Lede               20 to 22    400   1.4     -0.012em   .lede
    Body               17          400   1.5     -0.011em   body
    Small              14          400   1.45    -0.006em   .small
    Fine print         12          400   1.45     0         captions, credits
    Label              12          500   1.1     +0.04em    .label, uppercase
    Nav link           14          500   1       -0.005em   .slink
    Button             14          600   1       -0.005em   .btn
    Figure             display     600   1       -0.02em    .stat, tabular
    Code               0.86em      400   inherit  0         code, .mono

    Nothing is tracked tighter than -0.035em, and the label is the only
    uppercase on the site.                                                  */

/* The small tracked uppercase label: eyebrows, column heads, kickers. */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.1;
}
.label--ink   { color: var(--ink); }
.label--light { color: rgba(255, 255, 255, 0.82); }

/* Chip form of the label, for dark grounds */
.chip {
  display: inline-block;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid currentColor;
  color: var(--hot);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
/* No italics in this system. Emphasis is a highlighter block, never a slant
   and never hot colour text: hot colour on white is 1.5:1. The block is drawn one em
   tall rather than as a plain background, because at a 1.05 line-height a
   full background would reach up into the descenders of the line above. */
.display:has(em), .page-head h1:has(em), .subhead:has(em) { color: var(--grey); }
.display em, .page-head h1 em, .subhead em {
  font-style: normal;
  color: var(--hot);
}

/* Item title: a card, a row, a step. Never uppercase. */
.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.64vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.subhead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.35vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(18px, 1.56vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  max-width: 38ch;
}

.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; color: var(--ink-soft); }

.small {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
}

/* A figure: a count, a measurement, a year. Size is set where it is used. */
.stat {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Literal code: a tool name, a file path, an address. Nowhere else. */
code, kbd, samp, pre, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: 0;
}

.measure { max-width: 46ch; }

/* --- 4. Layout ---------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--stack); }
.section--tight { padding-block: clamp(48px, 6vh, 84px); }
.section--sheet { background: var(--sheet); }
.section--dark  { background: var(--ink-surface); color: var(--on-dark); }
.section--dark .label { color: var(--on-dark-mute); }
.section--dark .prose, .section--dark .lede { color: var(--on-dark-mute); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Section head: a label above a hairline */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 6vh, 84px);
}
.sec-head__n {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}
.section--dark .sec-head { border-color: var(--rule-dark); }
.section--dark .sec-head__n { color: var(--on-dark-mute); }

.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
}
.cols > * { min-width: 0; }
.statement > *, .block, .chart, .era > * { min-width: 0; }

/* --- 5. Navigation ------------------------------------------------------ */

/* One bar, the same on every page: the wordmark, six links centred on the
   page, two buttons. Its content is capped at --maxw so it lines up with
   .wrap on a wide screen. The height never changes, so nothing in the bar
   moves when the page scrolls; only colour does. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color 260ms var(--ease), background-color 260ms var(--ease),
              color 260ms var(--ease);
}

/* The wordmark: the trace mark and the name. Both take the bar's colour, so
   the same markup works on white and on night. */
.nav__mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: currentColor;
  white-space: nowrap;
}
.nav__mark svg { flex: none; display: block; height: 17px; width: auto; }
.nav__mark span {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 34px);
}

.slink {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.slink:focus-visible { color: var(--ink); }
.slink[aria-current="page"] { color: var(--ink); }
.slink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .slink:hover { color: var(--ink); }
}

.nav__cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons: sentence case, square, one size. The press is acknowledged. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: none;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--on-hot);
}
.btn--ghost { border-color: var(--rule); color: var(--ink-soft); }
.btn--light {
  background: var(--hot);
  border-color: var(--hot);
  color: var(--on-hot);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
  .btn--solid:hover { background: transparent; border-color: var(--hot); color: var(--hot); }
  .btn--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
  .btn--light:hover { background: transparent; color: var(--hot); border-color: var(--hot); }
}

.nav__burger { display: none; }

/* --- 6. Hero ------------------------------------------------------------ */
/* The generic media hero. The landing page has its own in launch.css; this
   one is kept on the same scale for any page that opens on footage. */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink-surface);
  color: var(--hot);
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: contrast(1.2) saturate(0.5) brightness(0.46);
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12,0.72) 0%, rgba(11, 11, 12,0.40) 34%,
                    rgba(11, 11, 12,0.58) 68%, rgba(11, 11, 12,0.95) 100%),
    rgba(11, 11, 12,0.30);
}
/* Fine grain over the hero: hides upscaling artefacts in the source footage */
.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  padding: 0 var(--gutter) clamp(38px, 6vh, 76px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hot);
  margin: 18px 0 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: inherit; }
.hero__sub {
  margin-top: clamp(18px, 2.4vh, 30px);
  max-width: 38ch;
  font-size: clamp(18px, 1.56vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.82);
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(26px, 4vh, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__caption {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: rgba(255, 255, 255, 0.56);
}
/* Hero foot with the caption removed: the actions carry the row alone. */
.hero__foot--solo { justify-content: flex-start; }

/* thin scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5));
  animation: hintPulse 2.6s var(--ease) infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scaleY(0.6); }
  50%      { opacity: 0.9;  transform: translateX(-50%) scaleY(1); }
}

/* --- 7. (removed) ------------------------------------------------------
   The landing page's "What comes back" section and its hover-reveal index
   were taken out on the founder's instruction. Their rules are gone with
   them; do not rebuild the section. */

/* --- 8. Editorial statement & four-block grid --------------------------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 80px);
}
/* The argument, set at lede size in full ink. */
.statement__body {
  max-width: 54ch;
  font-size: clamp(18px, 1.56vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.statement__body p + p { margin-top: 1em; }
.statement__body .drop { display: inline-block; width: 3.2em; }

.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.block {
  background: var(--paper);
  padding: clamp(26px, 3vw, 44px) clamp(20px, 2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 180ms var(--ease);
}
.section--sheet .block { background: var(--sheet); }
@media (hover: hover) and (pointer: fine) {
  .block:hover { background: var(--paper-deep); }
  .section--sheet .block:hover { background: var(--paper-deep); }
}
.block h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.64vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.block p { color: var(--ink-soft); }
.block__n {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}
.blocks--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .blocks--2 { grid-template-columns: 1fr; } }

/* --- 9. Proof / verification readout ------------------------------------ */
/* The readout reproduces what the tool prints, so it is the one component
   set in monospace. Its title bar belongs to the page and is in the grotesk. */

.readout {
  border: 1px solid var(--rule);
  overflow-wrap: anywhere;
  background: var(--sheet);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}
.readout__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.readout__rows { padding: 6px 0; }
.row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 16px;
  border-left: 2px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .row:not(.row--warn):not(.row--fail):hover { background-color: rgba(11,11,12,0.025); }
}
.row__tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.row--pass { border-left-color: var(--signal); }
.row--pass .row__tag { color: var(--signal); }
.row--warn { background: rgba(11, 11, 12, 0.05); border-left-color: var(--grey); }
.row--warn .row__tag { color: var(--warn); }
.row--fail { background: rgba(11, 11, 12, 0.06); border-left-color: var(--fail); }
.row--fail .row__tag { justify-self: start; padding: 2px 6px; margin: -2px 0 -2px -6px; background: var(--fail); color: #FFFFFF; }
.row__cite { color: var(--ink-mute); font-size: 13px; white-space: nowrap; }
.row__detail {
  grid-column: 2 / -1;
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(11,11,12,0.04);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}
.row__detail b { color: var(--ink); font-weight: 500; }

/* --- 10. Figures, full-bleed media -------------------------------------- */

.bleed { position: relative; overflow: hidden; }
.bleed__media { width: 100%; height: clamp(360px, 74vh, 760px); object-fit: cover; }
.bleed__over {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(24px, 4vh, 54px) var(--gutter);
  background: linear-gradient(180deg, rgba(11, 11, 12,0) 0%, rgba(11, 11, 12,0.55) 45%, rgba(11, 11, 12,0.92) 100%);
  color: #fff;
}
.bleed__over .wrap { padding-inline: 0; }

.figure { display: grid; gap: 12px; }
.figure img { width: 100%; }
.figure figcaption {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--ink-mute);
  max-width: 52ch;
}
.figure figcaption b { font-weight: 500; color: var(--ink-soft); }

/* Media that pans very slowly: keeps still images alive without motion noise */
.kenburns { animation: kb 26s var(--ease) infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }

/* --- 11. Era timeline (History) ----------------------------------------- */

.era {
  display: grid;
  grid-template-columns: 92px minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 56px);
  padding-block: clamp(34px, 5vh, 68px);
  border-top: 1px solid var(--rule);
  align-items: start;
}
/* The year is a figure: display face, tabular, sitting on the title's line. */
.era__year {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  /* 0.935 of the title size, less this line's own ascent: shared baseline */
  padding-top: clamp(7.7px, calc(2.197vw - 14.7px), 19px);
}
.era__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.35vw, 36px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.era__body { color: var(--ink-soft); max-width: 46ch; }
.era__figure { overflow: hidden; }
.era__figure img {
  width: 100%;
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .era:hover .era__figure img { transform: scale(1.02); }
}
.era__figure--contain img { object-fit: contain; background: var(--sheet); }
.era__placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(11,11,12,0.035) 9px, rgba(11,11,12,0.035) 10px);
  text-align: center;
  padding: 20px;
}
/* Image credit under an era figure, required by the CC BY sources. */
.era__credit {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-mute);
}

/* --- 12. Charts --------------------------------------------------------- */

.charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 780px) { .charts { grid-template-columns: repeat(2, 1fr); } }
.chart {
  background: var(--sheet);
  padding: clamp(20px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart__head { display: flex; flex-direction: column; gap: 6px; }
.chart__title {
  font-family: var(--display);
  font-size: clamp(20px, 1.64vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.chart__note { max-width: 76ch; font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-mute); }
.chart__plot { width: 100%; height: auto; overflow: visible; }
/* Text inside a plot is sized in drawing units, so it scales with the chart:
   12 units is fine print at 1440 wide. The script gives each text a class
   and no font of its own. */
.chart__plot text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.chart__tick { fill: var(--ink-mute); }
.chart__plot .chart__series { font-weight: 600; }
/* On a phone the drawing is about half size, so its text is set larger. */
@media (max-width: 760px) {
  .chart__plot text { font-size: 17px; }
}
.chart__src { font-size: 12px; line-height: 1.45; letter-spacing: 0; color: var(--ink-mute); }
.chart--wide { grid-column: 1 / -1; }
/* The heading and sentence above the grid of charts. */
.charts-intro { margin-bottom: clamp(32px, 5vh, 64px); }

/* The close of the History page, on night: the last line takes the accent,
   and the second button is an outline that the ground can carry. */
.section--dark .turn { color: var(--hot); font-weight: 600; }
.section--dark .btn--ghost { border-color: var(--rule-dark); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .section--dark .btn--ghost:hover { background: transparent; border-color: var(--hot); color: var(--hot); }
}
/* Night runs into night where a dark section meets the footer: one hairline. */
.section--dark + .foot { border-top: 1px solid var(--rule-dark); }

/* --- 13. Team ----------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 46px) clamp(14px, 1.8vw, 28px);
}
@media (min-width: 680px)  { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member__frame {
  aspect-ratio: 1;
  background: var(--paper-deep);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.member__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.member__initials {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--ink-faint);
  letter-spacing: -0.02em;
}
.member__name { margin-top: 14px; font-weight: 600; }
.member__role { font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-mute); margin-top: 2px; }
.member__bio { margin-top: 10px; font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-soft); }

/* --- 14. Vignettes (Vision) --------------------------------------------- */

/* Each vignette is three rows (label, name, text) laid on the parent's rows,
   so a name that wraps to two lines moves every paragraph in its row down
   together and the four texts start on one line. */
.vignette {
  display: grid;
  grid-template-columns: 1fr;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 14px;
}
/* Four to a row, so the name is an item title, not a sub-headline. */
.vignette__who {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.64vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.vignette__text { color: var(--ink-soft); max-width: 52ch; }
/* The section head already draws the rule above the row, so the vignettes
   carry none of their own; when they wrap, the row gap separates them. */
.vignettes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 5vh, 56px) clamp(24px, 3vw, 56px);
}
/* Four across, then two by two, then one: never three and an orphan. */
@media (max-width: 1100px) { .vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .vignettes { grid-template-columns: 1fr; } }

/* The caption over the full-bleed painting: small text on the scrim. */
.bleed__caption {
  max-width: 52ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

/* --- 15. Footer --------------------------------------------------------- */

.foot {
  background: var(--ink-surface);
  color: var(--on-dark);
  padding-block: clamp(56px, 8vh, 100px) 34px;
}
.foot a { color: var(--on-dark-mute); transition: color 180ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: var(--accent-flare); }
}
/* The third column holds the email address, the one string that cannot wrap,
   so it is never narrower than its content. */
.foot__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) minmax(0, 1fr) minmax(max-content, 1fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 56px);
  padding-bottom: clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--rule-dark);
}
/* The same wordmark as the bar, one size up. */
.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--on-dark);
  white-space: nowrap;
}
.foot__mark svg { flex: none; display: block; height: 30px; width: auto; }
.foot__mark span {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.foot__line {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--on-dark-mute);
}
/* The second sentence takes its own lines, evenly broken. */
.foot__line span { display: block; text-wrap: balance; }
.foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
}
.foot__col a { overflow-wrap: anywhere; }
.foot__col .label { margin-bottom: 8px; color: var(--on-dark-mute); }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--on-dark-mute);
}

/* --- 16. Scroll reveal -------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- 17. Responsive ----------------------------------------------------- */

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .cols > * { grid-column: 1 / -1 !important; }
  /* The bar keeps one button once the links need the room. */
  .nav__cta .btn:not(.btn--solid) { display: none; }
}

@media (max-width: 1080px) {
  .statement { grid-template-columns: 1fr; }
  .era { grid-template-columns: 72px 1fr; }
  .era__figure { grid-column: 2 / -1; margin-top: 20px; max-width: 520px; }
  /* The wordmark takes its own row once four link columns need the width. */
  .foot__top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { --nav-h: 56px; grid-template-columns: 1fr auto; }
  /* The panel is anchored to the bar, not the viewport (a bar with a
     backdrop-filter is the containing block for its fixed descendants), and
     is hidden by visibility rather than by moving it off-screen. */
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 420ms var(--ease), transform 520ms var(--ease),
                visibility 0s linear 520ms;
  }
  .nav[data-open="true"] .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s, 0s, 0s;
  }
  .nav[data-open="true"] .nav__links .slink {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
  }
  .nav__burger {
    display: grid;
    gap: 4px;
    padding: 8px 0 8px 8px;
  }
  .nav__burger span {
    display: block;
    width: 20px; height: 1px;
    background: var(--ink);
    transition: transform 380ms var(--ease), opacity 380ms var(--ease);
  }
  .nav[data-open="true"] .nav__burger span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
  .nav[data-open="true"] .nav__burger span:nth-child(2) { opacity: 0; }
  .nav[data-open="true"] .nav__burger span:nth-child(3) { transform: translateY(-2.5px) rotate(-45deg); }

  .era { grid-template-columns: 1fr; gap: 16px; }
  .era__year { padding-top: 0; }
  .era__figure { grid-column: 1; margin-top: 6px; }
  .row { grid-template-columns: 62px 1fr; }
  .row__cite { grid-column: 1 / -1; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- 18. Interior page heads -------------------------------------------- */
/* The page headline is the hero's weight and tracking one step down: an
   interior page opens on a title and a lede side by side, not on a full
   screen. The title takes the wider column so two short lines stay two. */

.page-head {
  padding-top: clamp(112px, 15vh, 176px);
  padding-bottom: clamp(44px, 7vh, 92px);
  border-bottom: 1px solid var(--rule);
}
.page-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 18px;
  text-wrap: balance;
}

.page-head__note { padding-bottom: 6px; }
/* A pointer to a neighbouring page, under the lede, as small text. */
.page-head__more {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--ink-mute);
}

@media (max-width: 860px) {
  .page-head__row { grid-template-columns: 1fr; align-items: start; }
  .page-head__note { padding-bottom: 0; }
}

/* --- 19. Utilities ------------------------------------------------------ */

.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 26px; }
.tac { text-align: center; }
.mt-l { margin-top: clamp(28px, 4vh, 52px); }
.dim  { color: var(--ink-mute); }

/* A link inside a sentence: ink, on a hairline that darkens under the pointer. */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 180ms var(--ease);
}
.link:focus-visible { text-decoration-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--ink); }
}

/* A row of buttons. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* A section's opening row: the headline on the left, the lede on the right,
   both sitting on the same last line. The landing page opens every section
   on it, and every page closes on it: one headline, one sentence, two
   buttons, on the same grid as everything above. */
.lead {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: end;
}
.lead > * { min-width: 0; }
.lead > h2 { grid-column: span 8; max-width: 17ch; }
.lead > .lede,
.lead > .lead__side { grid-column: 9 / -1; padding-bottom: 0.08em; }
/* A highlighted phrase is one block. It never breaks across two lines. */
.lead em { white-space: nowrap; }
.lead .lede { text-wrap: pretty; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 1080px) {
  .lead > h2, .lead > .lede, .lead > .lead__side { grid-column: 1 / -1; padding-bottom: 0; }
}

.slot {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  border: 1px dashed var(--rule);
  background: repeating-linear-gradient(-45deg, transparent, transparent 9px,
              rgba(11,11,12,0.03) 9px, rgba(11,11,12,0.03) 10px);
  aspect-ratio: 16 / 10;
}
.slot__id {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
}
.slot p { font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-mute); max-width: 34ch; }

/* Product-page illustrations: full-bleed inside the figure, hairline framed. */
.shot {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1.5px solid var(--ink);
}


/* Registered so the browser treats them as real numbers rather than token
   soup, which makes the clamp() arithmetic below reliable and keeps --t
   inheriting down into each group's children. */
@property --p   { syntax: '<number>'; inherits: true;  initial-value: 0; }
@property --t   { syntax: '<number>'; inherits: true;  initial-value: 0; }
@property --in  { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --out { syntax: '<number>'; inherits: false; initial-value: 1; }

/* --- 20. Company statement + the scroll-drawn chart ---------------------- */
/* The statement sits beside the chart: a sub-headline, then the argument at
   lede size in medium weight so it holds against the drawing next to it. */

.cstatement {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
@media (max-width: 1080px) { .cstatement { grid-template-columns: 1fr; } }

.cstatement__head {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.35vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: clamp(18px, 2.6vh, 30px);
}
.cstatement__body {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(18px, 1.56vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 38ch;
}

/* The chart is sticky inside a tall track: scrolling the track scrubs the
   drawing rather than just triggering it once. --p is the progress, 0 to 1,
   written by the observer in site.js. */
.chartscroll { position: relative; }
.chartscroll__track { height: 320vh; }
.chartscroll__stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 10vh, 120px) clamp(32px, 5vh, 60px);
}
@media (max-width: 1080px) {
  .chartscroll__track { height: 260vh; }
  .chartscroll__stage { min-height: 100svh; align-items: flex-start; }
}

.sc { --p: 0; width: 100%; }
.sc__plot { width: 100%; height: auto; overflow: visible; display: block; }
.sc__cap {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-mute);
  margin-top: 14px;
}

/* Everything inside the plot reveals off --p. Each element carries its own
   --in (the progress at which it starts) and --out (where it is fully there);
   `--t` is that span normalised and clamped, which is what actually drives
   opacity and dash offset. No JavaScript touches individual nodes. */
.sc [data-step] {
  --t: clamp(0, calc((var(--p) - var(--in)) / (var(--out) - var(--in))), 1);
}
.sc .sc-fade { opacity: var(--t); }
.sc .sc-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--t));
  opacity: clamp(0, calc(var(--t) * 14), 1);
}
.sc .sc-pop {
  opacity: var(--t);
  transform: scale(calc(0.4 + 0.6 * var(--t)));
  transform-origin: center;
  transform-box: fill-box;
}

/* Chart furniture. Axis text and annotations are in the grotesk like the
   rest of the page; values are figures, so they are tabular. */
.sc-grid   { stroke: var(--c-grid); stroke-width: 1; }
.sc-axis   { stroke: rgba(11,11,12,0.34); stroke-width: 1; }
.sc__plot text { font-family: var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sc-tick   { font-size: 12px; font-weight: 500; fill: var(--ink-mute); }
.sc-era    { font-size: 12px; font-weight: 600; fill: var(--ink-soft); letter-spacing: 0.04em; }
.sc-erasub { font-size: 12px; fill: var(--ink-mute); }
.sc-eraline{ stroke: rgba(11,11,12,0.16); stroke-width: 1; stroke-dasharray: 2 4; }

.sc-web    { stroke: var(--c-web); stroke-width: 2.2; fill: none;
             stroke-linejoin: round; stroke-linecap: round; }
.sc-git    { stroke: var(--c-git); stroke-width: 2;   fill: none;
             stroke-linejoin: round; stroke-linecap: round; }
.sc-hwray  { stroke: var(--c-hw);  stroke-width: 1.6; fill: none; stroke-dasharray: 5 4; }
.sc-hwband { fill: var(--c-hw); opacity: 0.16; }

.sc-corridor { fill: rgba(11,11,12,0.04); stroke: var(--c-hw);
               stroke-width: 1.2; stroke-dasharray: 6 5; }
.sc-projband { fill: rgba(11,11,12,0.035); }

.sc__plot .sc-val { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.sc-valsub { font-size: 12px; fill: var(--ink-mute); }
.sc-note   { font-size: 14px; fill: var(--ink-soft); }
.sc-note--hw { font-size: 14px; font-weight: 600; fill: var(--c-hw-ink); }
.sc-foot   { font-size: 12px; fill: var(--ink-mute); }

.sc-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px;
             font-size: 14px; line-height: 1.45; letter-spacing: -0.006em;
             color: var(--ink-soft); }
.sc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sc-legend i { width: 20px; height: 0; border-top: 2.5px solid currentColor;
               flex: none; font-style: normal; }
.sc-legend .k-web { color: var(--c-web); }
.sc-legend .k-git { color: var(--c-git); }
.sc-legend .k-hw  { color: var(--c-hw-ink); }
.sc-legend .k-hw i { border-top: 0; width: 10px; height: 10px; border-radius: 50%;
                     background: var(--c-hw); }
.sc-legend .k-cor { color: var(--c-hw-ink); }
.sc-legend .k-cor i { border-top-style: dashed; }
.sc-legend .k-prj i { border-top: 0; width: 18px; height: 11px;
                      background: rgba(11,11,12,0.12); }

/* Reduced motion: hand over the finished chart, no scrubbing. */
@media (prefers-reduced-motion: reduce) {
  .chartscroll__track { height: auto; }
  .chartscroll__stage { position: static; min-height: 0; }
  .sc { --p: 1 !important; }
  .sc .sc-draw { stroke-dashoffset: 0; }
  .sc .sc-pop  { transform: none; }
}


/* --- 22. Legal pages ----------------------------------------------------
   Terms, privacy, refunds, contact. Long prose on the same two columns as
   the editorial statement: the date in the narrow one, the clauses in the
   wide one at a single measure, so the text starts where the argument on
   the Vision page starts and sits under the page head instead of floating
   in the middle. A hairline before each heading lets a reader find a clause
   by scanning rather than reading. */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 80px);
  align-items: baseline;
  padding-block: clamp(48px, 7vh, 96px) clamp(72px, 11vh, 148px);
  color: var(--ink-soft);
}
/* The measure is the body's line length written in pixels, so a heading
   (which is set larger) and its hairline stop at the same edge as the text
   below it. */
.legal > * { grid-column: 2; max-width: 640px; min-width: 0; }

.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.64vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: clamp(40px, 5.5vh, 68px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.legal h2:first-child,
.legal__meta + h2 { margin-top: 0; border-top: 0; padding-top: 0; }

.legal p { margin-top: 14px; }

.legal strong { color: var(--ink); font-weight: 600; }

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 180ms var(--ease);
}
.legal a:focus-visible { text-decoration-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .legal a:hover { text-decoration-color: var(--ink); }
}

/* The date sits beside the first clause, as small text on its baseline. */
.legal > .legal__meta {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--ink-mute);
}

/* One column once the statement grid folds: the date goes back on top. */
@media (max-width: 1080px) {
  .legal { display: block; }
  .legal > .legal__meta { margin-bottom: clamp(28px, 4vh, 44px); }
}

/* --- 23. Feature rows and the limits list (Product) ---------------------
   A feature is a numbered row on the 12-column grid: the claim in four
   columns, the evidence in eight. Rows are separated by a hairline. */

.features > * + * { margin-top: clamp(40px, 6vh, 80px); }
.feature {
  padding-bottom: clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--rule);
}
.feature:last-child { padding-bottom: 0; border-bottom: 0; }
.feature__copy { grid-column: span 4; }
.feature__copy .subhead { margin-top: 12px; }
.feature__copy p { margin-top: 14px; color: var(--ink-soft); }
.feature__copy .subhead + p { margin-top: 18px; }
.feature__shot { grid-column: span 8; align-content: start; }

/* What the product does not do: the statement in ink on the left, what it
   means beside it. Body size, like every other sentence on the page. */
.limits { border-top: 1px solid var(--rule); }
.limits li {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 6px clamp(20px, 2.4vw, 40px);
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}
.limits b { font-weight: 600; color: var(--ink); }
.limits span { color: var(--ink-soft); }
@media (max-width: 760px) {
  .limits li { grid-template-columns: 1fr; }
}

/* A sentence under a plot or a list that says how to read it. */
.footnote {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--ink-mute);
}

/* --- Cookie consent bar ---------------------------------------------------
   Built by assets/js/consent.js on a first visit. One line on a desktop, in
   the site's own type and buttons: night ground, hairline, square corners,
   hot colour for the one action. */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 12px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  background: var(--ink-surface);
  border-top: 1px solid var(--rule-dark);
  color: var(--on-dark);
}
.consent__text {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: rgba(244, 244, 245, 0.78);
}
.consent__text a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; flex: none; gap: 8px; }
.consent .btn { padding: 10px 16px; }
.consent__no { border-color: rgba(244, 244, 245, 0.3); color: var(--on-dark); }
.consent__yes { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.consent :focus-visible { outline: 1.5px solid var(--hot); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .consent__text a:hover { color: var(--hot); }
  .consent__no:hover { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
  .consent__yes:hover { background: transparent; border-color: var(--hot); color: var(--hot); }
}
@media (max-width: 760px) {
  .consent { flex-wrap: wrap; padding-block: 14px; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}
