/* Oncoworld · home page
   What ibelick.com and emilkowal.ski teach about type:
   one typeface, one reading size, headings the same size as the text and told apart by colour and
   weight, a single centred column about 640px wide, and dense lists that never feel crowded
   because every row has the same shape: a primary line and a quieter line.
   The typeface is the one in the Oncoworld wordmark, Plus Jakarta Sans, used for everything.
   Three sizes only: 13.5 (metadata), 16 (everything), 24 (the one statement).
   Three text colours only: primary, secondary, tertiary. One accent, used inside figures.
   Preview only: not linked from the site, not in the sitemap, not touched by tools/build.py. */
/* metric-matched stand-in so the swap to the real face does not move the text */
@font-face{font-family:"PJS Fallback";src:local("Arial"),local("Helvetica Neue"),local("Helvetica");size-adjust:105.8%;ascent-override:98%;descent-override:20.8%;line-gap-override:0%}
@font-face{
  font-family:"Plus Jakarta Sans";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
:root{
  --bg:#ffffff;
  --fg:#0e0e0d;            /* primary */
  --fg-2:#5a5a56;          /* secondary */
  --fg-3:#706f6a;          /* tertiary */
  --rule:rgba(0,0,0,.08);
  --rule-2:rgba(0,0,0,.16);
  --hover:rgba(0,0,0,.035);
  --accent:#0b7a55;
  --alert:#b3392d;
  --vis:#fbf6f4;
  --font:"Plus Jakarta Sans","PJS Fallback",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --ease:cubic-bezier(.23,1,.32,1);
  --col:640px;
  --avail:calc(100vw - 40px);   /* room for a wide figure beside the side nav */
  --gap:72px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#020303;--fg:#eeeeec;--fg-2:#b4b4b0;--fg-3:#7b7d79;
  --rule:rgba(255,255,255,.09);--rule-2:rgba(255,255,255,.18);--hover:rgba(255,255,255,.04);
  --accent:#66cdb6;--alert:#ee8f80;--vis:#0b0d0d;color-scheme:dark;
}

*{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%;scroll-padding-top:32px}
body{
  margin:0;background:var(--bg);color:var(--fg-2);
  font:400 16px/1.6 var(--font);
  letter-spacing:-.011em;
  font-feature-settings:"tnum" 0;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px));
}
p,h1,h2,h3,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
::selection{background:var(--fg);color:var(--bg)}
:focus-visible{outline:1px solid var(--fg);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:12px;top:-60px;background:var(--fg);color:var(--bg);padding:8px 12px;font-size:13.5px;z-index:10}
.skip:focus{top:12px}

/* the column */
.col{max-width:var(--col);margin:0 auto;padding-top:96px;padding-bottom:64px}
.sec{margin-top:var(--gap)}
.sec > h2{color:var(--fg-3);font-weight:400;font-size:16px;margin-bottom:16px}
h1,h3,.t{color:var(--fg);font-weight:500;font-size:16px;line-height:1.6;letter-spacing:-.014em}

/* type scale: 13.5 metadata, 16 everything, 24 the statement */
.meta{font-size:13.5px;line-height:1.5;color:var(--fg-3)}
.statement{font-size:24px;line-height:1.35;font-weight:500;letter-spacing:-.024em;color:var(--fg);text-wrap:balance}
.statement span{color:var(--fg-3)}

/* ---------- masthead: centred ---------- */
.mast{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.mark{display:block;width:28px;height:28px;color:var(--fg)}
.word{font-size:22px;font-weight:600;letter-spacing:-.035em;color:var(--fg);line-height:1}
.mast .tag{max-width:26em;text-wrap:balance}

/* ---------- inline links: quiet underline that firms up on hover ---------- */
.u{color:var(--fg);text-decoration:underline;text-decoration-color:var(--rule-2);text-underline-offset:3px;text-decoration-thickness:1px;transition:text-decoration-color .15s var(--ease)}
.u:hover{text-decoration-color:var(--fg)}

/* ---------- rows: one shape for every list ---------- */
.rows{margin:0 -12px}
.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 24px;padding:10px 12px;border-radius:8px;transition:background-color .15s var(--ease)}
a.row:hover,button.row:hover,.row.hov:hover{background:var(--hover)}
.row .t{display:block}
.row .d{display:block;color:var(--fg-2)}
.row .r{color:var(--fg-3);font-size:13.5px;line-height:1.9;white-space:nowrap;font-variant-numeric:tabular-nums}

a.row:hover .ar{transform:translate(2px,-2px)}

/* ---------- the case: a figure and a table that talk to each other ---------- */


.hf svg text,.proto svg text{font-family:var(--font);font-size:11.5px;fill:var(--fg-3);letter-spacing:-.005em}
svg .ax{fill:none;stroke:var(--rule-2);stroke-width:1}
svg .gr{fill:none;stroke:var(--rule);stroke-width:1;stroke-dasharray:2 4}
svg .base{fill:none;stroke:var(--fg-3);stroke-width:1;stroke-dasharray:4 4}
svg .cv{fill:none;stroke:var(--fg);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

svg .pt{fill:var(--bg);stroke:var(--fg);stroke-width:1.6;transition:r .2s var(--ease),stroke .2s var(--ease),fill .2s var(--ease)}
svg .pt.ok{stroke:var(--accent)}
svg .pt.bad{stroke:var(--alert)}
svg .bar{fill:var(--accent);opacity:.85}




svg g[data-v]{transition:opacity .2s var(--ease)}



.case .row{grid-template-columns:96px minmax(0,1fr);align-items:baseline}
.case .row .t{color:var(--fg-3);font-weight:400}
.case .row.on .t{color:var(--fg)}
.case .row.hov{cursor:default}

@media (max-width:560px){.case .row{grid-template-columns:minmax(0,1fr);gap:2px}}

/* ---------- research: rows that open ---------- */
.rs button.row{width:100%;text-align:left;background:none;border:0;font:inherit;color:inherit;cursor:pointer;grid-template-columns:28px minmax(0,1fr) 20px}
.rs .n{color:var(--fg-3);font-size:13.5px;line-height:2.1;font-variant-numeric:tabular-nums}
.rs .chev{color:var(--fg-3);align-self:start;margin-top:4px;transition:transform .25s var(--ease),color .15s var(--ease)}
.rs button[aria-expanded="true"] .chev{transform:rotate(90deg);color:var(--fg)}
.rs .more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ease)}
.rs .more > div{overflow:hidden;min-height:0}
.rs .more.open{grid-template-rows:1fr}
.rs .body{display:block;padding:4px 12px 20px 40px;opacity:0;transform:translateY(-4px);transition:opacity .25s var(--ease),transform .3s var(--ease)}
.rs .more.open .body{opacity:1;transform:none;transition-delay:.05s}
.rs .body li{position:relative;padding-left:14px;color:var(--fg-2);margin-bottom:6px;line-height:1.55}
.rs .body li::before{content:"";position:absolute;left:0;top:.72em;width:5px;height:1px;background:var(--fg-3)}
.rs .g{fill:none;stroke:var(--fg);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}



@media (max-width:560px){.rs .body{padding-left:12px}}

/* ---------- pilot ---------- */


.proto{margin:24px 0 0}
.proto svg{display:block;width:100%;height:auto}
.proto .held{fill:none;stroke:var(--accent)}
.proto .hatch{stroke:var(--accent);stroke-width:1.2}

/* ---------- team and footer ---------- */
.people .row{grid-template-columns:minmax(0,1fr) auto}
.people .r a{color:var(--fg-3);transition:color .15s var(--ease)}
.people .r a:hover{color:var(--fg)}
.people .r a + a{margin-left:14px}
.foot{margin-top:var(--gap);padding-top:24px;border-top:1px solid var(--rule);display:flex;flex-direction:column;gap:12px}
.foot .meta a{text-decoration:underline;text-decoration-color:var(--rule-2);text-underline-offset:3px}
.foot .meta a:hover{color:var(--fg)}
.theme{display:flex;gap:2px;margin-left:-8px}
.theme button{background:none;border:0;color:var(--fg-3);font:inherit;font-size:13.5px;padding:4px 8px;border-radius:6px;cursor:pointer;transition:color .15s var(--ease),background-color .15s var(--ease)}
.theme button:hover{color:var(--fg)}
.theme button[aria-pressed="true"]{color:var(--fg);background:var(--hover)}


/* ---------- motion: small, quick, and only where it explains ---------- */
.js .rise{opacity:0;transform:translateY(8px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.js .rise.in{opacity:1;transform:none}
button:active,.btn:active{transform:scale(.98)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:0s!important;animation:none!important}
  .js .rise{opacity:1;transform:none}
}
@media (max-width:560px){.col{padding-top:64px}:root{--gap:56px}.statement{font-size:22px}}

/* on a phone the figures are about half size, so their labels are set larger to stay readable */
@media (max-width:560px){

  .proto svg text{font-size:17px}
}

/* ---------- cells: quiet microscope scenes ---------- */
.vis{position:relative;border-radius:12px;overflow:hidden;background:var(--vis);box-shadow:0 0 0 1px var(--rule),0 1px 2px rgba(0,0,0,.04);aspect-ratio:16/7.2;margin:0 0 12px}
.vis canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.vis + .meta{margin:-2px 0 14px}
@media (max-width:560px){.vis{aspect-ratio:4/3}}

/* ================= v3: richer case figure, pilot grid, film layer ================= */
body{background:transparent}
.m{font-weight:500;color:var(--fg)}
.foot .inception{display:flex;align-items:center;gap:16px}
.foot .inception img{height:60px;width:auto;flex:none}
.foot .inception p{margin:0}
@media (max-width:560px){.foot .inception{align-items:flex-start}}

/* the case chart */
#casechart{position:relative}


svg .cv2{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.draw{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s var(--ease)}
.in .draw{stroke-dashoffset:0}
svg .dv{fill:none;stroke:var(--rule-2);stroke-dasharray:1 4;stroke-linecap:round}


svg .bx{fill:var(--bg);stroke:var(--alert);stroke-width:1.4}







svg .ch{opacity:0;transition:opacity .15s var(--ease);pointer-events:none}
svg .ch.on{opacity:1}






/* the pilot grid */
.ctl{display:flex;flex-wrap:wrap;gap:12px 28px;margin:28px 0 6px}
.seg{display:flex;align-items:center;gap:2px}
.seg > span{color:var(--fg-3);font-size:13.5px;margin-right:8px}
.seg button{background:none;border:0;color:var(--fg-3);font:inherit;font-size:13.5px;min-width:34px;padding:5px 10px;border-radius:7px;cursor:pointer;font-variant-numeric:tabular-nums;transition:color .15s var(--ease),background-color .15s var(--ease),transform .15s var(--ease)}
.seg button:hover{color:var(--fg)}
.seg button[aria-pressed="true"]{color:var(--fg);background:var(--hover);box-shadow:inset 0 0 0 1px var(--rule-2)}
.seg button:active{transform:scale(.96)}
.proto svg{overflow:visible}
.proto svg text{font-size:11.5px}
.proto .mh{fill:var(--fg-3);transition:opacity .25s var(--ease)}
.proto .mh.off{opacity:0}
.proto .pr{transition:opacity .3s var(--ease)}
.proto .pr.off{opacity:0}
.proto .ho-bg{opacity:0;stroke:none;transition:opacity .3s var(--ease)}
.proto .pr.ho .ho-bg{opacity:.55}
.proto .hatch{stroke:var(--accent);stroke-width:1;opacity:.35}
.proto .vs{stroke:var(--fg-3);stroke-width:1;fill:none}
.proto .vd{fill:var(--bg);stroke:var(--fg);stroke-width:1.2}
.proto .vd.pd{fill:var(--alert);stroke:var(--alert)}
.proto .mc{fill:none;stroke:var(--fg-3);stroke-width:1;stroke-dasharray:2 2.5;transition:opacity .25s var(--ease)}
.proto .mc.off{opacity:0}
.proto .pr.ho .mc{stroke:var(--accent)}
.proto .tg{fill:var(--fg-3)}
.proto .pr.ho .tg{fill:var(--accent)}



/* the research film: a halftone render with an annotation layer on top */
.vis{aspect-ratio:16/8;background:var(--bg)}
.vis canvas.dith{opacity:0;transition:opacity 1.1s var(--ease)}
.vis.film canvas.dith{opacity:1}
.vis.film canvas.cellsc,.vis:not(.film) canvas.dith{display:block}
.vis.film canvas.cellsc{opacity:0}
.vis canvas.cellsc{transition:opacity .8s var(--ease)}
.vis .al{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.vis .al line{stroke:var(--fg-3);stroke-width:1;opacity:0;transition:opacity .7s var(--ease)}
.vis .al circle{fill:none;stroke:var(--fg);stroke-width:1.2;opacity:0;transition:opacity .7s var(--ease)}
.vis .anns{position:absolute;inset:0;pointer-events:none}
.vis .a{position:absolute;font-size:12px;line-height:1.35;color:var(--fg);white-space:nowrap;opacity:0;transform:translateY(3px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.vis .a small{display:block;color:var(--fg-3);font-size:11.5px}
.vis.notes .a{opacity:1;transform:none}
.vis.notes .al line,.vis.notes .al circle{opacity:1}

/* the film layer behind the masthead, as on ibelick.com: it arrives a few seconds in */
.hero-layer{position:absolute;left:0;right:0;top:0;height:100vh;height:100svh;max-height:980px;overflow:hidden;z-index:-1;pointer-events:none;opacity:0;transition:opacity 2s ease;-webkit-mask-image:linear-gradient(to bottom,#000 45%,transparent 100%);mask-image:linear-gradient(to bottom,#000 45%,transparent 100%)}
.hero-layer.on{opacity:.42}
:root[data-theme="dark"] .hero-layer.on{opacity:.55}
.hero-layer canvas{position:absolute;right:-5%;top:0;width:38%;height:64%;display:block}
@media (max-width:1180px){.hero-layer canvas{right:-12%;width:56%;height:56%}}
@media (max-width:900px){.hero-layer canvas{right:-30%;width:130%}.hero-layer.on,:root[data-theme="dark"] .hero-layer.on{opacity:.34}}

/* ================= the case centrepiece ================= */
.hf{position:relative;margin:28px 0 0;width:min(880px,var(--avail));left:50%;transform:translateX(-50%);background:var(--bg);border-radius:18px;box-shadow:0 0 0 1px var(--rule),0 2px 4px rgba(0,0,0,.03),0 24px 60px -24px rgba(0,0,0,.14);overflow:hidden}
:root[data-theme="dark"] .hf{box-shadow:0 0 0 1px var(--rule-2),0 24px 60px -24px rgba(0,0,0,.6)}
.hf-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6.2fr);align-items:stretch}
.hf-render{position:relative;min-height:340px;background:radial-gradient(90% 80% at 40% 40%,var(--vis),var(--bg));border-right:1px solid var(--rule)}
.hf-render canvas{position:absolute;left:0;top:0;width:100%;height:calc(100% - 150px);display:block}
.hf-read{position:absolute;left:24px;bottom:20px;display:flex;flex-direction:column;gap:2px;pointer-events:none}
.hf-read .k{font-size:13.5px;color:var(--fg-3)}
.hf-read .v{font-size:56px;line-height:1;font-weight:500;letter-spacing:-.045em;color:var(--fg);font-variant-numeric:tabular-nums;transition:color .3s var(--ease)}
.hf-read .s{font-size:13.5px;color:var(--fg-3)}
.hf-read .s b{font-weight:500;color:var(--fg-2);font-variant-numeric:tabular-nums}
.hf[data-tone="ok"] .hf-read .v{color:var(--accent)}
.hf[data-tone="bad"] .hf-read .v{color:var(--alert)}
.hf-chart{padding:18px 20px 8px 10px;min-width:0}
.hf-chart svg{display:block;width:100%;height:auto;overflow:visible}
.hf-chart svg text{font-size:12px;fill:var(--fg-3)}
.hf-chart svg .u{fill:var(--fg-3);opacity:.8}
.hf-chart svg .gr{fill:none;stroke:var(--rule);stroke-dasharray:1 4;stroke-linecap:round}
.hf-chart svg .base{fill:none;stroke:var(--fg-3);stroke-width:1;stroke-dasharray:4 4;opacity:.55}
.hf-chart svg .ax{fill:none;stroke:var(--rule-2)}
.hf-chart svg .dv{fill:none;stroke:var(--rule-2);stroke-dasharray:1 4;stroke-linecap:round}
.hf-chart svg .vn{font-size:10.5px;fill:var(--fg-3);transition:fill .25s var(--ease)}
.hf-chart svg .vn.on{fill:var(--fg);font-weight:600}
.hf-chart svg .ghost{fill:none;stroke:var(--fg-3);stroke-width:1.4;stroke-dasharray:1 5;stroke-linecap:round;opacity:.6}
.hf-chart svg .cv{fill:none;stroke:var(--fg);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hf-chart svg .cv2{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round}
.hf-chart svg .rb{fill:var(--rule-2)}
.hf-chart svg .rb.dashed{fill:none;stroke:var(--fg-3);stroke-dasharray:2 3}
.hf-chart svg .rf{fill:var(--accent)}
.hf-chart svg .rf.w{fill:var(--fg-3)}
.hf-chart svg .bx{fill:var(--bg);stroke:var(--alert);stroke-width:1.4}
.hf-chart svg .met{fill:var(--alert);opacity:0;transition:opacity .4s var(--ease)}
.hf-chart svg .met.on{opacity:1}
.hf-chart svg .cl{fill:none;stroke:var(--fg);stroke-width:1;opacity:.35}
.hf-chart svg .hh{fill:var(--fg);opacity:.1;transition:fill .3s var(--ease)}
.hf-chart svg .hd{fill:var(--bg);stroke:var(--fg);stroke-width:2.4;transition:stroke .3s var(--ease)}
.hf-chart svg .hd.s{stroke-width:2}
.hf[data-tone="ok"] svg .hd,.hf[data-tone="ok"] svg .hh{stroke:var(--accent);fill:var(--accent)}
.hf[data-tone="bad"] svg .hd,.hf[data-tone="bad"] svg .hh{stroke:var(--alert);fill:var(--alert)}
.hf[data-tone] svg .hd{fill:var(--bg)}
.hf-story{border-top:1px solid var(--rule)}
.hf-cap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6.2fr);transition:opacity .14s var(--ease),transform .14s var(--ease);min-height:196px}
.hf-cap.sw{opacity:0;transform:translateY(4px)}
.hf-cap .c1,.hf-cap .c2{padding:22px 24px 24px}
.hf-cap .c1{border-right:1px solid var(--rule)}
.hf-cap .k{display:flex;justify-content:space-between;font-size:13.5px;color:var(--fg-3);margin:0 0 10px}
.hf-cap .k b{font-weight:500;color:var(--fg-3)}
.hf-cap .c1 .k b{color:var(--fg)}
.hf-cap h3{font-size:24px;line-height:1.2;letter-spacing:-.025em;margin-bottom:8px}
.hf-cap .c2 h3{font-size:24px;color:var(--fg);margin:0}
.hf-cap p{margin:0}
.hf-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--rule)}
.hf-tabs button{position:relative;display:flex;align-items:baseline;gap:10px;text-align:left;background:none;border:0;color:var(--fg-3);font:inherit;padding:14px 22px;cursor:pointer;transition:color .15s var(--ease),background-color .15s var(--ease)}
.hf-tabs button + button{border-left:1px solid var(--rule)}
.hf-tabs button span{font-size:13.5px;font-variant-numeric:tabular-nums}
.hf-tabs button:hover{color:var(--fg);background:var(--hover)}
.hf-tabs button[aria-pressed="true"]{color:var(--fg)}
.hf-tabs button.done{color:var(--fg-2)}
.hf-tabs button i{position:absolute;left:0;top:-1px;height:2px;width:100%;background:var(--fg);transform-origin:left;transform:scaleX(var(--p,0));transition:transform 4.6s linear}
.hf-tabs button:active{transform:scale(.99)}
.hf figcaption{padding:12px 24px 16px;border-top:1px solid var(--rule)}
@media (max-width:760px){
  .hf{width:var(--avail)}
  .hf-top{grid-template-columns:minmax(0,1fr)}
  .hf-cap{grid-template-columns:minmax(0,1fr)}
  .hf-cap .c1{border-right:0;border-bottom:1px solid var(--rule)}
  .hf-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hf-tabs button:nth-child(3){border-left:0}
  .hf-tabs button:nth-child(n+3){border-top:1px solid var(--rule)}
  .hf-render{min-height:380px;border-right:0;border-bottom:1px solid var(--rule)}
  .hf-read .v{font-size:44px}
  .hf-chart{padding:14px 12px 6px 4px}
  .hf-chart svg text{font-size:12.5px}
}
@media (max-width:560px){.hf-chart svg text{font-size:14px}.hf-chart svg .vn,.hf-chart svg .u{font-size:12px}.hf-chart svg .xs{display:none}.hf-render{min-height:380px}.hf-render canvas{height:calc(100% - 160px)}.hf-read{bottom:14px}}

/* ================= the pilot centrepiece ================= */
.pf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;padding:12px 20px;border-bottom:1px solid var(--rule)}
.pf-run{margin-left:auto;background:var(--fg);color:var(--bg);border:0;border-radius:999px;font:inherit;font-size:13.5px;font-weight:500;padding:7px 16px;cursor:pointer;transition:transform .15s var(--ease),opacity .15s var(--ease)}
.pf-run:hover{opacity:.88}
.pf-run:active{transform:scale(.97)}
.pf-run:disabled{opacity:.55;cursor:default}
.pf .hf-top{grid-template-columns:minmax(0,4.4fr) minmax(0,7fr)}
.pf-chart{padding:16px 22px 10px 16px}
.pf-chart .proto{margin:0}
.pf-chart .proto svg{display:block;width:100%;height:auto;overflow:visible}
.pf-chart .proto svg text{font-size:12px;fill:var(--fg-3)}
.pf-chart .proto .mg{fill:var(--fg-3)}
.pf-chart .proto .mh{fill:var(--fg-3);transition:opacity .25s var(--ease)}
.pf-chart .proto .mh.off{opacity:0}
.pf-chart .proto .ax{fill:none;stroke:var(--rule-2)}
.pf-chart .proto .pr,.pf-chart .proto .gh,.pf-chart .proto .ft{transition:transform .4s var(--ease),opacity .3s var(--ease)}
.pf-chart .proto .pr.off{opacity:0}
.pf-chart .proto .ho-bg{opacity:0;stroke:none;transition:opacity .3s var(--ease)}
.pf-chart .proto .pr.ho .ho-bg{opacity:.55}
.pf-chart .proto .hatch{stroke:var(--alert);stroke-width:1;opacity:.28}
.pf-chart .proto .vs{stroke:var(--fg-3);stroke-width:1;fill:none}
.pf-chart .proto .vd{fill:var(--bg);stroke:var(--fg);stroke-width:1.2}
.pf-chart .proto .vd.pd{fill:var(--alert);stroke:var(--alert)}
.pf-chart .proto .mc{fill:var(--bg);stroke:var(--fg-3);stroke-width:1;stroke-dasharray:2 2.5;transform-box:fill-box;transform-origin:center;transition:fill .25s var(--ease),stroke .25s var(--ease),opacity .25s var(--ease),transform .25s var(--ease)}
.pf-chart .proto .mc.off{opacity:0}
.pf-chart .proto .mc.done{transform:scale(.657);fill:var(--fg);stroke:var(--fg);stroke-dasharray:none}
.pf-chart .proto .pr.ho .mc{stroke:var(--alert)}
.pf-chart .proto .pr.ho .mc.done{transform:scale(.657);fill:var(--alert);stroke:var(--alert)}
.pf-chart .proto .tg{fill:var(--fg-3)}
.pf-chart .proto .pr.ho .tg{fill:var(--alert)}
.pf-cap .c2 h3{max-width:12em}
.pf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--rule)}
.pf-stats div{padding:16px 22px 18px}
.pf-stats div + div{border-left:1px solid var(--rule)}
.pf-stats b{display:block;font-size:24px;line-height:1.2;font-weight:500;letter-spacing:-.025em;color:var(--fg);font-variant-numeric:tabular-nums}
.pf-stats span{display:block;font-size:13.5px;line-height:1.4;color:var(--fg-3);margin-top:2px}
@media (max-width:760px){.pf-bar{padding:12px 14px}.pf-stats div{padding:14px 14px 16px}.pf-stats b{font-size:20px}.pf-chart{padding:12px 10px 6px 6px}.pf .hf-top{grid-template-columns:minmax(0,1fr)}}

.pf-chart .proto .sel-bg{fill:var(--hover);opacity:0;transition:opacity .15s var(--ease)}
.pf-chart .proto .pr{outline:none}
.pf-chart .proto .pr.sel .sel-bg{opacity:1}
.pf-chart .proto .pr.sel text{fill:var(--fg)}
.pf-chart .proto .pr:focus-visible .sel-bg{opacity:1;stroke:var(--fg);stroke-width:1}
.hf-read .s{max-width:19em;line-height:1.4}
.pf .hf-read .s{min-height:2.8em}

/* ================= robustness: reserved space, touch targets, no-script ================= */
/* the charts are built by script: hold their space so nothing moves when they arrive */
#hf-svg{aspect-ratio:520/440}
.pf-chart .proto{aspect-ratio:480/380}
.hf-render canvas,.hero-layer canvas{contain:strict}
@media (pointer:coarse){
  .seg button{min-width:44px;min-height:40px}
  .pf-run{min-height:44px;padding:10px 20px}
  .theme button{min-height:44px;padding:10px 14px}
  .hf-tabs button{min-height:48px}
  .rs .row{min-height:48px}
}
@media (prefers-reduced-data:reduce){.hero-layer{display:none}.hero-layer.on ~ .col,.hero-layer.on ~ .rail{text-shadow:none}}
.pf-run{min-width:132px;text-align:center}
@media (max-width:760px){.pf-bar .pf-run{margin-left:0;flex:1 0 100%}}
#pf-canvas{height:66%}
@media (max-width:560px){#pf-canvas{height:60%}}

/* the pilot grid: groups, run counts, totals and a key */
.pf-chart .proto .gh text{fill:var(--fg);font-weight:500}
.pf-chart .proto .gh .gn{fill:var(--fg-3);font-weight:400}
.pf-chart .proto .gh.ho text{fill:var(--alert)}
.pf-chart .proto .gh.ho .gn{fill:var(--alert);opacity:.8}
.pf-chart .proto .gh.off{opacity:0}
.pf-chart .proto .rn,.pf-chart .proto .tt{font-variant-numeric:tabular-nums}
.pf-chart .proto .pr.full .rn{fill:var(--fg)}
.pf-chart .proto .pr.ho .rn{fill:var(--alert)}
.pf-chart .proto .pr.ho.full .rn{fill:var(--alert)}
.pf-chart .proto .tt{fill:var(--fg-2)}
.pf-chart .proto .tt.off{opacity:0}
.pf-chart .proto .ft > text{fill:var(--fg-3)}
.pf-chart .proto .ky text{fill:var(--fg-3);font-size:11.5px}
.pf-chart .proto .ky .vd{fill:var(--bg);stroke:var(--fg);stroke-width:1.2}
.pf-chart .proto .ky .vd.pd{fill:var(--alert);stroke:var(--alert)}
.pf-chart .proto .kd{fill:var(--fg);stroke:var(--fg)}
@media (max-width:560px){.pf-chart .proto svg text{font-size:14.5px}.pf-chart .proto .ky text{font-size:13px}}

/* ================= pages: title, lede, links ================= */
.title{color:var(--fg);font-size:24px;line-height:1.3;font-weight:500;letter-spacing:-.024em;text-wrap:balance}
.lede{color:var(--fg-2);margin-top:10px}
.lede .t{color:var(--fg)}
.more{margin-top:20px}
a.word{display:block}
@media (max-width:560px){.title{font-size:22px}}

/* ================= the views and the side nav ================= */
.view{display:none}
.view.active{display:block}
.view.enter{animation:viewIn .28s var(--ease)}
html:not(.js) .view{display:block}                /* no script: every view, in order */
@keyframes viewIn{from{opacity:0;transform:translateY(6px)}}
.mast .word{display:block}
.mast .word:hover{opacity:.7}

.rail-btn,.rail-scrim{display:none}
.rail{position:fixed;z-index:20;top:96px;left:max(16px,calc(50% - var(--col) / 2 - 232px));width:168px;display:flex;flex-direction:column;gap:6px;max-height:calc(100vh - 120px);overflow:auto}
.rail a{width:fit-content;color:var(--fg-3);padding:2px 0;transition:color .15s var(--ease)}
.rail a:hover{color:var(--fg)}
.rail a[aria-current]{color:var(--fg)}
@media (min-width:640px) and (max-width:1179px){
  .rail{left:16px;width:104px}
  :root{--avail:calc(100vw - 220px)}
}
@media (min-width:640px) and (max-width:999px){
  body{padding-left:140px}
  :root{--avail:calc(100vw - 160px)}
}
@media (max-width:639px){
  .rail-btn{display:flex;position:fixed;z-index:50;top:10px;left:10px;width:44px;height:44px;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--rule-2);border-radius:12px;cursor:pointer;padding:0}
  .rail-btn span,.rail-btn span::before,.rail-btn span::after{display:block;width:18px;height:1.5px;background:var(--fg);border-radius:1px;transition:transform .2s var(--ease),opacity .2s var(--ease)}
  .rail-btn span{position:relative}
  .rail-btn span::before,.rail-btn span::after{content:"";position:absolute;left:0}
  .rail-btn span::before{top:-6px}
  .rail-btn span::after{top:6px}
  .rail-btn[aria-expanded="true"] span{background:transparent}
  .rail-btn[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
  .rail-btn[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}
  .rail{z-index:40;top:0;bottom:0;left:0;width:min(280px,82vw);max-height:none;padding:72px 28px 28px;gap:2px;background:var(--bg);box-shadow:1px 0 0 var(--rule-2);transform:translateX(-102%);visibility:hidden;transition:transform .28s var(--ease),visibility 0s linear .28s}
  .rail.open{transform:none;visibility:visible;transition:transform .28s var(--ease)}
  .rail a{font-size:18px;padding:11px 0}
  .rail-scrim{display:block;position:fixed;inset:0;z-index:30;background:rgba(0,0,0,.32);opacity:0;pointer-events:none;transition:opacity .28s var(--ease)}
  .rail-scrim.on{opacity:1;pointer-events:auto}
  .col{padding-top:72px}
}
@media (prefers-reduced-motion:reduce){.view.enter{animation:none}.rail,.rail-scrim,.rail-btn span,.rail-btn span::before,.rail-btn span::after{transition:none}}

/* ================= every page fills the window: the footer sits at the bottom ================= */
.col{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
.col > .foot{margin-top:auto}
.col > :nth-last-child(2){margin-bottom:var(--gap)}
.col > .view.active{display:block;margin-bottom:var(--gap)}
.view{flex:none}

/* ================= the case chart: four tracks ================= */
.hf-read .s + .s{margin-top:2px}
.hf-read .s b{font-variant-numeric:tabular-nums}
.refs{margin-top:14px;line-height:1.6}
.hf-chart svg .trk{font-size:11.5px;fill:var(--fg-2);font-weight:500}
.hf-chart svg .tl{font-size:10.5px;fill:var(--fg-3)}
.hf-chart svg .tl.pr{fill:var(--accent)}
.hf-chart svg .tl.pd{fill:var(--alert)}
.hf-chart svg .thr{fill:none;stroke-width:1;stroke-dasharray:4 4}
.hf-chart svg .thr.pr{stroke:var(--accent);opacity:.8}
.hf-chart svg .thr.pd{stroke:var(--alert);opacity:.85}
.hf-chart svg .cv3{fill:none;stroke:var(--fg-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hf-chart svg .cv{stroke-width:2.4}
.hf-chart svg .cv2{stroke-width:1.8}
.hf-chart svg .sm{fill:var(--bg);stroke-width:1.6}
.hf-chart svg .sm.cv{stroke:var(--fg)}
.hf-chart svg .sm.cv3{stroke:var(--fg-2)}
.hf-chart svg .sm.cv2{stroke:var(--accent)}
.hf-chart svg .sm.nd{stroke:var(--accent);stroke-dasharray:2 2}
.hf-chart svg .tick{stroke:var(--fg-3);stroke-width:1;fill:none}
.hf-chart svg .bx.m{stroke:var(--alert);opacity:0;transition:opacity .4s var(--ease)}
.hf-chart svg .bx.m.on{opacity:1}
.hf-chart svg .met{opacity:0;transition:opacity .4s var(--ease)}
.hf-chart svg .met.on{opacity:1;fill:var(--alert)}
.hf-cap{min-height:230px}
@media (max-width:760px){.hf-cap{min-height:0}}
@media (max-width:560px){.hf-chart svg .trk{font-size:15px}.hf-chart svg .tl{font-size:14px}.hf-chart svg .u{font-size:13px}}

/* ================= tablets and landscape phones: stack the figures so the chart has room ================= */
@media (min-width:761px) and (max-width:940px){
  .hf-top,.pf .hf-top{grid-template-columns:minmax(0,1fr)}
  .hf-render{min-height:380px;border-right:0;border-bottom:1px solid var(--rule)}
  .hf-read .v{font-size:44px}
  .hf-chart{padding:14px 12px 6px 4px}
}
@media (max-width:560px){.hf-chart svg .vn{font-size:15px}.pf-chart .proto svg text{font-size:15px}}
@media (max-width:380px){.hf-chart svg text{font-size:14.5px}.hf-chart svg .trk{font-size:16.5px}.hf-chart svg .tl{font-size:15px}.hf-chart svg .vn{font-size:16px}.pf-chart .proto svg text{font-size:16px}}

/* ================= text stays readable over the film: each letter gets a soft halo of the page colour ================= */
/* The halo is the page colour, so it shows only where the film is behind the text. It is costly to draw (six blurred
   shadows per letter), so it is applied only where the film can be: pages that have the film and have it on, and not
   the parts that always sit below it (the film ends 64% of the way down the first screen). */
.hero-layer.on ~ .col,.hero-layer.on ~ .rail{text-shadow:0 0 1px var(--bg),0 0 3px var(--bg),0 0 3px var(--bg),0 0 7px var(--bg),0 0 12px var(--bg),0 0 20px var(--bg)}
.col > .foot,.view > .sec ~ .sec,.case > .hf ~ *{text-shadow:none}
.hf,.vis,.rail-btn,a.row:hover,.row.hov:hover,button.row:hover,.hf-tabs button:hover,.seg button,.theme button,.pf-run{text-shadow:none}

/* the film behind the logo is not shown on phones */
@media (max-width:639px),(max-device-width:520px),(pointer:coarse) and (max-height:500px),(pointer:coarse) and (max-device-height:520px){.hero-layer{display:none}.hero-layer.on ~ .col,.hero-layer.on ~ .rail{text-shadow:none}}

/* benchmarks list on the Research view (the bench page carries its own styles) */
.tag{display:inline-block;font-size:12.5px;line-height:1;padding:5px 9px;border-radius:999px;border:1px solid var(--rule-2);color:var(--fg-2);white-space:nowrap}
.tag.live{border-color:var(--accent);color:var(--accent)}
.bench-row{color:inherit;text-decoration:none}
.bench-row .tag{margin-left:8px;vertical-align:1px}
.announce{line-height:1}
/* the announcement pill on Home: a green badge, the line, and an arrow chip; the border fades from green to the rule colour */
.ann{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:5px 6px 5px 5px;border:.5px solid transparent;border-radius:999px;font-size:14px;line-height:1.2;color:var(--fg);text-shadow:none;
  background:linear-gradient(var(--bg),var(--bg)) padding-box,linear-gradient(100deg,rgba(20,199,101,.9),rgba(20,199,101,.25) 55%,var(--rule-2)) border-box;}
.ann-new{flex:none;display:inline-flex;align-items:center;gap:6px;padding:6px 11px 6px 9px;border-radius:999px;background:#14c765;color:#fff;font-size:12.5px;font-weight:600;line-height:1;letter-spacing:.01em}
.ann-new::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff}
.ann-t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
.ann-more{color:var(--fg-3)}
.ann .go{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hover);color:var(--fg-2);transition:transform .2s var(--ease),background-color .2s var(--ease),color .2s var(--ease)}
.ann .go svg{display:block;width:14px;height:14px}
.ann:hover .go{background:var(--fg);color:var(--bg);transform:translateX(2px)}
@media (max-width:720px){.ann-more{display:none}}
@media (prefers-reduced-motion:reduce){.ann .go{transition:none}}
