:root {
  --night: #06151b;
  --night-2: #0b2229;
  --night-3: #12313a;
  --paper: #e8eeeb;
  --paper-2: #f7f8f5;
  --ink: #10292c;
  --ink-soft: #526566;
  --line: #b8c5c1;
  --line-dark: rgba(220, 238, 230, 0.18);
  --signal: #ffb000;
  --run: #5cd6b5;
  --fault: #ef6a62;
  --display: "Familjen Grotesk", "Noto Sans SC", sans-serif;
  --body: "Instrument Sans", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

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

a { color: inherit; }

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

.shell,
.site-header {
  width: min(1400px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--night);
  font-weight: 700;
  transform: translateY(-150%);
}

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

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

.night {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(92, 214, 181, 0.08), transparent 24rem),
    linear-gradient(180deg, #06151b 0%, #07191f 100%);
  color: #edf5f0;
}

.night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(220, 238, 230, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 238, 230, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.nav-shell {
  z-index: 20;
  overflow: visible;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #f4f8f5;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: #edf5f0;
  cursor: pointer;
}

.menu-toggle:hover { border-color: rgba(237, 245, 240, 0.5); }

.menu-toggle > span {
  display: grid;
  gap: 5px;
  width: 20px;
}

.menu-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
}

.site-header nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #a9bbb8;
  text-decoration: none;
}

.site-header nav > a:hover { color: #fff; }

.site-header nav > a.nav-apply {
  min-width: 76px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--signal);
  color: var(--night);
  font-weight: 700;
}

.site-header nav > a.nav-apply:hover {
  background: #ffc43d;
  color: var(--night);
}

.language {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1;
}

.language > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: #95aaa6;
  text-decoration: none;
}

.language [aria-current="page"] {
  background: #edf5f0;
  color: var(--night);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
  min-height: 750px;
  padding: 92px 0 80px;
}

.eyebrow,
.section-tag,
.stats-label,
.trace-head,
.trace-index,
.factory-trace figcaption span,
.proof-shot > span,
.future-loop > li > span,
.ownership-map span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #aec2bd;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--run);
  box-shadow: 0 0 0 5px rgba(92, 214, 181, 0.12);
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 5.4vw, 6rem);
  line-height: 0.9;
  max-width: 9.4em;
}

/* Short viewports (1366x768 laptops land at ~698px of usable height) pushed
   the CTA row below the fold: header 84 + hero 665 = 749 > 698. Trim the
   headline and the hero padding so the buttons stay in the first screen. */
@media (max-height: 820px) and (min-width: 981px) {
  .hero { min-height: auto; padding: 60px 0 64px; }
  h1 { font-size: clamp(3rem, 4.4vw, 4.4rem); margin-bottom: 20px; }
  .hero-lede { margin-bottom: 26px; font-size: 1.05rem; }
  .eyebrow { margin-bottom: 20px; }
  .trust-line { margin-top: 22px; }
}

h1 span { color: var(--signal); }

.hero-lede {
  max-width: 48rem;
  margin-bottom: 34px;
  color: #b6c7c3;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}

.hero-lede strong { color: #edf5f0; font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-signal { background: var(--signal); color: var(--night); }
.button-signal:hover { background: #ffc044; }
.button-ghost { border-color: var(--line-dark); color: #edf5f0; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.hero-proof-link {
  margin-left: 5px;
  color: #aec2bd;
  font-size: 0.84rem;
  font-weight: 600;
  text-underline-offset: 4px;
}
.hero-proof-link:hover { color: #fff; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #829a96;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.trust-line li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--run);
}

.factory-trace {
  position: relative;
  margin: 0;
  border: 1px solid rgba(183, 211, 202, 0.24);
  background: rgba(7, 27, 33, 0.8);
  box-shadow: 26px 30px 0 rgba(0, 0, 0, 0.16);
}

.factory-trace::before,
.factory-trace::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(183, 211, 202, 0.35);
}

.factory-trace::before { top: 8px; left: 8px; }
.factory-trace::after { right: 8px; bottom: 8px; }

.trace-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-dark);
  color: #8da49f;
}

.trace-head span:first-child { color: var(--run); }
.trace-head .live-dot { width: 6px; height: 6px; margin-right: 8px; }

.trace-body {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 22px 24px 12px;
}

.trace-axis {
  position: relative;
  width: 2px;
  height: calc(100% - 48px);
  margin: 25px auto 0;
  background: rgba(183, 211, 202, 0.14);
}

.trace-axis span {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--run), var(--signal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 450ms ease;
}

.factory-trace.trace-step-1 .trace-axis span { transform: scaleY(0.33); }
.factory-trace.trace-step-2 .trace-axis span { transform: scaleY(0.66); }
.factory-trace.trace-step-3 .trace-axis span { transform: scaleY(1); }

.trace-nodes {
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none;
}

.trace-node {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 2px 14px;
  min-height: 91px;
  padding: 16px 12px 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0.44;
  transition: opacity 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.trace-node::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -26px;
  width: 8px;
  height: 8px;
  border: 2px solid #6f8782;
  background: var(--night-2);
  transform: rotate(45deg);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.trace-node.active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(92, 214, 181, 0.08), transparent);
  transform: translateX(4px);
}

.trace-node.active::before {
  border-color: var(--signal);
  box-shadow: 0 0 15px rgba(255, 176, 0, 0.45);
}

.trace-index {
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: #73908a;
}

.trace-node strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.trace-node small { color: #829a96; font-size: 0.78rem; }

.factory-trace figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 19px 24px;
  border-top: 1px solid var(--line-dark);
  background: rgba(92, 214, 181, 0.06);
}

.factory-trace figcaption span { color: var(--run); }
.factory-trace figcaption strong { font-size: 0.82rem; font-weight: 500; }

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, 1fr);
  min-height: 148px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

/* The label cell was 1.45fr of empty space next to four numbers; the star
   curve lives there so the record shows acceleration, not just totals. */
.stats-label {
  gap: 12px;
}

.star-chart {
  display: block;
  width: 100%;
  height: 46px;
  overflow: visible;
}

.star-chart .star-area { fill: rgba(92, 214, 181, 0.16); }
.star-chart .star-line {
  fill: none;
  stroke: var(--run);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* The endpoint is a positioned element, not an SVG <circle>: the chart
   stretches ~2.6x horizontally, which would render a circle as a flat
   ellipse (measured 12x5). Percentages keep it on the last data point. */
.star-plot {
  position: relative;
  display: block;
}

.star-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--run);
  box-shadow: 0 0 0 3px rgba(92, 214, 181, 0.18);
}

.star-caption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #9aada9;
  font-size: 0.78rem;
}

.star-caption b {
  color: #edf5f0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stats-label,
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 25px 30px;
  border-right: 1px solid var(--line-dark);
}

.stats-label { color: #829a96; }
.stat:last-child { border-right: 0; }

.stat strong {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat span { margin-top: 8px; color: #9aada9; font-size: 0.8rem; }
.stat small { color: #7d9992; font-family: var(--mono); font-size: 0.65rem; }

.thesis,
.proof,
.direction,
.closing {
  padding-top: clamp(100px, 10vw, 168px);
  padding-bottom: clamp(100px, 10vw, 168px);
}

.thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  gap: clamp(70px, 10vw, 160px);
  align-items: end;
}

.section-tag {
  margin-bottom: 26px;
  color: #59706d;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--signal);
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(3.2rem, 5.3vw, 6.3rem);
  line-height: 0.98;
}

.section-lede,
.section-heading > p,
.proof-heading > p,
.direction-head > p {
  max-width: 49rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.thesis-punch {
  margin: 42px 0 0;
  padding-left: 22px;
  border-left: 4px solid var(--signal);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
}

.shift-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.shift-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto 1.25fr;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.shift-list span {
  color: #455e5a;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.shift-list strong,
.shift-list b { font-size: 0.92rem; }
.shift-list strong { color: #455b58; font-weight: 500; }
.shift-list b { font-weight: 600; }
.shift-list em { color: var(--signal); font-style: normal; }

.system-section {
  padding: clamp(100px, 9vw, 150px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.proof-heading,
.direction-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: end;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 6px; }

.production-map {
  margin-top: 82px;
  border-top: 2px solid var(--ink);
}

.map-row {
  display: grid;
  grid-template-columns: 150px minmax(460px, 1.35fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: center;
  min-height: 144px;
  border-bottom: 1px solid var(--line);
}

.map-label { display: flex; align-items: baseline; gap: 14px; }
.map-label span { color: #4d625e; font-family: var(--mono); font-size: 0.7rem; }
.map-label strong { font-family: var(--display); font-size: 1.15rem; }

.map-track {
  display: flex;
  align-items: center;
  min-width: 0;
}

.map-track span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #8fa19d;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.map-track i {
  position: relative;
  min-width: 16px;
  height: 1px;
  flex: 1;
  background: #8fa19d;
}

.map-track i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid #8fa19d;
  border-right: 1px solid #8fa19d;
  transform: rotate(45deg);
}

.map-row-signal .map-track span { border-color: #a67200; }
.map-row-signal .map-track i { background: var(--signal); }
.map-row-signal .map-track i::after { border-color: var(--signal); }

.map-row > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.recovery-rail {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 18px 24px;
  background: var(--ink);
  color: #eaf1ed;
}

.recovery-rail span {
  color: var(--run);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.recovery-rail p { margin: 0; font-size: 0.83rem; }

.proof-heading { align-items: end; }
.proof-heading h2 { margin-bottom: 0; }

/* Issue -> PR -> release: the headline promises a tagged release, so the
   evidence strip has to show one. Three shots, two arrows. */
.proof-flow {
  display: grid;
  grid-template-columns: 1fr 84px 1fr 84px 1fr;
  align-items: center;
  margin-top: 80px;
}

.proof-shot {
  position: relative;
  display: block;
  padding-top: 38px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 9px 9px 0 #cad4d0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.proof-shot:hover {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 #c3cec9;
}

.proof-shot > span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 10px 14px;
  background: var(--ink);
  color: #edf5f0;
}

.proof-shot img { width: 100%; height: auto; }

.proof-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 1.7rem;
}

.proof-arrow span {
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.proof-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 80px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.proof-ledger li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px 16px;
  padding: 28px 32px 0 0;
  border-right: 1px solid var(--line);
}

.proof-ledger li + li { padding-left: 32px; }
.proof-ledger li:last-child { border-right: 0; }
.proof-ledger span { grid-row: 1 / span 2; color: #4b615d; font-family: var(--mono); font-size: 0.7rem; }
.proof-ledger strong { font-family: var(--display); font-size: 1.1rem; }
.proof-ledger p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.ownership {
  padding: 110px 0;
  background: #15353d;
  color: #eef5f1;
}

.ownership-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(600px, 1.28fr);
  gap: 90px;
  align-items: center;
}

.section-tag-dark { color: #9fb7b1; }
.ownership h2 { margin-bottom: 24px; font-size: clamp(3rem, 4.5vw, 5.4rem); }
.ownership p:not(.section-tag) { max-width: 37rem; color: #b8cac5; }

.ownership-map {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
}

.ownership-map > div {
  display: flex;
  flex-direction: column;
  min-height: 146px;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(221, 238, 232, 0.22);
}

.ownership-map > i { height: 1px; background: rgba(221, 238, 232, 0.35); }
.ownership-map span { color: #829f98; }
.ownership-map strong { margin: 9px 0 4px; font-family: var(--display); font-size: 1.35rem; }
.ownership-map small { color: #9eb3ae; font-size: 0.72rem; }
.ownership-map .ownership-core { border-color: var(--signal); background: rgba(255, 176, 0, 0.06); }
.ownership-map .ownership-core span { color: var(--signal); }

.run-orbi {
  padding: clamp(100px, 9vw, 150px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.run-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 76px;
}

.run-option {
  display: flex;
  flex-direction: column;
  min-height: 490px;
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.run-option-live { border-top: 5px solid var(--run); }
.run-option-cloud { border-top: 5px solid var(--signal); }
.option-state {
  margin-bottom: 30px;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.run-option h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.run-option > p:not(.option-state) { color: var(--ink-soft); }
.run-option ul {
  flex: 1;
  margin: 12px 0 34px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.run-option li + li { margin-top: 9px; }
.run-option .button { align-self: flex-start; }
.run-option .cloud-access {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.run-option .cloud-access span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.run-option .cloud-access a { color: var(--ink); text-underline-offset: 3px; }

.pricing-equation {
  display: grid;
  grid-template-columns: 180px minmax(280px, 0.8fr) 1fr;
  gap: 30px;
  align-items: center;
  margin: 24px 0 0;
  padding: 28px 32px;
  background: var(--ink);
  color: #eef5f1;
}
.pricing-equation span {
  color: var(--run);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.pricing-equation strong { font-family: var(--display); font-size: 1.2rem; }
.pricing-equation small { color: #a9bbb8; font-size: 0.76rem; }

.direction-head h2 { margin-bottom: 0; }

.future-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 90px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
  list-style: none;
}

.future-loop li {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.future-loop li::after {
  content: "→";
  position: absolute;
  top: 21px;
  right: -13px;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: var(--paper);
  color: var(--signal);
}

.future-loop li:nth-child(3)::after,
.future-loop li:last-child::after { content: none; }
.future-loop > li > span { color: #4b615d; }
.future-loop strong { display: block; margin: 52px 0 12px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.future-loop p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.direction-thesis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.35;
}

.direction-thesis p { margin-bottom: 0; }
.direction-thesis strong { color: #006c5b; }

/* Mid-page conversion point: the CTAs sat at 7%, 62% and 97%, leaving the
   whole evidence stretch without a way to act. This lands right after the
   real delivery, where the argument is strongest. */
.midway {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 74px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.midway p {
  flex: 1 1 22rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.midway .midway-sub {
  flex-basis: 100%;
  margin: -4px 0 0;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}

/* The install commands sit on their own row inside .midway. A <pre> in a
 * flex row keeps its intrinsic width unless min-width is cleared, which
 * would drag the page sideways on a phone; the code scrolls in its own box. */
.install-block {
  position: relative;
  flex-basis: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--night);
}

.install-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: #c3d5d0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.install-copy:hover {
  border-color: rgba(237, 245, 240, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #edf5f0;
}

.install-copy.is-copied {
  border-color: var(--run);
  color: var(--run);
}

.install-block pre {
  margin: 0;
  /* Right padding keeps the first command clear of the copy button. */
  padding: 18px 88px 18px 20px;
  overflow-x: auto;
  color: #dbe9e4;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
}

.install-block .install-needs {
  flex: none;
  margin: 0;
  padding: 0 20px 16px;
  color: #8ba39d;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
}

.install-block .install-needs code {
  color: #b9cec8;
  font-family: var(--mono);
  font-size: 0.95em;
}

.faq {
  padding-top: clamp(100px, 10vw, 168px);
  padding-bottom: clamp(100px, 10vw, 168px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.faq h2 { max-width: 24ch; }

.faq-list {
  margin-top: 62px;
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  gap: 18px;
  align-items: baseline;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

.faq-item summary span {
  color: #4d625e;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.faq-item summary::after {
  content: "+";
  justify-self: end;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: #0b5f50; }

.faq-answer {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 0 0 28px;
}

.faq-answer p {
  grid-column: 2;
  max-width: 58rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-answer p + p { margin-top: 12px; }
.faq-answer code {
  padding: 1px 6px;
  background: #dfe7e4;
  font-family: var(--mono);
  font-size: 0.85em;
}

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

.closing h2 { max-width: 12ch; }
.closing > p:not(.section-tag) { max-width: 48rem; margin-bottom: 34px; color: var(--ink-soft); font-size: 1.1rem; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #1f4142; }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: rgba(16, 41, 44, 0.06); }
.text-link { margin-left: 12px; font-size: 0.88rem; font-weight: 600; text-underline-offset: 4px; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.wordmark-footer { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer nav { gap: 20px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* The hero keeps two columns far longer than the prose sections do: it needs
   ~913px (480px trace + 81px gap + 271px headline + 80px shell padding), so
   collapsing it at 1160px stranded every viewport between 980 and 1160 —
   1152, 1159 and a half-screen 1280 all fell to a single stacked column. */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-copy { max-width: 64rem; }
  .factory-trace { max-width: 760px; margin-left: auto; }
}

@media (max-width: 1160px) {
  .shell,
  .site-header { width: min(1400px, calc(100% - 48px)); }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats-label { grid-column: 1 / -1; min-height: 64px; border-bottom: 1px solid var(--line-dark); }

  .thesis,
  .section-heading,
  .proof-heading,
  .direction-head,
  .ownership-grid { grid-template-columns: 1fr; }

  /* Three shots side by side get too narrow below ~1160px; stack the
     release under the Issue -> PR pair instead of shrinking all three. */
  .proof-flow { grid-template-columns: 1fr 70px 1fr; gap: 22px 0; }
  .proof-flow > .proof-arrow:last-of-type { grid-column: 1 / -1; transform: rotate(90deg); }
  .proof-flow > .proof-arrow:last-of-type span { transform: rotate(-90deg); }
  .proof-flow > .proof-shot:last-of-type { grid-column: 1 / -1; max-width: 640px; margin-inline: auto; }

  .shift-list { max-width: 760px; }
  .map-row { grid-template-columns: 120px minmax(0, 1fr); padding: 28px 0; }
  .map-row > p { grid-column: 2; }
  .map-track-long { flex-wrap: wrap; gap: 6px 0; }
  .map-track-long i { flex: 0 0 24px; }
  .ownership-grid { gap: 60px; }
  .ownership-map { max-width: 900px; }
  .pricing-equation { grid-template-columns: 150px 1fr; }
  .pricing-equation small { grid-column: 2; }
}

@media (max-width: 900px) {
  .menu-toggle { display: grid; }

  .site-header nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    display: none;
    width: 100vw;
    padding: 10px 16px;
    border: 1px solid var(--line-dark);
    border-top: 0;
    background: #07191f;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transform: translateX(-50%);
  }

  .site-header nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header nav > a {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .site-header nav > a.nav-apply {
    justify-content: center;
    margin-top: 8px;
    border-top: 0;
  }

  .site-header nav > a + a { border-top: 1px solid var(--line-dark); }

  .language {
    width: 100%;
    margin-top: 8px;
  }

  .language > * { flex: 1; }
}

@media (max-width: 760px) {
  /* A <pre> scrolls horizontally, so right padding scrolls away with the
   * content and the floating button ends up on top of the commands. On narrow
   * screens give it its own full-width bar above the code instead. */
  .install-copy {
    position: static;
    display: block;
    width: 100%;
    min-height: 44px;
    border-width: 0 0 1px;
    text-align: center;
  }
  .install-block pre { padding: 16px; font-size: 0.72rem; line-height: 1.75; }
  .install-block .install-needs { padding: 0 16px 14px; }

  body { font-size: 16px; }
  .shell,
  .site-header { width: min(100% - 32px, 1400px); }
  .site-header { min-height: 72px; }
  .wordmark { font-size: 1rem; }

  .hero { gap: 56px; padding: 70px 0 58px; }
  h1 { font-size: clamp(3.5rem, 15.5vw, 5rem); line-height: 0.91; }
  html[lang="zh-CN"] h1 { font-size: clamp(2.9rem, 12.2vw, 3.2rem); }
  .hero-lede { font-size: 1rem; }
  .button { width: 100%; }
  .hero-proof-link { width: 100%; margin: 8px 0 0; text-align: center; }
  .trust-line { gap: 13px; }

  .factory-trace { margin-left: 0; box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.18); }
  .trace-head { padding: 13px 14px; }
  .trace-head span:last-child { display: none; }
  .trace-body { grid-template-columns: 20px 1fr; padding: 14px 12px 8px; }
  .trace-node { grid-template-columns: 54px 1fr; min-height: 88px; padding-left: 13px; }
  .trace-node::before { left: -19px; }
  .trace-node strong { font-size: 1rem; }
  .factory-trace figcaption { grid-template-columns: 1fr; gap: 5px; padding: 15px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats-label { grid-column: 1 / -1; }
  .stat { min-height: 120px; padding: 20px 16px; border-bottom: 1px solid var(--line-dark); }
  .stat:nth-child(3) { border-right: 0; }

  .thesis,
  .proof,
  .direction,
  .closing { padding-top: 88px; padding-bottom: 88px; }
  h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); line-height: 1; }
  .thesis { gap: 60px; }
  .shift-list li { grid-template-columns: 28px 1fr auto 1.2fr; gap: 8px; padding: 19px 0; }
  .shift-list strong,
  .shift-list b { font-size: 0.76rem; }

  .system-section { padding: 88px 0; }
  .production-map { margin-top: 55px; }
  .map-row { grid-template-columns: 1fr; gap: 16px; }
  .map-row > p { grid-column: 1; }
  .map-track { overflow-x: auto; padding-bottom: 6px; }
  .map-track i { min-width: 20px; }
  .map-track-long { flex-wrap: nowrap; }
  .recovery-rail { grid-template-columns: 1fr; gap: 7px; padding: 18px; }

  .proof-flow { grid-template-columns: 1fr; gap: 24px; margin-top: 55px; }
  .proof-arrow { flex-direction: row; justify-content: center; gap: 8px; transform: rotate(90deg); }
  .proof-arrow span { transform: rotate(-90deg); }
  .proof-ledger { grid-template-columns: 1fr; margin-top: 60px; }
  .proof-ledger li,
  .proof-ledger li + li { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .ownership { padding: 82px 0; }
  .ownership-map { grid-template-columns: 1fr; gap: 0; }
  .ownership-map > i { width: 1px; height: 28px; margin: 0 auto; }

  .run-orbi { padding: 88px 0; }
  .run-options { grid-template-columns: 1fr; margin-top: 55px; }
  .run-option { min-height: auto; padding: 28px 22px; }
  .run-option .button { align-self: stretch; }
  .pricing-equation { grid-template-columns: 1fr; gap: 10px; padding: 24px 20px; }
  .pricing-equation small { grid-column: 1; }

  .future-loop { grid-template-columns: 1fr; margin-top: 55px; }
  .future-loop li { min-height: 220px; }
  .future-loop li::after,
  .future-loop li:nth-child(3)::after { top: auto; right: 20px; bottom: -13px; content: "↓"; }
  .future-loop li:last-child::after { content: none; }
  .future-loop strong { margin-top: 38px; }
  .direction-thesis { grid-template-columns: 1fr; gap: 28px; font-size: 1.3rem; }

  .faq { padding-top: 88px; padding-bottom: 88px; }
  .faq-list { margin-top: 46px; }
  .faq-item summary { grid-template-columns: 30px 1fr 22px; gap: 12px; padding: 20px 0; }
  .faq-answer { grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 22px; }

  .closing .cta-row { align-items: stretch; }
  .text-link { margin: 12px 0 0; text-align: center; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { grid-column: 1; grid-row: auto; }
  .site-footer nav {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 430px) {
  .trace-index { font-size: 0.58rem; }
  .stat strong { font-size: 2.5rem; }
}

@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;
  }
  .button:hover,
  .proof-shot:hover,
  .trace-node.active { transform: none; }
}

/* ==========================================================================
   Comparison pages (/compare/…): deep dives and the section index
   ========================================================================== */

/* The landing hero is a two-column grid built around the factory trace; a
   comparison page leads with copy only, so it gets its own slimmer hero. */
.compare-hero {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  padding: 84px 0 68px;
}

.compare-hero .hero-lede { max-width: 46rem; }

.compare-section {
  padding-top: clamp(84px, 9vw, 140px);
  padding-bottom: clamp(84px, 9vw, 140px);
}

.compare-section-tint {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.compare-section h2 { max-width: 26ch; }

/* Inline source citations: one line under a fact group or a timeline event,
   mono and quiet, so the claim and its provenance stay visually attached. */
.src-note {
  margin: 14px 0 0;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.src-note a { color: inherit; }

/* The differences table scrolls inside its own box on narrow screens, per the
   .install-block precedent: a table in a shell must never drag the page. */
.compare-table-wrap {
  min-width: 0;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  padding-top: 20px;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.compare-table tbody th {
  white-space: nowrap;
  font-weight: 600;
}

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

.compare-table thead th:nth-child(2) { color: var(--ink); }

/* Timeline: one row per dated event, mono date rail on the left. Deep dives
   without verified dates (Devin's billing eras) use .event-era spans in the
   same rail — never an invented <time datetime>. */
.event-list {
  margin: 48px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.event-list time,
.event-list .event-era {
  padding-top: 5px;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.event-list strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.event-list p { margin: 8px 0 0; color: var(--ink-soft); }
.event-list .src-note { grid-column: 2; }

/* Honest-choice cards reuse the run-option pair; these cards answer a
   shorter question, so the 490px minimum would stretch them. */
.compare-choice .run-options { margin-top: 48px; }
.compare-choice .run-option { min-height: 0; padding: clamp(26px, 3vw, 40px); }

/* Consolidated sources at the end of a deep dive. */
.source-list {
  margin: 44px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 4px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.source-list strong { font-weight: 600; }

.source-list a { color: var(--ink); text-underline-offset: 3px; }

.source-list .source-date {
  padding-top: 3px;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: right;
}

.source-list small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Section index (/compare/): one row per deep dive, live or planned. */
.dive-list {
  margin: 48px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.dive-list li { border-bottom: 1px solid var(--line); }

.dive-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 28px;
  align-items: baseline;
  padding: 26px 8px;
  color: inherit;
  text-decoration: none;
}

.dive-list a:hover strong { color: #0b5f50; }

.dive-list strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dive-list .dive-status {
  padding-top: 6px;
  color: #4b615d;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dive-list .dive-status.is-live { color: #0b5f50; }

.dive-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .compare-hero { padding: 64px 0 48px; }

  .event-list li { grid-template-columns: 1fr; gap: 4px; }
  .event-list .src-note { grid-column: 1; }

  .compare-choice .run-options { margin-top: 36px; }

  .source-list li { grid-template-columns: 1fr; gap: 2px; }
  .source-list .source-date { padding-top: 0; text-align: left; }

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