/* Krit Jiarawattanakul — site styles
   Visual language: a business-process map. Sections sit on a sequence flow
   (start event → tasks → gateways → end event). One family, Archivo, used
   across its width axis: expanded for headlines, condensed for dense figures. */

@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("jetbrains-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #0f2a2e;
  --ink-2: #4a5e60;
  --ink-3: #7a8b8c;
  --rule: #d3dcd9;
  --rule-strong: #b6c4c0;
  --flow: #12795a;
  --flow-deep: #0b5a43;
  --flow-soft: #dcede5;
  --signal: #e9a23b;
  --signal-soft: #fbecd2;
  --night: #0d2427;
  --night-2: #16353a;
  --night-text: #cfe0db;
  --night-dim: #7f9c97;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --rail-x: 0px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: 3.25rem;

  --radius-s: 4px;
  --radius-m: 10px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "kern" 1;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--flow-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flow); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal-soft); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; }
.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 7.6vw, 6.9rem);
}
h1.page-title {
  font-stretch: 125%;
  font-weight: 780;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1;
  max-width: 16ch;
}
h2 {
  font-stretch: 115%;
  font-weight: 720;
  letter-spacing: -0.012em;
  font-size: clamp(1.7rem, 3.2vw, var(--step-3));
  max-width: 22ch;
}
h3 { font-stretch: 108%; font-weight: 680; font-size: var(--step-1); letter-spacing: -0.005em; }
h4 { font-stretch: 100%; font-weight: 650; font-size: var(--step-0); }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.condensed { font-stretch: 78%; }
.context { color: var(--ink-2); font-size: var(--step--1); font-stretch: 92%; margin: 0 0 14px; }
.context b { color: var(--ink); font-weight: 600; }
.clean { list-style: none; margin: 0; padding: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; max-width: 66ch; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--flow); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-stretch: 112%; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--flow-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 18px; gap: 2px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem;
  cursor: pointer; line-height: 1;
}
.btn:hover { background: var(--flow-deep); border-color: var(--flow-deep); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2);
}
.chip-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.chip-btn[aria-pressed="true"], .chip-btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Process rail (home) ---------- */
.flow { position: relative; }
@media (min-width: 1100px) {
  .flow::before {
    content: ""; position: absolute; top: 0; bottom: 0;
    left: max(18px, calc((100vw - var(--wrap)) / 2 - 46px));
    width: 2px; z-index: 1; background: linear-gradient(var(--flow) 0 0) no-repeat, var(--rule);
    background-size: 2px var(--flow-progress, 0%);
  }
  .node {
    position: absolute; left: calc(max(18px, calc((100vw - var(--wrap)) / 2 - 46px)) + 1px);
    transform: translate(-50%, 0); width: 22px; height: 22px; z-index: 2;
  }
}
@media (max-width: 1099px) { .node { display: none; } }
.node svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.section.surface { background: var(--surface); border-block: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.kicker { font-size: var(--step--1); color: var(--flow-deep); font-weight: 600; font-stretch: 100%; margin: 0; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--rule) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero .display { margin-bottom: clamp(26px, 4vw, 44px); }
.hero .display .line { display: block; }
.hero .display .surname { font-stretch: 112%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy .lede { margin-bottom: 16px; }
.hero-copy p.muted { margin-bottom: 26px; }
.role-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.role-line li { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 5px 12px; font-size: .9rem; color: var(--ink-2); background: var(--surface); }

/* ---------- Job log panel ---------- */
.joblog {
  background: var(--night); color: var(--night-text); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 48px -28px rgba(13, 36, 39, .55);
}
.joblog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--night-2); }
.joblog-title { font-size: .92rem; font-weight: 600; color: #fff; }
.joblog-title small { display: block; font-weight: 400; color: var(--night-dim); font-size: .8rem; margin-top: 2px; }
.joblog-replay { font: inherit; font-size: .82rem; color: var(--night-text); background: transparent; border: 1px solid var(--night-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.joblog-replay:hover { border-color: var(--night-dim); color: #fff; }
.joblog-body {
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; line-height: 1.75;
  padding: 14px 18px; height: 296px; overflow: hidden; position: relative;
}
.joblog-body ol { list-style: none; margin: 0; padding: 0; }
.joblog-body li { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 12px; white-space: nowrap; }
.joblog-body li .t { color: var(--night-dim); }
.joblog-body li .m { overflow: hidden; text-overflow: ellipsis; }
.joblog-body li .e { color: var(--night-dim); }
.joblog-body li.done .m b { color: #8fe0bd; font-weight: 500; }
.joblog-body li.hot .m { color: var(--signal); }
.joblog-body li.end .m { color: #fff; }
.joblog-race { padding: 16px 18px 18px; border-top: 1px solid var(--night-2); display: grid; gap: 12px; }
.race-row { display: grid; grid-template-columns: 8.4em 1fr 4.6em; align-items: center; gap: 12px; font-size: .82rem; }
.race-row .lbl { color: var(--night-dim); }
.race-row .bar { height: 10px; background: var(--night-2); border-radius: 99px; overflow: hidden; }
.race-row .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--night-dim); }
.race-row.new .bar i { background: linear-gradient(90deg, #4fbf92, #8fe0bd); }
.race-row.new .lbl { color: #fff; }
.race-row .clock { font-family: "JetBrains Mono", ui-monospace, monospace; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.joblog-foot { padding: 0 18px 16px; font-size: .78rem; color: var(--night-dim); }

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.proof > div { padding: 22px 22px 6px 0; border-right: 1px solid var(--rule); }
.proof > div + div { padding-left: 22px; }
.proof > div:last-child { border-right: 0; }
.proof .fig { font-stretch: 72%; font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.9rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.proof .fig sup { font-size: .45em; vertical-align: top; margin-left: 2px; font-stretch: 100%; }
.proof p { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 24ch; }
@media (max-width: 820px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(2) { border-right: 0; }
  .proof > div:nth-child(3) { padding-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 1000px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }
.cap { border-top: 3px solid var(--ink); padding-top: 18px; }
.cap h3 { margin-bottom: 10px; max-width: 16ch; }
.cap p { color: var(--ink-2); font-size: .98rem; }
.cap .glyph { width: 30px; height: 30px; margin-bottom: 14px; }
.cap a { font-weight: 600; font-size: .95rem; }

/* ---------- Work index (rows) ---------- */
.work-list { border-top: 1px solid var(--ink); }
.work-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, auto); gap: 24px; align-items: end;
  padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.work-row:hover { color: inherit; }
.work-row:hover h3 { color: var(--flow-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.work-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-stretch: 110%; max-width: 32ch; margin-bottom: 8px; }
.work-row .context { margin: 0; }
.work-row .metric { text-align: right; }
.work-row .metric b { display: block; font-stretch: 70%; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.work-row .metric span { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 640px) {
  .work-row { grid-template-columns: 1fr; gap: 10px; }
  .work-row .metric { text-align: left; }
}

/* ---------- Career flow (process diagram) ---------- */
.career { overflow-x: auto; padding: 8px 0 18px; scrollbar-width: thin; }
.career-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; min-width: 1080px; }
.career-track::before { content: ""; position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: var(--ink); }
.career-step { position: relative; padding: 0 14px 0 0; }
.career-step .yr { font-stretch: 78%; font-weight: 650; font-size: 1.05rem; color: var(--ink-2); height: 30px; }
.career-step .mark { width: 34px; height: 34px; margin-bottom: 14px; position: relative; z-index: 1; }
.career-step h4 { font-size: .95rem; line-height: 1.25; margin-bottom: 4px; }
.career-step p { font-size: .82rem; color: var(--ink-2); margin: 0; line-height: 1.4; }
.career-step.lead h4 { color: var(--flow-deep); }
.career-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--ink-2); font-size: .85rem; }
.career-legend span { display: inline-flex; align-items: center; gap: 8px; }
.career-legend svg { width: 18px; height: 18px; }

/* ---------- Leadership (home) ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }
.strengths { counter-reset: s; border-top: 1px solid var(--ink); }
.strengths li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.strengths li::before { content: counter(s); font-stretch: 72%; font-weight: 700; font-size: 1.6rem; color: var(--flow); line-height: 1; }
.strengths b { font-stretch: 110%; font-weight: 680; }
.strengths span { display: block; color: var(--ink-2); font-size: .93rem; }

/* ---------- Contact / end event ---------- */
.contact { background: var(--ink); color: #e9f0ee; padding: clamp(64px, 9vw, 120px) 0; }
.contact h2 { color: #fff; max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: 120%; margin-bottom: 18px; }
.contact p { color: #b8cac6; }
.contact .mail {
  display: inline-block; color: #fff; font-stretch: 100%; font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  text-decoration: none; border-bottom: 3px solid var(--signal); padding-bottom: 4px; margin: 18px 0 26px; letter-spacing: -0.01em;
  word-break: break-word;
}
.contact .mail:hover { color: var(--signal); }
.contact .btn.ghost { color: #fff; border-color: #3d5a5e; }
.contact .btn.ghost:hover { background: #163b40; border-color: #fff; color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: .95rem; }
.contact dt { color: #8fa9a4; }
.contact dd { margin: 0; color: #fff; }

.site-foot { background: var(--ink); color: #8fa9a4; font-size: .85rem; padding: 0 0 36px; }
.site-foot .wrap { border-top: 1px solid #23464b; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot a { color: #cfe0db; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--rule) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}
.page-head .lede { margin-top: 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.toc a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Case study layout ---------- */
.case { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.case:last-of-type { border-bottom: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.case-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 980px) { .case-grid, .case-grid.flip { grid-template-columns: 1fr; } }
.case h2 { margin-bottom: 16px; }
.case .sticky { position: sticky; top: 92px; }
@media (max-width: 980px) { .case .sticky { position: static; } }
.outcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin: 24px 0; }
.outcome div { padding: 14px 16px 4px 0; border-right: 1px solid var(--rule); }
.outcome div + div { padding-left: 16px; }
.outcome div:last-child { border-right: 0; }
.outcome b { display: block; font-stretch: 72%; font-weight: 700; font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.outcome span { color: var(--ink-2); font-size: .86rem; line-height: 1.35; display: block; margin-top: 6px; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(18px, 2.4vw, 28px); }
.panel + .panel { margin-top: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-title h3 { font-size: 1.1rem; }
.panel-title p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.note { font-size: .84rem; color: var(--ink-2); margin: 14px 0 0; max-width: 72ch; }
.note b { color: var(--ink); font-weight: 600; }

/* ---------- Charts ---------- */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(130px, 13em) 1fr 5.2em; gap: 14px; align-items: center; font-size: .9rem; }
.bar-row .lbl { line-height: 1.25; }
.bar-row .lbl small { display: block; color: var(--ink-3); font-size: .78rem; }
.bar-row .track { height: 14px; background: var(--paper); border-radius: 3px; position: relative; overflow: hidden; }
.bar-row .track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink-3); border-radius: 3px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.bar-row.hl .track i { background: var(--flow); }
.bar-row.base .track i { background: var(--ink); }
.bar-row.flag .track i { background: var(--signal); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-stretch: 85%; font-weight: 600; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 4.6em; } .bar-row .track { grid-column: 1 / -1; order: 3; } }
@media (prefers-reduced-motion: reduce) { .bar-row .track i { transition: none; } }

.steps-chart { display: grid; gap: 4px; }
.steps-chart .st { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 4.4em; gap: 12px; align-items: center; font-size: .86rem; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.steps-chart .st .n { font-stretch: 75%; font-weight: 700; color: var(--ink-3); }
.steps-chart .st .d { display: grid; gap: 4px; }
.steps-chart .st .d i { display: block; height: 6px; border-radius: 3px; background: var(--flow); min-width: 3px; }
.steps-chart .st.hot .d i { background: var(--signal); }
.steps-chart .st .d small { color: var(--ink-3); font-size: .76rem; }
.steps-chart .st .t { text-align: right; font-variant-numeric: tabular-nums; font-stretch: 85%; font-weight: 600; }

/* Stepper (versions, sequences) */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.stepper button { font: inherit; font-weight: 650; font-stretch: 85%; font-size: .92rem; min-width: 46px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.stepper button:hover { color: var(--ink); border-color: var(--ink-3); }
.stepper button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper-panel h4 { margin-bottom: 6px; font-stretch: 108%; font-size: 1.05rem; }
.stepper-panel p { color: var(--ink-2); margin: 0 0 10px; }
.stepper-panel ul { margin: 0; padding-left: 1.1em; color: var(--ink); font-size: .95rem; }
.stepper-panel li { margin: 4px 0; }

/* Gate sequence */
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: g; margin: 8px 0 4px; }
.gates li { counter-increment: g; position: relative; padding: 0 14px 14px 0;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) no-repeat; background-size: calc(100% - 52px) 2px; background-position: 52px 21px; }
.gates li:last-child { background: none; }
.gates li::before { content: ""; display: block; width: 28px; height: 28px; transform: rotate(45deg); border: 2px solid var(--ink); background: var(--surface); margin: 7px 0 20px 7px; }
.gates li:first-child::before { background: var(--signal); }
.gates li::after { content: counter(g); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; font-weight: 750; font-size: .95rem; }
.gates li b { display: block; font-stretch: 108%; }
.gates li span { color: var(--ink-2); font-size: .86rem; display: block; line-height: 1.35; margin-top: 4px; }
@media (max-width: 700px) { .gates { grid-template-columns: 1fr 1fr; row-gap: 12px; } .gates li { background: none; } }

/* Code */
.code {
  background: var(--night); color: var(--night-text); border-radius: var(--radius-m); overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.7; padding: 18px 20px; margin: 0;
  tab-size: 2;
}
.code .k { color: #8fe0bd; }
.code .c { color: var(--night-dim); font-style: italic; }
.code .s { color: #f2c27a; }
.code .n { color: #9ccbf5; }
.code-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.counter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.counter-pair div { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; background: var(--paper); }
.counter-pair b { display: block; font-stretch: 72%; font-weight: 700; font-size: 1.8rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.counter-pair span { font-size: .82rem; color: var(--ink-2); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; font-weight: 550; margin-bottom: 6px; }
.field label output { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--flow-deep); }
.field input[type="range"] { width: 100%; accent-color: var(--flow); }
.field small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.calc-out { border-left: 1px solid var(--rule); padding-left: 28px; display: grid; align-content: start; gap: 16px; }
@media (max-width: 760px) { .calc-out { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; } }
.calc-out div b { display: block; font-stretch: 72%; font-weight: 700; font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out div span { color: var(--ink-2); font-size: .86rem; }
.calc-out .big b { color: var(--flow-deep); font-size: 3.2rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.data th { font-weight: 600; color: var(--ink-2); font-size: .82rem; border-bottom-color: var(--ink); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; font-stretch: 88%; }
table.data tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--ink); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--flow-soft); color: var(--flow-deep); font-weight: 550; }
.tags.plain li { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); }

/* Evidence legend */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; list-style: none; font-size: .86rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }
.ev-op { background: var(--flow); }
.ev-cfg { background: #3f7fbf; }
.ev-inf { background: transparent; border: 2px dashed var(--signal); }
.ev-none { background: var(--rule); }

/* Process explorer */
.proc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.proc-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 6px 0 18px; counter-reset: p; }
.proc-flow li { counter-increment: p; position: relative; flex: 1 1 140px; min-width: 130px; padding: 12px 22px 12px 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; margin: 0 14px 10px 0; }
.proc-flow li::after { content: ""; position: absolute; right: -15px; top: 50%; width: 14px; height: 2px; background: var(--ink-3); }
.proc-flow li::before { content: ""; position: absolute; right: -16px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: var(--ink-3); border-right: 0; z-index: 1; transform: translateX(6px); }
.proc-flow li:last-child::after, .proc-flow li:last-child::before { display: none; }
.proc-flow b { display: block; font-size: .92rem; line-height: 1.25; }
.proc-flow small { display: block; color: var(--ink-3); font-size: .76rem; margin-top: 4px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.proc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .proc-meta { grid-template-columns: 1fr; } }
.proc-meta h4 { font-size: .86rem; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.proc-meta p { font-size: .92rem; margin: 0; }

/* Swimlane diagrams (SVG) */
.diagram { width: 100%; height: auto; }
.diagram text { font-family: "Archivo", system-ui, sans-serif; }
.diagram .lane-label { font-size: 13px; font-weight: 650; fill: var(--ink); }
.diagram .box { fill: var(--surface); stroke: var(--rule-strong); stroke-width: 1.2; }
.diagram .box-text { font-size: 12.5px; fill: var(--ink); }
.diagram .flow-line { stroke: var(--ink-3); stroke-width: 1.6; fill: none; }
.diagram .flow-line.in { stroke: var(--flow); stroke-width: 2.4; }
.diagram .flow-line.out { stroke: #3f7fbf; stroke-width: 2.4; }
.diagram .badge { fill: var(--signal); }
.diagram .badge-text { font-size: 11px; font-weight: 700; fill: var(--ink); }
.diagram .dim { opacity: .18; transition: opacity .2s; }
.diagram g[data-flow] { transition: opacity .2s; cursor: default; }

/* Swimlane (HTML grid: time runs downward) */
.sw-head, .sw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-head div { font-weight: 650; font-size: .86rem; padding: 10px 12px; border-bottom: 1px solid var(--ink); }
.sw-head div:nth-child(2), .sw-row .sw-cell:nth-child(2) { background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.sw-body { position: relative; }
.sw-cell { padding: 8px 12px; border-left: 1px dashed var(--rule); min-height: 18px; }
.sw-cell:first-child { border-left: 0; }
.sw-box { position: relative; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 10px 12px; font-size: .88rem; line-height: 1.3; animation: logIn .25s ease-out both; }
.sw-box.ip { border-color: var(--ink); }
.sw-box b { font-weight: 600; display: block; }
.sw-box small { display: block; color: var(--ink-2); font-size: .76rem; margin-top: 4px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.sw-badge { position: absolute; top: -9px; right: -9px; background: var(--signal); color: var(--ink); font-weight: 700; font-size: .72rem; border-radius: 999px; padding: 2px 7px; font-stretch: 85%; }
.sw-dir { position: absolute; top: -13px; width: 18px; height: 12px; left: 14px; }
.sw-dir::before { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 12px; background: var(--ink-3); }
.sw-dir.right::after, .sw-dir.left::after { content: ""; position: absolute; left: 3px; bottom: -2px; border: 5px solid transparent; border-top-color: var(--ink-3); border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .sw-box { animation: none; } }
@media (max-width: 640px) { .sw-box { font-size: .8rem; padding: 8px; } .sw-cell { padding: 6px 4px; } .sw-head div { font-size: .76rem; padding: 8px 4px; } }

/* Layers (security stack) */
.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.layer:hover { border-color: var(--ink-3); }
.layer[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.layer[aria-expanded="true"] .tags li { background: #23464b; color: #dff0ea; }
.layer b { font-stretch: 108%; font-weight: 680; }
.layer-detail { padding: 12px 16px 16px; color: var(--ink-2); font-size: .94rem; display: none; }
.layer-detail.open { display: block; }
@media (max-width: 600px) { .layer { grid-template-columns: 1fr; gap: 8px; } }

/* Roadmap swimlane */
.roadmap { overflow-x: auto; }
.rm-grid { display: grid; grid-template-columns: 10.5em repeat(8, minmax(64px, 1fr)); min-width: 820px; font-size: .82rem; }
.rm-grid .hd { font-weight: 650; color: var(--ink-2); padding: 6px 4px; border-bottom: 1px solid var(--ink); font-stretch: 85%; }
.rm-grid .lane { padding: 10px 8px 10px 0; font-weight: 650; border-bottom: 1px solid var(--rule); font-size: .86rem; }
.rm-grid .cell { border-bottom: 1px solid var(--rule); border-left: 1px dashed var(--rule); position: relative; min-height: 46px; }
.rm-bars { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px 0; padding: 8px 0; border-bottom: 1px solid var(--rule); align-content: start; }
.rm-bars span { background: var(--flow-soft); color: var(--flow-deep); border-left: 3px solid var(--flow); border-radius: 4px; padding: 4px 8px; font-size: .78rem; font-weight: 550; line-height: 1.25; margin-right: 4px; }
.rm-bars span.sec { background: var(--signal-soft); color: #7a4d06; border-left-color: var(--signal); }
.rm-bars span.int { background: #e1ebf6; color: #234f7c; border-left-color: #3f7fbf; }

/* Scorer */
.scorer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .scorer { grid-template-columns: 1fr; } }
.score-row { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.score-row:first-child { padding-top: 0; }
.score-row .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.score-row .top b { font-stretch: 105%; }
.score-row .top em { font-style: normal; color: var(--ink-2); font-size: .85rem; text-align: right; }
.score-pick { display: flex; gap: 4px; }
.score-pick button { flex: 1; font: inherit; font-weight: 700; padding: 7px 0; border: 1px solid var(--rule-strong); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink-2); font-stretch: 85%; }
.score-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.score-total { text-align: left; }
.score-total b { font-stretch: 70%; font-weight: 700; font-size: 5rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.score-total .band { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; font-weight: 650; font-size: .92rem; }
.band.go { background: var(--flow-soft); color: var(--flow-deep); }
.band.plan { background: var(--signal-soft); color: #7a4d06; }
.band.hold { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule-strong); }

/* Register (policy hierarchy) */
.register { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .register { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .register { grid-template-columns: 1fr; } }
.register > div { border-top: 3px solid var(--ink); padding-top: 12px; }
.register h4 { margin-bottom: 8px; font-stretch: 108%; }
.register li { font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.register li small { color: var(--ink-3); display: block; font-size: .76rem; }

/* Two-col generic */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
@media (max-width: 860px) { .two, .three { grid-template-columns: minmax(0, 1fr); } }
.mini h4 { margin-bottom: 6px; }
.mini p { font-size: .94rem; color: var(--ink-2); }

/* ---------- CV page ---------- */
.cv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
@media (max-width: 760px) { .cv-head { grid-template-columns: 1fr; } }
.cv-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .95rem; text-align: right; }
@media (max-width: 760px) { .cv-contact { text-align: left; } }
.cv-section { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 28px; padding: 36px 0; border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .cv-section { grid-template-columns: 1fr; gap: 14px; } }
.cv-section > h2 { font-size: 1.15rem; font-stretch: 110%; max-width: none; }
.role { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); break-inside: avoid-page; }
.role:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.role-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.role-top h3 { font-size: 1.2rem; }
.role-top .when { color: var(--ink-2); font-variant-numeric: tabular-nums; font-stretch: 90%; font-weight: 550; white-space: nowrap; }
.role .org { color: var(--flow-deep); font-weight: 600; margin: 2px 0 10px; }
.role .scope { color: var(--ink-2); margin-bottom: 10px; font-size: .95rem; }
.role ul { margin: 0; padding-left: 1.1em; }
.role li { margin: 5px 0; max-width: 72ch; }
.role li::marker { color: var(--flow); }
.role .sub { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.cv-print-note { font-size: .85rem; color: var(--ink-2); }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }
.skills-grid h4 { font-size: .92rem; margin-bottom: 6px; }
.skills-grid p { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* ---------- Motion ---------- */
.reveal-line { animation: logIn .25s ease-out both; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-line { animation: none; } }

/* ---------- Print (CV page prints as a résumé) ---------- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  :root { --paper: #fff; }
  body { background: #fff; font-size: 10pt; line-height: 1.42; color: #000; }
  .site-head, .site-foot, .contact, .no-print, .skip, .toc { display: none !important; }
  .page-head { padding: 0 0 10pt; border-bottom: 1.5pt solid #000; }
  .page-head::before { display: none; }
  .wrap { width: 100%; }
  h1.page-title { font-size: 24pt; max-width: none; }
  .lede { font-size: 11pt; max-width: none; }
  .cv-section { grid-template-columns: 30mm 1fr; gap: 6mm; padding: 9pt 0; border-top: 1pt solid #000; }
  .cv-section > h2 { font-size: 10.5pt; }
  .role { padding-bottom: 8pt; margin-bottom: 8pt; }
  .role-top h3 { font-size: 11pt; }
  .role li { margin: 2pt 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .tags li { background: none; border: .5pt solid #888; color: #000; }
}

/* Architecture stack (integration) */
.arch { display: grid; gap: 0; }
.arch li { position: relative; padding: 12px 14px 12px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); margin-bottom: 18px; }
.arch li:last-child { margin-bottom: 0; }
.arch li::after { content: ""; position: absolute; left: 50%; bottom: -18px; width: 2px; height: 18px; background: var(--ink-3); }
.arch li:last-child::after { display: none; }
.arch li b { display: block; font-stretch: 106%; }
.arch li span { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.arch li.core { background: var(--ink); border-color: var(--ink); }
.arch li.core b { color: #fff; }
.arch li.core span { color: #b8cac6; }

/* Landscape matrix */
.landscape { display: grid; gap: 8px; }
.ls-row { display: grid; grid-template-columns: minmax(150px, 13em) 1fr; gap: 14px; align-items: center; font-size: .9rem; }
.ls-cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; max-width: 360px; }
.ls-cells i { height: 18px; border-radius: 3px; }
@media (max-width: 520px) { .ls-row { grid-template-columns: 1fr; gap: 6px; } }

/* Question card */
.qcard .chip-btn[aria-pressed="true"] { background: var(--flow); border-color: var(--flow); color: #fff; }

/* SWOT */
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.swot > div { padding: 14px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.swot > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.swot > div:nth-child(even) { padding-left: 16px; }
.swot h4 { margin-bottom: 6px; }
.swot > div:nth-child(1) h4 { color: var(--flow-deep); }
.swot > div:nth-child(2) h4 { color: #8a5a0f; }
.swot > div:nth-child(3) h4 { color: #234f7c; }
.swot > div:nth-child(4) h4 { color: #8b2f2f; }
.swot ul { margin: 0; padding-left: 1.05em; font-size: .9rem; color: var(--ink-2); }
.swot li { margin: 3px 0; }
@media (max-width: 560px) { .swot { grid-template-columns: 1fr; } .swot > div:nth-child(odd) { border-right: 0; } .swot > div:nth-child(even) { padding-left: 0; } }

/* Roadmap */
.rm { min-width: 860px; font-size: .82rem; }
.rm-head, .rm-lane { display: grid; grid-template-columns: 9.5em 1fr; }
.rm-head { grid-template-columns: 9.5em repeat(7, 1fr); border-bottom: 1px solid var(--ink); }
.rm-head span { padding: 6px 4px; font-weight: 650; color: var(--ink-2); font-stretch: 85%; }
.rm-lane { border-bottom: 1px solid var(--rule); }
.rm-label { padding: 12px 8px 12px 0; font-weight: 650; font-size: .86rem; }
.rm-bars { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-flow: row dense; gap: 5px 0; padding: 8px 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 7 - 1px), var(--rule) calc(100% / 7 - 1px), var(--rule) calc(100% / 7)); }
.rm-bars span { background: var(--flow-soft); color: var(--flow-deep); border-left: 3px solid var(--flow); border-radius: 4px; padding: 5px 8px; font-size: .78rem; font-weight: 550; line-height: 1.25; margin-right: 4px; }
.rm-bars span.sec { background: var(--signal-soft); color: #7a4d06; border-left-color: var(--signal); }
.rm-bars span.int { background: #e1ebf6; color: #234f7c; border-left-color: #3f7fbf; }

/* Hub diagram views */
.hub .cnode { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.hub[data-view="before"] .cnode { fill: var(--paper); stroke: var(--ink-3); stroke-dasharray: 4 3; }
.hub .v-before, .hub .v-after { transition: opacity .35s; }
.hub[data-view="after"] .v-before { opacity: 0; }
.hub[data-view="before"] .v-after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hub .v-before, .hub .v-after, .hub .cnode { transition: none; } }

/* Correlation heatmap (mock data) */
.heat { display: grid; grid-template-columns: 7.5em repeat(6, minmax(0, 1fr)); gap: 3px; font-size: .78rem; }
.heat .h { font-weight: 600; color: var(--ink-2); display: flex; align-items: center; line-height: 1.15; }
.heat .h.col { justify-content: center; text-align: center; padding-bottom: 4px; font-size: .72rem; }
.heat button { aspect-ratio: 1 / 1; border: 0; border-radius: 4px; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; font-stretch: 82%; cursor: pointer; color: var(--ink); }
.heat button:hover, .heat button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
@media (max-width: 560px) { .heat { grid-template-columns: 5.4em repeat(6, minmax(0, 1fr)); font-size: .68rem; } .heat .h.col { font-size: .6rem; } }

/* Intercompany explorer */
.icx-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.icx-map { position: sticky; top: 84px; }
@media (max-width: 1000px) { .icx-map { position: static; } }
@media (max-width: 1000px) { .icx-grid { grid-template-columns: 1fr; } }
.icx-map { overflow-x: auto; }
.icx-svg { min-width: 600px; }
.icx-box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.icx-chip { fill: var(--flow-soft); stroke: none; }
.icx-node { transition: opacity .25s; }
.icx-node.dim { opacity: .28; }
.icx-step circle, .icx-step line { transition: stroke-width .15s; }
.icx-step.hot line { stroke-width: 5; }
.icx-step.hot circle { r: 14; }
@keyframes icxDraw { to { stroke-dashoffset: 0; } }
.icx-steps h3 { margin-bottom: 6px; font-size: 1.25rem; }
.icx-list { counter-reset: none; margin-top: 14px; border-top: 1px solid var(--ink); }
.icx-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--rule); border-radius: 6px; animation: logIn .25s ease-out both; }
.icx-list li.hot { background: var(--paper); }
.icx-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .76rem; }
.icx-who { display: block; font-size: .76rem; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.icx-list b { font-weight: 600; font-size: .88rem; line-height: 1.32; display: block; }
.icx-list small { display: block; color: var(--ink-2); font-size: .78rem; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .icx-list li { animation: none; } }
.three > .panel, .two > .panel, .scorer .panel { margin-top: 0; }
.heat button { aspect-ratio: auto; height: 46px; }
@media (max-width: 560px) {
  .joblog-body { font-size: .7rem; height: 260px; padding: 12px 14px; }
  .joblog-body li { grid-template-columns: 1fr auto; gap: 8px; }
  .joblog-body li .t { display: none; }
  .race-row { grid-template-columns: 6.6em 1fr 4.4em; gap: 8px; }
  .hero .display { font-size: clamp(2.2rem, 10.4vw, 3rem); }
}
.map-hint { display: none; font-size: .82rem; color: var(--ink-2); margin: 0 0 8px; }
@media (max-width: 700px) { .map-hint { display: block; } }
