/* Fonts served from this origin — generated from the Google Fonts + Fontshare CSS,
   then the CDN <link>s were dropped. No visitor request leaves the
   origin for a font (privacy), and nothing render-blocks cross-origin
   (perf). See fonts/LICENSE.txt for sources + licenses. */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/clash-display-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/clash-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/clash-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/fonts/satoshi-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/fonts/satoshi-700.woff2') format('woff2');
}

/* ---------------------------------------------------------------------------
   Metric-matched fallbacks — the CLS fix (2026-09-01).

   Every face above is `font-display: swap`, so the browser paints in a
   fallback and re-lays-out when the webfont lands. With no metric overrides
   that re-layout MOVES things: the hero kicker is `.mono` and WRAPS, so when
   JetBrains Mono swapped, that paragraph could change line count and shove
   the whole page down — which is why CRUX blamed the lifecycle terminal's
   text node. The terminal never shifted itself (its `line-height: 1.85` is
   unitless, so its height does not depend on font metrics); it was pushed.

   Each fallback below is pinned to a font that exists on both macOS and
   Windows via `local()`, rather than letting `ui-sans-serif`/`ui-monospace`
   resolve to something different per platform — a single override cannot be
   correct for SF, Segoe AND Arial at once, so the fallback is made
   deterministic instead.

   Numbers are MEASURED, not copied: metrics read out of the shipped .woff2
   files and out of macOS's own Arial.ttf / "Courier New.ttf" with fontTools,
   then size-adjust = webfontAvgAdvance / fallbackAvgAdvance over ASCII 32-126,
   and each *-override divided by that ratio. Re-derive them if a font file is
   ever re-subset — the averages move with the character set.

   Happy accident worth keeping: JetBrains Mono's advance is 0.6000 em and
   Courier New's is 0.6001, so the mono size-adjust is ~100% and the fallback
   already wraps identically. Clash Display is much wider than Arial (0.5784
   vs 0.5270 em), which is why its adjustment is the large one. */

@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  font-weight: 100 400;
  size-adjust: 98.62%; ascent-override: 102.41%; descent-override: 24.33%; line-gap-override: 10.14%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  font-weight: 500;
  size-adjust: 101.81%; ascent-override: 99.20%; descent-override: 23.57%; line-gap-override: 9.82%;
}
/* 600-900 matched against Arial BOLD (.5512 em) — what the fallback actually
   resolves to at 600+.
   ⚠️ THE NUMBER BELOW IS EMPIRICAL, AND DELIBERATELY *NOT* THE FORMULA'S.
   satoshi-700.woff2 does ship (an earlier revision of this comment claimed it
   did not), so the textbook ratio is Satoshi 700 .5556 / Arial Bold .5512 =
   100.81%. Measured on this page at 390px, 3 runs each: 100.81% -> 0.2596
   CLS, the value kept below -> 0.0355-0.0368. Seven times worse.
   Why: size-adjust equalises AVERAGE advance over ASCII 32-126, which is only
   a proxy. What actually drives CLS is whether the fallback WRAPS this page's
   real sentences the way the webfont does, and for this copy the lower ratio
   wins. Re-tune by measurement if the hero copy changes; do not "correct" it
   back to the formula without re-running landing/demo/cls-measure.mjs. */
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Helvetica");
  font-weight: 600 900;
  size-adjust: 97.33%; ascent-override: 103.78%; descent-override: 24.66%; line-gap-override: 10.27%;
}

@font-face {
  font-family: "Clash Display Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  font-weight: 100 500;
  size-adjust: 105.02%; ascent-override: 84.75%; descent-override: 23.81%; line-gap-override: 8.57%;
}
@font-face {
  font-family: "Clash Display Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  font-weight: 600;
  size-adjust: 109.76%; ascent-override: 81.08%; descent-override: 22.78%; line-gap-override: 8.20%;
}
@font-face {
  font-family: "Clash Display Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Helvetica");
  font-weight: 700 900;
  size-adjust: 108.95%; ascent-override: 81.69%; descent-override: 22.95%; line-gap-override: 8.26%;
}

/* ONE face covers every weight: JetBrains Mono is monospaced, so its advance
   is .6000 em at 400, 500 AND 700 — and Courier New's is .6001 em at both
   regular and bold. Nothing to vary. */
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("Menlo");
  font-weight: 100 900;
  size-adjust: 99.98%; ascent-override: 102.02%; descent-override: 30.00%; line-gap-override: 0.00%;
}
