:root {
  color-scheme: dark;
  --ink: #050607;
  --ink-1: #090b0d;
  --ink-2: #0e1114;
  --ink-3: #15191d;
  --paper: #f2f5f4;
  --muted: #9ca5a3;
  --dim: #68716f;
  --line: #252b2e;
  --line-strong: #3a4245;
  --mint: #72e6c1;
  --amber: #f2bd63;
  --blue: #72a7f5;
  --coral: #f07b68;
  --violet: #b492e8;
  --sage: #9fc69f;
  --header-height: 64px;
  --content: 1220px;
  --radius: 6px;
  --focus: #f2bd63;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::selection {
  color: var(--ink);
  background: var(--mint);
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 max(22px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(5, 6, 7, 0.84);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 6, 7, 0.96);
}

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

.brand-mark {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.brand-mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  background: var(--ink);
}

.brand-mark i:nth-child(1) {
  top: 2px;
  left: 2px;
  color: var(--mint);
}

.brand-mark i:nth-child(2) {
  top: 5px;
  right: 2px;
  color: var(--amber);
}

.brand-mark i:nth-child(3) {
  right: 7px;
  bottom: 2px;
  color: var(--blue);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
  transform-origin: left center;
}

.brand-mark::before {
  top: 7px;
  left: 8px;
  width: 12px;
  height: 1px;
}

.brand-mark::after {
  top: 12px;
  left: 7px;
  width: 14px;
  height: 1px;
  transform: rotate(48deg);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.desktop-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease-out;
}

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

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--ink-1);
  cursor: pointer;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.icon-button:hover,
.icon-button[aria-pressed="true"] {
  color: var(--paper);
  border-color: var(--line-strong);
  background: var(--ink-2);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button[aria-pressed="false"] .sound-wave,
.icon-button[aria-pressed="true"] .sound-off {
  display: none;
}

.assistant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink-1);
  font-size: 13px;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.assistant-link:hover {
  border-color: rgba(114, 230, 193, 0.6);
  background: var(--ink-2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(114, 230, 193, 0.1);
}

.menu-button {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 14px;
  left: 14px;
  z-index: 91;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.hero {
  position: relative;
  min-height: calc(100svh - 104px);
  max-height: 880px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

#knowledge-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  touch-action: pan-y;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 58%;
  background: rgba(5, 6, 7, 0.86);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding-top: 8.5vh;
  padding-bottom: 148px;
  pointer-events: none;
}

.hero-copy .hero-search,
.hero-copy .hero-actions {
  pointer-events: auto;
}

.eyebrow,
.section-index,
.route-content > p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--mint);
}

.hero h1 {
  max-width: 660px;
  margin: 25px 0 18px;
  font-size: 76px;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--mint);
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 520px;
  margin: 0;
  color: #bac2c0;
  font-size: 17px;
  line-height: 1.75;
}

.hero-search {
  width: min(520px, 100%);
  margin-top: 31px;
}

.hero-search > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-control {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(9, 11, 13, 0.92);
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.search-control:focus-within {
  border-color: var(--mint);
  background: var(--ink-2);
}

.search-control > svg {
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  color: var(--dim);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-size: 15px;
}

.search-control input::placeholder {
  color: var(--dim);
}

.search-control button {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: var(--mint);
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.search-control button:hover {
  background: #93f0d2;
}

.search-control button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 22px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out;
}

.primary-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease-out;
}

.text-link:hover {
  color: var(--paper);
}

.canvas-legend {
  position: absolute;
  right: max(22px, calc((100vw - var(--content)) / 2));
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(58, 66, 69, 0.72);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(5, 6, 7, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  pointer-events: none;
}

.canvas-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.canvas-legend .available {
  background: var(--mint);
}

.canvas-legend .building {
  border: 1px solid var(--amber);
}

.canvas-legend b {
  color: var(--paper);
  font-weight: 500;
}

.hero-status {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(650px, 58%);
  min-height: 80px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.96);
}

.hero-status span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
}

.hero-status span:last-child {
  border-right: 0;
}

.hero-status b {
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 500;
}

.route-section,
.path-section,
.assistant-section,
.site-footer {
  width: min(var(--content), calc(100% - 44px));
  margin-right: auto;
  margin-left: auto;
}

.route-section {
  padding: 94px 0 108px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.path-copy h2,
.assistant-section h2 {
  margin: 9px 0 0;
  font-size: 38px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > p,
.assistant-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.route-card {
  --tone: var(--paper);
  position: relative;
  grid-column: span 4;
  display: flex;
  min-width: 0;
  min-height: 276px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  transition: border-color 220ms ease-out, background-color 220ms ease-out, transform 220ms ease-out;
}

.route-card:nth-child(1) {
  grid-column: span 7;
}

.route-card:nth-child(2) {
  grid-column: span 5;
}

.route-card:nth-child(6) {
  grid-column: span 12;
  min-height: 214px;
}

.route-card[data-tone="mint"] { --tone: var(--mint); }
.route-card[data-tone="amber"] { --tone: var(--amber); }
.route-card[data-tone="blue"] { --tone: var(--blue); }
.route-card[data-tone="coral"] { --tone: var(--coral); }
.route-card[data-tone="violet"] { --tone: var(--violet); }
.route-card[data-tone="sage"] { --tone: var(--sage); }

.route-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--tone);
  transform: scaleX(0.12);
  transform-origin: left center;
  transition: transform 260ms ease-out;
}

.route-card:hover,
.route-card:focus-visible {
  border-color: color-mix(in srgb, var(--tone) 55%, var(--line));
  background: var(--ink-2);
  transform: translateY(-3px);
}

.route-card:hover::before,
.route-card:focus-visible::before {
  transform: scaleX(1);
}

.route-number {
  position: absolute;
  top: 19px;
  left: 20px;
  color: var(--tone);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.route-state {
  position: absolute;
  top: 15px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.route-state.live::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--tone);
}

.route-state.planned {
  color: var(--tone);
  border-style: dashed;
}

.route-content {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  min-width: 0;
  padding: 0 64px 24px 20px;
}

.route-content > p {
  color: color-mix(in srgb, var(--tone) 75%, var(--muted));
}

.route-content h3 {
  margin: 6px 0 5px;
  overflow-wrap: anywhere;
  font-size: 23px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: 0;
}

.route-content span {
  color: var(--muted);
  font-size: 13px;
}

.route-arrow {
  position: absolute;
  right: 19px;
  bottom: 23px;
  z-index: 3;
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition: color 160ms ease-out, transform 160ms ease-out;
}

.route-card:hover .route-arrow {
  color: var(--tone);
  transform: translate(2px, -2px);
}

.graph-mini,
.signal-bars,
.tool-terminal,
.agent-orbit,
.pipeline-visual,
.life-rings {
  position: absolute;
  inset: 48px 18px 68px 45%;
  z-index: 1;
  opacity: 0.74;
  transition: opacity 200ms ease-out, transform 260ms ease-out;
}

.route-card:hover .graph-mini,
.route-card:hover .signal-bars,
.route-card:hover .tool-terminal,
.route-card:hover .agent-orbit,
.route-card:hover .pipeline-visual,
.route-card:hover .life-rings {
  opacity: 1;
  transform: translateY(-2px);
}

.graph-mini i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--tone);
  border-radius: 50%;
  background: var(--ink-1);
}

.graph-mini i:nth-child(1) { top: 47%; left: 48%; width: 13px; height: 13px; background: var(--tone); }
.graph-mini i:nth-child(2) { top: 10%; left: 18%; }
.graph-mini i:nth-child(3) { top: 18%; right: 12%; }
.graph-mini i:nth-child(4) { right: 22%; bottom: 5%; }
.graph-mini i:nth-child(5) { bottom: 12%; left: 12%; }

.graph-mini span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44%;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.graph-mini span:nth-of-type(1) { transform: rotate(-142deg); }
.graph-mini span:nth-of-type(2) { transform: rotate(-42deg); }
.graph-mini span:nth-of-type(3) { transform: rotate(42deg); }
.graph-mini span:nth-of-type(4) { transform: rotate(142deg); }

.signal-bars {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 0;
}

.signal-bars i {
  width: 7px;
  border: 1px solid var(--tone);
  background: transparent;
}

.signal-bars i:nth-child(1) { height: 24%; }
.signal-bars i:nth-child(2) { height: 44%; }
.signal-bars i:nth-child(3) { height: 31%; }
.signal-bars i:nth-child(4) { height: 72%; background: var(--tone); }
.signal-bars i:nth-child(5) { height: 58%; }
.signal-bars i:nth-child(6) { height: 86%; }

.tool-terminal {
  top: 57px;
  right: 22px;
  bottom: auto;
  left: 42%;
  height: 106px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #07090a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tool-terminal span {
  color: var(--tone);
  font-size: 10px;
}

.tool-terminal i {
  display: block;
  height: 1px;
  margin-top: 13px;
  background: var(--line-strong);
}

.tool-terminal i:nth-child(2) { width: 74%; }
.tool-terminal i:nth-child(3) { width: 48%; }
.tool-terminal i:nth-child(4) { width: 62%; background: var(--tone); }

.agent-orbit i,
.agent-orbit span,
.life-rings i,
.life-rings span {
  position: absolute;
  border-radius: 50%;
}

.agent-orbit span {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--tone);
  transform: translate(-50%, -50%);
}

.agent-orbit i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--tone);
}

.agent-orbit i:nth-child(1) { top: 12%; left: 23%; }
.agent-orbit i:nth-child(2) { top: 17%; right: 15%; }
.agent-orbit i:nth-child(3) { right: 20%; bottom: 10%; }
.agent-orbit i:nth-child(4) { bottom: 17%; left: 12%; }

.agent-orbit::before,
.agent-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.agent-orbit::before { inset: 17%; }
.agent-orbit::after { inset: 34%; border-style: dashed; }

.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.pipeline-visual b {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--tone);
  border-radius: 50%;
  color: var(--tone);
  background: var(--ink-1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
}

.pipeline-visual i {
  width: 25px;
  height: 1px;
  background: var(--line-strong);
}

.life-rings {
  inset: 18px 70px 18px auto;
  width: 190px;
}

.life-rings i {
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  transform: translate(-50%, -50%);
}

.life-rings i:nth-child(1) { width: 140px; height: 140px; }
.life-rings i:nth-child(2) { width: 96px; height: 96px; border-color: var(--tone); }
.life-rings i:nth-child(3) { width: 50px; height: 50px; }
.life-rings span { top: 50%; left: 50%; width: 12px; height: 12px; background: var(--tone); transform: translate(-50%, -50%); }

.path-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.path-copy h2 {
  max-width: 440px;
}

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

.research-path li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  min-height: 104px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.research-path li:last-child {
  border-bottom: 1px solid var(--line);
}

.research-path > li > span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.research-path b {
  font-size: 16px;
  font-weight: 620;
}

.research-path p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.assistant-section {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 220px;
  padding: 36px 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-1);
}

.assistant-section h2 {
  margin-top: 7px;
  font-size: 31px;
}

.assistant-section p:not(.section-index) {
  max-width: 590px;
  margin-top: 8px;
}

.assistant-orbit {
  position: relative;
  width: 92px;
  height: 92px;
}

.assistant-orbit::before,
.assistant-orbit::after,
.assistant-orbit i,
.assistant-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.assistant-orbit::before {
  inset: 0;
  border: 1px solid rgba(114, 230, 193, 0.55);
}

.assistant-orbit::after {
  inset: 19px;
  border: 1px dashed var(--line-strong);
}

.assistant-orbit i:nth-child(1) {
  top: 4px;
  left: 40px;
  width: 9px;
  height: 9px;
  background: var(--mint);
}

.assistant-orbit i:nth-child(2) {
  right: 7px;
  bottom: 16px;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.assistant-orbit span {
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr;
  align-items: center;
  gap: 30px;
  margin-top: 108px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-footer > div a {
  min-height: 28px;
  color: var(--dim);
  font-size: 10px;
  transition: color 160ms ease-out;
}

.site-footer > div a:hover {
  color: var(--paper);
}

.noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 99;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--amber);
  color: var(--paper);
  background: var(--ink-2);
  font-size: 13px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease-out, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero::after {
    width: 68%;
  }

  .hero h1 {
    font-size: 64px;
  }

  .route-card:nth-child(1),
  .route-card:nth-child(2),
  .route-card {
    grid-column: span 6;
  }

  .route-card:nth-child(6) {
    grid-column: span 12;
  }

  .path-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .assistant-section {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .assistant-section .primary-button {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    display: none;
  }

  .assistant-link {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .assistant-link .status-dot {
    margin: 0;
  }

  .hero {
    min-height: calc(100svh - 88px);
    max-height: none;
  }

  #knowledge-canvas {
    pointer-events: none;
  }

  .hero::after {
    width: 100%;
    background: rgba(5, 6, 7, 0.78);
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding-top: 48px;
    padding-bottom: 136px;
  }

  .hero h1 {
    max-width: 430px;
    margin-top: 20px;
    font-size: 50px;
  }

  .hero-lead {
    max-width: 460px;
    font-size: 15px;
  }

  .hero-search {
    margin-top: 25px;
  }

  .search-control {
    grid-template-columns: 40px minmax(0, 1fr) 46px;
  }

  .search-control input {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 10px;
  }

  .primary-button {
    padding: 0 14px;
    font-size: 13px;
  }

  .canvas-legend {
    display: none;
  }

  .hero-status {
    width: 100%;
    min-height: 70px;
    border-right: 0;
  }

  .hero-status span {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 7px 4px;
    text-align: center;
  }

  .hero-status b {
    font-size: 16px;
  }

  .route-section,
  .path-section,
  .assistant-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .route-section {
    padding: 72px 0 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading h2,
  .path-copy h2 {
    font-size: 30px;
  }

  .route-card:nth-child(1),
  .route-card:nth-child(2),
  .route-card,
  .route-card:nth-child(6) {
    grid-column: span 12;
    min-height: 238px;
  }

  .route-card:nth-child(6) {
    min-height: 210px;
  }

  .route-content {
    padding-right: 48px;
  }

  .graph-mini,
  .signal-bars,
  .tool-terminal,
  .agent-orbit,
  .pipeline-visual {
    right: 12px;
    opacity: 0.44;
  }

  .pipeline-visual b {
    width: 38px;
    height: 38px;
  }

  .pipeline-visual i {
    width: 12px;
  }

  .life-rings {
    right: -18px;
    opacity: 0.45;
  }

  .path-section {
    padding: 78px 0;
  }

  .assistant-section {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 28px 22px;
  }

  .assistant-orbit {
    width: 70px;
    height: 70px;
  }

  .assistant-section h2 {
    font-size: 26px;
  }

  .assistant-section .primary-button {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .site-footer > div {
    justify-content: flex-start;
  }
}

/* Planned destinations share the platform shell but never imitate a live tool. */
.future-page {
  background: var(--ink);
}

.future-main {
  width: min(var(--content), calc(100% - 44px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.future-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 72px;
  align-items: end;
  min-height: 330px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.future-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.future-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.future-page[data-future="automation"] .future-kicker {
  color: var(--violet);
}

.future-heading h1 {
  max-width: 760px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 66px;
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: 0;
}

.future-summary {
  margin: 0;
  color: #bac2c0;
  font-size: 16px;
  line-height: 1.8;
}

.future-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.future-status b {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}

.future-page[data-future="automation"] .future-status b {
  color: var(--violet);
}

.capability-section {
  padding: 72px 0;
}

.capability-section > header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-bottom: 34px;
}

.capability-section h2,
.future-progress h2 {
  margin: 7px 0 0;
  font-size: 31px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: 0;
}

.capability-section > header > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.capability-item {
  min-width: 0;
  min-height: 250px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.capability-item:last-child {
  border-right: 0;
}

.capability-item > span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.capability-item h3 {
  margin: 52px 0 14px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: 0;
}

.capability-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.future-progress {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 34px 0 80px;
}

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

.future-stages li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.future-stages li:last-child {
  border-bottom: 1px solid var(--line);
}

.future-stages span,
.future-stages small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.future-stages .is-current {
  color: var(--paper);
}

.future-stages .is-current small {
  color: var(--amber);
}

.future-page[data-future="automation"] .future-stages .is-current small {
  color: var(--violet);
}

.future-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 0 80px;
  border-top: 1px solid var(--line);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink-1);
  font-size: 13px;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.secondary-button:hover {
  border-color: var(--paper);
  background: var(--ink-2);
}

@media (max-width: 800px) {
  .future-main {
    width: calc(100% - 28px);
    padding-top: 48px;
  }

  .future-heading,
  .capability-section > header,
  .future-progress {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .future-heading {
    min-height: 0;
  }

  .future-heading h1 {
    font-size: 48px;
  }

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

  .capability-item {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .capability-item h3 {
    margin-top: 24px;
  }
}

@media (max-width: 430px) {
  .header-actions {
    gap: 5px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-status span {
    font-size: 9px;
  }

  .route-content h3 {
    font-size: 21px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
