:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e4e4e4;
  --soft: #f7f7f7;
  --max: 1080px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, video { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 1.5px; }
code, .mono, .fact b, td.num, th.num { font-family: var(--mono); font-size: 0.86em; }
code { overflow-wrap: anywhere; }
p, li, h1, h2, h3, td, th { overflow-wrap: break-word; }
pre {
  margin: 0.8rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}
pre code { font-size: inherit; white-space: inherit; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); max-width: 100%; margin: 0 auto; }
.wrap > * { min-width: 0; max-width: 100%; }
.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.4rem 0;
}
.brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; flex: 0 0 auto; }
.nav-links {
  display: none;
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 0.15rem 0.85rem 0.35rem;
}
.nav.is-open .nav-links { display: flex; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 0.85rem; flex: 0 0 auto; margin-left: auto; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  height: 28px;
  padding: 0 0.45rem 0 0.55rem;
  cursor: pointer;
}
.nav-toggle svg { width: 12px; height: 12px; max-width: 12px; max-height: 12px; display: block; flex: 0 0 12px; }
.nav.is-open .nav-toggle svg { transform: rotate(180deg); }
.social { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; }
.social a { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--ink); flex: 0 0 18px; }
.social a:hover { color: var(--muted); }
.social svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; flex: 0 0 16px; fill: currentColor; display: block; }

header.hero { padding: 4.2rem 0 2.4rem; border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 560;
  margin: 0;
}
.subtitle {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.lede { max-width: 42rem; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.3rem 0 1.6rem; }
.links a {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  font-size: 13.5px;
}
.links a.ghost { border-color: var(--line); color: var(--muted); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { min-width: 0; padding: 0.9rem 1rem 1rem 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 1rem; }
.fact:last-child { border-right: 0; }
.fact span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 0.25rem; }
.fact b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.fact small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 0.15rem; overflow-wrap: anywhere; }

section { padding: 3.1rem 0; border-bottom: 1px solid var(--line); }
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 560;
  margin: 0 0 0.4rem;
}
h3 { font-size: 1rem; font-weight: 560; margin: 1.4rem 0 0.4rem; letter-spacing: -0.02em; }
.section-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
p { margin: 0.55rem 0; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

.pipe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.stage {
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem 0.8rem;
  min-height: 7.2rem;
}
.stage .n { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.stage strong { display: block; margin: 0.25rem 0 0.3rem; font-weight: 560; font-size: 14px; }
.stage p { margin: 0; color: var(--muted); font-size: 12.5px; }

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0.6rem 0 0.3rem;
}
th, td {
  text-align: left;
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-weight: 500; color: var(--muted); font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.8rem; margin-top: 1.2rem; }
.chart {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.chart.wide { grid-column: 1 / -1; }
.chart h3 { margin-top: 0; }
.chart .note { color: var(--muted); font-size: 12.5px; margin: 0.35rem 0 0.5rem; }
.chart svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.chart .src { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 0.4rem; overflow-wrap: anywhere; }
.legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0.2rem 0 0.4rem; }
.swatch { display: inline-block; width: 9px; height: 9px; margin-right: 0.3rem; vertical-align: -1px; }

.callout {
  border-left: 2px solid var(--ink);
  padding: 0.15rem 0 0.15rem 0.85rem;
  margin: 1rem 0;
}
.callout p { margin: 0.25rem 0; }

.report { max-width: 100%; min-width: 0; font-size: 14.5px; }
.report h1, .report h2, .report h3 { margin-top: 1.3rem; }
.report h1 { font-size: 1.2rem; }
.report h2 { font-size: 1.05rem; }
.report table { font-size: 12.5px; }
.error { color: #8a1f1f; font-family: var(--mono); font-size: 12.5px; }

footer {
  padding: 1.4rem 0 2.2rem;
  color: var(--muted);
  font-size: 13px;
}
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

@media (max-width: 860px) {
  body { font-size: 15px; }
  .facts, .pipe, .charts, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(odd), .fact:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }
  .fact:last-child { border-bottom: 0; }
  .chart.wide { grid-column: auto; }
  header.hero { padding-top: 2rem; }
  .wrap { width: min(var(--max), calc(100% - 1.4rem)); }
  section { padding: 2rem 0; }
  .links a { padding: 0.5rem 0.7rem; }
  h1 { font-size: 2.15rem; }
  .subtitle { font-size: 1.05rem; }
  .footer-bar { align-items: flex-start; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .nav-links, .nav.is-open .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .nav-links a { border: 0; padding: 0.15rem 0; font-size: 13px; }
}
