:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --panel: #11161e;
  --panel-dark: #0d1118;
  --text: #f2f4f8;
  --muted: #aab4c4;
  --line: #2b3543;
  --orange: #ff6b00;
  --cyan: #00e5ff;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--orange); }
img, svg { display: block; max-width: 100%; }
figure, p, h1, h2, h3, h4, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1; }
.shell { width: min(100% - 3rem, 77rem); margin-inline: auto; }
.mono, .eyebrow { font: 600 .72rem/1.45 var(--mono); letter-spacing: .055em; }
.accent { color: var(--orange); }
.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 10; padding: .7rem 1rem; background: var(--cyan); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 5; background: #0a0c10f5; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.05rem/1 var(--display); white-space: nowrap; }
.brand svg { width: 2.3rem; color: var(--orange); }
.brand strong { color: var(--orange); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 2.25vw, 2rem); }
nav a:not(.button) { color: var(--muted); font: 600 .72rem/1.3 var(--mono); text-transform: uppercase; padding-block: .8rem; }
nav a:not(.button):hover { color: var(--cyan); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 2.9rem; padding: .65rem 1rem; border: 1px solid var(--line); font: 700 .74rem/1.3 var(--mono); text-transform: uppercase; transition: background .18s, border-color .18s, color .18s; }
.button span { font-size: 1.05em; }
.primary { background: var(--orange); color: var(--bg); border-color: var(--orange); }
.primary:hover { background: #ff9245; color: var(--bg); border-color: #ff9245; }
.secondary:hover { border-color: var(--cyan); background: #00e5ff0d; }
.nav-cta, .menu-toggle { color: var(--orange); border-color: #a44a17; }
.nav-cta:hover { color: var(--bg); background: var(--orange); border-color: var(--orange); }
.menu-toggle { background: var(--panel); border: 1px solid #a44a17; min-height: 2.75rem; padding-inline: .8rem; font: 600 .75rem var(--mono); text-transform: uppercase; }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 82% 44%, #28201d80, transparent 58%), radial-gradient(circle, #35415280 1px, transparent 1px) 0 0 / 22px 22px, var(--bg); }
.hero-meta, .hero-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem; color: var(--muted); padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.hero-meta span:first-child { color: var(--cyan); }
.signal { display: inline-block; width: .42rem; height: .42rem; margin-right: .2rem; background: var(--cyan); box-shadow: 0 0 .65rem #00e5ff80; vertical-align: .08em; }
.signal-orange { background: var(--orange); box-shadow: 0 0 .65rem #ff6b0080; }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.6rem, 5.5vw, 5.25rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--orange); margin-bottom: 1.25rem; }
.eyebrow > span { width: 1.4rem; height: 1px; background: currentColor; flex: none; }
h1 { font-size: clamp(3rem, 6.45vw, 6.35rem); letter-spacing: -.076em; line-height: .89; }
h1 em { font-style: normal; color: var(--orange); }
.lede { max-width: 52ch; margin-top: 1.55rem; color: var(--muted); }
.lede strong { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.hero-display { border: 1px solid var(--line); background: var(--panel-dark); box-shadow: 0 20px 55px #0008; min-width: 0; }
.frame-caption, .image-label { display: flex; justify-content: space-between; gap: .55rem; color: var(--muted); padding: .7rem .9rem; }
.frame-caption span:first-child { color: var(--cyan); }
.hero-image { position: relative; border-block: 1px solid var(--line); }
.hero-image img { width: 100%; height: auto; }
.image-label { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, #0a0c10e8); align-items: end; padding-top: 1.7rem; }
.image-label span:first-child { color: var(--text); }
.terminal { padding: .85rem .9rem 1rem; }
.terminal-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; color: var(--cyan); }
.terminal-head span:last-child { color: var(--muted); }
.terminal-head span:first-child { margin-right: auto; }
.terminal-head button { color: var(--muted); border: 1px solid var(--line); background: transparent; min-height: 1.65rem; font: inherit; }
.terminal-head button:hover { color: var(--text); }
.terminal dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .7rem; }
.terminal dl > div { padding: .55rem .52rem; border: 1px solid var(--line); min-width: 0; }
.terminal dt { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.terminal dd { font-size: clamp(1.02rem, 2.5vw, 1.9rem); color: var(--text); letter-spacing: -.06em; }
.hero-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.hero-footer a { color: var(--cyan); }
.hero-footer a:hover, .site-footer a:hover { text-decoration: underline; }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section-heading { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 1.1rem 2rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2.6rem, 6.3vw, 5.85rem); letter-spacing: -.07em; line-height: .93; }
.section-heading > p, .comparison dd, .features article > p:last-child, .pipeline-grid p, .ordnance-intro > p:not(.eyebrow) { color: var(--muted); }
.section-heading > p { max-width: 46ch; padding-bottom: .12rem; }
.comparison, .features, .pipeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.comparison article, .features article, .pipeline-grid li { background: var(--panel-dark); padding: clamp(1.1rem, 2.7vw, 2rem); }
.card-tag { color: var(--cyan); display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1.2rem; }
.card-tag span + span { font-size: 1rem; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.045em; }
.comparison dl { margin-top: 1.4rem; }
.comparison dt { color: var(--orange); font: 600 .69rem/1.45 var(--mono); text-transform: uppercase; }
.comparison dt:nth-of-type(2) { color: var(--cyan); margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.comparison dd, .features article > p:last-child, .pipeline-grid p { font-size: .92rem; margin-top: .35rem; }
.game-section, .pipeline { background: #0e131a; border-block: 1px solid var(--line); }
.theater { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12.5rem, .32fr); border: 1px solid var(--line); }
.theater-image { --map-color: #5ad9cf; position: relative; min-height: 25rem; overflow: hidden; display: grid; align-content: space-between; background: radial-gradient(ellipse at 65% 48%, color-mix(in srgb, var(--map-color) 18%, #0b1721), transparent 65%), #0a151d; }
.theater-image::before, .ordnance-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#7de8ff14 1px, transparent 1px), linear-gradient(90deg, #7de8ff14 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.theater-image .frame-caption { position: relative; z-index: 1; background: #0a0f16db; border-bottom: 1px solid var(--line); }
#theater-map { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--map-color); fill: none; stroke: currentColor; }
.map-fallback, #map-contours { opacity: .55; }
.map-target { color: #d1ffff; transform: translate(var(--target-x, 485px), var(--target-y, 149px)); }
.theater-info { position: relative; padding: 2.8rem 1.25rem 1.15rem; background: linear-gradient(transparent, #0a0e16f5 60%); }
.theater-info span { color: var(--cyan); }
.theater-info h3 { margin-block: .35rem; }
.theater-info p { color: var(--muted); }
.theater-list { background: var(--panel-dark); display: grid; align-content: start; border-left: 1px solid var(--line); }
.theater-list > p { display: flex; justify-content: space-between; gap: .5rem; padding: .75rem .85rem; color: var(--muted); }
.theater-list > p span { color: var(--cyan); }
.theater-list button, .ordnance-controls button { min-height: 2.75rem; border: 0; border-top: 1px solid var(--line); text-align: left; padding: .55rem .85rem; text-transform: uppercase; color: var(--muted); background: transparent; font: 600 .75rem/1.35 var(--mono); }
.theater-list button span { margin-right: .55rem; color: var(--cyan); }
.theater-list button:hover, .ordnance-controls button:hover { background: #ffffff0c; color: var(--text); }
.theater-list button[aria-pressed='true'], .ordnance-controls button[aria-pressed='true'] { background: #ff6b0018; color: var(--text); box-shadow: inset 3px 0 var(--orange); }
.theater-list button:focus-visible, .ordnance-controls button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.features { margin-top: 1.15rem; }
.features h3, .pipeline-grid h3 { margin-bottom: .55rem; }
kbd { font: 600 .76rem var(--mono); color: var(--text); border: 1px solid var(--line); padding: .05rem .25rem; white-space: nowrap; }
.ordnance { margin-top: 1.15rem; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--panel-dark); }
.ordnance-intro, .ordnance-readout { padding: clamp(1rem, 2.6vw, 2rem); }
.ordnance-intro h3 { margin-bottom: .5rem; }
.ordnance-controls { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .95rem; }
.ordnance-controls button { border: 1px solid var(--line); font-size: .69rem; }
.ordnance-readout { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; border-left: 1px solid var(--line); }
.ordnance-visual { position: relative; display: grid; place-items: center; isolation: isolate; width: clamp(5rem, 12vw, 9rem); aspect-ratio: 1; background: #0b181f; border: 1px solid var(--line); color: var(--cyan); }
.ordnance-visual::before { z-index: -1; background-size: 15px 15px; }
.ordnance-visual span { position: absolute; border: 1px solid var(--cyan); background: #00e5ff1a; width: var(--blast, 22%); aspect-ratio: 1; border-radius: 50%; transition: width .25s ease; }
.ordnance-visual b { position: relative; font: 500 1rem var(--mono); }
.ordnance-detail h4 { color: var(--cyan); font: 700 .88rem/1.35 var(--mono); }
.ordnance-detail dl { margin-top: .4rem; }
.ordnance-detail dl div { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .18rem .65rem; padding-block: .26rem; font-size: .82rem; }
.ordnance-detail dt { color: var(--muted); }
.detector { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem 2rem; }
.audit { background: var(--panel-dark); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.6rem); }
.audit fieldset { min-inline-size: 0; padding: 0; border: 0; margin: 0; }
.audit legend, .audit-result label { color: var(--muted); padding: 0; margin-bottom: .55rem; }
.audit fieldset label { display: flex; align-items: center; gap: .7rem; padding: .5rem .2rem; min-height: 2.75rem; border-bottom: 1px solid var(--line); font-size: .92rem; cursor: pointer; }
.audit fieldset label:hover { background: #ffffff09; }
.audit input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--orange); }
.audit-result { padding-top: 1rem; }
.audit-result label, .audit-result meter { display: block; }
meter { width: 100%; height: .7rem; accent-color: var(--orange); }
meter::-webkit-meter-bar { background: #263142; border: 0; border-radius: 0; }
meter::-webkit-meter-optimum-value { background: var(--orange); }
meter::-moz-meter-bar { background: var(--orange); }
.audit-result output { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .9rem; margin-top: .5rem; font: 600 .72rem var(--mono); color: var(--cyan); }
.audit-result output strong { font: 700 1.8rem/1 var(--display); }
.pipeline-grid { list-style: none; padding: 0; margin: 0; }
.pipeline-grid .mono { display: block; color: var(--cyan); margin-bottom: .8rem; }
.community { margin-top: 1.5rem; }
.community h3 { font-size: 1.35rem; }
.community ul { padding: 0; margin: .85rem 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.channel-status { display: inline-block; color: var(--muted); border: 1px dashed var(--line); padding: .6rem; font-size: .84rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: .7rem 1rem; justify-content: space-between; padding-block: 1.45rem; color: var(--muted); }
.site-footer a { color: var(--cyan); }
.noscript { color: var(--muted); padding-bottom: 1rem; }
.reveal-in { animation: reveal .52s ease-out both; }
@keyframes reveal { from { opacity: .45; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 56rem) {
  .header-inner { flex-wrap: wrap; min-height: 3.9rem; gap: 0 .8rem; }
  nav { width: 100%; flex-wrap: wrap; padding-bottom: .65rem; }
  .menu-toggle:not([hidden]) + nav { display: none; }
  .menu-toggle[aria-expanded='true'] + nav { display: flex; }
  .hero-grid { gap: 1.5rem; }
  .terminal dl { gap: .3rem; }
  .terminal dl > div { padding: .42rem .32rem; }
  .ordnance-readout { grid-template-columns: 1fr; }
  .ordnance-visual { width: 5.5rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-grid, .section-heading, .comparison, .features, .theater, .ordnance, .detector, .pipeline-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.5rem, 12vw, 5.25rem); }
  h2 { font-size: clamp(2rem, 9.5vw, 4.5rem); }
  .theater-image { min-height: 17.5rem; }
  .theater-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); }
  .theater-list > p { grid-column: 1 / -1; }
  .theater-list button:nth-of-type(even) { border-left: 1px solid var(--line); }
  .ordnance-readout { grid-template-columns: auto 1fr; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 25rem) {
  .hero-meta, .hero-footer, .frame-caption, .image-label { font-size: .64rem; }
  .terminal-head { font-size: .64rem; }
  .terminal dt { font-size: .57rem; }
  .theater-list button { padding-inline: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}