body{margin:0}img{max-width:100%}[hidden]{display:none!important}
/* Layout: the public welt.ergodic.dev site. Same top bar as the home page with Research added between Models and Python docs. Home keeps its split hero; Research pages reuse the hero's two-tone headline over a catalogue list. Tokens copied from welt.ergodic.dev. */
:root{
  --background:#ffffff; --foreground:#09090b; --muted:#71717a; --soft:#fafafa;
  --border:#e4e4e7; --border-strong:#d4d4d8; --hover:#f4f4f5; --raised:#f4f4f5;
  --primary:#6e1423; --primary-fg:#ffffff; --input-bg:#ffffff;
  --accent:#a9c934; --accent-soft:#c6e15b40; --live:#7a1424;
  --c-bench:#7a1424; --c-article:#8e8e98; --c-case:#94b322;
  --bar-base:#d4d4d8; --bar-model:#a9c934; --track:#f0f0f2;
  --wire:rgba(9,9,11,.16); --wire-dot:#09090b; --wire-acc:#7a1424;
  --sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --radius:8px; --radius-control:6px;
  --gl:max(16px,env(safe-area-inset-left,0px)); --gr:max(16px,env(safe-area-inset-right,0px));
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --background:#09090b; --foreground:#fafafa; --muted:#a1a1aa; --soft:#0f0f11;
  --border:#27272a; --border-strong:#3f3f46; --hover:#18181b; --raised:#18181b;
  --primary:#c6e15b; --primary-fg:#141a00; --input-bg:#09090b;
  --accent:#c6e15b; --accent-soft:#c6e15b26; --live:#c6e15b;
  --c-bench:#c6e15b; --c-article:#63636c; --c-case:#d0607a;
  --bar-base:#3f3f46; --bar-model:#c6e15b; --track:#1c1c1f;
  --wire:rgba(250,250,250,.17); --wire-dot:#fafafa; --wire-acc:#c6e15b;
}}
:root[data-theme="dark"]{
  color-scheme:dark;
  --background:#09090b; --foreground:#fafafa; --muted:#a1a1aa; --soft:#0f0f11;
  --border:#27272a; --border-strong:#3f3f46; --hover:#18181b; --raised:#18181b;
  --primary:#c6e15b; --primary-fg:#141a00; --input-bg:#09090b;
  --accent:#c6e15b; --accent-soft:#c6e15b26; --live:#c6e15b;
  --c-bench:#c6e15b; --c-article:#63636c; --c-case:#d0607a;
  --bar-base:#3f3f46; --bar-model:#c6e15b; --track:#1c1c1f;
  --wire:rgba(250,250,250,.17); --wire-dot:#fafafa; --wire-acc:#c6e15b;
}
*{box-sizing:border-box}
body{background:var(--background);color:var(--foreground);font-family:var(--sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:50;background:var(--background)}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2{text-wrap:balance}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
svg.i{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}

/* top bar (public site) */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;height:48px;background:var(--background);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.brand{display:flex;align-items:center;gap:8px}
.brand .globe{width:20px;height:20px;border-radius:50%;background:#18181b;display:grid;place-items:center}
.brand .globe svg{width:16px;height:16px}
.brand b{font-size:17px;font-weight:700;letter-spacing:-.02em}
.brand small{font-size:11.5px;color:var(--muted)}
.bar .grow{flex:1}
.bar nav{display:flex;align-items:center;gap:2px}
.bar nav a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border-radius:var(--radius-control);font-size:13px;color:var(--foreground)}
.bar nav a svg.i{width:13px;height:13px;color:var(--muted)}
.bar nav a svg.ext{width:11px;height:11px}
.bar nav a:hover{background:var(--hover)}
.bar nav a[aria-current="page"]{background:var(--hover);font-weight:500}
.bar nav a .new{font:600 9.5px/1 var(--mono);color:var(--live);background:var(--accent-soft);padding:3px 4px;border-radius:4px;letter-spacing:.03em}
.iconbtn{width:30px;height:30px;border-radius:var(--radius-control);border:0;background:none;display:grid;place-items:center;color:var(--foreground);cursor:pointer}
.iconbtn:hover{background:var(--hover)}

/* home */
.home{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,1fr);min-height:calc(100vh - 48px)}
.home .l{display:flex;flex-direction:column;justify-content:center;gap:22px;padding:56px clamp(20px,4.5vw,70px)}
.display{font-size:clamp(38px,4.4vw,56px);font-weight:600;line-height:1.02;letter-spacing:-.035em}
.display span{display:block;color:var(--muted)}
.lede{color:var(--muted);font-size:14.5px;line-height:1.6;max-width:48ch}
.torus{position:relative;width:100%;max-width:640px;aspect-ratio:16/7}
.torus canvas{position:absolute;inset:0;width:100%;height:100%}
.home .r{background:var(--soft);border-left:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:40px var(--gr) 40px 20px}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--hover);border-radius:var(--radius-control);padding:3px;font-size:12.5px}
.seg span,.seg button{text-align:center;padding:5px;border-radius:5px;color:var(--muted);font:inherit;background:none;border:1px solid transparent;cursor:pointer}
.seg button.on,.seg span.on{background:var(--background);color:var(--foreground);box-shadow:0 1px 2px rgba(0,0,0,.06);border:1px solid var(--border)}
.fake{height:32px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--input-bg);display:flex;align-items:center;justify-content:center;font-size:12.5px;color:var(--foreground)}
.fake.l2{justify-content:flex-start;padding:0 10px;color:var(--muted)}
.fake.dark{background:var(--primary);color:var(--primary-fg);border-color:var(--primary)}

.demo{--ok:#15803d;--ok-bg:rgba(22,163,74,.12);--bad:#b91c1c;--bad-bg:rgba(220,38,38,.1);min-width:0;width:100%;max-width:820px}
:root[data-theme="dark"] .demo{--ok:#4ade80;--ok-bg:rgba(74,222,128,.14);--bad:#f87171;--bad-bg:rgba(248,113,113,.14)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .demo{--ok:#4ade80;--ok-bg:rgba(74,222,128,.14);--bad:#f87171;--bad-bg:rgba(248,113,113,.14)}}
.dm-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.dm-seg{display:inline-flex;grid-template-columns:none}
.dm-seg button{padding:5px 12px;white-space:nowrap}
.home .l .lede{max-width:56ch}
@media (max-width:1180px){.home{grid-template-columns:1fr;min-height:0}.home .r{border-left:0;border-top:1px solid var(--border);padding:48px 20px}.home .l{padding-block:48px}}
.dm-chips{display:flex;flex-wrap:wrap;gap:6px}
.dm-chip{font:inherit;font-size:12px;height:26px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--background);color:var(--muted);cursor:pointer}
.dm-chip.on{border-color:var(--foreground);color:var(--foreground)}
.dm-steps{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 10px;font-size:13px}
.dm-steps ol{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.dm-steps li{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px 0 5px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-weight:500;font-size:12.5px;transition:border-color .3s,color .3s,background .3s}
.dm-steps li .num{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:var(--hover);font-size:10.5px;font-weight:600}
.dm-steps li.on{border-color:var(--accent);color:var(--foreground);background:var(--accent-soft)}
.dm-steps li.on .num{background:var(--accent);color:#18181b}
.dm-steps li.done{color:var(--ok)}
.dm-cap{margin:0;color:var(--foreground);flex:1 1 220px}
.dm-pause{height:24px;padding:0 8px;font-size:12px}
.dm-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius);max-width:100%}
.dm-grid{width:100%;min-width:520px;border:1px solid var(--border);border-radius:var(--radius);border-collapse:separate;border-spacing:0;background:var(--background);font:12px var(--mono);overflow:hidden}
.dm-grid th{text-align:left;color:var(--muted);border-bottom:1px solid var(--border);letter-spacing:.06em;text-transform:uppercase;padding:8px 10px;font-size:10.5px;font-weight:500}
.dm-grid td{border-bottom:1px solid var(--border);white-space:nowrap;font-variant-numeric:tabular-nums;padding:7px 9px;transition:background .5s}
.dm-grid tr:last-child td{border-bottom:0}
.dm-grid th.t,.dm-grid td.t{border-left:1px solid var(--border);min-width:150px}
.dm-grid tr.known td.t{color:var(--muted)}
.dm-grid.phase-1 tr.known td,.dm-grid.phase-2 tr.known td,.dm-grid.phase-3 tr.known td{background:var(--accent-soft)}
.dm-grid.phase-1 tr.known td:first-child,.dm-grid.phase-2 tr.known td:first-child,.dm-grid.phase-3 tr.known td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
.dm-grid.phase-1 tr.known td.t,.dm-grid.phase-2 tr.known td.t,.dm-grid.phase-3 tr.known td.t{color:var(--ok);font-weight:600}
.dm-grid .q{display:inline-block;width:22px;height:20px;line-height:19px;text-align:center;border:1px dashed var(--border-strong);border-radius:5px;color:var(--muted)}
.dm-grid .pred{display:inline-flex;align-items:center;gap:6px}.dm-grid .pred.a{animation:dm-in .45s both}
.dm-grid .bar{position:relative;width:40px;height:6px;border-radius:3px;background:var(--hover);overflow:hidden}
.dm-grid .bar i{position:absolute;inset:0 auto 0 0;border-radius:3px;background:var(--accent)}.dm-grid .pred.a .bar i{animation:dm-grow .8s cubic-bezier(.2,.7,.2,1) both}
.dm-grid .pp{color:var(--muted)}
.dm-grid .truth{margin-left:6px;padding:1px 6px;border-radius:4px;font-size:11px;animation:dm-in .4s both}
.dm-grid .ok{color:var(--ok);background:var(--ok-bg)}
.dm-grid .bad{color:var(--bad);background:var(--bad-bg)}
.dm-grid .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.dm-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 12px;padding:10px 2px 0;font-size:12.5px;color:var(--muted)}
.dm-line b{color:var(--foreground);font-weight:600}
.dm-note{font:11px var(--mono)}
/* compact hero so heading, demo and score line fit one screen */
.home .l{gap:16px;padding-block:28px}
.home .l .display{font-size:clamp(32px,3.3vw,46px)}
.home .l .lede{font-size:15px}
.dm-controls{margin-bottom:8px;gap:8px}
.dm-seg button{padding:3px 10px;font-size:12px}
.dm-chip{height:24px;padding:0 9px;font-size:11.5px}
.dm-steps{margin:0 0 8px;gap:10px;font-size:12px}
.dm-steps li{height:23px;font-size:11.5px}
.dm-steps li .num{width:15px;height:15px;font-size:10px}
.dm-pause{height:22px;font-size:11.5px}
.dm-grid{font-size:11.5px}
.dm-grid th{padding:6px 9px;font-size:10px}
.dm-grid td{padding:4px 9px;line-height:1.35}
.dm-grid .q{height:17px;line-height:16px;width:20px;font-size:11px}
.dm-grid .truth{font-size:10.5px;padding:0 5px}
.dm-line{padding-top:6px;font-size:12px}
@media (max-height:740px) and (min-width:1181px){.home .l{gap:12px;padding-block:18px}.home .l .display{font-size:34px}.dm-grid td{padding:2px 9px}.dm-grid th{padding:4px 9px}}
@keyframes dm-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes dm-grow{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}
@media (prefers-reduced-motion:reduce){.dm-grid .pred,.dm-grid .bar i,.dm-grid .truth{animation:none}.dm-grid td{transition:none}}
@media (max-width:560px){.dm-grid th:nth-child(4),.dm-grid td:nth-child(4),.dm-grid th:nth-child(5),.dm-grid td:nth-child(5){display:none}.dm-grid{min-width:0}}
.or{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--border)}
.mocknote{font:11px var(--mono);color:var(--muted);text-align:center}
.minifoot{width:min(100%,312px);display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted)}
.minifoot span{display:flex;gap:12px}

/* home research band */
.band{border-top:1px solid var(--border);padding-block:56px 64px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.wrap{max-width:1120px;margin-inline:auto;width:100%}
.band .h{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.band h2{font-size:26px;font-weight:600;letter-spacing:-.025em;line-height:1.1}
.band h2 span{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cardlink{border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0;background:var(--background)}
.cardlink:hover{border-color:var(--border-strong);background:var(--soft)}
.cardlink .v{font:600 26px/1 var(--mono);letter-spacing:-.03em;color:var(--live)}
.cardlink h3{font-size:14.5px;font-weight:600;line-height:1.3}
.cardlink p{color:var(--muted);font-size:13px}
.cardlink .tags{margin-top:auto}
.steps .cardlink:hover{border-color:var(--border);background:var(--background)}

/* research pages */
.page{flex:1;padding-block:52px 72px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.rhead{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:center;margin-bottom:34px}
.rhead .copy{display:flex;flex-direction:column;gap:18px}
.rhead .torus{max-width:520px;justify-self:end}
.tabs{display:inline-flex;background:var(--hover);border-radius:var(--radius-control);padding:3px;gap:2px;flex-wrap:wrap;max-width:100%}
.tabs a{padding:6px 12px;border-radius:5px;font-size:13px;color:var(--muted);display:flex;gap:7px;align-items:center;border:1px solid transparent}
.tabs a:hover{color:var(--foreground)}
.tabs a[aria-current="page"]{background:var(--background);color:var(--foreground);border-color:var(--border);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.tabs .n{font:11px var(--mono);color:var(--muted)}
.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:var(--radius);margin-bottom:30px;overflow:hidden}
.strip a{padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.strip a+a{border-left:1px solid var(--border)}
.strip a:hover{background:var(--soft)}
.strip .v{font:600 22px/1.15 var(--mono);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--live)}
.strip .l{font-size:13px}
.strip .s{font:11.5px var(--mono);color:var(--muted)}
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:12px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{height:28px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:var(--background);font-size:12.5px;cursor:pointer;color:var(--muted)}
.chip:hover{color:var(--foreground);border-color:var(--border-strong)}
.chip[aria-pressed="true"]{background:var(--primary);color:var(--primary-fg);border-color:var(--primary)}
.search{display:flex;align-items:center;gap:8px;height:32px;width:min(100%,250px);padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--input-bg);color:var(--muted);margin-left:auto}
.search input{border:0;outline:0;background:none;font-size:13px;flex:1;min-width:0}
.search input::placeholder{color:var(--muted)}
.search:focus-within{border-color:var(--border-strong);box-shadow:0 0 0 3px var(--accent-soft)}
.count{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;margin:2px 0 10px}

.list{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.row{display:grid;grid-template-columns:32px minmax(0,1fr) auto 14px;gap:14px;align-items:center;padding:16px 14px}
.row+.row{border-top:1px solid var(--border)}
.row:hover{background:var(--soft)}
.av{width:32px;height:32px;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--raised);display:grid;place-items:center;font:600 11.5px var(--mono)}
.row .t{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.row .t h3{font-size:14.5px;font-weight:600}
.row .t code{font:12px var(--mono);color:var(--muted)}
.row .d{color:var(--muted);font-size:13.5px;margin-top:2px;max-width:70ch}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1;padding:4px 7px;border:1px solid var(--border);border-radius:5px;background:var(--background)}
.tag i{width:6px;height:6px;border-radius:50%;display:block}
.metric{text-align:right;min-width:96px}
.metric small{display:block;font-size:11.5px;color:var(--muted);max-width:160px;margin-left:auto;line-height:1.3}
.metric b{font:600 13px var(--mono);font-variant-numeric:tabular-nums}
.row>svg.i{color:var(--muted);width:14px;height:14px}
.empty{padding:36px 16px;text-align:center;color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:3px 8px;border-radius:5px;background:var(--hover);color:var(--muted)}
.pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.live{background:var(--accent-soft);color:var(--live)}

/* detail */
.back{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin-bottom:22px}
.back:hover{color:var(--foreground)}
.dh{display:flex;flex-direction:column;gap:14px;margin-bottom:34px;max-width:820px}
.dh .eyebrow{display:flex;gap:8px;align-items:center;font:12px var(--mono);color:var(--muted)}
.dh h1{font-size:clamp(30px,3.6vw,44px);font-weight:600;letter-spacing:-.03em;line-height:1.06}
.dh h1 span{display:block;color:var(--muted)}
.dh p{color:var(--muted);font-size:15px;max-width:64ch;line-height:1.6}
.det{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start}
.det .body{display:flex;flex-direction:column;gap:32px;min-width:0}
.sec h2{font-size:15px;font-weight:600;margin-bottom:10px}
.sec>p{color:var(--muted);max-width:68ch;line-height:1.6}
.card{border:1px solid var(--border);border-radius:var(--radius);padding:16px;background:var(--background)}
.aside{display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(env(safe-area-inset-top,0px) + 72px)}
.facts{margin:0;padding:4px 16px}
.facts div{display:flex;flex-direction:column;gap:4px;padding:12px 0}
.facts div+div{border-top:1px solid var(--border)}
.facts dt{font-size:12px;color:var(--muted)}
.facts dd{margin:0;font-size:13.5px;display:flex;flex-wrap:wrap;gap:5px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;padding:0 12px;border-radius:var(--radius-control);background:var(--primary);color:var(--primary-fg);font-size:13px;font-weight:500;border:1px solid var(--primary)}
.btn.ghost{background:var(--background);color:var(--foreground);border-color:var(--border)}
.btn.ghost:hover{background:var(--hover)}
.hero-num{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--soft)}
.hero-num b{font:600 44px/1 var(--mono);letter-spacing:-.03em;color:var(--live)}
.hero-num span{font-size:14px;max-width:52ch}
.hero-num small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.chart{display:flex;flex-direction:column;gap:16px}
.legend{display:flex;gap:16px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:2px;display:block}
.grp{display:flex;flex-direction:column;gap:6px}
.grp>p{font-size:13px;font-weight:500}
.hb{display:grid;grid-template-columns:130px minmax(0,1fr) 80px;gap:12px;align-items:center;font-size:12.5px}
.hb .k{color:var(--muted)}
.hb .tr{height:12px;background:var(--track);border-radius:3px;position:relative;overflow:hidden}
.hb .tr i{position:absolute;inset:0 auto 0 0;background:var(--bar-base);border-radius:3px}
.hb.m .tr i{background:var(--bar-model)}
.hb b{font:500 12.5px var(--mono);text-align:right;font-variant-numeric:tabular-nums}
.axis{display:grid;grid-template-columns:130px minmax(0,1fr) 80px;gap:12px;font:11px var(--mono);color:var(--muted)}
.axis div{display:flex;justify-content:space-between}
.note{font-size:12.5px;color:var(--muted);border-left:2px solid var(--border-strong);padding-left:10px;max-width:70ch}
.mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mini>div{border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:3px;min-width:0}
.mini b{font:600 16px var(--mono);font-variant-numeric:tabular-nums}
.mini b.w{font-family:var(--sans);font-size:14px}
.mini span{font-size:12.5px;color:var(--muted)}
.comps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.comps>div{border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.comps>div.off{opacity:.45}
.comps b{font-size:13.5px;font-weight:600;display:flex;justify-content:space-between;gap:8px}
.comps b em{font:500 11px var(--mono);font-style:normal;color:var(--muted)}
.comps>div:not(.off) b em{color:var(--live)}
.comps p{font-size:12.5px;color:var(--muted)}
details.cav{border:1px solid var(--border);border-radius:var(--radius);padding:0 14px}
details.cav summary{cursor:pointer;font-size:13.5px;font-weight:500;padding:11px 0;list-style:none;display:flex;align-items:center;gap:8px}
details.cav summary::-webkit-details-marker{display:none}
details.cav summary svg{transition:transform .15s;color:var(--muted)}
details.cav[open] summary svg{transform:rotate(90deg)}
details.cav p{color:var(--muted);font-size:13.5px;padding-bottom:14px;max-width:72ch}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.steps>div{border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:6px}
.steps .no{font:500 11px var(--mono);color:var(--muted)}
.steps b{font-size:13.5px;font-weight:600}
.steps p{font-size:13px;color:var(--muted)}
ul.hard{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;max-width:70ch}
ul.hard li{color:var(--muted);padding-left:16px;position:relative;line-height:1.6}
ul.hard li::before{content:"";position:absolute;left:2px;top:.66em;width:5px;height:5px;border-radius:50%;background:var(--border-strong)}
.slotbox{border:1px dashed var(--border-strong);border-radius:var(--radius);padding:28px 18px;text-align:center;color:var(--muted);font-size:13px;display:flex;flex-direction:column;gap:4px;align-items:center}
.slotbox b{font:500 11.5px var(--mono);color:var(--foreground)}
.related a{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:13.5px}
.related a+a{border-top:1px solid var(--border)}
.related a:hover span{text-decoration:underline;text-underline-offset:3px}
.related .av{width:24px;height:24px;font-size:10px;border-radius:5px}

/* animated buffers: dot ribbons between sections, simulated futures on benchmarks */
.flowdiv{position:relative;height:clamp(72px,8vw,112px)}
.flowdiv.thin{height:clamp(56px,6vw,84px)}
.flowdiv canvas,.futures canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.band-flow{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));border-top:1px solid var(--border)}
.band-flow+.band{border-top:0;padding-top:8px}
.futures{position:relative;border:1px solid var(--border);border-radius:var(--radius);background:var(--soft);aspect-ratio:21/8;min-height:200px;max-width:100%;overflow:hidden}
.futures .cap{position:absolute;left:14px;right:14px;bottom:10px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:11.5px var(--mono);color:var(--muted)}
footer{border-top:1px solid var(--border);padding-block:16px;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
footer span{display:flex;gap:14px}
footer a:hover{color:var(--foreground)}

@media (max-width:980px){
  .det{grid-template-columns:1fr}.aside{position:static}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .strip a:nth-child(3){border-left:0}.strip a:nth-child(n+3){border-top:1px solid var(--border)}
  .cards{grid-template-columns:1fr 1fr}
  .rhead{grid-template-columns:1fr}.rhead .torus{display:none}
}
@media (max-width:820px){
  .home{grid-template-columns:1fr}
  .home .r{border-left:0;border-top:1px solid var(--border)}
  .bar nav .lbl{display:none}
  .bar nav a{padding:0 8px}
}
@media (max-width:640px){
  .brand small{display:none}
  .cards{grid-template-columns:1fr}
  .row{grid-template-columns:32px minmax(0,1fr) 14px;row-gap:8px}
  .row .metric{grid-column:2;text-align:left}.row .metric small{margin-left:0}
  .row>svg.i{grid-row:1;grid-column:3}
  .steps,.comps,.mini{grid-template-columns:1fr}
  .hb,.axis{grid-template-columns:86px minmax(0,1fr) 66px}
  .search{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* wireframe diagrams on detail pages */
.drow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:24px;align-items:center;margin-bottom:6px}
.drow .dh{margin-bottom:0}
.dwire{position:relative;width:100%;aspect-ratio:16/10}
.dwire canvas{position:absolute;inset:0;width:100%;height:100%}
@media (max-width:860px){.drow{grid-template-columns:1fr}.dwire{max-width:420px}}

/* article and use-case bodies */
.prose{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:72ch}
.prose h2{font-size:18px;font-weight:600;letter-spacing:-.015em;margin:14px 0 0}
.prose h3{font-size:15px;font-weight:600;margin:6px 0 0}
.prose p,.prose li{color:var(--foreground);font-size:15px;line-height:1.65}
.prose p.lead{font-size:17px;line-height:1.6}
.prose ul,.prose ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.prose a{color:var(--live);text-decoration:underline;text-underline-offset:3px}
.prose code{font:12.5px var(--mono);background:var(--hover);padding:1px 5px;border-radius:4px}
.prose pre{margin:0;background:var(--soft);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;white-space:pre-wrap;word-break:break-word}
.prose pre code{background:none;padding:0;font-size:12.5px;line-height:1.6}
.prose .callout{border:1px solid var(--border);border-left:3px solid var(--live);border-radius:var(--radius);background:var(--soft);padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.prose .callout p,.prose .callout li{font-size:14px}
.prose .callout-title{font-weight:600;margin:0}
.prose .tbl{overflow-x:auto;max-width:100%}
/* article sections, styled after How Welt Works */
.art-sec.prose{gap:12px;max-width:72ch}
.art-sec h2,.art-sec.prose h2{font-size:15px;font-weight:600;letter-spacing:0;margin:0}
.art-sec.prose h3{font-size:14px;margin:4px 0 0}
.art-sec.prose>p,.art-sec.prose>ul>li,.art-sec.prose>ol>li{color:var(--muted);font-size:14.5px;line-height:1.6}
.art-sec.prose>p.lead{color:var(--foreground);font-size:16px}
.art-sec.prose>p.note{font-size:13px}
.card.ex{display:flex;flex-direction:column;gap:8px;padding:12px}
.card.ex table{min-width:420px}
.card.ex .cap{font:11.5px var(--mono);color:var(--muted)}
.art-sec:not(.prose){display:flex;flex-direction:column;gap:10px}
.art-sec .prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.art-sec>p{color:var(--muted);max-width:68ch;line-height:1.6}
.card.pr{display:flex;flex-direction:column;gap:10px;min-width:0}
.card.pr q{quotes:none;font-size:13.5px;line-height:1.55;flex:1}
.card.pr .btn{align-self:flex-start}
@media (max-width:700px){.art-sec .prompts{grid-template-columns:1fr}.card.ex table{min-width:0}}
details.cav .prose{padding-bottom:14px}
details.cav .prose p{color:var(--muted);font-size:13.5px}
.prose .acts{display:flex;flex-wrap:wrap;gap:8px}
.prose a.btn{color:var(--primary-fg);text-decoration:none}
.prose a.btn.ghost{color:var(--foreground)}
.prose td.q{background:var(--accent-soft);color:var(--live);font-family:var(--mono);font-weight:600}
.prose td code,.prose th code{white-space:nowrap}
.prose .tw{overflow-x:auto}
.prose table{border-collapse:collapse;width:100%;font-size:13.5px}
.prose th,.prose td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--border);vertical-align:top}
.prose th{font:500 11.5px var(--mono);color:var(--muted)}
.prose blockquote{margin:0;border-left:3px solid var(--accent);padding-left:14px;color:var(--muted)}
.steps{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}

/* walkthroughs, results, agents, FAQ */
ol.walk{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;counter-reset:w}
ol.walk>li{counter-increment:w;display:grid;grid-template-columns:28px minmax(0,1fr);gap:4px 12px;border-top:1px solid var(--border);padding-top:16px}
ol.walk>li::before{content:counter(w);grid-row:1 / span 2;width:24px;height:24px;border-radius:50%;background:var(--primary);color:var(--primary-fg);font:600 12px/24px var(--mono);text-align:center}
ol.walk h3{font-size:15px;font-weight:600;margin:2px 0 0}
ol.walk .prose{max-width:none}
.cbox{position:relative}
.cbox .cp{position:absolute;top:8px;right:8px;border:1px solid var(--border);background:var(--background);border-radius:5px;font:500 12px var(--sans);padding:4px 8px;cursor:pointer;color:var(--foreground)}
.cbox .cp:hover{background:var(--hover)}
.acts{display:flex;flex-wrap:wrap;gap:8px}
table.vs{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
table.vs th,table.vs td{text-align:left;padding:10px;border-bottom:1px solid var(--border);vertical-align:top}
table.vs th{font:500 11.5px var(--mono);color:var(--muted)}
table.vs td small{display:block;font-size:11.5px;color:var(--muted)}
table.vs td.w{font-weight:600}
table.vs .pend{color:var(--muted);font-weight:400;font-size:13px}
table.vs .ahead{background:var(--accent-soft);color:var(--live);font-weight:600;font-size:12px;padding:3px 8px;border-radius:5px}
.agents{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:28px;align-items:start}
.agents h2,.faqwrap h2{font-size:26px;font-weight:600;letter-spacing:-.025em;line-height:1.1}
.agents h2 span,.faqwrap h2 span{color:var(--muted)}
.agents .lede{margin-top:12px}
.agrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.agrid .card{display:flex;flex-direction:column;gap:6px;min-width:0}
.agrid b{font-size:13.5px}
.agrid code{font:12px var(--mono);overflow-wrap:anywhere;color:var(--muted)}
.agrid a{font-size:13px;color:var(--live);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.faqwrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:28px;align-items:start}
.faqwrap>div{display:flex;flex-direction:column;gap:8px}
details.faq p{color:var(--muted)}
@media (max-width:860px){.agents,.faqwrap{grid-template-columns:1fr}.agrid{grid-template-columns:1fr}}
/* use-case cards, in the style of the research catalogue */
.ucgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.uc{border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--background);min-width:0}
.uc:hover{border-color:var(--border-strong)}
.uc .uh{display:flex;justify-content:space-between;align-items:center;gap:8px}
.uc .chip{font-size:11.5px;font-weight:500;background:var(--hover);border-radius:999px;padding:3px 9px}
.uc .dom{font-size:12px;color:var(--muted)}
.uc h3{font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.005em}
.uc h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.uc .ds{font-size:12.5px;color:var(--muted)}
.uc .dim{display:flex;justify-content:space-between;gap:8px;font:11.5px var(--mono);color:var(--muted);border-top:3px solid var(--foreground);padding-top:8px}
.uc .sig{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;font-size:12px;color:var(--muted)}
.uc .sig i{height:6px;background:var(--track);border-radius:3px;position:relative;overflow:hidden;display:block}
.uc .sig b{position:absolute;inset:0 auto 0 0;background:var(--accent);border-radius:3px}
.uc .sig em{font:600 12px var(--mono);font-style:normal;color:var(--foreground)}
.uc .uf{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--border);padding-top:10px;font-size:11.5px;color:var(--muted)}
.uc .uf>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uc .ub{display:flex;gap:6px;flex:none}
.uc .btn{height:28px;font-size:12.5px;padding:0 10px}
/* Open with: one button, several places to run the notebook */
details.ow{position:relative;display:inline-block}
details.ow>summary{list-style:none;cursor:pointer;user-select:none}
details.ow>summary::-webkit-details-marker{display:none}
details.ow>summary svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .15s}
details.ow[open]>summary svg{transform:rotate(180deg)}
details.ow .menu{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(300px,80vw);background:var(--background);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:0 10px 30px rgba(0,0,0,.14);padding:6px;display:flex;flex-direction:column}
details.ow.r .menu{left:auto;right:0}
details.ow .menu a{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:6px;font-size:13px;font-weight:500;color:var(--foreground);text-align:left;white-space:normal}
details.ow .menu a:hover,details.ow .menu a:focus-visible{background:var(--hover)}
details.ow .menu a small{font-size:11.5px;font-weight:400;color:var(--muted)}
.aside details.ow,.aside details.ow>summary{display:flex;width:100%}
.chips.areas .chip .n{font:11px var(--mono);margin-left:5px;opacity:.7}
/* foundations article inside the Research page */
.fnd{--paper:var(--background);--ink:var(--foreground);--line:var(--border);--line-strong:var(--border-strong);--card:var(--soft);--field:var(--soft);--faint:var(--muted);--bar:var(--bar-base);--ox:var(--live);display:flex;flex-direction:column;gap:14px;max-width:none}
.fnd .pull{font-size:20px;font-weight:500;letter-spacing:-.015em;border-left:4px solid var(--accent);padding:4px 0 4px 16px}
.fnd .soft{color:var(--muted)}
.fnd .cap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;align-items:start;border-top:1px solid var(--border);padding-top:14px}
.fnd .cap h3{margin:0}.fnd .cap p{font-size:14px;color:var(--muted);margin-top:6px}
.fnd pre .c{color:var(--muted)}.fnd pre .s{color:var(--live)}
.fnd .tablewrap{overflow-x:auto}
.fnd table{border-collapse:collapse;width:100%;font-size:13.5px}
.fnd th,.fnd td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--border)}
.fnd .tag{font-size:11.5px;padding:3px 7px;border-radius:5px;border:1px solid var(--border)}
.fnd .tag.on{background:var(--accent-soft);border-color:transparent}
.fnd .tag.off{color:var(--muted)}
.fnd .note{font:12px var(--mono);color:var(--muted)}
.fnd .bench{display:flex;flex-direction:column;gap:14px}
.fnd .tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--border);border-radius:var(--radius)}
.fnd .tiles>div{padding:16px;display:flex;flex-direction:column;gap:6px}
.fnd .tiles>div+div{border-left:1px solid var(--border)}
.fnd .tiles .v{font:600 30px/1 var(--mono);letter-spacing:-.03em}
.fnd .tiles .v.acc{color:var(--live)}
.fnd .tiles span:not(.v){font-size:13.5px;color:var(--muted)}
.fnd figure.chart{margin:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--soft);padding:16px;display:flex;flex-direction:column;gap:8px;position:relative}
.fnd figure.chart h3{margin:0;font-size:14.5px}
.fnd figure.chart .sub{font-size:13px;color:var(--muted)}
.fnd .svgwrap svg{width:100%;height:auto;display:block;overflow:visible}
.fnd .legend{display:flex;gap:14px;font-size:12.5px;color:var(--muted)}
.fnd .legend i{display:inline-block;width:10px;height:10px;margin-right:6px;vertical-align:-1px}
.fnd .tip{position:absolute;pointer-events:none;background:var(--background);border:1px solid var(--border-strong);border-radius:6px;padding:7px 9px;font:12px var(--mono);opacity:0;transition:opacity .12s;z-index:5}
.fnd .tip.on{opacity:1}
.fnd details.data summary{cursor:pointer;font:12px var(--mono);color:var(--muted)}
@media (max-width:760px){.fnd .cap{grid-template-columns:1fr}.fnd .tiles{grid-template-columns:1fr}.fnd .tiles>div+div{border-left:0;border-top:1px solid var(--border)}}

/* welt-website: sign-in lives on the console; the bar links there. */
.bar-acts{display:flex;align-items:center;gap:6px;margin-left:6px}
.btn.sm{height:30px;padding:0 11px;font-size:13px}
.btn:hover{opacity:.92}
.btn.ghost:hover{opacity:1}
@media (max-width:560px){.bar-acts .ghost{display:none}}
.bar-acts .btn{white-space:nowrap}

/* welt-website: the hero without the sign-in panel. Copy and calls to action left, the demo right. */
@media (min-width:1181px){
  .home{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
  .home .r{padding:40px clamp(20px,3vw,48px)}
}
.home .r .demo{max-width:760px}
.hero-acts{display:flex;flex-wrap:wrap;gap:10px}
.btn.lg{height:40px;padding:0 16px;font-size:14px}
.hero-note{font-size:13px;color:var(--muted)}
.hero-note a{color:var(--foreground);text-decoration:underline;text-underline-offset:2px}
@media (max-width:1180px){.home{grid-template-columns:minmax(0,1fr)}}
.bar-acts .btn{white-space:nowrap}
