/* =========================================================
   IBM Plex, self-hosted. The site made one outbound request
   and it was for these files; now it makes none.
   ========================================================= */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

/* =========================================================
   Tokenistry — enterprise infrastructure design system
   Grayscale system, oxblood as the single brand accent.
   IBM Plex Sans. Rigid grid, thin rules, flat surfaces.
   ========================================================= */

:root {
  /* ---- Core palette ---- */
  --black: #161616;
  --graphite: #262626;
  --gray-dark: #525252;
  --gray-mid: #8d8d8d;
  --gray-border: #c6c6c6;
  --gray-surface: #f4f4f4;
  --white: #ffffff;

  /* ---- Brand accent: hot rod red ---- */
  --hotrod: #c8102e;
  --hotrod-hover: #a50d26;
  --hotrod-active: #820a1e;
  /* Lightened brand tints, for the surfaces where #c8102e falls short of 4.5:1. */
  --hotrod-on-dark: #e8465c;
  /* Display-size only. The full brand red reaches 3.1:1 on #161616 — enough at
     60px, short of what the small mono labels above need. */
  --hotrod-display: #c8102e;
  --hotrod-line-dark: #d92941;

  /* ---- Semantic tokens (kept for existing markup) ---- */
  --canvas: #f4f4f4;
  --surface: #ffffff;
  --ink: #161616;
  --ink-soft: #525252;
  --muted: #8d8d8d;
  --line: #c6c6c6;
  --line-strong: #8d8d8d;
  --accent: #c8102e;
  --accent-hover: #a50d26;
  --accent-soft: #f4f4f4;
  --status: #c8102e;

  /* Borders organise this design; shadows do not — there are no shadow tokens.
     Error is deliberately NOT the brand colour. */
  --danger: #a2191f;
  --danger-bg: #fff1f1;
  --danger-border: #ffb3b8;
  --warn-ink: #262626;

  /* ---- Dark surfaces ---- */
  --console: #161616;
  --console-line: #393939;
  --console-muted: #8d8d8d;
  --console-ink: #ffffff;

  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 90rem; /* 1440px */
  --gutter: 1rem;
  --radius: 0;
  --radius-sm: 0;
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 600;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
  }
}

@media (min-width: 1312px) {
  :root {
    --gutter: 3rem;
  }
}

.section {
  padding-block: 4.5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 6rem;
  }
}

/* Vertical rhythm only — never clobber .container's gutters. */
.section-tight {
  padding-block: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 46rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--gray-dark);
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-mark {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  background: var(--accent);
  vertical-align: baseline;
}

.prose-tech {
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42rem;
}

.prose-tech p + p {
  margin-top: 1rem;
}

/* Inline links must survive being dropped into prose. Answers in a FAQ and
   copy inside a card were inheriting the body colour with no underline, which
   left them indistinguishable from the text around them -- a link nobody can
   see is a link nobody clicks, and it fails on colour contrast grounds too. */
.prose-tech a,
.faq-answer a,
.option-grid article p a,
.card p a,
.link-inline {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose-tech a:hover,
.faq-answer a:hover,
.option-grid article p a:hover,
.card p a:hover,
.link-inline:hover {
  color: var(--hotrod-hover);
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.11s ease, border-color 0.11s ease, color 0.11s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--hotrod-hover);
  border-color: var(--hotrod-hover);
}

.btn-primary:active {
  background: var(--hotrod-active);
  border-color: var(--hotrod-active);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-dark);
}

.btn-secondary:hover {
  background: var(--gray-surface);
  border-color: var(--black);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Buttons that sit on a dark surface */
.on-dark .btn-secondary,
.hero-shell .btn-secondary,
.band-dark .btn-secondary,
.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.on-dark .btn-secondary:hover,
.hero-shell .btn-secondary:hover,
.band-dark .btn-secondary:hover,
.cta-band .btn-secondary:hover {
  background: var(--graphite);
  border-color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 2rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--console-line);
  background: var(--black);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding-right: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding-right: 1.5rem;
  color: #fff;
}

.logo-img {
  display: block;
  height: 22px;
  width: auto;
  /* The wordmark is pure black artwork; invert it on dark surfaces. */
  filter: invert(1);
}

.logo-footer {
  height: 20px;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .logo-img {
    height: 20px;
  }
}

.primary-nav {
  display: none;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
  margin-right: auto;
}

.primary-nav a,
.nav-dropdown > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  height: 100%;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 400;
  color: #f4f4f4;
  list-style: none;
  cursor: pointer;
}

.primary-nav a:hover,
.nav-dropdown > summary:hover {
  background: var(--graphite);
  color: #fff;
}

.primary-nav a[aria-current="page"],
.primary-nav a.is-active {
  border-bottom-color: var(--hotrod-on-dark);
  color: #fff;
}

.nav-dropdown {
  position: relative;
  display: flex;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown[open] > summary {
  background: var(--graphite);
  color: #fff;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 22rem;
  padding: 0;
  border: 1px solid var(--console-line);
  border-radius: 0;
  background: var(--graphite);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--console-line);
  border-radius: 0;
}

.nav-dropdown-panel a:last-child {
  border-bottom: 0;
}

.nav-dropdown-panel a:hover {
  background: var(--black);
}

.nav-dropdown-panel .item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.nav-dropdown-panel .item-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--gray-mid);
}

.header-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
}

/* Main CTA in the nav: rectangular outline, not a filled pill. */
.header-actions .btn {
  display: none;
  min-height: 0;
  height: 2.25rem;
  align-self: center;
  margin: 0 0 0 1.25rem;
  padding: 0 1rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 400;
}

.header-actions .btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--black);
}

.nav-toggle {
  display: inline-flex;
  margin-left: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 0;
  border-left: 1px solid var(--console-line);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--graphite);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--console-line);
  background: var(--black);
  padding-block: 1.5rem 2rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--gray-mid);
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--console-line);
  font-size: 0.9375rem;
  color: #f4f4f4;
}

.mobile-nav a:hover {
  color: #fff;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1.5rem;
  border-bottom: 0;
  background: var(--accent);
  color: #fff;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

/* ---------- Hero (dark infrastructure surface) ---------- */
.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid var(--console-line);
}

/* Structural 12-column rules — the grid is part of the visual language. */
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

@media (min-width: 1024px) {
  .hero-shell::before {
    background-size: calc(100% / 12) 100%;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  padding-block: 3.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-grid {
    padding-block: 5rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0 2rem;
    padding-block: 7rem;
  }

  .hero-copy {
    grid-column: 1 / span 7;
  }

  .hero-visual {
    grid-column: 8 / span 5;
  }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  color: var(--hotrod-display);
}

.hero .eyebrow {
  color: var(--gray-mid);
}

.hero .eyebrow .eyebrow-mark {
  background: var(--hotrod-on-dark);
}

.hero-sub {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.hero-supporting {
  margin-top: 1.25rem;
  max-width: 34rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--console-line);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-mid);
}

/* ---------- Dark bands ---------- */
.band-dark {
  background: var(--black);
  color: #fff;
  border-top: 1px solid var(--console-line);
  border-bottom: 1px solid var(--console-line);
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark .section-lead,
.band-dark .prose-tech {
  color: #c6c6c6;
}

.band-dark .prose-tech a,
.band-dark .faq-answer a,
.band-dark .link-inline {
  color: #fff;
  text-decoration-color: var(--hotrod-on-dark);
}

.band-dark .eyebrow {
  color: var(--gray-mid);
}

.band-dark .eyebrow .eyebrow-mark {
  background: var(--hotrod-on-dark);
}

/* Capability labels — a rule-separated strip, not cards. */
.trait-strip {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: var(--console-line);
  border: 1px solid var(--console-line);
}

@media (min-width: 640px) {
  .trait-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trait-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.trait-strip li {
  background: var(--black);
  padding: 1.25rem 1.25rem 1.5rem;
}

.trait-strip .trait-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--hotrod-on-dark);
}

.trait-strip .trait-name {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

.trait-strip .trait-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-mid);
}

/* ---------- Console / layered system diagram ---------- */
.console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--console-line);
  border-radius: 0;
  background: var(--console);
  color: var(--console-ink);
}

.hero-visual .console {
  border-color: #525252;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--console-line);
  background: var(--graphite);
}

.console-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--console-muted);
}

.console-title {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--console-ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--console-line);
  border-radius: 0;
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #f4f4f4;
  flex-shrink: 0;
}

.status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0;
  background: var(--hotrod-on-dark);
}

.console-body {
  display: grid;
}

@media (min-width: 1024px) {
  .console-body.split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.console-stack {
  padding: 0;
  border-bottom: 1px solid var(--console-line);
}

@media (min-width: 1024px) {
  .console-stack {
    border-bottom: 0;
    border-right: 1px solid var(--console-line);
  }
}

.stack-row {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--console-line);
}

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

.stack-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}

.stack-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.stack-detail {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}

.stack-marker {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0;
  border: 1px solid var(--gray-dark);
  background: transparent;
}

/* The one oxblood focal object in the hero diagram. */
.stack-row:has(.stack-marker.active) {
  background: var(--graphite);
  box-shadow: inset 3px 0 0 var(--hotrod-line-dark);
}

.stack-marker.active {
  border-color: var(--hotrod-on-dark);
  background: var(--hotrod-on-dark);
}

.console-status {
  padding: 1.15rem;
}

.status-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 1px;
  background: var(--console-line);
  border: 1px solid var(--console-line);
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e0e0e0;
}

.status-item .state-done,
.status-item .state-active,
.status-item .state-pending {
  text-transform: uppercase;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}

.status-item .state-done {
  color: var(--gray-mid);
}

.status-item .state-active {
  color: var(--hotrod-on-dark);
}

.status-item .state-pending {
  color: var(--gray-dark);
}

/* ---------- Flow panels (light diagrams) ---------- */
.flow-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.flow-panel-header,
.flow-panel-footer {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--gray-surface);
}

.flow-panel-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--gray-dark);
  background: var(--surface);
}

.flow-panel-header .eyebrow,
.flow-panel-header .console-label {
  color: var(--gray-dark);
}

.flow-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.5rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  /* The rule below covers a <pre> nested inside .flow-body, but the markup in
     use is <pre class="flow-body"> -- the element itself -- so it never
     matched, and a line wider than the panel was simply clipped with no way to
     scroll to it. On a phone that hides the right-hand end of every command. */
  overflow-x: auto;
}

.flow-body pre {
  margin: 0;
  overflow-x: auto;
  font: inherit;
  color: inherit;
  white-space: pre;
}

.flow-node {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  text-align: center;
  font-weight: 400;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.flow-node.strong {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

.flow-arrow {
  text-align: center;
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
}

.flow-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 1.5rem 1.15rem;
}

.flow-horizontal .flow-node {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  min-width: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-horizontal .flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
}

@media (max-width: 640px) {
  .flow-horizontal {
    flex-direction: column;
  }

  .flow-horizontal .flow-arrow {
    transform: rotate(90deg);
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Ownership callout ---------- */
.ownership-banner {
  display: grid;
  gap: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .ownership-banner {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4rem;
    padding: 0;
  }
}

.ownership-quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: inherit;
  max-width: 20ch;
}

.ownership-list {
  border-top: 1px solid var(--console-line);
}

.ownership-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.25rem;
  border-bottom: 1px solid var(--console-line);
  color: #c6c6c6;
  font-size: 0.9375rem;
}

.ownership-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--hotrod-on-dark);
  border-radius: 0;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

/* Rule-separated column grids: one shared hairline, no floating cards. */
.grid-2,
.grid-3 {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

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

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  padding: 1.75rem 1.5rem 2rem;
}

.grid-2 > .card,
.grid-3 > .card {
  border: 0;
}

.card h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--gray-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.band-dark .grid-2,
.band-dark .grid-3,
.on-dark .grid-2,
.on-dark .grid-3 {
  background: var(--console-line);
  border-color: var(--console-line);
}

.band-dark .card,
.on-dark .card {
  background: var(--black);
  border-color: var(--console-line);
}

.band-dark .card h3,
.on-dark .card h3 {
  color: #fff;
}

.band-dark .card p,
.on-dark .card p {
  color: var(--gray-mid);
}

/* ---------- Platform modules — structured enterprise grid ---------- */
.capability-list {
  margin-top: 3rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .capability-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .capability-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-item {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--surface);
  border-bottom: 0;
  transition: background-color 0.11s ease;
}

.capability-item:hover {
  background: var(--gray-surface);
}

.capability-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.capability-item:hover .capability-icon {
  color: var(--accent);
}

.capability-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
}

.capability-item h3 {
  margin-top: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.capability-item p {
  margin-top: 0.65rem;
  color: var(--gray-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}

.capability-item .capability-more {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Rule-separated lists ---------- */
.need-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}

@media (min-width: 640px) {
  .need-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.need-grid li {
  background: var(--surface);
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gray-dark);
}

.option-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}

@media (min-width: 900px) {
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option-grid article {
  background: var(--surface);
  padding: 1.75rem 1.5rem 2rem;
}

.option-grid h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.option-grid p {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

.option-grid .emphasis {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

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

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .package-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.package-card {
  border: 0;
  background: var(--surface);
  border-radius: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.package-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-card h3 {
  font-size: 1.0625rem;
  font-weight: 500;
}

.package-card p {
  color: var(--gray-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}

.package-card .model {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.two-col {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }

  .two-col.equal {
    grid-template-columns: 1fr 1fr;
  }
}

.pull-quote {
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  max-width: 32ch;
}

/* ---------- Page hero (interior pages) ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-mid);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--gray-dark);
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--gray-border);
}

.page-hero {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.page-hero .lead {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

.page-section {
  margin-top: 4rem;
}

.page-section h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--gray-dark);
  flex: none;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  margin: 0;
  padding: 0 0 1.5rem;
  color: var(--gray-dark);
  max-width: 72ch;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ---------- Related links ---------- */
.related-links {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 640px) {
  .related-links {
    grid-template-columns: 1fr 1fr;
  }
}

.related-links a {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.related-links a:hover {
  background: var(--gray-surface);
}

.related-links .item-title {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.related-links a:hover .item-title {
  color: var(--accent);
}

.related-links .item-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--gray-mid);
}

/* ---------- Contact ---------- */
.contact-shell {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-shell {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 1.75rem 1.5rem 2rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-dark);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--gray-surface);
  border: 0;
  border-bottom: 1px solid var(--gray-mid);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-bottom-color: var(--accent);
}

.form-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--gray-mid);
  line-height: 1.55;
}

.form-alert {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Errors use a dedicated semantic token, never the brand oxblood. */
.form-alert.error {
  border: 1px solid var(--danger-border);
  border-left: 3px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-alert.warn {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gray-dark);
  background: var(--gray-surface);
  color: var(--warn-ink);
}

.form-alert.success {
  border: 1px solid var(--line);
  border-left: 3px solid var(--black);
  background: var(--gray-surface);
  color: var(--black);
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--black);
  color: #fff;
  text-align: left;
  padding-block: 5rem;
  border-top: 1px solid var(--console-line);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 1.25rem;
}

.cta-band p {
  color: #c6c6c6;
  max-width: 44rem;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--hotrod-hover);
  border-color: var(--hotrod-hover);
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--console-line);
  padding-block: 4rem 3rem;
  background: var(--black);
  color: #f4f4f4;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem 4rem;
  }

  .footer-inner > :nth-child(3),
  .footer-inner > :nth-child(4) {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  font-size: 1rem;
  font-weight: 500;
}

.footer-tag {
  color: var(--gray-mid);
  font-size: 0.875rem;
  max-width: 40ch;
}

/* The footer's second column: product links, then the developer links under
   them. A wrapper rather than another child of .footer-inner, because that grid
   assigns full width by position -- adding a sibling would move the disclaimer
   onto the signature's row. */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Deliberately not styled like .footer-links. These are five outbound
   destinations, not a site map, and giving them the same three-column grid
   would read as more of the same list. */
.footer-dev {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  font-size: 0.875rem;
  border-top: 1px solid var(--console-line);
  padding-top: 1.25rem;
}

.footer-dev .eyebrow {
  flex-basis: 100%;
  margin: 0 0 0.35rem;
  color: var(--gray-mid);
}

.footer-dev a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.75;
}

.footer-dev a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--console-line);
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-links a {
  display: block;
  padding: 0.7rem 0;
  padding-right: 1rem;
  border-bottom: 1px solid var(--console-line);
  color: #c6c6c6;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: var(--gray-mid);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.footer-disclaimer {
  color: var(--gray-mid);
  font-size: 0.8125rem;
  max-width: 70ch;
  line-height: 1.6;
  padding-top: 2rem;
  border-top: 1px solid var(--console-line);
}

/* =========================================================
   Technology / architecture page
   ========================================================= */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--gray-surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.lang.muted {
  color: var(--gray-mid);
  border-color: var(--line);
  background: var(--surface);
}

.console .lang {
  background: var(--graphite);
  border-color: var(--console-line);
  color: #f4f4f4;
}

.console .lang.muted {
  color: var(--console-muted);
  background: transparent;
}

/* Layered architecture diagram (inside .console) */
.arch-stack {
  padding: 0;
}

.arch-zone {
  padding: 0.6rem 1.15rem;
  border-bottom: 1px solid var(--console-line);
  background: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--console-muted);
}

.arch-layer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--console-line);
}

.arch-layer:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .arch-layer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Tokenistry-owned layers are the one accented element in the diagram. */
.arch-layer.owned {
  background: var(--graphite);
  box-shadow: inset 3px 0 0 var(--hotrod-line-dark);
}

.arch-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--console-ink);
}

.arch-detail {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--console-muted);
}

.arch-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .arch-langs {
    justify-content: flex-end;
  }
}

/* Source language on the left, deployed artifact on the right. Without the
   arrow the two chips sit adjacent and read as one compound -- "Rust
   container", "Solidity on chain" -- and the second of those asserts something
   untrue, since what reaches the chain is bytecode rather than the language it
   was written in. The screen-reader text carries the same relationship the
   arrow does visually. */
.arch-langs .lang-arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--console-muted);
}

/* ---------- Tables ---------- */
.table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.tech-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tech-table caption {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  background: var(--gray-surface);
}

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

.tech-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--gray-surface);
  border-bottom: 1px solid var(--gray-mid);
  white-space: nowrap;
}

.tech-table tbody tr:last-child th,
.tech-table tbody tr:last-child td {
  border-bottom: 0;
}

.tech-table tbody tr:hover {
  background: var(--gray-surface);
}

.tech-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.tech-table td {
  color: var(--gray-dark);
  line-height: 1.6;
}

.tech-table .col-lang {
  white-space: nowrap;
}

/* ---------- Spec list ---------- */
.spec-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}

@media (min-width: 768px) {
  .spec-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  background: var(--surface);
  padding: 1.5rem;
}

.spec-item .spec-tag {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-item h3 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.spec-item p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

/* ---------- Pipeline ---------- */
.pipeline {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}

@media (min-width: 700px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .pipeline {
    grid-template-columns: repeat(6, 1fr);
  }
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 1.25rem 1.15rem 1.5rem;
}

.pipeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-mid);
}

.pipeline-step h3 {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.pipeline-step p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-dark);
}

.pipeline-step .lang {
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-start;
  border: 0;
  background: none;
  padding-left: 0;
  padding-right: 0;
  color: var(--gray-mid);
}

/* ---------- Boundary callout ---------- */
.boundary-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--gray-surface);
}

.boundary-note p {
  color: var(--gray-dark);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 62ch;
}

.boundary-note p + p {
  margin-top: 0.75rem;
}

/* ---------- Alternating light surfaces ----------
   A full-bleed band, the light counterpart to .band-dark. It has no gutters of
   its own, so it belongs directly under <main> with its own .container inside.
   Nested in a .container instead, the tint stops at the text edge and the copy
   sits flush against it — which is what it did on /quickstart/ until the rule
   below existed. */
.surface-alt {
  background: var(--gray-surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Nested anyway: break out to the container's edges and put the gutters back,
   so a misplaced band reads as deliberate rather than as a bug. */
.container > .surface-alt {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

/* ---------- Utility ---------- */
.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.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;
}

/* ---------- Dark-surface overrides for shared components ---------- */
@media (min-width: 1024px) {
  /* The hero visual occupies 5 columns — keep the stack in one column. */
  .hero-visual .console-body.split {
    grid-template-columns: 1fr;
  }

  .hero-visual .console-stack {
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }
}

.band-dark .flow-panel {
  border-color: var(--console-line);
  background: var(--black);
}

.band-dark .flow-panel-header {
  background: var(--graphite);
  border-color: var(--console-line);
}

.band-dark .flow-panel-footer {
  background: var(--black);
  border-color: var(--console-line);
  color: var(--gray-mid);
}

.band-dark .flow-panel-header .console-label {
  color: var(--console-muted);
}

.band-dark .flow-node {
  background: var(--black);
  border-color: var(--console-line);
  color: #f4f4f4;
}

.band-dark .flow-node.strong {
  background: var(--hotrod);
  border-color: var(--hotrod);
  color: #fff;
}

.band-dark .flow-arrow {
  color: var(--gray-dark);
}

.band-dark .need-grid,
.band-dark .related-links,
.band-dark .capability-list {
  background: var(--console-line);
  border-color: var(--console-line);
}

.band-dark .need-grid li,
.band-dark .related-links a,
.band-dark .capability-item {
  background: var(--black);
  color: #c6c6c6;
}

/* Consistent structural dividers between stacked sections. */
.container > .section + .section {
  border-top: 1px solid var(--line);
}

/* Stacked cards that share one hairline rather than floating apart. */
.grid-stack {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-stack > .card {
  border: 0;
}

.band-dark .grid-stack {
  background: var(--console-line);
  border-color: var(--console-line);
}

/* Sixth cell of the module grid: context, not a module. */
.capability-note {
  background: var(--gray-surface);
}

.capability-note:hover {
  background: var(--gray-surface);
}

.capability-note .capability-more a {
  color: var(--accent);
  text-decoration: none;
}

.capability-note .capability-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Lattice grids
   Children draw the hairlines with overlapping outlines, so a
   ragged final row never leaves an empty ruled cell behind.
   --------------------------------------------------------- */
.grid-2,
.grid-3,
.grid-stack,
.capability-list,
.need-grid,
.option-grid,
.package-grid,
.related-links,
.spec-list,
.pipeline,
.trait-strip,
.status-list {
  gap: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.grid-2 > *,
.grid-3 > *,
.grid-stack > *,
.capability-list > *,
.need-grid > *,
.option-grid > *,
.package-grid > *,
.related-links > *,
.spec-list > *,
.pipeline > * {
  outline: 1px solid var(--line);
}

.trait-strip > *,
.status-list > *,
.band-dark .grid-2 > *,
.band-dark .grid-3 > *,
.band-dark .grid-stack > *,
.band-dark .capability-list > *,
.band-dark .need-grid > *,
.band-dark .related-links > * {
  outline: 1px solid var(--console-line);
}

/* Focus rings must still win over the lattice hairline. */
.capability-list > a:focus-visible,
.related-links > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Horizontal flows lay out in a row; the base node width is a column rule. */
.flow-horizontal .flow-node {
  width: auto;
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* The current page inside a nav dropdown: a marker on the edge, since the
   underline the top-level items use has nothing to sit against in a panel. */
.nav-dropdown-panel a[aria-current="page"] {
  background: var(--black);
  box-shadow: inset 3px 0 0 var(--hotrod-on-dark);
}

/* Ownership boundaries on a light surface. The dark band's list is styled for
   #161616; this is the same idea where the ground is white. */
.boundary-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--gray-dark);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.boundary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.4rem;
  height: 1px;
  background: var(--gray-mid);
}

/* The negative column reads as a boundary, not as a list of failures. */
.grid-2 > .card:last-child .boundary-list li::before {
  background: var(--accent);
}

/* ---------- Mobile density ----------
   A page that reads as dense on a desktop becomes a long scroll on a phone.
   These only reduce stacking; nothing is hidden and desktop is untouched. */
@media (max-width: 639px) {
  .section {
    padding-block: 3.25rem;
  }

  /* Short mono labels sit two-up comfortably at 375px, halving the run. */
  .need-grid {
    grid-template-columns: 1fr 1fr;
  }

  .need-grid li {
    padding: 0.7rem 0.75rem;
    font-size: 0.75rem;
  }

  .capability-item,
  .package-card,
  .option-grid article,
  .card {
    padding: 1.5rem 1.25rem;
  }

  .capability-icon {
    margin-bottom: 1rem;
  }

  .ownership-banner,
  .two-col {
    gap: 2.25rem;
  }
}

/* The signature line sits with the copyright, quieter than the tagline beside
   the wordmark so the two do not compete. */
.footer-signature {
  color: #c6c6c6;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

/* The contact address sits under the tagline, in the brand column of the
   footer. Mono, because it is an address rather than a sentence. */
.footer-contact {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.footer-contact a {
  color: #c6c6c6;
  text-decoration: underline;
  text-decoration-color: var(--hotrod-on-dark);
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: #fff;
}
