:root {
  --bg: #090b11;
  --bg-deep: #06080d;
  --surface: #0f131c;
  --surface-2: #141925;
  --surface-3: #1a2030;
  --line: #252c3d;
  --line-bright: #34405a;
  --text: #f5f7fb;
  --muted: #a5adbd;
  --faint: #687184;
  --teal: #2dd4bf;
  --teal-bright: #5eead4;
  --teal-dark: #0f766e;
  --indigo: #6c63ff;
  --green: #34d399;
  --amber: #fbbf24;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42rem 38rem at 85% 14%, rgba(45, 212, 191, .07), transparent 65%),
    radial-gradient(36rem 32rem at 5% 55%, rgba(108, 99, 255, .06), transparent 70%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: #06110f; background: var(--teal-bright); }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #041412;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* The λ remains Cody's desktop identity. The commit lens is the new public
   mark: two code brackets, one verified node, one path out. */
.commit-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(94, 234, 212, .38);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(45, 212, 191, .14), rgba(108, 99, 255, .1));
  box-shadow: inset 0 0 16px rgba(45, 212, 191, .08), 0 0 24px rgba(45, 212, 191, .08);
}
.commit-mark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 17px;
  top: 17px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 9px var(--teal);
}
.commit-mark i {
  position: absolute;
  top: 10px;
  width: 9px;
  height: 18px;
  border-top: 1.5px solid var(--teal-bright);
  border-bottom: 1.5px solid var(--teal-bright);
}
.commit-mark i:first-child { left: 8px; border-left: 1.5px solid var(--teal-bright); transform: skewY(-22deg); }
.commit-mark i:nth-child(2) { right: 8px; border-right: 1.5px solid var(--teal-bright); transform: skewY(22deg); }
.commit-mark b {
  position: absolute;
  left: 19px;
  top: 18px;
  width: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-bright), transparent);
}
.lambda {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: var(--teal-bright);
  background: rgba(45, 212, 191, .11);
  font: 600 14px/1 var(--mono);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.is-scrolled {
  border-color: rgba(37, 44, 61, .8);
  background: rgba(9, 11, 17, .84);
  backdrop-filter: blur(18px) saturate(130%);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-lockup { display: flex; align-items: baseline; gap: 8px; }
.brand-lockup strong { font-size: 20px; letter-spacing: -.04em; }
.brand-lockup small { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.brand-lockup em { color: var(--muted); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links > a:not(.button) { color: var(--muted); font-size: 13px; font-weight: 600; }
.nav-links > a:not(.button):hover { color: var(--text); }
.nav-toggle { display: none; border: 0; background: none; color: var(--text); cursor: pointer; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #031815;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal));
  box-shadow: 0 10px 32px -14px rgba(45, 212, 191, .75);
}
.button-primary:hover { box-shadow: 0 13px 38px -13px rgba(45, 212, 191, .9); }
.button-ghost { color: var(--text); border-color: var(--line-bright); background: rgba(12, 16, 24, .48); }
.button-ghost:hover { border-color: rgba(94, 234, 212, .52); background: rgba(45, 212, 191, .06); }
.button-small { min-height: 38px; padding-inline: 16px; }
.button-large { min-height: 51px; padding-inline: 23px; font-size: 14px; }

.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: stretch;
  padding-top: 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .94; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, .96) 0%, rgba(6, 8, 13, .88) 31%, rgba(6, 8, 13, .36) 63%, rgba(6, 8, 13, .16) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 29%),
    linear-gradient(180deg, rgba(6, 8, 13, .3), transparent 24%);
}
.hero-stage { position: relative; z-index: 2; display: flex; align-items: center; padding: 76px 0 180px; }
.hero-copy { width: min(660px, 61vw); }
.eyebrow {
  margin: 0 0 21px;
  color: var(--teal-bright);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 27px;
  font-size: clamp(48px, 6.35vw, 86px);
  line-height: .99;
  letter-spacing: -.068em;
}
h1 span { display: block; }
.gradient-text {
  color: var(--teal-bright);
  background: linear-gradient(115deg, #d6fffa 0%, var(--teal-bright) 35%, #7dd3fc 66%, #a5a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 630px; color: #bdc5d3; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 33px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 21px 0 0; color: var(--faint); font-size: 12px; }
.hero-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, .7); }
.capability-rail {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(10, 13, 20, .82);
  backdrop-filter: blur(17px);
}
.capability-rail article { display: flex; min-height: 125px; gap: 13px; padding: 24px 21px; border-right: 1px solid var(--line); }
.capability-rail article:last-child { border-right: 0; }
.capability-rail article > span { color: var(--teal); font: 500 11px/1.5 var(--mono); }
.capability-rail p { margin: 0; }
.capability-rail b { display: block; margin-bottom: 7px; font-size: 14px; }
.capability-rail small { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; }
.section-head h2, .persona-copy h2, .closing h2 {
  margin-bottom: 23px;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.section-head > p:last-child, .persona-copy > p, .closing-inner > p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.section-head.centered { margin-inline: auto; text-align: center; }

.persona { background: linear-gradient(180deg, var(--bg), #0a0d14); }
.persona-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 25, 37, .9), rgba(9, 12, 18, .96));
  overflow: hidden;
  box-shadow: 0 34px 90px -55px rgba(45, 212, 191, .25);
}
.persona-portrait { position: relative; margin: 0; min-height: 560px; overflow: hidden; }
.persona-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(13, 17, 25, .78)); pointer-events: none; }
.persona-portrait img { width: 100%; height: 100%; object-fit: cover; }
.persona-portrait figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 24px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(94, 234, 212, .28);
  border-radius: 11px;
  background: rgba(7, 10, 15, .8);
  backdrop-filter: blur(14px);
}
.persona-glyph { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--teal); color: #05231f; font: 700 20px/1 var(--mono); }
.persona-portrait figcaption b, .persona-portrait figcaption small { display: block; }
.persona-portrait figcaption b { font-size: 14px; }
.persona-portrait figcaption small { color: var(--muted); font-size: 11px; }
.persona-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(40px, 6vw, 82px); }
.persona-copy > p { max-width: 610px; }
.principles { display: grid; gap: 0; margin: 22px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 140px 1fr; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles b { font-size: 13px; }
.principles span { color: var(--muted); font-size: 13px; }
.text-link { color: var(--teal-bright); font-size: 13px; font-weight: 700; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.proof-section { background: #080a10; }
.proof-shell { margin-top: 58px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 35px 90px -60px rgba(45, 212, 191, .3); }
.proof-topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 23px; border-bottom: 1px solid var(--line); background: #0c1018; font-size: 12px; }
.proof-topbar > div { display: flex; align-items: center; gap: 11px; }
.proof-topbar code { color: var(--muted); font: 500 11px var(--mono); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.proof-state { color: var(--amber); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.proof-grid { display: grid; grid-template-columns: 360px 1fr; }
.ladder { margin: 0; padding: 20px; list-style: none; border-right: 1px solid var(--line); background: #0a0d14; }
.ladder li { position: relative; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 12px; min-height: 78px; padding: 12px 11px; border-bottom: 1px solid rgba(37, 44, 61, .65); }
.ladder li:last-child { border-bottom: 0; }
.ladder li::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--line-bright); }
.ladder li:first-child::before { top: 50%; }
.ladder li:last-child::before { bottom: 50%; }
.ladder i { position: relative; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line-bright); border-radius: 50%; background: var(--surface); color: var(--faint); font: normal 500 10px var(--mono); }
.ladder .is-proven i { border-color: var(--teal-dark); color: var(--teal-bright); box-shadow: 0 0 0 4px #0a0d14; }
.ladder .is-gap i { border-color: rgba(251, 191, 36, .55); color: var(--amber); box-shadow: 0 0 0 4px #0a0d14; }
.ladder b, .ladder small { display: block; }
.ladder b { font-size: 13px; }
.ladder small { margin-top: 2px; color: var(--faint); font: 500 9px var(--mono); letter-spacing: .05em; }
.ladder em { color: var(--teal); font: normal 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ladder .is-gap em { color: var(--amber); }
.proof-detail { padding: 54px clamp(34px, 6vw, 80px); }
.detail-kicker { margin-bottom: 17px; color: var(--teal-bright); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.proof-detail h3 { max-width: 660px; margin-bottom: 18px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.proof-detail > p { max-width: 690px; color: var(--muted); }
.evidence-row { display: grid; grid-template-columns: 95px 1fr; gap: 20px; max-width: 650px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.evidence-row span { color: var(--teal); font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.evidence-row b { font-size: 12px; font-weight: 500; }
.evidence-row.is-gap span { color: var(--amber); }

.workspace-section { background: linear-gradient(135deg, #0a0d14, #0c1018); }
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(540px, 1.18fr); gap: clamp(60px, 8vw, 110px); align-items: center; }
.check-list { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; color: #c3cad6; font-size: 13px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.repo-window { border: 1px solid var(--line); border-radius: 14px; background: #090c12; overflow: hidden; box-shadow: 0 35px 80px -48px rgba(45, 212, 191, .27); }
.window-bar { display: flex; align-items: center; min-height: 50px; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--faint); font: 500 10px var(--mono); }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #343b4b; }
.window-bar span { margin-left: 7px; }
.window-bar b { margin-left: auto; padding: 3px 7px; border: 1px solid rgba(45, 212, 191, .25); border-radius: 4px; color: var(--teal); font-size: 8px; letter-spacing: .08em; }
.repo-body { display: grid; grid-template-columns: 165px 1fr; min-height: 410px; }
.repo-tree { display: flex; flex-direction: column; gap: 4px; padding: 19px 11px; border-right: 1px solid var(--line); color: #778197; font: 400 10px/1.6 var(--mono); }
.repo-tree span { padding: 3px 7px; border-radius: 4px; }
.repo-tree .indent { padding-left: 18px; }
.repo-tree .indent2 { padding-left: 29px; }
.repo-tree .active { color: var(--teal-bright); background: rgba(45, 212, 191, .09); }
.repo-tree .active-soft { color: #a9b3c5; }
.code-pane { position: relative; padding: 28px 0 132px; overflow: hidden; }
.code-pane > div { display: grid; grid-template-columns: 44px 1fr; min-height: 30px; align-items: center; color: #9aa4b5; font: 400 10px/1 var(--mono); }
.code-pane > div i { padding-right: 13px; color: #424a5c; font-style: normal; text-align: right; user-select: none; }
.code-pane code { color: inherit; white-space: nowrap; }
.code-pane code span { color: #a5a0ff; }
.code-pane code b { color: var(--teal-bright); }
.code-pane .line-focus { border-left: 2px solid var(--teal); background: rgba(45, 212, 191, .07); }
.code-pane aside { position: absolute; inset: auto 18px 18px; padding: 14px 15px; border: 1px solid rgba(45, 212, 191, .24); border-radius: 9px; background: #0e151d; }
.code-pane aside strong { color: var(--teal-bright); font: 600 10px var(--mono); }
.code-pane aside p { margin: 7px 0 0; color: #aab3c1; font-size: 10px; line-height: 1.55; }
.code-pane aside code { color: #d8dce5; font: 400 9px var(--mono); }

.stack-section { position: relative; overflow: hidden; }
.stack-section::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 300px; left: 50%; top: 58%; transform: translate(-50%, -50%); background: rgba(45, 212, 191, .08); filter: blur(120px); }
.stack-path { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr 32px 1fr; align-items: center; margin-top: 65px; }
.stack-path article { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(15, 19, 28, .86); text-align: center; }
.stack-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border: 1px solid rgba(45, 212, 191, .3); border-radius: 10px; color: var(--teal-bright); background: rgba(45, 212, 191, .07); font: 500 17px var(--mono); }
.stack-path b { font-size: 13px; }
.stack-path small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.stack-path > i { height: 1px; background: linear-gradient(90deg, var(--line-bright), var(--teal)); }

.safety-section { background: #080a0f; }
.safety-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); gap: clamp(60px, 9vw, 130px); align-items: center; }
.gate-card { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.gate-head { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid var(--line); }
.gate-head b, .gate-head small { display: block; }
.gate-head b { font-size: 12px; }
.gate-head small { color: var(--faint); font: 400 9px var(--mono); }
.gate-head em { margin-left: auto; color: var(--amber); font: normal 500 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.gate-diff { display: flex; flex-direction: column; padding: 25px 25px 20px; font: 400 11px/2 var(--mono); background: #0a0d14; }
.gate-diff span { color: #b87f86; }
.gate-diff b { color: var(--teal-bright); font-weight: 400; }
.gate-scope { display: flex; gap: 18px; padding: 15px 19px; border-block: 1px solid var(--line); color: var(--muted); font: 400 9px var(--mono); }
.gate-scope span { display: flex; align-items: center; gap: 6px; }
.gate-scope i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.gate-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 18px; }
.gate-actions button { min-height: 34px; padding-inline: 12px; border: 1px solid var(--line-bright); border-radius: 6px; color: var(--muted); background: transparent; font: 600 10px var(--sans); opacity: .82; }
.gate-actions button:last-child { border-color: rgba(45, 212, 191, .35); color: #061c18; background: var(--teal); }

.closing { position: relative; padding: 145px 0; text-align: center; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(38rem 25rem at 50% 50%, rgba(45, 212, 191, .09), transparent 70%); }
.closing-inner { position: relative; z-index: 2; }
.closing h2 { max-width: 870px; margin-inline: auto; }
.closing-inner > p { max-width: 630px; margin-inline: auto; }
.centered-actions { justify-content: center; }
.commit-orbit { position: absolute; left: 50%; top: 50%; width: 610px; height: 610px; transform: translate(-50%, -50%); border: 1px solid rgba(45, 212, 191, .07); border-radius: 50%; }
.commit-orbit::before, .commit-orbit::after { content: ""; position: absolute; inset: 75px; border: 1px solid rgba(108, 99, 255, .07); border-radius: 50%; }
.commit-orbit::after { inset: 155px; border-color: rgba(45, 212, 191, .11); }
.commit-orbit .commit-mark { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); opacity: .7; }

footer { padding: 35px 0 46px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brand .commit-mark { width: 31px; height: 31px; flex-basis: 31px; transform: scale(.82); margin-right: -2px; }
.footer-inner > p { margin: 0; color: var(--faint); font-size: 11px; text-align: center; }
.footer-inner nav { display: flex; justify-content: flex-end; gap: 20px; }
.footer-inner nav a { color: var(--muted); font-size: 11px; }
.footer-inner nav a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --wrap: min(100% - 38px, 760px); }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; }
  .nav-links { position: absolute; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 19px 20px; border-bottom: 1px solid var(--line); background: rgba(9, 11, 17, .98); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links > a:not(.button) { padding: 13px 4px; border-bottom: 1px solid rgba(37, 44, 61, .55); }
  .nav-links .button { margin-top: 12px; }
  .hero { min-height: 940px; }
  .hero-art { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6, 8, 13, .97) 0%, rgba(6, 8, 13, .8) 55%, rgba(6, 8, 13, .25)), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
  .hero-copy { width: 88%; }
  .capability-rail { grid-template-columns: 1fr 1fr; }
  .capability-rail article { min-height: 105px; }
  .capability-rail article:nth-child(2) { border-right: 0; }
  .capability-rail article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .persona-card { grid-template-columns: 1fr; }
  .persona-portrait { min-height: auto; aspect-ratio: 16 / 12; }
  .persona-portrait::after { background: linear-gradient(0deg, rgba(13, 17, 25, .85), transparent 35%); }
  .persona-copy { padding: 58px 42px 65px; }
  .proof-grid { grid-template-columns: 290px 1fr; }
  .split, .safety-grid { grid-template-columns: 1fr; }
  .split { gap: 55px; }
  .safety-grid { gap: 50px; }
  .stack-path { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stack-path > i { display: none; }
  .stack-path article:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 680px) {
  :root { --wrap: calc(100% - 30px); }
  html { scroll-padding-top: 66px; }
  .nav-inner { height: 66px; }
  .nav-links { top: 66px; }
  .brand-lockup small { display: none; }
  .hero { min-height: 1010px; padding-top: 66px; }
  .hero-art { object-position: 68% center; opacity: .72; }
  .hero-shade { background: linear-gradient(90deg, rgba(6, 8, 13, .97), rgba(6, 8, 13, .65)), linear-gradient(0deg, var(--bg) 5%, rgba(6, 8, 13, .35) 60%, transparent); }
  .hero-stage { align-items: flex-start; padding-top: 105px; padding-bottom: 330px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(44px, 14.5vw, 67px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-note { align-items: flex-start; line-height: 1.5; }
  .hero-note span { margin-top: 5px; flex: 0 0 7px; }
  .capability-rail { grid-template-columns: 1fr; }
  .capability-rail article { min-height: 73px; padding: 13px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-rail article:last-child { border-bottom: 0; }
  .capability-rail small { line-height: 1.4; }
  .section { padding: 83px 0; }
  .section-head h2, .persona-copy h2, .closing h2 { font-size: 39px; }
  .section-head > p:last-child, .persona-copy > p, .closing-inner > p { font-size: 15px; }
  .persona-card { border-radius: 13px; }
  .persona-portrait { aspect-ratio: 1 / 1; }
  .persona-portrait img { object-position: center; }
  .persona-portrait figcaption { inset: auto 13px 13px; }
  .persona-copy { padding: 45px 23px 50px; }
  .principles li { grid-template-columns: 1fr; gap: 4px; }
  .proof-shell { margin-top: 40px; }
  .proof-topbar { align-items: flex-start; gap: 10px; padding-block: 15px; }
  .proof-topbar > div { flex-wrap: wrap; }
  .proof-state { text-align: right; }
  .proof-grid { grid-template-columns: 1fr; }
  .ladder { border-right: 0; border-bottom: 1px solid var(--line); }
  .ladder li { min-height: 65px; }
  .proof-detail { padding: 40px 22px; }
  .proof-detail h3 { font-size: 27px; }
  .evidence-row { grid-template-columns: 73px 1fr; gap: 12px; }
  .repo-body { grid-template-columns: 1fr; }
  .repo-tree { display: none; }
  .repo-window { border-radius: 11px; }
  .window-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .code-pane { min-height: 365px; }
  .code-pane > div { grid-template-columns: 36px 1fr; font-size: 8px; }
  .stack-path { grid-template-columns: 1fr; }
  .stack-path article:last-child { grid-column: auto; width: auto; }
  .stack-path article { min-height: 130px; }
  .gate-head { align-items: flex-start; }
  .gate-head em { max-width: 70px; text-align: right; }
  .gate-scope { flex-wrap: wrap; }
  .gate-actions { flex-direction: column; }
  .gate-actions button { width: 100%; }
  .closing { padding: 105px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: flex-start; flex-wrap: wrap; }
  .footer-inner > p { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
