/* ============================================================================
   Neon — a CYBERPUNK dispatch zine. Near-black violet canvas, twin neon accents
   (cyan + magenta), HUD corner frames, scanlines, a subtle glitch headline, circuit-grid
   backdrops, Chakra Petch display + Share Tech Mono labels. Dark, futuristic, high-energy —
   yet the body copy stays high-contrast and readable. Article wrapper = .nx-rt. Every colour
   is a token for per-site variants (swap the neon pair).
   ========================================================================== */
:root {
  --nx-bg: #09080f;             /* near-black, faint violet */
  --nx-bg-2: #100e1d;           /* panel */
  --nx-bg-3: #15122a;           /* raised */
  --nx-ink: #ecebf7;
  --nx-ink-2: #a7a8c9;
  --nx-ink-3: #6d6f97;
  --nx-line: #262347;           /* dim border */
  --nx-line-2: #34305e;
  --nx-cyan: #24e7ff;
  --nx-magenta: #ff2d95;
  --nx-lime: #b6ff3a;
  --nx-accent: #24e7ff;         /* primary neon */
  --nx-accent-2: #ff2d95;       /* secondary neon */
  --nx-display: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-body: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nx-maxw: 1220px;
  --nx-gut: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--nx-ink); background: var(--nx-bg);
  font-family: var(--nx-body); font-size: 16.5px; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    linear-gradient(rgba(36,231,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,231,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.nx-wrap { max-width: var(--nx-maxw); margin: 0 auto; padding: 0 var(--nx-gut); position: relative; }

/* placeholder — dark panel with neon grid + scanlines */
.nx-ph { display: block; width: 100%; height: 100%; background: var(--nx-bg-2); position: relative; overflow: hidden; }
.nx-ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(36,231,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(36,231,255,.14) 1px, transparent 1px); background-size: 24px 24px; }
.nx-ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,.28) 2px, rgba(0,0,0,.28) 3px); mix-blend-mode: multiply; }
.nx-ph.m::before { background-image: linear-gradient(rgba(255,45,149,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,45,149,.16) 1px, transparent 1px); }
.nx-ph.l::before { background-image: linear-gradient(rgba(182,255,58,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(182,255,58,.14) 1px, transparent 1px); }

/* ---------- HUD label + shared bits ---------- */
.nx-mono { font-family: var(--nx-mono); }
.nx-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--nx-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-accent); border: 1px solid var(--nx-line-2); padding: 5px 11px; border-radius: 2px; background: rgba(36,231,255,.05); }
.nx-tag.m { color: var(--nx-accent-2); background: rgba(255,45,149,.06); }
.nx-tag::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.nx-kicker { font-family: var(--nx-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-accent); }
.nx-byline { font-family: var(--nx-mono); font-size: 12px; letter-spacing: .04em; color: var(--nx-ink-3); text-transform: uppercase; }
.nx-byline b { color: var(--nx-ink); font-weight: 400; }
.nx-more { font-family: var(--nx-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-accent); display: inline-flex; align-items: center; gap: 8px; }
.nx-more .ar { transition: transform .2s ease; }
.nx-more:hover { color: #fff; text-shadow: 0 0 10px var(--nx-accent); }
.nx-more:hover .ar { transform: translateX(4px); }

.nx-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--nx-mono); font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; padding: 12px 22px; border: 1.5px solid var(--nx-accent); background: transparent; color: var(--nx-accent); cursor: pointer; border-radius: 2px; position: relative; transition: color .16s, box-shadow .16s, background .16s; }
.nx-btn:hover { color: var(--nx-bg); background: var(--nx-accent); box-shadow: 0 0 22px -2px var(--nx-accent); }
.nx-btn.solid { background: var(--nx-accent); color: var(--nx-bg); }
.nx-btn.solid:hover { box-shadow: 0 0 26px -2px var(--nx-accent); }
.nx-btn.m { border-color: var(--nx-accent-2); color: var(--nx-accent-2); }
.nx-btn.m:hover { background: var(--nx-accent-2); color: #fff; box-shadow: 0 0 22px -2px var(--nx-accent-2); }

/* HUD corner frame (top-left + bottom-right brackets) */
.nx-hud { position: relative; }
.nx-hud::before, .nx-hud::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.nx-hud::before { top: -1px; left: -1px; border-top: 2px solid var(--nx-accent); border-left: 2px solid var(--nx-accent); }
.nx-hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--nx-accent); border-right: 2px solid var(--nx-accent); }

/* ---------- top status bar ---------- */
.nx-topbar { border-bottom: 1px solid var(--nx-line); background: rgba(9,8,15,.8); }
.nx-topbar .nx-wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 14px; }
.nx-topbar span { font-family: var(--nx-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--nx-ink-3); white-space: nowrap; }
.nx-topbar .live { color: var(--nx-lime); display: inline-flex; align-items: center; gap: 7px; }
.nx-topbar .live::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--nx-lime); box-shadow: 0 0 8px var(--nx-lime); animation: nx-blink 1.6s steps(2) infinite; }
.nx-topbar .mid { color: var(--nx-accent); overflow: hidden; text-overflow: ellipsis; }
@keyframes nx-blink { 50% { opacity: .25; } }

/* ---------- nav ---------- */
.nx-nav { position: sticky; top: 0; z-index: 50; background: rgba(9,8,15,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--nx-line); transition: box-shadow .2s; }
.nx-nav.is-stuck { box-shadow: 0 0 30px -8px rgba(36,231,255,.35); border-bottom-color: var(--nx-line-2); }
.nx-nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.nx-brand { display: flex; align-items: center; gap: 11px; font-family: var(--nx-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--nx-ink); }
.nx-brand .nx-logo { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(36,231,255,.6)); }
.nx-brand b { color: var(--nx-accent); text-shadow: 0 0 12px var(--nx-accent); }
.nx-nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nx-nav-links a { font-family: var(--nx-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 9px 14px; color: var(--nx-ink-2); position: relative; transition: color .14s; }
.nx-nav-links a:hover, .nx-nav-links a.is-active { color: var(--nx-accent); text-shadow: 0 0 10px rgba(36,231,255,.5); }
.nx-nav-links a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nx-nav-cta { margin-left: 8px; }

/* ---------- ticker ---------- */
.nx-ticker { border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: var(--nx-bg-2); overflow: hidden; padding: 9px 0; }
.nx-ticker-track { display: flex; width: max-content; animation: nx-marq 30s linear infinite; }
.nx-ticker:hover .nx-ticker-track { animation-play-state: paused; }
.nx-ticker-track span { font-family: var(--nx-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-ink-2); padding: 0 20px; display: inline-flex; gap: 20px; }
.nx-ticker-track .s { color: var(--nx-accent-2); }
@keyframes nx-marq { to { transform: translateX(-50%); } }

/* ---------- section frame ---------- */
.nx-sec { padding: 58px 0; position: relative; }
.nx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--nx-line); }
.nx-sec-head h2 { font-family: var(--nx-display); font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; line-height: 1; }
.nx-sec-head h2 .hx { color: var(--nx-accent); text-shadow: 0 0 14px rgba(36,231,255,.45); }
.nx-sec-head .nx-idx { font-family: var(--nx-mono); font-size: 13px; color: var(--nx-accent-2); margin-right: 10px; }

/* ---------- hero ---------- */
.nx-hero { padding: 56px 0 20px; position: relative; }
.nx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.nx-hero .nx-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.nx-hero .nx-kicker::before { content: ""; width: 26px; height: 1px; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nx-hero h1 { font-family: var(--nx-display); font-size: clamp(38px, 5.6vw, 68px); line-height: 1.0; letter-spacing: -0.015em; font-weight: 700; text-transform: uppercase; margin: 0; }
.nx-hero h1 .hx { color: var(--nx-accent); }
.nx-hero .nx-dek { font-size: clamp(16px, 1.5vw, 18px); color: var(--nx-ink-2); margin: 22px 0 0; max-width: 46ch; line-height: 1.55; }
.nx-hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.nx-hero-fig { aspect-ratio: 4/3.4; overflow: hidden; border: 1px solid var(--nx-line-2); }
.nx-hero-fig .nx-ph, .nx-hero-fig img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .nx-hero-grid { grid-template-columns: 1fr; gap: 28px; } .nx-hero-fig { aspect-ratio: 16/9; } }

/* glitch headline */
.nx-glitch { position: relative; display: inline-block; }
.nx-glitch::before, .nx-glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; opacity: .85; }
.nx-glitch::before { color: var(--nx-accent-2); clip-path: inset(0 0 62% 0); animation: nx-gl1 3.6s steps(2) infinite; }
.nx-glitch::after { color: var(--nx-accent); clip-path: inset(58% 0 0 0); animation: nx-gl2 3.2s steps(2) infinite; }
@keyframes nx-gl1 { 0%,88%,100% { transform: translate(0); } 90% { transform: translate(-2px, -1px); } 94% { transform: translate(2px, 1px); } }
@keyframes nx-gl2 { 0%,86%,100% { transform: translate(0); } 92% { transform: translate(2px, 1px); } 96% { transform: translate(-2px, 0); } }

/* ---------- transmissions grid (feature cards) ---------- */
.nx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nx-card { display: flex; flex-direction: column; background: var(--nx-bg-2); border: 1px solid var(--nx-line); position: relative; transition: border-color .18s, box-shadow .18s, transform .18s; }
.nx-card.big { grid-column: span 2; grid-row: span 2; }
.nx-card:hover { border-color: var(--nx-accent); box-shadow: 0 0 26px -10px rgba(36,231,255,.5); transform: translateY(-2px); }
.nx-card-fig { position: relative; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--nx-line); }
.nx-card.big .nx-card-fig { aspect-ratio: 16/9; }
.nx-card-fig .nx-ph, .nx-card-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nx-card:hover .nx-card-fig .nx-ph, .nx-card:hover .nx-card-fig img { transform: scale(1.05); }
.nx-card-fig .nx-tag { position: absolute; top: 12px; left: 12px; background: rgba(9,8,15,.85); }
.nx-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.nx-card h3 { font-family: var(--nx-display); font-size: 18px; line-height: 1.16; font-weight: 600; text-transform: uppercase; letter-spacing: -0.005em; margin: 0; }
.nx-card.big h3 { font-size: clamp(22px, 2.6vw, 30px); }
.nx-card:hover h3 { color: var(--nx-accent); }
.nx-card p { color: var(--nx-ink-2); font-size: 14px; margin: 0; }
.nx-card .nx-byline { margin-top: auto; }
@media (max-width: 900px) { .nx-grid { grid-template-columns: repeat(2, 1fr); } .nx-card.big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .nx-grid { grid-template-columns: 1fr; } .nx-card.big { grid-column: auto; } }

/* ---------- system readout (HUD stats) ---------- */
.nx-readout { border: 1px solid var(--nx-line-2); background: var(--nx-bg-2); display: grid; grid-template-columns: repeat(4, 1fr); }
.nx-stat { padding: 26px 22px; border-right: 1px solid var(--nx-line); position: relative; }
.nx-stat:last-child { border-right: 0; }
.nx-stat .n { font-family: var(--nx-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--nx-accent); line-height: 1; text-shadow: 0 0 16px rgba(36,231,255,.35); }
.nx-stat:nth-child(2n) .n { color: var(--nx-accent-2); text-shadow: 0 0 16px rgba(255,45,149,.35); }
.nx-stat .l { font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--nx-ink-3); margin-top: 10px; }
@media (max-width: 700px) { .nx-readout { grid-template-columns: 1fr 1fr; } .nx-stat:nth-child(-n+2) { border-bottom: 1px solid var(--nx-line); } .nx-stat:nth-child(2n) { border-right: 0; } }

/* ---------- explore tags ---------- */
.nx-explore { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-chip { font-family: var(--nx-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 18px; border: 1px solid var(--nx-line-2); color: var(--nx-ink-2); transition: color .16s, border-color .16s, box-shadow .16s; display: inline-flex; align-items: center; gap: 9px; }
.nx-chip::before { content: ">"; color: var(--nx-accent); }
.nx-chip:hover { color: var(--nx-accent); border-color: var(--nx-accent); box-shadow: 0 0 16px -6px var(--nx-accent); }

/* ---------- map ---------- */
.nx-mapwrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; }
.nx-mapwrap .nx-intro h2 { font-family: var(--nx-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin: 14px 0 0; line-height: 1.02; }
.nx-mapwrap .nx-intro h2 .hx { color: var(--nx-accent); }
.nx-mapwrap .nx-intro p { color: var(--nx-ink-2); margin: 16px 0 0; max-width: 34ch; }
@media (max-width: 860px) { .nx-mapwrap { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- CTA ---------- */
.nx-cta-box { border: 1px solid var(--nx-line-2); background: linear-gradient(180deg, var(--nx-bg-3), var(--nx-bg-2)); padding: 52px 40px; text-align: center; position: relative; overflow: hidden; }
.nx-cta-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(36,231,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,45,149,.05) 1px, transparent 1px); background-size: 40px 40px; }
.nx-cta-box .nx-kicker { position: relative; }
.nx-cta-box h2 { font-family: var(--nx-display); font-size: clamp(28px, 4vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin: 14px 0 0; position: relative; }
.nx-cta-box h2 .hx { color: var(--nx-accent); text-shadow: 0 0 18px rgba(36,231,255,.4); }
.nx-cta-box p { color: var(--nx-ink-2); margin: 14px auto 0; max-width: 44ch; position: relative; font-family: var(--nx-mono); font-size: 13.5px; }
.nx-cta-form { margin: 26px auto 0; display: flex; gap: 12px; max-width: 460px; position: relative; flex-wrap: wrap; justify-content: center; }
.nx-cta-form input { flex: 1; min-width: 200px; font-family: var(--nx-mono); font-size: 14px; padding: 13px 18px; border: 1px solid var(--nx-line-2); background: rgba(9,8,15,.6); color: var(--nx-ink); outline: none; border-radius: 2px; }
.nx-cta-form input:focus { border-color: var(--nx-accent); box-shadow: 0 0 16px -6px var(--nx-accent); }

/* ---------- footer ---------- */
.nx-foot { border-top: 1px solid var(--nx-line); padding: 48px 0 40px; background: var(--nx-bg-2); }
.nx-foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.nx-foot-brand { font-family: var(--nx-display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.nx-foot-brand b { color: var(--nx-accent); }
.nx-foot-brand + p { color: var(--nx-ink-3); font-family: var(--nx-mono); font-size: 12.5px; margin: 14px 0 0; max-width: 32ch; line-height: 1.6; }
.nx-foot h5 { font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-accent); margin: 0 0 14px; }
.nx-foot a { display: block; padding: 5px 0; font-size: 14px; color: var(--nx-ink-2); transition: color .14s; }
.nx-foot a:hover { color: var(--nx-accent); }
.nx-foot-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--nx-line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--nx-ink-3); }
@media (max-width: 820px) { .nx-foot-top { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* ============================================================
   Single post — universal post layout: TOC (mandatory) + neon typography
   ============================================================ */
.nx-article { padding-top: 32px; }
.nx-crumb { font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--nx-ink-3); display: flex; flex-wrap: wrap; gap: 8px; }
.nx-crumb a:hover { color: var(--nx-accent); }
.nx-art-head { max-width: 900px; margin: 22px 0 0; }
.nx-art-head h1 { font-family: var(--nx-display); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -0.01em; font-weight: 700; text-transform: uppercase; margin: 16px 0 0; }
.nx-art-head .nx-standfirst { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--nx-ink-2); margin: 20px 0 0; max-width: 58ch; }
.nx-art-meta { display: flex; align-items: center; gap: 16px; margin: 24px 0 0; padding: 14px 0; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); font-family: var(--nx-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--nx-ink-3); flex-wrap: wrap; }
.nx-art-meta b { color: var(--nx-accent); font-weight: 400; }
.nx-art-fig { margin: 28px 0 0; border: 1px solid var(--nx-line-2); overflow: hidden; }
.nx-art-fig .nx-ph, .nx-art-fig img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.nx-art-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; margin: 46px 0 0; align-items: start; }

/* Table of contents — REQUIRED */
.nx-toc { position: sticky; top: 90px; align-self: start; border: 1px solid var(--nx-line-2); background: var(--nx-bg-2); padding: 18px; }
.nx-toc-h { font-family: var(--nx-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--nx-accent); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--nx-line); }
.nx-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.nx-toc li { counter-increment: toc; }
.nx-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 9px 0; font-family: var(--nx-mono); font-size: 13px; line-height: 1.3; color: var(--nx-ink-2); border-bottom: 1px solid var(--nx-line); transition: color .14s; }
.nx-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--nx-ink-3); }
.nx-toc a:hover { color: var(--nx-ink); }
.nx-toc a.is-active { color: var(--nx-accent); }
.nx-toc a.is-active::before { color: var(--nx-accent); }

/* article richtext (.nx-rt) */
.nx-rt { font-size: 17.5px; line-height: 1.78; color: var(--nx-ink); max-width: 68ch; }
.nx-rt > *:first-child { margin-top: 0; }
.nx-rt p { margin: 0 0 1.25em; color: #d7d8ea; }
.nx-rt > p:first-of-type { font-size: 20px; color: var(--nx-ink); }
.nx-rt h2 { font-family: var(--nx-display); font-size: 25px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; margin: 1.8em 0 .5em; padding-left: 16px; border-left: 3px solid var(--nx-accent); }
.nx-rt h3 { font-family: var(--nx-display); font-size: 19px; font-weight: 600; text-transform: uppercase; margin: 1.6em 0 .4em; color: var(--nx-ink); }
.nx-rt a { color: var(--nx-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.nx-rt a:hover { text-shadow: 0 0 10px rgba(36,231,255,.5); }
.nx-rt ul, .nx-rt ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.nx-rt ul li, .nx-rt ol li { margin: .5em 0; padding-left: 1.7em; position: relative; color: #d7d8ea; }
.nx-rt ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nx-rt ol { counter-reset: li; }
.nx-rt ol li { counter-increment: li; }
.nx-rt ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .05em; font-family: var(--nx-mono); font-size: 13px; color: var(--nx-accent-2); }
.nx-rt blockquote { margin: 1.8em 0; padding: 22px 24px; border: 1px solid var(--nx-line-2); border-left: 3px solid var(--nx-accent-2); background: var(--nx-bg-2); font-family: var(--nx-display); font-size: 22px; line-height: 1.3; font-weight: 600; text-transform: uppercase; color: var(--nx-ink); }
.nx-rt blockquote p { margin: 0; color: var(--nx-ink); }
.nx-rt img { margin: 1.7em 0; border: 1px solid var(--nx-line-2); }
.nx-rt figure { margin: 1.7em 0; }
.nx-rt figcaption { font-family: var(--nx-mono); font-size: 12.5px; color: var(--nx-ink-3); margin-top: 8px; text-transform: uppercase; }
.nx-rt code { font-family: var(--nx-mono); font-size: .9em; background: var(--nx-bg-3); color: var(--nx-cyan); padding: 2px 7px; border: 1px solid var(--nx-line-2); }
.nx-rt hr { border: 0; height: 1px; background: var(--nx-line-2); margin: 2.2em 0; }

.nx-endmark { max-width: 900px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--nx-line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nx-share { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nx-share .lbl { font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; color: var(--nx-ink-3); }
.nx-share a { font-family: var(--nx-mono); font-size: 12px; text-transform: uppercase; color: var(--nx-ink-2); border: 1px solid var(--nx-line-2); padding: 6px 11px; transition: color .14s, border-color .14s; }
.nx-share a:hover { color: var(--nx-accent); border-color: var(--nx-accent); }

.nx-art-body.no-toc { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 880px) { .nx-art-body { grid-template-columns: 1fr; gap: 24px; } .nx-toc { position: static; } .nx-rt { max-width: none; } }

.nx-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .nx-related { grid-template-columns: 1fr; } }

/* ---------- archive / blog ---------- */
.nx-arch-head { padding: 48px 0 0; }
.nx-arch-head .nx-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.nx-arch-head .nx-kicker::before { content: ""; width: 26px; height: 1px; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nx-arch-head h1 { font-family: var(--nx-display); font-size: clamp(38px, 5.4vw, 70px); text-transform: uppercase; letter-spacing: -0.01em; line-height: .98; font-weight: 700; margin: 0; }
.nx-arch-head h1 .hx { color: var(--nx-accent); }
.nx-arch-head p { color: var(--nx-ink-2); max-width: 54ch; margin: 18px 0 0; }
.nx-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 4px; padding-bottom: 22px; border-bottom: 1px solid var(--nx-line); }
.nx-filter a { font-family: var(--nx-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 15px; border: 1px solid var(--nx-line-2); color: var(--nx-ink-2); transition: color .14s, border-color .14s; }
.nx-filter a.on { background: var(--nx-accent); color: var(--nx-bg); border-color: var(--nx-accent); }
.nx-filter a:hover { color: var(--nx-accent); border-color: var(--nx-accent); }
.nx-filter a.on:hover { color: var(--nx-bg); }
.nx-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 900px) { .nx-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nx-blog-grid { grid-template-columns: 1fr; } }

.nx-pagination { display: flex; gap: 8px; justify-content: center; margin: 46px 0 0; flex-wrap: wrap; }
.nx-pagination .page-numbers { min-width: 44px; text-align: center; padding: 10px 14px; border: 1px solid var(--nx-line-2); font-family: var(--nx-mono); font-size: 14px; color: var(--nx-ink-2); }
.nx-pagination .page-numbers.current { background: var(--nx-accent); color: var(--nx-bg); border-color: var(--nx-accent); }
.nx-pagination a.page-numbers:hover { color: var(--nx-accent); border-color: var(--nx-accent); }
.nx-empty { padding: 60px 0; text-align: center; color: var(--nx-ink-3); font-family: var(--nx-mono); }

/* ---------- pages ---------- */
.nx-page { padding: 44px 0 20px; }
.nx-page-lead { max-width: 820px; }
.nx-page-lead .nx-kicker { display: block; margin-bottom: 14px; }
.nx-page-lead h1 { font-family: var(--nx-display); font-size: clamp(32px, 4.6vw, 56px); text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
.nx-page-lead h1 .hx { color: var(--nx-accent); }
.nx-page-body { max-width: 760px; margin: 34px 0 0; font-size: 17.5px; line-height: 1.78; color: #d7d8ea; }
.nx-page-body .blj-lead, .nx-page-body > p:first-child { font-size: 20px; color: var(--nx-ink); }
.nx-page-body h2 { font-family: var(--nx-display); font-size: 24px; text-transform: uppercase; font-weight: 700; margin: 1.7em 0 .5em; padding-left: 14px; border-left: 3px solid var(--nx-accent); color: var(--nx-ink); }
.nx-page-body h3 { font-family: var(--nx-display); font-size: 18px; text-transform: uppercase; margin: 1.5em 0 .4em; color: var(--nx-ink); }
.nx-page-body ul { padding-left: 0; list-style: none; }
.nx-page-body li { margin: .5em 0; padding-left: 1.6em; position: relative; }
.nx-page-body ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nx-page-body a { color: var(--nx-accent); text-decoration: underline; text-underline-offset: 3px; }
.nx-page-body strong { color: var(--nx-ink); font-weight: 700; }
.blj-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 1.4em; }
.blj-chips span { font-family: var(--nx-mono); font-size: 12.5px; text-transform: uppercase; color: var(--nx-ink-2); border: 1px solid var(--nx-line-2); padding: 7px 13px; }
.blj-info-card { margin: 1.6em 0; padding: 24px; border: 1px solid var(--nx-line-2); border-left: 3px solid var(--nx-accent); background: var(--nx-bg-2); }
.blj-info-card h3 { margin: 0 0 6px; }
.blj-info-card a { font-family: var(--nx-mono); color: var(--nx-accent); font-size: 16px; }
.blj-note { color: var(--nx-ink-3); }

/* ---------- The Map ---------- */
.blj-map { background: var(--nx-bg-2); border: 1px solid var(--nx-line-2); padding: 22px; }
.blj-map-title { font-family: var(--nx-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--nx-accent); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--nx-line); }
.blj-map-search { position: relative; margin: 0 0 12px; }
.blj-map-search input { width: 100%; padding: 11px 40px 11px 14px; border: 1px solid var(--nx-line-2); background: rgba(9,8,15,.6); font-family: var(--nx-mono); font-size: 13px; color: var(--nx-ink); outline: none; }
.blj-map-search input:focus { border-color: var(--nx-accent); }
.blj-map-search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--nx-ink-3); }
.blj-map-list { display: flex; flex-direction: column; max-height: 450px; overflow: auto; }
.blj-map-dir { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: var(--nx-accent); color: var(--nx-bg); font-family: var(--nx-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.blj-map-entry { display: flex; flex-direction: column; gap: 3px; padding: 13px 4px; border-bottom: 1px solid var(--nx-line); transition: background .16s, padding-left .16s; }
.blj-map-entry:hover { background: rgba(36,231,255,.05); padding-left: 12px; }
.blj-map-anchor { font-family: var(--nx-display); font-size: 15px; text-transform: uppercase; color: var(--nx-ink); }
.blj-map-anchor:hover { color: var(--nx-accent); }
.blj-map-host { display: inline-flex; align-items: center; gap: 4px; font-family: var(--nx-mono); font-size: 12px; color: var(--nx-accent-2); }
.blj-map-src { font-family: var(--nx-mono); font-size: 12px; color: var(--nx-ink-3); }
.blj-map-src:hover { color: var(--nx-ink); }
.blj-map-empty { color: var(--nx-ink-3); padding: 16px 4px; font-family: var(--nx-mono); }

/* ============================================================
   Motion — reveal, glow, glitch. Gated on prefers-reduced-motion + ?noanim.
   ============================================================ */
.js-reveal .nx-reveal, .js-reveal .nx-sec-head, .js-reveal .nx-card, .js-reveal .nx-stat,
.js-reveal .nx-chip, .js-reveal .nx-mapwrap > *, .js-reveal .nx-cta-box, .js-reveal .nx-arch-head,
.js-reveal .nx-filter, .js-reveal .nx-art-head, .js-reveal .nx-art-fig, .js-reveal .nx-hero-fig {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.js-reveal .is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .nx-reveal, .js-reveal .nx-sec-head, .js-reveal .nx-card, .js-reveal .nx-stat,
  .js-reveal .nx-chip, .js-reveal .nx-mapwrap > *, .js-reveal .nx-cta-box, .js-reveal .nx-arch-head,
  .js-reveal .nx-filter, .js-reveal .nx-art-head, .js-reveal .nx-art-fig, .js-reveal .nx-hero-fig { opacity: 1; transform: none; transition: none; }
  .nx-glitch::before, .nx-glitch::after { animation: none; display: none; }
  .nx-ticker-track { animation: none; }
  .nx-topbar .live::before { animation: none; }
}
html.noanim .nx-glitch::before, html.noanim .nx-glitch::after { animation: none; display: none; }
html.noanim .nx-ticker-track { animation: none; }
html.noanim .nx-topbar .live::before { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  :root { --nx-gut: 16px; }
  .nx-nav-links { display: none; }
  .nx-topbar .mid { display: none; }
}
