:root {
  --ink: #101418;
  --paper: #f5f3ed;
  --paper-2: #ece9df;
  --muted: #606a70;
  --line: rgba(16, 20, 24, .15);
  --lime: #b7f34a;
  --cyan: #69d9e8;
  --amber: #ffc857;
  --blue: #73a8ff;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; background: var(--lime); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(245, 243, 237, .9); backdrop-filter: blur(14px); border-color: var(--line); }
.wordmark { font: 800 1.1rem/1 var(--sans); text-decoration: none; letter-spacing: -.04em; }
.wordmark span { color: #4a7b00; }
nav { display: flex; gap: 2rem; }
nav a, .header-cta { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
nav a { color: var(--muted); }
nav a:hover { color: var(--ink); }
.header-cta { justify-self: end; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 7rem clamp(1.25rem, 7vw, 8rem) 2rem;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}
.hero-grid { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 900px; }
.eyebrow, .kicker { font: 700 .73rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: #4a7b00; box-shadow: 0 0 0 6px rgba(74,123,0,.12); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h1 { font-size: clamp(4rem, 5.9vw, 6.8rem); line-height: .9; margin: 1rem 0 1.25rem; max-width: 13ch; }
h1 em { font-weight: 400; color: #385f00; }
.hero-lede { max-width: 61ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #394247; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button { padding: .95rem 1.2rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 750; font-size: .88rem; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #385f00; border-color: #385f00; }
.button-secondary:hover { background: var(--white); }
.hero-orbit { position: relative; z-index: 1; width: min(38vw, 520px); justify-self: start; }
.hero-orbit svg { width: 100%; overflow: visible; }
.hero-orbit .links path { stroke: rgba(16,20,24,.22); stroke-width: 1; fill: none; stroke-dasharray: 6 8; animation: dash 20s linear infinite; }
.hero-orbit .nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.hero-orbit .nodes .hub { fill: var(--lime); }
.hero-orbit .labels { font: 700 11px var(--mono); letter-spacing: .1em; }
@keyframes dash { to { stroke-dashoffset: -280; } }
.proof-bar { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.proof-bar div { padding: 1.4rem 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem; }
.proof-bar strong { font: 400 2rem var(--serif); }
.proof-bar span { max-width: 20ch; color: var(--muted); font-size: .82rem; line-height: 1.3; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .55fr 1.4fr 1fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 6rem); }
.kicker { color: #385f00; margin: .5rem 0 0; }
.section-heading h2, .about h2 { font-size: clamp(2.8rem, 5.5vw, 5.8rem); line-height: .96; margin: 0; }
.section-heading > p:last-child { color: var(--muted); max-width: 43ch; }

.case-list { border-top: 1px solid var(--ink); }
.case-card { display: grid; grid-template-columns: .12fr 1.1fr .8fr; gap: clamp(1.25rem, 3vw, 3.5rem); padding: clamp(2.5rem, 5vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.case-index { font: 600 .8rem var(--mono); color: var(--muted); }
.case-status { font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: .55rem; color: var(--muted); }
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; }
.amber { background: var(--amber); } .green { background: #6ca522; } .blue { background: var(--blue); } .slate { background: #75828a; } .violet { background: #9e83df; }
.case-main h3 { font: 400 clamp(2.4rem, 4.2vw, 4.5rem)/.98 var(--serif); letter-spacing: -.045em; margin: 1.2rem 0 .7rem; }
.case-subtitle { font-size: 1.1rem; font-weight: 700; max-width: 50ch; }
.case-main > p:not(.case-subtitle) { color: var(--muted); max-width: 61ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.tags span { border: 1px solid var(--line); border-radius: 100px; padding: .38rem .65rem; font: 600 .68rem var(--mono); }
.case-evidence { align-self: end; }
.case-evidence dl { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.case-evidence dl div { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.case-evidence dt { color: var(--muted); font: 600 .68rem var(--mono); text-transform: uppercase; }
.case-evidence dd { margin: 0; font-size: .85rem; font-weight: 650; }
.text-link { border: 0; padding: 0; background: transparent; cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: .3rem; }
.text-link:hover { color: #385f00; }

.dark-section { background: var(--ink); color: var(--paper); }
.dark-section .kicker { color: var(--lime); }
.dark-section .section-heading > p:last-child { color: #aab2b6; }
.autonomy-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.autonomy-path li { position: relative; min-height: 235px; padding: 1.4rem; border-right: 1px solid rgba(255,255,255,.2); }
.autonomy-path li:last-child { border-right: 0; }
.autonomy-path li::after { content: '→'; position: absolute; right: -11px; top: 50%; z-index: 2; color: var(--lime); background: var(--ink); padding: .2rem; }
.autonomy-path li:last-child::after { display: none; }
.autonomy-path span { font: 600 .7rem var(--mono); color: var(--lime); }
.autonomy-path strong { display: block; font: 400 1.8rem var(--serif); margin-top: 3rem; }
.autonomy-path p { color: #aab2b6; font-size: .84rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 5rem; gap: 3rem; }
.principles article { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.2rem; }
.principles span { font: 600 .7rem var(--mono); color: var(--lime); }
.principles h3 { font: 400 1.7rem var(--serif); margin: 1.8rem 0 .7rem; }
.principles p { color: #aab2b6; }

.transfer { background: #e9eef0; }
.transfer-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.transfer-grid article { min-height: 250px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transfer-grid article:nth-child(2n) { border-right: 0; }
.transfer-grid span { font: 700 .7rem var(--mono); color: #385f00; }
.transfer-grid h3 { margin: 2.5rem 0 .75rem; font: 400 clamp(1.8rem, 3vw, 3rem)/1 var(--serif); letter-spacing: -.035em; }
.transfer-grid p { max-width: 48ch; color: #414a4f; }
.transfer-grid small { display: block; margin-top: 1.5rem; color: var(--muted); font: 650 .68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.proof-note { display: grid; grid-template-columns: .4fr 1fr; gap: 2rem; margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.proof-note strong { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.proof-note p { margin: 0; max-width: 75ch; color: #414a4f; }

.timeline { margin-left: 27%; border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: .4fr 1fr; gap: 2rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 600 .73rem var(--mono); color: var(--muted); }
.timeline h3 { font: 400 1.7rem var(--serif); margin: 0 0 .3rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .current h3::after { content: 'CURRENT'; margin-left: .8rem; padding: .25rem .4rem; background: var(--lime); font: 700 .6rem var(--mono); vertical-align: middle; }

.about { display: grid; grid-template-columns: 1.45fr .65fr; gap: clamp(3rem, 8vw, 10rem); background: var(--paper-2); }
.about-copy > p:not(.kicker) { margin-left: 28%; max-width: 62ch; font-size: 1.05rem; color: #414a4f; }
.about-copy h2 { margin: 1.5rem 0 3rem; max-width: 12ch; }
.contact-card { background: var(--lime); padding: 2rem; align-self: end; }
.contact-card p { font: 400 1.65rem/1.15 var(--serif); }
.contact-card a { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid rgba(16,20,24,.3); text-decoration: none; font-weight: 750; }

footer { padding: 2rem clamp(1.25rem, 7vw, 8rem); display: flex; justify-content: space-between; gap: 1rem; background: var(--ink); color: #aab2b6; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.case-dialog { width: min(900px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); border: 0; padding: clamp(2rem, 5vw, 5rem); background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.case-dialog::backdrop { background: rgba(16,20,24,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; right: 0; top: 0; z-index: 2; width: 44px; height: 44px; margin: -1rem 0 0 1rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font: 300 2rem/1 var(--sans); cursor: pointer; }
.dialog-kicker { font: 700 .7rem var(--mono); text-transform: uppercase; color: #385f00; letter-spacing: .1em; }
.case-dialog h2 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: .95; margin: 1rem 0 2rem; }
.case-dialog h3 { margin: 2.2rem 0 .5rem; font: 400 1.55rem var(--serif); }
.case-dialog p, .case-dialog li { color: #414a4f; }
.case-dialog .disclosure { border-left: 3px solid var(--amber); padding-left: 1rem; font-size: .85rem; }
.artifact { margin: 2.5rem 0; padding: 1.4rem; border: 1px solid var(--line); background: var(--white); }
.artifact > strong { display: block; margin-bottom: 1rem; font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #385f00; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.artifact-grid div { padding: 1rem; background: var(--paper-2); }
.artifact-grid b { display: block; margin-bottom: .4rem; font-size: .84rem; }
.artifact-grid span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.artifact-path { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artifact-path div { position: relative; padding: 1rem .7rem; border-right: 1px solid var(--line); }
.artifact-path div:last-child { border-right: 0; }
.artifact-path b { display: block; font-size: .8rem; }
.artifact-path span { color: var(--muted); font-size: .7rem; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 9rem; }
  .hero-orbit { position: absolute; right: -13rem; top: 9rem; opacity: .28; width: 620px; }
  .hero-copy { z-index: 3; }
  .proof-bar { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { max-width: 14ch; }
  .case-card { grid-template-columns: .1fr 1fr; }
  .case-evidence { grid-column: 2; }
  .autonomy-path { grid-template-columns: 1fr; }
  .autonomy-path li { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .autonomy-path li::after { content: '↓'; right: 1rem; top: auto; bottom: -14px; }
  .autonomy-path strong { margin-top: 1rem; }
  .principles { grid-template-columns: 1fr; }
  .transfer-grid { grid-template-columns: 1fr; }
  .transfer-grid article { border-right: 0; }
  .proof-note { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .header-cta { font-size: .65rem; }
  h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero { min-height: auto; }
  .hero-orbit { display: none; }
  .proof-bar { grid-template-columns: 1fr; }
  .proof-bar div { border-bottom: 1px solid var(--line); }
  .case-card { grid-template-columns: 1fr; }
  .case-index { display: none; }
  .case-evidence { grid-column: 1; }
  .timeline { margin-left: 0; }
  .timeline article { grid-template-columns: 1fr; gap: .4rem; }
  .about-copy > p:not(.kicker) { margin-left: 0; }
  .artifact-grid, .artifact-path { grid-template-columns: 1fr; }
  .artifact-path div { border-right: 0; border-bottom: 1px solid var(--line); }
  .artifact-path div:last-child { border-bottom: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit .links path { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
