:root {
  --carbon: #03070b;
  --graphite: #071018;
  --line-dark: rgba(136, 205, 238, 0.16);
  --paper: #071018;
  --white: #effaff;
  --ink: #effaff;
  --muted-dark: #9fb6c6;
  --muted-light: #9fb6c6;
  --yellow: #51e6ff;
  --cyan: #c7f7ff;
  --green: #9aefff;
  --red: #51e6ff;
  --font-display: "Space Grotesk", "Inter Tight", -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shell: 1472px;
  --gutter: 48px;
  --header-height: 76px;
  color-scheme: dark;
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--carbon);
  color: var(--white);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
canvas {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

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

.site-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(8, 10, 11, 0.96);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
}

.brand-mark img {
  width: 32px;
  height: 25px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 650;
}

.brand-name b {
  color: var(--muted-dark);
  font-weight: 450;
}

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

.desktop-nav a,
.site-footer nav a {
  color: var(--muted-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--white);
}

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

.header-cta {
  display: inline-grid;
  min-height: 40px;
  padding: 0 18px;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  color: var(--yellow);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

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

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(820px, 57vw);
  min-height: calc(100svh - 164px);
  max-height: 900px;
  padding: 64px var(--gutter) 76px;
}

.kicker,
.section-index {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
  color: var(--yellow);
}

.kicker b {
  color: var(--muted-dark);
  font-weight: 450;
}

.hero h1,
.section-intro h2,
.build-copy > h2,
.work-heading h2,
.delivery-heading h2,
.closing-cta h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 620;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 790px;
  font-size: 78px;
  line-height: 1;
}

.hero h1 em,
.section-intro h2 em,
.work-heading h2 em,
.delivery-heading h2 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #bbc1bd;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions,
.closing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 190px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 620;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--yellow);
  color: var(--ink);
}

.button-secondary {
  border-color: #4b5355;
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--white);
}

.button-dark {
  background: var(--carbon);
  color: var(--white);
}

.proof-rail {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 3fr;
  min-height: 88px;
  border-bottom: 1px solid var(--line-dark);
  background: #0d1011;
}

.proof-rail > p {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 var(--gutter);
  border-right: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}

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

.proof-rail li {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 30px;
  border-right: 1px solid var(--line-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 550;
}

.proof-rail li span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 9px;
}

.proof-rail li:nth-child(2) span { color: var(--cyan); }
.proof-rail li:nth-child(3) span { color: var(--green); }

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.capabilities {
  padding: 118px 0 128px;
}

.section-intro {
  display: grid;
  grid-template-columns: 210px minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 50px;
  align-items: start;
  padding-bottom: 76px;
}

.section-index {
  color: var(--muted-light);
}

.section-intro h2,
.work-heading h2,
.delivery-heading h2 {
  font-size: 60px;
  line-height: 1.04;
}

.section-intro h2 em,
.work-heading h2 em,
.delivery-heading h2 em {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 5px;
  text-underline-offset: 8px;
}

.section-intro > p:last-child,
.work-heading > p,
.delivery-heading > p {
  margin: 6px 0 0;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.65;
}

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

.capability-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(250px, 0.85fr) minmax(320px, 1.15fr) 56px;
  gap: 28px;
  align-items: center;
  min-height: 152px;
  border-bottom: 1px solid #b9bfba;
}

.capability-number,
.work-code {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 550;
}

.capability-row h3,
.work-row h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 31px;
  font-weight: 620;
  line-height: 1.15;
}

.capability-row p,
.work-row > p {
  margin: 0;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.55;
}

.capability-signal {
  justify-self: end;
  width: 16px;
  height: 16px;
}

.signal-yellow { background: var(--yellow); }
.signal-cyan { background: var(--cyan); }
.signal-green { background: var(--green); }

.build-story {
  position: relative;
  height: 300svh;
  background: var(--carbon);
}

.build-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(410px, 0.78fr) minmax(600px, 1.22fr);
  gap: 56px;
  align-items: center;
  width: min(100%, var(--shell));
  height: 100svh;
  margin: 0 auto;
  padding: 70px var(--gutter) 40px;
  overflow: hidden;
}

.build-copy {
  position: relative;
  align-self: stretch;
  padding-top: 28px;
}

.build-copy .section-index {
  color: var(--yellow);
}

.build-copy > h2 {
  margin-top: 22px;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
}

.step-copy {
  position: absolute;
  right: 0;
  bottom: 92px;
  left: 0;
  max-width: 500px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.step-copy.is-active {
  opacity: 1;
  transform: translateY(0);
}

.step-copy > span {
  color: var(--cyan);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.build-story[data-step="0"] .step-copy > span { color: var(--yellow); }
.build-story[data-step="2"] .step-copy > span { color: var(--green); }

.step-copy h3 {
  margin: 15px 0 12px;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
}

.step-copy p {
  max-width: 470px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.55;
}

.step-meter {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.step-meter span {
  height: 3px;
  background: var(--line-dark);
  transition: background 280ms ease;
}

.step-meter span.is-active:nth-child(1) { background: var(--yellow); }
.step-meter span.is-active:nth-child(2) { background: var(--cyan); }
.step-meter span.is-active:nth-child(3) { background: var(--green); }

.system-surface {
  position: relative;
  height: min(72svh, 720px);
  min-height: 560px;
  border: 1px solid #3d4548;
  background: #0d1112;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), border-color 320ms ease;
}

.build-story[data-step="1"] .system-surface {
  border-color: #2aa8bb;
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1.01);
}

.build-story[data-step="2"] .system-surface {
  border-color: #2ba66f;
  transform: perspective(1400px) rotateY(5deg) rotateX(-1deg) scale(0.985);
}

.system-surface::before,
.system-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  border: 1px solid #252b2d;
  transition: transform 600ms ease;
}

.system-surface::after {
  inset: 36px -36px -36px 36px;
}

.build-story[data-step="2"] .system-surface::before {
  transform: translate(-10px, 10px);
}

.build-story[data-step="2"] .system-surface::after {
  transform: translate(-20px, 20px);
}

.surface-topline,
.surface-terminal {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid #252b2d;
  color: var(--muted-dark);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 550;
}

.surface-topline {
  justify-content: space-between;
}

.surface-topline b {
  color: var(--yellow);
}

.build-story[data-step="1"] .surface-topline b { color: var(--cyan); }
.build-story[data-step="2"] .surface-topline b { color: var(--green); }

.surface-grid {
  position: relative;
  height: calc(100% - 116px);
  overflow: hidden;
}

.surface-grid::before,
.surface-grid::after {
  content: "";
  position: absolute;
  background: #1e2426;
}

.surface-grid::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.surface-grid::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.system-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 168px;
  height: 96px;
  padding: 18px;
  border: 1px solid #3b4447;
  background: #121718;
  box-shadow: 10px 12px 0 var(--carbon);
  transition: transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1), border-color 320ms ease, opacity 320ms ease;
}

.system-node small {
  margin-bottom: 13px;
  color: #697174;
  font-family: var(--font-mono);
  font-size: 9px;
}

.system-node strong {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.system-node i {
  position: absolute;
  top: calc(50% - 5px);
  right: -6px;
  width: 11px;
  height: 11px;
  background: var(--line-dark);
  transition: background 320ms ease;
}

.node-input { top: 16%; left: 7%; }
.node-data { top: 12%; right: 9%; }
.node-rules { top: 44%; left: 40%; }
.node-ai { right: 7%; bottom: 12%; }
.node-output { bottom: 10%; left: 8%; }

.build-story[data-step="0"] .node-input,
.build-story[data-step="0"] .node-data {
  border-color: #867c18;
}

.build-story[data-step="0"] .node-input i,
.build-story[data-step="0"] .node-data i {
  background: var(--yellow);
}

.build-story[data-step="1"] .node-rules,
.build-story[data-step="1"] .node-ai {
  border-color: #278b99;
  transform: translateY(-8px);
}

.build-story[data-step="1"] .node-rules i,
.build-story[data-step="1"] .node-ai i {
  background: var(--cyan);
}

.build-story[data-step="2"] .node-output {
  border-color: #2a9868;
  transform: translateX(16px) translateY(-8px);
}

.build-story[data-step="2"] .node-output i {
  background: var(--green);
}

.system-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: #30383a;
  transform-origin: left center;
  transition: background 320ms ease, width 620ms ease;
}

.line-a { top: 27%; left: 28%; width: 25%; transform: rotate(-5deg); }
.line-b { top: 30%; left: 62%; width: 16%; transform: rotate(19deg); }
.line-c { top: 61%; left: 55%; width: 22%; transform: rotate(17deg); }
.line-d { top: 66%; left: 27%; width: 19%; transform: rotate(-23deg); }

.build-story[data-step="0"] .line-a,
.build-story[data-step="0"] .line-b { background: var(--yellow); }
.build-story[data-step="1"] .system-line { background: var(--cyan); }
.build-story[data-step="2"] .system-line { background: var(--green); }

.surface-terminal {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  gap: 12px;
  border-top: 1px solid #252b2d;
  border-bottom: 0;
  color: #858d89;
}

.surface-terminal > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.surface-terminal i {
  width: 7px;
  height: 14px;
  background: var(--yellow);
  animation: terminal-cursor 1s steps(2, end) infinite;
}

.build-story[data-step="1"] .surface-terminal > span,
.build-story[data-step="1"] .surface-terminal i { background: var(--cyan); }
.build-story[data-step="2"] .surface-terminal > span,
.build-story[data-step="2"] .surface-terminal i { background: var(--green); }

.story-trigger {
  height: 100svh;
}

@keyframes terminal-cursor {
  50% { opacity: 0; }
}

.work {
  padding: 128px 0;
}

.work-heading {
  display: grid;
  grid-template-columns: 1.35fr minmax(300px, 0.65fr);
  gap: 100px;
  align-items: end;
  padding-bottom: 74px;
}

.work-heading .section-index {
  margin-bottom: 24px;
}

.work-ledger {
  border-top: 2px solid var(--ink);
}

.work-row {
  display: grid;
  grid-template-columns: 130px minmax(250px, 0.85fr) minmax(330px, 1.15fr) minmax(180px, 0.6fr);
  gap: 28px;
  align-items: center;
  min-height: 190px;
  border-bottom: 1px solid #b9bfba;
}

.work-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-row li {
  padding: 8px 9px;
  border: 1px solid #aab0ac;
  border-radius: 5px;
  color: #454c47;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 550;
}

.delivery {
  padding: 128px 0 138px;
  border-top: 1px solid var(--line-dark);
  background: #101415;
}

.delivery-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 44px;
  align-items: start;
}

.delivery-heading h2 em {
  color: var(--white);
}

.delivery-heading > p {
  color: var(--muted-dark);
}

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

.delivery-steps li {
  min-height: 190px;
  padding: 26px;
  border-right: 1px solid var(--line-dark);
}

.delivery-steps li:last-child {
  border-right: 0;
}

.delivery-steps span {
  display: block;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.delivery-steps li:nth-child(2) span { color: var(--cyan); }
.delivery-steps li:nth-child(3) span { color: var(--green); }
.delivery-steps li:nth-child(4) span { color: var(--red); }

.delivery-steps b {
  display: block;
  margin-top: 54px;
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 600;
}

.delivery-steps p {
  margin: 6px 0 0;
  color: var(--muted-dark);
  font-size: 14px;
}

.closing-cta {
  padding: 92px 0 96px;
  background: var(--yellow);
  color: var(--ink);
}

.closing-cta .section-index {
  color: #555008;
}

.closing-cta h2 {
  max-width: 1120px;
  margin-top: 30px;
  font-size: 68px;
  line-height: 1.02;
}

.closing-actions {
  margin-top: 50px;
}

.text-link {
  padding: 16px 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: 60px;
  align-items: start;
  padding: 54px var(--gutter) 46px;
  border-top: 1px solid var(--line-dark);
  background: var(--carbon);
}

.footer-brand strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer .copyright {
  white-space: nowrap;
}

/* Pre-redesign CK visual identity */
.site-header {
  background: rgba(3, 9, 14, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.brand-name,
.footer-brand strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-name b {
  color: var(--white);
  font-weight: 700;
}

.desktop-nav a,
.site-footer nav a,
.header-cta,
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-cta {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--carbon);
  box-shadow: 0 0 22px rgba(81, 230, 255, 0.22);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--cyan);
  color: var(--carbon);
}

.hero {
  min-height: 620px;
  max-height: none;
  background: var(--carbon);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-copy {
  justify-content: flex-start;
  width: min(760px, 56vw);
  min-height: 620px;
  max-height: none;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero .kicker {
  margin-bottom: 22px;
}

.hero-sequence {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 3.2vw;
  width: min(34vw, 500px);
  transform: translateY(-50%);
  font-family: var(--font-mono);
}

.sequence-heading {
  display: grid;
  gap: 7px;
  padding: 17px 18px 18px;
  border: 1px solid rgba(81, 230, 255, 0.34);
  border-bottom: 0;
  border-radius: 6px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: rgba(3, 10, 15, 0.94);
}

.sequence-heading span {
  color: var(--yellow);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.sequence-heading strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.hero-sequence ol {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(81, 230, 255, 0.34);
  border-radius: 0 0 6px 6px;
  background: rgba(3, 10, 15, 0.9);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.36);
  list-style: none;
}

.hero-sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 11px 16px;
  border-top: 1px solid var(--line-dark);
  transition: background 180ms ease;
}

.hero-sequence li:first-child {
  border-top: 0;
}

.hero-sequence li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  background: transparent;
  content: "";
  transition: background 180ms ease, box-shadow 180ms ease;
}

.hero-sequence li.is-active {
  background: rgba(81, 230, 255, 0.07);
}

.hero-sequence li.is-active::before {
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(81, 230, 255, 0.72);
}

.sequence-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(81, 230, 255, 0.22);
  border-radius: 4px;
  color: #6f8798;
  font-size: 9px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.is-active .sequence-number {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--carbon);
  box-shadow: 0 0 16px rgba(81, 230, 255, 0.32);
}

.sequence-copy {
  min-width: 0;
}

.sequence-copy strong,
.sequence-copy small {
  display: block;
}

.sequence-copy strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.sequence-copy small {
  margin-top: 4px;
  color: var(--muted-dark);
  font-size: 9px;
  line-height: 1.25;
}

.sequence-state {
  color: #6f8798;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.is-active .sequence-state {
  color: var(--yellow);
}

.hero-sequence::after {
  position: absolute;
  right: -7px;
  bottom: 26px;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(81, 230, 255, 0.72);
  content: "";
}

.kicker,
.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.build-copy > h2,
.work-heading h2,
.delivery-heading h2,
.closing-cta h2,
.capability-row h3,
.work-row h3,
.step-copy h3,
.delivery-steps b {
  font-family: var(--font-display);
}

.hero h1 {
  max-width: 830px;
  font-size: 78px;
  font-weight: 700;
  line-height: 0.92;
}

.hero h1 em,
.section-intro h2 em,
.work-heading h2 em,
.delivery-heading h2 em {
  color: var(--yellow);
}

.hero-lede {
  margin-top: 20px;
  color: var(--muted-dark);
  font-size: 20px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.button-primary {
  background: var(--yellow);
  color: var(--carbon);
  box-shadow: 0 16px 44px rgba(81, 230, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan);
}

.button-secondary {
  border-color: rgba(81, 230, 255, 0.3);
  background: rgba(7, 16, 24, 0.7);
}

.proof-rail {
  background: rgba(3, 10, 15, 0.96);
}

.proof-rail > p {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.proof-rail li {
  font-family: var(--font-display);
  font-weight: 600;
}

.section-light {
  background: var(--graphite);
  color: var(--white);
}

.section-intro h2,
.work-heading h2,
.delivery-heading h2 {
  font-weight: 700;
}

.section-intro h2 em,
.work-heading h2 em,
.delivery-heading h2 em {
  text-decoration-color: var(--yellow);
}

.section-intro > p:last-child,
.work-heading > p,
.delivery-heading > p,
.capability-row p,
.work-row > p {
  color: var(--muted-dark);
}

.capability-list,
.work-ledger {
  border-top-color: rgba(81, 230, 255, 0.5);
}

.capability-row,
.work-row {
  border-bottom-color: var(--line-dark);
}

.capability-row h3,
.work-row h3,
.step-copy h3,
.delivery-steps b {
  font-weight: 600;
}

.system-surface {
  border-color: rgba(81, 230, 255, 0.24);
  background: #06121b;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34), 0 0 58px rgba(81, 230, 255, 0.08);
  transform: none;
}

.build-story[data-step="1"] .system-surface,
.build-story[data-step="2"] .system-surface {
  transform: none;
}

.system-surface::before,
.system-surface::after {
  display: none;
}

.system-node,
.build-story[data-step="1"] .node-rules,
.build-story[data-step="1"] .node-ai,
.build-story[data-step="2"] .node-output {
  transform: none;
}

.step-copy {
  visibility: hidden;
  transform: none;
  transition: opacity 180ms ease;
}

.step-copy.is-active {
  visibility: visible;
}

.build-story[data-step="0"] .node-input,
.build-story[data-step="0"] .node-data,
.build-story[data-step="1"] .node-rules,
.build-story[data-step="1"] .node-ai {
  border-color: rgba(81, 230, 255, 0.74);
}

.build-story[data-step="2"] .node-output {
  border-color: rgba(154, 239, 255, 0.78);
}

.system-node,
.surface-topline,
.surface-terminal {
  border-color: var(--line-dark);
}

.system-node {
  background: rgba(3, 10, 15, 0.9);
}

.surface-grid::before,
.surface-grid::after {
  background: var(--line-dark);
}

.surface-terminal i {
  display: none;
}

.work-row li {
  border-color: rgba(81, 230, 255, 0.24);
  color: var(--muted-dark);
}

.delivery {
  background: #050b10;
}

.delivery-steps,
.delivery-steps li {
  border-color: var(--line-dark);
}

.closing-cta {
  background: var(--yellow);
  color: var(--carbon);
}

.closing-cta .section-index {
  color: #0b3c47;
}

.closing-cta h2 {
  color: var(--carbon);
}

.text-link {
  border-color: var(--carbon);
  color: var(--carbon);
}

.site-footer {
  background: var(--carbon);
}

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

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

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

@media (max-width: 1180px) {
  :root {
    --gutter: 32px;
  }

  .site-header {
    grid-template-columns: minmax(240px, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--carbon);
    transition: max-height 240ms ease;
  }

  .mobile-menu.is-open {
    max-height: 110px;
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-menu a {
    display: grid;
    min-height: 72px;
    padding: 10px;
    place-items: center;
    border-right: 1px solid var(--line-dark);
    color: var(--muted-dark);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 550;
    text-align: center;
  }

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

  .hero-copy {
    width: min(640px, 55vw);
  }

  .hero-sequence {
    right: 2.5vw;
    width: min(39vw, 460px);
  }

  .hero-sequence li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 62px;
    padding: 9px 13px;
  }

  .sequence-number {
    width: 29px;
    height: 29px;
  }

  .sequence-copy strong {
    font-size: 14px;
  }

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

  .section-intro > p:last-child {
    grid-column: 2;
    max-width: 620px;
  }

  .capability-row {
    grid-template-columns: 80px minmax(220px, 0.75fr) minmax(280px, 1.25fr) 30px;
  }

  .build-sticky {
    grid-template-columns: minmax(340px, 0.75fr) minmax(500px, 1.25fr);
    gap: 34px;
  }

  .system-node {
    width: 146px;
  }

  .work-row {
    grid-template-columns: 90px minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  }

  .work-row ul {
    grid-column: 2 / 4;
    justify-content: flex-start;
    padding-bottom: 20px;
  }

  .delivery-heading {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .delivery-heading > p {
    grid-column: 2;
  }

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

@media (max-height: 820px) and (min-width: 861px) {
  .hero {
    min-height: 520px;
  }

  .hero-copy {
    min-height: 520px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .kicker {
    margin-bottom: 18px;
  }

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

  .hero-lede {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 50px;
  }

  .hero-sequence {
    top: 49%;
  }

  .sequence-heading {
    gap: 5px;
    padding: 11px 14px 12px;
  }

  .hero-sequence li {
    min-height: 53px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .sequence-copy small {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 22px;
    --header-height: 68px;
  }

  .brand-name b {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu {
    grid-template-columns: 1fr;
    padding: 0 var(--gutter);
  }

  .mobile-menu.is-open {
    max-height: calc(100svh - var(--header-height));
  }

  .mobile-menu a {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero {
    min-height: 0;
    max-height: none;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 28px var(--gutter) 44px;
  }

  .kicker {
    margin-bottom: 22px;
  }

  .hero h1 {
    max-width: 610px;
    font-size: 50px;
  }

  .hero-lede {
    max-width: 590px;
    margin-top: 24px;
    font-size: 18px;
  }

  .hero-sequence {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 0 var(--gutter) 20px;
    transform: none;
  }

  .sequence-heading {
    padding: 12px 14px 13px;
  }

  .sequence-heading strong {
    font-size: 14px;
  }

  .hero-sequence ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.3);
  }

  .hero-sequence li {
    display: flex;
    min-height: 108px;
    padding: 12px 6px;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    border-top: 0;
    border-left: 1px solid var(--line-dark);
    text-align: center;
  }

  .hero-sequence li:first-child {
    border-left: 0;
  }

  .hero-sequence li::before {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: auto;
    height: 3px;
  }

  .sequence-number {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  .sequence-copy strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .sequence-copy small,
  .sequence-state,
  .hero-sequence::after {
    display: none;
  }

  .proof-rail {
    grid-template-columns: 1fr;
  }

  .proof-rail > p {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .proof-rail ul {
    grid-template-columns: 1fr;
  }

  .proof-rail li {
    min-height: 58px;
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .capabilities,
  .work,
  .delivery {
    padding-top: 86px;
    padding-bottom: 92px;
  }

  .section-intro,
  .work-heading,
  .delivery-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-intro > p:last-child,
  .delivery-heading > p {
    grid-column: auto;
  }

  .section-intro h2,
  .work-heading h2,
  .delivery-heading h2 {
    font-size: 46px;
  }

  .section-intro {
    padding-bottom: 52px;
  }

  .capability-row {
    grid-template-columns: 54px 1fr 24px;
    gap: 18px;
    min-height: 0;
    padding: 28px 0;
  }

  .capability-row p {
    grid-column: 2 / 4;
  }

  .capability-signal {
    grid-column: 3;
    grid-row: 1;
  }

  .build-story {
    height: auto;
    padding: 86px var(--gutter) 92px;
    overflow-x: clip;
  }

  .build-sticky {
    position: relative;
    top: auto;
    display: flex;
    height: auto;
    padding: 0;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
  }

  .build-copy {
    display: grid;
    gap: 30px;
    padding-top: 0;
  }

  .build-copy > h2 {
    font-size: 44px;
  }

  .step-copy {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    padding: 26px 0;
    border-top: 1px solid var(--line-dark);
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .step-copy h3 {
    font-size: 32px;
  }

  .step-meter,
  .story-trigger {
    display: none;
  }

  .system-surface {
    order: -1;
    height: 520px;
    min-height: 0;
    margin-bottom: 42px;
    transform: none;
  }

  .system-surface::before,
  .system-surface::after {
    display: none;
  }

  .build-story[data-step] .system-surface {
    transform: none;
  }

  .system-node {
    width: 130px;
    height: 84px;
    padding: 12px;
  }

  .node-input { top: 11%; left: 5%; }
  .node-data { top: 10%; right: 5%; }
  .node-rules { top: 42%; left: 34%; }
  .node-ai { right: 5%; bottom: 9%; }
  .node-output { bottom: 8%; left: 5%; }

  .work-heading {
    align-items: start;
    gap: 32px;
  }

  .work-row {
    grid-template-columns: 80px 1fr;
    gap: 18px;
    padding: 30px 0;
  }

  .work-row > p,
  .work-row ul {
    grid-column: 2;
  }

  .delivery-steps {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 58px;
  }

  .delivery-steps li:nth-child(2) {
    border-right: 0;
  }

  .delivery-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .closing-cta {
    padding: 76px 0 80px;
  }

  .closing-cta h2 {
    font-size: 48px;
  }

  .closing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .hero-copy {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  .kicker b {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .hero-sequence li {
    min-height: 102px;
  }

  .sequence-copy strong {
    font-size: 10px;
  }

  .section-intro h2,
  .work-heading h2,
  .delivery-heading h2,
  .build-copy > h2,
  .closing-cta h2 {
    font-size: 38px;
  }

  .capability-row {
    grid-template-columns: 40px 1fr 18px;
  }

  .capability-row h3,
  .work-row h3 {
    font-size: 26px;
  }

  .system-surface {
    height: 430px;
  }

  .surface-topline {
    padding: 0 14px;
  }

  .system-node {
    width: 104px;
    height: 72px;
    padding: 9px;
    box-shadow: 6px 7px 0 var(--carbon);
  }

  .system-node small {
    margin-bottom: 7px;
    font-size: 7px;
  }

  .system-node strong {
    font-size: 13px;
  }

  .surface-terminal {
    padding: 0 12px;
    font-size: 8px;
  }

  .work-row {
    grid-template-columns: 1fr;
  }

  .work-row > p,
  .work-row ul {
    grid-column: auto;
  }

  .delivery-steps {
    grid-template-columns: 1fr;
  }

  .delivery-steps li,
  .delivery-steps li:nth-child(2) {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .delivery-steps b {
    margin-top: 34px;
  }

  .text-link {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@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;
  }

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

}
