:root {
  --ink: #161814;
  --paper: #e9e6dc;
  --paper-2: #d8d3c4;
  --acid: #d9ff43;
  --orange: #ff5c35;
  --blue: #5b75ff;
  --line: rgba(22, 24, 20, .2);
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: "Avenir Next Condensed", "DIN Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--ink); color: var(--acid); }

.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .12; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--orange); }
.section-shell { width: min(1440px, calc(100% - 72px)); margin: 0 auto; }

.site-header { width: min(1440px, calc(100% - 72px)); height: 94px; margin: 0 auto; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 800 30px/1 var(--serif); }
.brand-copy { font: 600 10px/1.3 var(--mono); letter-spacing: .12em; }
.brand-copy b { color: var(--orange); }
nav { display: flex; gap: 34px; font: 700 12px/1 var(--mono); letter-spacing: .06em; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--ink); transition: right .25s; }
nav a:hover::after { right: 0; }
.status-pill { justify-self: end; border: 1px solid var(--ink); border-radius: 99px; padding: 9px 13px; font: 700 10px/1 var(--mono); letter-spacing: .08em; }
.status-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #43c96b; box-shadow: 0 0 0 4px rgba(67,201,107,.15); animation: blink 2s infinite; }

.hero { min-height: 830px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; padding: 72px 0 112px; position: relative; }
.hero-copy { max-width: 710px; position: relative; z-index: 2; }
.eyebrow, .tag { font: 700 11px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 2px; margin: 0 10px 3px 0; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 30px 0 28px; font: 500 clamp(74px, 8.2vw, 142px)/.82 var(--serif); letter-spacing: -.075em; }
h1 span { color: var(--orange); font-style: italic; white-space: nowrap; }
.hero-lead { max-width: 590px; font: 500 18px/1.75 var(--sans); letter-spacing: .02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); display: inline-flex; align-items: center; gap: 26px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--ink); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary span { color: var(--acid); font-size: 22px; }
.button.ghost { background: transparent; }

.system-orbit { width: 100%; max-width: 610px; justify-self: end; position: relative; }
.system-orbit svg { width: 100%; overflow: visible; }
.orbit { fill: none; stroke: rgba(22,24,20,.34); stroke-width: 1; stroke-dasharray: 3 8; transform-origin: center; }
.orbit-a { animation: spin 34s linear infinite; }
.orbit-b { animation: spin 25s linear infinite reverse; }
.orbit-c { stroke: var(--orange); stroke-dasharray: 2 12; animation: spin 17s linear infinite; }
.core circle { fill: var(--ink); filter: url(#glow); }
.core text { fill: var(--paper); text-anchor: middle; font: 700 44px var(--serif); }
.core .core-sub { font: 700 8px var(--mono); letter-spacing: .18em; fill: var(--acid); }
.node circle { fill: var(--orange); stroke: var(--paper); stroke-width: 4; }
.node text { text-anchor: middle; font: 700 9px var(--mono); letter-spacing: .12em; }
.signal { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 10; animation: dash 3s linear infinite; }
.orbit-caption { position: absolute; right: 0; bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; }
.orbit-caption span { font: 700 9px var(--mono); letter-spacing: .14em; }
.orbit-caption b { font: 500 18px var(--serif); font-style: italic; }
.system-orbit.pulse .core circle { animation: corePulse .8s ease; }

.metric-strip { position: absolute; left: 0; bottom: 0; right: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-strip article { min-height: 86px; padding: 15px 22px; display: flex; align-items: baseline; gap: 12px; border-right: 1px solid var(--ink); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span { font: 500 36px/1 var(--serif); }
.metric-strip p { margin: 0; font: 700 10px/1.2 var(--mono); text-transform: uppercase; }

.manifesto { background: var(--ink); color: var(--paper); padding: 120px 0; }
.manifesto-grid { display: grid; grid-template-columns: 180px 1fr; gap: 30px 60px; }
.section-index { font: 700 10px var(--mono); letter-spacing: .13em; }
.manifesto-copy { max-width: 1050px; }
.manifesto-copy p { font: 400 clamp(32px, 4vw, 64px)/1.08 var(--serif); letter-spacing: -.035em; }
.manifesto-copy p:first-child { color: rgba(233,230,220,.48); }
.manifesto-copy em { color: var(--acid); font-weight: 500; }
.timeline { grid-column: 2; padding: 70px 0 0; margin: 20px 0 0; list-style: none; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(233,230,220,.35); }
.timeline li { padding-right: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -76px; left: 0; width: 11px; height: 11px; background: var(--acid); border-radius: 50%; }
.timeline span { color: var(--orange); font: 700 11px var(--mono); letter-spacing: .12em; }
.timeline b { display: block; margin: 12px 0; font: 500 19px var(--serif); }
.timeline p { color: rgba(233,230,220,.62); font: 400 13px/1.65 var(--sans); }

.capabilities { padding: 130px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 70px; }
.section-heading h2 { margin: 16px 0 0; font: 500 clamp(54px,6vw,95px)/.88 var(--serif); letter-spacing: -.055em; }
.section-heading > p { width: 410px; margin: 0 0 8px; font-size: 15px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.feature { min-height: 490px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 34px; position: relative; overflow: hidden; transition: background .25s, color .25s; }
.feature:hover { background: #f3f0e7; }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.feature-number { position: absolute; top: 20px; right: 22px; font: 700 10px var(--mono); opacity: .55; }
.feature .tag { color: var(--orange); margin: 0 0 16px; }
.feature h3 { font: 500 34px/1.05 var(--serif); letter-spacing: -.03em; }
.feature p { font-size: 14px; line-height: 1.72; }
.feature ul { list-style: none; padding: 0; margin: 27px 0 0; border-top: 1px solid var(--line); }
.feature li { padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 11px var(--mono); }
.feature li::before { content: "+"; margin-right: 10px; color: var(--orange); }
.workers-icon { min-height: 300px; display: grid; grid-template-columns: repeat(3,52px); grid-template-rows: repeat(2,52px); gap: 18px; place-content: center; background: radial-gradient(circle, rgba(91,117,255,.23), transparent 65%); }
.workers-icon i { border: 1px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 var(--ink); animation: workerFloat 3s ease-in-out infinite; }
.workers-icon i:nth-child(2n) { animation-delay: -.8s; background: var(--acid); }
.workers-icon i:nth-child(3n) { animation-delay: -1.6s; background: var(--orange); }
.mini-visual { height: 115px; margin: 15px 0 32px; }
.hotset-visual { display: flex; align-items: flex-end; gap: 10px; }
.hotset-visual span { flex: 1; border: 1px solid var(--ink); background: linear-gradient(to top,var(--blue) 0 42%,transparent 42%); }
.hotset-visual span:nth-child(1){height: 45%}.hotset-visual span:nth-child(2){height: 76%}.hotset-visual span:nth-child(3){height: 100%; background: linear-gradient(to top,var(--acid) 0 74%,transparent 74%)}
.fact { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; }
.fact b { font: 500 36px var(--serif); }
.fact span { font: 700 9px var(--mono); }
.steer-visual { display: flex; align-items: center; position: relative; }
.steer-visual::before { content: ""; position: absolute; left: 10%; right: 8%; height: 2px; background: var(--ink); transform: rotate(-12deg); }
.steer-visual i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); position: absolute; }
.steer-visual i:nth-child(1){left:10%;bottom:25%}.steer-visual i:nth-child(2){left:50%;top:45%;background:var(--orange)}.steer-visual i:nth-child(3){right:8%;top:16%;background:var(--acid);border:1px solid var(--ink)}
.text-action { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 6px 0; font: 700 10px var(--mono); cursor: pointer; }
.flowline { margin-top: 55px; display: flex; align-items: center; gap: 8px; }
.flowline span { border: 1px solid var(--ink); padding: 8px; font: 700 9px var(--mono); }
.flowline i { height: 1px; flex: 1; background: var(--ink); position: relative; }
.flowline i::after { content: ">"; position: absolute; right: -2px; top: -8px; }
.feature-dark { background: var(--blue); color: white; }
.feature-dark:hover { background: #4a63e8; }
.feature-dark .tag { color: var(--acid); }
.relay { margin-top: 55px; display: flex; justify-content: space-between; align-items: center; font: 700 9px var(--mono); }
.relay span { border: 1px solid white; padding: 10px; }
.relay i { color: var(--acid); font-size: 20px; }
.workboard-card { background: var(--acid); }
.workboard-card:hover { background: #e1ff6c; }
.board-demo { align-self: center; display: grid; gap: 10px; }
.board-demo div { min-height: 88px; padding: 16px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); display: grid; grid-template-columns: 55px 1fr; align-items: center; }
.board-demo span { font: 700 8px var(--mono); color: #338e50; }
.board-demo b { font: 600 15px var(--serif); }
.board-demo small { grid-column: 2; font: 600 8px var(--mono); opacity: .6; }
.board-demo .active { transform: translateX(12px); background: var(--orange); }
.board-demo .active span { color: var(--ink); }
.runtime-badges { margin-top: 42px; display: flex; align-items: center; justify-content: space-between; font: 700 9px var(--mono); }
.runtime-badges span { border: 1px solid var(--ink); padding: 10px; }
.runtime-badges i { font-size: 20px; color: var(--orange); }
.stream-lines { margin-top: 40px; display: grid; gap: 8px; }
.stream-lines i { height: 8px; background: var(--ink); transform-origin: left; animation: stream 2.5s ease-in-out infinite; }
.stream-lines i:nth-child(1){width:92%}.stream-lines i:nth-child(2){width:75%;animation-delay:-.4s}.stream-lines i:nth-child(3){width:84%;animation-delay:-.8s}.stream-lines i:nth-child(4){width:44%;animation-delay:-1.2s;background:var(--orange)}

.runtime-lab { padding: 120px 0; background: var(--paper-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lab-grid { margin-top: 44px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.lab-copy h2 { margin: 18px 0 24px; font: 500 clamp(54px,6vw,92px)/.9 var(--serif); letter-spacing: -.055em; }
.lab-copy > p { max-width: 470px; line-height: 1.7; }
.segmented { margin-top: 34px; display: inline-flex; border: 1px solid var(--ink); padding: 4px; }
.segmented button { border: 0; background: transparent; padding: 12px 16px; cursor: pointer; font: 700 10px var(--mono); }
.segmented button.active { background: var(--ink); color: var(--acid); }
.terminal { min-height: 470px; background: var(--ink); color: var(--paper); box-shadow: 15px 15px 0 var(--blue); transform: rotate(1deg); }
.terminal-bar { height: 56px; border-bottom: 1px solid rgba(233,230,220,.2); display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.terminal-bar span:nth-child(2){background:var(--acid)}.terminal-bar span:nth-child(3){background:var(--blue)}
.terminal-bar b { margin-left: auto; font: 700 9px var(--mono); letter-spacing: .1em; }
.terminal-body { padding: 36px; }
.terminal-body p { display: grid; grid-template-columns: 30px 80px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(233,230,220,.16); font: 600 11px var(--mono); }
.terminal-body p i { color: var(--orange); font-style: normal; }
.terminal-body p span { color: rgba(233,230,220,.45); }
.terminal-body p b { font-weight: 600; }
.terminal-stream { margin: 0 36px; padding: 14px; border: 1px solid rgba(217,255,67,.5); display: flex; justify-content: space-between; font: 700 10px var(--mono); color: var(--acid); }
.terminal-stream i { width: 7px; height: 14px; background: var(--acid); animation: blink .8s steps(1) infinite; }

.principles { padding: 130px 0; }
.principle-list { border-top: 1px solid var(--ink); }
.principle-list article { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 30px; align-items: center; min-height: 120px; border-bottom: 1px solid var(--ink); }
.principle-list span { font: 700 10px var(--mono); }
.principle-list h3 { margin: 0; font: 500 28px var(--serif); }
.principle-list p { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.6; }
.evidence { padding: 0 0 120px; display: grid; grid-template-columns: .65fr 1fr; gap: 60px; }
.evidence h2 { font: 500 44px var(--serif); }
.evidence > p { font-size: 14px; line-height: 1.75; }
.evidence details { grid-column: 2; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.evidence summary { padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; font: 700 11px var(--mono); }
.evidence details[open] summary span { transform: rotate(45deg); }
.evidence ul { margin: 0 0 24px; padding-left: 18px; }
.evidence li { margin: 8px 0; font-size: 12px; }

footer { background: var(--orange); color: var(--ink); padding: 90px 0; }
.footer-inner { display: grid; grid-template-columns: .5fr 1fr auto; align-items: end; gap: 50px; }
.footer-v { font: 500 clamp(150px,22vw,340px)/.65 var(--serif); letter-spacing: -.08em; }
.footer-inner p { font: 500 clamp(28px,4vw,58px)/1.05 var(--serif); }
.footer-meta { font: 700 9px/1.8 var(--mono); text-align: right; }
.steer-toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; padding: 14px 18px; background: var(--ink); color: var(--acid); font: 700 10px var(--mono); transform: translate(-50%,140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 6px 6px 0 var(--orange); }
.steer-toast.show { transform: translate(-50%,0); }

.reveal { opacity: 1; transform: none; }
.reveal.visible { animation: revealIn .8s cubic-bezier(.2,.7,.2,1) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes corePulse { 50% { transform: scale(1.18); transform-origin: center; } }
@keyframes workerFloat { 50% { transform: translateY(-8px); box-shadow: 10px 10px 0 var(--ink); } }
@keyframes stream { 50% { transform: scaleX(.55); opacity: .55; } }
@keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 850px; }
  .system-orbit { max-width: 540px; margin: 30px auto 100px; justify-self: center; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .manifesto-grid { grid-template-columns: 1fr; }
  .timeline, .manifesto-copy { grid-column: 1; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-wide { grid-column: span 2; }
  .lab-grid { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: 1fr; }
  .evidence details { grid-column: 1; }
}

@media (max-width: 720px) {
  .section-shell, .site-header { width: min(100% - 32px, 1440px); }
  .site-header { height: 76px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 40px; height: 40px; font-size: 24px; }
  nav { display: none; }
  .status-pill { font-size: 0; padding: 8px; }
  .status-pill i { margin: 0; }
  .hero { min-height: auto; padding: 70px 0 40px; }
  h1 { font-size: clamp(65px,21vw,95px); }
  h1 span { white-space: normal; }
  .hero-lead { font-size: 15px; }
  .system-orbit { margin: 24px auto 30px; }
  .metric-strip { position: static; }
  .metric-strip article { min-height: 72px; padding: 12px; display: block; }
  .metric-strip span { font-size: 28px; }
  .metric-strip p { margin-top: 5px; }
  .manifesto { padding: 80px 0; }
  .manifesto-copy p { font-size: 34px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; border-top: 0; padding-top: 20px; }
  .timeline li { padding: 0 0 24px 24px; border-left: 1px solid rgba(233,230,220,.35); }
  .timeline li::before { top: 0; left: -6px; }
  .capabilities { padding: 90px 0; }
  .section-heading { display: block; }
  .section-heading > p { width: auto; margin-top: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { grid-column: 1; min-height: 430px; padding: 26px; display: block; }
  .workers-icon { min-height: 220px; margin-bottom: 30px; }
  .workboard-card .feature-copy { margin-bottom: 36px; }
  .runtime-lab, .principles { padding: 90px 0; }
  .lab-grid { gap: 50px; }
  .terminal { min-height: 430px; transform: none; box-shadow: 8px 8px 0 var(--blue); }
  .terminal-body { padding: 24px 18px; }
  .terminal-body p { grid-template-columns: 28px 62px 1fr; font-size: 9px; }
  .terminal-stream { margin: 0 18px; font-size: 8px; }
  .principle-list article { grid-template-columns: 38px 1fr; padding: 22px 0; }
  .principle-list p { grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-v { font-size: 190px; }
  .footer-meta { text-align: left; }
  .steer-toast { width: calc(100% - 36px); text-align: center; }
}

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