:root {
    color-scheme: dark;
    --ink: #02050a;
    --panel: #030912;
    --panel-strong: #06121a;
    --cyan: #57fff0;
    --lime: #8cff38;
    --amber: #ff9b35;
    --magenta: #ff57ad;
    --copy: #b9d7df;
    --muted: #71939d;
    --rule: rgba(87, 255, 240, .28);
    --content: min(1480px, calc(100vw - 80px));
    font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--copy); }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: url("assets/background.png") center top / cover fixed; opacity: .58; }
body::after { content: ""; position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(2,5,10,.24), var(--ink) 88%); pointer-events: none; }
a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.signal-field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .38; pointer-events: none; }

.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; width: 100%; min-height: 74px; padding: 10px max(40px, calc((100vw - 1480px) / 2)); border-bottom: 1px solid rgba(140,255,56,.42); background: rgba(2,5,10,.93); }
.brand { width: 210px; }
.brand img, .footer-brand img { width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; gap: clamp(24px, 4vw, 64px); }
.site-nav a, .site-footer nav a { position: relative; padding: 12px 0; color: var(--copy); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after, .site-footer nav a::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .24s ease-out; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-footer nav a:hover::after, .site-footer nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-download { min-width: 190px; padding: 13px 18px; border: 1px solid rgba(140,255,56,.58); background: rgba(140,255,56,.07); color: #fff; font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background .2s ease, border-color .2s ease; }
.header-download span { color: var(--lime); }
.header-download:hover, .header-download:focus-visible { border-color: var(--lime); background: rgba(140,255,56,.15); outline: none; }
.nav-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(380px, .82fr) minmax(620px, 1.35fr); align-items: center; width: var(--content); min-height: calc(100vh - 74px); margin: 0 auto; padding: 60px 0 88px; gap: clamp(38px, 5vw, 92px); }
.hero::before { content: ""; position: absolute; left: -30px; top: 10%; bottom: 12%; width: 1px; background: linear-gradient(transparent, var(--cyan) 18%, var(--lime) 78%, transparent); }
.hero-signal { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(140,255,56,.75); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; color: #fff; font-size: clamp(3.8rem, 6.7vw, 7.2rem); font-weight: 780; letter-spacing: -.04em; line-height: .84; text-transform: uppercase; }
h1 strong { display: block; color: var(--lime); font-weight: inherit; }
.hero-deck { max-width: 62ch; margin: 32px 0; color: var(--copy); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 690px; }
.command { position: relative; display: flex; min-height: 76px; padding: 16px 18px; border: 1px solid var(--rule); flex-direction: column; justify-content: center; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.command::after { content: ""; position: absolute; top: -1px; right: 12px; width: 46px; height: 2px; background: var(--cyan); }
.command span { color: #fff; font-size: .83rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.command small { margin-top: 7px; color: var(--muted); font-size: .68rem; letter-spacing: .04em; }
.command.primary { border-color: rgba(140,255,56,.64); background: rgba(140,255,56,.075); }
.command.primary::after { background: var(--lime); }
.command.secondary { background: rgba(87,255,240,.035); }
.command:hover, .command:focus-visible { border-color: #fff; background: rgba(255,255,255,.075); outline: none; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 690px; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.hero-facts div { padding: 16px 12px 0 0; }
.hero-facts dt { color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-facts dd { margin: 5px 0 0; color: var(--cyan); font-size: .78rem; font-weight: 650; }
.hero-visual { position: relative; margin: 0; border: 1px solid rgba(87,255,240,.42); background: #000; clip-path: polygon(0 0, 96% 0, 100% 7%, 100% 100%, 4% 100%, 0 93%); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,5,10,.14), transparent 60%); pointer-events: none; }
.hero-visual img { width: 100%; aspect-ratio: 1.745; object-fit: cover; }
.hero-visual figcaption { display: flex; justify-content: space-between; padding: 11px 15px; border-top: 1px solid var(--rule); color: var(--cyan); font-size: .65rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: 0; bottom: 34px; color: var(--muted); font-size: .67rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { margin-left: 10px; color: var(--lime); }

.protocol-section, .records-section, .gallery-section { width: var(--content); margin: 0 auto; padding: 118px 0; border-top: 1px solid rgba(87,255,240,.22); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr); align-items: end; gap: 80px; margin-bottom: 50px; }
.section-heading h2, .universe-copy h2, .download-section h2 { margin: 0; color: #fff; font-size: clamp(2.5rem, 4.2vw, 5rem); font-weight: 760; letter-spacing: -.035em; line-height: .96; text-transform: uppercase; }
.section-heading p, .universe-copy > p, .download-section > div > p { max-width: 67ch; margin: 0; color: var(--copy); line-height: 1.75; }
.protocol-router { display: grid; grid-template-columns: minmax(300px, .6fr) minmax(0, 1.4fr); min-height: 570px; border: 1px solid rgba(87,255,240,.34); background: rgba(2,8,13,.92); }
.protocol-tabs { display: flex; padding: 18px 0; border-right: 1px solid var(--rule); flex-direction: column; }
.protocol-tabs button { display: flex; min-height: 84px; padding: 0 30px; border: 0; border-bottom: 1px solid rgba(87,255,240,.1); align-items: center; justify-content: space-between; background: transparent; color: var(--copy); cursor: pointer; font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 720; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.protocol-tabs button span { color: var(--muted); font-size: .65rem; letter-spacing: .1em; }
.protocol-tabs button:hover, .protocol-tabs button:focus-visible { background: rgba(87,255,240,.05); color: #fff; outline: none; }
.protocol-tabs button[aria-selected="true"] { box-shadow: inset 4px 0 var(--lime); background: rgba(140,255,56,.07); color: var(--lime); }
.protocol-readout { position: relative; display: flex; overflow: hidden; padding: clamp(44px, 6vw, 92px); flex-direction: column; justify-content: center; }
.protocol-code { position: absolute; top: 28px; right: 32px; color: var(--magenta); font-size: .76rem; font-weight: 700; letter-spacing: .14em; }
.protocol-readout h3 { margin: 0; color: #fff; font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 780; letter-spacing: -.04em; line-height: .9; text-transform: uppercase; }
.protocol-readout > p { max-width: 58ch; margin: 34px 0 40px; color: var(--copy); font-size: 1.08rem; line-height: 1.7; }
.protocol-readout dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.protocol-readout dl div { padding: 20px 12px 0 0; }
.protocol-readout dt { color: var(--muted); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; }
.protocol-readout dd { margin: 7px 0 0; color: var(--cyan); font-size: .82rem; font-weight: 680; text-transform: uppercase; }
.protocol-trace { position: absolute; right: -8%; bottom: -14%; left: 34%; display: flex; height: 190px; align-items: end; gap: 18px; opacity: .14; transform: skewX(-18deg); }
.protocol-trace i { width: 2px; height: 40%; background: var(--cyan); transform-origin: bottom; animation: trace 1.7s ease-in-out infinite alternate; }
.protocol-trace i:nth-child(2) { height: 80%; animation-delay: -.4s; }.protocol-trace i:nth-child(3) { height: 54%; animation-delay: -.9s; }.protocol-trace i:nth-child(4) { height: 100%; animation-delay: -.2s; }.protocol-trace i:nth-child(5) { height: 64%; animation-delay: -.7s; }.protocol-trace i:nth-child(6) { height: 32%; animation-delay: -1.1s; }.protocol-trace i:nth-child(7) { height: 73%; animation-delay: -.5s; }

.universe-section { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(380px, .76fr); width: 100%; min-height: 850px; background: #010307; }
.universe-image { position: relative; overflow: hidden; }
.universe-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, #010307), linear-gradient(0deg, #010307, transparent 28%); pointer-events: none; }
.universe-image img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.image-tag { position: absolute; left: max(40px, calc((100vw - 1480px) / 2)); bottom: 38px; z-index: 2; padding: 10px 14px; border: 1px solid rgba(183,112,255,.5); color: #d5a8ff; background: rgba(3,2,9,.84); font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.universe-copy { display: flex; padding: clamp(70px, 7vw, 130px) max(40px, calc((100vw - 1480px) / 2)) clamp(70px, 7vw, 130px) clamp(42px, 5vw, 96px); flex-direction: column; justify-content: center; }
.universe-copy h2 { color: #d7aeff; }
.universe-copy > p { margin-top: 30px; }
.system-list { display: grid; margin: 40px 0 28px; padding: 0; gap: 0; list-style: none; }
.system-list li { padding: 18px 0; border-top: 1px solid rgba(183,112,255,.22); color: var(--copy); line-height: 1.55; }
.system-list li span { display: block; margin-bottom: 5px; color: #d5a8ff; font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.text-route { align-self: flex-start; padding: 10px 0; color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.text-route span { margin-left: 12px; color: var(--magenta); }

.records-heading { align-items: center; }
.records-heading > div > p { margin-top: 20px; }
.archive-state { display: flex; justify-self: end; align-items: center; gap: 10px; color: var(--amber); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-state span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.archive-state.online { color: var(--lime); }.archive-state.offline { color: var(--magenta); }
.record-controls { display: grid; grid-template-columns: minmax(320px, 1fr) 130px minmax(220px, .45fr) auto; align-items: center; border: 1px solid var(--rule); background: rgba(3,9,15,.92); }
.board-switch { display: grid; grid-template-columns: 1fr 1fr; }
.board-switch button, .refresh-records { min-height: 58px; border: 0; border-right: 1px solid var(--rule); background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.board-switch button[aria-selected="true"] { box-shadow: inset 0 -3px var(--lime); background: rgba(140,255,56,.06); color: #fff; }
.board-switch button:hover, .board-switch button:focus-visible, .refresh-records:hover, .refresh-records:focus-visible { background: rgba(87,255,240,.06); color: #fff; outline: none; }
.board-select-label { padding-left: 24px; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#board-select { min-height: 42px; margin: 7px 12px; padding: 0 12px; border: 1px solid rgba(87,255,240,.35); border-radius: 0; background: #061018; color: #fff; }
.refresh-records { padding: 0 28px; border-left: 1px solid var(--rule); border-right: 0; color: var(--cyan); }
.record-board { min-height: 590px; border: 1px solid rgba(140,255,56,.38); border-top: 0; background: rgba(1,6,10,.96); }
.record-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 32px 38px; border-bottom: 1px solid rgba(140,255,56,.25); }
.record-title h3 { margin: 0; color: var(--lime); font-size: clamp(1.5rem, 2.5vw, 2.5rem); letter-spacing: -.02em; text-transform: uppercase; }
.record-title span { color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 15px 38px; border-bottom: 1px solid rgba(87,255,240,.18); color: var(--cyan); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
td { padding: 18px 38px; border-bottom: 1px solid rgba(87,255,240,.075); color: var(--copy); font-size: .85rem; }
tbody tr:first-child { background: rgba(140,255,56,.055); }
tbody tr:first-child td { color: #fff; }
tbody tr:hover { background: rgba(87,255,240,.035); }
td:first-child { width: 110px; color: var(--lime); font-variant-numeric: tabular-nums; }
.numeric { color: var(--lime); font-variant-numeric: tabular-nums; text-align: right; }
.record-empty td { height: 390px; color: var(--muted); text-align: center; white-space: normal; }
.record-note { max-width: 84ch; margin: 22px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.65; }

.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr .82fr; grid-template-rows: 300px 300px; gap: 14px; }
.gallery-grid figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(87,255,240,.24); background: #000; }
.gallery-grid .gallery-wide { grid-row: span 2; }.gallery-grid .gallery-tall { grid-row: span 2; }
.gallery-grid button { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
.gallery-grid button:hover img, .gallery-grid button:focus-visible img { opacity: 1; transform: scale(1.025); }
.gallery-grid button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.gallery-grid span { position: absolute; right: 16px; bottom: 14px; left: 16px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.5); color: #fff; font-size: .67rem; font-weight: 750; letter-spacing: .12em; text-align: left; text-transform: uppercase; }

.download-section { display: grid; grid-template-columns: 1fr minmax(480px, .72fr); align-items: center; width: 100%; min-height: 520px; padding: 90px max(40px, calc((100vw - 1480px) / 2)); gap: clamp(60px, 9vw, 170px); border-top: 1px solid rgba(140,255,56,.35); border-bottom: 1px solid rgba(140,255,56,.35); background: rgba(5,14,8,.94); }
.download-section h2 { color: var(--lime); font-size: clamp(3rem, 6vw, 7rem); }
.download-section > div > p { margin-top: 24px; }
.download-command .command { min-height: 92px; }
.download-command > p { margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.site-footer { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; width: var(--content); min-height: 150px; margin: 0 auto; gap: 40px; }
.footer-brand { width: 190px; }
.site-footer > p { color: var(--muted); font-size: .72rem; }
.site-footer nav { display: flex; gap: 30px; }
.site-footer nav a { font-size: .65rem; }

.lightbox { width: min(94vw, 1500px); max-width: none; padding: 48px 12px 12px; border: 1px solid var(--cyan); background: #010409; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox button { position: absolute; top: 10px; right: 12px; padding: 8px 12px; border: 1px solid var(--rule); background: transparent; color: var(--cyan); cursor: pointer; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

@keyframes trace { to { transform: scaleY(.38); opacity: .45; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: no-preference) { .live-dot, .archive-state span { animation: pulse 2s ease-in-out infinite; } }

@media (max-width: 1100px) {
    :root { --content: min(100% - 40px, 1480px); }
    .site-header { grid-template-columns: 220px 1fr auto; padding-inline: 20px; }.brand { width: 180px; }.site-nav { gap: 22px; }
    .hero { grid-template-columns: 1fr; padding-top: 46px; }.hero-copy { max-width: 820px; }.hero-visual { width: 100%; }.scroll-cue { display: none; }
    .section-heading { gap: 40px; }.universe-section { grid-template-columns: 1fr; }.universe-image { min-height: 600px; }.universe-image::after { background: linear-gradient(0deg,#010307,transparent 42%); }.universe-copy { padding: 80px max(40px, calc((100vw - 920px) / 2)); }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 280px 380px; }.gallery-grid .gallery-wide { grid-column: span 2; grid-row: auto; }.gallery-grid .gallery-tall { grid-row: span 2; }
    .download-section { grid-template-columns: 1fr; }.site-footer { grid-template-columns: 180px 1fr; }.site-footer nav { grid-column: 1 / -1; padding-bottom: 28px; }
}

@media (max-width: 760px) {
    :root { --content: calc(100% - 24px); }
    .site-header { grid-template-columns: 1fr auto; min-height: 66px; }.brand { width: 166px; }.header-download { display: none; }
    .nav-toggle { display: grid; width: 46px; height: 42px; padding: 10px; border: 1px solid var(--rule); background: transparent; place-content: center; gap: 4px; }.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 1px; background: var(--cyan); }
    .site-nav { position: absolute; top: 66px; right: 0; left: 0; display: none; padding: 14px 20px 22px; border-bottom: 1px solid var(--lime); flex-direction: column; background: rgba(2,5,10,.98); }.site-nav.open { display: flex; }
    .hero { min-height: 0; padding: 54px 0 70px; }.hero::before { display: none; }h1 { font-size: clamp(3rem, 16vw, 5.3rem); }.hero-actions { grid-template-columns: 1fr; }.hero-facts { grid-template-columns: 1fr; }.hero-facts div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(87,255,240,.1); }.hero-facts dd { margin: 0; }
    .hero-visual figcaption { flex-direction: column; gap: 5px; }
    .protocol-section, .records-section, .gallery-section { padding: 76px 0; }.section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }.section-heading h2, .universe-copy h2, .download-section h2 { font-size: clamp(2.6rem, 12vw, 4.5rem); }
    .protocol-router { grid-template-columns: 1fr; min-height: 0; }.protocol-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border-right: 0; border-bottom: 1px solid var(--rule); }.protocol-tabs button { min-height: 68px; padding: 10px 14px; font-size: .82rem; }.protocol-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px var(--lime); }.protocol-tabs button span { display: none; }.protocol-readout { min-height: 430px; padding: 54px 24px 40px; }.protocol-readout h3 { font-size: clamp(2.8rem, 14vw, 5rem); }.protocol-readout dl { grid-template-columns: 1fr; }.protocol-readout dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(87,255,240,.08); }.protocol-readout dd { margin: 0; }
    .universe-image { min-height: 390px; }.image-tag { left: 18px; bottom: 18px; }.universe-copy { padding: 58px 20px 72px; }
    .records-heading .archive-state { justify-self: start; }.record-controls { grid-template-columns: 1fr auto; }.board-switch { grid-column: 1 / -1; }.board-switch button { border-bottom: 1px solid var(--rule); }.board-select-label { padding-left: 14px; }.refresh-records { padding: 0 18px; }.record-title { align-items: flex-start; padding: 24px 18px; flex-direction: column; }.record-board { min-height: 500px; }th, td { padding: 14px 18px; }.record-empty td { height: 300px; }
    .gallery-grid { display: flex; flex-direction: column; }.gallery-grid figure { height: 260px; }.gallery-grid .gallery-wide { height: 300px; }.gallery-grid .gallery-tall { height: 300px; }
    .download-section { min-height: 0; padding: 72px 20px; gap: 44px; }.site-footer { display: flex; width: calc(100% - 40px); padding: 38px 0; align-items: flex-start; flex-direction: column; }.site-footer nav { flex-wrap: wrap; gap: 18px 28px; padding: 0; }
}

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