:root, :root[data-theme="dark"] {
  --bg: #02060f; --bg-2: #040b19; --panel: #050e1f;
  --ink: #d3e6ff; --ink-2: #7f9cc9; --ink-3: #4a6594;
  --line: rgba(127, 200, 255, .17); --line-2: rgba(127, 200, 255, .07);
  --sky: #7fc8ff; --blue: #2a73ff; --deep: #0b2a6b;
  --glow: rgba(42, 115, 255, .55);
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(18px, 4.6vw, 64px); --max: 1360px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #edf3fb; --bg-2: #e2ebf7; --panel: #f7faff;
  --ink: #061a42; --ink-2: #3c5a8e; --ink-3: #7b93bb;
  --line: rgba(6, 26, 66, .2); --line-2: rgba(6, 26, 66, .07);
  --sky: #0b62e0; --blue: #0b4fd6; --deep: #cfe0f7;
  --glow: rgba(11, 79, 214, .25);
  color-scheme: light;
}

* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 48px 48px; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(127, 200, 255, .028) 2px 3px); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; padding: 0; }
em, i { font-style: normal; }
::selection { background: var(--sky); color: var(--bg); }
:focus-visible { outline: 1px solid var(--sky); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 10px 14px; }

.id, .sys, .bar, .state, .tag, .endpoint, .rd, .units, .table-head, .demos-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.id { color: var(--ink-3); }
.endpoint { text-transform: none; letter-spacing: .02em; color: var(--sky); display: inline-flex; align-items: center; gap: 8px; }
.arr { width: 12px; height: 12px; flex: none; transition: transform .2s; }
a:hover .arr { transform: translate(2px, -2px); }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--sky); white-space: nowrap; }
.state i, .sys i, .rd i { width: 6px; height: 6px; background: var(--sky); box-shadow: 0 0 10px var(--sky); animation: pulse 2.2s steps(2, jump-none) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* HUD corner brackets */
.frame { position: relative; border: 1px solid var(--line); background:
  linear-gradient(var(--sky) 0 0) top left / 12px 1px no-repeat, linear-gradient(var(--sky) 0 0) top left / 1px 12px no-repeat,
  linear-gradient(var(--sky) 0 0) top right / 12px 1px no-repeat, linear-gradient(var(--sky) 0 0) top right / 1px 12px no-repeat,
  linear-gradient(var(--sky) 0 0) bottom left / 12px 1px no-repeat, linear-gradient(var(--sky) 0 0) bottom left / 1px 12px no-repeat,
  linear-gradient(var(--sky) 0 0) bottom right / 12px 1px no-repeat, linear-gradient(var(--sky) 0 0) bottom right / 1px 12px no-repeat,
  var(--panel); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; padding: 0 var(--pad); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 400 12.5px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.wordmark b { font-weight: 400; color: var(--sky); margin-left: .6em; }
.mark { width: 26px; height: 26px; color: var(--sky); }
.nav-links { display: flex; height: 100%; }
.nav-links a { display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 400 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-left: 1px solid var(--line-2); transition: color .2s, background .2s; }
.nav-links a:last-child { border-right: 1px solid var(--line-2); }
.nav-links a span { color: var(--ink-3); }
.nav-links a:hover { color: var(--sky); background: var(--line-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.theme { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.theme:hover { color: var(--sky); border-color: var(--sky); }
.theme svg { width: 14px; height: 14px; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; background: var(--sky); color: var(--bg); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--sky); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: background .2s, color .2s, box-shadow .2s; }
.btn:hover { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky), 0 0 28px -6px var(--glow); }
.btn-ghost { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 1px var(--line); border-color: transparent; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--sky); }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-lg { padding: 20px 30px; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: .08em; text-transform: none; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 170px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sys { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin-bottom: 30px; }
.sys span { margin-left: auto; color: var(--sky); }
.hero .sys { max-width: 560px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
h1 { font: 400 clamp(30px, 5.5vw, 84px)/1.12 var(--display); letter-spacing: .01em; text-transform: uppercase; }
h1 span { display: block; }
h1 .hl, h2 em { color: var(--sky); text-shadow: 0 0 34px var(--glow); }
.hero-sub { max-width: 35em; margin-top: 32px; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-copy > * { animation: boot .7s steps(8) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; } .hero-copy > :nth-child(3) { animation-delay: .24s; } .hero-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes boot { from { opacity: 0; transform: translateY(10px); } }

.scope { aspect-ratio: 1; width: 100%; max-width: 500px; margin-left: auto; background-color: transparent; overflow: hidden; }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd { position: absolute; color: var(--ink-3); font-size: 10px; display: inline-flex; align-items: center; gap: 7px; }
.rd-tl { top: 12px; left: 14px; } .rd-tr { top: 12px; right: 14px; } .rd-bl { bottom: 12px; left: 14px; } .rd-br { bottom: 12px; right: 14px; color: var(--sky); }

.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(44px, 7vh, 84px); border: 1px solid var(--line); background: var(--panel); }
.stats div { padding: 20px 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { margin-top: 14px; font: 400 clamp(28px, 3.8vw, 52px)/1 var(--display); color: var(--sky); }
.stats dd { margin-top: 10px; font: 400 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* Ticker */
.ticker { margin-top: clamp(40px, 6vh, 70px); overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: slide 80s linear infinite; }
.ticker-track span { padding: 13px 0; font: 400 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker-track span::after { content: "+"; margin: 0 24px; color: var(--sky); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.sec-head { margin-bottom: clamp(30px, 5vh, 52px); }
.bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-block: 1px solid var(--line); color: var(--ink-3); margin-bottom: 34px; }
.bar b { font-weight: 500; color: var(--sky); margin-left: 6px; }
.bar-r { color: var(--ink-2); text-align: right; }
h2 { font: 400 clamp(22px, 3.4vw, 46px)/1.22 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.lede { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--ink-2); max-width: 44em; }

/* Division table */
.table { font-family: var(--mono); font-size: 13px; }
.table-head, .table-row { display: grid; grid-template-columns: 70px 190px minmax(0, 1fr) 150px 110px; gap: 16px; align-items: center; padding: 14px 22px; }
.table-head { color: var(--ink-3); border-bottom: 1px solid var(--line); font-size: 10.5px; }
.table-row { border-bottom: 1px solid var(--line-2); transition: background .15s, color .15s; }
.table-row:last-child { border-bottom: 0; }
.table-row b { font: 400 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.table-row .scope-col { color: var(--ink-2); font-family: var(--sans); font-size: 15px; }
.table-row .units { color: var(--ink-2); }
.table-row:hover { background: color-mix(in srgb, var(--sky) 9%, transparent); }
.table-row:hover b { color: var(--sky); }

/* Core */
.core-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.core-copy > p { color: var(--ink-2); max-width: 42em; }
.surfaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.surfaces a { display: grid; gap: 6px; padding: 18px 18px 16px; transition: box-shadow .2s, background-color .2s; }
.surfaces a:hover { box-shadow: 0 0 34px -12px var(--glow); background-color: color-mix(in srgb, var(--sky) 7%, var(--panel)); }
.surfaces b { margin-top: 8px; font: 400 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.surfaces a > span:nth-of-type(2) { font-size: 14.5px; color: var(--ink-2); }
.surfaces .endpoint { margin-top: 8px; font-size: 11.5px; }
.term { font-family: var(--mono); font-size: 12.5px; }
.term-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.term-body { padding: 16px; }
.cmd { color: var(--ink); margin-bottom: 12px; } .cmd:last-child { margin: 12px 0 0; }
.cmd span { color: var(--sky); }
.cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--sky); animation: pulse 1s steps(2, jump-none) infinite; }
.proc { display: grid; grid-template-columns: 38px minmax(0, 1fr) 96px 40px; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.proc span:nth-child(2) { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proc span:nth-child(3) { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.proc-head { color: var(--ink-3); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border-bottom-style: solid; border-color: var(--line); }
.proc-head span:nth-child(2) { color: var(--ink-3); }
.run { color: var(--sky); animation: pulse 2.6s steps(2, jump-none) infinite; animation-delay: calc(var(--i) * -.41s); }
.term-foot { padding: 12px 16px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--sans); color: var(--ink-3); }

/* Units */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.unit { display: flex; flex-direction: column; min-height: 214px; padding: 16px 18px 16px; transition: box-shadow .25s, background-color .25s, transform .25s; }
.unit:hover { background-color: color-mix(in srgb, var(--sky) 7%, var(--panel)); box-shadow: 0 0 44px -14px var(--glow), inset 0 0 0 1px color-mix(in srgb, var(--sky) 55%, transparent); transform: translateY(-2px); }
.unit-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.unit-top .state { font-size: 10px; }
.unit h3 { margin-top: 20px; font: 400 17px/1.25 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.unit:hover h3 { color: var(--sky); }
.unit p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.unit-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.tag { color: var(--ink-2); border: 1px solid var(--line); padding: 4px 8px; font-size: 10px; white-space: nowrap; }
.unit-foot .endpoint { font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lines .line { display: grid; grid-template-columns: 110px minmax(0, 260px) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 22px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.lines .line:last-child { border-bottom: 0; }
.line:hover { background: color-mix(in srgb, var(--sky) 9%, transparent); }
.line h3 { font: 400 clamp(15px, 1.5vw, 19px)/1.25 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.line:hover h3 { color: var(--sky); }
.line p { color: var(--ink-2); font-size: 15px; }
.line .endpoint { font-size: 12px; }

.demos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 14px 18px; border: 1px dashed var(--line); }
.demos-label { color: var(--ink-3); margin-right: 10px; }
.demos a { font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); color: var(--ink-2); transition: color .2s, border-color .2s; }
.demos a:hover { color: var(--sky); border-color: var(--sky); }

.directives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.directives article { padding: 22px 22px 26px; }
.directives h3 { margin: 22px 0 14px; font: 400 clamp(15px, 1.45vw, 19px)/1.4 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--sky); }
.directives p { color: var(--ink-2); font-size: 15px; }

.contact { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 14vh, 160px) var(--pad); }
.contact-inner { padding: clamp(36px, 7vw, 90px); background-image: radial-gradient(700px 320px at 85% 0%, color-mix(in srgb, var(--blue) 30%, transparent), transparent 70%); }
.contact-inner > p:not(.sys) { margin: 22px 0 34px; max-width: 34em; color: var(--ink-2); font-size: 17px; }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px var(--pad) 24px; }
.footer > * { max-width: var(--max); margin-inline: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-top p { font: 400 12px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--sky); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 34px 0 40px; }
.footer h4 { font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer h4.mt { margin-top: 24px; }
.footer-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); transition: color .15s; }
.footer-cols a:hover { color: var(--sky); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease, box-shadow .25s, background-color .25s; }
.reveal.in { opacity: 1; transform: none; }
.unit.reveal.in:hover { transform: translateY(-2px); }

@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; }
  .scope { max-width: 380px; margin: 10px auto 0; }
  .core-grid { grid-template-columns: 1fr; }
  .directives { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 6px; }
  .table-row .scope-col { grid-column: 2 / -1; grid-row: 2; }
  .table-row .units { display: none; }
  .lines .line { grid-template-columns: 1fr; gap: 8px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wordmark { font-size: 10.5px; letter-spacing: .16em; }
  .nav-end .btn-sm { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .surfaces, .grid, .grid-wide { grid-template-columns: 1fr; }
  .unit { min-height: 0; }
  .sys span, .bar-r { display: none; }
  .proc { grid-template-columns: 30px minmax(0, 1fr) 36px; } .proc span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
