@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0d0e;
  --bg-raised: #131517;
  --bg-sunk: #08090a;
  --line: #24272b;
  --line-strong: #383c42;
  --text: #ebe9e4;
  --text-2: #b3b5b9;
  --muted: #84888e;
  --oxide: #cf5b2e;
  --oxide-tint: rgba(207, 91, 46, 0.14);
  --amber: #e2a640;
  --amber-tint: rgba(226, 166, 64, 0.09);
  --amber-line: rgba(226, 166, 64, 0.5);
  --steel: #50545a;
  --focus: #f0b45a;
  --pit: 0.55;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: 32px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef0;
  --bg-raised: #fbfbfc;
  --bg-sunk: #e1e4e7;
  --line: #d2d6db;
  --line-strong: #b4bac1;
  --text: #121417;
  --text-2: #3b4046;
  --muted: #5d6269;
  --oxide: #b4481e;
  --oxide-tint: rgba(180, 72, 30, 0.1);
  --amber: #a26706;
  --amber-tint: rgba(196, 132, 20, 0.1);
  --amber-line: rgba(162, 103, 6, 0.55);
  --steel: #a9afb6;
  --focus: #a26706;
  --pit: 0.35;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-width: 320px;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
button {
  font: inherit;
  color: inherit;
}
code {
  font-family: var(--mono);
  font-size: 0.8em;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 1304px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--bg);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--text);
}
.brand-domain {
  font-family: var(--mono);
  font-size: 12.5px;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
.tag {
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px 2px;
}
.topnav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.topnav a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.topnav a:hover {
  color: var(--text);
  background: var(--bg-raised);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--bg-raised);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
[data-theme="dark"] .i-moon,
[data-theme="light"] .i-sun {
  display: none;
}

/* Status glyphs: color is never the only signal, the label always ships with it. */
.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.st::before,
.st-dot {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  border: 1px solid var(--steel);
}
[data-status="done"].st::before,
.st-dot[data-status="done"] {
  background: var(--oxide);
  border-color: var(--oxide);
}
[data-status="in_progress"].st::before,
.st-dot[data-status="in_progress"] {
  border-color: var(--amber);
  background: linear-gradient(90deg, var(--amber) 50%, transparent 50%);
}
.st:empty {
  gap: 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  grid-template-areas:
    "copy readout"
    "kpis readout"
    "inst inst";
  column-gap: 64px;
  padding-top: 36px;
  padding-bottom: 72px;
}
.hero-copy {
  grid-area: copy;
  align-self: start;
}
.pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-raised);
}
.pill > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  white-space: nowrap;
}
.pill > span + span {
  border-left: 1px solid var(--line);
}
.pill-now {
  color: var(--text);
}
.pill-now .st {
  margin-right: 2px;
}
.pill-now b {
  font-weight: 650;
}
.pill-k {
  color: var(--muted);
}
.pill code {
  color: var(--text);
}

h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.1vw, 76px);
  font-weight: 760;
  font-stretch: 116%;
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lede {
  margin-top: 24px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Phase readout */
.readout {
  grid-area: readout;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 20px 22px 20px;
  display: flex;
  flex-direction: column;
}
.ro-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ro-id {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  font-stretch: 88%;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  padding-top: 2px;
}
.ro-titles {
  display: grid;
  gap: 4px;
}
.ro-title {
  font-size: 19px;
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
}
.ro-summary {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.ro-facts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.ro-facts > div {
  padding: 10px 0 10px 12px;
}
.ro-facts > div:first-child {
  padding-left: 0;
}
.ro-facts > div + div {
  border-left: 1px solid var(--line);
}
.ro-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.ro-facts dd {
  font-size: 17px;
  font-weight: 600;
  font-stretch: 108%;
}
.ro-facts dd code {
  font-size: 13px;
  font-weight: 450;
}
.ro-list {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}
.ro-list > li {
  display: grid;
  grid-template-columns: 64px auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 7px;
}
.ro-list > li > .ro-tickets {
  grid-column: 1 / -1;
}
.ro-list > li.ro-deliv {
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 10px;
  color: var(--text-2);
}
.ro-key {
  color: var(--text);
  font-weight: 560;
}
.ro-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tk {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-stretch: 88%;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.tk[data-status="in_progress"] {
  border-color: var(--amber-line);
  background: var(--amber-tint);
}
.tk[data-status="done"] {
  border-color: var(--oxide);
  background: var(--oxide-tint);
}
.tk-w {
  color: var(--muted);
}
.ro-muted {
  color: var(--muted);
}
.ro-empty {
  margin-top: 14px;
  font-size: 13.5px;
}
.ro-crates {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: var(--text-2);
}
.ro-crates > span {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.ro-crates code {
  font-size: 11px;
}

/* The rule: a caliper scale whose ported share oxidizes. */
.instrument {
  grid-area: inst;
  margin-top: 44px;
}
.rule-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rule-caption {
  font-size: 13.5px;
  color: var(--muted);
}
.rule-caption b {
  color: var(--text);
  font-weight: 600;
}
.legend {
  display: flex;
  gap: 18px;
}

.rule-track {
  position: relative;
  display: grid;
  grid-template-rows: 28px 44px 12px 18px;
}
.rule-labels,
.rule-bar,
.rule-nums {
  position: relative;
}
.rule-label {
  position: absolute;
  top: 0;
  display: flex;
  gap: 8px;
  padding-left: 1px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.rule-label b {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  font-stretch: 88%;
}
.rule-label > span {
  display: none;
}
.rule-label.is-wide > span {
  display: inline;
}
.rule-label[data-focus="true"] {
  color: var(--text);
}

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-right: 2px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunk);
  overflow: hidden;
  /* width comes inline; keep a 2px seam between phases */
  clip-path: inset(0 2px 0 0);
}
.seg[data-status="in_progress"] {
  border-color: var(--amber-line);
  background:
    repeating-linear-gradient(-45deg, var(--amber-line) 0 1px, transparent 1px 7px),
    var(--amber-tint);
}
.seg[data-status="done"] {
  border-color: var(--oxide);
}
.seg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  transform-origin: left center;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0) 38%,
      rgba(0, 0, 0, 0.2)
    ),
    var(--oxide);
}
/* Static pitting texture: rasterized once, never animated. */
.seg-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='88'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9 .32' numOctaves='3' seed='14' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  2.6 0 0 0 -1.25'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 88px;
  opacity: var(--pit);
}
.js:not(.is-ready) .seg-fill {
  transform: scaleX(0);
}
.is-ready .seg-fill {
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
.seg[data-focus="true"] {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.rule-needle {
  position: absolute;
  top: 20px;
  height: calc(8px + 44px + 12px);
  width: 0;
  border-left: 1.5px solid var(--text);
  transform: translateX(-1px);
  pointer-events: none;
}
.rule-needle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5.5px;
  border: 5px solid transparent;
  border-top: 6px solid var(--text);
  border-bottom: 0;
}
.rule-ticks {
  display: block;
  width: 100%;
  height: 12px;
  overflow: visible;
}
.rule-ticks line {
  stroke: var(--line-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}
.rule-ticks .t-major {
  stroke: var(--muted);
}
.rule-nums span {
  position: absolute;
  top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-stretch: 88%;
  color: var(--muted);
  transform: translateX(-50%);
}
.rule-nums span:first-child {
  transform: none;
}
.rule-nums span:last-child {
  transform: translateX(-100%);
}

/* Milestones */
.milestones {
  margin-top: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.milestones li {
  display: flex;
}
.ms {
  flex: 1;
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  padding: 12px 14px 14px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.milestones li:last-child .ms {
  border-right: 0;
}
.ms:hover {
  background: var(--bg-raised);
}
.ms[aria-pressed="true"] {
  background: var(--bg-raised);
  border-top: 2px solid var(--text);
  padding-top: 11px;
}
.ms-id {
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 88%;
  color: var(--muted);
}
.ms[aria-pressed="true"] .ms-id {
  color: var(--text);
}
.ms-title {
  font-size: 15px;
  font-weight: 620;
  font-stretch: 104%;
  line-height: 1.25;
}
.ms-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 2px;
}
.ms-meta .st {
  font-size: 12.5px;
}
.ms-sub {
  font-size: 12px;
  color: var(--muted);
}
.ms-sub code {
  font-size: 10.5px;
}

/* KPIs */
.kpis {
  grid-area: kpis;
  align-self: end;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.kpi {
  position: relative;
  padding: 16px 18px 18px;
}
.kpi:first-child {
  padding-left: 0;
}
.kpi + .kpi {
  border-left: 1px solid var(--line);
}
.kpi dt {
  font-size: 13.5px;
  font-weight: 540;
  color: var(--text-2);
}
.kpi-value {
  white-space: nowrap;
  margin-top: 8px;
  font-size: 40px;
  font-weight: 680;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
}
.kpi-empty {
  color: var(--steel);
  font-weight: 400;
}
.kpi-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.kpi-meter {
  margin-top: 12px;
  height: 2px;
  background: var(--line);
}
.kpi-meter span {
  display: block;
  height: 100%;
  background: var(--oxide);
}

/* Section bands */
.band {
  border-top: 1px solid var(--line);
  padding-block: 88px;
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 72px;
  align-items: baseline;
  margin-bottom: 44px;
}
.sec-head h2 {
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 720;
  font-stretch: 114%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sec-head p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* Crate map */
.map {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 28px 28px 24px;
}
.cm {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.map-narrow {
  display: none;
}
.cm-layer line {
  stroke: var(--line-strong);
}
.cm-layer text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
}
.cm-crate {
  cursor: pointer;
  outline: none;
}
.cm-crate rect {
  fill: var(--bg);
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: stroke 120ms;
}
.cm-crate[data-status="in_progress"] rect {
  fill: var(--amber-tint);
  stroke: var(--amber-line);
}
.cm-crate[data-status="done"] rect {
  fill: var(--oxide-tint);
  stroke: var(--oxide);
}
.cm-crate .cm-mark {
  fill: none;
  stroke: var(--steel);
}
.cm-crate[data-status="in_progress"] .cm-mark {
  fill: var(--amber);
  stroke: var(--amber);
}
.cm-crate[data-status="done"] .cm-mark {
  fill: var(--oxide);
  stroke: var(--oxide);
}
.cm-crate[data-focus="true"] > rect:first-child {
  stroke: var(--text);
  stroke-width: 1.5;
}
.cm-crate:hover > rect:first-child {
  stroke: var(--text);
}
.cm-crate:focus-visible > rect:first-child {
  stroke: var(--focus);
  stroke-width: 2;
}
.cm-name {
  fill: var(--text);
  font-family: var(--mono);
  font-weight: 500;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
.cm-sub {
  fill: var(--muted);
  font-family: var(--mono);
  font-stretch: 88%;
}
.cm-narrow .cm-name {
  font-stretch: 75%;
  letter-spacing: -0.02em;
}

/* Explorer */
.explorer {
  margin-top: 56px;
}
.ex-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.ex-title {
  font-size: 20px;
  font-weight: 650;
  font-stretch: 108%;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.segctl {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
}
.segctl button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.segctl button + button {
  border-left: 1px solid var(--line);
}
.segctl button:hover {
  background: var(--bg-raised);
  color: var(--text);
}
.segctl button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.segctl button[aria-pressed="true"] .segctl-n {
  color: inherit;
  opacity: 0.7;
}
.segctl button[aria-pressed="true"] .st-dot:not([data-status="done"]) {
  border-color: currentColor;
}
.segctl-n {
  color: var(--muted);
  font-size: 12px;
}
.segctl button:focus-visible {
  outline-offset: -2px;
}

.ex-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 140px 250px 150px;
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.ex-colhead {
  font-size: 12.5px;
  color: var(--muted);
  padding-block: 8px;
  border-top: 0;
}
.ex-group {
  margin-top: 0;
}
.ex-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--line-strong);
  font-size: 16px;
  font-weight: 640;
  font-stretch: 106%;
}
.ex-hid {
  width: 96px;
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  font-stretch: 88%;
  color: var(--muted);
}
.ex-head .st {
  font-weight: 400;
  font-stretch: 100%;
}
.ex-hn {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  font-stretch: 100%;
}
.ex-id {
  font-family: var(--mono);
  font-size: 12px;
  font-stretch: 88%;
}
.ex-work {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.ex-crate {
  font-size: 11px;
  color: var(--text-2);
}
.ex-dim {
  color: var(--muted);
  font-size: 13px;
}
.ex-assigned {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.ex-assigned code {
  font-size: 11.5px;
}
.ex-row.is-muted .ex-work {
  color: var(--muted);
}
.parity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.parity-n {
  font-weight: 560;
}
.parity-bar {
  width: 56px;
  height: 2px;
  background: var(--line-strong);
}
.parity-bar span {
  display: block;
  height: 100%;
  background: var(--oxide);
}
.ex-empty {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-2);
}
.btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  cursor: pointer;
}
.btn:hover {
  background: var(--bg-raised);
}

/* Engine */
.engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 40px;
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
}
.stage + .stage::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 38px;
  width: 26px;
  border-top: 1px solid var(--line-strong);
}
.stage + .stage::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 34px;
  border: 4.5px solid transparent;
  border-left: 6px solid var(--line-strong);
  border-right: 0;
}
.stage-role {
  font-size: 13px;
  font-weight: 560;
  color: var(--muted);
}
.stage-model {
  font-size: 22px;
  font-weight: 680;
  font-stretch: 110%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.stage-x {
  color: var(--oxide);
  margin-right: 6px;
}
.stage-does {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.stage-stat {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.stage-stat code {
  color: var(--text);
}
.stage-workers .stage-stat {
  margin-top: 6px;
}
.lanes {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.lanes li {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  height: 30px;
  font-size: 13px;
}
.lane-id {
  color: var(--text);
}
.lane-track {
  height: 0;
  border-top: 1px dashed var(--line-strong);
}
.lanes .st {
  font-size: 12.5px;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 4px;
}
.pillar:first-child {
  padding-left: 0;
}
.pillar:last-child {
  padding-right: 0;
}
.pillar + .pillar {
  border-left: 1px solid var(--line);
}
.pillar h3 {
  font-size: 20px;
  font-weight: 660;
  font-stretch: 108%;
  line-height: 1.2;
}
.pillar p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.pillar dl {
  margin-top: auto;
  padding-top: 22px;
}
.pillar dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.pillar dt {
  color: var(--muted);
}
.pillar dd {
  text-align: right;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
}
.foot-in {
  display: grid;
  gap: 10px;
  padding-block: 28px 40px;
  font-size: 13px;
  color: var(--muted);
}
.foot-source code {
  color: var(--text-2);
}

/* Tablet */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "kpis" "inst" "readout";
  }
  .readout {
    margin-top: 32px;
  }
  .instrument {
    margin-top: 40px;
  }
  .readout {
    min-height: 0;
  }
  .milestones {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .milestones li:nth-child(3) .ms {
    border-right: 0;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .engine {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .stage + .stage::before {
    left: 34px;
    top: -27px;
    width: 0;
    height: 20px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
  .stage + .stage::after {
    left: 30px;
    top: -10px;
    border: 4.5px solid transparent;
    border-top: 6px solid var(--line-strong);
    border-bottom: 0;
  }
  .ex-row {
    grid-template-columns: 80px minmax(0, 1fr) 130px 200px 120px;
  }
  .ex-hid {
    width: 80px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --pad: 20px;
  }
  .topnav {
    display: none;
  }
  .theme-toggle {
    margin-left: auto;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 52px;
  }
  .kpis {
    margin-top: 28px;
  }
  .pill {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 10px;
  }
  .pill > span {
    padding: 7px 12px;
    white-space: normal;
  }
  .pill > span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .rule-label b {
    font-size: 9.5px;
    letter-spacing: -0.03em;
  }
  h1 {
    margin-top: 20px;
    font-size: 44px;
    font-stretch: 108%;
  }
  .lede {
    font-size: 16.5px;
  }
  .legend {
    gap: 14px;
  }
  .legend .st {
    font-size: 12px;
  }
  .rule-track {
    grid-template-rows: 26px 32px 10px 18px;
  }
  .rule-needle {
    top: 18px;
    height: calc(8px + 32px + 10px);
  }
  .rule-ticks {
    height: 10px;
  }
  .rule-ticks .t-minor {
    display: none;
  }
  .rule-label.is-wide > span {
    display: none;
  }
  .milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .milestones li .ms,
  .milestones li:nth-child(3) .ms {
    border-right: 1px solid var(--line);
  }
  .milestones li:nth-child(2n) .ms {
    border-right: 0;
  }
  .ms {
    padding: 11px 12px 13px;
  }
  .readout {
    padding: 18px 18px 20px;
  }
  .ro-list > li {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .ro-list > li .ro-tickets,
  .ro-list > li > .ro-muted {
    grid-column: 1 / -1;
  }
  .kpi {
    padding: 16px 0 18px 16px;
  }
  .kpi:nth-child(odd) {
    padding-left: 0;
  }
  .kpi-value {
    font-size: 34px;
  }
  .kpi-note {
    font-size: 12.5px;
  }
  .band {
    padding-block: 60px;
  }
  .sec-head {
    margin-bottom: 28px;
  }
  .sec-head p {
    font-size: 16px;
  }
  .map {
    padding: 0;
    border: 0;
    background: none;
  }
  .map-wide {
    display: none;
  }
  .map-narrow {
    display: block;
  }
  .explorer {
    margin-top: 44px;
  }
  .ex-colhead {
    display: none;
  }
  .ex-head {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .ex-hid {
    width: auto;
  }
  .ex-hn {
    margin-left: 0;
    width: 100%;
  }
  .ex-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id status"
      "work work"
      "assigned parity";
    gap: 6px 12px;
    padding: 12px 0;
  }
  .ex-id {
    grid-area: id;
  }
  .ex-id:empty {
    display: none;
  }
  .ex-row:has(.ex-id:empty) {
    grid-template-areas:
      "work status"
      "assigned parity";
  }
  .ex-work {
    grid-area: work;
  }
  .ex-status {
    grid-area: status;
    justify-self: end;
  }
  .ex-assigned {
    grid-area: assigned;
  }
  .ex-parity {
    grid-area: parity;
    justify-self: end;
  }
  .ex-assigned:has(> .ex-dim:only-child),
  .ex-parity:has(> .ex-dim:only-child) {
    display: none;
  }
  .filters,
  .segctl {
    width: 100%;
  }
  .segctl {
    overflow-x: auto;
  }
  .segctl button {
    flex: 1 0 auto;
    justify-content: center;
    padding: 0 9px;
  }
  .stage {
    padding: 18px;
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar,
  .pillar:first-child,
  .pillar:last-child {
    padding: 22px 0 8px;
  }
  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-ready .seg-fill,
  .cm-crate rect {
    transition: none;
  }
  .js:not(.is-ready) .seg-fill {
    transform: none;
  }
}
