/* MANANA project page
   Editorial-clinical: warm paper, ink type, ochre accent, teal for "handled", EEG motif. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f3ef;
  --card: #ffffff;
  --ink: #1b1e1c;
  --text: #393c38;
  --muted: #72746d;
  --hair: #e7e3db;
  --hair-2: #d3ccbf;
  --accent: #b0502a;
  --accent-ink: #8f3e1e;
  --accent-soft: #f3e0d2;
  --teal: #1d5c58;
  --teal-ink: #164845;
  --teal-soft: #d9eae6;
  --teal-pale: #f0f7f5;
  --defer: #c9bfae;
  --wrong: #c97a52;
  --code-bg: #f8f7f4;
  --figure-bg: #ffffff;
  --shadow: 0 1px 2px rgba(27, 30, 28, .04), 0 12px 32px -20px rgba(27, 30, 28, .22);
  --display: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --measure: 760px;
  --wide: 1120px;
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, header, footer, nav { position: relative; z-index: 1; }

a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
b, strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
sub { font-size: .72em; }

.container { width: min(var(--measure), 100% - 32px); margin-inline: auto; }
.container.wide { width: min(var(--wide), 100% - 32px); }

/* ---------------- sticky nav ---------------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
  transform: translateY(-100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.topnav.show { transform: none; }
.topnav .inner { width: min(var(--wide), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 18px; height: 56px; }
.topnav .brand { font: 600 19px/1 var(--display); color: var(--ink); letter-spacing: .02em; font-variant: small-caps; white-space: nowrap; }
.topnav .sections { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.topnav .sections::-webkit-scrollbar { display: none; }
.topnav .sections a { font: 500 13.5px/1 var(--body); color: var(--muted); padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.topnav .sections a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.topnav .sections a.active { color: var(--ink); background: var(--paper-2); }
.topnav .mini { display: flex; gap: 6px; }
.topnav .mini a { font: 500 12.5px/1 var(--body); color: var(--paper); background: var(--ink); padding: 8px 12px; border-radius: 999px; }
.topnav .mini a:hover { text-decoration: none; opacity: .88; }
@media (max-width: 760px) { .topnav .mini { display: none; } }

/* ---------------- header ---------------- */
.hero { padding: 64px 0 18px; text-align: center; }
.title { margin: 0 auto; max-width: 980px; color: var(--ink); font-family: var(--display); font-weight: 400; }
.title .name {
  display: block; font-size: clamp(54px, 9vw, 104px); line-height: .95; font-weight: 500;
  letter-spacing: .01em; font-variant: small-caps; font-optical-sizing: auto;
}
.title .name i { font-style: normal; color: var(--accent); }
.title .sub {
  display: block; margin-top: 16px; font-size: clamp(23px, 3.2vw, 36px); line-height: 1.18;
  font-style: italic; font-weight: 300; text-wrap: balance;
}



.authors { margin: 16px auto 0; max-width: 900px; font-size: clamp(16px, 1.9vw, 18.5px); color: var(--ink); line-height: 1.8; }
.authors .a { display: inline-block; margin: 0 9px; white-space: nowrap; }
.authors a { color: var(--ink); border-bottom: 1px solid var(--hair-2); }
.authors a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.authors sup { color: var(--muted); font-size: .66em; margin-left: 1px; }
.affil { margin: 8px auto 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.affil span { display: inline-block; margin: 0 8px; }
.affil sup { font-size: .72em; }
.eq { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border-radius: 999px;
  font: 500 15px/1 var(--body); color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* headline numbers */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 44px auto 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.stat { padding: 20px 18px 18px; text-align: left; position: relative; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat .num { font: 400 clamp(36px, 4.4vw, 50px)/1 var(--display); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.stat .num small { font-size: .42em; color: var(--muted); font-family: var(--body); letter-spacing: 0; margin-left: 4px; }
.stat .lbl { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.stat .lbl span { color: var(--muted); }
.stat.hot .num { color: var(--teal); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* ---------------- figures ---------------- */
figure { margin: 0; }
.fig {
  background: var(--figure-bg); border: 1px solid var(--hair); border-radius: 14px; padding: clamp(10px, 2vw, 22px);
  box-shadow: var(--shadow);
}
.fig img { display: block; width: 100%; height: auto; }
figcaption { margin: 14px auto 0; max-width: 900px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
figcaption b { color: var(--ink); }
.teaser { padding: 40px 0 8px; }

/* ---------------- sections ---------------- */
.sec { padding: 76px 0 8px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.kicker .n { color: var(--muted); }
h2 { margin: 0 0 18px; font: 400 clamp(32px, 4.4vw, 46px)/1.08 var(--display); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
h2 em { color: var(--accent); }
h3 { margin: 34px 0 10px; font: 500 22px/1.25 var(--display); color: var(--ink); }
h4 { margin: 0 0 6px; font: 600 15px/1.3 var(--body); color: var(--ink); }
.lede { font-size: 19px; line-height: 1.6; color: var(--text); }
p { margin: 0 0 16px; }
.abstract p { text-align: justify; hyphens: auto; }
.abstract p::first-letter { font: 400 3.3em/0.8 var(--display); float: left; margin: 6px 10px 0 0; color: var(--accent); }

/* TL;DR three-step band */
.arc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; border: 1px solid var(--hair); border-radius: 16px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.arc > div { padding: 24px 24px 22px; position: relative; }
.arc > div + div { border-left: 1px solid var(--hair); }
.arc .step { font: 500 12px/1 var(--mono); color: var(--accent-ink); letter-spacing: .12em; }
.arc h4 { font: 500 21px/1.2 var(--display); margin: 10px 0 8px; }
.arc p { font-size: 15px; line-height: 1.55; margin: 0; }
@media (max-width: 820px) { .arc { grid-template-columns: 1fr; } .arc > div + div { border-left: 0; border-top: 1px solid var(--hair); } }

/* failure-mode grid */
.audit-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 22px; font-size: 14.5px; color: var(--muted); }
.audit-meta b { font: 400 26px/1 var(--display); color: var(--ink); margin-right: 6px; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mode { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 16px 16px 14px; }
.mode .lens { display: inline-block; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: var(--teal-ink); background: var(--teal-soft); padding: 5px 8px; border-radius: 6px; margin-top: 10px; }
.mode p { font-size: 14.5px; line-height: 1.5; margin: 0; }
.quote {
  margin: 28px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0;
  font: 400 20px/1.5 var(--display); font-style: italic; color: var(--ink);
}
.quote cite { display: block; margin-top: 10px; font: 400 13.5px/1.4 var(--body); font-style: normal; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin-top: 30px; }
.split .fig { padding: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; counter-reset: role; }
.role { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 20px; position: relative; }
.role .tag { display: block; font: 500 24px/1.1 var(--display); color: var(--ink); margin-bottom: 8px; }
.role h4 { font: 500 24px/1.1 var(--display); margin: 8px 0 8px; }
.role p { font-size: 15px; line-height: 1.55; margin: 0; }
.role .io { margin-top: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }

.quorum {
  margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 20px 24px;
}
.quorum .q { font: 400 54px/1 var(--display); color: var(--accent); }
.quorum p { margin: 0; font-size: 15.5px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 88%, transparent); }
.quorum b { color: var(--paper); }

.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.variant { border: 1px solid var(--hair); border-radius: 14px; padding: 20px; background: var(--card); }
.variant h4 { font: 500 22px/1.1 var(--display); margin-bottom: 4px; }
.variant .what { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.variant p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--ink); background: var(--paper); }
@media (max-width: 720px) { .variants { grid-template-columns: 1fr; } }

/* BPA formula strip */
.formula {
  margin: 20px 0 0; padding: 18px 22px; border: 1px dashed var(--hair-2); border-radius: 12px; background: var(--card);
  font: 400 clamp(15px, 2vw, 19px)/1.6 var(--display); color: var(--ink); text-align: center; overflow-x: auto;
}
.formula .var { font-style: italic; }
.formula small { display: block; font: 400 13px/1.5 var(--body); color: var(--muted); margin-top: 6px; }

/* ---------------- tabs (artifacts) ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%; }
.tabs button {
  font: 500 14px/1 var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 10px 15px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button.ours[aria-selected="true"] { background: var(--teal); color: #fff; }
.tabs button.ours::after { content: " ●"; color: var(--teal); font-size: 9px; vertical-align: 2px; }
.tabs button.ours[aria-selected="true"]::after { color: #fff; }
@media (max-width: 640px) { .tabs { border-radius: 16px; } }

.panel { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel[hidden] { display: none; }
.verdict h4 { font: 500 24px/1.15 var(--display); margin: 2px 0 10px; }
.verdict p { font-size: 15px; line-height: 1.55; }
.verdict .kind { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .l-drug { background: var(--teal-soft); border: 1px solid var(--teal); }
.legend .l-unsup { background: var(--accent-soft); border: 1px solid var(--accent); }
.artifact {
  background: var(--code-bg); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px;
  font: 400 13.5px/1.65 var(--mono); color: var(--ink); max-height: 460px; overflow: auto; position: relative;
}
.artifact ol, .artifact ul { margin: 0; padding-left: 22px; }
.artifact li { margin: 0 0 10px; padding-left: 4px; }
.artifact li::marker { color: var(--muted); }
.artifact pre { margin: 0; white-space: pre-wrap; font: inherit; }
.artifact .drug { background: var(--teal-soft); color: var(--teal-ink); border-radius: 3px; padding: 0 2px; }
.artifact .unsup { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; padding: 0 2px; border-bottom: 1px dotted var(--accent); }
.agents { display: grid; gap: 10px; }
.agent { background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--teal); border-radius: 10px; padding: 12px 14px; }
.agent .nm { font: 600 12.5px/1.2 var(--mono); color: var(--teal-ink); margin-bottom: 6px; }
.agent p { margin: 0; font: 400 13.5px/1.6 var(--body); color: var(--text); }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; } .artifact { max-height: 380px; } }

/* ---------------- tables ---------------- */
.seg { display: inline-flex; border: 1px solid var(--hair-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--card); }
.seg button { font: 500 14px/1 var(--body); color: var(--muted); border: 0; background: transparent; padding: 9px 15px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.toolbar .note { font-size: 13.5px; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; padding: 12px 16px 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--hair); }
th, td { padding: 9px 12px; text-align: center; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font: 600 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair); }
thead tr.grp th { font: 500 15px/1.2 var(--display); text-transform: none; letter-spacing: 0; color: var(--ink); padding-top: 14px; }
thead tr.grp th.lined { border-bottom: 1px solid var(--hair-2); }
tbody tr.cat td { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding: 7px 12px; text-align: left; }
tbody td { border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); color: var(--text); }
tbody tr.ours td { background: var(--teal-pale); color: var(--ink); }
tbody tr.ours td:first-child { font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); }
td .sd { font-size: .74em; color: var(--muted); margin-left: 2px; }
td .v { display: inline-block; padding: 1px 5px; border-radius: 5px; }
td.best .v { font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 35%, transparent); }
td .bar { display: block; height: 3px; margin-top: 4px; background: var(--hair); border-radius: 2px; overflow: hidden; }
td .bar i { display: block; height: 100%; background: var(--hair-2); }
tr.ours td .bar i { background: var(--teal); }

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.mini { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 18px; }
.mini .big { font: 400 40px/1 var(--display); color: var(--teal); }
.mini .big small { font-size: .45em; color: var(--muted); font-family: var(--body); }
.mini h4 { margin-top: 10px; }
.mini p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--text); }
.mini .ci { font: 400 12.5px/1.4 var(--mono); color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------------- deferral explorer ---------------- */
.defer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; background: var(--card); border: 1px solid var(--hair); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); margin-top: 22px; }
.defer .controls { display: flex; flex-direction: column; gap: 16px; }
.defer .label { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ops { display: grid; gap: 6px; }
.ops button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; text-align: left;
  font: 400 14.5px/1.2 var(--body); color: var(--text); background: transparent; border: 1px solid var(--hair); border-radius: 10px; padding: 11px 14px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ops button:hover { border-color: var(--hair-2); background: var(--paper); }
.ops button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-pale); color: var(--ink); }
.ops button .p, .ops button .c { font: 500 13px/1 var(--mono); color: var(--muted); }
.ops button[aria-pressed="true"] .p { color: var(--teal-ink); }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.readout .r { border-radius: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--hair); }
.readout .r .v { font: 400 46px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.readout .r.prec .v { color: var(--teal); }
.readout .r .k { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.defer .sentence { font: 400 18px/1.5 var(--display); color: var(--ink); margin: 0; }
.defer .fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
@media (max-width: 860px) { .defer { grid-template-columns: 1fr; padding: 18px; } }

/* ---------------- evidence cards ---------------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.check { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.check .tag { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.check h4 { font: 500 21px/1.2 var(--display); margin: 0; }
.check p { font-size: 14.5px; line-height: 1.55; margin: 0; }
.cmp { display: grid; gap: 7px; margin-top: 4px; }
.cmp .row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 42px; gap: 10px; align-items: center; font-size: 13px; }
.cmp .row span:first-child { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .track { height: 9px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.cmp .track i { display: block; height: 100%; background: var(--hair-2); border-radius: 5px; width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.cmp .row.us .track i { background: var(--teal); }
.cmp .row.us span { color: var(--ink); font-weight: 600; }
.cmp .row b { font: 500 13px/1 var(--mono); color: var(--ink); text-align: right; }
.check .src { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------------- limitations ---------------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.limit { border-top: 2px solid var(--ink); padding-top: 14px; }
.limit h4 { font: 500 20px/1.2 var(--display); margin-bottom: 8px; }
.limit p { font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }
.notice { margin-top: 18px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-size: 15px; line-height: 1.55; }

/* ---------------- bibtex ---------------- */
.bib { position: relative; }
.bib pre { margin: 0; padding: 20px 22px; background: var(--ink); color: var(--paper); border-radius: 14px; font: 400 13.5px/1.6 var(--mono); overflow-x: auto; }
.bib .copy {
  position: absolute; top: 12px; right: 12px; font: 500 12.5px/1 var(--body); color: var(--ink); background: var(--paper);
  border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer;
}
.bib .copy:hover { background: var(--accent); color: #fff; }

/* ---------------- footer ---------------- */
footer { margin-top: 70px; border-top: 1px solid var(--hair); padding: 34px 0 50px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; }
footer h4 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
footer p { margin: 0 0 8px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* content is always visible; no scroll-triggered hiding */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .authors .a { margin: 0 6px; }
  .sec { padding-top: 60px; }
  .stat { padding: 16px 12px; }
  .lede { font-size: 17.5px; }
  .abstract p { text-align: left; }
  .cmp .row { grid-template-columns: 96px minmax(0, 1fr) 40px; }
}

/* phone: keep method names visible while the table scrolls */
@media (max-width: 720px) {
  #main-table th:first-child, #main-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--hair); }
  #main-table tr.ours td:first-child { background: var(--teal-pale); box-shadow: inset 3px 0 0 var(--teal), 1px 0 0 var(--hair); }
  #main-table tr.cat td:first-child { background: var(--paper-2); }
  .seg button span { display: none; }
}

/* ================= Geist typography pass ================= */
body { font-size: 16.5px; line-height: 1.65; letter-spacing: -0.003em; }
.title .name { font-variant: normal; font-weight: 700; letter-spacing: -0.045em; font-size: clamp(56px, 9vw, 100px); }
.title .sub { font-style: normal; font-weight: 400; letter-spacing: -0.02em; color: var(--text); font-size: clamp(21px, 2.8vw, 30px); line-height: 1.25; }
h2 { font-weight: 650; letter-spacing: -0.03em; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
h2 em { font-style: normal; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.stat .num { font-weight: 600; letter-spacing: -0.04em; }
.role .tag, .variant h4, .verdict h4, .check h4 { font-weight: 600; letter-spacing: -0.02em; }
.role .tag { font-size: 20px; }
.variant h4 { font-size: 20px; }
.verdict h4 { font-size: 21px; }
.check h4 { font-size: 18px; }
.readout .r .v { font-weight: 600; letter-spacing: -0.04em; font-size: 42px; }
.abstract p::first-letter { all: unset; }
.lede { font-size: 18px; }
.defer .sentence { font: 500 16px/1.5 var(--body); margin: 14px 0 0; }
figcaption { font-size: 14px; }
.kicker { letter-spacing: .12em; }

/* ================= results table ================= */
#main-table { font-size: 15.5px; }
#main-table th, #main-table td { padding: 12px 18px; }
#main-table td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
#main-table td.na { color: var(--muted); font-weight: 400; }
#main-table td .v { padding: 3px 8px; }
#main-table thead th { font-size: 12.5px; }
#main-table thead tr.grp th { font: 600 14px/1.2 var(--body); }

/* ================= native charts ================= */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { font: 400 11.5px var(--mono); fill: var(--muted); }
.chart .axis text.lab { font: 500 12px var(--body); fill: var(--text); }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .base { stroke: var(--hair-2); stroke-width: 1; }
.chart .diag { stroke: var(--hair-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.chart .ser { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .ser.multi { stroke: var(--teal); stroke-width: 3; }
.chart .ser.single { stroke: #9aa3a0; stroke-dasharray: 6 5; }
.chart .pt { stroke: #fff; stroke-width: 1.6; }
.chart .pt.multi { fill: var(--teal); }
.chart .pt.single { fill: #9aa3a0; }
.chart .mark { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.chart .mark-rule { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.chart .mark-lab { font: 600 13px var(--body); fill: var(--accent-ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.chart .hover-rule { stroke: var(--ink); stroke-width: 1; opacity: .25; }
.chart .tip rect { fill: var(--ink); }
.chart .tip text { font: 500 12px var(--mono); fill: #fff; }
.chart path.ser { transition: d .45s ease; }
.clegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.clegend span { display: inline-flex; align-items: center; gap: 8px; }
.clegend .ln { width: 22px; height: 0; border-top: 3px solid var(--teal); display: inline-block; }
.clegend .ln.single { border-top: 2.5px dashed #9aa3a0; }
.clegend .ln.diag { border-top: 1.5px dashed var(--hair-2); }
.clegend .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); display: inline-block; }
.defer #defer-chart { margin-top: 16px; }
.calib { margin-top: 22px; background: var(--card); border: 1px solid var(--hair); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); }
.calib-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 12px; }
.calib-head h3 { margin: 0; font-size: 19px; }
.calib-head p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 320px; }
.calib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ctitle { font: 600 13px var(--body); color: var(--ink); margin: 0 0 4px 44px; }
.chart.sq { max-width: 440px; }
@media (max-width: 720px) { .calib-grid { grid-template-columns: 1fr; } .calib { padding: 18px; } }
.topnav .brand { font-variant: normal; font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
.chart.sq { max-width: 380px; width: 100%; }
.calib-grid > div { display: flex; flex-direction: column; align-items: center; }
.calib-grid .ctitle { align-self: stretch; max-width: 380px; margin-inline: auto; padding-left: 44px; }
#main-table tr.ours.first td { border-top: 2px solid var(--teal); }

/* ===== bigger charts ===== */
.defer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.defer-plot { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding-top: 18px; }
.defer #defer-chart { margin-top: 0; }
.chart .axis text { font-size: 14px; }
.chart .axis text.lab { font-size: 15px; font-weight: 600; }
.chart .ser { stroke-width: 3.2; }
.chart .ser.multi { stroke-width: 4; }
.chart .ser.single { stroke-dasharray: 8 6; }
.chart .diag { stroke-width: 2; }
.chart .mark-lab { font-size: 16px; }
.chart .tip text { font-size: 14px; }
.chart.sq { max-width: 560px; }
.calib-grid .ctitle { max-width: 560px; font-size: 16px; padding-left: 64px; }
.calib-head h3 { font-size: 22px; }
.clegend { font-size: 15px; gap: 8px 24px; margin-top: 14px; }
.clegend .ln { width: 28px; border-top-width: 4px; }
.clegend .dot { width: 13px; height: 13px; }
@media (max-width: 860px) { .defer-plot { grid-column: auto; } .calib-grid .ctitle { padding-left: 46px; } }

/* ===== equal contribution ===== */
.authors sup .eqm { color: var(--accent); font-weight: 800; font-size: 1.15em; }
.eq { margin-top: 10px; }
.eqbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
.eqbadge b { color: var(--accent); font-weight: 800; font-size: 16px; }

/* ================= readability pass: larger type everywhere ================= */
:root { --measure: 880px; --wide: 1180px; }
body { font-size: 18px; line-height: 1.7; }
p { margin-bottom: 18px; }
.lede { font-size: 20.5px; line-height: 1.6; }
.kicker { font-size: 13.5px; }
h2 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 20px; }

.authors { font-size: clamp(18px, 2.1vw, 21px); }
.affil { font-size: 16.5px; }
.eqbadge { font-size: 16px; padding: 7px 16px; }
.btn { font-size: 16.5px; padding: 13px 22px; }
.btn svg { width: 18px; height: 18px; }
.stat .num { font-size: clamp(40px, 4.8vw, 56px); }
.stat .lbl { font-size: 16px; line-height: 1.5; }
figcaption { font-size: 16.5px; line-height: 1.6; max-width: 960px; }

.abstract p { font-size: 19px; line-height: 1.8; text-align: left; hyphens: manual; color: var(--ink); }

.role { padding: 24px; }
.role .tag { font-size: 23px; }
.role p { font-size: 17.5px; line-height: 1.6; }
.variant { padding: 24px; }
.variant h4 { font-size: 23px; }
.variant .what { font-size: 17px; margin-bottom: 14px; }
.chip { font-size: 14px; padding: 7px 11px; }

.tabs button { font-size: 16.5px; padding: 12px 18px; }
.panel { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; }
.verdict .kind { font-size: 13px; }
.verdict h4 { font-size: 25px; }
.verdict p { font-size: 17.5px; line-height: 1.6; }
.legend { font-size: 15px; }
.artifact { font-size: 15px; line-height: 1.7; padding: 22px 24px; max-height: 560px; }
.agent { padding: 14px 18px; }
.agent .nm { font-size: 14.5px; }
.agent p { font-size: 16px; line-height: 1.65; }

.toolbar .note { font-size: 15px; }
.seg button { font-size: 16px; padding: 11px 18px; }
#main-table { font-size: 19px; }
#main-table th, #main-table td { padding: 16px 24px; }
#main-table thead th { font-size: 14px; }
#main-table thead tr.grp th { font-size: 17px; }
#main-table td:first-child { font-weight: 500; }

.defer { padding: 32px; gap: 32px; }
.defer .label { font-size: 13.5px; margin-bottom: 10px; }
.ops button { font-size: 17px; padding: 14px 16px; }
.ops button .p, .ops button .c { font-size: 15px; }
.readout .r { padding: 18px 20px; }
.readout .r .v { font-size: 52px; }
.readout .r .k { font-size: 15.5px; line-height: 1.45; }
.defer .sentence { font-size: 19px; line-height: 1.5; }
.defer .fine { font-size: 14.5px; }
.chart .axis text { font-size: 15px; }
.chart .axis text.lab { font-size: 16px; }
.chart .mark-lab { font-size: 17px; }
.chart .tip text { font-size: 15px; }
.clegend { font-size: 16px; }
.calib { padding: 30px 32px; }
.calib-head h3 { font-size: 24px; }
.calib-head p { font-size: 16.5px; }
.calib-grid .ctitle { font-size: 17px; }

.check { padding: 26px; gap: 14px; }
.check .tag { font-size: 13.5px; }
.check h4 { font-size: 23px; }
.cmp { gap: 12px; }
.cmp .row { grid-template-columns: 180px minmax(0, 1fr) 56px; font-size: 16px; }
.cmp .row b { font-size: 16px; }
.cmp .track { height: 12px; border-radius: 6px; }
.check .src { font-size: 14.5px; }
.notice { font-size: 17.5px; padding: 18px 22px; }

.bib pre { font-size: 15.5px; line-height: 1.65; padding: 24px 26px; }
.bib .copy { font-size: 14px; padding: 9px 15px; }
footer { font-size: 16px; }
.topnav .inner { height: 62px; }
.topnav .sections a { font-size: 15.5px; padding: 9px 12px; }
.topnav .mini a { font-size: 14px; padding: 9px 14px; }
.topnav .brand { font-size: 20px; }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .lede { font-size: 18.5px; }
  .abstract p { font-size: 17.5px; }
  #main-table { font-size: 17px; }
  #main-table th, #main-table td { padding: 13px 14px; }
  .defer { padding: 20px; }
  .readout .r .v { font-size: 42px; }
  .cmp .row { grid-template-columns: 128px minmax(0, 1fr) 48px; font-size: 15px; }
  .check { padding: 20px; }
  .stat .lbl { font-size: 15px; }
}
/* equal contribution: subtle */
.authors sup .eqm { color: var(--accent); font-weight: 600; font-size: 1em; }
.eq { margin-top: 6px; font-size: 15px; color: var(--muted); }
.eq .eqm { color: var(--accent); font-weight: 600; margin-right: 2px; }

/* ===== abstract: PANINI-style centered column ===== */
.abstract { width: min(780px, 100% - 32px); padding-top: 64px; }
.abs-title { text-align: center; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 18px; }
.abstract p { font-size: 17px; line-height: 1.72; color: #4a4a4a; text-align: justify; hyphens: auto; -webkit-hyphens: auto; margin: 0; }
.abstract p b { color: #2a2a2a; font-weight: 600; }
@media (max-width: 560px) { .abstract p { font-size: 16.5px; text-align: left; } .abs-title { font-size: 28px; } }

/* ===== PANINI-style section headers: centered title, narrow centered intro ===== */
.sec > .kicker { display: none; }
.sec > h2 { text-align: center; font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 860px; margin: 0 auto 14px; }
.sec > p:not(.notice) { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; font-size: 17px; line-height: 1.7; color: #4a4a4a; }
.sec > .lede { margin-bottom: 26px; }
.sec .tabs { margin-left: auto; margin-right: auto; }
.sec .toolbar { max-width: 100%; }
.sec .notice { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; font-size: 16px; }
.sec { padding-top: 72px; }

/* ===== venue badge ===== */
.venue-wrap { margin: 0 0 24px; }
.venue {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px;
  font: 500 15px/1 var(--body); color: var(--ink); letter-spacing: 0;
  background: linear-gradient(90deg, var(--accent-soft), #eef6f3);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 6px 20px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.venue b { font-weight: 700; color: var(--accent-ink); }
.vdot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.vdot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: vpulse 2.2s ease-out infinite; }
@keyframes vpulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }

/* ===== live EEG ===== */
.eeg-wrap { position: relative; width: min(760px, 100%); margin: 26px auto 8px; padding: 6px 0; cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.eeg { display: block; width: 100%; height: 70px; overflow: visible; }
.eeg path { fill: none; stroke: url(#eeg-grad); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.eeg-hint { position: absolute; right: 0; bottom: -10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .55; transition: opacity .4s; pointer-events: none; }
.eeg-wrap:hover .eeg-hint, .eeg-wrap.touched .eeg-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .vdot::after { animation: none; }
  .eeg-hint { display: none; }
}

/* ===== badge under the wave ===== */
.venue-wrap { margin: 6px 0 22px; }

/* ===== clinic: map + facts ===== */
.place { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.map-card { position: relative; background: linear-gradient(180deg, #f3f7f8, #eef3f2); border-right: 1px solid var(--hair); }
.map { width: 100%; aspect-ratio: 1000 / 1080; max-height: 640px; }
.map svg { display: block; width: 100%; height: 100%; }
.map .c { fill: #e7e2d8; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .3s; }
.map .c:hover { fill: #ddd6c9; }
.map .c.ug { fill: var(--accent); stroke: #fff; stroke-width: 1.6; }
.map .lake { fill: #c9dfe6; stroke: #b6d1da; stroke-width: .8; vector-effect: non-scaling-stroke; }
.map .pin .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.map .pin .pulse { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: mpulse 2.4s ease-out infinite; }
@keyframes mpulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.map .klab { font-family: var(--body); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.map .ulab { font-family: var(--body); font-weight: 700; letter-spacing: .18em; fill: #fff; opacity: 0; pointer-events: none; }
.map .vlab { font-family: var(--body); font-style: italic; font-weight: 500; fill: #4f7f8c; opacity: 0; pointer-events: none; }
.map-tools { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--hair); backdrop-filter: blur(6px); }
.map-tools button { font: 500 14px/1 var(--body); border: 0; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.map-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-credit { position: absolute; right: 12px; bottom: 8px; font: 400 11px var(--mono); color: var(--muted); opacity: .7; }
.place-facts { padding: 34px 34px 30px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.pf-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--body); color: var(--accent-ink); }
.pin-ico { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.pf-grid b { display: block; font: 650 44px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.pf-grid span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.4; color: var(--text); }
.pf-note { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } .map-card { border-right: 0; border-bottom: 1px solid var(--hair); } .map { max-height: 460px; } .place-facts { padding: 24px; } .pf-grid b { font-size: 36px; } }

/* ===== walkthrough ===== */
.demo { margin-top: 22px; border: 1px solid var(--hair); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); padding: 28px 30px 22px; }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 24px; }
.demo-head h3 { margin: 0 0 6px; font-size: 24px; }
.demo-disclaimer { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pipe { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.pipe button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: 500 15.5px/1.2 var(--body); color: var(--muted); background: var(--paper-2); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .25s; position: relative; overflow: hidden; }
.pipe .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--hair-2); font: 600 13px var(--mono); color: var(--muted); flex: none; }
.pipe button.done { color: var(--text); }
.pipe button.done .n { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.pipe button.on { background: var(--ink); color: #fff; }
.pipe button.on .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 22px; align-items: start; min-height: 330px; }
.note { border-radius: 14px; padding: 20px 22px; background: #fbfaf7; border: 1px solid var(--hair); position: relative; transition: box-shadow .3s, border-color .3s; }
.note.focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.note-tag { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.note h4 { margin: 0 0 8px; font-size: 18px; }
.note p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.note-q { font-size: 14.5px; color: var(--accent-ink); font-weight: 500; border-top: 1px dashed var(--hair-2); padding-top: 12px; }
.stage { animation: stin .45s ease both; }
@keyframes stin { from { opacity: .0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-title { font: 600 20px/1.25 var(--body); color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.st-p { font-size: 16.5px; line-height: 1.6; color: var(--text); margin: 0 0 18px; }
.st-foot { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; }
.st-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-chain span { font: 500 14px var(--mono); padding: 8px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.st-chain i { width: 22px; height: 2px; background: var(--hair-2); }
.spec-list { display: grid; gap: 9px; }
.spec { border-left: 3px solid var(--teal); background: var(--teal-pale); border-radius: 10px; padding: 11px 14px; animation: stin .45s ease both; animation-delay: var(--d); }
.spec-n { font: 600 13px var(--mono); color: var(--teal-ink); margin-bottom: 3px; }
.spec-o { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.votes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.vote { border-radius: 12px; padding: 10px 8px; text-align: center; color: #fff; animation: stin .4s ease both; animation-delay: var(--d); }
.vote .m { display: block; font: 500 13px var(--mono); opacity: .85; }
.vote .r { display: block; font: 700 15px var(--body); margin-top: 3px; }
.rg-cbz { background: #1d5c58; } .rg-cbz-lev { background: #4f8f86; } .rg-vpa { background: #8b9b97; }
.rg-vpa-lev { background: #b0502a; } .rg-vpa-cbz { background: #d38a5f; } .rg-lev { background: #7d6b5d; }
.dist { display: grid; gap: 10px; }
.drow { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 15.5px; }
.drow .dn { color: var(--text); }
.drow.top .dn { color: var(--ink); font-weight: 600; }
.drow .dt { height: 14px; background: var(--paper-2); border-radius: 7px; overflow: hidden; }
.drow .dt i { display: block; height: 100%; border-radius: 7px; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.drow .dp { font: 600 15px var(--mono); color: var(--ink); text-align: right; }
.gauge { margin: 4px 0 18px; }
.gbar { position: relative; height: 18px; background: var(--paper-2); border-radius: 9px; }
.gbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9px; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
.gbar i.ok { background: var(--teal); } .gbar i.low { background: var(--accent); }
.gbar b { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.glab { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.glab b { color: var(--ink); font-family: var(--mono); }
.verdict-card { border-radius: 14px; padding: 18px 20px; animation: stin .5s ease .2s both; }
.verdict-card.vc-ok { background: var(--teal-pale); border: 1px solid var(--teal); }
.verdict-card.vc-defer { background: var(--accent-soft); border: 1px solid var(--accent); }
.verdict-card .vk { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.verdict-card.vc-ok .vk { color: var(--teal-ink); } .verdict-card.vc-defer .vk { color: var(--accent-ink); }
.verdict-card .vt { font: 600 20px/1.3 var(--body); color: var(--ink); margin: 6px 0 8px; }
.verdict-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.demo-ctl { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.demo-ctl .ctl { font: 500 15px var(--body); border: 1px solid var(--hair-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-width: 44px; }
.demo-ctl .ctl:hover { border-color: var(--ink); }
.demo-ctl .play { min-width: 90px; }
@media (max-width: 860px) {
  .demo { padding: 20px; }
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .votes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .vote .r { font-size: 12.5px; }
  .drow { grid-template-columns: minmax(0, 1fr) 90px 42px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .map .pin .pulse, .stage, .spec, .vote, .drow .dt i, .gbar i, .verdict-card { animation: none; }
}

/* ===== how it works: native diagram + scroll steps ===== */
.hiw { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; margin-top: 10px; }
.hiw-sticky { position: sticky; top: 86px; background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 18px 20px 16px; box-shadow: var(--shadow); }
.hiw-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.hiw-top .seg button { font-size: 14px; padding: 8px 14px; }
.hiw-dots { display: flex; gap: 6px; }
.hiw-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--hair); transition: background .3s; }
.hiw-dots i.on { background: var(--accent); }
.hiw-dots i.done { background: var(--teal); }
.hiw-svg { display: block; width: 100%; height: auto; }
.hiw-svg text { font-family: var(--body); }
.hiw-svg .zone { font: 600 11px var(--mono); letter-spacing: .12em; fill: var(--muted); }
.hiw-svg .div { stroke: var(--hair); stroke-dasharray: 4 6; }
.hiw-svg .n rect { fill: #fff; stroke: var(--hair-2); stroke-width: 1.5; transition: stroke .35s, fill .35s; }
.hiw-svg .nt { font-size: 17px; font-weight: 650; fill: var(--ink); text-anchor: middle; letter-spacing: -0.01em; }
.hiw-svg .nt.sm { font-size: 13px; font-weight: 600; }
.hiw-svg .ns { font-size: 11.5px; fill: var(--muted); text-anchor: middle; }
.hiw-svg .ns.left { text-anchor: start; font-size: 12px; }
.hiw-svg .e { fill: none; stroke: #d6cfc2; stroke-width: 2; marker-end: url(#ah); transition: stroke .3s; }
.hiw-svg .elab { font-size: 11px; font-style: italic; fill: var(--muted); }
.hiw-svg :is(.n, .cands, .rx, .buf, .dep, .elab)[data-s] { opacity: .36; transition: opacity .45s; }
.hiw-svg .cands rect { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1; }
.hiw-svg .cands text { font-size: 10px; font-weight: 600; fill: var(--teal-ink); text-anchor: middle; }
.hiw-svg .rx rect { fill: var(--ink); }
.hiw-svg .rx text { font-size: 11.5px; font-weight: 600; fill: #fff; text-anchor: middle; }
.hiw-svg .bufbox { fill: #faf8f4; stroke: var(--hair-2); stroke-dasharray: 5 5; }
.hiw-svg .card { opacity: 0; transition: opacity .35s; }
.hiw-svg .card rect { fill: #fff; stroke: var(--hair-2); transition: fill .35s, stroke .35s; }
.hiw-svg .card text { font-size: 9.5px; font-family: var(--mono); fill: var(--muted); text-anchor: middle; }
.hiw.ge3 .hiw-svg .card { opacity: 1; }
.hiw.ge3 .hiw-svg .c2 { transition-delay: .12s } .hiw.ge3 .hiw-svg .c3 { transition-delay: .24s }
.hiw.ge3 .hiw-svg .c4 { transition-delay: .36s } .hiw.ge3 .hiw-svg .c5 { transition-delay: .48s } .hiw.ge3 .hiw-svg .c6 { transition-delay: .6s }
.hiw[data-stage="4"] .hiw-svg .card:not(.match) { opacity: .35; }
.hiw[data-stage="4"] .hiw-svg .card.match rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; }
.hiw[data-stage="4"] .hiw-svg .card.match text { fill: var(--accent-ink); font-weight: 600; }
.hiw-svg .quorum { font-size: 12.5px; font-weight: 650; fill: var(--accent); text-anchor: middle; opacity: 0; transition: opacity .4s .3s; }
.hiw[data-stage="4"] .hiw-svg .quorum { opacity: 1; }
.hiw-svg .mem rect { fill: var(--teal-pale) !important; }
.hiw-svg .mem circle { fill: var(--teal); }
.hiw-svg .mem .plus { opacity: 0; transition: opacity .4s .5s; }
.hiw.ge4 .hiw-svg .mem .plus { opacity: 1; }
.hiw-svg .mem text.plus { fill: var(--teal-ink); font-weight: 600; }
.hiw.mode-single .hiw-svg .mem-multi, .hiw.mode-multi .hiw-svg .mem-single { display: none; }
.hiw-svg .chips rect { fill: var(--teal-pale); stroke: var(--teal); }
.hiw-svg .chips text { font-size: 14px; font-weight: 600; fill: var(--teal-ink); text-anchor: middle; }
.hiw-svg .bars text { font-size: 11.5px; fill: var(--text); }
.hiw-svg .bars text.v { font-family: var(--mono); fill: var(--ink); }
.hiw-svg .bars .tr { fill: var(--paper-2); }
.hiw-svg .bars .b1 { fill: var(--teal); } .hiw-svg .bars .b2, .hiw-svg .bars .b3 { fill: var(--hair-2); }
.hiw-svg .bars .b1, .hiw-svg .bars .b2, .hiw-svg .bars .b3 { transform-box: fill-box; transform-origin: left; }
.hiw[data-stage="5"] .hiw-svg .bars :is(.b1, .b2, .b3) { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.hiw-svg .pill.ok rect { fill: var(--teal); } .hiw-svg .pill.ok text { fill: #fff; }
.hiw-svg .pill.df rect { fill: #fff; stroke: var(--accent); stroke-width: 1.5; } .hiw-svg .pill.df text { fill: var(--accent-ink); }
.hiw-svg .pill text { font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.hiw[data-stage="5"] .hiw-svg .bpa rect { stroke: var(--accent); stroke-width: 2.2; fill: #fff8f3; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.hiw[data-stage="0"] .hiw-svg [data-s~="0"]{opacity:1}
.hiw[data-stage="0"] .hiw-svg .e[data-s~="0"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="0"] .hiw-svg .n.key[data-s~="0"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw[data-stage="1"] .hiw-svg [data-s~="1"]{opacity:1}
.hiw[data-stage="1"] .hiw-svg .e[data-s~="1"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="1"] .hiw-svg .n.key[data-s~="1"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw[data-stage="2"] .hiw-svg [data-s~="2"]{opacity:1}
.hiw[data-stage="2"] .hiw-svg .e[data-s~="2"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="2"] .hiw-svg .n.key[data-s~="2"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw[data-stage="3"] .hiw-svg [data-s~="3"]{opacity:1}
.hiw[data-stage="3"] .hiw-svg .e[data-s~="3"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="3"] .hiw-svg .n.key[data-s~="3"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw[data-stage="4"] .hiw-svg [data-s~="4"]{opacity:1}
.hiw[data-stage="4"] .hiw-svg .e[data-s~="4"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="4"] .hiw-svg .n.key[data-s~="4"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw[data-stage="5"] .hiw-svg [data-s~="5"]{opacity:1}
.hiw[data-stage="5"] .hiw-svg .e[data-s~="5"]{stroke:var(--accent);marker-end:url(#ah-on);stroke-dasharray:6 6;animation:flow .8s linear infinite}
.hiw[data-stage="5"] .hiw-svg .n.key[data-s~="5"] rect{stroke:var(--accent);stroke-width:2.2;fill:#fff8f3}
.hiw-steps { padding: 6vh 0 10vh; }
.hiw-step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .4s; cursor: pointer; }
.hiw-step:last-child { min-height: 46vh; }
.hiw-step.on { opacity: 1; }
.hiw-step .hs-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--hair-2); font: 600 14px var(--mono); color: var(--muted); margin-bottom: 14px; transition: all .3s; }
.hiw-step.on .hs-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.hiw-step h3 { margin: 0 0 10px; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.hiw-step p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text); max-width: 440px; }
.hiw-cap, .hiw-ctl { display: none; }
.hiw-pdf { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .hiw { grid-template-columns: 1fr; gap: 0; }
  .hiw-steps { display: none; }
  .hiw-sticky { position: static; padding: 14px 14px 16px; }
  .hiw-cap { display: block; min-height: 132px; margin-top: 12px; }
  .hiw-cap h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
  .hiw-cap p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
  .hiw-ctl { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
  .hiw-ctl .ctl { font: 500 15px var(--body); border: 1px solid var(--hair-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; min-width: 44px; }
  .hiw-ctl .play { min-width: 90px; }
  .hiw-svg .nt { font-size: 19px; } .hiw-svg .ns { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw .hiw-svg .e { animation: none !important; }
  .hiw .hiw-svg .bars :is(.b1, .b2, .b3) { animation: none !important; }
}

@media (max-width: 900px) {
  .hiw-svg { aspect-ratio: 5 / 4; }
}

/* ===== how it works: self-playing loop on every screen (no pinned scroll), larger ===== */
.hiw { display: block; }
.hiw-steps { display: none !important; }
.hiw-sticky { position: static; max-width: 1060px; margin: 0 auto; padding: 22px 28px 22px; }
.hiw-svg { max-width: 1000px; margin: 0 auto; }
.hiw-svg .nt { font-size: 18px; }
.hiw-svg .ns { font-size: 12.5px; }
.hiw-svg .zone { font-size: 11.5px; }
.hiw-svg .cands text, .hiw-svg .card text { font-size: 10.5px; }
.hiw-svg .rx text, .hiw-svg .bars text, .hiw-svg .pill text { font-size: 12.5px; }
.hiw-cap { display: block; max-width: 760px; margin: 18px auto 0; min-height: 118px; text-align: center; }
.hiw-cap h3 { margin: 0 0 8px; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.hiw-cap p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); }
.hiw-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.hiw-ctl .ctl { font: 500 16px var(--body); border: 1px solid var(--hair-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px; min-width: 48px; cursor: pointer; }
.hiw-ctl .ctl:hover { border-color: var(--ink); }
.hiw-ctl .play { min-width: 100px; }
.hiw-top .seg button { font-size: 15px; padding: 9px 16px; }
.hiw-dots i { width: 30px; height: 5px; }
.hiw-pdf { display: block; text-align: center; margin-top: 12px; font-size: 14px; }
@media (max-width: 900px) {
  .hiw-sticky { padding: 14px 14px 16px; }
  .hiw-cap { text-align: left; min-height: 150px; }
  .hiw-cap h3 { font-size: 20px; } .hiw-cap p { font-size: 16px; }
  .hiw-svg .nt { font-size: 19px; } .hiw-svg .ns { font-size: 13px; }
}
@media (max-width: 900px) { .hiw-dots { gap: 4px; } .hiw-dots i { width: 16px; height: 4px; } }
.hiw-top { flex-wrap: wrap; }
.agent .nm, .spec-n { overflow-wrap: anywhere; } .artifact, .agent { min-width: 0; }
@media (max-width: 860px) { .panel { grid-template-columns: minmax(0, 1fr); } }
.hiw-svg { overflow: hidden; }

/* ===== movie feel: particles, progress, staging ===== */
.hiw-svg .pkt { fill: var(--accent); }
.hiw-svg .e { transition: stroke .6s ease; }
.hiw[data-stage] .hiw-svg [data-s] { transition: opacity .7s ease; }
/* dashes behave like a scrub bar */
.hiw-dots i { position: relative; overflow: hidden; cursor: pointer; height: 6px; border-radius: 3px; background: var(--hair); }
.hiw-dots i.on { background: var(--hair); }
.hiw-dots i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; }
.hiw-dots i.on::after { width: var(--p, 0%); }
.hiw-dots i.done::after { width: 100%; background: var(--teal); }
.hiw.paused .hiw-dots i.on::after { background: var(--hair-2); }
/* caption crossfade */
.hiw-cap { transition: opacity .22s ease, transform .22s ease; }
.hiw-cap.fade { opacity: 0; transform: translateY(4px); }
/* step 2: regimens appear one by one */
.hiw-svg .cands rect, .hiw-svg .cands text { opacity: 0; transition: opacity .45s ease; }
.hiw.ge1 .hiw-svg .cands rect, .hiw.ge1 .hiw-svg .cands text { opacity: 1; }
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(1) { transition-delay: .5s; }
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(2) { transition-delay: 1.1s; }
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(3) { transition-delay: 1.7s; }
/* step 3: the prescription drops in */
.hiw-svg .rx { transform: translateY(-16px); transition: transform .8s cubic-bezier(.2,.7,.2,1) .3s, opacity .7s; }
.hiw.ge2 .hiw-svg .rx { transform: none; }
/* step 4: lessons arrive slowly */
.hiw.ge3 .hiw-svg .c1 { transition-delay: .3s } .hiw.ge3 .hiw-svg .c2 { transition-delay: .7s } .hiw.ge3 .hiw-svg .c3 { transition-delay: 1.1s }
.hiw.ge3 .hiw-svg .c4 { transition-delay: 1.5s } .hiw.ge3 .hiw-svg .c5 { transition-delay: 1.9s } .hiw.ge3 .hiw-svg .c6 { transition-delay: 2.3s }
/* step 5: match → quorum → memory grows */
.hiw[data-stage="4"] .hiw-svg .card rect { transition-delay: .5s; }
.hiw[data-stage="4"] .hiw-svg .quorum { transition-delay: 1.5s; }
.hiw.ge4 .hiw-svg .mem .plus { transition-delay: 2.6s; }
/* step 6: chips light up, bars grow, recommend pulses */
.hiw-svg .chips rect { transition: fill .4s ease, stroke .4s ease; }
.hiw:not([data-stage="5"]) .hiw-svg .chips rect { fill: #fff; }
.hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(2) { transition-delay: .2s } .hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(3) { transition-delay: .4s }
.hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(4) { transition-delay: .6s } .hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(5) { transition-delay: .8s }
.hiw[data-stage="5"] .hiw-svg .bars :is(.b1, .b2, .b3) { animation-delay: 1.3s; animation-duration: 1.4s; }
.hiw-svg .pill.ok { transform-box: fill-box; transform-origin: center; }
.hiw[data-stage="5"] .hiw-svg .pill.ok { animation: okpulse 1.4s ease 3s 2; }
@keyframes okpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .hiw .hiw-svg * { transition-delay: 0s !important; animation: none !important; }
  .hiw-svg .pkt { display: none; }
}
/* fixed caption height so the page never jumps between steps */
.hiw-cap { height: 150px; min-height: 0; overflow: hidden; }
@media (max-width: 900px) { .hiw-cap { height: 236px; } }
@media (max-width: 380px) { .hiw-cap { height: 270px; } }

/* ===== video player bar ===== */
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 18px auto 0; max-width: 980px; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 16px; background: #fbfaf7; }
.pp { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.pp:hover { transform: scale(1.06); background: var(--accent); }
.pp svg { width: 18px; height: 18px; fill: currentColor; }
.pp .i-play { display: none; margin-left: 2px; }
.hiw.paused .pp .i-play { display: block; } .hiw.paused .pp .i-pause { display: none; }
.tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; cursor: pointer; touch-action: none; user-select: none; outline: none; padding: 6px 0; }
.tl:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-radius: 10px; }
.tseg { all: unset; display: flex; flex-direction: column; gap: 7px; cursor: pointer; min-width: 0; }
.tseg .bar { position: relative; height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.tseg .bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); border-radius: 4px; }
.tseg.done .bar i { background: var(--teal); }
.hiw.paused .tseg.on .bar i { background: var(--hair-2); }
.tseg .lab { font: 500 13.5px/1 var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.tseg.on .lab { color: var(--ink); font-weight: 650; }
.tseg:hover .bar { background: var(--hair-2); }
.hiw.scrubbing .tseg .bar i { transition: none; }
.cnt { font: 600 14px var(--mono); color: var(--ink); min-width: 44px; text-align: right; }
.hiw-svg { cursor: pointer; }
.hiw-cap { margin-top: 14px; height: 132px; }
@media (max-width: 900px) {
  .player { gap: 10px; padding: 10px 10px; }
  .pp { width: 40px; height: 40px; }
  .tl { gap: 4px; }
  .tseg .lab { font-size: 11px; }
  .cnt { display: none; }
  .hiw-cap { height: 236px; }
}
@media (max-width: 380px) { .tseg .lab { display: none; } .hiw-cap { height: 270px; } }

/* faster in-step sequencing to match the quicker pace */
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(1) { transition-delay: .25s; }
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(2) { transition-delay: .55s; }
.hiw.ge1 .hiw-svg .cands :is(rect, text):nth-of-type(3) { transition-delay: .85s; }
.hiw-svg .rx { transition: transform .6s cubic-bezier(.2,.7,.2,1) .15s, opacity .5s; }
.hiw.ge3 .hiw-svg .c1 { transition-delay: .15s } .hiw.ge3 .hiw-svg .c2 { transition-delay: .4s } .hiw.ge3 .hiw-svg .c3 { transition-delay: .65s }
.hiw.ge3 .hiw-svg .c4 { transition-delay: .9s } .hiw.ge3 .hiw-svg .c5 { transition-delay: 1.15s } .hiw.ge3 .hiw-svg .c6 { transition-delay: 1.4s }
.hiw[data-stage="4"] .hiw-svg .card rect { transition-delay: .3s; }
.hiw[data-stage="4"] .hiw-svg .quorum { transition-delay: .9s; }
.hiw.ge4 .hiw-svg .mem .plus { transition-delay: 1.5s; }
.hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(2) { transition-delay: .1s } .hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(3) { transition-delay: .2s }
.hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(4) { transition-delay: .3s } .hiw[data-stage="5"] .hiw-svg .chips rect:nth-of-type(5) { transition-delay: .4s }
.hiw[data-stage="5"] .hiw-svg .bars :is(.b1, .b2, .b3) { animation-delay: .7s; animation-duration: 1s; }
.hiw[data-stage="5"] .hiw-svg .pill.ok { animation: okpulse 1s ease 1.9s 2; }
.hiw[data-stage] .hiw-svg [data-s] { transition: opacity .45s ease; }
@media (max-width: 900px) {
  .tseg .lab { visibility: hidden; overflow: visible; text-overflow: clip; font-size: 12px; }
  .tseg.on .lab { visibility: visible; }
}
/* equal contribution: outlined pill, ink text, small accent asterisk */
.eq { margin: 10px 0 0; }
.eq-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--hair-2); border-radius: 999px; font: 500 15px/1.2 var(--body); color: var(--ink); background: transparent; }
.eq-pill .eqm { color: var(--accent); font-weight: 700; margin: 0; }
/* co-first authors: a clearly visible star after each name */
.authors .eqs { color: var(--accent); font-weight: 700; font-size: .78em; margin-left: 3px; position: relative; top: -0.35em; }
.eq-pill .eqm { font-size: 1.05em; }
.authors .eqs { font-size: .66em; top: -0.45em; margin-left: 2px; }
.eq-pill .eqm { font-size: .92em; }
