/* Root page — dead line. Cold, CRT-terminal aesthetic. Pure CSS.
   Intentionally reveals nothing about the service behind this host. */

:root {
  --bg: #060709;
  --fg: #c8ccd4;
  --dim: #565b66;
  --red: #ff3b3b;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ---------- background layers ---------- */

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}

.fx-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 10;
}

.fx-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 9;
}

/* ---------- matrix code (pure CSS) ---------- */
/* Binary code falling down: each column is a <span> holding one
   continuous string of 96 digits on a single line. CSS wraps one digit
   per line: white-space: pre-wrap + word-break: break-all (a digit run
   has no soft wrap opportunity otherwise) + width: 1ch (every mono
   digit is exactly 1ch wide), so line-height reliably sets the fall
   rhythm.
   The 48-digit half is written TWICE inside the span, so animating
   translateY from 0 to -50% (of the span's own height) loops with no
   visible seam.
   21 columns with different left/size/speed/opacity read as depth.
   transform-only animation → composited, GPU-friendly.
   Line-height is a uniform 26px so the cover height is predictable:
   96 chars × 26px = 2496px, half = 1248px ≥ any common viewport height,
   which is what makes the loop gap-free. */
.matrix {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.matrix span {
  position: absolute;
  top: 0;
  white-space: pre-wrap;
  word-break: break-all;
  width: 1ch;
  font-family: var(--mono);
  color: #39ff88;
  text-shadow: 0 0 6px rgba(57, 255, 136, 0.35);
  line-height: 26px;
  user-select: none;
  will-change: transform;
  animation: matrix-fall var(--dur, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: var(--op, 0.08);
}

@keyframes matrix-fall {
  to { transform: translateY(-50%); }
}

/* Per-column: position, size, duration, negative delay (desyncs the
   start so columns are mid-fall on page load), opacity. */
.matrix span:nth-child(1)  { left: 3%;  font-size: 11px; --dur: 9s;    --delay: -2s;   --op: 0.10; }
.matrix span:nth-child(2)  { left: 11%; font-size: 13px; --dur: 13s;   --delay: -7s;   --op: 0.06; }
.matrix span:nth-child(3)  { left: 20%; font-size: 10px; --dur: 7s;    --delay: -4s;   --op: 0.12; }
.matrix span:nth-child(4)  { left: 29%; font-size: 14px; --dur: 15s;   --delay: -9s;   --op: 0.05; }
.matrix span:nth-child(5)  { left: 38%; font-size: 11px; --dur: 10s;   --delay: -1s;   --op: 0.09; }
.matrix span:nth-child(6)  { left: 47%; font-size: 15px; --dur: 12s;   --delay: -6s;   --op: 0.07; }
.matrix span:nth-child(7)  { left: 56%; font-size: 10px; --dur: 8s;    --delay: -3s;   --op: 0.11; }
.matrix span:nth-child(8)  { left: 65%; font-size: 13px; --dur: 14s;   --delay: -10s;  --op: 0.05; }
.matrix span:nth-child(9)  { left: 74%; font-size: 12px; --dur: 11s;   --delay: -5s;   --op: 0.09; }
.matrix span:nth-child(10) { left: 83%; font-size: 10px; --dur: 7.5s;  --delay: -2.5s; --op: 0.12; }
.matrix span:nth-child(11) { left: 92%; font-size: 14px; --dur: 13.5s; --delay: -8s;   --op: 0.06; }
/* Dense fill: the extra 10 columns sit between the originals (~4.5%
   horizontal step) and staggered in size/speed/delay to keep the
   depth read instead of looking like a uniform curtain. */
.matrix span:nth-child(12) { left: 7%;   font-size: 12px; --dur: 11s;   --delay: -5.5s; --op: 0.07; }
.matrix span:nth-child(13) { left: 15%;  font-size: 10px; --dur: 8s;    --delay: -3.5s; --op: 0.09; }
.matrix span:nth-child(14) { left: 24.5%; font-size: 14px; --dur: 14s;  --delay: -11s;  --op: 0.06; }
.matrix span:nth-child(15) { left: 33%;  font-size: 11px; --dur: 9.5s;  --delay: -2.8s; --op: 0.08; }
.matrix span:nth-child(16) { left: 42%;  font-size: 13px; --dur: 12.5s; --delay: -7.5s; --op: 0.05; }
.matrix span:nth-child(17) { left: 51%;  font-size: 10px; --dur: 7.5s;  --delay: -5.8s; --op: 0.11; }
.matrix span:nth-child(18) { left: 60%;  font-size: 12px; --dur: 10.5s; --delay: -4.2s; --op: 0.07; }
.matrix span:nth-child(19) { left: 69%;  font-size: 15px; --dur: 13s;   --delay: -9.5s; --op: 0.05; }
.matrix span:nth-child(20) { left: 78%;  font-size: 11px; --dur: 9s;    --delay: -1.8s; --op: 0.10; }
.matrix span:nth-child(21) { left: 87%;  font-size: 13px; --dur: 12s;   --delay: -6.5s; --op: 0.06; }

/* ---------- content ---------- */

main {
  position: relative;
  z-index: 5;
  text-align: left;
  line-height: 1.8;
  padding: 2rem;
  max-width: 36rem;
  /* keeps the foreground readable where it overlaps the code panel */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.line {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: type-in 0.9s steps(34, end) forwards;
}

.line + .line { margin-top: 0.4rem; }
.line:nth-child(1) { animation-delay: 0.3s; }
.line:nth-child(2) { animation-delay: 1.3s; }

@keyframes type-in {
  to { width: 100%; }
}

.glitch {
  position: relative;
  margin: 1.2rem 0 0.2rem;
  /* "NO CARRIER" is 10 monospace glyphs (≈ 6em wide); 9.5vw keeps
     the full word inside the viewport at any width */
  font-size: clamp(2.5rem, 9.5vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--fg);
  opacity: 0;
  animation:
    reveal 0.3s steps(4, end) 2.2s forwards,
    flicker 4s 2.5s infinite;
}

/* Glitch slices (red/cyan offset) */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: glitch-slices 2.8s infinite 2.5s;
}

.glitch::before {
  color: var(--red);
  z-index: -1;
}

.glitch::after {
  color: #2fd6c3;
  z-index: -2;
}

@keyframes reveal {
  to { opacity: 1; }
}

@keyframes flicker {
  0%, 96.5%, 99%, 100% { opacity: 1; }
  97% { opacity: 0.55; }
  98.5% { opacity: 0.85; }
}

@keyframes glitch-slices {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  87% { opacity: 0.9; transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); }
  90% { opacity: 0.9; transform: translate(5px, -2px); clip-path: inset(45% 0 25% 0); }
  93% { opacity: 0.9; transform: translate(-3px, 1px); clip-path: inset(70% 0 5% 0); }
  96% { opacity: 0; }
}

/* ---------- waveform (pure CSS) ---------- */
/* 48 vertical bars directly under NO CARRIER. The .title wrapper
   (width: fit-content) shrinks to the h1's rendered width, so the wave
   tracks the title at any viewport, wrapped or not. Each bar pulses
   scaleY; staggered NEGATIVE delays spread one crest across the row, so
   the wave reads as travelling left -> right. transform-only: the 48
   bars animate on the compositor. */
.title {
  width: fit-content;
}

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 1.3rem;
  margin: 0.5rem 0 0.6rem;
  opacity: 0;
  animation: fade-in 0.5s ease-out 2.5s forwards;
}

.wave i {
  width: 2px;
  height: 100%;
  background: #39ff88;
  border-radius: 1px;
  opacity: 0.5;
  box-shadow: 0 0 6px rgba(57, 255, 136, 0.35);
  transform: scaleY(0.1);
  transform-origin: center;
  will-change: transform;
  animation: wave-pulse 1.4s ease-in-out infinite;
  animation-delay: var(--wd, 0s);
}

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.1); }
  30% { transform: scaleY(1); }
  55% { transform: scaleY(0.35); }
}

/* Travel L->R: negative delay grows 0 -> -0.5875s across the 48 bars
   (step -12.5ms; spread ~0.42 of the 1.4s period = one visible crest).
   Negative => the wave is already mid-travel on page load. */
.wave i:nth-child(1)  { --wd: 0s; }
.wave i:nth-child(2)  { --wd: -0.0125s; }
.wave i:nth-child(3)  { --wd: -0.025s; }
.wave i:nth-child(4)  { --wd: -0.0375s; }
.wave i:nth-child(5)  { --wd: -0.05s; }
.wave i:nth-child(6)  { --wd: -0.0625s; }
.wave i:nth-child(7)  { --wd: -0.075s; }
.wave i:nth-child(8)  { --wd: -0.0875s; }
.wave i:nth-child(9)  { --wd: -0.1s; }
.wave i:nth-child(10) { --wd: -0.1125s; }
.wave i:nth-child(11) { --wd: -0.125s; }
.wave i:nth-child(12) { --wd: -0.1375s; }
.wave i:nth-child(13) { --wd: -0.15s; }
.wave i:nth-child(14) { --wd: -0.1625s; }
.wave i:nth-child(15) { --wd: -0.175s; }
.wave i:nth-child(16) { --wd: -0.1875s; }
.wave i:nth-child(17) { --wd: -0.2s; }
.wave i:nth-child(18) { --wd: -0.2125s; }
.wave i:nth-child(19) { --wd: -0.225s; }
.wave i:nth-child(20) { --wd: -0.2375s; }
.wave i:nth-child(21) { --wd: -0.25s; }
.wave i:nth-child(22) { --wd: -0.2625s; }
.wave i:nth-child(23) { --wd: -0.275s; }
.wave i:nth-child(24) { --wd: -0.2875s; }
.wave i:nth-child(25) { --wd: -0.3s; }
.wave i:nth-child(26) { --wd: -0.3125s; }
.wave i:nth-child(27) { --wd: -0.325s; }
.wave i:nth-child(28) { --wd: -0.3375s; }
.wave i:nth-child(29) { --wd: -0.35s; }
.wave i:nth-child(30) { --wd: -0.3625s; }
.wave i:nth-child(31) { --wd: -0.375s; }
.wave i:nth-child(32) { --wd: -0.3875s; }
.wave i:nth-child(33) { --wd: -0.4s; }
.wave i:nth-child(34) { --wd: -0.4125s; }
.wave i:nth-child(35) { --wd: -0.425s; }
.wave i:nth-child(36) { --wd: -0.4375s; }
.wave i:nth-child(37) { --wd: -0.45s; }
.wave i:nth-child(38) { --wd: -0.4625s; }
.wave i:nth-child(39) { --wd: -0.475s; }
.wave i:nth-child(40) { --wd: -0.4875s; }
.wave i:nth-child(41) { --wd: -0.5s; }
.wave i:nth-child(42) { --wd: -0.5125s; }
.wave i:nth-child(43) { --wd: -0.525s; }
.wave i:nth-child(44) { --wd: -0.5375s; }
.wave i:nth-child(45) { --wd: -0.55s; }
.wave i:nth-child(46) { --wd: -0.5625s; }
.wave i:nth-child(47) { --wd: -0.575s; }
.wave i:nth-child(48) { --wd: -0.5875s; }

.denied {
  margin: 0 0 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.55);
  opacity: 0;
  animation: fade-in 0.5s ease-out 2.6s forwards;
}

.body {
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
  color: var(--dim);
  opacity: 0;
  animation: fade-in 0.5s ease-out 2.9s forwards;
}

.leave {
  color: var(--fg);
  animation-delay: 3.2s;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.cursor {
  margin-left: 0.2em;
  color: var(--red);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- background code panel (Spring Boot controller) ---------- */
/* Transparent terminal window, fixed to the right. The code scrolls
   slowly upward; the <code> block is written TWICE so a translateY
   0 -> -50% loop is seamless (same trick as .matrix).
   transform-only animation, pointer-events: none, z-index between the
   matrix (1) and main (5). Muted token colors on a dim base read as
   background texture, not as a second focal point. */
.code-panel {
  position: fixed;
  top: 6vh;
  right: 4vw;
  /* 36rem fits the panel-title line: 75 ch × ~7.2px @12px mono ≈ 540px
     + 22.4px padding ≈ 563px. Keep in sync with the title text in
     index.html if it changes. */
  width: min(36rem, 44vw);
  height: min(80vh, 700px);
  z-index: 2;
  border: 1px solid rgba(57, 255, 136, 0.14);
  border-radius: 4px;
  background: rgba(8, 11, 10, 0.55);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0.62;
  font-size: 12px;
  line-height: 1.7;
}

.panel-title {
  padding: 0.45rem 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: #39ff88;
  opacity: 0.7;
  border-bottom: 1px solid rgba(57, 255, 136, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-clip {
  height: calc(100% - 2rem);
  overflow: hidden;
}

.code-scroll {
  will-change: transform;
  animation: code-scroll 55s linear infinite;
}

.code-scroll code {
  display: block;
  padding: 0.7rem 0.9rem;
  color: #5f6f66;
  /* the HTML source carries real 4-space indentation; 'pre'
     preserves it (default 'normal' collapses it to one space) */
  white-space: pre;
}

@keyframes code-scroll {
  to { transform: translateY(-50%); }
}

/* Token colors: muted, on-palette (green / cyan / amber / gray). */
.c-kw  { color: #6ee7a8; }
.c-ann { color: #2fd6c3; }
.c-str { color: #d6a35c; }
.c-com { color: #454b52; font-style: italic; }

/* ---------- background shell panel (kubectl session) ---------- */
/* Simulated live terminal, fixed to the left, driven by shell.js.
   The box has a FIXED height: shell.js appends typed commands and
   output and trims the oldest lines (MAX_LINES = 14), so the panel
   is a constant-size window into the session, never full-viewport.
   Sizing contract: 11px font × 1.7 line-height = 18.7px/line;
   14 lines + 0.5/0.6rem padding = ~279px ≈ 17.5rem. Keep both in
   sync if you change font, line-height, or MAX_LINES.
   Left column stacking (2026-08-24): the shell sits at the TOP of the
   left column and .bash-panel hangs below it — its `top` is offset
   from the shell's top by the shell's full height (title ~1.5rem +
   body 17.5rem + 0.5rem gap). Keep in sync if shell sizing changes. */
.shell {
  position: fixed;
  top: 6vh;
  left: 3vw;
  /* 40rem fits the longest rendered line: PS1 (25 ch) + longest
     kubectl command (65 ch) = 90 ch ≈ 594px at 11px mono + padding.
     The 42vw cap keeps the panel clear of .code-panel (right: 4vw,
     width up to 44vw) on 1024–1300px viewports. */
  width: min(40rem, 42vw);
  z-index: 2;
  border: 1px solid rgba(57, 255, 136, 0.14);
  border-radius: 4px;
  background: rgba(8, 11, 10, 0.55);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0.58;
  font-size: 11px;
  line-height: 1.7;
}

.shell-body {
  height: min(17.5rem, 46vh);
  padding: 0.5rem 0.8rem 0.6rem;
  white-space: pre;
  overflow: hidden;
}

.s-line { color: #5f6f66; }
.s-ps1  { color: #6ee7a8; }
.s-out  { color: #5f6f66; }
.s-out.dim { color: #454b52; }
.s-warn { color: #d6a35c; }
.s-err  { color: #ff5f56; }

/* ---------- background bash code panel (left column, below .shell) ---------- */
/* Reuses the .code-panel machinery (same scroll animation, token colors,
   title bar). Position mirrors the RIGHT column's anchoring scheme:
   .code-panel (Java) is pinned from the top, .net from the bottom
   (bottom: 3.5vh) — the visible gap between the two is the leftover
   space. Same trick here: bash-panel is pinned by BOTH top and bottom,
   so it stretches to fill the column.
   - bottom: 3.5vh → bottom edge aligned with .net's bottom edge
   - top: 6vh (shell top) + 20rem (shell title ~1.5rem + body 17.5rem)
     + 8px → the 8px overage over the shell's real height (~19.7rem
     rendered) yields the ~13px gap, the same distance as between the
     Java panel and the net panel on ~1080px-tall viewports.
   If .shell sizing changes, re-measure its rendered height and adjust
   the 20rem term (gap target ≈ 13px). */
.bash-panel {
  top: calc(6vh + 20rem + 8px);
  bottom: 3.5vh;
  right: auto;
  left: 3vw;
  width: min(40rem, 42vw); /* same width contract as .shell */
  /* Override .code-panel's min(80vh,700px): height must be DERIVED from
     top+bottom (fixed positioning with both set). Without this the
     inherited height wins and the bottom anchor is ignored (panel
     overflows .net's bottom edge by ~45px at vh≈1086). */
  height: auto;
}

/* ---------- background yaml code panel (bottom center) ---------- */
/* Manifests (Deployment / Service / Ingress) of the line-gateway deployment
   shown in the kubectl panel on the left. Same scroll machinery as
   .code-panel (content written twice → translateY(-50%) seamless loop).
   Stretched horizontally between .bash-panel and .net, mirroring their
   geometry: left = left column (3vw) + their width (min(40rem,42vw)) + 13px
   gap (same gap as shell→bash / java→net); right = .net (4vw) + .net width
   (min(26rem,44vw)) + 13px. bottom: 3.5vh → bottom edge aligned with both.
   Width is DERIVED from left+right, so width must stay auto. Height is
   NOT .net's 270px: at 270px the top edge overlaps main's last lines
   (bottom-anchored growth goes up, straight into the text). Capped at
   246px — the visual reference is the last VISIBLE line of main
   (~58px above main's border-box bottom: 32px padding + line
   spacing), not the box. At 246px the perceived gap text→panel is
   ~14px, the same rhythm as java↔net and the 13px side gaps. The
   panel's box still overlaps main's empty bottom padding by ~44px:
   sanctioned (main z-5, text-shadow). On shorter viewports main sits
   lower and the panels may meet; same policy covers it. */
.yaml-panel {
  top: auto;
  left: calc(3vw + min(40rem, 42vw) + 13px);
  right: calc(4vw + min(26rem, 44vw) + 13px);
  bottom: 3.5vh;
  width: auto;
  height: min(22.7vh, 246px);
}

/* ---------- background helm shell panel (top center) ---------- */
/* Second instance of the .shell machinery: shell.js drives #helm-tty
   with a simulated helm session (repo update / template / upgrade -i
   ending in the "Happy Helming!" output) for the same line-gateway
   release. Sits in the top-center band between .shell (left) and
   .code-panel (right), same 13px gap rhythm as the other panels.
   Width is DERIVED from left+right (must stay auto).
   Vertical space is the scarcest on the page: below the 6vh top line,
   main's first rendered text line starts at ~272px (2126×1086). The
   body is capped at 10rem: 6vh (65px) + title (~32px) + 10rem (160px)
   + 2px border ≈ 194px → bottom ≈ 259px, leaving a ~13px gap to the
   text, the same rhythm as the 13/14px gaps elsewhere. 10rem fits
   7 lines of 11px × 1.7 (18.7px/line) inside 0.5/0.6rem padding —
   shell.js trims #helm-tty to 7 lines. Keep both in sync.
   Below ~1550px the band is too narrow for the derived width. */
.helm-shell {
  left: calc(3vw + min(40rem, 42vw) + 13px);
  right: calc(4vw + min(36rem, 44vw) + 13px);
  width: auto;
}

.helm-shell .shell-body {
  height: 10rem;
}

/* ---------- background neural-net graph panel ---------- */
/* Procedurally generated SVG feedforward net (see graph.js):
   input → dense·1 → dense·2 → output. Classic circle nodes on
   straight edges. All effects are CSS, on a shared 4s cycle:
   - a forward-pass wave lights the columns left→right — each
     node's --d delay is its layer index (plus small jitter), so
     the whole column glows at once (core stroke + soft halo)
   - ~45% of edges carry a travelling dot: pathLength=1 normalizes
     every edge to unit length, so one short dash (stroke-dasharray
     0.05 0.95) slides start→end as dashoffset goes 0 → -1; per-edge
     delays are staggered inside the source column's slot so the
     pulses follow the wave
   Same treatment as .shell / .code-panel: dim, pointer-events:
   none, z-index 2 — background texture, not a focal point. */
.net {
  position: fixed;
  right: 4vw;
  bottom: 3.5vh;
  width: min(26rem, 44vw);
  z-index: 2;
  border: 1px solid rgba(57, 255, 136, 0.14);
  border-radius: 4px;
  background: rgba(8, 11, 10, 0.55);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0.6;
  font-size: 11px;
}

.net-body {
  padding: 0.4rem 0.55rem 0.45rem;
}

.net svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Base edges: dense mesh, barely visible */
.net .edge {
  fill: none;
  stroke: rgba(57, 255, 136, 0.09);
  stroke-width: 1;
}

/* Pulsed edges: one short dash travels the edge (see note above) */
.net .edge.pulse {
  stroke: rgba(57, 255, 136, 0.7);
  stroke-dasharray: 0.05 0.95;
  animation: net-pulse 4s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes net-pulse {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  5%   { opacity: 0.85; }
  55%  { opacity: 0.85; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

/* Nodes: dark core with a glowing stroke + a soft halo behind it */
.net .core {
  fill: rgba(10, 16, 13, 0.9);
  stroke: #39ff88;
  stroke-width: 1.2;
  animation: net-node 4s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes net-node {
  0%, 100% { stroke-opacity: 0.35; fill: rgba(10, 16, 13, 0.9); }
  20%      { stroke-opacity: 1; fill: rgba(57, 255, 136, 0.25); }
  50%      { stroke-opacity: 0.6; fill: rgba(57, 255, 136, 0.08); }
}

.net .halo {
  fill: #39ff88;
  opacity: 0;
  animation: net-halo 4s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes net-halo {
  0%, 100% { opacity: 0; }
  20%      { opacity: 0.28; }
}

.net-label {
  fill: #39ff88;
  opacity: 0.6;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

@media (max-width: 860px) {
  .code-panel, .shell, .net { display: none; }
}

/* the top-center band between .shell and .code-panel is too narrow
   below this width; .helm-shell's derived width would collapse */
@media (max-width: 1550px) {
  .helm-shell { display: none; }
}

/* Short viewports: the panel would cover the centered text */
@media (max-height: 640px) {
  .net { display: none; }
}

/* Accessibility: respect reduced-motion, show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .line, .glitch, .denied, .body {
    animation: none !important;
    opacity: 1;
    width: auto;
  }
  .glitch::before, .glitch::after { display: none; }
  .cursor { animation: none; }
  .matrix span { animation: none; }
  .wave { animation: none; opacity: 1; }
  .wave i { animation: none; transform: scaleY(0.3); }
  .code-scroll { animation: none; }
  .shell .cursor { animation: none; }
  .net .edge.pulse, .net .core, .net .halo {
    animation: none;
  }
  .net .edge.pulse {
    stroke: rgba(57, 255, 136, 0.22);
    stroke-dasharray: none;
    opacity: 1;
  }
  .net .core { stroke-opacity: 0.55; }
  .net .halo { opacity: 0.12; }
}
