:root {
  --paper: #1d1842;
  --paper-deep: #110d29;
  --paper-bright: #2a2454;
  --paper-soft: #f9f2fa;
  --surface: #fffafd;
  --surface-muted: #f2e8f3;
  --surface-hover: #e8d8eb;
  --ink: #fffbff;
  --ink-dark: #1d1842;
  --muted: #d8cbe0;
  --muted-dark: #6c5875;
  --line: #554c78;
  --line-light: #d9c8dd;
  --deep-red: #8e0d3c;
  --deep-red-dark: #6f0a30;
  --sea-glass: #43c6b6;
  --periwinkle: #a9b8ff;
  --radius: 6px;
  --content: 1240px;
  --sans: 'Avenir Next', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

:root[data-theme='light'] {
  --paper: #f9f2fa;
  --paper-deep: #ede2ef;
  --paper-bright: #fffafd;
  --ink: #1d1842;
  --muted: #665873;
  --line: #cbbbd2;
  --sea-glass: #147f76;
  --periwinkle: #5667b8;
}

:root[data-theme='dark'] {
  --paper-soft: #15191f;
  --surface: #20262d;
  --surface-muted: #1a2027;
  --surface-hover: #2a323b;
  --band-warm: #22191d;
  --band-slate: #171e29;
  --band-ink: #1d2028;
  --band-teal: #142429;
  --band-graphite: #1b2424;
  --portal-canvas: #14181e;
  --portal-accent: #a9b8ff;
  --ink-dark: #fffbff;
  --muted-dark: #c7bad0;
  --line-light: #424b55;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 251, 255, 0.035) 1px, transparent 1px) 0
      0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

html[data-theme='light'] body {
  background:
    linear-gradient(90deg, rgba(29, 24, 66, 0.045) 1px, transparent 1px) 0 0 /
      48px 48px,
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--sea-glass);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--ink-dark);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(29, 24, 66, 0.92);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    min-height 180ms ease;
}
.site-header.scrolled {
  min-height: 64px;
  border-color: var(--line);
}
html[data-theme='light'] .site-header {
  background: rgba(255, 250, 253, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 251, 255, 0.18);
  border-radius: 2px;
  background: var(--paper-bright);
}
.brand-mark i {
  display: block;
  height: 44%;
  background: var(--deep-red);
  transform: skewY(-18deg);
}
.brand-mark i:nth-child(2) {
  height: 68%;
  background: var(--sea-glass);
}
.brand-mark i:nth-child(3) {
  height: 92%;
  background: var(--periwinkle);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}
.header-controls,
.portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--periwinkle);
  background: var(--paper-bright);
}
.theme-icon {
  font-size: 23px;
  line-height: 1;
}
.theme-icon-sun,
html[data-theme='dark'] .theme-icon-moon {
  display: none;
}
html[data-theme='dark'] .theme-icon-sun {
  display: block;
}
.site-header nav > a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
}
.site-header nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--periwinkle);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}
.site-header nav > a:hover {
  color: var(--ink);
}
.site-header nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
}
.nav-cta,
.button-primary {
  background: var(--deep-red);
  color: var(--ink);
}
html[data-theme='light'] .nav-cta,
html[data-theme='light'] .button-primary,
html[data-theme='light'] .registry-search button,
html[data-theme='light'] .source-mark {
  color: #fffbff;
}
.nav-cta:hover,
.button-primary:hover {
  border-color: var(--periwinkle);
  background: var(--deep-red-dark);
}
html[data-theme='light'] .site-header .nav-cta:hover {
  color: #fffbff;
}
.menu-button {
  display: none;
}
main {
  overflow: hidden;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.kicker::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: '';
}

.hero {
  display: grid;
  min-height: 860px;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  gap: 70px;
  align-items: center;
  padding: 138px max(28px, calc((100vw - var(--content)) / 2)) 62px;
  background:
    linear-gradient(
      115deg,
      transparent 0 54%,
      rgba(169, 184, 255, 0.16) 54% 59%,
      transparent 59%
    ),
    linear-gradient(20deg, rgba(142, 13, 60, 0.58), transparent 50%),
    linear-gradient(160deg, #1d1842 0%, #24173f 58%, #5a163f 145%);
}
html[data-theme='light'] .hero {
  background:
    linear-gradient(
      115deg,
      transparent 0 54%,
      rgba(86, 103, 184, 0.12) 54% 59%,
      transparent 59%
    ),
    linear-gradient(20deg, rgba(142, 13, 60, 0.13), transparent 50%),
    linear-gradient(160deg, #fffafd 0%, #f3e9f5 62%, #efdce7 145%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 110px;
  font-weight: 500;
  line-height: 0.88;
}
.hero-statement {
  max-width: 680px;
  margin: 28px 0 14px;
  color: var(--periwinkle);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.12;
}
.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.text-link:hover {
  color: var(--periwinkle);
}

.definition-map {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(169, 184, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 184, 255, 0.1) 1px, transparent 1px),
    rgba(17, 13, 41, 0.9);
  background-size: 42px 42px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  animation: rise 700ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
html[data-theme='light'] .definition-map {
  --line: #554c78;
  --ink: #fffbff;
  --muted: #d8cbe0;
  --paper-bright: #2a2454;
  --periwinkle: #a9b8ff;
  color: #fffbff;
}
.map-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.map-head b {
  color: var(--periwinkle);
}
.map-core,
.map-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-bright);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}
.map-core {
  top: 205px;
  left: calc(50% - 110px);
  width: 220px;
  min-height: 150px;
  justify-content: center;
  padding: 24px;
  border-color: var(--deep-red);
}
.map-core span,
.map-node span {
  color: var(--periwinkle);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}
.map-core strong {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}
.map-core small,
.map-node strong {
  color: var(--muted);
  font-size: 11px;
}
.map-node {
  width: 130px;
  min-height: 70px;
  justify-content: center;
  padding: 13px;
}
.map-node strong {
  margin-top: 4px;
  color: var(--ink);
}
.node-api {
  top: 90px;
  left: 55px;
}
.node-cli {
  top: 90px;
  right: 55px;
}
.node-web {
  top: 405px;
  left: 35px;
}
.node-def {
  top: 430px;
  right: 35px;
}
.node-device {
  top: 470px;
  left: calc(50% - 65px);
}
.map-line {
  position: absolute;
  z-index: 1;
  display: block;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.line-a {
  top: 159px;
  left: 183px;
  width: 190px;
  transform: rotate(28deg);
}
.line-b {
  top: 159px;
  right: 183px;
  width: 190px;
  transform: rotate(152deg);
  transform-origin: right;
}
.line-c {
  top: 439px;
  left: 162px;
  width: 235px;
  transform: rotate(-31deg);
}
.line-d {
  top: 465px;
  right: 162px;
  width: 235px;
  transform: rotate(205deg);
  transform-origin: right;
}
.line-e {
  top: 355px;
  left: 50%;
  width: 120px;
  transform: rotate(90deg);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}
.proof-strip span {
  padding: 19px 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.proof-strip span:last-child {
  border-right: 0;
}

.section-intro {
  max-width: 760px;
}
.section-intro h2,
.api-band h2,
.execution-band h2 {
  margin: 15px 0 18px;
  color: var(--ink-dark);
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.98;
}
.section-intro > p,
.api-band > div > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.7;
}
.section-intro.light h2,
.format-band h2 {
  color: var(--ink);
}
.section-intro.light > p {
  color: var(--muted);
}

.registry-preview,
.supply-chain,
.api-band,
.execution-band {
  padding: 112px max(28px, calc((100vw - var(--content)) / 2));
  background: var(--paper-soft);
  color: var(--ink-dark);
}
html[data-theme='dark'] .supply-chain {
  background: var(--band-warm);
}
html[data-theme='dark'] .api-band {
  background: var(--band-teal);
}
html[data-theme='dark'] .execution-band {
  background: var(--band-ink);
}
.registry-search {
  margin-top: 46px;
}
.registry-search > label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.registry-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 64px;
  border: 1px solid var(--ink-dark);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(29, 24, 66, 0.08);
}
.registry-search input {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-dark);
}
.registry-search button {
  padding: 0 24px;
  border: 0;
  border-left: 1px solid var(--ink-dark);
  background: var(--ink-dark);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.registry-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 0 16px;
  border: 1px solid var(--line-light);
  border-bottom: 0;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.source-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--surface);
  transition: background 160ms ease;
}
.source-card:hover {
  background: var(--surface-hover);
}
.source-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 4px;
  background: var(--deep-red);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}
.source-card:nth-child(3n + 2) .source-mark {
  background: var(--sea-glass);
  color: var(--ink-dark);
}
.source-card:nth-child(3n) .source-mark {
  background: var(--paper);
}
html[data-theme='light'] .source-card:nth-child(3n) .source-mark {
  background: #1d1842;
}
html[data-theme='dark'] .registry-search button {
  border-color: var(--deep-red);
  background: var(--deep-red);
  color: var(--ink);
}
.source-card small {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.source-card h3 {
  margin: 2px 0;
  font-size: 16px;
}
.source-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 12px;
}
.source-card > b {
  padding: 5px 8px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.registry-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line-light);
  background: var(--surface);
  text-align: center;
}

.provider-band,
.format-band {
  padding: 112px max(28px, calc((100vw - var(--content)) / 2));
  background: var(--paper);
}
html[data-theme='dark'] .provider-band {
  background: var(--band-graphite);
}
html[data-theme='dark'] .format-band {
  background: var(--band-slate);
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.provider-card {
  min-height: 340px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    background 160ms ease;
}
.provider-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.provider-card:hover {
  background: var(--paper-bright);
}
.provider-card > span {
  color: var(--periwinkle);
  font-family: var(--mono);
  font-size: 11px;
}
.provider-card small {
  display: block;
  margin: 48px 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.provider-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}
.provider-card > b {
  color: var(--periwinkle);
  font-size: 11px;
}
.provider-card p {
  min-height: 74px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 13px;
}
.provider-card a {
  color: var(--periwinkle);
  font-size: 12px;
  font-weight: 800;
}

.supply-chain {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}
.pipeline-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}
.pipeline-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}
.pipeline-list li.revealed {
  opacity: 1;
  transform: translateX(0);
}
.pipeline-list span {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 11px;
}
.pipeline-list h3,
.pipeline-list p {
  margin: 0;
}
.pipeline-list h3 {
  font-size: 15px;
}
.pipeline-list p {
  color: var(--muted-dark);
  font-size: 13px;
}

.api-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  background: var(--surface-muted);
}
.api-band ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.api-band li::before {
  margin-right: 9px;
  color: var(--deep-red);
  content: '✓';
}
.api-band pre {
  min-height: 390px;
  padding: 30px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  box-shadow: 0 28px 70px rgba(29, 24, 66, 0.18);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}
.api-band pre span {
  color: var(--periwinkle);
}
.api-band pre b {
  color: var(--periwinkle);
  font-weight: 500;
}
.api-band pre i {
  color: var(--periwinkle);
  font-style: normal;
}
.api-band pre em {
  color: var(--muted);
  font-style: normal;
}

.format-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-self: start;
  border-top: 1px solid var(--line);
}
.format-grid span {
  display: flex;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.format-grid span:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.format-grid span:nth-child(even) {
  padding-left: 20px;
}
.format-grid b {
  color: var(--periwinkle);
  font-family: var(--mono);
  font-size: 10px;
}

.execution-band .section-intro {
  max-width: 860px;
}
.execution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.execution-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  padding: 32px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--surface);
}
.execution-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.execution-card-head b {
  padding: 5px 8px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-weight: 600;
  text-transform: none;
}
.execution-card h3 {
  margin: 54px 0 14px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}
.execution-card > p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.7;
}
.execution-card ul {
  display: grid;
  gap: 9px;
  padding: 24px 0 28px;
  margin: auto 0 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}
.execution-card li::before {
  margin-right: 9px;
  color: var(--deep-red);
  content: '✓';
}
.execution-card > code {
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 11px;
}
.execution-access {
  border-color: var(--line);
  background: var(--paper-bright);
  color: var(--ink);
}
.execution-access .execution-card-head,
.execution-access > code {
  color: var(--periwinkle);
}
.execution-access .execution-card-head b,
.execution-access > code {
  border-color: var(--line);
}
.execution-access > p {
  color: var(--muted);
}
.execution-access li::before {
  color: var(--periwinkle);
}

.directory-hero {
  min-height: 520px;
  padding: 156px max(28px, calc((100vw - var(--content)) / 2)) 84px;
  background:
    linear-gradient(118deg, rgba(142, 13, 60, 0.58), transparent 48%),
    linear-gradient(160deg, #1d1842 0%, #5a163f 130%);
}
html[data-theme='light'] .directory-hero {
  background:
    linear-gradient(118deg, rgba(142, 13, 60, 0.14), transparent 48%),
    linear-gradient(160deg, #fffafd 0%, #efdce7 130%);
}
.directory-hero .back-link {
  display: block;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.directory-hero h1,
.not-found h1 {
  max-width: 850px;
  margin: 16px 0;
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 500;
  line-height: 0.95;
}
.directory-hero > p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 19px;
}
.directory-hero > strong {
  color: var(--periwinkle);
  font-size: 12px;
}
.search-hero {
  min-height: 470px;
}
.search-hero .registry-search {
  max-width: 900px;
  color: var(--ink);
}

.directory-listing {
  padding: 82px max(28px, calc((100vw - var(--content)) / 2));
  background: var(--paper-soft);
  color: var(--ink-dark);
}
.directory-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line-light);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.directory-result {
  display: grid;
  min-height: 116px;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  background: var(--surface);
}
.directory-result small {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.directory-result h2 {
  margin: 2px 0;
  font-size: 19px;
}
.directory-result p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 12px;
}
.directory-result > b {
  padding: 6px 9px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
}
.empty-directory {
  margin: 0;
  padding: 46px 22px;
  border: 1px solid var(--line-light);
  border-top: 0;
  background: var(--surface);
  color: var(--muted-dark);
  text-align: center;
}

.directory-callout {
  display: grid;
  min-height: 420px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px 90px;
  align-items: start;
  padding: 94px max(28px, calc((100vw - var(--content)) / 2));
  background: var(--paper);
}
.directory-callout h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
}
.directory-callout p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}
.directory-callout .button {
  grid-column: 2;
  justify-self: start;
}

.not-found {
  display: flex;
  min-height: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 130px max(28px, calc((100vw - var(--content)) / 2));
  background:
    linear-gradient(135deg, rgba(142, 13, 60, 0.46), transparent 45%),
    var(--paper);
}
.not-found h1 {
  max-width: 700px;
}
.not-found p {
  margin: 5px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 60px;
  padding: 76px max(28px, calc((100vw - var(--content)) / 2)) 28px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.site-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.site-footer strong {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.site-footer a:not(.brand),
.site-footer span,
.site-footer p {
  color: var(--muted);
  font-size: 13px;
}
.site-footer a:hover {
  color: var(--periwinkle);
}
.footer-lead p {
  max-width: 270px;
}
.site-footer small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.portal-body {
  min-width: 320px;
  background: var(--paper-soft);
  color: var(--ink-dark);
}
html[data-theme='dark'] .portal-body {
  background: var(--portal-canvas);
}
.portal-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.portal-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.portal-identity span {
  color: var(--muted);
}
.portal-identity b {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.portal-home-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.portal-layout {
  display: grid;
  min-height: calc(100vh - 66px);
  grid-template-columns: 236px minmax(0, 1fr);
}
.portal-sidebar {
  padding: 28px 18px;
  border-right: 1px solid var(--line-light);
  background: var(--surface);
}
.portal-sidebar > span {
  display: block;
  padding: 0 12px 12px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-sidebar nav {
  display: grid;
  gap: 3px;
}
.portal-sidebar a {
  min-height: 42px;
  padding: 10px 12px;
  border-left: 3px solid transparent;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}
.portal-sidebar a:hover {
  background: var(--surface-muted);
  color: var(--ink-dark);
}
.portal-sidebar a[aria-current='page'] {
  border-left-color: var(--deep-red);
  background: var(--surface-hover);
  color: var(--deep-red);
}
.portal-main {
  width: min(100%, 1460px);
  padding: 42px;
}
.portal-heading {
  margin-bottom: 32px;
}
.portal-heading > span,
.portal-panel-head span {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-heading h1 {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
}
.portal-heading p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
}
.admin-heading > span {
  color: var(--deep-red);
}
.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.portal-metrics article {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: var(--surface);
}
.portal-metrics span {
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 700;
}
.portal-metrics strong {
  margin: 8px 0 2px;
  color: var(--ink-dark);
  font-family: var(--mono);
  font-size: 27px;
  line-height: 1;
}
.portal-metrics small {
  margin-top: auto;
  color: var(--deep-red);
  font-size: 10px;
}
.portal-panel {
  margin-top: 22px;
  border: 1px solid var(--line-light);
  background: var(--surface);
}
.portal-panel-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-light);
}
.portal-panel-head h2 {
  margin: 2px 0 0;
  font-size: 17px;
}
.portal-panel-head > small {
  max-width: 340px;
  color: var(--muted-dark);
  font-size: 10px;
  text-align: right;
}
.portal-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.portal-panel table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
}
.portal-panel th,
.portal-panel td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: middle;
}
.portal-panel tr:last-child td {
  border-bottom: 0;
}
.portal-panel th {
  background: var(--surface-muted);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}
.portal-panel td code {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 10px;
}
.portal-status,
.portal-severity {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: var(--surface-muted);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-active,
.status-ready {
  border-color: var(--sea-glass);
  background: #dcf7f1;
  color: var(--ink-dark);
}
.status-review {
  border-color: var(--sea-glass);
  background: #dcf7f1;
  color: var(--ink-dark);
}
.severity-warning {
  border-color: var(--deep-red);
  background: #efdae7;
  color: var(--deep-red);
}
.severity-critical {
  border-color: var(--deep-red);
  background: #efdae7;
  color: var(--deep-red-dark);
}
html[data-theme='dark'] .status-active,
html[data-theme='dark'] .status-ready,
html[data-theme='dark'] .status-review {
  background: #183f3c;
  color: var(--ink);
}
html[data-theme='dark'] .severity-warning,
html[data-theme='dark'] .severity-critical {
  background: #48142b;
  color: var(--ink);
}
.portal-empty {
  padding: 32px !important;
  color: var(--muted-dark);
  text-align: center !important;
}
.portal-alerts {
  padding: 0;
  margin: 0;
  list-style: none;
}
.portal-alerts li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-light);
}
.portal-alerts li:last-child {
  border-bottom: 0;
}
.portal-alerts strong,
.portal-alerts p {
  margin: 0;
}
.portal-alerts p {
  color: var(--muted-dark);
  font-size: 11px;
}
.portal-alerts time {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 9px;
}
.portal-gate {
  display: flex;
  min-height: calc(100vh - 150px);
  max-width: 760px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.portal-gate > span {
  color: var(--deep-red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
html[data-theme='dark'] .portal-sidebar a[aria-current='page'] {
  border-bottom-color: var(--portal-accent);
  border-left-color: var(--portal-accent);
  color: var(--portal-accent);
}
html[data-theme='dark'] .portal-heading > span,
html[data-theme='dark'] .portal-panel-head span,
html[data-theme='dark'] .admin-heading > span,
html[data-theme='dark'] .portal-metrics small,
html[data-theme='dark'] .portal-panel td code,
html[data-theme='dark'] .portal-gate > span {
  color: var(--portal-accent);
}
.portal-gate h1 {
  margin: 13px 0;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
}
.portal-gate p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted-dark);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 150px;
  }
  .definition-map {
    width: min(100%, 720px);
  }
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .supply-chain,
  .api-band,
  .format-band {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-inline: 20px;
  }
  .menu-button {
    display: grid;
    width: 46px;
    height: 40px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
  }
  .menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin-left: auto;
    background: currentColor;
  }
  .menu-button b {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
  }
  .site-header nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  html[data-theme='light'] .site-header nav {
    background: var(--paper-bright);
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav > a:not(.nav-cta) {
    min-height: 45px;
  }
  .hero h1 {
    font-size: 84px;
  }
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-strip span:nth-child(2) {
    border-right: 0;
  }
  .proof-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .section-intro h2,
  .api-band h2,
  .execution-band h2 {
    font-size: 46px;
  }
  .provider-grid,
  .source-grid,
  .execution-grid {
    grid-template-columns: 1fr;
  }
  .directory-callout {
    grid-template-columns: 1fr;
  }
  .directory-callout .button {
    grid-column: 1;
  }
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero,
  .registry-preview,
  .provider-band,
  .supply-chain,
  .api-band,
  .format-band,
  .execution-band {
    padding-right: 16px;
    padding-left: 16px;
  }
  .hero {
    gap: 18px;
    padding-top: 102px;
    padding-bottom: 26px;
  }
  .hero h1 {
    margin-top: 10px;
    font-size: 58px;
  }
  .hero-statement {
    margin: 17px 0 0;
    font-size: 21px;
  }
  .hero-summary,
  .hero-actions .text-link {
    display: none;
  }
  .hero-actions {
    margin-top: 19px;
  }
  .definition-map {
    min-height: 315px;
  }
  .map-head {
    min-height: 36px;
  }
  .map-core {
    top: 112px;
    left: calc(50% - 82px);
    width: 164px;
    min-height: 98px;
    padding: 14px;
  }
  .map-core strong {
    margin: 5px 0;
    font-size: 19px;
  }
  .map-core small {
    font-size: 8px;
  }
  .map-node {
    width: 92px;
    min-height: 54px;
    padding: 9px;
  }
  .node-api {
    top: 52px;
    left: 14px;
  }
  .node-cli {
    top: 52px;
    right: 14px;
  }
  .node-web {
    top: 242px;
    left: 14px;
  }
  .node-def {
    top: 242px;
    right: 14px;
  }
  .node-device {
    display: none;
  }
  .map-line {
    display: none;
  }
  .registry-preview,
  .provider-band,
  .supply-chain,
  .api-band,
  .format-band,
  .execution-band {
    padding-top: 82px;
    padding-bottom: 82px;
  }
  .section-intro h2,
  .api-band h2,
  .execution-band h2 {
    font-size: 38px;
  }
  .directory-hero,
  .directory-listing,
  .directory-callout,
  .not-found {
    padding-right: 16px;
    padding-left: 16px;
  }
  .directory-hero h1,
  .not-found h1 {
    font-size: 58px;
  }
  .directory-result {
    grid-template-columns: 44px 1fr;
  }
  .directory-result > b {
    grid-column: 2;
    justify-self: start;
  }
  .directory-callout h2 {
    font-size: 38px;
  }
  .execution-card {
    min-height: 420px;
    padding: 24px;
  }
  .execution-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .execution-card h3 {
    margin-top: 34px;
    font-size: 36px;
  }
  .registry-search > div {
    grid-template-columns: 1fr;
  }
  .registry-search input {
    min-height: 56px;
  }
  .registry-search button {
    min-height: 48px;
    border-top: 1px solid var(--ink-dark);
    border-left: 0;
  }
  .source-card {
    grid-template-columns: 44px 1fr;
  }
  .source-card > b {
    grid-column: 2;
    justify-self: start;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .provider-card {
    min-height: 300px;
  }
  .api-band pre {
    min-height: 360px;
    padding: 20px;
    font-size: 10px;
  }
  .format-grid {
    grid-template-columns: 1fr;
  }
  .format-grid span:nth-child(odd) {
    border-right: 0;
  }
  .format-grid span:nth-child(even) {
    padding-left: 0;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 60px 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .provider-card,
  .pipeline-list li {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .portal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .portal-main {
    padding: 30px;
  }
  .portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .portal-topbar {
    padding: 0 16px;
  }
  .portal-identity span {
    display: none;
  }
  .portal-identity b {
    padding-left: 0;
    border-left: 0;
  }
  .portal-layout {
    display: block;
  }
  .portal-sidebar {
    padding: 10px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
    scrollbar-width: none;
  }
  .portal-sidebar::-webkit-scrollbar {
    display: none;
  }
  .portal-sidebar > span {
    display: none;
  }
  .portal-sidebar nav {
    display: flex;
    min-width: max-content;
  }
  .portal-sidebar a {
    border-bottom: 3px solid transparent;
    border-left: 0;
  }
  .portal-sidebar a[aria-current='page'] {
    border-bottom-color: var(--deep-red);
    border-left: 0;
  }
  .portal-main {
    padding: 26px 16px 50px;
  }
  .portal-heading h1 {
    font-size: 34px;
  }
  .portal-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .portal-metrics article {
    min-height: 112px;
    padding: 14px;
  }
  .portal-metrics strong {
    font-size: 22px;
  }
  .portal-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .portal-panel-head > small {
    text-align: left;
  }
  .portal-gate h1 {
    font-size: 44px;
  }
}
