/* ==========================================================================
   Shahzaib Imam — candidate performance report
   One stylesheet. No build step. Tokens first, then base, then components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Neutrals: a true off-white tinted a hair toward the signal hue (33),
     ink tinted toward a cool blue-black (268) for contrast with vermilion. */
  --bg:          oklch(0.986 0.003 33);
  --surface:     oklch(0.962 0.006 33);
  --rule:        oklch(0.885 0.007 268);
  --rule-strong: oklch(0.72 0.012 268);
  --ink:         oklch(0.205 0.032 268);
  --ink-2:       oklch(0.40 0.024 268);
  --ink-3:       oklch(0.52 0.018 268);

  /* Signal: vermilion, the red pen. Large type and graphics only;
     --signal-deep carries small text on light backgrounds. */
  --signal:      oklch(0.635 0.215 33);
  --signal-deep: oklch(0.515 0.19 31);
  --signal-wash: oklch(0.945 0.032 33);

  /* Night: dark sections share the ink hue. */
  --night:       oklch(0.205 0.032 268);
  --night-2:     oklch(0.265 0.034 268);
  --on-night:    oklch(0.955 0.006 268);
  --on-night-2:  oklch(0.80 0.014 268);
  --night-meta:  oklch(0.72 0.014 268);
  --night-line:  oklch(1 0 0 / 0.14);
  --night-line-soft: oklch(1 0 0 / 0.1);
  --night-dot:   oklch(1 0 0 / 0.22);
  --terminal:    oklch(0.15 0.03 268);
  --ok:          oklch(0.82 0.13 150);

  /* Shadow */
  --shadow-menu: 0 18px 40px -20px oklch(0.2 0.03 268 / 0.45);
  --shadow-deep: 0 40px 80px -40px oklch(0 0 0 / 0.7);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs:   0.8125rem;   /* 13px meta */
  --text-sm:   0.9375rem;   /* 15px secondary */
  --text-base: 1.0625rem;   /* 17px body */
  --text-lg:   clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl:  clamp(2.6rem, 1.6rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 1.2rem + 7.4vw, 6rem);

  /* Space: 4pt base */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 76rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* quint */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers */
  --z-sticky: 20;
  --z-header: 30;
  --z-skip: 50;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.04; text-wrap: balance; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s-3); top: var(--s-3); z-index: var(--z-skip);
  background: var(--ink); color: var(--bg); padding: var(--s-2) var(--s-4);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 3.25rem; padding: 0 var(--s-5);
  font: 650 1rem/1 var(--font); font-stretch: 105%; letter-spacing: 0.005em;
  text-decoration: none; border: 2px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--on-night); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 220ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.link {
  color: inherit; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  text-decoration-color: var(--signal);
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}
.link:hover { color: var(--signal-deep); text-decoration-color: currentColor; }

/* ---------- Header ---------- */
@media (max-width: 480px) { .hide-sm { display: none; } }
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header--on-signal { background: var(--signal); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--on-signal.is-scrolled { background: color-mix(in oklch, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 4.25rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark__mark { width: 0.7rem; height: 0.7rem; background: var(--ink); transform: rotate(45deg); flex: none; }
.site-header:not(.site-header--on-signal) .wordmark__mark,
.site-header--on-signal.is-scrolled .wordmark__mark { background: var(--signal); }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__links { display: flex; gap: var(--s-5); }
.nav__links a {
  position: relative; text-decoration: none; font-weight: 550; font-size: var(--text-sm);
  padding-block: var(--s-2);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 2.6rem; padding: 0 var(--s-4); font-size: var(--text-sm); }
.nav__menu { display: none; }
/* Six links plus two buttons: below 1100px the Email button goes (it is in the menu and footer) and gaps tighten. */
.nav__links a, .nav__roles summary, .nav .btn { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav, .nav__links { gap: var(--s-4); }
  .nav .btn--ghost { display: none; }
}

/* Roles menu (desktop): one page per role the candidate is open to */
.nav__roles { position: relative; }
.nav__roles summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 550; font-size: var(--text-sm); padding-block: var(--s-2);
}
.nav__roles summary::-webkit-details-marker { display: none; }
.nav__roles summary::after {
  content: ""; width: 0.42rem; height: 0.42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.nav__roles[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.nav__roles.is-current summary { text-decoration: underline 2px; text-underline-offset: 0.4em; }
.nav__panel {
  position: absolute; left: calc(var(--s-4) * -1); top: calc(100% + var(--s-3)); width: 21rem;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-menu);
}
.nav__panel a { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); text-decoration: none; font-weight: 750; border-bottom: 1px solid var(--rule); }
.nav__panel a::after { display: none; }
.nav__panel a span { font-family: var(--mono); font-size: var(--text-xs); font-weight: 400; color: var(--ink-2); }
.nav__panel a:last-child { border-bottom: 0; }
.nav__panel a:hover, .nav__panel a[aria-current="page"] { background: var(--signal-wash); }

.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--signal); transform: scaleX(var(--progress, 0)); transform-origin: left;
}
.site-header--on-signal:not(.is-scrolled) .progress { background: var(--ink); }

@media (max-width: 900px) {
  .nav__links, .nav .btn--ghost { display: none; }
  .nav__menu { display: block; position: relative; }
  .nav__menu summary {
    list-style: none; cursor: pointer; font-weight: 600; font-size: var(--text-sm);
    border: 2px solid currentColor; min-height: 2.6rem; padding: 0 var(--s-4);
    display: inline-flex; align-items: center;
  }
  .nav__menu summary::-webkit-details-marker { display: none; }
  .nav__menu[open] summary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .nav__menu nav {
    position: absolute; right: 0; top: calc(100% + var(--s-2)); min-width: 16rem;
    max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); color: var(--ink); border: 2px solid var(--ink);
    box-shadow: var(--shadow-menu);
  }
  .nav__menu nav a {
    display: block; padding: var(--s-3) var(--s-4); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid var(--rule);
  }
  .nav__menu nav a:last-child { border-bottom: 0; }
  .nav__menu .menu__label { padding: var(--s-3) var(--s-4) var(--s-1); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); }
  .nav__menu nav a.menu__sub { padding-left: var(--s-6); font-weight: 550; }
  .nav__menu nav a:hover, .nav__menu nav a[aria-current="page"] { background: var(--signal-wash); }
}
/* Smallest phones: the CV button moves into the menu so the bar fits. */
@media (max-width: 360px) {
  .site-header__bar { gap: var(--s-3); }
  .nav .btn { display: none; }
}

/* ---------- Hero (drenched) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--signal); color: var(--ink);
  padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0;
}
.hero__grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-8); } }
.hero__masthead {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.02em;
  padding-bottom: var(--s-4); margin-bottom: var(--s-6);
  border-bottom: 2px solid var(--ink);
}
.hero__masthead span { white-space: nowrap; }
@media (max-width: 640px) { .hero__masthead span { white-space: normal; } }
@media (max-width: 640px) { .hero__masthead span:first-child, .hero__masthead span:last-child { display: none; } }
.hero__title {
  font-size: var(--text-hero); font-weight: 900; font-stretch: 80%; word-spacing: 0.08em;
  line-height: 0.92; letter-spacing: -0.025em; text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { margin-top: var(--s-6); max-width: 40rem; font-size: var(--text-lg); line-height: 1.5; font-weight: 450; }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hero .link { text-decoration-color: var(--ink); }
.hero .link:hover { color: var(--ink); text-decoration-color: var(--bg); }

.byline { display: grid; gap: var(--s-4); align-content: end; }
.byline__photo {
  aspect-ratio: 4 / 5; width: 100%; max-width: 20rem; object-fit: cover; object-position: 50% 30%;
  border: 2px solid var(--ink); background: var(--ink);
  filter: saturate(0.92) contrast(1.04);
}
.byline__name { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; line-height: 1.1; }
.byline__meta { font-size: var(--text-sm); line-height: 1.5; font-weight: 500; }
@media (max-width: 959px) {
  .byline { grid-template-columns: 7.5rem 1fr; align-items: end; }
  .byline__photo { max-width: 7.5rem; }
}

/* Role switcher (role pages): jump between the role pages without the menu */
.rolebar { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-6); }
.rolebar__label { flex: none; font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; margin-right: var(--s-2); }
.rolebar a {
  flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4);
  font-size: var(--text-sm); font-weight: 650; text-decoration: none; border: 1.5px solid var(--ink);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.rolebar a:hover { background: var(--ink); color: var(--bg); }
.rolebar a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (min-width: 761px) { .rolebar { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .rolebar { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .rolebar::-webkit-scrollbar { display: none; }
}

/* Ticker */
.ticker {
  margin-top: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  background: var(--ink); color: var(--on-night);
  overflow: hidden; border-top: 2px solid var(--ink);
}
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: baseline; gap: var(--s-3);
  padding: var(--s-4) var(--s-6); white-space: nowrap;
  border-right: 1px solid var(--night-line);
  font-size: var(--text-sm);
}
.ticker__item b { font-weight: 800; font-stretch: 118%; font-size: 1.25rem; color: var(--signal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--surface { background: var(--surface); }
.section--night { background: var(--night); color: var(--on-night); }
.h-section { font-size: var(--text-3xl); font-weight: 850; font-stretch: 88%; letter-spacing: -0.02em; line-height: 0.98; }
.h-sub { font-size: var(--text-2xl); font-weight: 800; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.02; }
.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); max-width: 44rem; }
.section--night .lede { color: var(--on-night-2); }
.section-head { display: grid; gap: var(--s-5); margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: var(--s-8); }
}

/* ---------- Summary / spec sheet ---------- */
.summary { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .summary { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-9); } }
.summary__statement {
  font-size: var(--text-2xl); font-weight: 750; font-stretch: 94%; line-height: 1.12; letter-spacing: -0.015em;
}
.summary__statement em { font-style: normal; color: var(--signal-deep); }
.spec { border-top: 2px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.spec dd { overflow-wrap: anywhere; }
@media (max-width: 480px) { .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }
.spec dt { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); padding-top: 0.2rem; }
.spec dd { font-weight: 550; line-height: 1.45; }

/* ---------- Results: scroll story ---------- */
.story { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .story { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s-9); } }
.story__steps { display: grid; }
.step { padding-block: var(--s-7); border-top: 1px solid var(--rule); }
.step:first-child { border-top: 2px solid var(--ink); }
@media (min-width: 1000px) {
  .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-8); }
  .step:last-child { min-height: 70vh; }
}
.step__fig { font-family: var(--mono); font-size: var(--text-xs); color: var(--signal-deep); font-weight: 500; }
.step__big {
  margin-top: var(--s-3);
  font-size: clamp(3.4rem, 2rem + 5.5vw, 6rem); font-weight: 900; font-stretch: 118%;
  line-height: 0.9; letter-spacing: -0.03em;
}
.step__title { margin-top: var(--s-4); font-size: var(--text-xl); font-weight: 800; font-stretch: 96%; line-height: 1.12; }
.step__body { margin-top: var(--s-3); color: var(--ink-2); max-width: 34rem; }
.step__tags { margin-top: var(--s-4); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); }
.step__chart { margin-top: var(--s-6); }
@media (min-width: 1000px) { .step__chart { display: none; } }

.stage { display: none; }
@media (min-width: 1000px) {
  .stage { display: block; position: sticky; top: 12vh; height: 76vh; align-self: start; }
}
.stage__frame {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  border: 2px solid var(--ink); background: var(--bg);
}
.stage__head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2);
}
.stage__ticks { display: flex; gap: 6px; }
.stage__ticks i { width: 1.6rem; height: 4px; background: var(--rule); transition: background-color 300ms var(--ease-out); }
.stage__ticks i.is-on { background: var(--signal); }
.stage__body { position: relative; padding: var(--s-6) var(--s-6) var(--s-4); min-height: 0; }
.stage__foot {
  padding: var(--s-3) var(--s-5); border-top: 1px solid var(--rule);
  font-size: var(--text-xs); color: var(--ink-3);
}

/* Bar chart (shared by stage and inline step charts) */
.chart { position: relative; height: 100%; min-height: 15rem; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-4); }
.step__chart .chart { height: 20rem; }
.chart__title { font-weight: 750; font-stretch: 96%; font-size: var(--text-lg); line-height: 1.2; }
.chart__plot {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  align-items: end; gap: clamp(1rem, 4%, 3rem);
  border-bottom: 2px solid var(--ink);
  background-image: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--rule) calc(25% - 1px) 25%);
  background-origin: content-box; background-clip: content-box;
  padding-top: 2rem; /* room for the value label above the tallest bar */
  min-height: 0; contain: layout paint;
}
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar__fill {
  height: var(--h, 0%); min-height: 3px; width: 100%;
  background: var(--ink-3); transform-origin: bottom;
  transition: height 900ms var(--ease-expo), background-color 400ms var(--ease-out);
}
.bar--after .bar__fill { background: var(--signal); }
.bar__value {
  position: absolute; left: 0; bottom: calc(var(--h, 0%) + 0.4rem);
  font-weight: 900; font-stretch: 116%; font-size: clamp(1.15rem, 0.7rem + 1.5vw, 2rem); line-height: 1;
  letter-spacing: -0.02em; white-space: nowrap;
  transition: bottom 900ms var(--ease-expo);
}
.chart__labels {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(1rem, 4%, 3rem);
  font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); line-height: 1.35;
}
.chart__labels span { overflow-wrap: break-word; hyphens: auto; }
.chart--swap .bar__fill, .chart--swap .bar__value { transition-duration: 0ms; }

/* ---------- Ledger table ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s-5) var(--s-4) var(--s-5) 0; }
.ledger thead th {
  font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; color: var(--ink-3);
  padding-block: var(--s-3); border-bottom: 2px solid var(--ink);
}
.ledger tbody tr { border-bottom: 1px solid var(--rule); transition: background-color 200ms var(--ease-out); }
.ledger tbody tr:hover { background: var(--signal-wash); }
.ledger tbody th { font-size: var(--text-xl); font-weight: 800; font-stretch: 94%; line-height: 1.1; width: 28%; }
.ledger tbody th a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); text-underline-offset: 0.15em; }
.ledger tbody th a:hover { color: var(--signal-deep); }
.ledger td { color: var(--ink-2); width: 44%; }
.ledger td.proof { color: var(--ink); width: 28%; font-weight: 600; }
.ledger td.proof b { display: block; font-weight: 900; font-stretch: 116%; font-size: var(--text-xl); color: var(--signal-deep); line-height: 1.05; }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger tbody tr { padding: var(--s-5) 0; }
  .ledger tbody th, .ledger td { padding: 0; }
  .ledger td { margin-top: var(--s-2); }
  .ledger td.proof { margin-top: var(--s-3); }
}

/* ---------- Process ---------- */
.process { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 820px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.process__item { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--rule); }
.process__item::before {
  content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%;
  background: var(--ink); transform: scaleX(var(--fill, 1)); transform-origin: left;
  transition: transform 900ms var(--ease-expo);
}
.process__n { font-family: var(--mono); font-size: var(--text-xs); color: var(--signal-deep); }
.process__title { margin-top: var(--s-2); font-size: var(--text-xl); font-weight: 850; font-stretch: 100%; }
.process__when { margin-top: var(--s-1); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.process__body { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }

/* ---------- Toolchain (night) ---------- */
.toolchain { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .toolchain { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-9); } }
.toolchain .h-section em { font-style: normal; color: var(--signal); }
.toolchain__body { margin-top: var(--s-5); display: grid; gap: var(--s-4); color: var(--on-night-2); max-width: 36rem; }
.terminal {
  background: var(--terminal); color: var(--on-night);
  border: 1px solid var(--night-line);
  box-shadow: var(--shadow-deep);
}
.terminal__bar {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--night-line-soft);
  font-family: var(--mono); font-size: var(--text-xs); color: var(--on-night-2);
}
.terminal__bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--night-dot); }
.terminal__bar i:first-child { background: var(--signal); }
.terminal__bar span { margin-left: var(--s-3); }
.terminal__body {
  margin: 0; padding: var(--s-5); min-height: 19rem;
  font-family: var(--mono); font-size: clamp(0.78rem, 0.7rem + 0.25vw, 0.9rem); line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.terminal__body .p { color: var(--signal); }
.terminal__body .c { color: var(--night-meta); font-style: italic; }
.terminal__body .ok { color: var(--ok); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.15em; background: var(--on-night); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Work index (featured results list) ---------- */
.index { border-top: 2px solid var(--ink); }
.index__item {
  display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr) auto; gap: var(--s-5); align-items: baseline;
  padding: var(--s-5) var(--s-4); margin-inline: calc(var(--s-4) * -1);
  border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.index__item:hover { background: var(--signal-wash); }
.index__go { transition: transform 260ms var(--ease-out); }
.index__item:hover .index__go { transform: translateX(4px); }
.index__num { font-size: var(--text-2xl); font-weight: 900; font-stretch: 116%; line-height: 0.95; letter-spacing: -0.02em; }
.index__text b { display: block; font-weight: 750; font-size: var(--text-lg); line-height: 1.25; }
.index__text span { display: block; margin-top: var(--s-1); color: var(--ink-2); font-size: var(--text-sm); }
.index__go { font-weight: 700; color: var(--signal-deep); white-space: nowrap; }
@media (max-width: 640px) {
  .index__item { grid-template-columns: 1fr; gap: var(--s-2); }
  .index__go { display: none; }
}

/* ---------- Role picker (home) ---------- */
.roles { border-top: 2px solid var(--ink); }
.role-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(10rem, 13rem) auto; gap: var(--s-6); align-items: center;
  padding: var(--s-5) var(--s-4); margin-inline: calc(var(--s-4) * -1);
  border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.role-row__name { font-size: var(--text-2xl); font-weight: 900; font-stretch: 82%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; }
.role-row__titles { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.45; }
.role-row__proof b { display: block; font-size: var(--text-xl); font-weight: 900; font-stretch: 116%; line-height: 1; letter-spacing: -0.02em; color: var(--signal-deep); }
.role-row__proof span { display: block; margin-top: var(--s-1); font-size: var(--text-xs); color: var(--ink-2); line-height: 1.35; }
.role-row__go { font-size: var(--text-xl); font-weight: 900; transition: transform 260ms var(--ease-out); }
.role-row:hover { background: var(--signal); }
.role-row:hover .role-row__titles, .role-row:hover .role-row__proof b, .role-row:hover .role-row__proof span { color: var(--ink); }
.role-row:hover .role-row__go { transform: translateX(6px); }
@media (max-width: 860px) {
  .role-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); }
  .role-row__name, .role-row__titles, .role-row__proof { grid-column: 1; }
  .role-row__go { grid-column: 2; grid-row: 1; }
  .role-row__proof { margin-top: var(--s-2); }
}
.roles__note { margin-top: var(--s-5); font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Credentials ---------- */
.creds { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .creds { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-8); } }
.creds__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); border-top: 2px solid var(--ink); }
.creds__list li { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); font-weight: 550; line-height: 1.4; }
.creds__list li span { display: block; font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); font-weight: 400; }
.stack { margin-top: var(--s-5); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); line-height: 1.9; }

/* ---------- Closing call (drenched) ---------- */
.closer { background: var(--signal); color: var(--ink); padding-block: clamp(5rem, 3rem + 7vw, 10rem); position: relative; overflow: hidden; }
.closer__title { font-size: var(--text-hero); font-weight: 900; font-stretch: 80%; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.025em; }
.closer__grid { display: grid; gap: var(--s-7); align-items: end; }
@media (min-width: 960px) { .closer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-9); } }
.closer__body { font-size: var(--text-lg); line-height: 1.5; font-weight: 500; max-width: 32rem; }
.closer__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.closer .btn--ghost { border-color: var(--ink); }
.closer .link { text-decoration-color: var(--ink); }
.closer .link:hover { color: var(--ink); text-decoration-color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding-block: var(--s-8) var(--s-6); font-size: var(--text-sm); }
.site-footer a { text-decoration: none; color: var(--on-night); }
.site-footer a:hover { color: var(--signal); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer__name { font-weight: 800; font-stretch: 112%; font-size: 1.25rem; color: var(--on-night); }
.footer__h { font-family: var(--mono); font-size: var(--text-xs); color: var(--night-meta); margin-bottom: var(--s-3); }
.footer__grid ul { display: grid; gap: var(--s-2); }
.footer__base { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-family: var(--mono); font-size: var(--text-xs); color: var(--night-meta); }

/* ---------- Inner-page hero ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); border-bottom: 2px solid var(--ink); }
.page-hero__crumb { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); margin-bottom: var(--s-5); }
.page-hero__crumb a { color: var(--ink-2); }
.page-hero__title { font-size: var(--text-hero); font-weight: 900; font-stretch: 80%; word-spacing: 0.08em; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.025em; max-width: 16ch; }
.page-hero__title em { font-style: normal; color: var(--signal-deep); }
.page-hero .lede { margin-top: var(--s-6); }
.page-hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.page-hero .stack a { color: var(--ink); }

/* ---------- Case archive ---------- */
.filters {
  position: sticky; top: 4.25rem; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.filters__row { display: flex; gap: var(--s-2); overflow-x: auto; padding-block: var(--s-3); scrollbar-width: none; }
.filters__row::-webkit-scrollbar { display: none; }
.filters__label { flex: none; align-self: center; font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); margin-right: var(--s-2); }
.filters__count { flex: none; align-self: center; margin-left: auto; padding-left: var(--s-4); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); }
@media (max-width: 900px) {
  .filters__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.filters a {
  flex: none; display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  padding: 0 var(--s-4); border: 1.5px solid var(--rule-strong);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.filters a:hover { border-color: var(--ink); }
.filters a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.sector { padding-block: clamp(3.5rem, 2rem + 4vw, 6.5rem); scroll-margin-top: 8rem; border-bottom: 1px solid var(--rule); }
.sector__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
@media (min-width: 900px) { .sector__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-8); align-items: end; } }
.sector__name { font-size: var(--text-2xl); font-weight: 900; font-stretch: 84%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; }
.sector__desc { color: var(--ink-2); font-size: var(--text-lg); line-height: 1.45; }

.entry { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-top: 2px solid var(--ink); scroll-margin-top: 9rem; }
.entry + .entry { border-top-width: 1px; border-top-color: var(--rule-strong); }
@media (min-width: 900px) { .entry { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-8); } }
.entry__meta { display: grid; gap: var(--s-3); align-content: start; }
.entry__tag { justify-self: start; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.01em; background: var(--signal-wash); color: var(--signal-deep); padding: var(--s-1) var(--s-3); }
.entry__tools { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); line-height: 1.7; }
.entry__roles { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.entry__roles a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.2em; }
.entry__roles a:hover { color: var(--signal-deep); text-decoration-color: currentColor; }
.entry--feature .entry__roles { color: var(--on-night-2); }
.entry--feature .entry__roles a:hover { color: var(--signal); }
.entry__title { font-size: var(--text-xl); font-weight: 850; font-stretch: 94%; line-height: 1.12; letter-spacing: -0.01em; max-width: 30ch; }
.entry__text { margin-top: var(--s-3); color: var(--ink-2); max-width: 62ch; }
.entry__figs { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.entry__figs div { padding: var(--s-4); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.entry__figs b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 900; font-stretch: 114%; line-height: 1; letter-spacing: -0.02em; }
.entry__figs span { display: block; margin-top: var(--s-2); font-size: var(--text-xs); color: var(--ink-2); line-height: 1.35; }
.entry__note { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-sm); max-width: 62ch; }
.entry--feature { background: var(--night); color: var(--on-night); padding: var(--s-7) var(--s-6); border-top: 0; margin-top: var(--s-5); }
.entry--feature .entry__text, .entry--feature .entry__note, .entry--feature .entry__figs span { color: var(--on-night-2); }
.entry--feature .entry__tools { color: var(--night-meta); }
.entry--feature .entry__figs, .entry--feature .entry__figs div { border-color: var(--night-line); }
.entry--feature .entry__figs b { color: var(--signal); }
.entry--feature .entry__tag { background: var(--signal); color: var(--ink); }

/* ---------- About ---------- */
.about-intro { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .about-intro { grid-template-columns: 22rem minmax(0, 1fr); gap: var(--s-9); } }
.about-intro__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--ink); }
.prose { display: grid; gap: var(--s-5); font-size: var(--text-lg); line-height: 1.6; max-width: 40rem; }
.prose p:first-child { font-size: var(--text-xl); font-weight: 700; font-stretch: 96%; line-height: 1.3; }

.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0; font-size: var(--text-lg); font-weight: 750; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 0.9rem; height: 0.9rem;
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform 300ms var(--ease-out);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--signal-deep); }
.qa details > div { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 62ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--s-7); border-top: 2px solid var(--ink); padding-top: var(--s-7); }
@media (min-width: 900px) { .quotes--many { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }
.quote { display: grid; gap: var(--s-5); align-content: start; }
.quote blockquote { border-left: 3px solid var(--signal); padding-left: var(--s-5); }
.quote blockquote p { font-size: var(--text-xl); font-weight: 750; font-stretch: 96%; line-height: 1.3; letter-spacing: -0.01em; max-width: 46ch; }
.quote figcaption { display: grid; gap: var(--s-1); padding-left: calc(var(--s-5) + 3px); }
.quote__by { font-weight: 700; }
.quote__src { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); line-height: 1.7; }
.quote__src .link { font-family: var(--font); font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Work with me: packages ---------- */
.pkg__n { font-family: var(--mono); font-size: var(--text-xs); color: var(--signal-deep); }
.pkg__price { font-size: var(--text-xl); font-weight: 900; font-stretch: 110%; line-height: 1.05; letter-spacing: -0.01em; }
.pkg__price small { display: block; margin-top: var(--s-1); font-size: var(--text-xs); font-weight: 500; font-stretch: 100%; color: var(--ink-2); }
.pkg__price--quote { font-size: var(--text-base); font-weight: 700; font-stretch: 100%; line-height: 1.4; letter-spacing: 0; }
.pkg__spec { margin-top: var(--s-5); }
.pkg__list, .pkg__proof { display: grid; gap: var(--s-2); }
.pkg__list li { position: relative; padding-left: 1.1rem; font-weight: 500; }
.pkg__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; background: var(--signal); }
.pkg__proof b { font-weight: 900; font-stretch: 110%; color: var(--signal-deep); margin-right: var(--s-1); }
.pkg__proof .link { font-weight: 550; }
.pkg__cta { margin-top: var(--s-6); }

/* ---------- Contact ---------- */
.ways { border-top: 2px solid var(--ink); }
.way {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-6); align-items: center;
  padding: var(--s-6) var(--s-4); margin-inline: calc(var(--s-4) * -1);
  border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 220ms var(--ease-out);
}
.way:hover { background: var(--signal); }
.way__label { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); grid-column: 1 / -1; }
.way:hover .way__label { color: var(--ink); }
.way__main { font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem); font-weight: 900; font-stretch: 100%; line-height: 1; letter-spacing: -0.02em; word-break: break-word; }
.way__go { font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem); font-weight: 900; transition: transform 320ms var(--ease-out); }
.way:hover .way__go { transform: translateX(6px); }
.details-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-9); } }
.checklist { border-top: 2px solid var(--ink); }
.checklist li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); font-weight: 550; }

/* ---------- Motion (only when JS confirms motion is welcome) ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.motion .hero__title .line > span { animation: rise 900ms var(--ease-expo) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.motion .hero__lede, .motion .hero__actions, .motion .byline { animation: fadeUp 800ms var(--ease-out) both; }
.motion .hero__lede { animation-delay: 420ms; }
.motion .hero__actions { animation-delay: 520ms; }
.motion .byline { animation-delay: 620ms; }
.motion .page-hero__title .line > span { animation: rise 900ms var(--ease-expo) both; animation-delay: calc(80ms + var(--i, 0) * 90ms); }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.page-hero__title .line > span { display: inline-block; }

.motion [data-draw] .process__item::before { transform: scaleX(0); }
.motion [data-draw].is-in .process__item::before { transform: none; transition-delay: calc(var(--i, 0) * 160ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__group + .ticker__group { display: none; }
  .ticker__group { flex-wrap: wrap; }
  .caret { animation: none; }
}

/* ---------- Print: it is a report, so let it print like one ---------- */
@media print {
  .site-header, .ticker, .stage, .filters, .closer__actions, .nav { display: none !important; }
  .hero, .closer { background: none; }
  .step { min-height: 0 !important; }
  .step__chart { display: block !important; }
  .section--night, .site-footer { background: none; color: var(--ink); }
}

/* ---------- Reporting page: sample dashboard ---------- */
.dash { border: 2px solid var(--ink); background: var(--bg); }
.dash__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding: var(--s-3) var(--s-4); border-bottom: 2px solid var(--ink); background: var(--surface); }
.dash__tag { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); }
.dash__tag b { display: inline-block; margin-right: var(--s-2); padding: 0.1rem 0.45rem; background: var(--signal-wash); color: var(--signal-deep); font-weight: 500; }
.dash__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.dash__chip { font: inherit; font-family: var(--mono); font-size: var(--text-xs); padding: 0.35rem 0.7rem; border: 1px solid var(--rule-strong); background: var(--bg); color: var(--ink); cursor: pointer; }
.dash__chip:hover { border-color: var(--ink); }
.dash__chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dash__chip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.dash__body { padding: var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 700px) { .dash__body { padding: var(--s-5); } }
.dash__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 800px) { .dash__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash__kpi { border-top: 2px solid var(--ink); padding-top: var(--s-2); }
.dash__kpi-label { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); }
.dash__kpi-value { display: block; font-size: var(--text-xl); font-weight: 800; font-stretch: 90%; letter-spacing: -0.015em; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.dash__kpi-delta { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); }
.dash__kpi-delta.is-up { color: oklch(0.45 0.12 150); }
.dash__kpi-delta.is-down { color: var(--signal-deep); }
.dash__panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.dash__panels > *, .dash__kpi { min-width: 0; }
@media (min-width: 900px) { .dash__panels { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.dash__h { font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; color: var(--ink-2); margin-bottom: var(--s-2); }
.dash__legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); margin-bottom: var(--s-2); }
.dash__legend i { display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.4rem; vertical-align: -0.1rem; background: var(--ink); }
.dash__legend i.is-line { height: 3px; vertical-align: 0.2rem; background: var(--signal); }
.dash svg { display: block; width: 100%; height: auto; }
.dash-grid { stroke: var(--rule); stroke-width: 1; }
.dash-axis { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.dash-bar { fill: var(--ink); }
.dash-bar.is-recent { fill: var(--ink-2); }
.dash-line { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; }
.dash-dot { fill: var(--signal); }
.dash-funnel { display: grid; gap: var(--s-2); }
.dash-funnel__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-3); align-items: center; font-size: var(--text-sm); }
.dash-funnel__track { background: var(--surface); height: 1.6rem; position: relative; }
.dash-funnel__fill { background: var(--signal); height: 100%; transition: width 300ms var(--ease-out); }
.dash-funnel__val { font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-2); display: block; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums lining-nums; }
.dash-table th, .dash-table td { text-align: right; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.dash-table th:first-child, .dash-table td:first-child { text-align: left; padding-left: 0; }
.dash-table thead th { font-family: var(--mono); font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.dash-table tr.is-selected td, .dash-table tr.is-selected th { background: var(--signal-wash); }
.dash-table tfoot td, .dash-table tfoot th { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.dash__read { border-left: 4px solid var(--signal); padding: var(--s-2) var(--s-4); background: var(--surface); font-size: var(--text-sm); line-height: 1.55; }
.dash__read b { font-weight: 700; }
.dash__note { margin-top: var(--s-3); font-family: var(--mono); font-size: var(--text-xs); color: var(--ink-3); line-height: 1.6; max-width: 52rem; }
.track-note { margin-top: var(--s-5); max-width: 44rem; color: var(--ink-2); }
.dash [data-chart] { overflow-x: auto; }
.dash [data-chart] svg { min-width: 560px; }
