/* Kintechs — site styles. Tokens in DESIGN.md. */
:root {
  color-scheme: dark;
  --bg: oklch(0.115 0 0);
  --surface: oklch(0.155 0 0);
  --surface-2: oklch(0.19 0 0);
  --line: oklch(0.27 0 0);
  --line-soft: oklch(0.21 0 0);
  --ink: oklch(0.955 0 0);
  --ink-2: oklch(0.80 0 0);
  --muted: oklch(0.70 0 0);
  --signal: oklch(0.87 0.17 118);
  --signal-ink: oklch(0.16 0.04 118);
  --olive: oklch(0.35 0.075 110);
  --cool: oklch(0.76 0.09 235);
  --amber: oklch(0.82 0.14 78);
  --breach: oklch(0.70 0.19 28);

  --font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: clamp(4.5rem, 9vw, 8rem);
  --r: 6px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  --z-sticky: 10; --z-menu: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--signal); color: var(--signal-ink); padding: var(--s2) var(--s3); z-index: var(--z-menu); }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 114;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; font-variation-settings: "wdth" 108; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; line-height: 1.65; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
section { padding-block: var(--s9); }
section + section { border-top: 1px solid var(--line-soft); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; gap: var(--s6); height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-variation-settings: "wdth" 118; letter-spacing: 0.01em; font-size: 1.1rem; }
.logo svg { width: 22px; height: 22px; }
.nav { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.1rem;
  border-radius: var(--r); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.95rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--muted); background: var(--surface); }
.btn.primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn.primary:hover { background: oklch(0.92 0.15 118); }
.nav .btn { min-height: 38px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r); min-height: 40px; padding: 0 0.8rem; font: inherit; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede { margin-bottom: var(--s6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.status { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: var(--s5); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in oklch, var(--signal) 18%, transparent); }

/* ---------- Panels & charts ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel-title { color: var(--ink); font-weight: 600; font-size: 0.95rem; font-variation-settings: "wdth" 106; }
.panel-title .mono { color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-left: 0.5rem; }
.chips { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 2px; }
.chips button { font: 500 0.75rem var(--font-mono); color: var(--muted); background: none; border: 0; border-radius: 4px; padding: 0.35rem 0.6rem; min-height: 30px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.chart { padding: var(--s4) var(--s4) var(--s2); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.readout div { padding: var(--s3) var(--s4); }
.readout div + div { border-left: 1px solid var(--line-soft); }
.readout dt { font-size: 0.74rem; color: var(--muted); font-family: var(--font-mono); }
.readout dd { margin: 0.15rem 0 0; color: var(--ink); font-family: var(--font-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.readout dd.bad { color: var(--breach); }
.foot { padding: var(--s2) var(--s4) var(--s3); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.legend { display: inline-flex; gap: var(--s4); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }

/* chart primitives */
.ax text { fill: var(--muted); font: 400 10.5px var(--font-mono); }
.ax line, .grid line { stroke: var(--line-soft); stroke-width: 1; }
.ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ln.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line-soft); }
.facts li:last-child { border-bottom: 1px solid var(--line-soft); }
.facts .tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); padding-top: 0.2rem; }
.facts strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }

/* ---------- Modules ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); margin-bottom: var(--s7); flex-wrap: wrap; }
.sec-head p { max-width: 52ch; }
.modules { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: var(--s5); }
.tablist { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font: inherit; padding: var(--s4) var(--s2); cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--s2); transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.tab .mono { font-size: 0.75rem; padding-top: 0.2rem; }
.tab b { display: block; font-weight: 600; color: inherit; font-variation-settings: "wdth" 106; }
.tab small { font-size: 0.86rem; line-height: 1.5; margin-top: 0.2rem; color: var(--muted); }
.tab small { display: none; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); background: linear-gradient(90deg, var(--surface), transparent); }
.tab[aria-selected="true"] .mono { color: var(--signal); }
.tab[aria-selected="true"] small { display: block; }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Metric library ---------- */
.lib-tools { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s4); }
.filter { display: flex; gap: var(--s2); flex-wrap: wrap; }
.filter button { font: 500 0.82rem var(--font-sans); color: var(--muted); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.4rem 0.9rem; min-height: 36px; cursor: pointer; }
.filter button[aria-pressed="true"] { color: var(--signal-ink); background: var(--signal); border-color: var(--signal); }
.count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 680px; }
th, td { text-align: left; padding: 0.8rem var(--s4); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font: 500 0.74rem var(--font-mono); color: var(--muted); background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface); }
td.m { color: var(--ink); font-weight: 560; }
td.m .mono { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
td .cat { font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.cat[data-c="market"] { color: var(--signal); }
.cat[data-c="liquidity"] { color: var(--cool); }
.cat[data-c="stablecoin"] { color: var(--amber); }
.cat[data-c="counterparty"] { color: var(--breach); }
.cat[data-c="flows"] { color: var(--ink-2); }
tr[hidden] { display: none; }

/* ---------- Pipeline ---------- */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); position: relative; margin-top: var(--s7); }
.pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 1.6rem; height: 1px; background: var(--line); }
.pipe::after { content: ""; position: absolute; top: calc(1.6rem - 1px); left: 6%; right: 6%; height: 3px; background: linear-gradient(90deg, transparent, var(--signal), transparent) no-repeat; background-size: 90px 100%; animation: pulse 4.5s linear infinite; }
@keyframes pulse { from { background-position: 0% 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { background-position: 100% 0; opacity: 0; } }
.node { position: relative; }
.node .dot { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; margin-bottom: var(--s4); position: relative; z-index: 1; color: var(--signal); }
.node .dot svg { width: 20px; height: 20px; }
.node h3 { margin-bottom: var(--s2); }
.node p { font-size: 0.92rem; }
.node ul { list-style: none; padding: 0; margin: var(--s3) 0 0; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.node li { padding: 0.15rem 0; }

/* ---------- Report preview ---------- */
.report-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sheet { background: oklch(0.97 0 0); color: oklch(0.22 0 0); border-radius: 4px; padding: var(--s6); box-shadow: 0 30px 80px -30px oklch(0 0 0 / 0.8); transform: rotate(-1.2deg); max-width: 520px; justify-self: center; width: 100%; }
.sheet header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid oklch(0.22 0 0); padding-bottom: var(--s3); margin-bottom: var(--s4); }
.sheet header b { font-variation-settings: "wdth" 116; font-size: 1.05rem; }
.sheet header span { font-family: var(--font-mono); font-size: 0.7rem; color: oklch(0.42 0 0); }
.sheet ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sheet li { counter-increment: s; display: grid; grid-template-columns: 1.8rem 1fr auto; gap: var(--s2); padding: 0.55rem 0; border-bottom: 1px solid oklch(0.86 0 0); font-size: 0.88rem; }
.sheet li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.72rem; color: oklch(0.45 0 0); padding-top: 0.15rem; }
.sheet li span { font-family: var(--font-mono); font-size: 0.72rem; color: oklch(0.45 0 0); }
.sheet .mini { margin-top: var(--s4); }
.sheet .mini svg .ln { stroke: oklch(0.3 0 0); }
.sheet small { display: block; margin-top: var(--s3); font-family: var(--font-mono); font-size: 0.66rem; color: oklch(0.45 0 0); }
.checks { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); }
.checks li { padding: 0.55rem 0 0.55rem 1.6rem; position: relative; border-bottom: 1px solid var(--line-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; border: 1.5px solid var(--signal); border-radius: 2px; }

/* ---------- Access / founder ---------- */
.access { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.access h2 { margin-bottom: var(--s4); }
.founder { padding: var(--s5); }
.founder .who { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.founder .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--olive); color: var(--signal); display: grid; place-items: center; font-weight: 700; font-variation-settings: "wdth" 116; }
.founder b { color: var(--ink); display: block; }
.founder .role { font-size: 0.85rem; color: var(--muted); }
.founder p { font-size: 0.93rem; margin-bottom: var(--s4); }
.links { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 0.9rem; }
.links a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.links a:hover { text-decoration-color: var(--signal); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding-block: var(--s6) var(--s7); font-size: 0.85rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.site-foot nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.disclaimer { max-width: 62ch; }

/* ---------- Doc pages (methodology, report) ---------- */
.doc-hero { padding-block: clamp(3rem, 6vw, 5rem) var(--s7); border-bottom: 1px solid var(--line-soft); }
.doc-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: var(--s4); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: var(--s8); }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 0.9rem; padding: 0.35rem 0 0.35rem var(--s3); border-left: 1px solid var(--line-soft); }
.toc a:hover { color: var(--ink); border-left-color: var(--muted); }
.doc article > section { padding-block: 0 var(--s8); border: 0; }
.doc article > section + section { border-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: var(--s4); scroll-margin-top: 88px; }
.doc p { max-width: 70ch; margin-bottom: var(--s4); }
.spec { display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--line-soft); margin: var(--s5) 0; max-width: 820px; }
.spec dt, .spec dd { padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.spec dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 0.95rem; }
.formula { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--s4); margin: var(--s4) 0; overflow-x: auto; white-space: nowrap; }
.doc .panel { margin: var(--s5) 0; max-width: 820px; }
.note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .modules, .report-band, .access { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .pipe::before, .pipe::after { display: none; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--s2); }
  .toc a { border-left: 0; border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.3rem 0.8rem; }
  .sheet { transform: none; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s2) 1rem var(--s4); }
  .nav.open { display: flex; }
  .nav a { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav .btn { margin-top: var(--s3); justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .readout { grid-template-columns: 1fr; }
  .readout div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .pipe { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: var(--s1); }
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ln.draw { stroke-dashoffset: 0; }
  .pipe::after { display: none; }
}

/* ===================== v2: live data components ===================== */
.up { color: var(--signal); }
.down { color: var(--breach); }
html:not(.ready) [data-k] { color: var(--muted); }

/* Ticker strip under the header */
.ticker { border-bottom: 1px solid var(--line-soft); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker .wrap { display: flex; gap: var(--s6); align-items: center; height: 40px; white-space: nowrap; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.ticker b { color: var(--ink); font-weight: 500; margin-left: 0.4rem; }
.ticker .sep { width: 1px; height: 14px; background: var(--line); }
.ticker .stamp { margin-left: auto; }

/* Coverage line */
.coverage { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); padding-top: var(--s6); margin-top: var(--s7); border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--muted); }
.coverage b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; margin-right: 0.35rem; }

/* Tooltip */
.chart { position: relative; }
.tip { position: absolute; top: 10px; z-index: 5; pointer-events: none; background: oklch(0.13 0 0 / 0.96); border: 1px solid var(--line); border-radius: var(--r); padding: 0.5rem 0.65rem; font: 400 0.74rem var(--font-mono); color: var(--ink-2); min-width: 170px; box-shadow: 0 12px 30px -12px oklch(0 0 0 / 0.7); }
.tip b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.3rem; }
.tip span { display: flex; align-items: center; gap: 0.45rem; }
.tip i { width: 8px; height: 2px; display: inline-block; }
.tip em { margin-left: auto; font-style: normal; color: var(--ink); padding-left: 0.8rem; }
.guide { stroke: oklch(0.45 0 0); stroke-width: 1; stroke-dasharray: 2 3; }
.cell { font: 500 13px var(--font-mono); }

/* Data tables */
.dt { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.dt th, .dt td { padding: 0.65rem var(--s4); border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.dt thead th { font: 500 0.72rem var(--font-mono); color: var(--muted); background: transparent; position: static; }
.dt th[scope=row], .dt thead th:first-child, .dt td:first-child { text-align: left; color: var(--ink); font-weight: 560; }
.dt tbody tr:last-child th, .dt tbody tr:last-child td { border-bottom: 0; }
.dt tr.total th, .dt tr.total td { border-top: 1px solid var(--line); }
.dt .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.55rem; vertical-align: 1px; }
.panel .scroll { overflow-x: auto; }

/* Monitor dashboard */
.dash-head { padding-block: var(--s7) var(--s5); display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.dash-nav { position: sticky; top: 64px; z-index: 9; background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.dash-nav .wrap { display: flex; gap: var(--s5); overflow-x: auto; height: 46px; align-items: center; scrollbar-width: none; }
.dash-nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
.dash-nav a:hover { color: var(--ink); }
.group { padding-block: var(--s7); border-top: 1px solid var(--line-soft); scroll-margin-top: 120px; }
.group > .wrap > h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: var(--s2); }
.group > .wrap > p { max-width: 70ch; margin-bottom: var(--s5); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--s4); }
.grid2 .panel { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); background: var(--surface); margin-bottom: var(--s4); }
.kpis div { padding: var(--s3) var(--s4); border-right: 1px solid var(--line-soft); }
.kpis div:last-child { border-right: 0; }
.kpis dt { font: 400 0.72rem var(--font-mono); color: var(--muted); }
.kpis dd { margin: 0.2rem 0 0; font: 500 1.15rem var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.src { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

/* Brief */
.brief { max-width: 760px; }
.brief p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); margin-bottom: var(--s4); }
.brief-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: var(--s5); }
.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.archive a { display: grid; grid-template-columns: 7rem 1fr auto auto; gap: var(--s4); padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink-2); font-size: 0.92rem; }
.archive a:hover { color: var(--ink); }
.archive .mono { color: var(--signal); }

/* Status */
.state { font-family: var(--font-mono); font-size: 0.76rem; }
.state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.45rem; vertical-align: 1px; }
.state.ok::before { background: var(--signal); }
.state.stale::before { background: var(--amber); }

/* Team / collaborate */
.team { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); padding: var(--s5); }
.person .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--olive); color: var(--signal); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; font-variation-settings: "wdth" 116; }
.person h3 { font-size: 1.2rem; }
.person .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); margin: 0.2rem 0 var(--s3); display: block; }
.person p { font-size: 0.94rem; margin-bottom: var(--s3); }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); }
.roles li:first-child { border-top: 1px solid var(--line-soft); }
.roles b { color: var(--ink); display: block; font-weight: 600; }
.roles span { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .archive a { grid-template-columns: 1fr auto; }
  .archive a span:nth-child(2) { display: none; }
  .person { grid-template-columns: 1fr; }
}
