:root {
  color-scheme: light;
  --ground: #FCFCFA;
  --ink: #16181C;
  --muted: #5C6370;
  --faint: #646B76;
  --rule: #E2E4E7;
  --panel: #F2F3F1;
  --accent: #2346C8;
  --arm-0: #8B93A1;
  --arm-1: #B7740F;
  --arm-2: #2346C8;
  --draft-bg: #FFF1D6;
  --draft-ink: #8A5200;
  --draft-rule: #EDBF6C;
  --agentic-color: var(--accent);
  --deterministic-color: var(--faint);
  --display: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #15181C;
    --ink: #E8EAEE;
    --muted: #A2AAB6;
    --faint: #8A929F;
    --rule: #2B3038;
    --panel: #1D2127;
    --accent: #8FA8FF;
    --arm-0: #7F8795;
    --arm-1: #E0A247;
    --arm-2: #8FA8FF;
    --draft-bg: #3A2A0E;
    --draft-ink: #F4C77A;
    --draft-rule: #6B4E1A;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--serif); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .85em; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
.prose img[src="/static/img/telos-observer.jpg"] { width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 40px; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; font-family: var(--sans); }
.nav .name { font: 600 18px/1.2 var(--display); color: var(--ink); text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

h1 { font: 600 clamp(30px, 5vw, 40px)/1.08 var(--display); margin: 0 0 8px; text-wrap: balance; letter-spacing: -.005em; }
h2 { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 40px 0 12px; }
p { margin: 0 0 12px; }

.hero { padding-block: 44px 4px; }
.lede { font-size: 19px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 15px/1.5 var(--sans); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: grid; gap: 1px; }
.t { font-weight: 600; }
.when { font: 400 13px/1 var(--mono); color: var(--faint); margin-left: 8px; }
.d { color: var(--muted); }
.list .d, .rows .d, .exp-list .d { display: block; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }

/* Current work: the one project Mike is focused on now, set apart above Selected work. */
.current { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--panel); }
.current .t { font-size: 19px; }

/* The spectrum beside Selected work: agentic at the top, deterministic at the bottom. */
/* Filter rows above Selected work. Reset keeps its space so nothing shifts. */
.filters { display: grid; gap: 10px; margin: 0 0 24px; }
.filter-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 12px; }
.filter-label { padding-top: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 10px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip[aria-pressed="true"] { color: var(--ground); background: var(--ink); border-color: var(--ink); }
.reset { font: 500 13px/1 var(--sans); color: var(--accent); background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.reset.idle { visibility: hidden; }
.chip:focus-visible, .reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font: 12px/1.5 var(--mono); color: var(--faint); }
.tags .on { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .chip { transition: color .15s, background-color .15s, border-color .15s; } }

.spectrum { position: relative; display: grid; gap: 12px; padding-left: 28px; }
.spectrum::before { content: ""; position: absolute; left: 6px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--agentic-color), var(--deterministic-color)); }
.spectrum-end { margin-left: -28px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--deterministic-color); }
.spectrum-end.agentic { color: var(--agentic-color); }
.spectrum .item { position: relative; }
.spectrum .item::before { content: ""; position: absolute; left: -26px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--agentic-color) calc(var(--agentic) * 100%), var(--deterministic-color)); box-shadow: 0 0 0 3px var(--ground); }
.spectrum .group { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }
.spectrum .grouped { margin-left: 16px; }
.spectrum .grouped::before { left: -42px; }
.row .k { font: 13px/1.75 var(--mono); color: var(--faint); }
/* Experience dates: the start, then the end on its own line. */
.dates span { display: block; white-space: nowrap; }
/* Experiments: each group states its causal question; its experiments sit nested inside it. */
.exp-group + .exp-group { margin-top: 40px; }
.group-id { margin: 0 0 4px; font: 500 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--faint); }
.question { font: 600 20px/1.25 var(--display); margin: 0 0 6px; text-wrap: balance; }
.hypothesis { margin: 0 0 18px; color: var(--muted); }
.exp-list { list-style: none; margin: 0 0 0 4px; padding: 2px 0 2px 20px; border-left: 2px solid var(--rule); display: grid; gap: 20px; }
.exp-list .row { grid-template-columns: 96px minmax(0, 1fr); }
.condition { display: block; font: 12px/1.5 var(--mono); color: var(--faint); }
.agents p { font-family: var(--sans); font-size: 15px; color: var(--muted); }

article { padding-top: 36px; }
.crumbs { font: 13px/1.4 var(--mono); margin-bottom: 12px; }
.crumbs a { color: var(--faint); text-decoration: none; }
.meta { font: 14px/1.5 var(--sans); color: var(--muted); }
.prose h2 { margin-top: 36px; }
.prose h3 { font: 600 15px/1.3 var(--sans); margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose pre { font: 13px/1.55 var(--mono); background: var(--panel); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
.prose pre code { font-size: inherit; overflow-wrap: normal; }
.prose blockquote { margin: 0 0 14px; padding: 2px 0 2px 14px; border-left: 2px solid var(--rule); color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font: 14px/1.4 var(--sans); margin: 4px 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 7px 10px; border-bottom: 1px solid var(--rule); text-align: left; font-variant-numeric: tabular-nums; }
.prose th { font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.next { font: 15px/1.5 var(--sans); border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 16px; }
.tools dt { margin-top: 12px; }
.tools dd { margin: 2px 0 0 0; color: var(--muted); }

.chart { margin: 8px 0 16px; }
.chart .fig { border: 1px solid var(--rule); border-radius: 8px; padding: 12px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 520px; height: auto; }
.chart text { font: 12px var(--sans); fill: var(--ink); }
.chart .title { font-weight: 600; font-size: 13px; }
.chart .tick { font: 11px var(--mono); fill: var(--faint); text-anchor: middle; }
.chart .val { font: 12px var(--mono); }
.chart .grid { stroke: var(--rule); }
.chart .a0 { fill: var(--arm-0); }
.chart .a1 { fill: var(--arm-1); }
.chart .a2 { fill: var(--arm-2); }
.chart figcaption { font: 13px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.dot-plot .fig { padding: 16px 18px; overflow: visible; }
.plot-axis, .plot-run { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: center; }
.plot-axis { color: var(--faint); font: 11px/1.3 var(--mono); padding-bottom: 8px; }
.plot-ticks { position: relative; height: 18px; }
.plot-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.plot-condition { border-top: 1px solid var(--rule); padding: 16px 0 10px; }
.plot-condition:first-of-type { padding-top: 12px; }
.plot-condition h3 { margin: 0 0 10px; }
.plot-rule { display: block; margin-top: 3px; color: var(--muted); font: 12px/1.35 var(--sans); }
.plot-run { min-height: 48px; padding: 4px 0; }
.plot-run + .plot-run { border-top: 1px solid color-mix(in oklab, var(--rule) 65%, transparent); }
.plot-label { display: grid; gap: 2px; min-width: 0; font: 13px/1.25 var(--sans); }
.plot-label strong { color: var(--accent); font-weight: 600; }
.plot-label span { color: var(--faint); font: 11px/1.3 var(--mono); }
.plot-run.comparison .plot-label strong { color: var(--muted); }
.plot-track { position: relative; height: 34px; }
.plot-success { position: absolute; top: 0; right: 0; bottom: 0; background: color-mix(in oklab, #439963 17%, transparent); border-left: 2px solid color-mix(in oklab, #439963 60%, transparent); }
.plot-zero { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--muted); z-index: 1; }
.plot-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--arm-2); border: 1px solid var(--ground); cursor: help; z-index: 2; }
.plot-run.comparison .plot-dot { background: var(--arm-0); }
.plot-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; z-index: 1; }
@media (max-width: 600px) {
  .dot-plot .fig { padding: 12px; }
  .plot-axis, .plot-run { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .plot-axis > span { margin-bottom: 6px; }
  .plot-ticks { margin: 0 8px; }
  .plot-run { padding: 8px 0; }
  .plot-track { margin: 0 8px; }
}
.prose td code { white-space: nowrap; }

/* Experiment arms: one card per arm. The arms a hypothesis is about carry the accent: a
   bordered card, an accent name, and a marked row where they sit beside comparison arms. */
.arms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.arm { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; font: 14px/1.45 var(--sans); }
.arm p { margin: 0; color: var(--muted); }
.arm .role { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.arm .name { font: 600 17px/1.25 var(--display); color: var(--ink); margin: 2px 0 6px; }
.arm.hyp { border: 2px solid var(--accent); padding: 11px 13px; background: color-mix(in oklab, var(--accent) 5%, var(--ground)); }
.arm.hyp .role { color: var(--accent); }

/* Result tables: rows grouped under full-width headings; fixed column widths by kind, so
   tables of one kind line up. */
.tbl { overflow-x: auto; contain: layout; margin: 4px 0 14px; }
.prose table.data { display: table; width: 100%; min-width: 560px; table-layout: fixed; margin: 0; }
.data th, .data td { padding: 7px 10px; overflow-wrap: anywhere; vertical-align: top; }
.data thead th { vertical-align: bottom; border-bottom: 1px solid var(--faint); }
.data .num { text-align: right; }
.data col.w-run { width: 236px; }
.data col.w-arm { width: 168px; }
.data col.w-met { width: 96px; }
.data tr.group th { padding: 18px 10px 8px; font: 14px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.data tbody:first-of-type tr.group th { padding-top: 10px; }
.data .gh { position: sticky; left: 10px; max-width: calc(100vw - 60px); }
.data .cond { font-weight: 600; }
.data .verdict { font-weight: 600; color: var(--muted); margin-left: 6px; }
.data .clause { display: block; color: var(--muted); font-size: 13px; }
.data .clause.no { color: var(--ink); }
.data .clause.yes { color: var(--ink); }
.data tbody + tbody tr:first-child th, .data tbody + tbody tr:first-child td { border-top: 1px solid var(--faint); }
.data span.hyp { color: var(--accent); font-weight: 600; }
.data tr.hyp td { background: color-mix(in oklab, var(--accent) 6%, var(--ground)); }
.data tr.hyp td:first-child { box-shadow: inset 3px 0 var(--accent); }
.data td.best, .data tr.hyp td.best { background: color-mix(in oklab, #439963 24%, var(--ground)); box-shadow: inset 0 0 0 1px color-mix(in oklab, #439963 45%, var(--ground)); font-weight: 600; }
.prose span.hyp { font-weight: 600; white-space: nowrap; }

@media (max-width: 560px) {
  .summary-table { overflow: visible; }
  .prose .summary-table table.data { display: block; min-width: 0; }
  .summary-table colgroup, .summary-table thead { display: none; }
  .summary-table tbody, .summary-table tr.group, .summary-table tr.group th { display: block; }
  .summary-table tr:not(.group) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .summary-table .data td { display: block; padding: 2px 8px; text-align: left; }
  .summary-table .data td:first-child, .summary-table .data td:nth-child(2) { grid-column: 1 / -1; }
  .summary-table .data td:first-child:empty { display: none; }
  .summary-table .data td:first-child { color: var(--muted); font-size: 12px; }
  .summary-table .data td:nth-child(n+3)::before { content: attr(data-label); display: block; color: var(--faint); font: 10px/1.3 var(--mono); text-transform: uppercase; }
  .summary-table .data tr.hyp td:first-child { box-shadow: none; }
  .summary-table .data tr.hyp { border-left: 3px solid var(--accent); padding-left: 5px; }
  .summary-table .data tr.group th { padding: 20px 0 8px; }
  .summary-table .data .gh { position: static; max-width: none; }
}

/* Experiment pages: the drill-down sections outrank their subsections. */
.experiment .prose h2 { font: 600 19px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 44px; }
.experiment .prose h3 { font: 600 13px/1.3 var(--sans); color: var(--muted); margin: 22px 0 6px; }
.experiment .prose .plot-condition h3 { font: 600 14px/1.35 var(--sans); color: var(--ink); margin: 0 0 10px; }


mark.confirm { background: var(--draft-bg); color: var(--draft-ink); border: 1px dashed var(--draft-rule); border-radius: 4px; padding: 0 4px; }

footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font: 13px/1.5 var(--sans); color: var(--faint); }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .exp-list { padding-left: 14px; }
  .exp-list .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-label { padding-top: 0; }
  .dates span { display: inline; }
  .dates span + span { margin-left: .4em; }
}

.video { margin: 8px 0 16px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 8px; }
.video figcaption { font: 13px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
