@font-face {
  font-family: "Newsreader";
  src: url("/hub/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/hub/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/hub/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/hub/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #edf6f9;
  --bg-alt: #e3ebee;
  --line: #d0dde2;
  --ink: #00434a;
  --ink-muted: #3f6b70;
  --brand: #006d77;
  --mint: #dcecef;
  --sage: #83c5be;
  --paper: #ffffff;
  --dark: #032025;
  --dark-alt: #04252a;
  --dark-deep: #022c31;
  --danger: #a94e4e;
  --on-dark: #edf6f9;
  --on-dark-soft: rgba(237, 246, 249, 0.74);
  --on-dark-faint: rgba(237, 246, 249, 0.5);
  --font-display: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, monospace;
  --max: 1180px;
  --max-wide: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-sm: 0 18px 44px -32px rgba(0, 67, 74, 0.44);
  --shadow-lg: 0 42px 100px -46px rgba(0, 26, 31, 0.72);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
  color: var(--ink);
  font-size: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

body::selection {
  background: var(--sage);
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

code {
  border-radius: 2px;
  background: var(--mint);
  color: var(--ink);
  font: 0.88em/1.4 var(--font-mono);
  padding: 2px 5px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: inherit;
  font-weight: 640;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 7.2vw, 6.8rem);
  font-weight: 300;
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.2vw, 4.3rem);
  font-weight: 420;
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.82rem/1 var(--font-display);
  padding: 12px 16px;
  transition: transform 160ms ease;
}

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

.shell {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.shell.wide {
  width: min(var(--max-wide), calc(100% - (2 * var(--gutter))));
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand);
  font: 720 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.eyebrow.on-dark {
  color: var(--sage);
}

.lede {
  max-width: 68ch;
  color: var(--ink-muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(208, 221, 226, 0.82);
  background: rgba(237, 246, 249, 0.9);
  backdrop-filter: blur(18px) saturate(1.15);
}

.site-header__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 22px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand svg {
  width: 142px;
  height: auto;
}

.site-brand__context {
  border-left: 1px solid var(--line);
  color: var(--ink-muted);
  font: 620 0.68rem/1.15 var(--font-mono);
  letter-spacing: 0.08em;
  padding-left: 14px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font: 620 0.82rem/1 var(--font-display);
}

.site-nav a {
  border-radius: 4px;
  color: var(--ink-muted);
  padding: 11px 12px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

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

.site-nav .nav-external {
  border: 1px solid var(--line);
  margin-left: 5px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(790px, calc(100svh - 74px));
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 37%, rgba(131, 197, 190, 0.14), transparent 27%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 56%, var(--dark-deep) 100%);
  color: var(--on-dark);
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(237, 246, 249, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 246, 249, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 46%, #000 100%);
  content: "";
}

.hero__inner {
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding-block: 88px;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 850px;
  color: var(--on-dark);
}

.hero h1 em {
  color: var(--sage);
  font-family: var(--font-body);
  font-weight: 300;
}

.hero__lede {
  max-width: 62ch;
  margin-bottom: 34px;
  color: var(--on-dark-soft);
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--bg);
  font: 680 0.88rem/1 var(--font-display);
  padding: 0 18px;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--brand);
  border-color: var(--brand);
}

.button.on-dark {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--ink);
}

.button.on-dark:hover {
  border-color: var(--sage);
  background: var(--sage);
}

.button.ghost {
  border-color: rgba(237, 246, 249, 0.36);
  background: transparent;
  color: var(--on-dark);
}

.button.ghost:hover {
  border-color: var(--on-dark);
  background: rgba(237, 246, 249, 0.08);
}

.button svg {
  width: 16px;
  transition: transform 180ms var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 42px;
  color: var(--on-dark-faint);
  font: 560 0.69rem/1.45 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta span::before {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(131, 197, 190, 0.11);
  content: "";
}

.hero-map {
  position: relative;
  min-height: 560px;
  align-self: stretch;
}

.hero-map__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(37vw, 470px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(237, 246, 249, 0.12);
  border-radius: 50%;
}

.hero-map__orbit::before,
.hero-map__orbit::after {
  position: absolute;
  border: 1px solid rgba(237, 246, 249, 0.08);
  border-radius: inherit;
  content: "";
}

.hero-map__orbit::before {
  inset: 14%;
}

.hero-map__orbit::after {
  inset: 32%;
  background: radial-gradient(circle, rgba(131, 197, 190, 0.12), transparent 70%);
}

.hero-map__record {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 172px;
  height: 172px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(131, 197, 190, 0.48);
  border-radius: 50%;
  background: rgba(3, 32, 37, 0.82);
  box-shadow: 0 0 80px rgba(0, 109, 119, 0.2);
  text-align: center;
}

.hero-map__record strong,
.hero-map__record span {
  display: block;
}

.hero-map__record strong {
  color: var(--on-dark);
  font: 620 1.05rem/1.2 var(--font-display);
}

.hero-map__record span {
  max-width: 15ch;
  margin-top: 8px;
  color: var(--sage);
  font: 570 0.64rem/1.45 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-node {
  position: absolute;
  z-index: 3;
  width: 154px;
  border: 1px solid rgba(237, 246, 249, 0.16);
  border-radius: 4px;
  background: rgba(4, 37, 42, 0.76);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  padding: 13px 14px;
  backdrop-filter: blur(12px);
}

.hero-node::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--dark);
  border-radius: 50%;
  background: var(--sage);
  content: "";
}

.hero-node small,
.hero-node strong {
  display: block;
}

.hero-node small {
  margin-bottom: 5px;
  color: var(--sage);
  font: 650 0.58rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-node strong {
  color: var(--on-dark);
  font: 580 0.84rem/1.25 var(--font-display);
}

.hero-node--1 { top: 8%; left: 7%; }
.hero-node--2 { top: 8%; right: 0; }
.hero-node--3 { top: 43%; right: -2%; }
.hero-node--4 { right: 10%; bottom: 4%; }
.hero-node--5 { bottom: 7%; left: 3%; }
.hero-node--6 { top: 42%; left: -4%; }

.hero-node--1::after,
.hero-node--6::after,
.hero-node--5::after { right: -5px; top: calc(50% - 4px); }
.hero-node--2::after,
.hero-node--3::after,
.hero-node--4::after { left: -5px; top: calc(50% - 4px); }

.section {
  padding-block: clamp(88px, 10vw, 148px);
}

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

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.3fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 54px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 1.13rem;
}

.section--dark .section-head p {
  color: var(--on-dark-soft);
}

.happy-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.happy-preview__step {
  position: relative;
  min-height: 240px;
  border-right: 1px solid var(--line);
  padding: 28px 26px 30px;
}

.happy-preview__step:last-child {
  border-right: 0;
}

.happy-preview__step:not(:last-child)::after {
  position: absolute;
  top: 43px;
  right: -7px;
  z-index: 2;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
  content: "";
}

.happy-preview__number {
  display: block;
  margin-bottom: 46px;
  color: var(--brand);
  font: 620 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.happy-preview__step h3 {
  font-size: 1.05rem;
}

.happy-preview__step p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.happy-preview__step.is-human {
  background: var(--mint);
}

.happy-preview__step.is-human::after {
  background: var(--mint);
}

.invariant-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-dark);
  padding: 18px 20px;
}

.invariant-bar__label {
  color: var(--sage);
  font: 720 0.68rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invariant-bar p {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.96rem;
}

.invariant-bar a {
  font: 670 0.78rem/1 var(--font-display);
  white-space: nowrap;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.catalog-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
}

.catalog-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 520 0.92rem/1 var(--font-display);
  padding: 0 15px 0 44px;
}

.catalog-search input::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.filter {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: 620 0.72rem/1 var(--font-display);
  padding: 0 13px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter:hover,
.filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.catalog-summary {
  margin-left: auto;
  color: var(--ink-muted);
  font: 570 0.68rem/1 var(--font-mono);
  white-space: nowrap;
}

.directory {
  border-top: 1px solid var(--ink);
}

.directory-group {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.directory-group[hidden] {
  display: none;
}

.directory-group__title {
  border-right: 1px solid var(--line);
  padding: 26px 28px 26px 0;
}

.directory-group__title span,
.directory-group__title strong {
  display: block;
}

.directory-group__title span {
  margin-bottom: 7px;
  color: var(--brand);
  font: 650 0.62rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.directory-group__title strong {
  font: 630 1rem/1.3 var(--font-display);
}

.directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-item {
  border-bottom: 1px solid var(--line);
}

.directory-item:last-child {
  border-bottom: 0;
}

.directory-item[hidden] {
  display: none;
}

.directory-link {
  display: grid;
  min-height: 92px;
  grid-template-columns: 54px minmax(180px, 0.46fr) minmax(220px, 0.54fr) 28px;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  padding: 18px 0 18px 26px;
  text-decoration: none;
  transition: background 160ms ease, padding 200ms var(--ease);
}

.directory-link:hover {
  background: var(--mint);
  padding-right: 16px;
  padding-left: 34px;
}

.directory-index {
  color: var(--ink-muted);
  font: 560 0.64rem/1 var(--font-mono);
}

.directory-name {
  font: 640 0.98rem/1.25 var(--font-display);
}

.directory-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.directory-arrow {
  color: var(--brand);
  font: 500 1.2rem/1 var(--font-display);
  transition: transform 180ms var(--ease);
}

.directory-link:hover .directory-arrow {
  transform: translateX(4px);
}

.empty-results {
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  padding: 44px 0;
  text-align: center;
}

.empty-results[hidden] {
  display: none;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(237, 246, 249, 0.2);
  border-left: 1px solid rgba(237, 246, 249, 0.2);
}

.ops-card {
  position: relative;
  min-height: 240px;
  border-right: 1px solid rgba(237, 246, 249, 0.2);
  border-bottom: 1px solid rgba(237, 246, 249, 0.2);
  color: var(--on-dark);
  padding: 28px;
  text-decoration: none;
  transition: background 180ms ease;
}

.ops-card:hover {
  background: rgba(131, 197, 190, 0.08);
}

.ops-card__number {
  display: block;
  margin-bottom: 56px;
  color: var(--sage);
  font: 630 0.63rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.ops-card h3 {
  color: var(--on-dark);
}

.ops-card p {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  line-height: 1.48;
}

.ops-card::after {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--on-dark-faint);
  content: "↗";
  font: 500 1.1rem/1 var(--font-display);
}

.site-footer {
  border-top: 3px solid var(--sage);
  background: linear-gradient(135deg, var(--ink), var(--dark));
  color: var(--on-dark);
  padding-block: 42px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer svg {
  width: 150px;
}

.site-footer p {
  margin: 0;
  color: var(--on-dark-faint);
  font: 550 0.67rem/1.6 var(--font-mono);
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

/* Happy path page */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(131, 197, 190, 0.13), transparent 28%),
    var(--dark);
  color: var(--on-dark);
  padding-block: clamp(88px, 10vw, 144px);
}

.page-hero h1 {
  max-width: 1000px;
  color: var(--on-dark);
  font-size: clamp(3.6rem, 8vw, 7.6rem);
}

.page-hero__lede {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--on-dark-soft);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.path-statement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 50px;
  border: 1px solid rgba(237, 246, 249, 0.18);
  background: rgba(237, 246, 249, 0.035);
}

.path-statement__mark {
  display: grid;
  width: 82px;
  place-items: center;
  border-right: 1px solid rgba(237, 246, 249, 0.18);
  color: var(--sage);
  font: 680 0.68rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
}

.path-statement p {
  margin: 0;
  color: var(--on-dark);
  font: 400 clamp(1.18rem, 2.2vw, 1.7rem)/1.5 var(--font-body);
  padding: 26px 30px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.fact {
  min-height: 132px;
  border-right: 1px solid var(--line);
  padding: 24px var(--gutter);
}

.fact:last-child {
  border-right: 0;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  color: var(--ink);
  font: 420 clamp(1.9rem, 4vw, 3.2rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}

.fact span {
  margin-top: 8px;
  color: var(--ink-muted);
  font: 620 0.67rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swimlane-wrap {
  position: relative;
  margin-top: 54px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.swimlane {
  position: relative;
  width: 1830px;
  min-height: 650px;
  padding-left: 120px;
}

.swimlane::before {
  position: absolute;
  top: 50px;
  right: 0;
  bottom: 0;
  left: 120px;
  z-index: 0;
  background:
    linear-gradient(to bottom,
      rgba(237, 246, 249, 0.75) 0,
      rgba(237, 246, 249, 0.75) 199px,
      rgba(220, 236, 239, 0.48) 199px,
      rgba(220, 236, 239, 0.48) 399px,
      rgba(227, 235, 238, 0.6) 399px,
      rgba(227, 235, 238, 0.6) 100%);
  content: "";
}

.swimlane__lane-labels {
  position: absolute;
  top: 50px;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  width: 120px;
  grid-template-rows: repeat(3, 200px);
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.swimlane__lane-labels span {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font: 670 0.63rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.swimlane__lane-labels span:last-child {
  border-bottom: 0;
}

.swimlane__stages {
  position: absolute;
  top: 0;
  right: 0;
  left: 120px;
  z-index: 4;
  display: grid;
  height: 50px;
  grid-template-columns: repeat(9, 190px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.swimlane__stages span {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink-muted);
  font: 620 0.61rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding-left: 18px;
  text-transform: uppercase;
}

.swimlane__path {
  position: absolute;
  top: 50px;
  left: 120px;
  z-index: 1;
  width: 1710px;
  height: 600px;
  pointer-events: none;
}

.swimlane__path .path-base {
  fill: none;
  stroke: rgba(0, 67, 74, 0.26);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.swimlane__path .path-async {
  fill: none;
  stroke: var(--brand);
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-width: 2.5;
  animation: path-dash 8s linear infinite;
}

.journey-list {
  position: absolute;
  top: 50px;
  right: 0;
  bottom: 0;
  left: 120px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(9, 190px);
  grid-template-rows: repeat(3, 200px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  position: relative;
  align-self: center;
  width: 166px;
  min-height: 128px;
  justify-self: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 12px 28px -24px rgba(0, 67, 74, 0.8);
  padding: 16px;
}

.journey-step[data-lane="patient"] { grid-row: 1; }
.journey-step[data-lane="platform"] { grid-row: 2; background: var(--bg); }
.journey-step[data-lane="clinician"] { grid-row: 3; background: var(--bg-alt); }
.journey-step:nth-child(1) { grid-column: 1; }
.journey-step:nth-child(2) { grid-column: 2; }
.journey-step:nth-child(3) { grid-column: 3; }
.journey-step:nth-child(4) { grid-column: 4; }
.journey-step:nth-child(5) { grid-column: 5; }
.journey-step:nth-child(6) { grid-column: 6; }
.journey-step:nth-child(7) { grid-column: 7; }
.journey-step:nth-child(8) { grid-column: 8; }
.journey-step:nth-child(9) { grid-column: 9; }

.journey-step__actor {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand);
  font: 680 0.56rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-step h3 {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.journey-step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.journey-step__flag {
  display: inline-flex;
  margin-top: 10px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--ink);
  font: 650 0.53rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.journey-step.is-decision {
  border-width: 2px;
  background: var(--dark);
  color: var(--on-dark);
}

.journey-step.is-decision h3 {
  color: var(--on-dark);
}

.journey-step.is-decision p,
.journey-step.is-decision .journey-step__actor {
  color: var(--on-dark-soft);
}

@keyframes path-dash {
  to { stroke-dashoffset: -150; }
}

.scroll-note {
  display: block;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font: 580 0.66rem/1.4 var(--font-mono);
  text-align: right;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-card {
  min-height: 220px;
  background: var(--paper);
  padding: 28px;
}

.detail-card__label {
  display: block;
  margin-bottom: 32px;
  color: var(--brand);
  font: 680 0.61rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.dependency-list {
  margin-top: 42px;
  border-top: 1px solid var(--ink);
}

.dependency-list details {
  border-bottom: 1px solid var(--line);
}

.dependency-list summary {
  display: grid;
  min-height: 88px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font: 630 1rem/1.25 var(--font-display);
  list-style: none;
}

.dependency-list summary::-webkit-details-marker {
  display: none;
}

.dependency-list summary::after {
  content: "+";
  color: var(--brand);
  font: 400 1.5rem/1 var(--font-display);
}

.dependency-list details[open] summary::after {
  content: "−";
}

.dependency-list__index {
  color: var(--ink-muted);
  font: 560 0.62rem/1 var(--font-mono);
}

.dependency-list__body {
  max-width: 78ch;
  margin-left: 60px;
  color: var(--ink-muted);
  padding: 0 0 30px;
}

.dependency-list__body p:last-child {
  margin-bottom: 0;
}

.guardrail-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: start;
}

.guardrail-panel h2 {
  color: var(--on-dark);
}

.guardrail-panel__intro p {
  color: var(--on-dark-soft);
}

.guardrail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(237, 246, 249, 0.18);
  border-left: 1px solid rgba(237, 246, 249, 0.18);
  list-style: none;
}

.guardrail-list li {
  position: relative;
  min-height: 120px;
  border-right: 1px solid rgba(237, 246, 249, 0.18);
  border-bottom: 1px solid rgba(237, 246, 249, 0.18);
  color: var(--on-dark-soft);
  padding: 23px 24px 22px 54px;
}

.guardrail-list li::before {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--sage);
  content: "×";
  font: 400 1.2rem/1 var(--font-display);
}

.guardrail-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--on-dark);
  font: 620 0.9rem/1.25 var(--font-display);
}

.guardrail-list span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 44px;
  }

  .hero-map {
    min-height: 500px;
  }

  .hero-node {
    width: 132px;
  }

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

  .happy-preview__step {
    border-bottom: 1px solid var(--line);
  }

  .happy-preview__step:nth-child(3) {
    border-right: 0;
  }

  .happy-preview__step:nth-child(3)::after {
    display: none;
  }

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

@media (max-width: 860px) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-brand svg {
    width: 126px;
  }

  .site-brand__context {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 22px 40px -32px rgba(0, 67, 74, 0.7);
    padding: 10px var(--gutter) 16px;
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 2px;
  }

  .site-nav .nav-external {
    border: 0;
    border-bottom: 1px solid var(--line);
    margin-left: 0;
  }

  .hero__inner {
    display: block;
    padding-block: 90px 74px;
  }

  .hero-map {
    display: none;
  }

  .section-head,
  .guardrail-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-controls {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .catalog-search {
    flex-basis: 100%;
    max-width: none;
  }

  .directory-group {
    grid-template-columns: 1fr;
  }

  .directory-group__title {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0 18px;
  }

  .directory-link {
    grid-template-columns: 44px minmax(0, 0.42fr) minmax(0, 0.58fr) 22px;
    padding-left: 0;
  }

  .directory-link:hover {
    padding-left: 10px;
  }

  .scroll-note {
    display: block;
  }

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

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-block: 74px 66px;
  }

  .hero__meta {
    display: grid;
    gap: 12px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .happy-preview {
    grid-template-columns: 1fr;
  }

  .happy-preview__step {
    min-height: 0;
    border-right: 0;
    padding: 24px 0;
  }

  .happy-preview__step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -7px;
    left: 28px;
    transform: rotate(135deg);
  }

  .happy-preview__number {
    margin-bottom: 18px;
  }

  .happy-preview__step.is-human {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .invariant-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-summary {
    width: 100%;
    margin-left: 0;
  }

  .directory-link {
    min-height: 0;
    grid-template-columns: 35px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 18px 0;
  }

  .directory-desc {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .directory-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .ops-grid,
  .guardrail-list {
    grid-template-columns: 1fr;
  }

  .ops-card {
    min-height: 190px;
  }

  .ops-card__number {
    margin-bottom: 34px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }

  .page-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.3rem);
  }

  .path-statement {
    grid-template-columns: 1fr;
  }

  .path-statement__mark {
    width: auto;
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid rgba(237, 246, 249, 0.18);
    writing-mode: initial;
    transform: none;
  }

  .path-statement p {
    font-size: 1.08rem;
    padding: 22px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

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

  .fact:last-child {
    border-bottom: 0;
  }

  .swimlane-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .swimlane {
    width: auto;
    min-height: 0;
    padding-left: 0;
  }

  .swimlane::before,
  .swimlane__lane-labels,
  .swimlane__stages,
  .swimlane__path {
    display: none;
  }

  .journey-list {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }

  .journey-step,
  .journey-step[data-lane="patient"],
  .journey-step[data-lane="platform"],
  .journey-step[data-lane="clinician"],
  .journey-step:nth-child(n) {
    position: relative;
    width: 100%;
    min-height: 0;
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 18px;
    padding: 21px 20px 20px 66px;
  }

  .journey-step::before {
    position: absolute;
    top: 25px;
    left: 22px;
    display: grid;
    width: 26px;
    height: 26px;
    z-index: 2;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    content: attr(data-step);
    font: 650 0.6rem/1 var(--font-mono);
  }

  .journey-step:not(:last-child)::after {
    position: absolute;
    bottom: -20px;
    left: 34px;
    width: 1px;
    height: 20px;
    background: var(--ink);
    content: "";
  }

  .journey-step.is-decision::before {
    background: var(--sage);
    color: var(--dark);
  }

  .scroll-note {
    display: none;
  }

  .detail-card {
    min-height: 0;
  }

  .dependency-list summary {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .dependency-list__body {
    margin-left: 50px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .catalog-controls,
  .scroll-note {
    display: none !important;
  }

  body,
  .section,
  .page-hero {
    background: #fff !important;
    color: #000 !important;
  }

  .page-hero h1,
  .page-hero p,
  .eyebrow.on-dark {
    color: #000 !important;
  }

  .swimlane-wrap {
    overflow: visible;
    transform: scale(0.72);
    transform-origin: top left;
  }
}
