/* Copyright (c) 2017-2026 Yuri <Iurii> Trukhin, yuri@trukhin.com */
/* ownfrontier.com - Amsterdam Swiss-Mineral Editorial & 2027 Systems Blueprint CSS.
 * Self-hosted IBM Plex typography (font-display: optional -> CLS 0.000),
 * crisp cool archival slate-paper Daylight + Smoked Mineral Orbit dark mode,
 * strict 6-step modular type scale (>= 13px floor), 65ch line measure,
 * WCAG 2.2 AA/AAA contrast, zero third-party requests, zero horizontal overflow down to 320px. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-serif-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-serif-600.woff2") format("woff2");
}

:root,
:root[data-theme="daylight"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --card: #ffffff;
  --sel: #e5eaf1;
  --code-bg: #131618;
  --code-head: #1b2024;
  --code-text: #e7eaec;
  --code-dim: #97a0a9;
  --inline-code-bg: rgb(17 22 26 / 0.065);
  --line: #d4dce6;
  --line-strong: #6c7a89;
  --ink: #11161a;
  --ink-2: #3b4652;
  --muted: #4c5866;
  --accent: #115e52;
  --accent-hover: #0b463d;
  --on-accent: #ffffff;
  --accent-tint: rgb(17 94 82 / 0.09);
  --caution: #8a4b00;
  --caution-bg: #fff3d6;
  --info: #1f4e99;
  --info-bg: #e9f0fb;
  --danger: #9e2334;
  --danger-bg: #fcebec;
  --ok: #115e52;
  --ok-bg: #e6f4f0;
  --focus: #115e52;
  --shadow-sm: 0 1px 2px rgb(15 23 32 / 0.05);
  --shadow-md: 0 1px 2px rgb(15 23 32 / 0.05), 0 10px 28px rgb(15 23 32 / 0.06);
  --foot-bg: #101518;
  --foot-ink: #edf1f4;
  --foot-ink-2: #aeb8c2;
  --foot-line: #242e35;
  --foot-accent: #6dd5c2;

  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Strict 6-step modular type scale (minimum >= 13px everywhere) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h2: clamp(1.55rem, 1.25rem + 0.95vw, 2.05rem);
  --fs-h1: clamp(2.1rem, 1.55rem + 2.1vw, 3.1rem);

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 10px;

  --container: 74rem;
  --measure: 64ch;
  --dur: 140ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="daylight"]) {
    color-scheme: dark;
    --bg: #131618;
    --bg-alt: #191d20;
    --surface: #1d2226;
    --card: #1d2226;
    --sel: #262c31;
    --code-bg: #0e1113;
    --code-head: #171c1f;
    --code-text: #e7eaec;
    --code-dim: #9aa5b0;
    --inline-code-bg: rgb(255 255 255 / 0.085);
    --line: #2d343a;
    --line-strong: #6b7a87;
    --ink: #edf1f4;
    --ink-2: #b8c2cc;
    --muted: #9aa5b0;
    --accent: #6dd5c2;
    --accent-hover: #8be2d2;
    --on-accent: #0c1513;
    --accent-tint: rgb(109 213 194 / 0.13);
    --caution: #f2b44b;
    --caution-bg: #2b2214;
    --info: #78aff7;
    --info-bg: #162231;
    --danger: #f48179;
    --danger-bg: #2f1a1c;
    --ok: #6dd5c2;
    --ok-bg: #142924;
    --focus: #6dd5c2;
    --shadow-sm: inset 0 1px 0 rgb(255 255 255 / 0.05);
    --shadow-md: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 14px 36px rgb(0 0 0 / 0.34);
    --foot-bg: #0c0f11;
    --foot-ink: #edf1f4;
    --foot-ink-2: #aeb8c2;
    --foot-line: #22292e;
    --foot-accent: #6dd5c2;
  }
}

:root[data-theme="orbit"] {
  color-scheme: dark;
  --bg: #131618;
  --bg-alt: #191d20;
  --surface: #1d2226;
  --card: #1d2226;
  --sel: #262c31;
  --code-bg: #0e1113;
  --code-head: #171c1f;
  --code-text: #e7eaec;
  --code-dim: #9aa5b0;
  --inline-code-bg: rgb(255 255 255 / 0.085);
  --line: #2d343a;
  --line-strong: #6b7a87;
  --ink: #edf1f4;
  --ink-2: #b8c2cc;
  --muted: #9aa5b0;
  --accent: #6dd5c2;
  --accent-hover: #8be2d2;
  --on-accent: #0c1513;
  --accent-tint: rgb(109 213 194 / 0.13);
  --caution: #f2b44b;
  --caution-bg: #2b2214;
  --info: #78aff7;
  --info-bg: #162231;
  --danger: #f48179;
  --danger-bg: #2f1a1c;
  --ok: #6dd5c2;
  --ok-bg: #142924;
  --focus: #6dd5c2;
  --shadow-sm: inset 0 1px 0 rgb(255 255 255 / 0.05);
  --shadow-md: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 14px 36px rgb(0 0 0 / 0.34);
  --foot-bg: #0c0f11;
  --foot-ink: #edf1f4;
  --foot-ink-2: #aeb8c2;
  --foot-line: #22292e;
  --foot-accent: #6dd5c2;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0ms;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}

code, pre {
  font-family: var(--font-mono);
}

code {
  font-size: var(--fs-xs);
  padding: 0.12em 0.38em;
  border-radius: var(--r-xs);
  background: var(--inline-code-bg);
  overflow-wrap: anywhere;
}

pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

.mono {
  font-family: var(--font-mono);
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.m-0 { margin: 0; }
.mt-sm { margin-top: 0.9rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 1.6rem; }
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-muted { color: var(--muted); }
.inline-actions { display: flex; gap: 0.5rem; align-items: center; }
[hidden] {
  display: none !important;
}

/* Skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 60;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
  display: block;
}

.nav-wide ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-wide a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}
.nav-wide a:hover,
.nav-wide a[aria-current="page"] {
  color: var(--ink);
}
.nav-wide a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.nav-narrow {
  display: none;
  position: relative;
}
.nav-narrow summary {
  list-style: none;
  cursor: pointer;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-narrow summary::-webkit-details-marker {
  display: none;
}
.nav-narrow:not([open]) nav {
  display: none;
}
.nav-narrow nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 14.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  z-index: 50;
}
.nav-narrow ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.nav-narrow a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav-narrow a:hover {
  background: var(--sel);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover {
  background: var(--sel);
  color: var(--ink);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-quiet:hover {
  background: var(--sel);
  color: var(--ink);
}
.btn-sm {
  min-height: 2.35rem;
  padding: 0 0.8rem;
  font-size: var(--fs-xs);
}

/* Layout Bands */
.band,
.band-alt,
.band-hero {
  border-bottom: 1px solid var(--line);
}
.band {
  background: var(--bg);
}
.band-alt {
  background: var(--bg-alt);
}
.band-hero {
  background: var(--bg);
}

.inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.band-hero .inner {
  padding: 3.1rem 1.5rem 3.5rem;
}

.intro {
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  max-width: var(--measure);
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -0.024em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.55rem;
  text-wrap: balance;
}
p {
  margin: 0 0 1rem;
  color: var(--ink-2);
  max-width: 65ch;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
.lead {
  font-size: var(--fs-lg);
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Hero Split */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.08fr);
  gap: 2.5rem;
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  max-width: none;
}
.trust-micro {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

/* Fact Rail */
.fact-rail {
  margin: 0.35rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1.25rem;
}
.fact-rail dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.fact-rail dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* Interactive Product Stage (Chief / Multitask / @browser & @computer / CLI) */
.proof-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.proof-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.proof-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.proof-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  min-height: 2.35rem;
  padding: 0.35rem 0.68rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover {
  color: var(--ink);
  background: var(--sel);
}
.tab-btn[aria-selected="true"],
.tab-btn[aria-pressed="true"] {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 600;
}

.proof-panel {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface);
  min-height: 25rem;
}

.prompt-strip {
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.5;
  max-width: 62ch;
}
.prompt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.mission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.mission-row:last-child {
  border-bottom: none;
}
.mission-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.mission-title {
  font-weight: 600;
  color: var(--ink);
}
.mission-sub {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Editorial Feature Showcases */
.showcase-stack {
  display: grid;
  gap: 3.5rem;
}
.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}
.showcase-row.is-flipped .showcase-copy {
  order: 2;
}
.showcase-row.is-flipped .showcase-visual {
  order: 1;
}
.showcase-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.showcase-points {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.showcase-points li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-wrap: pretty;
}
.point-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  flex: none;
}

.visual-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
}
.visual-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.visual-frame-body {
  padding: 1.15rem;
  display: grid;
  gap: 0.9rem;
}
.dispatch-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1.25rem;
}
.lane-card {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.lane-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
}
.lane-card p {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.48;
  text-wrap: pretty;
}

/* Interactive Lens Showcase */
.lens-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.lens-btn {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lens-btn:hover {
  background: var(--sel);
  color: var(--ink);
}
.lens-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.lens-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.45rem;
  display: grid;
  gap: 0.95rem;
}
.lens-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.lens-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.lens-meta dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* Pillar Grid (Asymmetric Lead + Dual Secondary) */
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.trust-secondary {
  display: grid;
  gap: 1.25rem;
}
.pillar-featured {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}
.deep-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.deep-links-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.diff-preview {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  display: grid;
  gap: 0.3rem;
}

.rail-section {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.rail-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.rail-section.is-caution {
  background: var(--caution-bg);
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-sm);
  border-bottom: none;
}
.rail-section.is-danger {
  background: var(--danger-bg);
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-sm);
  border-bottom: none;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.14rem 0.45rem;
  border-radius: var(--r-xs);
  background: var(--inline-code-bg);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag-caution {
  background: var(--caution-bg);
  color: var(--caution);
}
.is-caution .tag-caution {
  border: 1px solid currentColor;
}
.tag-info {
  background: var(--info-bg);
  color: var(--info);
}
.tag-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.is-danger .tag-danger {
  border: 1px solid currentColor;
}

.kv-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.kv-list li {
  list-style: none;
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  max-width: 60ch;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.proof-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Terminal / Code Surface */
.code-panel {
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid #2b3035;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--code-head);
  border-bottom: 1px solid #2b3035;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--code-dim);
}
.code-panel pre {
  margin: 0;
  padding: 0.95rem 1rem;
  font-size: var(--fs-xs);
  line-height: 1.56;
  overflow-x: auto;
  color: var(--code-text);
  white-space: pre;
}
.tui-em { color: #6dd5c2; }
.tui-warn { color: #f2b44b; }
.tui-info { color: #78aff7; }
.tui-dim { color: #97a0a9; }
.code-panel.no-color,
.code-panel.no-color * {
  color: #e4e6e8 !important;
  background-color: transparent !important;
}
.code-panel.no-color {
  background: #141618 !important;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
}
th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Interactive 8-Layer 2027 Architecture Blueprint */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.arch-list {
  display: grid;
  gap: 0.45rem;
}
.arch-btn {
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arch-btn:hover {
  background: var(--sel);
}
.arch-btn[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.arch-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.arch-btn-sub {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.arch-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.arch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.arch-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.arch-meta dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* Spec Grid & Splits */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.spec-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.spec-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--accent);
  font-weight: 600;
}

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.25rem;
  align-items: start;
}
.split-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.horizon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

/* Real Workspace Capture Figure + Lightbox */
.capture-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.capture-figure-flat {
  margin: 0;
  overflow: hidden;
}
.capture-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #101214;
  text-align: left;
  cursor: zoom-in;
}
.capture-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.capture-figure figcaption,
.capture-figure-flat figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.capture-figure figcaption a,
.capture-figure-flat figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.4rem;
}

dialog.lightbox {
  max-width: min(94vw, 88rem);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.55);
}
dialog.lightbox::backdrop {
  background: rgb(10 12 14 / 0.78);
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: var(--fs-sm);
}
.lightbox-body {
  padding: 0.75rem;
  overflow: auto;
  background: #101214;
}
.lightbox-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Epistemic Legend & Progressive Disclosure Details */
.epistemic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.epistemic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

details.evidence-drawer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.2rem 1.15rem;
}
details.evidence-drawer summary {
  cursor: pointer;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-sm);
}
.evidence-body {
  padding: 0.4rem 0 1.1rem;
  border-top: 1px solid var(--line);
}

/* Structured Lists */
ul.clean-list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-2);
  max-width: 65ch;
}
ul.clean-list li strong {
  color: var(--ink);
}

.route-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.route-list li {
  border-bottom: 1px solid var(--line);
}
.route-list a {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1rem 0.35rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--ink);
  align-items: baseline;
}
.route-list a:hover {
  background: var(--sel);
}
.route-name {
  font-weight: 600;
  color: var(--accent);
}
.route-desc {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  max-width: 65ch;
}

/* Early-Access & Inquiry Form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2.25rem;
  align-items: start;
}
.contact-meta {
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.contact-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
}
.contact-meta dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: var(--fs-sm);
}

.inquiry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.inquiry-form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.field ::placeholder {
  color: var(--muted);
  opacity: 1;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
  margin: 0.65rem 0 0;
}

/* Long-form Documentation / Legal Prose */
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type {
  margin-top: 1.5rem;
}
.prose h3 {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-ink);
  border-top: 1px solid var(--foot-line);
}
.foot {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  gap: 1.75rem;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.foot a {
  color: var(--foot-accent);
}
.foot-brand {
  font-size: var(--fs-base);
  color: var(--foot-ink);
  margin-bottom: 0.45rem;
}
.foot-lead,
.foot-status-text,
.foot-meta {
  color: var(--foot-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.56;
  max-width: 62ch;
}
.foot-status {
  padding-left: 1.25rem;
  border-left: 1px solid var(--foot-line);
}
.foot-status-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foot-ink);
  margin-bottom: 0.35rem;
}
.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--foot-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}
.foot-nav a {
  color: var(--foot-ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.2rem;
}
.foot-nav a:hover {
  color: var(--foot-ink);
  text-decoration: underline;
}
.foot-meta {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--foot-line);
  font-size: var(--fs-xs);
}
.site-footer a:focus {
  outline: 2.5px solid var(--foot-accent);
  outline-offset: 2px;
}

/* Responsive Breakpoints (320px to 1920px, zero overflow) */
@media (max-width: 960px) {
  .nav-wide {
    display: none;
  }
  .nav-narrow {
    display: block;
  }
  .hero-grid,
  .arch-grid,
  .split-2,
  .showcase-row,
  .trust-layout,
  .contact-grid,
  .foot-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-row.is-flipped .showcase-copy,
  .showcase-row.is-flipped .showcase-visual {
    order: initial;
  }
  .epistemic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .horizon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-status {
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    border-top: 1px solid var(--foot-line);
  }
}

@media (max-width: 720px) {
  .spec-grid,
  .split-equal,
  .dispatch-lanes,
  .lens-meta,
  .form-row,
  .arch-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .tab-btn,
  .btn,
  .btn-sm,
  .arch-btn {
    min-height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .bar {
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
  }
  .inner,
  .band-hero .inner {
    padding: 2.25rem 0.95rem;
  }
  .fact-rail,
  .epistemic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar-actions .btn-primary {
    display: none;
  }
  .code-panel pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
