@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600&family=Newsreader:opsz,wght@6..72,300;6..72,400&display=swap");
/* Palette and type follow clarity.com: cream paper, warm ink, deep and pale
   teal, a light display serif over a neutral grotesk, and square hairline
   geometry. Their licensed faces are replaced by open stand-ins. */
:root {
  color-scheme: light;
  --paper: #fffaf4;
  --paper-2: #f5eee2;
  --panel: #fffdf9;
  --ink: #282424;
  --muted: #575757;
  --faint: #909090;
  --rule: #28242424;
  --rule-strong: #28242452;
  --hover: #f5eee2;
  --teal: #295a65;
  --teal-line: #9ddfee;
  --clear: #0b7a43;
  --clear-soft: #dff5e6;
  --review: #c2412f;
  --review-soft: #fbe3dc;
  --escalate: #6b2c00;
  --escalate-soft: #f1e1d3;
  --audit: #295a65;
  --audit-soft: #dcecef;
  --neutral: #909090;
  --line: var(--rule);
  --card: var(--paper);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font: 14px/1.4 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--paper);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #232020;
  --paper-2: #2c2828;
  --panel: #282424;
  --ink: #fffaf4;
  --muted: #c3bbb2;
  --faint: #8d8680;
  --rule: #fffaf41f;
  --rule-strong: #fffaf447;
  --hover: #2f2a2a;
  --teal: #234d57;
  --clear: #8fe3ab;
  --clear-soft: #8fe3ab1f;
  --review: #ff9a85;
  --review-soft: #ff9a851f;
  --escalate: #f0c08f;
  --escalate-soft: #f0c08f1f;
  --audit: #9ddfee;
  --audit-soft: #9ddfee1f;
  --neutral: #8d8680;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.band :focus-visible {
  outline-color: var(--teal-line);
}
[hidden] {
  display: none !important;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
}
sup {
  font-size: 0.6em;
  margin-left: 1px;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
}
svg use {
  pointer-events: none;
}
section[id] {
  scroll-margin-top: 64px;
}
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 0;
}
h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  margin-top: 14px;
}
h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  margin-top: 8px;
}
h3 {
  margin: 0;
}

/* Site header */
.site {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-size: 23px;
  font-weight: 300;
  letter-spacing: -0.05em;
  justify-self: start;
}
.wordmark span {
  color: var(--teal);
  font-weight: 500;
}
:root[data-theme="dark"] .wordmark span {
  color: var(--teal-line);
}
.site nav {
  display: flex;
  gap: 22px;
}
.site nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding-left: 8px;
  border-left: 1px solid var(--ink);
  line-height: 1;
  color: var(--muted);
}
.site nav a:hover,
.site nav a.active {
  color: var(--ink);
}
.site nav a.nav-code {
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
:root[data-theme="dark"] .site nav a.nav-code {
  color: var(--teal-line);
}
.site-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-btn {
  font-size: 14px;
  white-space: nowrap;
}
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#theme {
  font-size: 17px;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.btn > span:first-child {
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.btn-icon {
  width: 34px;
  display: grid;
  place-items: center;
  border-left: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
}
.btn:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--paper));
}
.btn svg,
.square-btn svg,
.orb svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn svg {
  fill: currentColor;
}
.square-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 18px;
}
.square-btn:hover:not(:disabled) {
  background: var(--hover);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-top: 64px;
  padding-bottom: 40px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.transport {
  display: flex;
  gap: 6px;
}
.speed {
  display: flex;
}
.speed button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  font: 500 12px var(--mono);
  color: var(--muted);
}
.speed button + button {
  border-left: 0;
}
.speed button[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.live i {
  width: 7px;
  height: 7px;
  background: var(--faint);
}
.live.on {
  color: var(--ink);
}
.live.on i {
  background: var(--clear);
  animation: blink 1.4s steps(2, jump-none) infinite;
}
.clock {
  font: 12px var(--mono);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.stripes {
  height: 58px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 1px,
    transparent 1px 10px
  );
  opacity: 0.85;
}

/* Stats */
.metrics {
  padding-top: 56px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat {
  display: grid;
  grid-template-rows: auto auto 30px auto;
  gap: 10px;
  padding: 0 22px 4px;
  border-left: 1px solid var(--rule-strong);
  min-width: 0;
}
.stat-value {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 4.4vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.stat-value small {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.stat h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.spark {
  width: 100%;
  height: 30px;
  overflow: visible;
  align-self: center;
}
.spark .area {
  fill: color-mix(in srgb, var(--teal-line) 45%, transparent);
}
.spark .line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
:root[data-theme="dark"] .spark .line {
  stroke: var(--teal-line);
}
.meter,
.stack {
  align-self: center;
  height: 6px;
  background: var(--paper-2);
  display: flex;
  gap: 2px;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--clear);
  transition: width 0.4s ease;
}
.tone-escalate .meter i {
  background: var(--escalate);
}
.stack {
  background: none;
}
.stack i {
  height: 100%;
  min-width: 6px;
  transition: flex-grow 0.4s ease;
}
.stack .p5 {
  background: var(--escalate);
}
.stack .p4 {
  background: var(--review);
}
.stack .p3 {
  background: color-mix(in srgb, var(--review) 45%, var(--paper));
}
.stack .p2,
.stack .p1 {
  background: var(--audit);
}
.stack .empty-bar {
  flex: 1;
  background: var(--paper-2);
}
.split {
  align-self: center;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.split span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral);
}
.dot.clear {
  background: var(--clear);
}
.dot.review {
  background: var(--review);
}
.dot.escalate {
  background: var(--escalate);
}
.dot.audit {
  background: var(--audit);
}
.about {
  margin: 22px 0 56px;
  font-size: 12px;
  color: var(--muted);
}
.about ul {
  margin: 10px 0 0;
  padding-left: 18px;
  max-width: 720px;
  display: grid;
  gap: 4px;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "+";
  width: 10px;
  font: 500 14px/1 var(--mono);
}
details[open] > summary::before {
  content: "−";
}
summary:hover {
  color: var(--ink);
}

/* Teal band */
.band {
  --paper: #295a65;
  --paper-2: #fffaf41a;
  --card: #295a65;
  --ink: #fffaf4;
  --muted: #fffaf4b3;
  --faint: #fffaf480;
  --rule: #fffaf42b;
  --rule-strong: #fffaf452;
  --hover: #fffaf412;
  --line: #fffaf42b;
  --clear: #aaf0c0;
  --clear-soft: #aaf0c026;
  --review: #ffb4a3;
  --review-soft: #ffb4a326;
  --escalate: #f3c99b;
  --escalate-soft: #f3c99b26;
  --audit: #9ddfee;
  --audit-soft: #9ddfee26;
  --neutral: #fffaf499;
  background: var(--paper);
  color: var(--ink);
  padding: 30px 0 34px;
}
:root[data-theme="dark"] .band {
  --paper: #234d57;
  --card: #234d57;
}
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}
.band h2 {
  max-width: 640px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.graph-scroll {
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 10px 0;
}
.graph {
  position: relative;
  aspect-ratio: 1000 / 420;
  min-width: 700px;
  margin: auto 0;
}
#wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wire-base {
  fill: none;
  stroke: color-mix(in srgb, var(--teal-line) 55%, transparent);
  stroke-linecap: butt;
  transition: stroke-width 0.5s ease;
}
.wire-base.clear {
  stroke: color-mix(in srgb, var(--clear) 60%, transparent);
}
.wire-base.review {
  stroke: color-mix(in srgb, var(--review) 60%, transparent);
}
.wire-base.escalate {
  stroke: color-mix(in srgb, var(--escalate) 60%, transparent);
}
.wire-flow {
  fill: none;
  stroke: var(--card);
  stroke-width: 1.2;
  stroke-dasharray: 1 9;
  opacity: 0;
  transition: opacity 0.4s;
}
.graph.running .wire-flow.used {
  opacity: 0.8;
  animation: flow 1.1s linear infinite;
}
.edge-label rect {
  fill: var(--card);
  stroke: var(--rule-strong);
  rx: 0;
}
.edge-label text {
  font: 500 13px var(--sans);
  font-variant-numeric: tabular-nums;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}
.edge-caption {
  font-size: 13px;
  fill: var(--muted);
}
.particle {
  stroke: var(--card);
  stroke-width: 1.5;
}
.particle.neutral {
  fill: #fffaf4;
}
.particle.clear {
  fill: var(--clear);
}
.particle.review {
  fill: var(--review);
}
.particle.escalate {
  fill: var(--escalate);
}
.particle.audit {
  fill: var(--audit);
}
.queue-dot {
  fill: var(--review);
}
.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}
.orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.orb svg {
  width: 20px;
  height: 20px;
}
.node:hover .orb {
  background: color-mix(in srgb, var(--card) 85%, #fffaf4);
}
.node[aria-pressed="true"] .orb {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}
.node.busy .orb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--teal-line);
  animation: breathe 1.2s ease-in-out infinite;
}
.node.clear .orb {
  background: var(--clear);
  border-color: var(--clear);
  color: #282424;
}
.node.review .orb {
  background: var(--review);
  border-color: var(--review);
  color: #282424;
}
.node.escalate .orb {
  background: var(--escalate);
  border-color: var(--escalate);
  color: #282424;
}
.node-text {
  display: grid;
  gap: 1px;
}
.node-text strong {
  font-size: 13px;
  font-weight: 500;
}
.node-text small {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.node-count {
  position: absolute;
  top: -9px;
  left: calc(50% + 16px);
  min-width: 24px;
  height: 19px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: #fffaf4;
  color: #282424;
  font: 600 11px var(--sans);
  font-variant-numeric: tabular-nums;
}
.node-count.bump {
  animation: bump 0.35s ease;
}
.feed-col {
  border-left: 1px solid var(--rule);
  padding: 14px 0 6px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.feed-head {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
}
.feed li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px 6px 8px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.feed li:hover {
  background: var(--hover);
}
.feed li.fresh {
  animation: slide-in 0.25s ease-out;
}
.feed time {
  font: 11px var(--mono);
  color: var(--faint);
}
.feed-title {
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-meta {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed .chip {
  grid-row: 1 / span 2;
  grid-column: 3;
}
.feed-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  color: var(--muted);
}
.chip.clear {
  color: var(--clear);
  background: var(--clear-soft);
}
.chip.review {
  color: var(--review);
  background: var(--review-soft);
}
.chip.escalate {
  color: var(--escalate);
  background: var(--escalate-soft);
}
.chip.audit {
  color: var(--audit);
  background: var(--audit-soft);
}
.chip.working::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  animation: breathe 1s ease-in-out infinite;
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 56px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 24px 26px 22px;
  min-width: 0;
}
.panel + .panel {
  border-left: 0;
}
.panel h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--teal);
}
:root[data-theme="dark"] .panel h3 {
  color: var(--teal-line);
}
.panel h3 {
  margin-bottom: 18px;
}
.panel h3 small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.strip {
  width: 100%;
  height: auto;
  overflow: visible;
}
.strip .axis {
  stroke: var(--rule-strong);
}
.strip .tick text {
  font: 11.5px var(--mono);
  fill: var(--faint);
}
.strip .tick line {
  stroke: var(--rule-strong);
}
.strip .threshold {
  stroke: var(--ink);
  stroke-dasharray: 2 3;
  opacity: 0.6;
}
.strip .threshold-label {
  font-size: 12.5px;
  fill: var(--muted);
}
.strip .zone-clear,
.strip .zone-review {
  fill: none;
}
.strip [rx] {
  rx: 0;
}
.strip circle {
  stroke: var(--panel);
  stroke-width: 1;
}
.strip circle.fresh {
  animation: pop 0.45s ease-out;
  transform-box: fill-box;
  transform-origin: center;
}
.strip .cluster-label {
  font-size: 13px;
  fill: var(--muted);
}
.strip .cluster-label tspan {
  font-weight: 600;
  fill: var(--ink);
}
.bars,
.reasons {
  display: grid;
  gap: 11px;
}
.bar-row,
.reasons li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}
.bar-row span:first-child {
  color: var(--muted);
}
.bar-track {
  height: 12px;
  background: var(--paper-2);
}
.bar-track i {
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}
.bar-row b,
.reasons b {
  font: 500 12px var(--mono);
  text-align: right;
}
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons li {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 24px;
}
.reasons li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reasons .bar-track i {
  background: var(--review);
}
.chart-empty {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* Queue */
.queue {
  margin-top: 64px;
  margin-bottom: 64px;
}
.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
}
.tabs button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--rule-strong);
  font-size: 13px;
  color: var(--muted);
}
.tabs button + button {
  border-left: 0;
}
.tabs button span {
  margin-left: 5px;
  font: 11px var(--mono);
  color: var(--faint);
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tabs button[aria-selected="true"] span {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.table-wrap {
  overflow: auto;
  max-height: 520px;
  border-top: 1px solid var(--ink);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 880px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-strong);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
  white-space: nowrap;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover td {
  background: var(--hover);
}
tbody tr.fresh td {
  animation: row-in 0.9s ease;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mono {
  font: 11.5px var(--mono);
  color: var(--muted);
}
.case-cell strong {
  display: block;
  font-weight: 500;
}
.prio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13px var(--mono);
  color: var(--faint);
}
.prio::before {
  content: "";
  width: 8px;
  height: 18px;
  background: var(--paper-2);
}
.prio.p5::before {
  background: var(--escalate);
}
.prio.p4::before {
  background: var(--review);
}
.prio.p3::before {
  background: color-mix(in srgb, var(--review) 45%, var(--paper));
}
.prio.p2::before,
.prio.p1::before {
  background: var(--audit);
}
.prio.p5,
.prio.p4,
.prio.p3,
.prio.p2,
.prio.p1 {
  color: var(--ink);
}
.signals {
  display: flex;
  gap: 4px;
}
.signal {
  padding: 2px 7px;
  border: 1px solid var(--rule-strong);
  font-size: 11px;
  color: var(--muted);
}
.empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 30px 0;
  margin: 0;
}

/* How it works */
.system {
  padding-top: 56px;
  padding-bottom: 72px;
}
.system h2 {
  max-width: 720px;
}
.system-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps li {
  padding: 0 26px 0 22px;
  border-left: 1px solid var(--rule-strong);
}
.step-no {
  display: block;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--faint);
  line-height: 1;
}
.steps h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.steps p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--muted);
}
.steps dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: 28px;
  margin: 20px 0 0;
}
.steps dt {
  font-size: 11px;
  color: var(--muted);
}
.steps dd {
  margin: 3px 0 0;
  grid-row: 2;
  font: 500 15px var(--mono);
}
.site-foot {
  background: #282424;
  color: #fffaf4;
  padding: 36px 0 40px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.site-foot .wordmark span {
  color: var(--teal-line);
}
.foot-text {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}
.site-foot p {
  margin: 0;
  max-width: 620px;
  font-size: 11px;
  font-style: italic;
  color: #fffaf4a6;
}
.site-foot .credit {
  font-size: 13px;
  font-style: normal;
  color: #fffaf4;
}
.site-foot .credit a {
  color: var(--teal-line);
  text-underline-offset: 3px;
}

/* Drawer */
.scrim {
  position: fixed;
  inset: 0;
  background: #28242459;
  z-index: 20;
  animation: fade 0.2s ease;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(500px, 100vw);
  z-index: 21;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.open {
  transform: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px 28px;
  border-bottom: 1px solid var(--rule-strong);
}
.drawer-head .eyebrow {
  font: 11.5px var(--mono);
  color: var(--muted);
}
.drawer-head h2 {
  font-size: 34px;
  margin-top: 8px;
}
.drawer-body {
  padding: 22px 28px 32px;
  overflow-y: auto;
  display: grid;
  gap: 24px;
  align-content: start;
}
.drawer section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}
.facts div {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.facts div:nth-child(odd) {
  padding-right: 12px;
}
.facts div:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.facts dt {
  font-size: 11px;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.path {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.path span {
  padding: 3px 9px;
  border: 1px solid var(--rule-strong);
}
.path span.skipped {
  text-decoration: line-through;
  color: var(--faint);
  border-style: dashed;
}
.path i {
  color: var(--faint);
  font-style: normal;
}
.path-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule-strong);
}
.score {
  padding: 14px 16px;
}
.score + .score {
  border-left: 1px solid var(--rule-strong);
}
.score small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.score b {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 4px 0 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.score .scale {
  position: relative;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clear),
    var(--review),
    var(--escalate)
  );
}
.score .scale i {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 14px;
  background: var(--ink);
  transform: translateX(-50%);
}
.pips {
  display: flex;
  gap: 3px;
}
.pips i {
  flex: 1;
  height: 4px;
  background: var(--paper-2);
}
.pips i.on {
  background: var(--review);
}
.pips.l5 i.on {
  background: var(--escalate);
}
.reason-list {
  display: grid;
  border-top: 1px solid var(--rule-strong);
}
.reason-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  position: relative;
  padding: 0 0 12px 20px;
  font-size: 13px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--faint);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--rule-strong);
}
.timeline li:last-child::after {
  display: none;
}
.timeline li.target::before {
  background: var(--review);
}
.timeline small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.quote {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.quote + .quote {
  margin-top: 10px;
}
.actions {
  display: flex;
}
.actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  font-size: 13px;
  font-weight: 500;
}
.actions button + button {
  border-left: 0;
}
.actions button:hover {
  background: var(--hover);
}
.actions button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.action-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted);
}
.fold {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.drawer-body > .fold + .fold {
  margin-top: -25px;
}
.fold > summary {
  width: 100%;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
}
.fold[open] > summary {
  padding-bottom: 10px;
}
.fold > :last-child:not(summary) {
  margin-bottom: 16px;
}
.fold pre {
  margin: 0;
  padding: 12px;
  background: var(--paper-2);
  font: 11px/1.5 var(--mono);
  overflow: auto;
  max-height: 300px;
}

/* Motion */
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
@keyframes breathe {
  50% {
    opacity: 0.3;
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -10;
  }
}
@keyframes bump {
  40% {
    transform: translateY(-3px);
  }
}
@keyframes slide-in {
  from {
    opacity: 0.4;
    transform: translateY(-4px);
  }
}
@keyframes row-in {
  from {
    background: color-mix(in srgb, var(--teal-line) 30%, var(--paper));
  }
}
@keyframes pop {
  from {
    transform: scale(2.4);
    opacity: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 1240px) {
  .stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 28px;
  }
  .stat {
    grid-column: span 2;
  }
  .stat:nth-child(n + 4) {
    grid-column: span 3;
  }
  .flow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-col {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
  }
  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .charts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .charts .panel-wide {
    grid-column: 1 / -1;
  }
  .charts .panel:nth-child(2) {
    border-left: 1px solid var(--rule);
    border-top: 0;
  }
  .charts .panel:nth-child(3) {
    border-top: 0;
  }
}
@media (max-width: 900px) {
  .wrap,
  .site {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site {
    grid-template-columns: auto 1fr;
  }
  .site nav a.nav-code {
    order: -1;
  }
  .site nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    gap: 18px;
  }
  .site nav a {
    white-space: nowrap;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat,
  .stat:nth-child(n + 4) {
    grid-column: auto;
  }
  .stat:last-child {
    grid-column: 1 / -1;
  }
  .band-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .legend {
    justify-content: flex-start;
  }
  .feed {
    grid-template-columns: minmax(0, 1fr);
  }
  .charts,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .charts .panel,
  .charts .panel:nth-child(2) {
    border-left: 1px solid var(--rule);
    border-top: 0;
  }
  .charts .panel:first-child {
    border-top: 1px solid var(--rule);
  }
  .steps {
    row-gap: 32px;
  }
  .site-foot .wrap {
    flex-direction: column;
  }
  .foot-text {
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .stat {
    padding: 0 12px 4px;
  }
  .split {
    flex-direction: column;
    gap: 2px;
  }
  .stat {
    grid-template-rows: auto auto 36px auto;
  }
}
