/* ComputerWorld — the project page, the expert-work page and the three studies.

   A quiet product page. One typeface (Inter Tight) in a few sizes far apart, JetBrains
   Mono only where something is code, a warm grey studio ground with fine grain, black
   type, thin rules, and media in rounded rectangles. The only colour on the page is what
   the machines draw and the two verdict colours a check can return.

   Light is the default. Dark follows the device, or the reader's stored choice: a
   one-line script in each page's <head> writes `data-theme` on <html> before the first
   paint. The dark palette is written twice because CSS has no way to say "the device
   asked, OR the reader picked" in one rule. */
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("./fonts/inter-tight.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("./fonts/jetbrains-mono.woff2") format("woff2");
}
:root {
  --radius: 10px;
  --media-radius: 14px;
  --tile-radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-small: .875rem;
  --t-body: 1.0625rem;
  --t-title: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --t-head: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --t-display: clamp(3rem, 1rem + 6.4vw, 7rem);
  --page: 1200px;
  --margin: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #ecebe8;
  --sweep-1: #f3f2ef; --sweep-2: #e9e8e4; --sweep-3: #dedcd7;
  --grain: .07;
  --bar: rgba(239, 238, 235, .78);
  --surface: #e4e2de;
  --surface-2: #dad8d3;
  --line: #d6d4cf;
  --ink: #111111;
  --ink-hover: #000000;   /* what a link, menu entry or icon turns on hover: a step darker than ink, never a fill */
  --ink-2: #262624;
  --muted: #57554f;
  --faint: #74716b;
  --accent: #111111;
  --accent-ink: #ffffff;
  --button-hover: #333333;
  --holds: #2b7a4b;
  --breaks: #b3261e;
  --stripe: #dcdad5;
  --code-bg: #e2e0db;
  --code-ink: #2b2b2b;
  --syn-k: #6a6863;
  --syn-s: #3f6b2f;
  --syn-t: #8a5a12;
  --syn-n: #9a4a14;
  --frame-edge: #cfcdc8;
  --tile-edge: rgba(0, 0, 0, .05);
  --tile-shadow: rgba(40, 36, 30, .30);
  --media-shadow: 0 30px 60px -32px rgba(40, 36, 30, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4;
  --context: #cfcdc8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --sweep-1: #1c1c1a; --sweep-2: #141413; --sweep-3: #0e0e0d;
    --grain: .05;
    --bar: rgba(22, 22, 21, .78);
    --surface: #1d1d1b;
    --surface-2: #272725;
    --line: #2c2c29;
    --ink: #ededea;
    --ink-hover: #ffffff;
    --ink-2: #dddcd7;
    --muted: #b0aea7;
    --faint: #8e8c85;
    --accent: #ededea;
    --accent-ink: #121211;
    --button-hover: #ffffff;
    --holds: #8fb87a;
    --breaks: #e07a62;
    --stripe: #181817;
    --code-bg: #1a1a18;
    --code-ink: #d2d2cf;
    --syn-k: #9e9d97;
    --syn-s: #a9b88f;
    --syn-t: #e0c9a0;
    --syn-n: #f0b27a;
    --frame-edge: #2e2e2b;
    --tile-edge: rgba(255, 255, 255, .03);
    --tile-shadow: rgba(0, 0, 0, .8);
    --media-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181;
    --context: #34343a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --sweep-1: #1c1c1a; --sweep-2: #141413; --sweep-3: #0e0e0d;
  --grain: .05;
  --bar: rgba(22, 22, 21, .78);
  --surface: #1d1d1b;
  --surface-2: #272725;
  --line: #2c2c29;
  --ink: #ededea;
  --ink-hover: #ffffff;
  --ink-2: #dddcd7;
  --muted: #b0aea7;
  --faint: #8e8c85;
  --accent: #ededea;
  --accent-ink: #121211;
  --button-hover: #ffffff;
  --holds: #8fb87a;
  --breaks: #e07a62;
  --stripe: #181817;
  --code-bg: #1a1a18;
  --code-ink: #d2d2cf;
  --syn-k: #9e9d97;
  --syn-s: #a9b88f;
  --syn-t: #e0c9a0;
  --syn-n: #f0b27a;
  --frame-edge: #2e2e2b;
  --tile-edge: rgba(255, 255, 255, .03);
  --tile-shadow: rgba(0, 0, 0, .8);
  --media-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181;
  --context: #34343a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--sweep-1) 0%, var(--sweep-2) 55%, var(--sweep-3) 100%) fixed var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Fine grain over everything, as a rendered studio sweep has. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: var(--grain); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, video { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .86em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .6rem 1rem; z-index: 100; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--margin); }

/* THE BAR. The name on the left; the docs, the source and the one action on the right.
   header.top, not .top: .split.top on a section means "align to the top", and must not
   make that section a sticky, blurred bar. */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .2s ease;
}
/* A hairline along the bar's foot once the page has scrolled under it (theme.js sets the
   class); at the top of the page the bar has no edge. A shadow, not a border, so the bar's
   height is the same either way. */
header.top.over { box-shadow: 0 1px 0 var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 56px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.brand svg { flex: none; display: block; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a.key {
  background: var(--accent); color: var(--accent-ink); padding: 7px 15px; border-radius: 999px; font-weight: 500;
  transition: background-color .15s ease;
}
.top nav a.key:hover { background: var(--button-hover); color: var(--accent-ink); }
/* THE THREE BARS. Under 860 px the bar keeps the two products and the one action; on a phone
   only the action. The three bars open every link of the bar as a list under it (theme.js
   builds the list from the bar's own links, so the two cannot differ). Without scripts the
   button stays hidden and the footer holds the links. */
.top nav .menu {
  display: none; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--radius);
  background: none; color: var(--ink); cursor: pointer;
}
.top nav .menu:hover { color: var(--ink-hover); }

/* DESKTOP "MORE ▾" CONTEXT MENU (left of theme toggle) */
.more-wrap { position: relative; }
.more-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: color .15s ease;
}
.more-btn:hover, .more-wrap.open .more-btn { color: var(--ink-hover); }
.more-btn svg { transition: transform .2s var(--ease); }
.more-wrap.open .more-btn svg { transform: rotate(180deg); }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 60;
  display: grid; grid-template-columns: repeat(3, minmax(185px, 1fr)); gap: 22px;
  padding: 20px 22px; border-radius: 14px; background: var(--bg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .32), 0 0 0 1px var(--line);
}
.more-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.more-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.more-col h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.more-col a { display: block; padding: 5px 0; text-decoration: none; }
.more-col a b { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.25; transition: color .14s ease; }
.more-col a:hover b { color: var(--ink-hover); }

/* FULL-SCREEN MOBILE MENU (<= 860px) */
.top-menu { display: none; }
html.menu-open { overflow: hidden; }
@media (max-width: 860px) {
  .top nav { gap: 14px; }
  .top nav .opt { display: none; }
  .top nav .menu:not([hidden]) { display: inline-grid; }
  header.top.open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  header.top.open .top-menu {
    display: flex; flex-direction: column; gap: 24px;
    position: fixed; left: 0; right: 0; top: 56px; bottom: 0; z-index: 55;
    padding: 16px var(--margin) 32px; background: var(--bg);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .top-menu-primary { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .top-menu-primary a {
    padding: 15px 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .top-menu-primary a[aria-current] { font-weight: 600; }
  .top-menu-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 24px; }
  .top-menu a.key {
    margin-top: auto; padding: 14px 20px; border: 0; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); text-align: center;
    font-size: 16px; font-weight: 500; text-decoration: none;
  }
}

/* Buttons and links that go somewhere. Align pill button and sibling text link on the exact same text baseline. */
.cta { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; margin-top: 28px; }
.cta .link { margin-top: 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 500; font-size: 16px; line-height: 1.25; padding: 11px 22px; border-radius: 999px; transition: background-color .15s ease;
}
.btn:hover { background: var(--button-hover); }
.ct-dl-btn { display: inline-flex; align-items: center; gap: 8px; }
.ct-dl-btn svg { flex: none; }
.link { text-decoration: none; font-weight: 500; line-height: 1.25; }
.link::after { content: "\2192"; display: inline-block; position: relative; top: -.06em; margin-left: .3em; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.dl-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: opacity .15s ease;
}
.dl-link:hover { opacity: .75; }
.dl-link svg { flex: none; transition: transform .2s var(--ease); }
.dl-link:hover svg { transform: translateY(2px); }

/* THE HERO. The name at the page's one large size, one sentence; then the machines
   themselves, running. */
.hero { padding: clamp(40px, 7vh, 88px) 0 8px; }
.hero h1 { white-space: nowrap; }
.hero h1 { font-size: var(--t-display); letter-spacing: -.055em; line-height: .95; margin-left: -.04em; }
.hero .sub { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; color: var(--ink-2); max-width: 26ch; letter-spacing: -.015em; margin: 0; }

/* A STATEMENT and the numbers under it. */
.statement { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); }
.statement h2 { font-size: clamp(30px, 4.2vw, 58px); max-width: 24ch; }
.statement h2 span { color: var(--muted); }
.nums {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  margin-top: clamp(48px, 7vw, 90px);
}
.nums b { display: block; font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums b span { display: inline; }
.nums > div > span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 18ch; }

/* WHAT WE SELL. Three offers in a row, each a short title and one paragraph. Sections and
   columns are set apart by space alone: no rules between them. */
.offers { padding: clamp(48px, 6.5vw, 92px) 0; }
.offers h2 { font-size: clamp(30px, 3.6vw, 50px); }
.offers .lede { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--ink-2); max-width: 52ch; margin: 20px 0 0; line-height: 1.5; text-wrap: pretty; }
.offers .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin-top: clamp(32px, 4vw, 48px); }
.offers article { padding: 0; }
.offers h3 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 0; }
.offers article p { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 12px 0 0; text-wrap: pretty; }
.offers .link { display: inline-block; margin-top: 16px; font-size: 15px; }

/* THE SECTIONS. A short title and one paragraph in one column; what it says, shown, in
   the other. They alternate sides down the page. */
.sec { padding: clamp(48px, 6.5vw, 92px) 0; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split.rev > .text { order: 2; }
.split.wide { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.split.rev.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.text h2 { font-size: clamp(30px, 3.6vw, 50px); max-width: 14ch; }
.text p { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--ink-2); max-width: 38ch; margin: 20px 0 0; line-height: 1.5; text-wrap: pretty; }
.text p b { font-weight: 500; color: var(--ink); }
.text .link { display: inline-block; margin-top: 18px; font-size: 15px; }
.demo { margin: 0; min-width: 0; }
.demo figcaption, .note { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 64ch; line-height: 1.5; }
.demo figcaption code, .note code { color: var(--ink-2); }

/* MEDIA. A picture or video sits on the page itself, its corners rounded: no panel, fill or shadow behind it. */
.media {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--media-radius);
}
.media.square { aspect-ratio: auto; }
/* A recorded layout of machines and views has no ground of its own: nothing is painted behind it. */
.media.cutout { border-radius: 0; }
.panel { border-radius: var(--media-radius); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: clamp(16px, 2.4vw, 28px); }

/* THE BAND. Where to go next, as a row of three. */
.band { padding: clamp(80px, 10vw, 120px) 0; }
.band h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 16ch; }
.band .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin-top: 56px; }
.band .grid a { display: block; text-decoration: none; }
.band .grid b { display: block; font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.band .grid span { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }
.band .grid a b::after { content: " \2192"; display: inline-block; position: relative; top: -.1em; opacity: 0; transition: opacity .2s ease, transform .2s var(--ease); }
.band .grid a:hover b::after { opacity: 1; transform: translateX(3px); }

/* PARTNERS. Each a mark, a name and one line, linking to the partner's own site. The mark
   is drawn in the text colour, so it follows the theme. */
.partners { padding: clamp(48px, 6.5vw, 92px) 0; }
.partners h2 { font-size: clamp(30px, 3.6vw, 50px); }
.partners ul { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.partners a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: center; color: var(--ink); text-decoration: none; }
.partners .mark { grid-row: span 2; align-self: start; }
.partners b { font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.partners span { grid-column: 2; color: var(--ink-2); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.partners a b::after { content: " \2192"; display: inline-block; position: relative; top: -.1em; opacity: 0; transition: opacity .2s ease; }
.partners a:hover b::after { opacity: 1; }
@media (max-width: 860px) { .partners ul { grid-template-columns: minmax(0, 1fr); } }

/* THE CLOSE. */
/* THE FOOTER. Links racked into columns (scripts/site/site-chrome.mjs writes them), the legal line under. */
.foot { padding: clamp(48px, 6.5vw, 92px) 0 40px; color: var(--muted); font-size: 13.5px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.foot-cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-cols h2 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.foot a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.foot a:hover { color: var(--ink); }
.foot-legal { margin: 48px 0 0; font-size: 12.5px; color: var(--faint); }
@media (max-width: 720px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Secondary pages: a page head, then the same sections. */
.pagehead { padding: clamp(56px, 9vw, 96px) 0 0; }
.pagehead h1 { font-size: clamp(44px, 6.5vw, 88px); letter-spacing: -.05em; }
/* A title that is a whole claim reads at a smaller size, on fewer lines. */
.pagehead h1.long { font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -.04em; line-height: 1.04; max-width: 22em; }
.pagehead .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 52ch; margin-top: 20px; line-height: 1.45; }

/* Reveal on scroll: a section rises into place the first time it is seen. media.js adds
   `.in`; without it (no script, or reduced motion) everything is simply there. */
.js-reveal .sec .split > *, .js-reveal .statement .wrap > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .sec.in .split > *, .js-reveal .statement.in .wrap > * { opacity: 1; transform: none; }
.js-reveal .sec.in .split > :nth-child(2) { transition-delay: .08s; }

/* THE LIGHT/DARK SWITCH. It starts on whatever the device asked for; a click stores the
   reader's own answer and the page keeps it from then on. The button carries both icons
   and shows the one for the theme it would switch TO, so the control says what it does.
   theme.js unhides it, so a page without scripts never offers a switch that cannot work. */
.theme {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; border-radius: var(--radius); background: none;
  color: var(--muted); cursor: pointer; transition: color .15s ease;
}
.theme:hover { color: var(--ink-hover); }
.theme svg { display: block; width: 15px; height: 15px; }
:root[data-theme="dark"] .theme .moon, :root[data-theme="light"] .theme .sun { display: none; }


/* The slideshow: a strip of machines as wide as the window. The one in the middle is
   running and takes input; its neighbours wait, dimmed, at the edges. */
.stage {
  position: relative;
  --w-desk: min(1080px, 84vw, (100vh - 21rem) * 1.6);
  --h-desk: calc(var(--w-desk) * .625);
  --h-phone: var(--h-desk);
  /* The room a whole slide has. A team of machines is allowed to run wider than one of
     them, but not so much wider that it dwarfs its neighbours on the strip; app.js reads
     these three back in pixels and sizes every tile inside them. */
  --w-group: min(94vw, calc(var(--w-desk) * 1.34));
  --gut: clamp(.45rem, 1.1vw, 1rem);
  margin-inline: calc(50% - 50vw); overflow: hidden;
  padding: 1rem 0 0;
}
.track {
  position: relative; column-gap: clamp(.75rem, 3vw, 2.5rem);
  margin-bottom: 3.2rem;   /* constant room for the shadow, never shifts height */
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.track.dragging { cursor: grabbing; }
.slide.filtered-out { display: none; }
.stage-picks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: -1.1rem 0 2.15rem; padding: 0 1rem; position: relative; z-index: 4;
}
.stage-picks button {
  padding: 8px 16px; border: 1px solid var(--frame-edge); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.stage-picks button:hover { color: var(--ink-hover); }
.stage-picks button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slide {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--gut);
  opacity: .28; cursor: pointer;
  transform: translate(calc(-50% + var(--x, 0px)), -50%) scale(.94);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .24, 1);
}
.slide:hover { opacity: .5; }
.slide.active { opacity: 1; cursor: default; transform: translate(calc(-50% + var(--x, 0px)), -50%); }
.slide.off { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.slide.snap { transition: none !important; }
.slide.far { visibility: hidden; transition: none; }
.track.still, .track.still .slide { transition: none; }

/* A shallow arc. The strip lies on the face of a very wide cylinder: a slide that stands
   off centre is set back into the page (`--z`) and turned away from the viewer (`--rot`),
   both written by app.js beside `--x`, so the running machine is square on at the front of
   the curve and its neighbours lean away at the edges. The setting-back is what keeps the
   turn from swinging them out of the window: on a curve they sit a little closer together
   than they would in a straight line, exactly as much as the turn takes off their width.
   It rides the transform transition above, so a slide turns as it slides. A browser with
   no 3D transforms keeps the flat row, and so does anyone who asked for less motion. */
@supports (perspective: 1px) {
  .track { perspective: clamp(700px, 130vw, 2200px); }
  .slide {
    transform: translate(calc(-50% + var(--x, 0px)), -50%) translateZ(var(--z, 0px))
               rotateY(var(--rot, 0deg)) scale(.94);
  }
  .slide.active {
    transform: translate(calc(-50% + var(--x, 0px)), -50%) translateZ(var(--z, 0px))
               rotateY(var(--rot, 0deg));
  }
}
/* Equal share: a slide is one rectangle cut in two, and each half cut in two again, down
   to the machines — `.row` for a cut side by side, `.col` for one above the other — so the
   halves fill what they were given and the composition has no holes in it. app.js writes
   the heights, the corner radii and the shadow depth, since it is the one that knows how
   the slide was cut and how much room there is; the sizes here are what one machine on its
   own gets, and what a slide falls back to before the first measurement. */
.slide .row, .slide .col { display: flex; align-items: center; justify-content: center; gap: var(--gut); }
.slide .col { flex-direction: column; }
.tile {
  position: relative; flex: none; height: var(--h-desk); aspect-ratio: 1280 / 800;
  border-radius: var(--tile-radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 1px var(--tile-edge);
  transition: box-shadow .55s ease;
}
.tile.phone { height: var(--h-phone); border-radius: clamp(16px, 2.2vw, 28px); }
/* A machine whose still has not been rendered yet: an empty screen, not a broken image. */
.tile.blank { background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, var(--stripe) 10px 20px); }
.tile.blank img { display: none; }
/* One shadow rule for every tile, lifted by its own size: app.js writes `--lift` from the
   height it gave the tile, so seven machines on one slide do not each drop the shadow of a
   laptop, and one machine on its own still does. These are screens standing on the page,
   and the shadow is what says so. */
.slide.active .tile {
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 1px var(--tile-edge),
              0 var(--lift, 40px) calc(var(--lift, 40px) * 2.25) calc(var(--lift, 40px) * -.5) var(--tile-shadow);
}
.tile img, .tile canvas { width: 100%; height: 100%; display: block; }
.live-canvas { outline: none; touch-action: none; cursor: default; }
.slide.active .tile:has(.live-canvas:focus-visible) {
  box-shadow: 0 0 0 1px var(--accent),
              0 var(--lift, 40px) calc(var(--lift, 40px) * 2.25) calc(var(--lift, 40px) * -.5) var(--tile-shadow);
}

/* WHILE THE SIMULATOR IS COMING DOWN. The still darkened, a spinner, and the download's
   own percentage — nothing else. `data-boot` on the document says which of the four it is,
   because there is one download for the whole page: `ask` is a Save-Data browser waiting
   to be told to go and shows the one control that tells it; `load` is the download, and
   the label is empty whenever the bytes cannot honestly be counted (see live.js), leaving
   the spinner on its own; `work` is a world being built out of what came down. A machine
   that is running has no overlay at all, and neither has a slide nobody is looking at. */
.boot {
  position: absolute; inset: 0; display: none; place-content: center; justify-items: center;
  gap: .55rem; padding: .5rem; text-align: center;
  background: rgba(8, 8, 9, .62);
}
html[data-boot] .slide.active .tile:not(.live) > .boot { display: grid; }
.spin {
  width: 26px; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(237, 237, 236, .2); border-top-color: var(--accent);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.pct {
  margin: 0; color: #ededec; font-size: .8rem; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
}
.pct:empty { display: none; }
html[data-boot="ask"] .spin, html[data-boot="ask"] .pct { display: none; }
.get {
  display: none; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(20, 20, 22, .8);
  color: #ededec; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
html[data-boot="ask"] .get { display: grid; }
.get:hover { color: #fff; }
/* In a team every tile is small, and one the size of a stamp has room for the spinner and
   nothing beside it. app.js marks both, since it is the one that knows how a tile came out. */
.tile.small .spin { width: 18px; border-width: 1.5px; }
.tile.small .pct { font-size: .62rem; }
.tile.small .get { width: 2rem; height: 2rem; }
.tile.tight .pct { display: none; }
.tile.tight .spin { width: 13px; border-width: 1.5px; }
.tile.tight .get { width: 1.5rem; height: 1.5rem; }

/* ONE MACHINE, THE WHOLE SCREEN. The control sits in the tile's top right and is there
   only while that machine is live — over a still there is nothing to be full screen with,
   and `display: none` keeps it out of the tab order as well as out of the picture. */
.grow {
  position: absolute; top: .4rem; right: .4rem; z-index: 3;
  display: none; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0;
  border: 0; border-radius: 7px; background: rgba(8, 8, 9, .55); color: rgba(237, 237, 236, .8);
  cursor: pointer; opacity: .55; transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.tile.live > .grow { display: grid; }
.tile:hover > .grow, .grow:hover, .grow:focus-visible { opacity: 1; }
.grow:hover { color: #fff; }
.grow svg + svg, .tile.full > .grow svg:first-child { display: none; }
.tile.full > .grow svg + svg { display: block; }
/* A phone's corners are rounded far harder than a desktop's, so the control comes in off
   them rather than sitting in the curve. */
.tile.phone > .grow { top: .75rem; right: .75rem; }
.tile.small > .grow { width: 1.5rem; height: 1.5rem; border-radius: 5px; top: .3rem; right: .3rem; }
.tile.phone.small > .grow { top: .5rem; right: .5rem; }
.tile.tight > .grow { width: 1.2rem; height: 1.2rem; border-radius: 4px; top: .2rem; right: .2rem; }
.tile.small > .grow svg { width: 12px; height: 12px; }
.tile.tight > .grow svg { width: 10px; height: 10px; }

/* The tile that has the screen, whether the Fullscreen API put it in the top layer or
   `.fs-host` is holding it instead. Both give the tile the whole viewport; the canvas then
   takes as much of it as ITS OWN SHAPE allows, so the machine is never stretched and the
   box the pointer is measured against is the box the picture is drawn in. app.js writes
   `--ar`, the machine's width over its height. */
.fs-host { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; }
.tile.full {
  width: 100vw !important; height: 100vh !important; aspect-ratio: auto !important;
  border-radius: 0 !important; box-shadow: none !important;
  display: grid; place-items: center; background: #000;
}
.tile.full > canvas, .tile.full > img {
  width: min(100vw, calc(100vh * var(--ar, 1.6)));
  height: min(100vh, calc(100vw / var(--ar, 1.6)));
}
.tile.full::backdrop { background: #000; }
.tile.full > .grow { width: 2.4rem; height: 2.4rem; top: .9rem; right: .9rem; }
.tile.full > .grow svg { width: 17px; height: 17px; }

/* What the machines on this slide are doing, and the two arrows. The caption is the
   indicator: it says where in the cast this is, so there is no strip of dots to read. */
.pager {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 0; padding: 0 1rem; position: relative;
}
.pager > button {
  flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); cursor: pointer;
  color: var(--muted); font-size: 1rem; line-height: 1;
  transition: color .15s ease, background-color .15s ease;
}
.pager > button:hover { color: var(--ink-hover); }
/* The caption is two things, and they are not the same kind of thing. The title is what
   this slide IS, set in the full ink a step above the text size. The summary is the
   detail under that name — the part, the file, the ticket, the branch — at the text size
   in the softer ink. The count is a small line above them. */
.caption {
  flex: 0 1 76rem; min-width: 0; margin: 0;
  /* The room the longest caption in the cast needs at this width, kept back whatever is
     on screen, so the page under the strip does not step up and down as one caption runs
     a word longer than the last. Wide enough and that is a title's line and a summary's;
     the ladder below is where the summary starts wrapping under it, measured over all
     the scenes rather than guessed at. */
  min-height: 7.4rem;
  /* One grid column, and the column is as wide as the paragraph wants to be. The title
     and the count take their left edge from it instead of each being centred on its own
     width, so the three lines share one leading edge; `justify-content` then centres that
     column under the strip. */
  display: grid; justify-items: start; justify-content: center;
  row-gap: .3rem; text-align: left;
  font-family: var(--sans); line-height: 1.4;
}
#caption-title {
  font-size: var(--t-title); font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-wrap: balance;
}
#caption-summary {
  max-width: 78ch; font-size: .875rem; line-height: 1.55; color: var(--muted);
  text-wrap: pretty;
}
#caption-summary:empty { display: none; }
/* Where in the cast this is, a small line above the title it counts. */
#caption-where {
  order: -1; color: var(--faint); font-size: .8125rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Where the summary no longer sits beside the title, and then where it wraps again. */
@media (max-width: 919px) { .caption { min-height: 7.2rem; } }
.stage noscript img { display: block; width: var(--w-desk); height: auto; margin: 0 auto; border-radius: var(--tile-radius); }


/* THE FRAME AND THE SCENE IT CAME FROM. The frame on the left of a vertical divider, the
   same frame with its labelled scene on the right. The divider swipes across on its own
   every 3 s (app.js) until the reader takes its handle; a reader who asked for less motion
   gets it still, at the middle. Without the script it stays at the middle and both halves
   are seen. */
.compare { --at: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare > .over { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--at)); }
.compare.swiping > .over { transition: clip-path .9s var(--ease); }
.compare.swiping > .compare-handle { transition: left .9s var(--ease); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--at); width: 44px; margin-left: -22px; cursor: ew-resize; outline: none; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.compare-handle > span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.compare-handle > span::before, .compare-handle > span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border: 5px solid transparent; translate: 0 -50%; }
.compare-handle > span::before { left: 5px; border-right-color: #1d1d1b; }
.compare-handle > span::after { right: 5px; border-left-color: #1d1d1b; }
.compare-handle:focus-visible > span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* THE BOUNDED SEARCH. One row per depth: a frontier of states that widens as the search
   goes deeper, marked wherever a policy breaks, and down the left edge one counterexample,
   the two clicks from the start to the merge that P2 forbids. Rows rather than a tree drawn
   sideways: a phone has the width for one frontier and the height for six, and the labels
   sit beside the short frontiers, where the room is. The widths are a shape, not a count;
   the depths of the marks are the report's. */
.search-body {
  --node: 14px; --dot: 4px; --pitch: 8px;
  border-radius: var(--media-radius); background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 24px 22px 20px;
}
.search-tree { margin: 0; padding: 0; list-style: none; }
.search-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: clamp(22px, 3vw, 30px); }
.search-row:last-child { padding-bottom: 0; }
.search-band {
  position: relative; flex: 0 0 var(--w); height: var(--node); min-width: var(--node);
  background: radial-gradient(circle at calc(var(--pitch) / 2) 50%, var(--faint) calc(var(--dot) / 2), transparent calc(var(--dot) / 2 + .6px)) 0 0 / var(--pitch) 100%;
  background-repeat: round no-repeat; /* whole dots to the end of every frontier, whatever its width */
  transform-origin: left center;
}
.search-node {
  position: absolute; left: 0; top: 0; width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px var(--bg);
}
.search-row:first-child .search-node { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--ink); }
.breaks .search-node { display: grid; place-items: center; background: var(--breaks); color: var(--bg); font-size: 13px; line-height: 1; font-weight: 600; }
.breaks .search-node::after { content: "\d7"; margin-top: -1px; }
/* The stem from one node on the path to the next: from the node's foot to the row's end,
   which is where the next row and its node begin. */
.search-row.from::before {
  content: ''; position: absolute; left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0;
  border-left: 2px solid var(--ink); transform-origin: top;
}
.search-hit { position: absolute; left: var(--x); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--breaks); font-style: normal; }
.search-hit span {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px;
  font-size: 11px; line-height: 1; font-weight: 500; color: var(--breaks); white-space: nowrap;
}
.search-steps { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.search-step { font-size: 14.5px; line-height: var(--node); font-weight: 500; color: var(--ink); white-space: nowrap; }
.search-step b { display: inline-block; min-width: 1.1em; margin-right: .2em; color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.search-step small { color: var(--muted); font-weight: 400; font-size: 13px; }
.search-step small::before { content: "\b7"; margin: 0 .45em 0 .1em; }
.search-verdict {
  display: inline-flex; align-items: center; gap: .3em; margin: 0; padding: 0 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--breaks) 12%, transparent); color: var(--breaks);
  font-style: normal; font-size: 13px; line-height: var(--node); font-weight: 500; white-space: nowrap;
}
.search-verdict span { font-size: 1.1em; }
.search-replay { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 12.5px/1.5 var(--mono); color: var(--muted); }
.search-replay > span { color: var(--ink); margin-right: .5em; }
.search-replay code { color: var(--ink-2); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* As the section comes into view the frontiers grow out row by row, the stems follow,
   and the marks and the verdict land last. Without scripts, or for a reader who asked for
   less motion, the finished figure is what there is. */
.js-reveal .sec:not(.in) .search-band { transform: scaleX(0); }
.js-reveal .sec:not(.in) .search-row.from::before { transform: scaleY(0); }
.js-reveal .sec:not(.in) :is(.search-step, .search-steps, .search-hit, .search-verdict, .search-replay) { opacity: 0; }
.js-reveal .sec.in .search-band { transition: transform .7s var(--ease) calc(.25s + var(--i) * .11s); }
.js-reveal .sec.in .search-row.from::before { transition: transform .45s var(--ease) calc(.5s + var(--i) * .11s); }
.js-reveal .sec.in :is(.search-step, .search-steps) { transition: opacity .5s ease calc(.45s + var(--i) * .11s); }
.js-reveal .sec.in .search-hit { transition: opacity .4s ease calc(.85s + var(--i) * .11s); }
.js-reveal .sec.in .search-verdict { transition: opacity .5s ease 1.25s; }
.js-reveal .sec.in .search-replay { transition: opacity .5s ease 1.45s; }

.table-wrap { margin: 2rem 0 0; overflow-x: auto; }
.policies { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--t-small); }
.policies caption {
  caption-side: bottom; padding-top: 1rem; text-align: left;
  color: var(--muted); font-size: .8125rem; line-height: 1.6;
}
.policies th, .policies td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.policies thead th { color: var(--muted); font-weight: 500; font-size: .8125rem; }
.policies tbody th { padding-left: 1rem; color: var(--muted); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.policies tbody td { color: var(--ink); }
.policies tr.holds th { box-shadow: inset 2px 0 0 var(--holds); }
.policies tr.breaks th { box-shadow: inset 2px 0 0 var(--breaks); }
.policies td.v { font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.policies tr.holds td.v { color: var(--holds); }
.policies tr.breaks td.v { color: var(--breaks); }
.policies tr.note td, .fallback { color: var(--muted); }
.policies details { margin-top: .55rem; }
.policies summary { cursor: pointer; color: var(--muted); font-size: .8125rem; }
.policies summary:hover { color: var(--ink); }
/* The run writes each action with its own step number, so the list does not add one. */
.policies ol { list-style: none; margin: .65rem 0 .2rem; padding-left: 0; color: var(--muted); font-family: var(--mono); font-size: .75rem; line-height: 1.75; }
.fallback { margin: 1.4rem 0 0; font-size: .82rem; }

.codebox { border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.codebox .bar { display: flex; align-items: center; justify-content: space-between; padding: .5rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .25rem; }
.tabs button, .copy {
  padding: .45rem .8rem; border: 0; border-radius: var(--radius); background: none; cursor: pointer;
  color: var(--muted); font-size: var(--t-small); font-weight: 500;
  transition: color .15s ease, background-color .15s ease;
}
.tabs button:hover, .copy:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-2); }
.codebox pre { margin: 0; padding: 1.25rem 1.4rem 1.4rem; overflow-x: auto; }
.codebox code { color: var(--code-ink); line-height: 1.7; font-size: .8125rem; }
/* The install line is part of the box, set off from the snippet by a thin line, with its
   copy button at its end. */
#install { display: flex; align-items: center; gap: .5rem; padding-right: .5rem; border-bottom: 1px solid var(--line); cursor: copy; }
#install pre { flex: 1 1 auto; min-width: 0; padding: .9rem 0 .9rem 1.4rem; }
#install .copy { flex: none; display: grid; place-items: center; padding: .45rem; }
#install .i-done, #install.copied .i-copy { display: none; }
#install.copied .i-done { display: block; color: var(--accent); }
#install code { color: var(--ink); }
#install code::before { content: "$ "; color: var(--faint); }
#install code::after { content: attr(data-said); color: var(--accent); margin-left: 1.5em; }

/* Syntax colours, written into the markup rather than fetched from a highlighter. */
.k { color: var(--syn-k); }                       /* keywords */
.s { color: var(--syn-s); }                       /* strings */
.n { color: var(--accent); }                      /* numbers */
.f { color: var(--ink); }                         /* calls and macros */
.t { color: var(--syn-t); }                       /* types */
.c { color: var(--faint); font-style: italic; }

/* CHARTS. Thin marks on the page's own ground, a recessive grid, text in the text inks
   and never in a series colour, a tooltip for every mark and a table for every chart. */
.chart { position: relative; margin: 0; min-width: 0; }
.chart svg { display: block; overflow: visible; max-width: 100%; height: auto; }
.chart svg text { fill: var(--faint); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .axis-title, .chart .col-head { fill: var(--muted); font-size: 11.5px; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid line.major { stroke: color-mix(in srgb, var(--faint) 45%, transparent); }
.chart .row { outline: none; cursor: default; }
.chart .row .band { fill: transparent; }
.chart .row:hover .band, .chart .row:focus-visible .band { fill: var(--surface); }
.chart .row .name { fill: var(--ink); font-size: 12.5px; }
.chart .row .value { fill: var(--ink); font-size: 12.5px; font-weight: 500; }
.chart .row .value.soft { fill: var(--muted); font-weight: 400; }
.chart .stem { stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.chart .tool { fill: var(--bg); stroke: var(--muted); stroke-width: 2; }
.chart .gui { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.chart .gui.hot { stroke: var(--accent); }
.chart .dot { stroke: var(--bg); stroke-width: 2; }
.chart .dot.hot { stroke: var(--ink); }
.chart .hit { fill: transparent; outline: none; }
.chart-key { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 .9rem; font-size: .8125rem; color: var(--muted); }
.chart-key span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart-key .k-tool { box-shadow: inset 0 0 0 2px var(--muted); }
.chart-key .k-gui { background: var(--ink); }
.chart-tip {
  position: fixed; z-index: 70; pointer-events: none; min-width: 12rem; max-width: 18rem;
  padding: .6rem .75rem; border-radius: var(--radius); background: var(--surface-2); color: var(--ink);
  font-size: .75rem; line-height: 1.45; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.chart-tip b { display: block; margin-bottom: .3rem; font-size: .8125rem; font-weight: 600; }
.chart-tip div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.chart-tip strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-fallback { color: var(--muted); font-size: var(--t-small); }
.data-table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th:first-child { text-align: left; }
.data-table thead th { color: var(--muted); font-weight: 500; white-space: normal; vertical-align: bottom; }
.data-table tbody th, .data-table tfoot th { color: var(--ink); font-weight: 500; }
.data-table tfoot th, .data-table tfoot td { border-bottom: 0; color: var(--ink); font-weight: 600; }
.swarm-table td:nth-child(2) { text-align: left; }

.swarm-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem; margin: 0 0 1rem; }
.swarm-controls label { display: grid; gap: .3rem; color: var(--muted); font-size: .8125rem; }
.swarm-controls select {
  font: inherit; font-size: var(--t-small); color: var(--ink); background: var(--surface);
  border: 0; border-radius: var(--radius); padding: .5rem .6rem; max-width: 100%;
}
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-left: auto; font-size: .8125rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; background: var(--c); vertical-align: -1px; }
.swarm-main { min-height: 300px; }
.swarm-multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem 1rem; margin-top: 1.25rem; }
.swarm-multiples figure { margin: 0; }
.swarm-multiples figcaption { margin: 0 0 .2rem; font-size: .75rem; color: var(--muted); }
.swarm-multiples svg { display: block; width: 100%; height: auto; }


/* THE STUDIES. One column of reading, with the page's bar and close. */
main.study { max-width: 760px; }
.study-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; padding: 1.5rem 0; font-size: var(--t-small); }
.study-nav a { text-decoration: none; color: var(--muted); transition: color .15s ease; }
.study-nav a:hover { color: var(--ink); }
.study-nav:last-child { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.study article { padding: clamp(2rem, 6vw, 4rem) 0 0; }
.study h1 { font-size: var(--t-head); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin: 0 0 1.25rem; text-wrap: balance; }
.study header p { font-size: var(--t-title); color: var(--ink-2); line-height: 1.5; }
.study h2 { font-size: var(--t-title); font-weight: 600; letter-spacing: -.02em; margin: 3rem 0 .75rem; }
.study p, .study li { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.study strong { color: var(--ink); }
.study a { text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: .2em; }
.study a:hover { text-decoration-color: var(--accent); }
.study-window { margin: 2rem 0; }
.study-window > img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--surface); }
.study figcaption { font-size: var(--t-small); }
.study pre { padding: 1.2rem; overflow-x: auto; border-radius: var(--radius); background: var(--surface); font-size: .8125rem; line-height: 1.65; }
.study p code, .study li code { color: var(--ink); }

/* The slideshow on this page: no extra room above it, the caption tighter under it. */
.stage { padding-top: 8px; --w-desk: min(1080px, 84vw, (100vh - 19rem) * 1.6); }
.stage .boot { background: rgba(20, 20, 18, .55); }
.stage .spin { border-top-color: #fff; }
.pager > button { background: color-mix(in srgb, var(--surface) 80%, transparent); }

/* The code, set on one step of tone, with the install line copying itself. */
.codebox { box-shadow: var(--media-shadow); border-radius: var(--media-radius); background: var(--code-bg); }
.n { color: var(--syn-n); }
#install code::after { color: var(--muted); }

/* Policy counts beside the check's video. */
.counts { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.counts b { display: block; font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.counts span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* The chart beside its paragraph. */
.chart-panel { padding: clamp(16px, 2.4vw, 28px) 0; }
.chart-panel details { margin-top: 16px; font-size: 14px; }
.chart-panel summary { cursor: pointer; color: var(--muted); }
.chart-panel summary:hover { color: var(--ink); }
.chart-panel .table-wrap { margin-top: 12px; }
.compare { position: relative; overflow: hidden; border-radius: var(--media-radius); }
.compare > img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .split, .split.wide, .split.rev, .split.rev.wide { grid-template-columns: minmax(0, 1fr); }
  .split.rev > .text { order: 0; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .band .grid { grid-template-columns: minmax(0, 1fr); }
  .offers .grid { grid-template-columns: minmax(0, 1fr); }
  .text h2 { max-width: 18ch; }
  .text p { max-width: 52ch; }
}
@media (min-width: 901px) { .search-body { --dot: 5px; --pitch: 9px; } }
@media (max-width: 720px) {
  .stage { --w-desk: 86vw; --h-phone: min(640px, 150vw, 100vh - 12rem); }
  .track { margin-bottom: 4.5rem; }
  .pager { margin-top: -1.6rem; align-items: flex-start; padding-inline: .5rem; }
  .pager > button { width: 2rem; height: 2rem; }
  .caption { min-height: 8.1rem; }
  #caption-summary { font-size: .8125rem; }
  .codebox pre { padding-inline: 1rem; }
  .codebox code { font-size: .75rem; }
  .search-body { padding: 20px 16px 16px; }
  .tabs button, .copy { padding-inline: .6rem; }
}
@media (max-width: 560px) {
  :root { --margin: 16px; }
  .top nav { gap: 10px; font-size: 13.5px; }
  /* On a phone the bar is the name, the one action and the three bars. */
  .top nav a:not(.key) { display: none; }
  .top nav a.key { padding: 6px 12px; }
  .legend { margin-left: 0; }
  .swarm-multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
}
@media (max-width: 479px) { .caption { min-height: 12rem; } }
@media (max-width: 359px) { .caption { min-height: 13.2rem; } .brand span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .spin { border-color: rgba(255, 255, 255, .38); }
  .track { perspective: none; }
  .slide { transform: translate(calc(-50% + var(--x, 0px)), -50%) scale(.94) !important; }
  .slide.active { transform: translate(calc(-50% + var(--x, 0px)), -50%) !important; }
}

/* THE STUDIES. One column of reading. */
main.study { margin: 0 auto; padding: 0 var(--margin) 48px; box-sizing: content-box; }
.figure-bar { margin: 0 0 .75rem; color: var(--ink); font-size: var(--t-small); font-weight: 500; }
figcaption { margin-top: .9rem; color: var(--muted); font-size: var(--t-small); line-height: 1.6; }

/* The expert page's method, folded away beside its paragraph. */
.method-details > summary { cursor: pointer; font-weight: 500; }
.method-details .method { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.method code { color: var(--ink-2); overflow-wrap: anywhere; }
.method pre { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--code-bg); overflow-x: auto; font-size: 12px; line-height: 1.7; }
.method pre code { overflow-wrap: normal; }
.pagehead.statement { padding-bottom: clamp(40px, 6vw, 72px); }
.pagehead .nums { margin-top: clamp(40px, 6vw, 72px); }
/* A tall demonstration keeps its paragraph in view beside it. */
.split.top { align-items: start; }
.split.top > .text { position: sticky; top: 96px; }
@media (max-width: 900px) { .split.top > .text { position: static; } }

/* Homepage: the market simulation research list. */
.studies-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.studies-list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.studies-list b { display: block; font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.studies-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.studies-list a b::after { content: " \2192"; display: inline-block; position: relative; top: -.09em; opacity: 0; transition: opacity .2s ease; }
.studies-list a:hover b::after { opacity: 1; }

/* THE FRONT PAGE'S FIGURES. Each one is read in a glance on a phone: pictures and marks,
   and at most ONE line of words, large and bold (.bigline). Labels a figure used to carry
   inside it are kept for a screen reader (.vh) and taken off the picture. */
.bigline {
  margin: 0; text-align: center; white-space: nowrap; color: var(--ink);
  font-weight: 600; font-size: clamp(19px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1.15;
}
.demo > .bigline, .glance > .bigline { margin-top: clamp(16px, 2vw, 22px); }

/* The hero states the proposition; the name sits above it, small. */
.hero.pitch h1 { white-space: normal; font-size: clamp(2.5rem, 1rem + 4.2vw, 4.5rem); letter-spacing: -.05em; line-height: .98; max-width: 11.5em; margin-left: -.03em; }
.hero.pitch .sub { max-width: 44ch; margin-top: 14px; }

/* The two products, one line each, under the slideshow: a route, not a band. */
.paths .wrap { display: flex; flex-wrap: wrap; gap: 6px 40px; padding-top: 20px; }
.paths p { margin: 0; display: flex; flex-wrap: wrap; gap: 0 .6em; align-items: baseline; }
.paths span { color: var(--muted); }

/* A choice among a few pictures: radios the reader cannot see, and their labels as pills.
   No script is needed to switch; media.js only walks the first one until it is touched. */
.pick { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.picks label {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; user-select: none; transition: background .2s ease, color .2s ease;
}
.picks label:hover { color: var(--ink-hover); }
.pick:nth-of-type(1):checked ~ .picks label:nth-of-type(1), .pick:nth-of-type(2):checked ~ .picks label:nth-of-type(2),
.pick:nth-of-type(3):checked ~ .picks label:nth-of-type(3), .pick:nth-of-type(4):checked ~ .picks label:nth-of-type(4) { background: var(--ink); color: var(--bg); }
.pick:nth-of-type(1):focus-visible ~ .picks label:nth-of-type(1), .pick:nth-of-type(2):focus-visible ~ .picks label:nth-of-type(2),
.pick:nth-of-type(3):focus-visible ~ .picks label:nth-of-type(3), .pick:nth-of-type(4):focus-visible ~ .picks label:nth-of-type(4) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ARRANGE. Four built-in worlds on a shelf, each drawn as its machines: a desktop is a
   still of one the engine drew, a phone the same, a server a dark slab, a service a dot.
   The rail is the 3D viewport: perspective is set here so every card turns toward one
   vanishing point, and shelf.js writes each card's transform from scrollLeft. Nothing here
   animates, and scroll-behavior stays instant, because the drag writes scrollLeft itself. */
#arrange .text { max-width: 72ch; margin-inline: auto; text-align: center; }
#arrange .text h2 { max-width: 20ch; margin-inline: auto; }
#arrange .text p { margin-inline: auto; max-width: 60ch; }
.arr { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.arr .picks { justify-content: center; padding-inline: 16px; }
.shelf {
  --card: min(580px, 76vw);
  display: flex; align-items: stretch; gap: clamp(14px, 2.4vw, 28px); margin: 0; list-style: none;
  padding: 20px calc(50% - var(--card) / 2) 30px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  perspective: 1100px; perspective-origin: 50% 45%; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5rem, #000 calc(100% - 5rem), transparent 100%);
}
.shelf::-webkit-scrollbar { display: none; }
.shelf[data-dragging] { cursor: grabbing; }
.shelf:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.arr-view {
  flex: 0 0 var(--card); min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity;
}
.arr-view img { pointer-events: none; }
@media (max-width: 600px) { .shelf { -webkit-mask-image: none; mask-image: none; } }
/* A finger scrolls the rail itself, so the platform does the settling there. */
@media (pointer: coarse) { .shelf { scroll-snap-type: x mandatory; } .arr-view { scroll-snap-align: center; } }
.arr-grid { display: grid; gap: 8px; justify-content: center; }
.arr-grid.one { grid-template-columns: minmax(0, 68%); }
.dev { display: block; overflow: hidden; border-radius: 5px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--tile-edge), 0 8px 16px -10px var(--tile-shadow); }
.dev img { display: block; width: 100%; height: auto; }
.arr .bigline { margin-top: 8px; }
/* A team, a company or a crowd: one recorded picture of its machines, each with its agent's view. */
.arr-pic { display: block; width: 100%; height: auto; border-radius: 8px; }
/* The pill shows one kind of world; the others leave the shelf. */
.arr .shelf > .arr-view { display: none; }
.pick:nth-of-type(1):checked ~ .shelf > .k-desk, .pick:nth-of-type(2):checked ~ .shelf > .k-team,
.pick:nth-of-type(3):checked ~ .shelf > .k-company, .pick:nth-of-type(4):checked ~ .shelf > .k-crowd { display: flex; }

/* PEOPLE. The clip's own caption strip is cut off; the line under it says it larger. */
/* A clip for a reader who asked for less motion: its still and one button (clips.js). */
:has(> video[data-clip]) { position: relative; }
.clip-play { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: var(--bar); color: var(--ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.clip-play:hover { color: var(--ink-hover); }
.clip-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.crop { aspect-ratio: 1280 / 672; overflow: hidden; border-radius: var(--media-radius); }
.crop > video { border-radius: 0; box-shadow: none; }

/* JOBS. One clip at a time. A clip of several machines has no ground (it shows the page
   between its machines) and small print in the cell the machines leave free; a tile of the
   page's ground covers that cell and carries the one line, in either theme. */
.job { position: relative; display: none; overflow: hidden; aspect-ratio: 16 / 10; }
#job-1:checked ~ .j1, #job-2:checked ~ .j2, #job-3:checked ~ .j3, #job-4:checked ~ .j4 { display: block; }
.job > video { border-radius: 0; box-shadow: none; background: none; }
.job > .bigline { position: absolute; right: 0; bottom: 0; top: 50%; left: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-size: clamp(21px, 2.9vw, 40px); }
.job > .bigline.h { left: 0; }

/* The fork and the search, at a glance: frames, marks and one verdict or one line. */
.search-body.glance { --node: 16px; --dot: 5px; --pitch: 10px; padding: clamp(22px, 3vw, 32px); }
.glance .search-row { padding-bottom: clamp(16px, 2.2vw, 22px); }
.glance .search-hit { width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--breaks) 22%, transparent); }
.js-reveal .sec:not(.in) .glance .bigline { opacity: 0; }
.js-reveal .sec.in .glance .bigline { transition: opacity .5s ease 1.2s; }

/* The research list, as titles alone. */
.studies-list a { padding: 14px 0; }

@media (max-width: 900px) {
  .statement .nums div:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 560px) {
  .picks { gap: 6px; }
  .picks label { padding: 7px 11px; font-size: 14px; }
  .arr-grid { gap: 5px; }
}

/* THE STATEMENT. Words on the left two thirds, the numbers on the right third. */
.thirds { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.thirds .say h2 { font-size: clamp(28px, 3.5vw, 50px); max-width: 22ch; }
.thirds .say p { margin: clamp(18px, 2.4vw, 30px) 0 0; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.015em; color: var(--ink-2); }
.thirds .say p b { font-weight: 600; color: var(--ink); }
.thirds .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: .4em; }
.thirds .nums b { font-size: clamp(26px, 2.6vw, 38px); }
.thirds .nums > div > span { margin-top: 8px; }
@media (max-width: 900px) { .thirds { grid-template-columns: minmax(0, 1fr); } }
.text > p + p { margin-top: 14px; }
.text > br + .link { margin-top: 8px; }

/* TAKE CONTROL. A machine on the first screen answers the pointer and the keys only after
   the reader takes control of it, as in the console: a pill over the screen takes it, and
   Shift+Esc, or the focus going elsewhere, gives it back. Until then the pointer passes
   over the machine and a finger scrolls the page. */
.live-canvas { touch-action: pan-y; }
.tile.control .live-canvas { touch-action: none; }
.take {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: none;
  height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #111;
  font: 500 13.5px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .15s ease, transform .1s ease, background-color .12s ease;
}
.slide.active .tile.live:not(.control) > .take { display: block; }
.tile:hover > .take, .tile:focus-within > .take { opacity: .5; }
.tile > .take:hover, .tile > .take:focus-visible { opacity: 1; }
@media (hover: none) { .take { opacity: .5; } }
.tile.small > .take, .tile.tight > .take { height: 28px; padding: 0 12px; font-size: 12px; }
.tile-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; display: none; padding: 3px 9px; border-radius: 999px;
  background: rgba(8, 8, 9, .65); color: #fff; font-size: 11.5px; line-height: 1.4; pointer-events: none; white-space: nowrap;
}
.tile.control > .tile-tag { display: block; }
.tile.phone > .tile-tag { left: 50%; transform: translateX(-50%); bottom: 14px; }

.text p.note { font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* NO CONTAINERS (owner, 2026-11-13). A front-page figure stands on the page itself: no
   panel, no ground of its own, no shadow round it and no padding inside it. A clip of several
   machines has no ground either: the page shows between them, in either theme. */
.sec .crop, .sec .job, .sec .compare { background: none; box-shadow: none; border-radius: 0; }
/* A clip was rendered with a transparent margin round the screens: scaled up a little, the
   screens meet the frame's edges. */
.sec .job > video { transform: scale(1.024); }
.sec .crop > video { transform: scale(1.012); }
.sec .search-body.glance { background: none; border-radius: 0; padding: 0; }

/* Computatrum's reel: runs of the app on simulated desktops, recorded with its own cursor and
   pane (scripts/site/render-agent-reels.mjs). A phone shows the right half of the desktop,
   twice as large, where the pane is, so the pane can still be read. */
.reel { margin: 0; }
.reel > video, .showcase-video { display: block; width: 100%; height: auto; border-radius: var(--media-radius); box-shadow: var(--media-shadow); }
@media (max-width: 600px) {
  .reel { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
  .reel > video { width: 200%; max-width: none; margin: -25% 0 0 -100%; border-radius: 0; box-shadow: none; }
}
.counts-cap { text-align: center; font-size: 13px !important; color: var(--muted) !important; margin: 24px 0 -12px !important; max-width: none !important; letter-spacing: 0; }
#rebuild .counts { justify-content: center; }
#rebuild h2 { font-size: clamp(28px, 3.3vw, 46px); }
#measure h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; }

/* SIMULATE THE MARKET. One row per study, filled with its picture, greyed and faint. The open
   row takes the height its whole picture needs and its colour; the others give way. The rows
   take turns (market-rows.js), and the one under the pointer stays open; without the script
   the row under the pointer opens. A press grows the picture to fill the screen. */
.mkt { container-type: inline-size; display: flex; flex-direction: column; gap: 6px; height: clamp(440px, 46vw, 620px); margin: 0; padding: 0; list-style: none; }
.mkt li { flex: 1 1 0; min-height: 40px; transition: flex-grow .6s var(--ease), flex-basis .6s var(--ease); }
.mkt:not(.cycling) li:hover, .mkt:not(.cycling) li:focus-within, .mkt li.open { flex: 0 0 min(100% - 4 * 46px, 100cqw / var(--ar)); }
.mkt a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 8px; background: var(--surface); text-decoration: none; }
.mkt img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(.85); opacity: .38; transition: filter .6s var(--ease), opacity .6s var(--ease); }
.mkt:not(.cycling) li:hover img, .mkt:not(.cycling) li:focus-within img, .mkt li.open img { filter: none; opacity: 1; }
.mkt b { position: absolute; left: 12px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }

/* THE GROWING PICTURE. A study's picture over everything, from its row to the whole screen
   (market-rows.js), and on the study's page from the whole screen to its place there
   (study-arrive.js). Before that page's first paint the picture is its root's own layer. */
.study-zoom { position: fixed; z-index: 100; overflow: hidden; pointer-events: none; background: var(--surface); }
.study-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html.study-arriving::after { content: ""; position: fixed; inset: 0; z-index: 100; background: var(--surface) var(--arrive-src) 50% 0 / cover no-repeat; }

/* PUBLISHED RESEARCH: boring full-width stack of article titles, flat fill on hover. */
.research-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.6vw, 28px);
}
.research-head h2 { font-size: clamp(28px, 3.2vw, 44px); }
.research-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.research-list li { border-bottom: 1px solid var(--line); }
.research-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 15px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: clamp(15.5px, 1.3vw, 18px); font-weight: 500;
  line-height: 1.35; letter-spacing: -.012em; transition: background-color .14s ease;
}
.research-list a:hover { color: var(--ink-hover); }
.research-list .rl-arr { flex: none; color: var(--muted); font-size: 16px; }
.research-list a:hover .rl-arr { color: var(--ink); }

/* COUNTERFACTUALS & PERCEPTIONS (#counterfactuals) */
.cf-skill { margin: 16px auto 0; max-width: 100%; }
.jobs-inner { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.job-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.job-btn {
  appearance: none; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--muted);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.job-btn:hover { color: var(--ink); border-color: var(--faint); }
.job-btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }
.cf-traj { display: flex; align-items: center; justify-content: center; }
.cf-traj img { display: block; width: 100%; height: auto; }

/* PARALLAX SPLIT ARCHITECTURE STACK (#stack):
   Left column scrolls naturally through 4 prose beats; right column holds the sticky naked
   diagram (no container boxes, naked against --bg) with 90-degree orthogonal bus lines
   connecting vertical taps -> horizontal bus -> center drop -> horizontal bus -> vertical feeds. */
.stack-section { padding: clamp(56px, 7.5vw, 108px) 0; }
.stack-split {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.stack-prose { display: flex; flex-direction: column; }
.stack-beat {
  min-height: 38vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 4vh, 48px) 0;
  opacity: .38; transition: opacity .35s var(--ease);
}
.stack-beat.active { opacity: 1; }
.stack-num {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.stack-beat h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 14ch; }
.stack-beat h3 { font-size: clamp(26px, 2.8vw, 38px); max-width: 16ch; }
.stack-beat p { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--ink-2); max-width: 38ch; margin: 16px 0 0; line-height: 1.55; }

.stack-diagram-wrap { position: sticky; top: 84px; padding: 12px 0; }
.stack-diagram { display: flex; flex-direction: column; align-items: stretch; }
.sd-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  opacity: .22; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.sd-row.shown { opacity: .62; transform: none; }
.sd-row.active { opacity: 1; transform: none; }
.sd-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 4px 8px; border: 0; background: none; color: var(--muted); cursor: pointer;
  text-align: center; transition: color .18s ease, transform .18s var(--ease);
}
.sd-node svg {
  display: block; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s var(--ease);
}
.sd-node span { font-size: 12.5px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; max-width: 15ch; }
.sd-node:hover { color: var(--ink); }
.sd-node[aria-pressed="true"] { color: var(--ink); }
.sd-node[aria-pressed="true"] svg { stroke-width: 2; }
.sd-node[aria-pressed="true"] span { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Staggered 3-OS tilted mark for Web Linux, Windows, MacOS */
.os-fan {
  position: relative; display: block; width: 52px; height: 32px;
  transition: transform .18s var(--ease);
}
.os-fan i {
  position: absolute; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: var(--os) center / contain no-repeat; mask: var(--os) center / contain no-repeat;
}
.os-fan .os-f-lnx { --os: url(./media/os/linux.svg); left: 16.5px; top: 2px; opacity: .72; z-index: 1; }
.os-fan .os-f-win { --os: url(./media/os/windows.svg); left: 3px; top: 10px; transform: rotate(-14deg); z-index: 2; }
.os-fan .os-f-mac { --os: url(./media/os/apple.svg); right: 3px; top: 9px; transform: rotate(14deg); z-index: 2; }

.sd-bus {
  display: block; width: 100%; height: auto; aspect-ratio: 640 / 58;
  opacity: .18; transition: opacity .4s var(--ease);
}
.sd-bus.shown { opacity: .88; }
.sd-bus path {
  fill: none; stroke: var(--faint); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.sd-bus .sd-arr { stroke: var(--ink-2); stroke-width: 1.6; }

.sd-recipe {
  margin: 22px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 8px 18px;
  flex-wrap: wrap; text-align: center; font-size: 13.5px; color: var(--muted);
}
.sd-recipe span { color: var(--ink-2); font-weight: 500; }

/* MULTI-AGENT / PERSONA HARNESS SCHEMATIC (#society) — naked against --bg */
.ma-visual { display: flex; flex-direction: column; }
.ma-schema { display: flex; flex-direction: column; align-items: stretch; padding: 4px 0 2px; }
.ma-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ma-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; color: var(--ink); }
.ma-item svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ma-item b { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.ma-lines { display: block; width: 100%; height: auto; aspect-ratio: 600 / 48; }
.ma-lines path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ma-lines .ma-tick { stroke: var(--ink-2); stroke-width: 1.6; }
.ma-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ma-scr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ma-scr span { font-size: 12px; color: var(--muted); font-weight: 500; }
.ma-scr-frame {
  width: 100%; overflow: hidden; border-radius: 8px; background: #000;
  box-shadow: 0 12px 26px -14px var(--tile-shadow), 0 0 0 1px var(--line);
}
.ma-scr-frame.phone { max-width: 96px; aspect-ratio: 9 / 15.5; }
.ma-scr-frame.desk { aspect-ratio: 16 / 10; }
.ma-scr-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ma-bus { display: block; width: 100%; height: auto; aspect-ratio: 600 / 44; }
.ma-bus path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ma-preds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.ma-pred { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.ma-pred-viz {
  width: 100%; aspect-ratio: 120 / 72; overflow: visible;
  background: none; border: 0; border-radius: 0; display: grid; place-items: center;
}
.ma-pred-viz.is-framed {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--surface); box-shadow: 0 10px 22px -12px var(--tile-shadow), 0 0 0 1px var(--line);
}
.ma-pred-viz.viz-gaze img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%;
  transform: scale(1.48); display: block;
}
.viz-gaze-heat {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 36px at 24% 34%, rgba(226, 62, 46, .68), rgba(238, 165, 36, .3) 56%, transparent 80%),
    radial-gradient(circle 30px at 49% 54%, rgba(30, 154, 98, .55), rgba(42, 185, 130, .2) 58%, transparent 80%),
    radial-gradient(circle 34px at 78% 70%, rgba(226, 62, 46, .62), rgba(238, 150, 36, .25) 56%, transparent 80%);
}
.viz-gaze-scan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ma-pred-viz svg { width: 100%; height: 100%; display: block; }
.ma-pred-viz.viz-brain img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ma-pred span { font-size: 11.5px; font-weight: 500; color: var(--ink-2); line-height: 1.25; }

/* SCRUBBABLE MULTI-MACHINE SIMULATION TIMELINE (#work) */
.sim-timeline { display: flex; flex-direction: column; gap: 14px; user-select: none; -webkit-user-select: none; }
.stl-stage { position: relative; height: 162px; margin-bottom: 4px; }
.stl-carriage {
  position: absolute; bottom: 0; left: 22%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; cursor: grab; z-index: 4;
  transition: left .08s linear;
}
.sim-timeline.scrubbing .stl-carriage { cursor: grabbing; transition: none; }
.stl-screens {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px;
  border-radius: 12px; background: var(--surface);
  box-shadow: var(--media-shadow); width: min(390px, 86vw);
}
.stl-scr {
  position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #000;
  opacity: .58; transform: scale(.96); transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}
.stl-scr.active { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px var(--ink); }
.sim-timeline.on-fork .stl-scr.active { box-shadow: 0 0 0 2px var(--breaks); }
.stl-scr img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.stl-scr.active img { transform: scale(1.03); }
.stl-scr span {
  position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px;
  background: rgba(12, 12, 11, .8); color: #fff; font-size: 9.5px; font-weight: 500; white-space: nowrap;
}
.stl-cursor {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--series-1); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(42, 120, 214, .32);
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  transition: left .32s var(--ease), top .32s var(--ease), opacity .2s ease;
}
.stl-scr.active .stl-cursor { opacity: 1; }
.sim-timeline.on-fork .stl-scr.active .stl-cursor { background: var(--breaks); box-shadow: 0 0 0 4px rgba(179, 38, 30, .35); }
.stl-act-tag {
  position: absolute; right: 4px; top: 4px; padding: 1px 5px; border-radius: 4px;
  background: rgba(17, 17, 17, .82); color: #fff; font: 500 8.5px/1.3 var(--mono);
  opacity: 0; transition: opacity .2s ease; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stl-scr.active .stl-act-tag { opacity: 1; }
.stl-stem { width: 2px; height: 18px; background: var(--ink); position: relative; }
.stl-stem::after { content: ""; position: absolute; bottom: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.sim-timeline.on-fork .stl-stem, .sim-timeline.on-fork .stl-stem::after { background: var(--breaks); }

.stl-track-wrap { position: relative; padding: 6px 0 4px; }
.stl-track { position: relative; height: 54px; cursor: ew-resize; }
.stl-rail { position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 99px; background: var(--line); }
.stl-prog { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 99px; background: var(--ink); width: 8%; }
.sim-timeline.on-fork .stl-prog { background: var(--breaks); }
.stl-dots { position: absolute; inset: 0; }
.stl-dot {
  position: absolute; top: 11px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: center;
}
.stl-dot i {
  width: 11px; height: 11px; margin-top: -5px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--faint); transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.stl-dot.passed i { background: var(--ink); border-color: var(--ink); }
.stl-dot.current i { transform: scale(1.28); background: var(--ink); border-color: var(--ink); }
.sim-timeline.on-fork .stl-dot.passed i, .sim-timeline.on-fork .stl-dot.current i { background: var(--breaks); border-color: var(--breaks); }
.stl-dot b { font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.stl-dot.current b { color: var(--ink); font-weight: 600; }
.stl-dot small { font-size: 10.5px; font-family: var(--mono); color: var(--faint); }

.stl-fork-wrap { position: relative; margin-top: 0; }
.stl-fork-svg { width: 100%; height: 34px; display: block; cursor: pointer; }
.stl-fork-path { fill: none; stroke: var(--breaks); stroke-width: 1.8; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.sim-timeline.on-fork .stl-fork-path { stroke-dasharray: none; stroke-width: 2.2; }
.stl-fork-end { fill: var(--breaks); }
.stl-fork-ctl {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.stl-fork-note { font-size: 12px; font-weight: 500; color: var(--breaks); }
.stl-branch-btn {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--breaks);
  background: color-mix(in srgb, var(--breaks) 10%, transparent); color: var(--breaks);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.stl-branch-btn:hover { color: color-mix(in srgb, var(--breaks) 70%, var(--ink-hover)); }
.sim-timeline.on-fork .stl-branch-btn { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ANNOTATED SEEKUI HEATMAP SCREENSHOT (#fork) */
.heatmap-demo { margin: 0; }
.hm-stage {
  position: relative; border-radius: var(--media-radius); overflow: hidden;
  box-shadow: var(--media-shadow); background: var(--surface);
}
.hm-stage > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.hm-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 95px at 27% 28%, rgba(226, 62, 46, .58), rgba(238, 165, 36, .26) 54%, transparent 78%),
    radial-gradient(circle 85px at 46% 52%, rgba(30, 154, 98, .52), rgba(42, 185, 130, .20) 56%, transparent 78%),
    radial-gradient(circle 95px at 73% 68%, rgba(226, 62, 46, .56), rgba(238, 150, 36, .24) 55%, transparent 78%);
}
.hm-scan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hm-pin {
  position: absolute; z-index: 4; max-width: 220px; padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35), 0 0 0 1.5px var(--line);
  color: var(--ink); font-size: 12.5px; line-height: 1.3;
}
.hm-pin.is-red { box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35), 0 0 0 1.5px var(--breaks); }
.hm-pin.is-green { box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35), 0 0 0 1.5px var(--holds); }
.hm-tag { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.hm-pin.is-red .hm-tag { color: var(--breaks); }
.hm-pin.is-green .hm-tag { color: var(--holds); }
.hm-pin b { display: block; font-weight: 600; font-size: 13px; }
.hm-pin small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }

/* 4-BEAT DISTILLATION & PERFORMANCE (#rebuild): natural page scroll so each visual enters from the bottom and exits out the top */
.dist-section { padding: clamp(32px, 5vw, 72px) 0; }
.dist-rows { display: flex; flex-direction: column; gap: clamp(56px, 10vh, 112px); }
.dist-row {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: clamp(380px, 58vh, 620px);
}
.dist-beat { display: flex; flex-direction: column; justify-content: center; }
.dist-beat h2 { font-size: clamp(28px, 3.4vw, 46px); max-width: 15ch; }
.dist-beat h3 { font-size: clamp(25px, 2.8vw, 38px); max-width: 16ch; }
.dist-beat p { font-size: clamp(16.5px, 1.35vw, 18.5px); color: var(--ink-2); max-width: 38ch; margin: 16px 0 0; line-height: 1.55; }
.dist-visual { min-width: 0; }
.dist-cap { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Beat 0: Two identical monitors (right has Computaco badge) -> icons centered on line, naked text right -> aligned datasets */
.bottleneck-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; height: 100%; padding: 8px 4px; }
.bf-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.bf-node { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); flex: none; }
.bf-icon-wrap { position: relative; display: inline-flex; }
.bf-node svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bf-cw-badge {
  position: absolute; right: -4px; bottom: 2px; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--bg); stroke: none !important;
}
.bf-node b { font-size: 14.5px; font-weight: 600; }
.bf-path {
  position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px;
  padding: 18px 0 14px; width: 100%; justify-content: flex-start;
}
.bf-path::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px;
  transform: translateX(-50%); background: var(--line);
}
.bf-col.is-bad .bf-path::before { background: repeating-linear-gradient(180deg, var(--breaks) 0 5px, transparent 5px 10px); opacity: .65; }
.bf-col.is-good .bf-path::before { background: var(--holds); opacity: .55; }
.bf-step {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: calc(50% - 11px) 22px minmax(0, 1fr);
  align-items: center; column-gap: 10px; width: 100%;
}
.bf-step .bf-ic { grid-column: 2; justify-self: center; }
.bf-step span {
  grid-column: 3; font-size: 12.5px; font-weight: 500; line-height: 1.3;
  color: var(--ink-2); text-align: left; text-wrap: balance;
}
.bf-ic {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1; flex: none;
  background: var(--bg); box-shadow: 0 0 0 2px var(--bg);
}
.bf-ic.bad { background: color-mix(in srgb, var(--breaks) 18%, var(--bg)); color: var(--breaks); }
.bf-ic.warn { background: color-mix(in srgb, #d4921a 22%, var(--bg)); color: #b57600; }
.bf-ic.good { background: color-mix(in srgb, var(--holds) 18%, var(--bg)); color: var(--holds); }
.bf-arrow { display: block; flex: none; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-width: 1.6; margin-top: -2px; }
.bf-col.is-bad .bf-arrow { stroke: var(--breaks); }
.bf-col.is-good .bf-arrow { stroke: var(--holds); }
.bf-db { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; margin-top: 6px; flex: none; }
.bf-db svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bf-db.small { color: var(--muted); }
.bf-db.large { color: var(--ink); }
.bf-db.large svg { stroke: var(--holds); fill: color-mix(in srgb, var(--holds) 10%, transparent); }
.bf-db b { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.bf-db small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 600px) { .bottleneck-flow { grid-template-columns: minmax(0, 1fr); height: auto; } .dist-stage { height: auto; min-height: 460px; } }

.dist-bench { padding: 24px; border-radius: var(--media-radius); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.db-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 7px; }
.db-head span { color: var(--ink-2); font-weight: 500; }
.db-head b { color: var(--holds); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.db-bars { display: flex; flex-direction: column; gap: 6px; }
.db-line { display: grid; grid-template-columns: 74px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: 12px; }
.db-line label { color: var(--muted); }
.db-line span { text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.db-track { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.db-track i { display: block; height: 100%; border-radius: 99px; }
.db-track i.is-fast { background: var(--holds); }
.db-track i.is-slow { background: var(--faint); opacity: .55; }
.db-fid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.db-fid b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.db-fid span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }

.dist-byo { display: flex; flex-direction: column; align-items: center; padding: 20px 10px; }
.byo-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.byo-chip { padding: 14px 18px; border-radius: 12px; background: var(--surface); text-align: center; font-size: 15px; font-weight: 600; }
.byo-chip.active { background: var(--ink); color: var(--bg); }
.byo-chip small { display: block; font-size: 11.5px; font-weight: 400; opacity: .75; margin-top: 2px; }
.byo-plus { font-size: 22px; font-weight: 500; color: var(--muted); }
.byo-bus { width: 100%; max-width: 420px; height: auto; aspect-ratio: 420 / 44; }
.byo-bus path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.byo-bus .sd-arr { stroke: var(--ink-2); }
.byo-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 460px; }
.byo-apps span { padding: 7px 13px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* PERSONA FOR CODING AGENTS: 1-LINE SKILL INSTALL BAR + CI GATE DIAGRAM (#persona) */
.skill-bar {
  margin-top: 20px; display: flex; align-items: center; gap: 10px; max-width: 48ch;
  padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--code-bg);
  box-shadow: 0 0 0 1px var(--line); cursor: copy; transition: box-shadow .15s ease;
}
.skill-bar:hover { box-shadow: 0 0 0 1px var(--faint); }
.skill-bar code {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  font-size: 12px; color: var(--ink);
}
.skill-bar code::-webkit-scrollbar { display: none; }
.skill-bar code::before { content: "$ "; color: var(--faint); }
.skill-copy { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--muted); }
.skill-bar:hover .skill-copy { color: var(--ink-hover); }
.skill-bar .i-done, .skill-bar.copied .i-copy { display: none; }
.skill-bar.copied .i-done { display: block; color: var(--holds); }

.ci-diagram { margin: 0; }
.ci-flow { display: flex; flex-direction: column; align-items: center; }
.ci-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink);
}
.ci-pill.ci-deploy {
  background: color-mix(in srgb, var(--holds) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--holds) 42%, var(--line));
  color: var(--holds);
}
.ci-conn { width: 100%; max-width: 480px; height: auto; display: block; }
.ci-conn path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ci-conn .sd-arr { stroke: var(--ink-2); }
.ci-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ci-gate {
  padding: 13px 14px; border-radius: 11px; background: var(--surface); text-align: left;
  display: flex; flex-direction: column; gap: 6px;
}
.ci-gate code { font-size: 11.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ci-gate p { font-size: 12.5px; line-height: 1.42; color: var(--ink-2); margin: 0; }
.ci-gate em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--holds); margin-top: auto; padding-top: 2px; }

@media (max-width: 900px) {
  .stack-split, .dist-row { grid-template-columns: minmax(0, 1fr); }
  .stack-beat { min-height: auto; opacity: 1; padding: 14px 0; }
  .dist-row { min-height: auto; }
  .stack-diagram-wrap { position: static; }
  .sd-row, .sd-bus { opacity: 1; transform: none; }
  .ma-preds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pin { position: static; max-width: none; margin: 8px; }
}
@media (max-width: 600px) {
  .sd-node span { font-size: 11px; }
  .stage-picks { margin: -.6rem 0 1rem; }
  .dist-card, .ci-outcomes { grid-template-columns: minmax(0, 1fr); }
  .stl-dot b { display: none; }
}

/* A figure with pills that switch what it shows (the product sections of the front page). The radios are .pick,
   so the pill of the checked one is filled by the rules above. */
.tabfig .panes > .pane { display: none; }
.tabfig .pick:nth-of-type(1):checked ~ .panes > .pane:nth-child(1), .tabfig .pick:nth-of-type(2):checked ~ .panes > .pane:nth-child(2),
.tabfig .pick:nth-of-type(3):checked ~ .panes > .pane:nth-child(3), .tabfig .pick:nth-of-type(4):checked ~ .panes > .pane:nth-child(4) { display: block; }
.tabfig .picks { justify-content: center; margin: 18px 0 0; }
.tabfig .pane-cap { margin: 14px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-align: center; max-width: 52ch; min-height: 3em; }
.tabfig .shots { display: flex; gap: clamp(14px, 2vw, 24px); justify-content: center; align-items: flex-start; aspect-ratio: 1280 / 800; align-items: center; }
.tabfig .shots img { width: min(46%, 356px); height: auto; border-radius: var(--media-radius); box-shadow: var(--media-shadow); }
.tabfig .ps-cohort-viz { aspect-ratio: 1280 / 800; justify-content: center; }
.ps-cohort-viz { display: flex; flex-direction: column; gap: 18px; }
.ps-prompt-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.ps-prompt-bar span { color: var(--muted); font-family: var(--mono); font-size: 12px; flex: none; }
.ps-prompt-bar b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-bars-stack { display: flex; flex-direction: column; gap: 12px; }
.ps-bar-row { display: flex; flex-direction: column; gap: 5px; }
.ps-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }
.ps-bar-top b { font-weight: 500; color: var(--ink); }
.ps-bar-top small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ps-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ps-track i { display: block; height: 100%; border-radius: 99px; background: var(--holds); }
.ps-track i.is-warn { background: var(--series-4); }
.ps-track i.is-red { background: var(--breaks); }

/* ComputerWorld's wordmark, one component wherever the product's name is a mark:
   <span class="cw-mark">Computer<span class="w">World</span></span>. "Computer" in ink, bold;
   "World" is the Earth seen through its letters (media/brand/world.*, NASA's Blue Marble seen
   from orbit by scripts/site/render-earth.py). The text stays real text, so it reads, copies and
   is found as "ComputerWorld"; without background-clip it is a solid sea blue. */
.cw-mark { font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.cw-mark .w { color: #2a62ad; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cw-mark .w {
    background: url("./media/brand/world.webp") 50% 50% / cover no-repeat, #1f4f93;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
/* In a line of navigation the mark keeps the line's size and only its own two inks. */
.top nav .cw-mark, .foot .cw-mark { letter-spacing: -.02em; }

/* A button with a short note centred under it. The note hangs below the button and takes no
   room, so the button and the link beside it stay on one line. */
.noted { position: relative; display: inline-block; }
.noted > small {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px;
  font-size: 12.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; pointer-events: none;
}

/* The close of the ComputerWorld page: the Earth's lit limb rising across the foot of a dark
   sky (media/brand/earth-close.*, the same map and renderer as the wordmark), the line and the
   page's two actions in the sky. Dark in both themes. */
.earth-close {
  position: relative; margin-top: clamp(56px, 8vw, 110px);
  min-height: clamp(420px, 44vw, 640px); padding: clamp(64px, 8vw, 116px) 0 0;
  background: #04060b url("./media/brand/earth-close.webp") 50% 100% / cover no-repeat;
  color: #f3f5f9; text-align: center;
  --ink: #f3f5f9; --ink-hover: #ffffff; --muted: rgba(243, 245, 249, .72); --accent: #f3f5f9; --accent-ink: #0b0d12; --button-hover: #ffffff;
}
.earth-close h2 { font-size: clamp(30px, 3.6vw, 50px); }
.earth-close .cta { justify-content: center; }
.earth-close .link { color: var(--ink); }
.earth-credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 11.5px; color: rgba(243, 245, 249, .7); }

