/* VETPOC Labs — research site
   Paper and ink, deep navy, copper. Serif headlines, sans interface.
   Enterprise Conscience stays teal. Digital Judiciary uses a copper-maroon
   so the judiciary track sits in the same metal family as the lab accent. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #f6f3ec;
  --surface: #fffcf7;
  --surface-2: #efeae1;
  --ink: #16202e;
  --muted: #3e4a5a;
  --line: #ddd4c6;
  --navy: #0f2744;
  --navy-2: #16365c;
  --copper: #8a4b22;
  --copper-line: #b86b2e;
  --ec: #2f5d7c;
  --ec-deep: #1f4d68;
  --dj: #8a3e2e;
  --ec-soft: #e4eef3;
  --dj-soft: #f8efe8;
  --ok: #1e5c3a;
  --warn: #7a4e0d;
  --on-navy: #f4efe6;
  --on-navy-muted: #d9d3c8;
  --copper-on-navy: #f0c39a;
  --focus: #0f2744;
  --radius: 12px;
  --maxw: 1120px;
  --header: 4.75rem;
  --serif: "Source Serif 4", "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Liberation Sans", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(22, 32, 46, 0.04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121820;
    --surface: #1a222d;
    --surface-2: #232c39;
    --ink: #e8e4da;
    --muted: #b7c0cc;
    --line: #334052;
    --navy: #0c1c33;
    --navy-2: #1b3d66;
    --copper: #f0c39a;
    --copper-line: #d7a36a;
    --ec: #9fd0ea;
    --ec-deep: #9fd0ea;
    --dj: #f0b2a4;
    --ec-soft: #1a2c38;
    --dj-soft: #33241f;
    --ok: #8fd0aa;
    --warn: #e7c27a;
    --on-navy: #f4efe6;
    --on-navy-muted: #d5d0c6;
    --copper-on-navy: #f0c39a;
    --focus: #f0c39a;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121820;
  --surface: #1a222d;
  --surface-2: #232c39;
  --ink: #e8e4da;
  --muted: #b7c0cc;
  --line: #334052;
  --navy: #0c1c33;
  --navy-2: #1b3d66;
  --copper: #f0c39a;
  --copper-line: #d7a36a;
  --ec: #9fd0ea;
  --ec-deep: #9fd0ea;
  --dj: #f0b2a4;
  --ec-soft: #1a2c38;
  --dj-soft: #33241f;
  --ok: #8fd0aa;
  --warn: #e7c27a;
  --on-navy: #f4efe6;
  --on-navy-muted: #d5d0c6;
  --copper-on-navy: #f0c39a;
  --focus: #f0c39a;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(184, 107, 46, 0.08), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(15, 39, 68, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a {
  color: var(--ec-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid #f4efe6;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--navy);
  color: var(--on-navy);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--maxw), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(74ch, 100%); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.45rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.28rem; }
p, li, h1, h2, h3, td, th, figcaption, caption, .card, .pub, .fine, .lede, dd {
  overflow-wrap: break-word;
}
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: block;
  margin: 0 0 0.8rem;
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow.ec { color: var(--ec-deep); }
.eyebrow.dj { color: var(--dj); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id], h2[id], h3[id], [id] { scroll-margin-top: 5.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 4.25rem;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-word {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
}
.labs { font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.brand-exp {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 28rem;
}
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: 1; }
.primary-nav { display: none; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  flex: none;
}
.theme-toggle svg { width: 18px; height: 18px; }
.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: 600 0.92rem/1 var(--sans);
  color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > nav {
  display: grid;
  gap: 2px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  z-index: 40;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.12);
}
.primary-nav a, .menu a, .sub > summary {
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.98rem;
}
.primary-nav a:hover, .menu a:hover, .sub > summary:hover { background: var(--surface-2); }
.primary-nav a[aria-current="page"], .menu a[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  justify-content: center;
  font-weight: 600;
}
.nav-cta:hover { color: var(--bg) !important; filter: brightness(1.08); }
.sub > summary {
  list-style: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
}
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::marker { content: ""; }
.sub > summary::after { content: ""; margin-left: auto; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg); }
.sub[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sub-panel { display: grid; padding: 0 0 6px 10px; }
.sub-panel a { color: var(--muted); }

@media (min-width: 960px) {
  .menu { display: none; }
  .primary-nav { display: flex; }
  .primary-nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.92rem;
  }
  .sub { position: relative; }
  .sub > summary::after { margin-left: 6px; }
  .sub-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 16.5rem;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  }
  .sub[open] .sub-panel { display: grid; }
  .nav-cta { margin-left: 6px; }
}

@media (max-width: 820px) {
  .labs, .brand-exp { display: none; }
}

/* Hero and sections */
.hero { padding: 3.2rem 0 2.6rem; }
.hero-grid, .split {
  display: grid;
  gap: 1.5rem;
}
.hero h1 { max-width: 16ch; }
.hero-card, .card, .stat, .pub, .tier, .figure, .note, .path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card, .path-card { padding: 1.15rem 1.2rem 1.2rem; }
.path { list-style: none; margin: 0; padding: 0; counter-reset: path; }
.path li { counter-increment: path; border-top: 1px solid var(--line); }
.path li:first-child { border-top: 0; }
.path a {
  display: flex;
  gap: 0.75rem;
  padding: 0.72rem 0.15rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  align-items: center;
}
.path a::before {
  content: counter(path, decimal-leading-zero);
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.08em;
  color: var(--copper);
  flex: none;
}
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.hero-follow { margin-top: 0.9rem; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 1.15rem 0 0.8rem; }
.proof li {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.fine { font-size: 0.88rem; color: var(--muted); max-width: 68ch; }

.band {
  background: #0f2744;
  color: var(--on-navy);
  padding: 2.6rem 0;
  border-top: 3px solid #c4894a;
  border-bottom: 3px solid #c4894a;
}
.band .eyebrow, .band h2 { color: var(--copper-on-navy); }
.band p, .band li { color: var(--on-navy-muted); }
.band a { color: var(--copper-on-navy); }
.pillar-grid, .grid { display: grid; gap: 1rem; }
.pillar-grid { margin: 0; padding: 0; }
.band .pillar dd { color: var(--on-navy-muted); }
.pillar {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 195, 154, 0.45);
}
.pillar dt {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--on-navy);
  margin-bottom: 0.25rem;
}
.pillar dd { margin: 0; }
.section { padding: 3.4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.page-head { padding: 2.4rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current="page"] { color: var(--ink); text-decoration: none; }
.track-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.track-nav a {
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  display: inline-flex;
  align-items: center;
}
.track-nav a[aria-current="page"] { border-color: var(--copper-line); font-weight: 600; }
.primary-nav a[aria-current="true"], .menu a[aria-current="true"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--copper-line); }

.card, .stat { padding: 1.15rem 1.15rem 1.2rem; }
.card h3, .stat h3 { margin-bottom: 0.35rem; }
.card.ec { border-top: 3px solid var(--ec); }
.card.dj { border-top: 3px solid var(--dj); }
.card.copper { border-top: 3px solid var(--copper-line); }
.grid > *, .split > *, .pillar-grid > * { min-width: 0; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }

.stat .kicker {
  display: block;
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
}
.stat .num {
  display: block;
  font: 600 2.35rem/1.05 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.stat .label { display: block; }
.stat .src { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.82rem; }
.num.ec { color: var(--ec-deep); }
.num.dj { color: var(--dj); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--copper-line);
}
.checks.ec li::before { background: var(--ec); }
.checks.dj li::before { background: var(--dj); }

.note {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  margin: 1rem 0;
}
.note strong { color: var(--ink); }
.note.limits { border-left-color: var(--dj); }
.note.ok { border-left-color: var(--ok); }

.tiers { display: grid; gap: 0.7rem; }
.tier { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.8rem; padding: 0.95rem 1rem; align-items: start; }
.tier .t { font: 600 1.45rem/1 var(--serif); color: var(--ec-deep); }
.tier h3 { font-family: var(--sans); font-size: 1.02rem; margin: 0 0 0.2rem; }
.tier p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.figure { margin: 0; padding: 1rem; }
figcaption, .caption { color: var(--muted); font-size: 0.88rem; margin-top: 0.75rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; list-style: none; padding: 0; margin: 0.8rem 0 0; font-size: 0.88rem; }
.legend li { display: flex; align-items: center; gap: 0.45rem; }
.swatch { width: 1.6rem; height: 0.7rem; border-radius: 2px; flex: none; border: 1px solid var(--line); }
.swatch.solid { background: var(--ec); }
.swatch.stripe {
  background: repeating-linear-gradient(-45deg, var(--muted), var(--muted) 2px, transparent 2px, transparent 5px);
}
.swatch.solid-dj { background: var(--dj); }
.swatch.zero { background: var(--surface-2); border-style: dashed; }

.bars { display: grid; gap: 0.75rem; }
.bar-row { display: grid; gap: 0.25rem; }
.bar-name { font-size: 0.92rem; }
.bar-name span { display: block; color: var(--muted); font-size: 0.8rem; }
.bar-line { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; }
.bar-track { height: 0.85rem; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ec); }
.bar-fill.stripe {
  background: repeating-linear-gradient(-45deg, #7d8794, #7d8794 3px, #c5ccd4 3px, #c5ccd4 6px);
}
.bar-fill.dj { background: var(--dj); }
.bar-val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3.4rem; text-align: right; }
.bar-zero { color: var(--ok); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 100%;
}
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 0.9rem 0.35rem;
  font-weight: 600;
  color: var(--ink);
}
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
th:first-child, td:first-child { position: sticky; left: 0; }
td:first-child { background: var(--surface); }
thead th:first-child { background: var(--surface-2); z-index: 1; }

.pubs { display: grid; gap: 0.8rem; }
.pub { padding: 1rem 1.05rem 1.1rem; display: grid; gap: 0.35rem; }
.pub h3 { font-size: 1.18rem; margin: 0; }
.pub .meta { color: var(--muted); font-size: 0.92rem; }
.tag {
  display: inline-block;
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.quiet { background: var(--surface-2); }
.links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.25rem; }
.availability { font-size: 0.92rem; color: var(--muted); margin: 0; }

.scenario { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.scenario li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.step-no {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  background: var(--navy);
  color: var(--on-navy);
}
.scenario h3 { font-size: 1.12rem; margin: 0 0 0.2rem; font-family: var(--sans); }
.return-note {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--copper-line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Architecture */
.arch-svg { width: 100%; height: auto; display: block; }
.arch-svg text { fill: var(--ink); }
.arch-svg .muted-t { fill: var(--muted); }
.arch-svg .panel { fill: var(--surface); }
.arch-svg .ec-panel { stroke: var(--ec); }
.arch-svg .dj-panel { stroke: var(--dj); }
.arch-svg .box { fill: var(--bg); stroke: var(--line); }
.arch-svg .ec-box { stroke: var(--ec); }
.arch-svg .dj-box { stroke: var(--dj); }
.arch-svg .chip { fill: var(--surface); stroke: var(--line); }
.arch-svg .solid { stroke: var(--ink); fill: none; }
.arch-svg .dash { stroke: var(--dj); fill: none; stroke-dasharray: 5 4; }
.arch-svg .dot { stroke: var(--ec-deep); fill: none; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.arch-svg .fill-ink { fill: var(--ink); }
.arch-svg .fill-dj { fill: var(--dj); }
.arch-svg .fill-ec { fill: var(--ec-deep); }
.lanes { display: grid; gap: 0.8rem; }
.lane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.lane.ec { border-top: 3px solid var(--ec); }
.lane.dj { border-top: 3px solid var(--dj); }
.lane ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.lane li { margin: 0.35rem 0; }
.lane-link {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
}
.lane-link.escalate { border-left: 3px dashed var(--dj); }
.lane-link.doctrine { border-left: 3px dotted var(--ec); }
.arch-desktop { display: none; }

.roles { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.roles li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper-line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
}
.roles .where {
  margin: 0 0 0.3rem;
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.roles h3 { font-family: var(--sans); font-size: 1.08rem; margin: 0 0 0.35rem; }
.roles p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer strong { color: var(--ink); }
.footer-links { display: grid; gap: 0.25rem; }

@media (min-width: 720px) {
  .g2, .split, .hero-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4, .pillar-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: minmax(9rem, 16rem) 1fr; align-items: center; gap: 0.8rem; }
  .hero { padding: 4.2rem 0 3rem; }
  .section { padding: 4.2rem 0; }
}
@media (min-width: 1040px) {
  .g3 { grid-template-columns: 1fr 1fr 1fr; }
  .g4, .pillar-grid { grid-template-columns: repeat(4, 1fr); }
  .arch-desktop { display: block; }
  .hero-grid { grid-template-columns: 1.35fr 0.8fr; align-items: end; }
  .lanes.arch-text {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ec dj"
      "up up"
      "back back";
  }
  .lanes.arch-text .lane.ec { grid-area: ec; }
  .lanes.arch-text .lane.dj { grid-area: dj; }
  .lanes.arch-text .escalate { grid-area: up; }
  .lanes.arch-text .doctrine { grid-area: back; }
}

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

@media print {
  .site-header, .theme-toggle, .skip, .btns { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .band { background: #fff; color: #000; border-color: #000; }
  .band p, .band li, .band dt { color: #000; }
}
