:root {
  --ink: #080a0c;
  --ink-2: #0d1115;
  --ink-3: #141a20;
  --panel: #10161b;
  --panel-2: #151d24;
  --paper: #e9e6df;
  --paper-2: #f4f1eb;
  --text: #f1efe9;
  --muted: #9ba6af;
  --muted-2: #77838d;
  --line: rgba(222, 230, 235, 0.14);
  --line-strong: rgba(222, 230, 235, 0.28);
  --blue: #39a8ff;
  --blue-2: #0f6fc7;
  --cyan: #7fd9ff;
  --amber: #d9a441;
  --red: #d96d62;
  --green: #70bd91;
  --radius: 2px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  --max: 1240px;
  --measure: 72ch;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 82% -4%, rgba(57, 168, 255, 0.09), transparent 32rem),
    linear-gradient(180deg, var(--ink) 0%, #0a0d10 100%);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.65rem 0.9rem;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.portfolio-rail {
  border-bottom: 1px solid var(--line);
  background: #07090b;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-rail .wrap {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.portfolio-rail .wrap::-webkit-scrollbar {
  display: none;
}

.portfolio-parent {
  color: var(--text);
  font-weight: 800;
}

.portfolio-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portfolio-item::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  content: "";
}

.portfolio-item.current {
  color: var(--cyan);
}

.portfolio-item.current::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(57, 168, 255, 0.12);
}

.portfolio-item.in_development {
  color: var(--cyan);
}

.portfolio-badge {
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(217, 164, 65, 0.38);
  color: var(--amber);
  font-size: 0.55rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.92);
  backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: grid;
  min-height: 74px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(127, 217, 255, 0.55);
  background:
    linear-gradient(90deg, transparent 47%, rgba(127, 217, 255, 0.45) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgba(127, 217, 255, 0.45) 48% 52%, transparent 53%);
  place-items: center;
}

.brand-mark::after {
  width: 6px;
  height: 6px;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(57, 168, 255, 0.8);
  content: "";
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.45rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 17px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.utility-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(57, 168, 255, 0.45);
  color: var(--cyan);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(57, 168, 255, 0.07) 1px, transparent 1px) 50% 0 / 96px 96px,
    linear-gradient(rgba(57, 168, 255, 0.05) 1px, transparent 1px) 50% 0 / 96px 96px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: 6rem;
  right: -11rem;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(57, 168, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(57, 168, 255, 0.025),
    0 0 0 10rem rgba(57, 168, 255, 0.018);
  content: "";
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 690px;
  align-items: center;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: 6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--cyan);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
.display {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 17ch;
  font-size: clamp(3.35rem, 6.5vw, 6.6rem);
}

.hero-copy {
  max-width: 64ch;
  margin-top: 1.55rem;
  color: #c8d0d6;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(57, 168, 255, 0.52);
  background: var(--blue);
  color: #03111c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button::after {
  content: "→";
}

.hero-instrument {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(12, 16, 20, 0.78);
  box-shadow: var(--shadow);
}

.instrument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.instrument-head::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.12);
  content: "";
}

.instrument-grid {
  display: grid;
  gap: 0.9rem;
  padding-top: 1.1rem;
}

.instrument-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.instrument-row:last-child {
  border-bottom: 0;
}

.instrument-row dt {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instrument-row dd {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  text-align: right;
}

.status-band {
  border-bottom: 1px solid var(--line);
  background: #0a0e12;
}

.status-band .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.status-cell {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
}

.status-cell:first-child {
  border-left: 1px solid var(--line);
}

.status-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-value {
  overflow: hidden;
  color: #d7dde1;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.section.paper {
  background: var(--paper);
  color: #151719;
}

.section-head {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 3rem;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
}

.section-head h2 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.8vw, 5.2rem);
}

.section-head p {
  max-width: 58ch;
  color: var(--muted);
}

.paper .section-head p {
  color: #5e6265;
}

.kicker {
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--panel);
}

.card.paper-card {
  background: var(--paper-2);
}

.card h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  line-height: 1.05;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.paper-card p {
  color: #606467;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-card .card-link {
  color: #075a9d;
}

.card-link::after {
  content: "→";
}

.card-index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tag.blue {
  border-color: rgba(57, 168, 255, 0.42);
  color: var(--cyan);
}

.tag.amber {
  border-color: rgba(217, 164, 65, 0.42);
  color: var(--amber);
}

.tag.red {
  border-color: rgba(217, 109, 98, 0.42);
  color: #ef9b92;
}

.tag.green {
  border-color: rgba(112, 189, 145, 0.42);
  color: #9ed6b5;
}

.metric {
  min-height: 230px;
}

.metric-value {
  display: block;
  margin: 2.1rem 0 0.6rem;
  color: var(--text);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.metric-note {
  display: block;
  margin-top: 1rem;
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.45;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
}

.pipeline-step {
  position: relative;
  min-height: 180px;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.pipeline-step:last-child {
  border-right: 0;
}

.pipeline-step::after {
  position: absolute;
  z-index: 2;
  top: 2rem;
  right: -5px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: var(--panel);
  content: "";
  transform: rotate(45deg);
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step .number {
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
}

.pipeline-step h3 {
  margin: 2.1rem 0 0.6rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-step p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.pipeline-step.complete h3 {
  color: var(--cyan);
}

.pipeline-step.required h3,
.pipeline-step.blocked h3 {
  color: var(--amber);
}

.pipeline-step.required,
.pipeline-step.blocked {
  background: #18150f;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  top: -11rem;
  right: -10rem;
  width: 33rem;
  height: 33rem;
  border: 1px solid rgba(57, 168, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(3.1rem, 6vw, 6.7rem);
}

.page-subtitle {
  max-width: 66ch;
  margin-top: 1.6rem;
  color: #c5cdd3;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.decision-clock {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.clock-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.clock-row:last-child {
  border-bottom: 0;
}

.clock-date {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.clock-title {
  font-size: 0.88rem;
}

.clock-state {
  justify-self: end;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #d1d7db;
  font-size: 0.78rem;
}

tr:last-child td {
  border-bottom: 0;
}

.claim-id {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.63rem;
}

.prose {
  max-width: var(--measure);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 3.5rem;
  font-size: clamp(2rem, 3.7vw, 3.7rem);
}

.prose h3 {
  margin-top: 2.4rem;
  font-size: 1.65rem;
}

.prose p,
.prose li {
  color: #c8d0d5;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  margin-block: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--blue);
  background: var(--panel);
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-health {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.source-health-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 140px minmax(0, 1.4fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--panel);
}

.source-health-row strong {
  font-size: 0.82rem;
}

.source-health-row p {
  color: var(--muted);
  font-size: 0.74rem;
}

.demo-banner {
  border-bottom: 1px solid rgba(217, 164, 65, 0.42);
  background: rgba(217, 164, 65, 0.1);
  color: #f1c975;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.demo-banner .wrap {
  padding-block: 0.65rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.decision-cell {
  min-height: 210px;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.decision-cell:last-child {
  border-right: 0;
}

.decision-cell h3 {
  margin: 2.3rem 0 0.6rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.decision-cell p {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(126deg, transparent 23%, rgba(57, 168, 255, 0.13) 23.3% 23.6%, transparent 23.9%),
    linear-gradient(33deg, transparent 52%, rgba(57, 168, 255, 0.1) 52.3% 52.6%, transparent 52.9%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--panel);
}

.map-node {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(57, 168, 255, 0.55);
  background: #0b1116;
  color: var(--cyan);
  font-size: 0.63rem;
  font-weight: 900;
  place-items: center;
}

.map-node::after {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  width: 130px;
  color: var(--muted);
  content: attr(data-label);
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
}

.footer {
  padding-block: 3.8rem;
  background: #06080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 3rem;
}

.footer p {
  max-width: 55ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.footer-links strong {
  margin-bottom: 0.5rem;
  color: var(--muted-2);
  font-size: 0.59rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links a {
  color: #c2c9ce;
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.62rem;
}

.change-stack {
  display: grid;
  gap: 1rem;
}

.change-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 7rem;
}

.change-card-head,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.change-card h3 {
  max-width: 28ch;
  margin: 1.4rem 0 0.85rem;
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
}

.change-summary {
  max-width: var(--measure);
  color: #d7dde1;
}

.change-meta {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.change-meta div {
  padding: 0.8rem;
  border-right: 1px solid var(--line);
}

.change-meta div:last-child {
  border-right: 0;
}

.change-meta dt,
.change-diff strong,
.change-why strong,
.change-next strong,
.change-sources strong {
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.change-meta dd {
  margin-top: 0.25rem;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.change-diff {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.change-diff > div {
  padding: 1rem;
}

.change-diff > div + div {
  border-left: 1px solid var(--line);
}

.change-diff p,
.change-why p,
.change-next,
.change-sources {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.change-why {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 2px solid var(--blue);
  background: rgba(57, 168, 255, 0.045);
}

.change-sources a,
.dossier-article a,
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(127, 217, 255, 0.35);
  text-underline-offset: 0.2em;
}

.filter-bar {
  margin-bottom: 1.2rem;
}

.filter-button {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active,
.filter-button[aria-pressed="true"] {
  border-color: rgba(57, 168, 255, 0.6);
  background: rgba(57, 168, 255, 0.1);
  color: var(--cyan);
}

.dossier-feature {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.dossier-feature h2 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
}

.dossier-dek {
  max-width: 62ch;
  margin: 1.4rem 0;
  color: #53585c;
  font-size: 1.08rem;
}

.byline {
  margin: 1rem 0 1.6rem;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.paper .byline {
  color: #606467;
}

.dossier-thesis {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(8, 10, 12, 0.2);
  background: var(--paper-2);
}

.dossier-thesis p {
  margin-top: 1.2rem;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.55rem, 2.7vw, 2.6rem);
  line-height: 1.1;
}

.section-action {
  margin-top: 1.5rem;
}

.dossier-article .wrap {
  max-width: 940px;
}

.dossier-lede {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.dossier-lede > p:not(.kicker):not(.byline) {
  max-width: 30ch;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.dossier-body {
  max-width: 780px;
}

.dossier-section + .dossier-section {
  margin-top: 3.5rem;
}

.dossier-section h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.dossier-section p {
  max-width: var(--measure);
  margin-top: 1rem;
  color: #d2d8dc;
  font-size: 1.02rem;
}

.dossier-section p.analysis {
  padding-left: 1rem;
  border-left: 2px solid var(--amber);
  color: #c6c0b5;
}

.analysis-label {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--amber);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-change-lane][hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .site-header .wrap {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    display: none;
    padding: 1.2rem max(1.5rem, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: #090c0f;
    flex-direction: column;
  }

  .nav.open {
    display: flex;
  }

  .utility-link {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr 0.55fr;
  }

  .status-band .wrap {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-cell:nth-child(4),
  .status-cell:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .pipeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .pipeline-step:nth-child(4) {
    border-right: 0;
  }

  .pipeline-step:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(calc(100% - 2rem), var(--max));
  }

  .portfolio-rail .wrap {
    gap: 0.9rem;
  }

  .site-header .wrap {
    min-height: 66px;
  }

  .nav {
    top: 66px;
  }

  .hero,
  .hero .wrap {
    min-height: auto;
  }

  .hero .wrap {
    display: block;
    padding-block: 4.5rem;
  }

  .hero-instrument {
    margin-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5.1rem);
  }

  .status-band .wrap {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .status-cell {
    border-top: 1px solid var(--line);
  }

  .status-cell:first-child,
  .status-cell:nth-child(2) {
    border-top: 0;
  }

  .status-cell:nth-child(odd) {
    border-left: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 1.4rem;
  }

  .change-meta,
  .change-diff,
  .dossier-feature {
    grid-template-columns: 1fr;
  }

  .change-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .change-meta div:last-child {
    border-bottom: 0;
  }

  .change-diff > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .filter-button {
    flex: 1 1 44%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline-step:nth-child(n + 5) {
    border-top: 0;
  }

  .pipeline-step::after {
    top: auto;
    right: 2rem;
    bottom: -5px;
    transform: rotate(135deg);
  }

  .clock-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .clock-state {
    justify-self: start;
  }

  .source-health-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-cell {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-cell:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand {
    font-size: 0.65rem;
    letter-spacing: 0.13em;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .status-band .wrap {
    grid-template-columns: 1fr;
  }

  .status-cell,
  .status-cell:first-child,
  .status-cell:nth-child(2) {
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .status-cell:first-child {
    border-top: 0;
  }

  .filter-button {
    flex-basis: 100%;
  }
}

@media print {
  .portfolio-rail,
  .site-header,
  .hero-actions,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section,
  .page-hero {
    border-color: #ccc;
    background: white;
    color: black;
  }

  .card,
  .pipeline-step,
  .clock-row,
  .source-health-row,
  table {
    border-color: #bbb;
    background: white;
    color: black;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
