/* NSI Hosting: black, white and laser red.
   Display type is Anybody (variable width 50 to 150), telemetry is Martian Mono. */

:root {
  --void: #000;
  --signal: #fff;
  --laser: #ff1a2e;
  --laser-deep: #e0001b;
  --ash: #a3a3a3;
  --smoke: #6b6b6b;
  --fg: #fff;
  --fg-soft: #a3a3a3;
  --hair: rgba(255, 255, 255, 0.16);
  --hair-strong: rgba(255, 255, 255, 0.34);
  --ink-soft: #474747;
  --display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(14px, 1.9vw, 26px);
  --gutter: clamp(20px, 7vw, 124px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --lb: 0;
  --lbh: 10vh;
  --warp: 0;
  --flash: 0;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--laser); color: #fff; }
:focus-visible { outline: 2px solid var(--laser); outline-offset: 3px; }
section:focus, footer:focus { outline: none; }

.skip {
  position: fixed;
  left: var(--pad);
  top: -80px;
  z-index: 500;
  padding: 12px 16px;
  background: var(--laser-deep);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: calc(var(--pad) + env(safe-area-inset-top, 0px)); }

/* ---------- Canvas, veil, content layer ---------- */

.gl {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
  background: #000;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: var(--flash);
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 28%, rgba(255, 214, 218, 0.92) 52%, rgba(255, 26, 46, 0.4) 78%, rgba(0, 0, 0, 0) 100%);
}

main, .foot { position: relative; z-index: 10; overflow-x: clip; }
main { opacity: calc(1 - var(--warp) * 0.8); }

/* ---------- Type ---------- */

.h2 {
  margin: 0 0 0.42em;
  font-size: clamp(34px, 4.4vw, 74px);
  font-weight: 780;
  font-stretch: 138%;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin: 0 0 1em;
  max-width: 34em;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--fg-soft);
}

/* ---------- Buttons ---------- */

.btn {
  --bg: transparent;
  --bd: var(--hair-strong);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s, background-color 0.35s, color 0.35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.22) 47%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.22) 53%, transparent 68%);
  transform: translateX(-120%);
}
.btn:hover::before, .btn:focus-visible::before { animation: sweep 0.85s var(--ease-io); }
@keyframes sweep { to { transform: translateX(120%); } }

.btn-laser { --bg: var(--laser-deep); --bd: var(--laser); }
.btn-laser:hover, .btn-laser:focus-visible {
  box-shadow: 0 0 0 1px var(--laser), 0 0 34px 4px rgba(255, 26, 46, 0.55), 0 0 90px 12px rgba(255, 26, 46, 0.22);
}
.btn-ghost { background: rgba(0, 0, 0, 0.3); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.14); }
.btn-meta { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--fg-soft); letter-spacing: 0; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-xl { min-height: 62px; padding: 0 32px; font-size: 17px; }
.btn[disabled] { cursor: default; opacity: 0.75; }

.ico-play {
  width: 0;
  height: 0;
  border-left: 8px solid var(--laser);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  filter: drop-shadow(0 0 4px rgba(255, 26, 46, 0.8));
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  color: var(--fg);
}
.hud a, .hud button { pointer-events: auto; }
.is-jump .hud { z-index: 95; }

.hud-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(var(--pad) + env(safe-area-inset-top, 0px)) var(--pad) 0;
  transition: color 0.4s;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}
.brand-nsi { font-size: 21px; font-weight: 900; font-stretch: 150%; letter-spacing: 0.02em; }
.brand-host { font-size: 12px; font-weight: 400; font-stretch: 150%; letter-spacing: 0.3em; }

.hud-actions { display: flex; align-items: center; gap: 8px; }

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: inherit;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.hud-btn:hover { border-color: var(--hair-strong); }
.hud-btn[aria-pressed="true"] { border-color: var(--laser); }
.hud-cmd { width: 38px; justify-content: center; padding: 0; font-size: 13px; }
.hud-cmd[aria-expanded="true"] { border-color: var(--laser); color: var(--laser); }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 4px; background: currentColor; }
.eq i:nth-child(2) { height: 9px; }
.eq i:nth-child(3) { height: 6px; }
[aria-pressed="true"] .eq i { background: var(--laser); animation: eq 0.9s ease-in-out infinite alternate; }
[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.3s; }
[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 2px; } to { height: 10px; } }

.iris {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.iris svg { width: 26px; height: 26px; transition: transform 0.9s var(--ease-out); }
.iris:hover, .iris:focus-visible { border-color: currentColor; box-shadow: 0 0 26px rgba(255, 26, 46, 0.38); }
.iris:hover svg { transform: rotate(60deg); }
.iris[aria-expanded="true"] { border-color: var(--laser); }
.iris[aria-expanded="true"] svg { transform: rotate(180deg) scale(0.86); }

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid currentColor;
  opacity: 0.35;
}
.hud-corner.tl { left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); border-left-width: 1px; border-top-width: 1px; }
.hud-corner.tr { right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); border-right-width: 1px; border-top-width: 1px; }
.hud-corner.bl { left: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-left-width: 1px; border-bottom-width: 1px; }
.hud-corner.br { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-right-width: 1px; border-bottom-width: 1px; }

.hud-read {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--fg-soft);
  transition: opacity 0.4s, color 0.4s;
}
.hud-read #hudSector { color: var(--fg); }
.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

.hud-noc {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 4px;
  text-align: right;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--fg-soft);
  transition: opacity 0.4s, color 0.4s;
}
.hud-noc strong { font-size: 12px; font-weight: 500; color: var(--fg); transition: color 0.3s; }
.hud-noc:hover strong, .hud-noc:focus-visible strong { color: var(--laser); }

/* Depth gauge on the right edge */
.gauge {
  position: absolute;
  right: calc(var(--pad) + 2px);
  top: 50%;
  width: 150px;
  height: min(48vh, 420px);
  transform: translateY(-50%);
  transition: opacity 0.4s, color 0.4s;
}
.gauge-spine { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: 0.3; }
.gauge-minor {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 10px);
  opacity: 0.18;
}
.gauge-list { list-style: none; margin: 0; padding: 0; }
.gauge-tick {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 7px 14px;
  transform: translateY(-50%);
  color: var(--fg-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}
.gauge-tick::after {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: -2px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, box-shadow 0.3s;
}
.gauge-label {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.gauge-tick:hover .gauge-label, .gauge-tick:focus-visible .gauge-label, .gauge-tick[aria-current] .gauge-label { opacity: 1; transform: none; }
.gauge-tick:hover, .gauge-tick[aria-current] { color: var(--fg); }
.gauge-tick[aria-current]::after { background: var(--laser); box-shadow: 0 0 8px var(--laser); transform: scale(1.4); }
.gauge-needle {
  position: absolute;
  right: -5px;
  top: 0;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  pointer-events: none;
}
.gauge-needle::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--laser);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--laser);
}

/* Paper mode: the HUD inverts region by region as the white room rises. */
.paper-top .hud-top, .paper-top .hud-corner.tl, .paper-top .hud-corner.tr,
.paper-mid .gauge,
.paper-bot .hud-read, .paper-bot .hud-noc, .paper-bot .hud-corner.bl, .paper-bot .hud-corner.br {
  --fg: #000;
  --fg-soft: #4a4a4a;
  --hair: rgba(0, 0, 0, 0.2);
  --hair-strong: rgba(0, 0, 0, 0.42);
  color: #000;
}
.paper-top .hud-btn, .paper-top .iris { background: rgba(255, 255, 255, 0.6); }
.paper-mid .gauge-needle::before { box-shadow: none; }

.is-cinema .gauge, .is-cinema .hud-read, .is-cinema .hud-noc, .is-cinema .hud-corner { opacity: 0; }
.is-jump .gauge, .is-jump .hud-read, .is-jump .hud-noc, .is-jump .hud-corner { opacity: 0; pointer-events: none; }
.is-jump .gauge a, .is-cinema .gauge a { pointer-events: none; }
.is-jump .hud-top { --fg: #fff; --fg-soft: #a3a3a3; --hair: rgba(255, 255, 255, 0.16); --hair-strong: rgba(255, 255, 255, 0.34); color: #fff; }
.is-jump .hud-btn, .is-jump .iris { background: rgba(0, 0, 0, 0.38); }

/* ---------- Jump map ---------- */

.jump {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 5vw;
  padding: calc(13vh + env(safe-area-inset-top, 0px)) var(--gutter) calc(13vh + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(circle at 75% 45%, rgb(30, 0, 5), rgb(0, 0, 0) 62%);
  color: #fff;
  clip-path: circle(0px at var(--ox, 95%) var(--oy, 5%));
  visibility: hidden;
  transition: clip-path 0.75s var(--ease-io), visibility 0s linear 0.75s;
}
.jump.is-open {
  clip-path: circle(160vmax at var(--ox, 95%) var(--oy, 5%));
  visibility: visible;
  transition: clip-path 0.75s var(--ease-io), visibility 0s;
}
.jump-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.jump-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
}
.jump.is-open .jump-link { animation: jumpIn 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 160ms); }
@keyframes jumpIn { from { opacity: 0; transform: translateX(-28px); } }
.jump-n { font-family: var(--mono); font-size: 12px; color: #a3a3a3; }
.jump-t {
  font-size: clamp(28px, 3.8vw, 58px);
  font-weight: 780;
  font-stretch: 118%;
  line-height: 1.02;
  transition: font-stretch 0.5s var(--ease-out), color 0.3s;
}
.jump-c { font-family: var(--mono); font-size: 11px; color: #8a8a8a; }
.jump-link:hover .jump-t, .jump-link:focus-visible .jump-t { font-stretch: 150%; }
.jump-link[aria-current] .jump-n { color: var(--laser); }
.jump-link[aria-current] .jump-t::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 16px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 10px var(--laser);
}
.jump-map svg { width: 100%; height: auto; max-height: 64vh; overflow: visible; }
.jm-edge { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.jm-edge.is-mesh { stroke: rgba(255, 255, 255, 0.09); stroke-dasharray: 2 6; }
.jm-route { fill: none; stroke: var(--laser); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: url(#jmGlow); opacity: 0; transition: opacity 0.2s; }
.jm-node .core { fill: #000; stroke: #fff; stroke-width: 1.2; }
.jm-node .ring { fill: none; stroke: var(--laser); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.jm-node text { fill: rgba(255, 255, 255, 0.6); font-family: var(--mono); font-size: 11px; }
.jm-node.is-current .core { fill: var(--laser); stroke: var(--laser); }
/* Only animate while the map is open: an animation on an unpainted element can stall every
   other animation Chrome starts in the same frame. */
.jump.is-open .jm-node.is-current .ring { animation: ring 1.8s ease-out infinite; }
.jm-node.is-current text, .jm-node.is-target text { fill: #fff; }
.jm-node.is-target .core { stroke: var(--laser); stroke-width: 2; }
@keyframes ring { from { opacity: 0.9; transform: scale(0.5); } to { opacity: 0; transform: scale(1.8); } }
.jump-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(4vh + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: #a3a3a3;
}
.jump-foot a { text-decoration: none; color: #fff; }
.jump-foot a:hover { color: var(--laser); }
.jump-act {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}
.jump-act:hover { color: var(--laser); border-color: var(--laser); }
.jump-keys { margin-left: auto; color: #6b6b6b; }

/* ---------- Command line ---------- */

.cmd {
  position: fixed;
  left: 50%;
  bottom: calc(var(--pad) + 48px + env(safe-area-inset-bottom, 0px));
  z-index: 96;
  width: min(680px, calc(100vw - 2 * var(--pad)));
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 26, 46, 0.2);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  transition: opacity 0.25s, transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.paper-bot .cmd { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 36px rgba(255, 26, 46, 0.16); }
.cmd.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.25s, transform 0.45s var(--ease-out), visibility 0s; }
.cmd-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--laser) 20%, #fff 50%, var(--laser) 80%, transparent); box-shadow: 0 0 12px var(--laser); }
.cmd-log {
  max-height: min(40vh, 300px);
  overflow-y: auto;
  padding: 14px 16px 4px;
  white-space: pre-wrap;
  line-height: 1.65;
  color: #a3a3a3;
}
.cmd-log:empty { padding: 0; }
.cmd-log .out-em, .cmd-log .out-cmd { color: #fff; }
.cmd-log .out-err { color: var(--laser); }
.cmd-log a { color: #fff; text-decoration: underline; text-decoration-color: var(--laser); text-underline-offset: 3px; }
.cmd-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.cmd-prompt { color: var(--laser); white-space: nowrap; }
.cmd-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  caret-color: var(--laser);
}
.cmd-hint { font-size: 11px; color: #6b6b6b; white-space: nowrap; }

/* ---------- Letterbox and cinema ---------- */

.is-cinema { --lbh: max(7vh, calc((100vh - 100vw / 2.39) / 2)); }
.lbx { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.lbx-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--lbh);
  background: #000;
  transform: scaleY(var(--lb));
  transition: height 0.8s var(--ease-io);
}
.lbx-top { top: 0; transform-origin: 50% 0; }
.lbx-bot { bottom: 0; transform-origin: 50% 100%; }
.lbx-meter {
  position: absolute;
  left: 50%;
  bottom: calc(var(--lbh) / 2 - 1px);
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  opacity: var(--lb);
}
.lbx-meter i { position: relative; width: 34px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.lbx-meter b {
  position: absolute;
  inset: 0;
  background: var(--laser);
  box-shadow: 0 0 6px var(--laser);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}
.lbx-tc, .lbx-exit {
  position: absolute;
  bottom: calc(var(--lbh) / 2 - 6px);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.6s;
}
.lbx-tc { right: var(--pad); color: #fff; }
.lbx-exit { left: var(--pad); color: #8a8a8a; }
.is-cinema .lbx-tc, .is-cinema .lbx-exit { opacity: 1; }
.is-cinema .lbx-tc::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
  vertical-align: 1px;
  animation: pulse 1s steps(2, jump-none) infinite;
}

/* ---------- Boot ---------- */

.boot { position: fixed; inset: 0; z-index: 250; cursor: pointer; }
.boot[hidden] { display: none; }
.boot-lid { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform 1.05s var(--ease-io); }
.boot-lid-top { top: 0; }
.boot-lid-bot { bottom: 0; }
.boot.is-open .boot-lid-top { transform: translateY(-101%); }
.boot.is-open .boot-lid-bot { transform: translateY(101%); }
.boot-log {
  position: absolute;
  left: var(--gutter);
  bottom: calc(50% + 34px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: #6b6b6b;
  white-space: pre;
  transition: opacity 0.35s;
}
.boot-log b { font-weight: 400; color: #fff; }
.boot-log em { font-style: normal; color: var(--laser); }
.boot-log div { animation: logIn 0.25s ease-out both; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
.boot-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--laser) 6%, #fff 50%, var(--laser) 94%, transparent);
  box-shadow: 0 0 18px 3px var(--laser), 0 0 70px 10px rgba(255, 26, 46, 0.45);
  transform: scaleX(0);
  transition: transform 0.62s var(--ease-io), opacity 0.8s 0.15s;
}
.boot.is-beam .boot-beam { transform: scaleX(1); }
.boot.is-open .boot-beam { opacity: 0; }
.boot.is-open .boot-log, .boot.is-open .boot-skip { opacity: 0; }
.boot-skip {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: #6b6b6b;
  transition: opacity 0.3s;
}
.is-booting .hud { opacity: 0; }
.hud { transition: opacity 0.8s 0.2s; }

/* ---------- Reticle cursor ---------- */

.has-reticle, .has-reticle a, .has-reticle button, .has-reticle label { cursor: none; }
.has-reticle input, .has-reticle textarea, .has-reticle select { cursor: auto; }
.reticle-ring, .reticle-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.reticle-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out);
}
.reticle-ring::before, .reticle-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(#fff 0 5px, transparent 5px calc(100% - 5px), #fff calc(100% - 5px));
}
.reticle-ring::after { transform: rotate(90deg); }
.reticle-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 10px 2px rgba(255, 26, 46, 0.7);
}
.reticle-ring.is-live, .reticle-dot.is-live { opacity: 1; }
.reticle-ring.is-hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.reticle-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.reticle-ring.is-text, .reticle-dot.is-text { opacity: 0; }

/* ---------- Sections ---------- */

.wrap { max-width: 1320px; }

/* Launch */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18vh var(--gutter) 14vh;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2) 48%, transparent 68%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 42%);
}
.hero-title {
  margin: 0 0 28px;
  font-size: clamp(40px, 6.4vw, 108px);
  font-weight: 820;
  font-stretch: var(--w, 132%);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.hero-title span { display: block; white-space: nowrap; }
.hero-sub { max-width: 33em; margin: 0 0 34px; font-size: clamp(17px, 1.25vw, 20px); color: #d4d4d4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: #8a8a8a;
}
.hero-cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.hero-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 14px;
  background: var(--laser);
  box-shadow: 0 0 6px var(--laser);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(38px); } }

.js .hero-title span, .js .hero-sub, .js .hero-actions, .js .hero-cue {
  clip-path: inset(100% 0 0 0);
  transform: translateY(0.25em);
}
.js.is-ready .hero-title span, .js.is-ready .hero-sub, .js.is-ready .hero-actions, .js.is-ready .hero-cue {
  clip-path: inset(-20% -5% -20% -5%);
  transform: none;
  transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 350ms);
}
.js.is-ready .hero-sub { transition-delay: 700ms; }
.js.is-ready .hero-actions { transition-delay: 820ms; }
.js.is-ready .hero-cue { transition-delay: 1200ms; }

/* Uptime */
.telemetry { padding: 26vh var(--gutter) 22vh; min-height: 130vh; }
.wallboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 64px 0 0;
  border-top: 1px solid var(--hair);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 14px;
  padding: 26px 16px 28px 0;
  border-right: 1px solid var(--hair);
}
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 14px; color: var(--fg-soft); }
.stat dd { margin: 0; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.38)); }
.led {
  display: inline-block;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 860;
  font-stretch: 150%;
  line-height: 0.95;
  letter-spacing: -0.01em;
  -webkit-mask-image: radial-gradient(circle, #000 0 52%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0 52%, transparent 60%);
  -webkit-mask-size: 4px 4px;
  mask-size: 4px 4px;
}
.led-red { color: var(--laser); }
.stat:has(.led-red) dd { filter: drop-shadow(0 0 12px rgba(255, 26, 46, 0.7)); }
.js .wallboard .led { clip-path: inset(0 100% 0 0); }
.js .wallboard.is-on .led {
  clip-path: none;
  animation: ledOn 1s steps(12, end) both;
  animation-delay: calc(var(--i, 0) * 140ms);
}
@keyframes ledOn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.session {
  max-width: 980px;
  margin-top: 70px;
  border: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.session-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair);
}
.session-head h3 { margin: 0; font-size: 16px; font-weight: 700; font-stretch: 118%; }
.session-head h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
  vertical-align: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}
.session-head p { margin: 0; font-size: 13px; color: var(--fg-soft); }
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.session-grid > div { padding: 16px 20px 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.session-grid > div:nth-child(3n) { border-right: 0; }
.session-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.session-grid dt { margin-bottom: 6px; font-size: 12.5px; color: var(--fg-soft); }
.session-grid dd { margin: 0; font-family: var(--mono); font-size: 14px; color: #fff; overflow-wrap: anywhere; }

/* Services */
.services { position: relative; height: 185vh; }
.services-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 4vw;
  padding: 12vh var(--gutter) 8vh;
}
.services-intro .lede { max-width: 24em; }
.rack { perspective: 1800px; perspective-origin: 30% 40%; }
.rack-body {
  position: relative;
  padding: 22px 38px;
  border: 1px solid #1f1f1f;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.92), rgba(6, 6, 6, 0.92));
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
}
.rack-body::before, .rack-body::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 14px;
  border: 1px solid #242424;
  background: #0a0a0a repeating-linear-gradient(to bottom, transparent 0 8px, #2a2a2a 8px 11px, transparent 11px 16px);
}
.rack-body::before { left: 11px; }
.rack-body::after { right: 11px; }
.rack-units { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.unit { transform-style: preserve-3d; }
/* In a preserve-3d context coplanar wrappers can win hit-testing, so only the controls take the pointer. */
.rack-units, .unit { pointer-events: none; }
.unit-face, .unit-detail { pointer-events: auto; }
.unit-detail { transform: translateZ(1px); }
.unit-face {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px 12px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 10px 18px;
  border: 1px solid #262626;
  background: linear-gradient(180deg, #181818, #0d0d0d 60%, #0a0a0a);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transform: translateZ(1px);
  transition: transform 0.6s var(--ease-out), border-color 0.3s, box-shadow 0.5s;
}
.unit-face:hover, .unit-face:focus-visible { transform: translateZ(26px); border-color: #3a3a3a; }
.unit-face:focus-visible { outline-offset: 2px; }
.unit.is-open .unit-face {
  transform: translateZ(56px) translateX(-6px);
  border-color: var(--laser);
  box-shadow: 0 0 0 1px var(--laser), 0 0 40px rgba(255, 26, 46, 0.32), -28px 36px 60px rgba(0, 0, 0, 0.7);
}
.unit-pos { font-family: var(--mono); font-size: 10.5px; color: #6b6b6b; }
.unit-leds { display: grid; gap: 7px; }
.unit-leds i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); }
.unit-leds i:last-child {
  background: var(--laser);
  box-shadow: 0 0 8px var(--laser);
  animation: blink var(--blink, 1.2s) steps(2, jump-none) infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes blink { 50% { opacity: 0.12; } }
.unit-name { display: block; font-size: clamp(17px, 1.3vw, 21px); font-weight: 720; font-stretch: 128%; line-height: 1.12; }
.unit-sum { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: #a3a3a3; }
.unit-mesh {
  align-self: stretch;
  margin: -10px -18px -10px 0;
  border-left: 1px solid #1f1f1f;
  background: radial-gradient(circle, #2f2f2f 0 1.1px, transparent 1.5px) 0 0 / 6px 6px;
}
.unit-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-101%);
  background: linear-gradient(90deg, transparent 55%, rgba(255, 26, 46, 0.13));
}
.unit-scan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: var(--laser);
  box-shadow: 0 0 12px 1px var(--laser);
}
.unit-face:hover .unit-scan, .unit-face:focus-visible .unit-scan { animation: scan 1.25s var(--ease-io) infinite; }
@keyframes scan { from { transform: translateX(-101%); } to { transform: translateX(101%); } }
.unit-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.unit.is-open .unit-detail { grid-template-rows: 1fr; }
.unit-detail > div { min-height: 0; overflow: hidden; }
.unit-detail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 20px 20px 78px;
  border: 1px solid #262626;
  border-top: 0;
  background: rgba(8, 8, 8, 0.94);
}
.unit-detail p { margin: 0; max-width: 38em; font-size: 15px; color: #d4d4d4; }

/* Why NSI: the film */
.film { position: relative; }
.js .film { height: 780vh; }
.film-stage { position: relative; }
.js .film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film-card { padding: 12vh var(--gutter); }
.js .film-card {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0);
}
.js .film-clip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: calc(1 - var(--x, 0));
  transform: translate3d(0, calc(var(--x, 0) * -6vh), 0) scale(calc(1 + var(--x, 0) * 0.03));
}
.film-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
}
.film-pre, .film-ch { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; color: #a3a3a3; }
.film-title, .film-h {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 124px);
  font-weight: 820;
  font-stretch: var(--w, 132%);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.film-h { max-width: 11ch; }
.film-open, .js .film-open .film-clip { align-items: center; text-align: center; }
.film-open .film-title { max-width: 14ch; margin: 0 auto; }
.film-sub {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 24px rgba(0, 0, 0, 0.9);
}
.js .film-sub {
  position: absolute;
  left: 50%;
  bottom: calc(var(--lbh) + 5vh);
  width: min(58ch, calc(100vw - 2 * var(--gutter)));
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}
.film-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 2px;
  margin-top: -1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--laser) 10%, #fff 50%, var(--laser) 90%, transparent);
  box-shadow: 0 0 16px 2px var(--laser), 0 0 60px 8px rgba(255, 26, 46, 0.35);
}
html:not(.js) .film-laser { display: none; }

/* About */
.about { position: relative; min-height: 175vh; padding: 28vh var(--gutter) 24vh; }
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.6) 36%, rgba(0, 0, 0, 0) 64%);
}
.about-grid { position: relative; max-width: 620px; }
.about-grid > p:not(.lede) { max-width: 34em; color: #cfcfcf; }
.pillars { display: grid; gap: 30px; margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--hair); }
.pillar h3 { margin: 0 0 6px; font-size: 18px; font-weight: 740; font-stretch: 125%; }
.pillar p { margin: 0; color: #cfcfcf; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; color: #cfcfcf; }
.values li { display: flex; align-items: center; gap: 12px; }
.values li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--laser); box-shadow: 0 0 6px var(--laser); }
.about-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 84px; }
.about-launch p { margin: 0; font-size: clamp(24px, 2.3vw, 36px); font-weight: 760; font-stretch: 138%; line-height: 1.05; }

/* Contact: the white room */
.paper {
  --fg: #000;
  --fg-soft: var(--ink-soft);
  --hair: rgba(0, 0, 0, 0.14);
  --hair-strong: rgba(0, 0, 0, 0.36);
  color: #000;
  color-scheme: light;
}
.paper ::selection { background: var(--laser-deep); color: #fff; }
.contact { padding: 22vh var(--gutter) 14vh; min-height: 120vh; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 6vw; align-items: start; max-width: 1320px; }
.lines { margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.line {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
}
.line-led { width: 8px; height: 8px; border-radius: 50%; background: #000; }
.line.is-247 .line-led { background: var(--laser); box-shadow: 0 0 10px var(--laser); animation: pulse 1.6s ease-in-out infinite; }
.line h3 { margin: 0; font-size: 18px; font-weight: 720; font-stretch: 118%; line-height: 1.2; }
.line p { margin: 3px 0 0; font-size: 14px; color: var(--fg-soft); }
.line-links { display: grid; gap: 3px; text-align: right; font-size: 14px; }
.line-links a { text-decoration: none; }
.line-links a:hover, .line-links a:focus-visible { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; }
.line-tel { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }

.form {
  position: relative;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid #000;
  background: #fff;
}
.form::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: var(--laser);
  transform: scaleX(0.16);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out), box-shadow 0.5s;
}
.form:focus-within::before, .form.is-sending::before, .form.is-sent::before { transform: scaleX(1); box-shadow: 0 0 16px 1px rgba(255, 26, 46, 0.55); }
.form.is-sending::before { animation: charge 0.9s var(--ease-io) infinite; }
@keyframes charge { 0% { transform-origin: left; transform: scaleX(0); } 50% { transform-origin: left; transform: scaleX(1); } 51% { transform-origin: right; } 100% { transform-origin: right; transform: scaleX(0); } }
.form h3 { margin: 0 0 24px; font-size: 22px; font-weight: 760; font-stretch: 128%; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 650; }
.field label span { font-weight: 400; color: var(--fg-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 120px; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, 0.3); resize: vertical; }
.field select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--laser-deep);
  box-shadow: 0 1px 0 0 var(--laser-deep), 0 12px 24px -16px rgba(255, 26, 46, 0.65);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--laser-deep); }
.field.is-picked select { box-shadow: 0 1px 0 0 var(--laser-deep), 0 12px 24px -12px rgba(255, 26, 46, 0.7); }
.field-err { margin: 0; font-size: 13px; color: var(--laser-deep); }
.field-err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { width: 100%; justify-content: center; margin-top: 6px; }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; }
.form-status.is-error { color: var(--laser-deep); }
.form-status a { color: inherit; text-underline-offset: 3px; }

.foot { padding: 0 var(--gutter) calc(var(--pad) + 64px + env(safe-area-inset-bottom, 0px)); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 36px;
  max-width: 1320px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--fg-soft);
}
.foot-inner p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--laser-deep); }
.foot-mark { font-size: 15px; font-weight: 900; font-stretch: 150%; letter-spacing: 0.04em; color: #000; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #000; }

/* ---------- No WebGL2: a static, CSS-drawn version of every scene ---------- */

.no-gl .gl { display: none; }
.no-gl .hero {
  background:
    radial-gradient(circle at 72% 45%, #fff 0, rgba(255, 255, 255, 0.7) 1.2%, rgba(255, 26, 46, 0.28) 6%, rgba(0, 0, 0, 0) 32%),
    repeating-conic-gradient(from 0deg at 72% 45%, rgba(255, 255, 255, 0.06) 0 0.6deg, transparent 0.6deg 7deg),
    #000;
}
.no-gl .services, .no-gl .film {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 26, 46, 0.18), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px),
    #000;
}
.no-gl .about { background: radial-gradient(circle at 72% 50%, #000 0 10vh, rgba(255, 255, 255, 0.85) 10.4vh, rgba(255, 26, 46, 0.55) 12vh, rgba(0, 0, 0, 0) 24vh), #000; }
.no-gl .paper { background: #fff; }
.no-gl .hud-top { background: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .wallboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .services-stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 36px; }
  .services { height: auto; }
  .services-stage { position: relative; }
  .rack { max-width: 760px; }
}

@media (max-width: 960px) {
  .gauge, .hud-read, .hud-noc, .hud-corner { display: none; }
  .hud-btn span:not(.eq):not(.ico-play) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hud-btn { width: 38px; justify-content: center; padding: 0; }
  .jump { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .jump-map { display: none; }
  .jump-keys { display: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)); }
  .session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-grid > div:nth-child(3n) { border-right: 1px solid var(--hair); }
  .session-grid > div:nth-child(2n) { border-right: 0; }
  .session-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--hair); }
  .session-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .foot { padding-bottom: calc(var(--pad) + 24px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 16vh; }
  .hero-title { font-size: clamp(30px, 9vw, 56px); font-stretch: var(--w, 108%); }
  .hero::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 70%); }
  .wallboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 20px 12px 22px 0; border-right: 0; border-top: 1px solid var(--hair); }
  .stat:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--hair); }
  .led { font-size: clamp(30px, 9vw, 44px); }
  .unit-face { grid-template-columns: 12px minmax(0, 1fr); padding: 12px 14px; }
  .unit-pos, .unit-mesh { display: none; }
  .unit-detail-inner { padding: 16px 14px 18px; }
  .rack-body { padding: 14px 26px; transform: rotateY(-4deg) rotateX(2deg); }
  .rack-body::before { left: 6px; }
  .rack-body::after { right: 6px; }
  .line { grid-template-columns: 14px minmax(0, 1fr); }
  .line-links { grid-column: 2; text-align: left; }
  .jump-t { font-size: clamp(26px, 8vw, 40px); }
  .brand-host { display: none; }
  .film-h, .film-title { font-size: clamp(38px, 11vw, 64px); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reticle-ring, .reticle-dot { display: none; }
}
