:root {
  color-scheme: dark;
  --ink: #111316;
  --ink-2: #15181c;
  --panel: #181c20;
  --panel-2: #1c2126;
  --panel-3: #22282e;
  --line: #353b40;
  --line-soft: rgba(244, 240, 232, 0.14);
  --paper: #f4f0e8;
  --paper-2: #e6e0d5;
  --white: #f4f0e8;
  --text: #e6e0d5;
  --muted: #bebab2;
  --dim: #7f7b74;
  --signal: #ff5a3d;
  --signal-deep: #c93a22;
  --mint: var(--signal);
  --mint-2: var(--signal-deep);
  --blue: #79aef8;
  --amber: #f0bf68;
  --review: #c5a4ef;
  --red: #ed7b82;
  --display: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
  --font: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1420px;
  --gutter: clamp(22px, 4vw, 72px);
  --section: clamp(100px, 12vw, 190px);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
blockquote {
  font-family: var(--display);
}

a {
  color: var(--text);
  text-decoration-color: rgba(255, 90, 61, 0.48);
  text-underline-offset: 4px;
}

a:visited {
  color: #cad7d0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink) !important;
  font-weight: 700;
  transition: transform 160ms ease-out;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background-color: rgba(17, 19, 22, 0.96);
  backdrop-filter: blur(14px);
}

.wordmark {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.group-wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.group-logo-full {
  width: 184px;
  height: auto;
  display: block;
}

.group-logo-mark {
  width: 30px;
  height: 30px;
  display: none;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(244, 240, 232, 0.24);
}

.relay-wordmark {
  color: var(--mint);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.relay-mark {
  position: relative;
  width: 29px;
  height: 29px;
  display: inline-block;
  border: 1px solid rgba(255, 90, 61, 0.5);
}

.relay-mark i {
  position: absolute;
  width: 13px;
  height: 2px;
  left: 7px;
  border-radius: 4px;
  background: var(--mint);
}

.relay-mark i:nth-child(1) {
  top: 7px;
  transform: rotate(30deg);
}
.relay-mark i:nth-child(2) {
  top: 13px;
  transform: rotate(-30deg);
}
.relay-mark i:nth-child(3) {
  top: 19px;
  transform: rotate(30deg);
}
.relay-mark.small {
  width: 24px;
  height: 24px;
}
.relay-mark.small i {
  left: 5px;
}
.relay-mark.small i:nth-child(1) {
  top: 5px;
}
.relay-mark.small i:nth-child(2) {
  top: 11px;
}
.relay-mark.small i:nth-child(3) {
  top: 17px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
}

.desktop-nav a {
  color: #aeb8b3;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 140ms ease-out;
}

.desktop-nav a:hover {
  color: var(--white);
}

.header-cta {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(14, 19, 23, 0.78);
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 160ms ease-out,
    background-color 160ms ease-out;
}

.header-cta:hover {
  border-color: rgba(255, 90, 61, 0.7);
  background: #131a1e;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(255, 90, 61, 0.1);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 0.97fr) minmax(520px, 1.03fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px clamp(40px, 5vw, 90px);
  padding: 136px var(--gutter) 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 90, 61, 0.1), transparent 30%),
    linear-gradient(135deg, #111316 0%, #17191d 54%, #111316 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 70%);
}

.hero::after {
  content: 'DSPY / 001';
  position: absolute;
  right: -22px;
  bottom: 4px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: clamp(100px, 17vw, 280px);
  line-height: 0.75;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.hero-grid {
  position: absolute;
  inset: 76px 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-soft) 10%,
    var(--line-soft) 90%,
    transparent
  );
}

.hero-scan {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 49%;
  opacity: 0.2;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 90, 61, 0.14) 50%, transparent 51%);
  background-size: 100% 14px;
  mask-image: linear-gradient(to left, #000, transparent);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-kicker,
.section-index,
.simulation-label,
.preview-label,
.live-label,
.detail-id,
.capacity-copy > span,
.connect-copy > span,
.rail-intro > span,
.lane-label,
.join-status,
.truth-column > span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(26px, 4vw, 52px);
  color: #b5bfba;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
}

.live-label i,
.simulation-label i,
.preview-label i,
.join-status i,
.preview-health i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  color: var(--white);
  font-size: clamp(56px, 6.25vw, 106px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.072em;
  text-wrap: balance;
}

.hero-deck {
  max-width: 680px;
  margin: 36px 0 0;
  color: #b5c0ba;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-bridge {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--paper-2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions,
.join-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 21px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease-out,
    background-color 160ms ease-out,
    border-color 160ms ease-out;
}

.action:hover {
  transform: translateY(-2px);
}

.action.primary {
  background: var(--mint);
  color: var(--ink) !important;
}

.action.primary:hover {
  background: #ff745d;
}

.action.text-action {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.hero-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  color: #899690;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}

.hero-topology {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  aspect-ratio: 1.22 / 1;
  justify-self: end;
}

.hero-topology > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.topology-lines path {
  fill: none;
  stroke: url(#lineFade);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
}

.signal-packets circle {
  fill: var(--mint);
  filter: drop-shadow(0 0 5px rgba(255, 90, 61, 0.8));
}

.topology-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(154px, 21vw, 220px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 90, 61, 0.55);
  background: radial-gradient(circle, rgba(255, 90, 61, 0.13), rgba(17, 19, 22, 0.94) 70%);
  box-shadow:
    0 0 0 18px rgba(255, 90, 61, 0.025),
    0 0 0 52px rgba(255, 90, 61, 0.015),
    0 0 60px rgba(255, 90, 61, 0.1);
  text-align: center;
}

.topology-core::before,
.topology-core::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-color: var(--mint);
}

.topology-core::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.topology-core::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}
.topology-id {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
}
.topology-core strong {
  margin-top: 13px;
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.topology-core small {
  margin-top: 12px;
  color: #8a9690;
  font-family: var(--mono);
  font-size: 13px;
}

.topology-node {
  position: absolute;
  min-width: 132px;
  padding: 11px 13px 10px 28px;
  border: 1px solid #2a343b;
  background: rgba(13, 17, 22, 0.88);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.topology-node i {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(255, 90, 61, 0.55);
}

.topology-node strong,
.topology-node small {
  display: block;
}
.topology-node strong {
  color: #dce4df;
  font-size: 14px;
}
.topology-node small {
  margin-top: 3px;
  color: #7a8781;
  font-family: var(--mono);
  font-size: 13px;
}
.node-a {
  left: 2%;
  top: 11%;
}
.node-b {
  right: 2%;
  top: 7%;
}
.node-c {
  right: -2%;
  top: 47%;
}
.node-d {
  right: 4%;
  bottom: 14%;
}
.node-e {
  left: 4%;
  bottom: 13%;
}
.node-f {
  left: -2%;
  top: 46%;
}

.topology-caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  color: #8b978f;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.topology-caption span + span::before {
  content: '/';
  margin-right: 14px;
  color: #485850;
}

.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.hero-thesis {
  color: var(--paper);
  font-size: clamp(22px, 2vw, 33px);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #75837c;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-scroll i {
  color: var(--mint);
  font-style: normal;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(5px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-copy .reveal:nth-child(2) {
  animation-delay: 90ms;
}
.hero-copy .reveal:nth-child(3) {
  animation-delay: 180ms;
}
.hero-copy .reveal:nth-child(4) {
  animation-delay: 260ms;
}
.hero-copy .reveal:nth-child(5) {
  animation-delay: 320ms;
}
.hero-foot.reveal {
  animation-delay: 420ms;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reality-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #0b0e12;
}

.reality-strip > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px var(--gutter);
}

.reality-strip > div + div {
  border-left: 1px solid var(--line-soft);
}
.reality-strip span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.reality-strip strong {
  color: #cbd5d0;
  font-size: 17px;
}

.section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.section-index {
  margin-bottom: clamp(32px, 4vw, 58px);
  color: var(--mint);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.62fr);
  align-items: end;
  gap: clamp(40px, 9vw, 160px);
}

.section-heading h2,
.rail-intro h2,
.why-first-heading h2,
.join-section h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.section-heading p,
.why-first-heading p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.coordination-switcher {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin-top: clamp(62px, 8vw, 112px);
}

.mode-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-button {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: transparent;
  color: #88958e;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease-out,
    border-color 160ms ease-out,
    background-color 160ms ease-out;
}

.mode-button span {
  color: #66756e;
  font-family: var(--mono);
  font-size: 13px;
}
.mode-button.active {
  border-color: rgba(255, 90, 61, 0.5);
  background: rgba(255, 90, 61, 0.07);
  color: var(--white);
}
.mode-button.active span {
  color: var(--mint);
}

.coordination-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c1014;
  box-shadow: var(--shadow);
}

.stage-grid,
.graph-background,
.join-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.member-cloud {
  position: absolute;
  inset: 38px 36px 116px;
}

.member-node {
  position: absolute;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #303a40;
  border-radius: 50%;
  background: #141a1f;
  color: #7f8c86;
  font-family: var(--mono);
  font-size: 13px;
  transition:
    left 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 300ms ease-out,
    color 300ms ease-out,
    box-shadow 300ms ease-out;
}

.coordination-stage[data-mode='coordinated'] .member-node {
  border-color: rgba(255, 90, 61, 0.5);
  color: #bfead3;
  box-shadow: 0 0 18px rgba(255, 90, 61, 0.12);
}

.fragment-cards span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 116px;
  padding: 9px 12px;
  transform: rotate(var(--r));
  border: 1px solid #293138;
  background: #13181e;
  color: #7d8a84;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    opacity 220ms ease-out,
    transform 360ms ease-out;
}

.coordination-stage[data-mode='coordinated'] .fragment-cards span {
  opacity: 0;
  transform: scale(0.85);
}

.coordination-core {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 230px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.8);
  border: 1px solid rgba(255, 90, 61, 0.5);
  padding: 18px;
  background: #101a17;
  opacity: 0;
  text-align: center;
  transition:
    opacity 350ms ease-out,
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.coordination-core span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.coordination-core strong {
  margin-top: 5px;
  color: var(--white);
  font-size: 19px;
}
.coordination-core small {
  margin-top: 6px;
  color: #7f9088;
  font-family: var(--mono);
  font-size: 13px;
}
.coordination-stage[data-mode='coordinated'] .coordination-core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.coordination-lines {
  position: absolute;
  inset: 0 0 90px;
  width: 100%;
  height: calc(100% - 90px);
  pointer-events: none;
}

.coordination-lines path {
  fill: none;
  stroke: rgba(255, 90, 61, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.stage-summary {
  position: absolute;
  inset: auto 0 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background: #10151a;
}
.stage-summary strong {
  color: var(--white);
  font-size: 18px;
}
.stage-summary span {
  max-width: 520px;
  color: #88958f;
  font-size: 15px;
  text-align: right;
}

.work-tree-section {
  max-width: 1600px;
}
.simulation-label,
.preview-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 62px;
  color: var(--mint);
}

.relay-simulator {
  min-height: 710px;
  display: grid;
  grid-template-columns: 328px 1fr;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #0b0f13;
  box-shadow: var(--shadow);
}

.sim-console {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #0e1217;
}
.console-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  color: #7a8881;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.sim-clock {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.objective-block {
  padding: 19px 18px;
  border-bottom: 1px solid var(--line);
}
.objective-block > span {
  color: #76847d;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.objective-block > strong {
  display: block;
  margin-top: 8px;
  color: #dce3df;
  font-size: 16px;
  line-height: 1.4;
}
.objective-block > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #919c96;
  font-family: var(--mono);
  font-size: 13px;
}
.objective-block > div i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.objective-block.running > div i {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(121, 174, 248, 0.08);
}
.objective-block.complete > div i {
  background: var(--mint);
}

.event-log {
  height: 288px;
  overflow-y: auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #425058 transparent;
}
.log-empty {
  padding: 14px 2px;
  color: #707c76;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.log-row {
  display: grid;
  grid-template-columns: 42px 9px 1fr;
  gap: 8px;
  padding: 7px 0;
  color: #8e9a94;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  animation: logIn 180ms ease-out;
}
.log-row time {
  color: #64736b;
  font-variant-numeric: tabular-nums;
}
.log-row i {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.log-row.review i {
  background: var(--review);
}
.log-row.approval i {
  background: var(--amber);
}
.log-row.complete i {
  background: var(--mint);
}
.log-row strong {
  color: #c3cdc8;
  font-weight: 600;
}
@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.task-inspector {
  padding: 17px 18px 20px;
}
.inspector-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #76847d;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.inspector-top span:last-child {
  color: var(--amber);
}
.task-inspector > strong {
  display: block;
  margin-top: 12px;
  color: #e2e9e5;
  font-size: 16px;
}
.task-inspector dl {
  margin: 17px 0 0;
}
.task-inspector dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid #20272d;
  font-family: var(--mono);
  font-size: 13px;
}
.task-inspector dt {
  color: #75827b;
}
.task-inspector dd {
  margin: 0;
  color: #a8b3ad;
  text-align: right;
}

.graph-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.graph-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.sim-controls {
  display: flex;
  gap: 6px;
}
.sim-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #2b353c;
  background: #151b21;
  color: #98a39d;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sim-button.primary {
  border-color: var(--mint);
  background: var(--mint);
  color: #07110c;
}
.sim-button.icon-only {
  min-width: 44px;
  padding: 0;
  font-size: 16px;
}
.sim-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #76847f;
  font-family: var(--mono);
  font-size: 13px;
}
.graph-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.graph-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.graph-legend .queued {
  background: #4f5a55;
}
.graph-legend .running {
  background: var(--blue);
}
.graph-legend .review {
  background: var(--review);
}
.graph-legend .complete {
  background: var(--mint);
}

.task-graph {
  position: relative;
  flex: 1;
  min-height: 590px;
  overflow: hidden;
}
.graph-background {
  opacity: 0.55;
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 85%);
}
.task-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.task-edges path {
  fill: none;
  stroke: #28343a;
  stroke-width: 1.2;
  transition:
    stroke 250ms ease-out,
    stroke-width 250ms ease-out;
}
.task-edges path.active {
  stroke: rgba(121, 174, 248, 0.72);
  stroke-width: 1.8;
  stroke-dasharray: 5 5;
  animation: dash 1.3s linear infinite;
}
.task-edges path.complete {
  stroke: rgba(255, 90, 61, 0.48);
}
.task-edges .remediation-edge {
  opacity: 0;
  transition:
    opacity 300ms ease-out,
    stroke 250ms ease-out;
}
.task-edges .remediation-edge.visible {
  opacity: 1;
}
@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}

.graph-node {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: clamp(116px, 13vw, 150px);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid #2b353c;
  background: #11171c;
  color: #98a39d;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease-out,
    border-color 220ms ease-out,
    background-color 220ms ease-out,
    box-shadow 220ms ease-out,
    opacity 220ms ease-out;
}
.graph-node:hover {
  transform: translateY(-2px);
  border-color: #5b6a64;
}
.graph-node > span {
  color: #86948d;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.graph-node strong {
  margin-top: 5px;
  color: #c7d0cb;
  font-size: 15px;
}
.graph-node small {
  margin-top: 6px;
  color: #86948d;
  font-family: var(--mono);
  font-size: 13px;
}
.graph-node.active {
  border-color: rgba(240, 191, 104, 0.55);
  background: #1c1912;
  box-shadow: 0 0 0 3px rgba(240, 191, 104, 0.05);
}
.graph-node.running {
  border-color: rgba(121, 174, 248, 0.66);
  background: #121a24;
  box-shadow: 0 0 24px rgba(121, 174, 248, 0.08);
}
.graph-node.running small {
  color: var(--blue);
}
.graph-node.review {
  border-color: rgba(197, 164, 239, 0.66);
  background: #181521;
}
.graph-node.review small {
  color: var(--review);
}
.graph-node.awaiting {
  border-color: rgba(240, 191, 104, 0.66);
  background: #1c1912;
}
.graph-node.awaiting small {
  color: var(--amber);
}
.graph-node.complete {
  border-color: rgba(255, 90, 61, 0.52);
  background: #211716;
}
.graph-node.complete small {
  color: var(--mint);
}
.graph-node.blocked {
  opacity: 0.54;
}
.objective-node {
  width: clamp(114px, 12vw, 142px);
}
.remediation-node {
  animation: nodeSpawn 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes nodeSpawn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
}

.graph-toast {
  position: absolute;
  right: 20px;
  top: 22px;
  min-width: 250px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  padding: 12px;
  border: 1px solid rgba(240, 191, 104, 0.55);
  background: #1d1912;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  animation: toastIn 280ms ease-out;
}
.graph-toast > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
}
.graph-toast strong {
  color: #e4ddd0;
  font-size: 14px;
}
.graph-toast small {
  color: #8b8375;
  font-family: var(--mono);
  font-size: 12px;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.graph-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: #72807a;
  font-family: var(--mono);
  font-size: 12px;
}
.graph-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.graph-footer span:first-child i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.system-rail {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rail-intro,
.rail-step {
  min-height: 270px;
  padding: 38px 30px;
}
.rail-step {
  border-left: 1px solid var(--line);
}
.rail-intro > span {
  color: var(--mint);
}
.rail-intro h2 {
  max-width: 380px;
  margin-top: 44px;
  font-size: clamp(30px, 3vw, 45px);
}
.rail-step > span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
}
.rail-step strong {
  display: block;
  margin-top: 67px;
  color: var(--white);
  font-size: 19px;
}
.rail-step p {
  margin: 8px 0 0;
  color: #84928b;
  font-size: 16px;
  line-height: 1.55;
}

.participation-section {
  max-width: 1600px;
}
.participation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
  margin-top: 76px;
}
.participation-lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
}
.participation-lane {
  min-height: 470px;
  padding: clamp(28px, 3.6vw, 54px);
  background: var(--panel);
}
.participation-lane > span,
.onboarding-rail span,
.coordination-analogy > span,
.introduction-evidence > span,
.introduction-record span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.participation-lane h3 {
  max-width: 450px;
  margin: 76px 0 0;
  color: var(--white);
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.participation-lane p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.participation-lane ul {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.participation-lane li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--paper-2);
  font-size: 15px;
  line-height: 1.5;
}
.participation-lane li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--signal);
}
.autonomous-lane {
  background: #1b1e22;
}
.onboarding-rail {
  border: 1px solid var(--line);
  background: #15181c;
}
.onboarding-rail > div {
  min-height: 117px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  column-gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.onboarding-rail > div:last-child {
  border-bottom: 0;
}
.onboarding-rail span {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 4px;
}
.onboarding-rail strong {
  color: var(--white);
  font-size: 16px;
}
.onboarding-rail p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.participation-boundary {
  margin: 24px 0 0;
  padding: 22px 26px;
  border-left: 3px solid var(--signal);
  background: rgba(255, 90, 61, 0.07);
  color: var(--paper-2);
  font-size: 16px;
  line-height: 1.6;
}
.participation-boundary strong {
  color: var(--signal);
}

.network-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  margin-top: 74px;
  border: 1px solid var(--line);
  background: #0d1115;
  box-shadow: var(--shadow);
}
.fleet-visualization {
  min-width: 0;
}
.fleet-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.fleet-head > div span {
  display: block;
  color: #7b8782;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.fleet-head > div strong {
  display: block;
  margin-top: 4px;
  color: #d6dfda;
  font-size: 17px;
}
.fleet-head > div b {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.fleet-head button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 90, 61, 0.5);
  background: #211716;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.worker-matrix {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
.mobile-worker-toggle,
.mobile-disclosure > summary {
  display: none;
}
.worker-cell {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px;
  border: 0;
  background: #0f1419;
  color: #7d8b84;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease-out,
    color 180ms ease-out;
}
.worker-cell:hover {
  background: #151b21;
  color: #99a49f;
}
.worker-cell.selected {
  background: #142019;
  color: #dce6e0;
}
.worker-cell .cell-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}
.worker-cell .cell-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d4742;
}
.worker-cell.online .cell-state {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.08);
}
.worker-cell.paused .cell-state {
  background: var(--amber);
}
.worker-cell.draining .cell-state {
  background: var(--blue);
}
.worker-cell strong {
  font-size: 15px;
}
.worker-cell small {
  color: #7a8981;
  font-family: var(--mono);
  font-size: 13px;
}
.worker-cell.online small {
  color: #869b90;
}
.worker-cell.routing::after {
  content: 'ROUTED';
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: routePulse 1s ease-out 3;
}
@keyframes routePulse {
  50% {
    opacity: 0.35;
  }
}

.routing-lane {
  min-height: 95px;
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.routing-lane > span {
  display: grid;
  place-items: center;
  color: #78857f;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.routing-lane > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}
.routing-lane i {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}
.routing-lane strong {
  margin-top: 3px;
  color: #bcc6c1;
  font-size: 14px;
}
.routing-lane small {
  margin-top: 3px;
  color: #6d7b75;
  font-family: var(--mono);
  font-size: 11px;
}

.worker-detail {
  padding: 25px;
  border-left: 1px solid var(--line);
  background: #11161b;
}
.detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.detail-status em {
  margin-left: auto;
  padding: 4px 6px;
  background: #20282d;
  color: #85928c;
  font-style: normal;
}
.worker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #505a55;
}
.worker-dot.online {
  background: var(--mint);
}
.worker-dot.paused {
  background: var(--amber);
}
.worker-dot.draining {
  background: var(--blue);
}
.detail-id {
  display: block;
  margin-top: 47px;
  color: #78857f;
}
.worker-detail h3 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.worker-detail > p {
  min-height: 67px;
  margin: 15px 0 0;
  color: #8c9992;
  font-size: 15px;
  line-height: 1.6;
}
.worker-detail dl {
  margin: 25px 0 0;
}
.worker-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #252d33;
  font-family: var(--mono);
  font-size: 13px;
}
.worker-detail dt {
  color: #72807a;
}
.worker-detail dd {
  margin: 0;
  color: #b1bbb5;
  text-align: right;
}
.worker-scope {
  margin-top: 24px;
  padding: 13px;
  border: 1px solid #29333a;
  background: #0d1216;
}
.worker-scope span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.worker-scope strong {
  display: block;
  margin-top: 6px;
  color: #8a9a91;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.connect-flow {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  margin-top: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.connect-copy {
  padding: 52px 50px 52px 0;
}
.connect-copy > span {
  color: var(--mint);
}
.connect-copy h3,
.capacity-copy h3 {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--white);
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.connect-copy > p,
.capacity-copy > p {
  max-width: 500px;
  margin: 20px 0 0;
  color: #8e9a94;
  font-size: 17px;
  line-height: 1.65;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
}
.setup-steps button {
  min-height: 63px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 9px 12px;
  border: 0;
  background: #11161b;
  color: #7e8b85;
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.setup-steps button span {
  color: #64726b;
}
.setup-steps button.active {
  background: #142019;
  color: #d6e2dc;
}
.setup-steps button.active span {
  color: var(--mint);
}

.terminal-panel {
  align-self: center;
  border: 1px solid #2b353b;
  background: #0b0f13;
  box-shadow: var(--shadow);
}
.terminal-bar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #252d33;
  background: #11161b;
  color: #78857f;
  font-family: var(--mono);
  font-size: 12px;
}
.terminal-bar > span {
  display: flex;
  gap: 5px;
}
.terminal-bar > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #343e43;
}
.terminal-bar strong {
  color: #97a39c;
  font-weight: 500;
}
.terminal-bar em {
  justify-self: end;
  color: var(--amber);
  font-style: normal;
}
.terminal-body {
  min-height: 270px;
  padding: 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
}
.terminal-body p {
  margin: 0 0 9px;
  color: #c1ccc6;
  overflow-wrap: anywhere;
}
.terminal-body p > span {
  color: var(--mint);
}
.terminal-body .terminal-success {
  color: var(--mint);
}
.terminal-body .terminal-muted {
  color: #798780;
}
.terminal-body .terminal-muted strong {
  color: #aab5af;
}
.terminal-prompt {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid rgba(255, 90, 61, 0.38);
  background: #211716;
}
.terminal-prompt > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mint);
  color: var(--mint);
}
.terminal-prompt strong {
  color: #d5ded9;
  font-size: 13px;
}
.terminal-prompt i {
  color: var(--amber);
  font-size: 13px;
  font-style: normal;
}
.terminal-foot {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid #252d33;
  color: #77857e;
  font-family: var(--mono);
  font-size: 12px;
}
.terminal-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.capacity-model {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.95fr;
  gap: 50px;
  margin-top: 100px;
  padding: 48px;
  border: 1px solid var(--line);
  background: #0d1216;
}
.capacity-copy > span {
  color: var(--mint);
}
.capacity-copy h3 {
  margin-top: 20px;
  font-size: clamp(29px, 3vw, 43px);
}
.capacity-copy > p {
  font-size: 16px;
}
.capacity-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 27px;
}
.capacity-controls label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  color: #aab6af;
  font-family: var(--mono);
  font-size: 14px;
}
.capacity-control-name {
  letter-spacing: 0.02em;
}
.capacity-controls output {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.capacity-controls input {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  accent-color: var(--mint);
  cursor: pointer;
}
.capacity-controls label > small {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: #8d9a93;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.capacity-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-content: start;
  background: var(--line);
}
.capacity-output > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  background: #12181d;
}
.capacity-output span {
  color: #93a099;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.07em;
}
.capacity-output strong {
  margin-top: 10px;
  color: var(--mint);
  font-size: 32px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.capacity-headline {
  grid-column: 1 / -1;
}
.capacity-headline strong {
  font-size: clamp(40px, 4.4vw, 60px);
}
.capacity-headline small {
  margin-top: 10px;
  color: #b3bfb8;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}
.capacity-assumptions {
  grid-column: 1 / -1;
  gap: 12px;
  padding: 20px 18px;
  background: #0d1216;
}
.capacity-assumptions ul {
  margin: 0;
  padding-left: 18px;
  color: #aeb9b3;
  font-size: 15px;
  line-height: 1.6;
}
.capacity-assumptions li + li {
  margin-top: 7px;
}
.capacity-assumptions > small {
  color: #8b978f;
  font-size: 13px;
  line-height: 1.6;
}

.control-room-section {
  max-width: 1600px;
}
.control-preview {
  margin-top: 16px;
  border: 1px solid #2b343b;
  background: #0c1014;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.42);
}
.preview-action-status {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(170px, 0.55fr) minmax(280px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #17191d;
}
.preview-action-status span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.preview-action-status strong {
  color: var(--paper);
  font-size: 15px;
}
.preview-action-status small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.preview-topbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #283138;
}
.preview-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e0e6e3;
  font-size: 15px;
}
.preview-breadcrumb {
  color: #75837c;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.11em;
}
.preview-health {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #92a199;
  font-family: var(--mono);
  font-size: 12px;
}
.preview-health span {
  padding: 4px 6px;
  background: #172019;
  color: var(--mint);
}
.preview-body {
  min-height: 620px;
  display: grid;
  grid-template-columns: 176px 1fr;
}
.preview-nav {
  padding: 14px 9px;
  border-right: 1px solid #283138;
  background: #0e1217;
}
.preview-nav button {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #88958f;
  font-family: var(--mono);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.preview-nav button:hover {
  color: #b6c0bb;
}
.preview-nav button.active {
  background: #172019;
  color: #dce6e1;
}
.preview-nav button.active > span {
  color: var(--mint);
}
.preview-nav button i {
  min-width: 18px;
  padding: 3px 4px;
  background: #20282e;
  color: #8e9a94;
  font-style: normal;
  text-align: center;
}
.preview-content {
  min-width: 0;
  padding: 25px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0, rgba(255, 90, 61, 0.045), transparent 40%), #0c1014;
}
.preview-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.preview-page-head span {
  color: #73817a;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.preview-page-head h3 {
  margin: 5px 0 0;
  color: #e3e8e5;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.preview-page-head > div:last-child {
  display: flex;
  gap: 8px;
}
.preview-page-head button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #2b353b;
  background: #151b20;
  color: #97a39c;
  font-family: var(--mono);
  font-size: 13px;
}
.preview-page-head button:last-child {
  border-color: var(--mint);
  background: var(--mint);
  color: #07110c;
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: #273038;
}
.preview-metric {
  min-height: 104px;
  padding: 15px;
  background: #11161b;
}
.preview-metric span {
  color: #84928b;
  font-family: var(--mono);
  font-size: 13px;
}
.preview-metric strong {
  display: block;
  margin-top: 14px;
  color: #e0e7e3;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.preview-metric small {
  display: block;
  margin-top: 4px;
  color: #7c8a83;
  font-size: 13px;
}
.preview-metric.accent strong {
  color: var(--mint);
}
.preview-dashboard {
  display: grid;
  grid-template-columns: 1.5fr 0.78fr;
  gap: 12px;
  margin-top: 12px;
}
.preview-panel {
  min-height: 310px;
  border: 1px solid #273038;
  background: #10151a;
}
.preview-panel-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid #273038;
}
.preview-panel-head span {
  color: #75837c;
  font-family: var(--mono);
  font-size: 12px;
}
.preview-panel-head strong {
  color: #d7dedb;
  font-size: 14px;
}
.mini-task-list {
  padding: 7px 13px;
}
.mini-task-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #20282d;
}
.mini-task-row > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #59645f;
}
.mini-task-row.running > i {
  background: var(--blue);
}
.mini-task-row.review > i {
  background: var(--review);
}
.mini-task-row.complete > i {
  background: var(--mint);
}
.mini-task-row strong {
  color: #aeb9b3;
  font-size: 14px;
}
.mini-task-row small {
  display: block;
  margin-top: 2px;
  color: #7f8c86;
  font-family: var(--mono);
  font-size: 13px;
}
.mini-task-row > span {
  color: #8e9b93;
  font-family: var(--mono);
  font-size: 13px;
}
.approval-preview {
  margin: 13px;
  padding: 14px;
  border: 1px solid rgba(240, 191, 104, 0.32);
  background: #181610;
}
.approval-preview > span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
}
.approval-preview strong {
  display: block;
  margin-top: 10px;
  color: #d8d2c7;
  font-size: 15px;
}
.approval-preview p {
  margin: 7px 0 0;
  color: #817b70;
  font-size: 13px;
  line-height: 1.5;
}
.approval-preview div {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}
.approval-preview button {
  min-height: 44px;
  flex: 1;
  padding: 0 8px;
  border: 1px solid #3b3933;
  background: transparent;
  color: #a29a8c;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.approval-preview button:last-child {
  border-color: #6b5f41;
  background: #2a2417;
  color: #d7bd7a;
}
.preview-table {
  margin-top: 24px;
  border: 1px solid #273038;
}
.preview-table-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 0.7fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #20282d;
  color: #96a29c;
  font-family: var(--mono);
  font-size: 13px;
}
.preview-table-row.header {
  min-height: 38px;
  background: #12181d;
  color: #6d7b75;
}
.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.preview-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.preview-status.review::before {
  background: var(--review);
}
.preview-status.complete::before {
  background: var(--mint);
}
.evidence-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.evidence-preview-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #273038;
  background: #10151a;
}
.evidence-preview-card > span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
}
.evidence-preview-card strong {
  display: block;
  margin-top: 12px;
  color: #d3dbd7;
  font-size: 15px;
}
.evidence-preview-card p {
  margin: 8px 0 0;
  color: #818e88;
  font-size: 14px;
  line-height: 1.5;
}
.evidence-preview-card small {
  display: block;
  margin-top: 18px;
  color: #6d7b73;
  font-family: var(--mono);
  font-size: 12px;
}

.human-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(38px, 7vw, 100px);
  margin-top: 82px;
}
.judgment-lane {
  position: relative;
  padding-left: 34px;
}
.judgment-lane::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 47px;
  bottom: 35px;
  width: 1px;
  background: linear-gradient(var(--mint), rgba(255, 90, 61, 0.08));
}
.lane-label {
  display: block;
  margin-bottom: 26px;
  color: var(--mint);
}
.judgment-lane > div {
  position: relative;
  min-height: 106px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: center;
  gap: 3px 12px;
  border-bottom: 1px solid var(--line);
}
.judgment-lane > div::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 1px rgba(255, 90, 61, 0.45);
}
.judgment-lane > div > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #6c7b73;
  font-family: var(--mono);
  font-size: 13px;
}
.judgment-lane strong {
  color: #d9e0dc;
  font-size: 18px;
}
.judgment-lane small {
  color: #84928b;
  font-size: 15px;
}

.evidence-ledger {
  border: 1px solid var(--line);
  background: #0e1317;
  box-shadow: var(--shadow);
}
.ledger-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #798780;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.ledger-head strong {
  color: var(--mint);
  font-size: 13px;
}
.ledger-objective {
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--line);
}
.ledger-objective span {
  color: #798780;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.ledger-objective strong {
  display: block;
  margin-top: 8px;
  color: #e0e6e3;
  font-size: 19px;
}
.ledger-objective small {
  display: block;
  margin-top: 6px;
  color: #7f8c86;
  font-size: 14px;
}
.ledger-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
}
.ledger-chain > div {
  position: relative;
  min-width: 0;
}
.ledger-chain > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 36px;
  right: 0;
  height: 1px;
  background: #38443e;
}
.ledger-chain i {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 90, 61, 0.5);
  border-radius: 50%;
  background: #211716;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
}
.ledger-chain span {
  display: block;
  margin-top: 12px;
  padding-right: 10px;
}
.ledger-chain small {
  display: block;
  color: #75837c;
  font-family: var(--mono);
  font-size: 11px;
}
.ledger-chain strong {
  display: block;
  margin-top: 4px;
  color: #99a49f;
  font-size: 13px;
  line-height: 1.4;
}
.ledger-artifacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.ledger-artifacts span {
  min-height: 49px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #12181d;
  color: #85928c;
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}
.evidence-ledger > p {
  margin: 0;
  padding: 18px 22px;
  color: #84918a;
  font-size: 14px;
  line-height: 1.6;
}
.evidence-ledger > p strong {
  color: #b8c2bd;
}

.expansion-section {
  max-width: 1600px;
}
.network-expansion-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr) auto) minmax(120px, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 76px;
}
.network-expansion-flow article {
  min-height: 190px;
  padding: 22px;
  border-top: 2px solid var(--signal);
  background: var(--panel);
}
.network-expansion-flow article > span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 13px;
}
.network-expansion-flow article strong {
  display: block;
  margin-top: 48px;
  color: var(--white);
  font-size: 17px;
}
.network-expansion-flow article p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.network-expansion-flow > i {
  align-self: center;
  color: var(--signal);
  font-style: normal;
}
.useful-work-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.coordination-analogy,
.introduction-evidence {
  min-height: 470px;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid var(--line);
  background: #17191d;
}
.coordination-analogy h3,
.introduction-evidence h3 {
  max-width: 630px;
  margin: 62px 0 0;
  color: var(--white);
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.coordination-analogy > p,
.introduction-evidence > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.analogy-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
}
.analogy-flow span {
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.analogy-flow i {
  color: var(--signal);
  font-style: normal;
}
.coordination-analogy > small {
  display: block;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8f8a82;
  font-size: 14px;
  line-height: 1.6;
}
.introduction-evidence {
  border-color: rgba(255, 90, 61, 0.42);
  background: linear-gradient(145deg, rgba(255, 90, 61, 0.09), transparent 52%), #17191d;
}
.introduction-record {
  margin-top: 32px;
  padding: 20px;
  border-left: 3px solid var(--signal);
  background: #211817;
}
.introduction-record strong,
.introduction-record small {
  display: block;
}
.introduction-record strong {
  margin-top: 10px;
  color: var(--paper);
  font-size: 16px;
}
.introduction-record small {
  margin-top: 6px;
  color: #a79c95;
  font-family: var(--mono);
  font-size: 13px;
}
.introduction-boundary {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 90, 61, 0.3);
}
.introduction-boundary strong {
  color: var(--signal);
}

.why-first {
  background: var(--paper);
  color: var(--ink);
}
.why-first-inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}
.dark-index {
  color: var(--signal-deep);
}
.why-first-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1.2fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 40px;
}
.why-first-heading > span {
  align-self: start;
  color: var(--signal-deep);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.13em;
}
.why-first-heading h2 {
  color: var(--ink);
}
.why-first-heading p {
  color: #5f5a53;
}
.leverage-switcher {
  margin-top: 80px;
}
.leverage-controls {
  display: flex;
  gap: 8px;
}
.leverage-controls button {
  min-height: 47px;
  padding: 0 17px;
  border: 1px solid #bcb5aa;
  background: transparent;
  color: #6d675f;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.leverage-controls button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.leverage-stage {
  position: relative;
  min-height: 520px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #bdc7c0;
  background: #dfe5df;
}
.leverage-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(17, 25, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 25, 20, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}
.leverage-people {
  position: absolute;
  left: 3%;
  top: 12%;
  bottom: 12%;
  width: 23%;
}
.leverage-person {
  position: absolute;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #8d877f;
  border-radius: 50%;
  background: var(--paper);
  color: #6d675f;
  font-family: var(--mono);
  font-size: 11px;
  transition:
    left 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease-out,
    background-color 220ms ease-out;
}
.leverage-stage[data-mode='with'] .leverage-person {
  border-color: var(--signal);
  background: #f1dcd6;
  color: #7b2d20;
}
.leverage-relay {
  position: absolute;
  left: 34%;
  top: 50%;
  width: 265px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.84);
  padding: 20px;
  border: 1px solid var(--signal);
  background: #f1dcd6;
  opacity: 0;
  transition:
    opacity 300ms ease-out,
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.leverage-stage[data-mode='with'] .leverage-relay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.leverage-relay span {
  color: var(--signal-deep);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.leverage-relay strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
}
.leverage-relay small {
  margin-top: 7px;
  color: #716761;
  font-family: var(--mono);
  font-size: 12px;
}
.company-lineage {
  position: absolute;
  right: 4%;
  top: 10%;
  bottom: 10%;
  width: 45%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.company-lineage > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid #bcb5aa;
  background: rgba(244, 240, 232, 0.84);
  transition:
    border-color 300ms ease-out,
    background-color 300ms ease-out,
    transform 300ms ease-out;
}
.company-lineage span {
  color: #6d675f;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.company-lineage strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.company-lineage small {
  margin-top: 10px;
  color: #6d675f;
  font-size: 14px;
}
.leverage-stage[data-mode='without'] .company-lineage > div:not(:first-child) {
  opacity: 0.42;
}
.leverage-stage[data-mode='with'] .company-lineage > div {
  border-color: var(--signal);
  background: #f1dcd6;
  transform: translateY(-3px);
}
.leverage-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.leverage-stage > svg path {
  fill: none;
  stroke: #849189;
  stroke-width: 1;
  stroke-dasharray: 5 7;
  transition: stroke 300ms ease-out;
}
.leverage-stage[data-mode='with'] > svg path {
  stroke: rgba(201, 58, 34, 0.55);
}
.leverage-caption {
  margin: 16px 0 0;
  color: #625c55;
  font-family: var(--mono);
  font-size: 14px;
}
.why-first blockquote {
  max-width: 1120px;
  margin: 110px 0 0 auto;
  color: var(--ink);
  font-size: clamp(35px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.truth-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: var(--line);
}
.truth-column {
  min-height: 360px;
  padding: 28px;
  background: #0f1418;
}
.truth-column > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9790;
}
.truth-column > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6e7974;
}
.truth-column.prototyped > span i {
  background: var(--mint);
}
.truth-column.building > span i {
  background: var(--blue);
}
.truth-column.vision > span i {
  background: var(--review);
}
.truth-column > strong {
  display: block;
  margin-top: 72px;
  color: var(--white);
  font-size: 23px;
  letter-spacing: -0.035em;
}
.truth-column ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.truth-column li {
  position: relative;
  padding: 10px 0 10px 16px;
  border-top: 1px solid #252d33;
  color: #8a9791;
  font-size: 15px;
}
.truth-column li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border: 1px solid #5c6762;
}
.phase-arc {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 90px;
}
.phase-arc > div {
  min-height: 140px;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.phase-arc span {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.phase-arc strong {
  display: block;
  margin-top: 27px;
  color: #dce3df;
  font-size: 18px;
}
.phase-arc small {
  display: block;
  margin-top: 7px;
  color: #7f8c86;
  font-size: 14px;
}
.phase-arc > i {
  color: #56685f;
  font-style: normal;
}

.join-section {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 70px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}
.join-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(17, 19, 22, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 22, 0.16) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle, #000, transparent 70%);
}
.join-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--signal-deep);
}
.join-status i {
  background: var(--signal);
}
.join-status em {
  padding: 4px 6px;
  background: rgba(255, 90, 61, 0.1);
  font-style: normal;
}
.join-section h2 {
  position: relative;
  max-width: 1120px;
  margin: 36px 0 0;
  color: var(--ink);
  font-size: clamp(64px, 8vw, 126px);
}
.join-section > p {
  position: relative;
  max-width: 760px;
  margin: 28px auto 0;
  color: #5f5a53;
  font-size: 20px;
  line-height: 1.6;
}
.join-actions {
  position: relative;
  justify-content: center;
}
.action.primary.dark {
  background: var(--signal);
  color: var(--ink) !important;
}
.action.primary.dark:hover {
  background: #ff745d;
}
.join-section > .join-fineprint {
  max-width: 650px;
  margin-top: 18px;
  color: #746d64;
  font-family: var(--mono);
  font-size: 13px;
}
.join-manifesto {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 19, 22, 0.24);
  color: rgba(17, 19, 22, 0.54);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.site-footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
  background: #080a0d;
}
.site-footer > p {
  max-width: 540px;
  margin: 0;
  color: #818e88;
  font-size: 15px;
  text-align: center;
}
.site-footer > div {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #6c7a74;
  font-family: var(--mono);
  font-size: 13px;
}
.site-footer > div a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #97a39c;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .desktop-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr minmax(430px, 0.82fr);
    gap: 30px;
  }
  .topology-node {
    min-width: 112px;
  }
  .system-rail {
    grid-template-columns: repeat(4, 1fr);
    margin: 0 var(--gutter);
  }
  .rail-intro {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 36px 0;
  }
  .rail-intro h2 {
    margin-top: 20px;
  }
  .rail-step:first-of-type {
    border-left: 0;
  }
  .capacity-model {
    grid-template-columns: 1fr 1fr;
  }
  .capacity-output {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .why-first-heading {
    grid-template-columns: 1fr 0.6fr;
  }
  .why-first-heading > span {
    grid-column: 1 / -1;
  }
  .ledger-chain {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 22px;
  }
  .ledger-chain > div:nth-child(3)::after {
    display: none;
  }
  .preview-body {
    grid-template-columns: 146px 1fr;
  }
  .participation-layout {
    grid-template-columns: 1fr;
  }
  .network-expansion-flow {
    grid-template-columns: 1fr;
  }
  .network-expansion-flow > i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }
  .header-cta {
    display: none;
  }
  .menu-button {
    justify-self: end;
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: rgba(12, 16, 20, 0.8);
    cursor: pointer;
  }
  .menu-button span {
    width: 19px;
    height: 1px;
    background: #ccd5d0;
    transition: transform 180ms ease-out;
  }
  .menu-button[aria-expanded='true'] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-button[aria-expanded='true'] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .mobile-nav {
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    display: grid;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: #090b0f;
  }
  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #20282d;
    color: #b9c3bd;
    font-size: 16px;
    text-decoration: none;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    padding-top: 132px;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero h1 {
    max-width: 700px;
  }
  .hero-topology {
    width: min(100%, 690px);
    justify-self: center;
  }
  .hero-foot {
    grid-column: 1;
  }
  .reality-strip {
    grid-template-columns: 1fr;
  }
  .reality-strip > div {
    min-height: 88px;
  }
  .reality-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }
  .coordination-switcher {
    grid-template-columns: 1fr;
  }
  .mode-controls {
    flex-direction: row;
  }
  .mode-button {
    flex: 1;
  }
  .relay-simulator {
    grid-template-columns: 1fr;
  }
  .sim-console {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .console-head {
    grid-column: 1 / -1;
  }
  .event-log {
    grid-column: 1;
    grid-row: 3;
    height: 230px;
    border-right: 1px solid var(--line);
  }
  .task-inspector {
    grid-column: 2;
    grid-row: 2 / 4;
  }
  .graph-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .graph-legend {
    padding-bottom: 4px;
  }
  .system-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .rail-step {
    border-top: 1px solid var(--line);
  }
  .rail-step:nth-of-type(odd) {
    border-left: 0;
  }
  .network-layout {
    grid-template-columns: 1fr;
  }
  .worker-detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .worker-detail > p {
    min-height: auto;
  }
  .connect-flow {
    grid-template-columns: 1fr;
  }
  .connect-copy {
    padding-right: 0;
  }
  .terminal-panel {
    margin-bottom: 50px;
  }
  .capacity-model {
    grid-template-columns: 1fr;
  }
  .capacity-output {
    grid-column: auto;
  }
  .preview-body {
    grid-template-columns: 1fr;
  }
  .preview-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #283138;
    scrollbar-width: none;
  }
  .preview-nav button {
    width: auto;
    min-width: max-content;
    grid-template-columns: 18px auto auto;
  }
  .preview-content {
    padding: 18px;
  }
  .human-layout {
    grid-template-columns: 1fr;
  }
  .network-expansion-flow {
    grid-template-columns: 1fr;
  }
  .network-expansion-flow > i {
    justify-self: center;
    transform: rotate(90deg);
  }
  .useful-work-layout {
    grid-template-columns: 1fr;
  }
  .why-first-heading {
    grid-template-columns: 1fr;
  }
  .leverage-stage {
    min-height: 650px;
  }
  .leverage-people {
    left: 4%;
    top: 4%;
    width: 92%;
    height: 22%;
    bottom: auto;
  }
  .leverage-relay {
    left: 50%;
    top: 36%;
  }
  .company-lineage {
    left: 4%;
    right: 4%;
    top: 49%;
    bottom: 5%;
    width: auto;
  }
  .truth-roadmap {
    grid-template-columns: 1fr;
  }
  .truth-column {
    min-height: auto;
  }
  .truth-column > strong {
    margin-top: 42px;
  }
  .phase-arc {
    grid-template-columns: 1fr;
  }
  .phase-arc > i {
    transform: rotate(90deg);
    justify-self: center;
  }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .site-footer > p {
    text-align: left;
  }
  .site-footer > div {
    justify-self: start;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section: 94px;
  }
  .group-logo-full {
    display: none;
  }
  .group-logo-mark {
    display: block;
  }
  .wordmark {
    gap: 9px;
  }
  .brand-divider {
    height: 24px;
  }
  .relay-wordmark {
    font-size: 16px;
  }
  .hero {
    padding-top: 112px;
    padding-bottom: 24px;
  }
  .hero-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(50px, 15vw, 71px);
  }
  .hero-deck {
    font-size: 18px;
  }
  .hero-bridge {
    font-size: 16px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .action {
    width: 100%;
  }
  .hero-trust {
    align-items: flex-start;
  }
  .hero-topology {
    aspect-ratio: 0.85 / 1;
    margin: 28px 0;
  }
  .hero-topology > svg {
    transform: scale(0.95);
  }
  .topology-core {
    width: 145px;
  }
  .topology-node {
    min-width: 96px;
    padding: 8px 8px 8px 20px;
  }
  .topology-node i {
    left: 7px;
    top: 13px;
  }
  .topology-node strong {
    font-size: 13px;
  }
  .node-a {
    left: 0;
    top: 15%;
  }
  .node-b {
    right: 0;
    top: 11%;
  }
  .node-c {
    right: -1%;
    top: 48%;
  }
  .node-d {
    right: 2%;
    bottom: 8%;
  }
  .node-e {
    left: 1%;
    bottom: 6%;
  }
  .node-f {
    left: -1%;
    top: 48%;
  }
  .topology-caption {
    display: none;
  }
  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-scroll {
    display: none;
  }
  .section-heading h2,
  .why-first-heading h2 {
    font-size: 43px;
  }
  .section-heading p,
  .why-first-heading p {
    font-size: 17px;
  }
  .mode-controls {
    flex-direction: column;
  }
  .coordination-stage {
    min-height: 650px;
  }
  .member-cloud {
    inset: 28px 14px 118px;
  }
  .fragment-cards span {
    min-width: 92px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .stage-summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
  .stage-summary span {
    text-align: left;
  }
  .simulation-label,
  .preview-label {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
  }
  .sim-console {
    grid-template-columns: 1fr;
  }
  .console-head {
    grid-column: 1;
  }
  .event-log {
    grid-column: 1;
    grid-row: auto;
    border-right: 0;
  }
  .task-inspector {
    grid-column: 1;
    grid-row: auto;
  }
  .graph-toolbar {
    padding: 12px;
  }
  .sim-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 44px;
  }
  .sim-button {
    padding: 0 6px;
  }
  .task-graph {
    min-height: 720px;
    overflow: visible;
  }
  .task-edges {
    display: none;
  }
  .graph-node {
    left: 16px !important;
    right: 16px;
    top: auto !important;
    width: auto;
    min-height: 66px;
  }
  .graph-node:nth-of-type(1) {
    top: 20px !important;
  }
  .graph-node:nth-of-type(2) {
    top: 102px !important;
  }
  .graph-node:nth-of-type(3) {
    top: 184px !important;
  }
  .graph-node:nth-of-type(4) {
    top: 266px !important;
  }
  .graph-node:nth-of-type(5) {
    top: 348px !important;
  }
  .graph-node:nth-of-type(6) {
    top: 430px !important;
  }
  .graph-node:nth-of-type(7) {
    top: 512px !important;
  }
  .graph-node:nth-of-type(8) {
    top: 594px !important;
  }
  .graph-node::after {
    content: '↓';
    position: absolute;
    left: 50%;
    bottom: -19px;
    color: #516058;
  }
  .graph-node:last-of-type::after {
    display: none;
  }
  .graph-toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 8px;
    min-width: 0;
  }
  .graph-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .system-rail {
    grid-template-columns: 1fr;
  }
  .rail-step {
    min-height: 190px;
    border-left: 0;
  }
  .rail-step strong {
    margin-top: 38px;
  }
  .participation-lanes {
    grid-template-columns: 1fr;
  }
  .participation-lane {
    min-height: auto;
  }
  .participation-lane h3 {
    margin-top: 44px;
  }
  .fleet-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .fleet-head button {
    width: 100%;
  }
  .worker-matrix {
    min-height: 0;
    grid-template-columns: repeat(4, 1fr);
  }
  .worker-matrix .worker-cell:nth-child(n + 9) {
    display: none;
  }
  .worker-matrix.show-all .worker-cell {
    display: flex;
  }
  .worker-cell {
    min-height: 94px;
    padding: 10px;
  }
  .mobile-worker-toggle {
    width: 100%;
    min-height: 48px;
    display: block;
    border: 0;
    border-top: 1px solid var(--line);
    background: #141a1f;
    color: var(--mint);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .routing-lane {
    grid-template-columns: 1fr;
  }
  .routing-lane > span {
    min-height: 38px;
  }
  .routing-lane > div {
    min-height: 64px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .setup-steps {
    grid-template-columns: 1fr 1fr;
  }
  .terminal-bar {
    grid-template-columns: 1fr auto;
  }
  .terminal-bar em {
    display: none;
  }
  .terminal-body {
    min-height: 320px;
    padding: 18px;
    font-size: 13px;
  }
  .terminal-prompt {
    grid-template-columns: 27px 1fr;
  }
  .terminal-prompt i {
    grid-column: 2;
  }
  .terminal-foot {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 16px;
  }
  .mobile-disclosure {
    display: block;
    margin-top: 56px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mobile-disclosure > summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #cbd5d0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .mobile-disclosure > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-disclosure > summary span {
    color: var(--mint);
    font-family: var(--mono);
    font-size: 19px;
  }
  .mobile-disclosure .connect-flow,
  .mobile-disclosure .capacity-model {
    margin-top: 0;
    border-bottom: 0;
  }
  .capacity-model {
    padding: 24px;
    gap: 36px;
  }
  .capacity-output {
    grid-template-columns: 1fr;
  }
  .preview-topbar {
    grid-template-columns: 1fr auto;
  }
  .preview-breadcrumb {
    display: none;
  }
  .preview-page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-page-head > div:last-child {
    width: 100%;
  }
  .preview-page-head button {
    flex: 1;
  }
  .preview-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .preview-dashboard {
    grid-template-columns: 1fr;
  }
  .preview-body {
    min-height: 700px;
  }
  .preview-action-status {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .preview-nav button {
    font-size: 14px;
  }
  .preview-table-row {
    font-size: 14px;
  }
  .mini-task-row small,
  .mini-task-row > span {
    font-size: 14px;
  }
  .graph-node > span,
  .graph-node small,
  .log-row {
    font-size: 14px;
  }
  .preview-table {
    overflow-x: auto;
  }
  .preview-table-row {
    min-width: 620px;
  }
  .evidence-preview-grid {
    grid-template-columns: 1fr;
  }
  .ledger-chain {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ledger-chain > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }
  .ledger-chain > div::after {
    display: none;
  }
  .ledger-chain span {
    margin-top: 0;
  }
  .ledger-artifacts {
    grid-template-columns: 1fr 1fr;
  }
  .why-first-heading > span {
    align-self: auto;
  }
  .leverage-stage {
    min-height: 730px;
  }
  .leverage-person {
    width: 21px;
    height: 21px;
    font-size: 11px;
  }
  .leverage-relay {
    top: 32%;
    width: 230px;
  }
  .company-lineage {
    top: 45%;
    grid-template-columns: 1fr 1fr;
  }
  .company-lineage > div {
    padding: 15px;
  }
  .company-lineage strong {
    font-size: 31px;
  }
  .why-first blockquote {
    margin-top: 74px;
    font-size: 36px;
  }
  .truth-column {
    padding: 24px;
  }
  .join-section {
    min-height: 700px;
  }
  .join-section h2 {
    font-size: 64px;
  }
  .join-section > p {
    font-size: 17px;
  }
  .join-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .join-manifesto {
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .signal-packets {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * Light surfaces
 *
 * The reading-heavy sections invert to paper so body copy is ink on light,
 * which is where the small type was hardest to read. Sections that are really
 * device UI — the task console, the pairing terminal, the evidence ledger —
 * stay dark on purpose and read as insets when they land inside a light one.
 * Everything below is a token swap plus the handful of places the stylesheet
 * hard-codes a colour instead of using a token.
 * ------------------------------------------------------------------------ */
.paper-surface {
  --white: #14181c;
  --text: #23282d;
  --muted: #4a5157;
  --dim: #656d73;
  --line: #cec7ba;
  --line-soft: rgba(17, 19, 22, 0.16);
  --panel: #ece7dd;
  --panel-2: #e3ddd1;
  --panel-3: #d8d1c3;
  --paper-2: #2b3136;
  --ink: var(--paper);
  --signal: var(--signal-deep);
  --mint: var(--signal-deep);
  --shadow: 0 24px 60px rgba(17, 19, 22, 0.12);
  background: var(--paper);
  color: #23282d;
}

.paper-surface .section-heading p,
.paper-surface .participation-lane p,
.paper-surface .onboarding-rail p {
  color: #4a5157;
}
.paper-surface .reality-strip strong,
.reality-strip.paper-surface strong {
  color: #1a1e22;
}
.paper-surface .rail-step p {
  color: #4a5157;
}
.paper-surface .onboarding-rail {
  background: #ece7dd;
}
.paper-surface .participation-boundary {
  background: rgba(201, 58, 34, 0.08);
  color: #23282d;
}
.paper-surface .participation-boundary strong {
  color: var(--signal-deep);
}
.paper-surface .judgment-lane > div > span {
  color: #6b736f;
}
.paper-surface .judgment-lane strong {
  color: #1a1e22;
}
.paper-surface .judgment-lane small {
  color: #4f5652;
}
.paper-surface .judgment-lane::before {
  background: linear-gradient(var(--signal-deep), rgba(201, 58, 34, 0.1));
}
.paper-surface .judgment-lane > div::before {
  background: var(--signal-deep);
  box-shadow: 0 0 0 1px rgba(201, 58, 34, 0.35);
}

/* The evidence ledger keeps its dark chrome inside the light section. */
.paper-surface .autonomous-lane {
  background: #e1dbce;
}

.paper-surface .evidence-ledger {
  --signal: #ff5a3d;
  --white: #f4f0e8;
  --text: #e6e0d5;
  --muted: #bebab2;
  --line: #353b40;
  --mint: var(--signal);
  --ink: #111316;
  color: var(--text);
}

/* The capacity model is a paper card sitting inside the dark network section. */
.capacity-model.paper-surface {
  border-color: #d5cec1;
  background: var(--paper);
}
.capacity-model.paper-surface .capacity-copy > span {
  color: var(--signal-deep);
}
.capacity-model.paper-surface .capacity-copy h3 {
  color: #14181c;
}
.capacity-model.paper-surface .capacity-copy > p {
  color: #4a5157;
}
.capacity-model.paper-surface .capacity-controls label {
  color: #4f565c;
}
.capacity-model.paper-surface .capacity-controls output {
  color: #14181c;
}
.capacity-model.paper-surface .capacity-controls label > small {
  color: #5c646a;
}
.capacity-model.paper-surface .capacity-controls input {
  accent-color: var(--signal-deep);
}
.capacity-model.paper-surface .capacity-output {
  background: #d5cec1;
}
.capacity-model.paper-surface .capacity-output > div {
  background: #ece7dd;
}
.capacity-model.paper-surface .capacity-output span {
  color: #5c646a;
}
.capacity-model.paper-surface .capacity-output strong {
  color: var(--signal-deep);
}
.capacity-model.paper-surface .capacity-headline small {
  color: #3d444a;
}
.capacity-model.paper-surface .capacity-assumptions {
  background: #e3ddd1;
}
.capacity-model.paper-surface .capacity-assumptions ul {
  color: #363c42;
}
.capacity-model.paper-surface .capacity-assumptions > small {
  color: #5c646a;
}

/* --------------------------------------------------------------------------
 * Control-room preview: making a demo click legible
 *
 * The buttons change the panel now, so the panel has to show it. A brief flash
 * marks what moved, an inline echo says what happened next to the control that
 * did it, and a spent one-shot button states that it is spent.
 * ----------------------------------------------------------------------- */
.demo-echo {
  margin: 0;
  padding: 10px 14px;
  border-left: 2px solid var(--signal);
  background: rgba(255, 90, 61, 0.08);
  color: #e2d8d2;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.approval-preview > .demo-echo {
  margin-top: 12px;
}

.just-changed {
  animation: demoFlash 900ms ease-out;
}
@keyframes demoFlash {
  0% {
    background-color: rgba(255, 90, 61, 0.32);
  }
  100% {
    background-color: transparent;
  }
}
.preview-metric.just-changed,
.preview-table-row.just-changed,
.mini-task-row.just-changed {
  animation: demoFlashPanel 1100ms ease-out;
}
@keyframes demoFlashPanel {
  0% {
    background-color: rgba(255, 90, 61, 0.26);
  }
  100% {
    background-color: inherit;
  }
}

.preview-detail {
  padding: 16px 18px;
  border-bottom: 1px solid #273038;
  background: #10151a;
}
.preview-detail > span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.preview-detail dl {
  margin: 12px 0 0;
  display: grid;
  gap: 1px;
  background: #273038;
}
.preview-detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px;
  background: #12181d;
}
.preview-detail dt {
  color: #8c988f;
  font-family: var(--mono);
  font-size: 13px;
}
.preview-detail dd {
  margin: 0;
  color: #d9e0dc;
  font-size: 14px;
  text-align: right;
}

.approval-resolved {
  margin: 12px 0 0;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.approval-preview.resolved {
  opacity: 0.78;
}

.preview-page-head button.spent,
.approval-preview button.spent {
  opacity: 0.68;
}
.preview-page-head button:disabled,
.approval-preview button:disabled {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .just-changed,
  .preview-metric.just-changed,
  .preview-table-row.just-changed,
  .mini-task-row.just-changed {
    animation: none;
  }
}
