:root {
  color-scheme: dark;
  --ink-strong: oklch(0.94 0.014 245);
  --ink: oklch(0.82 0.018 245);
  --ink-muted: oklch(0.64 0.018 245);
  --canvas: oklch(0.14 0.009 250);
  --canvas-raised: oklch(0.175 0.012 250);
  --surface: oklch(0.205 0.015 250);
  --surface-high: oklch(0.245 0.018 250);
  --line: oklch(0.34 0.017 248);
  --line-strong: oklch(0.48 0.025 246);
  --blue: oklch(0.69 0.17 247);
  --blue-strong: oklch(0.76 0.145 240);
  --blue-dark: oklch(0.32 0.09 250);
  --orange: oklch(0.72 0.145 55);
  --orange-dark: oklch(0.28 0.045 55);
  --max: 1180px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  font: inherit;
}

a {
  color: var(--ink-strong);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--blue-strong);
  text-decoration-color: currentColor;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-strong);
  outline-offset: 4px;
}

::selection {
  background: var(--blue-dark);
  color: var(--ink-strong);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--canvas);
  color: var(--ink-strong);
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 0.65rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: oklch(0.155 0.011 250 / 0.98);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.62rem;
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.85rem, 2.2vw, 2rem);
}

.site-nav a,
.header-source {
  position: relative;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.48rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 140ms ease, transform 140ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--ink-strong);
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-source {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-strong);
}

.header-source:hover,
.action:hover {
  transform: translateY(-1px);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 710;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: 4rem;
}

.hero-wordmark,
.hero-slogan {
  display: block;
}

.hero-wordmark {
  color: var(--blue-strong);
}

.hero-slogan {
  margin-top: 0.2em;
  color: var(--ink-strong);
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: 3rem;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
  line-height: 1.18;
}

.hero {
  display: grid;
  min-height: calc(100svh - 4.25rem);
  grid-template-columns: minmax(18rem, 0.7fr) minmax(36rem, 1.3fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-art {
  position: relative;
  width: 100%;
  margin: 0;
}

.hero-art svg {
  width: 100%;
  overflow: visible;
}

.hero-art text {
  fill: var(--ink-strong);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.task-sheet,
.engine-case,
.pod-body {
  fill: var(--canvas-raised);
  stroke: var(--line-strong);
  stroke-width: 3;
}

.task-line,
.intake-stream path,
.case-cut,
.pod-mount,
.control-link,
.nozzle path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 3;
}

.task-intake text {
  fill: var(--orange);
  font-size: 22px;
}

.task-line {
  stroke-width: 2;
}

.intake-stream path {
  stroke: var(--blue);
  stroke-dasharray: 22 15;
  animation: intake-flow 1.8s linear infinite;
}

.intake-stream path:nth-child(2) {
  animation-delay: -0.6s;
}

.intake-stream path:nth-child(3) {
  animation-delay: -1.2s;
}

.engine-case {
  stroke: var(--line);
  stroke-width: 4;
}

.case-cut,
.nozzle path {
  stroke: var(--orange);
}

.rotor-rim {
  fill: var(--canvas);
  stroke: var(--blue);
  stroke-width: 6;
}

.rotor-track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 8 12;
}

.turbine-rotor {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  animation: turbine-spin 4.8s linear infinite;
}

.turbine-rotor path,
.turbine-rotor use {
  fill: var(--blue-dark);
  stroke: var(--blue-strong);
  stroke-width: 2;
}

.rotor-core {
  fill: var(--orange-dark);
  stroke: var(--orange);
  stroke-width: 4;
}

.rotor-pin {
  fill: var(--orange);
}

.workjet-label {
  fill: var(--ink-muted) !important;
  font-size: 18px !important;
  letter-spacing: 0.2em !important;
}

.pod-body {
  fill: var(--surface);
  stroke: var(--orange);
}

.pod-mount,
.control-link {
  stroke: var(--orange);
}

.pod-signal {
  fill: var(--blue-strong);
}

.orchestrator-pod text {
  font-size: 19px;
}

.agent-lane path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: square;
  stroke-dasharray: 42 18;
  animation: thrust-flow 1.45s linear infinite;
}

.agent-lane text {
  fill: var(--ink);
  font-size: 17px;
}

.lane-kimi path,
.lane-terra path {
  stroke: var(--blue-strong);
  animation-delay: -0.48s;
}

.lane-grok path {
  animation-delay: -0.96s;
}

.lane-bulk path {
  stroke: var(--orange);
  stroke-width: 3;
  animation-delay: -0.72s;
}

@keyframes turbine-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes intake-flow {
  to {
    stroke-dashoffset: -74;
  }
}

@keyframes thrust-flow {
  to {
    stroke-dashoffset: -120;
  }
}

.hero-lede {
  max-width: 51ch;
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 140ms ease;
}

.action-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: oklch(0.17 0.025 250);
}

.action-primary:hover {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
  color: oklch(0.15 0.02 250);
}

.action-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-strong);
}

.action-secondary:hover {
  border-color: var(--blue);
  background: var(--surface-high);
}

.release-state {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 52ch;
  margin: 1.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.release-state span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.42rem;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--orange-dark);
}

.section-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 7.5rem) var(--gutter);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(18rem, 1.18fr);
  column-gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-intro h2,
.section-intro > p:last-child,
.docs-head h2,
.docs-head > p:last-child {
  margin-top: 0;
  margin-bottom: 0;
}

.section-intro > p:last-child,
.docs-head > p:last-child {
  max-width: 68ch;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.mechanism {
  padding: 7rem var(--gutter);
  border-top: 1px solid var(--line);
}

.mechanism-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.mechanism-list li {
  min-width: 0;
  padding: 1.5rem;
}

.mechanism-list li + li {
  border-left: 1px solid var(--line);
}

.mechanism-list > li > span,
.trust-chain > li > span {
  color: var(--blue-strong);
  font-size: 0.875rem;
  font-weight: 740;
}

.mechanism-list h3 {
  margin-top: 1.1rem;
  font-size: 1.2rem;
}

.mechanism-list p,
.trust-chain p,
.proof-row figcaption p,
.remote-copy p,
.install-notes p,
.final-cta p {
  margin: 0;
  color: var(--ink-muted);
}

.review-stage > span,
.review-stage h3 {
  color: var(--orange) !important;
}

.default-playbook {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.playbook-intro {
  display: grid;
  grid-template-columns: minmax(15rem, 0.82fr) minmax(18rem, 1.18fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.playbook-intro h3,
.playbook-intro p,
.path-question p,
.synthesis-step p {
  margin: 0;
}

.playbook-intro h3 {
  max-width: 17ch;
  font-size: 1.75rem;
}

.playbook-intro p,
.path-question p,
.synthesis-step p,
.specialist-paths dd {
  color: var(--ink-muted);
}

.discovery-path {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(22rem, 1.6fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.path-question,
.synthesis-step {
  padding: 1.5rem;
}

.path-question {
  border-right: 1px solid var(--line);
}

.path-question > span,
.synthesis-step > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-strong);
  font-weight: 740;
}

.prototype-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prototype-panel li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.12rem 0.6rem;
  align-content: center;
  min-height: 6.5rem;
  padding: 1rem;
}

.prototype-panel li + li {
  border-left: 1px solid var(--line);
}

.prototype-panel li > span {
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 760;
}

.prototype-panel strong {
  color: var(--ink-strong);
}

.prototype-panel small {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.synthesis-step {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.production-workers {
  border-top: 1px solid var(--line);
}

.production-workers > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) 1fr;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.production-workers > div + div {
  border-top: 1px solid var(--line);
}

.production-workers strong {
  color: var(--ink-strong);
}

.production-workers span {
  color: var(--ink-muted);
}

.specialist-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.specialist-paths > div {
  padding: 1.25rem 1.5rem;
}

.specialist-paths > div + div {
  border-left: 1px solid var(--line);
}

.specialist-paths dt {
  color: var(--ink-strong);
  font-weight: 740;
}

.specialist-paths dd {
  margin: 0.3rem 0 0;
}

.proof {
  width: 100%;
  max-width: none;
  padding: 7rem 4rem;
  border-top: 1px solid var(--line);
  background: var(--canvas-raised);
}

.proof-intro,
.proof-row {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(17rem, 0.52fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.proof-row-reverse {
  grid-template-columns: minmax(17rem, 0.52fr) minmax(0, 1.48fr);
}

.proof-row-reverse .capture-area {
  grid-column: 2;
  grid-row: 1;
}

.proof-row-reverse figcaption {
  grid-column: 1;
  grid-row: 1;
}

.capture-area {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.capture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.proof-row:hover .capture-area {
  border-color: var(--blue);
}

.proof-row figcaption {
  max-width: 34rem;
}

.proof-row figcaption p {
  max-width: 64ch;
}

.remote {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1.18fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.remote-copy {
  position: sticky;
  top: 7rem;
}

.remote-copy p {
  max-width: 62ch;
}

.trust-chain {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.trust-chain li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-chain h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

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

code {
  color: var(--ink-strong);
  font-size: 1em;
}

.docs {
  width: 100%;
  max-width: none;
  padding: 7rem 4rem;
  border-top: 1px solid var(--line);
  background: var(--canvas-raised);
}

.docs > * {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.docs-head {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.15fr);
  column-gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.command-block {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--canvas);
}

.command-title {
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--ink-strong);
  font-size: 0.9375rem;
  line-height: 1.8;
  white-space: pre;
}

.install-notes p + p {
  margin-top: 1rem;
}

.text-link,
.release-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue-strong);
  font-weight: 700;
}

.final-cta {
  padding: 7rem var(--gutter);
  border-top: 1px solid var(--line);
}

.final-cta > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0 clamp(2rem, 5vw, 4rem);
  width: min(100%, 900px);
  margin: 0 auto;
}

.final-cta img {
  grid-row: 1 / 4;
  width: 4.5rem;
  height: 4.5rem;
}

.final-cta h2,
.final-cta p,
.final-cta .hero-actions {
  grid-column: 2;
}

.final-cta h2 {
  max-width: 17ch;
}

.final-cta p {
  max-width: 60ch;
}

.final-cta .hero-actions {
  margin-top: 1.1rem;
}

.release-link {
  margin-top: 0;
  padding: 0.65rem 0.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.4rem var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--canvas-raised);
}

.site-footer p {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer nav a {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.not-found-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
}

.not-found {
  width: min(100% - 2rem, 760px);
  margin: auto;
  padding: 5rem 0;
}

.not-found > img {
  margin-bottom: 2rem;
}

.not-found h1 {
  max-width: 11ch;
}

.not-found > p {
  max-width: 62ch;
  color: var(--ink-muted);
}

.not-found nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 2rem;
}

.compact-footer {
  display: block;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(16rem, 0.55fr) minmax(36rem, 1.45fr);
    gap: 1.5rem;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-art {
    width: min(100%, 860px);
  }

  .mechanism-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mechanism-list li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mechanism-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .discovery-path {
    grid-template-columns: 1fr;
  }

  .path-question,
  .synthesis-step {
    border-right: 0;
  }

  .path-question {
    border-bottom: 1px solid var(--line);
  }

  .proof-row,
  .proof-row-reverse {
    grid-template-columns: 1fr;
  }

  .proof-row-reverse .capture-area,
  .proof-row-reverse figcaption {
    grid-column: 1;
  }

  .proof-row-reverse .capture-area {
    grid-row: 1;
  }

  .proof-row-reverse figcaption {
    grid-row: 2;
  }

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

  .remote-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 8rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.22rem 0 0.35rem;
  }

  .header-source {
    grid-column: 2;
    grid-row: 1;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section-intro,
  .playbook-intro,
  .docs-head,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .docs-head h2 {
    margin-bottom: 1.2rem;
  }

  .final-cta > div {
    grid-template-columns: 1fr;
  }

  .final-cta img {
    grid-row: auto;
    margin-bottom: 1.6rem;
  }

  .final-cta h2,
  .final-cta p,
  .final-cta .hero-actions {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-art {
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .action {
    width: 100%;
  }

  .mechanism-list {
    grid-template-columns: 1fr;
  }

  .prototype-panel,
  .specialist-paths {
    grid-template-columns: 1fr;
  }

  .prototype-panel li + li,
  .specialist-paths > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .production-workers > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .mechanism-list li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-row .capture-area {
    min-height: 14rem;
    aspect-ratio: auto;
  }

  .trust-chain li {
    grid-template-columns: 2.2rem 1fr;
  }

  pre {
    font-size: 0.8125rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
