/* SaturnNet Enterprise: dark "profiler" UI inspired by Watch Dogs 1 */

:root {
  --bg: #07090a;
  --bg-alt: #0b0e10;
  --panel: rgba(13, 17, 19, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #e9edef;
  --muted: #8d979c;
  --accent: #00b25f;          /* logo green */
  --accent-bright: #2ef08f;
  --accent-dim: rgba(0, 178, 95, 0.14);
  --glitch-a: #ff2e4d;
  --glitch-b: #2ed3ff;
  --font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; }
.muted { color: var(--muted); }
.ok { color: var(--accent-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #000; padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* CRT scanlines over everything, very subtle */
.scanlines {
  pointer-events: none; position: fixed; inset: 0; z-index: 60;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 10, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.logo { height: 34px; width: auto; }
.logo--print { display: none; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; font-weight: 600;
  color: var(--muted); position: relative; padding: 4px 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--accent); transition: width .2s;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.site-nav .nav-cta { color: var(--text); border: 1px solid var(--accent); padding: 8px 16px; }
.site-nav .nav-cta:hover { background: var(--accent-dim); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border: 0; font-family: var(--font-head); cursor: pointer;
  text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .95rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background .2s, color .2s;
}
.btn--primary { background: var(--accent); color: #031009; }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .82rem;
  color: var(--accent-bright); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }

.corner { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; border-width: 0; }
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px);
  display: flex; align-items: center; padding: 80px 0;
  background:
    radial-gradient(1000px 600px at 75% 40%, rgba(0,178,95,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #050607 100%);
}
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 24px; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: #c4cbcf; max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Glitch heading: brief RGB-split bursts, not constant */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.glitch::before { color: var(--glitch-a); }
.glitch::after { color: var(--glitch-b); }
.glitch.is-glitching::before { opacity: .85; animation: glitch-a .45s steps(2) both; }
.glitch.is-glitching::after { opacity: .85; animation: glitch-b .45s steps(2) both; }
@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-4px, 0); }
  33% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); }
  66% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(80% 0 5% 0); transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-b {
  0% { clip-path: inset(65% 0 10% 0); transform: translate(4px, 0); }
  33% { clip-path: inset(15% 0 60% 0); transform: translate(-5px, 0); }
  66% { clip-path: inset(45% 0 35% 0); transform: translate(3px, 0); }
  100% { clip-path: inset(5% 0 85% 0); transform: translate(0, 0); opacity: 0; }
}

/* Profiler panel */
.profiler {
  position: relative; background: var(--panel); border: 1px solid var(--line-strong); padding: 26px 28px 22px;
  backdrop-filter: blur(4px);
}
.profiler-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.profiler-tag { background: var(--text); color: #000; text-transform: uppercase; font-weight: 700; letter-spacing: .16em; font-size: .78rem; padding: 3px 10px; }
.profiler-id { color: var(--muted); font-size: .82rem; }
.profiler-name { font-size: 1.9rem; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.profiler-data { margin: 0; font-size: .95rem; }
.profiler-data div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 6px 0; }
.profiler-data dt { color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; padding-top: 2px; }
.profiler-data dd { margin: 0; }
.profiler-bar { height: 4px; background: rgba(255,255,255,.08); margin: 18px 0 12px; overflow: hidden; }
.profiler-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: scan-bar 2.4s ease-out both; }
@keyframes scan-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.profiler-foot { margin: 0; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: #050607; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 56px; padding: 14px 0; color: var(--muted); font-size: .9rem; text-transform: uppercase; animation: ticker 40s linear infinite; }
.ticker-track span:nth-child(3n+1) { color: var(--accent-bright); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-lede { color: #c4cbcf; font-size: 1.2rem; }

/* Service nodes */
.node-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.node { position: relative; background: var(--bg); padding: 36px 32px 32px; transition: background .25s; }
.node::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .35s; }
.node:hover { background: #0d1113; }
.node:hover::before { width: 100%; }
.node-index { position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: .8rem; }
.node-icon { width: 36px; height: 36px; margin-bottom: 22px; fill: none; stroke: var(--accent-bright); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node p { color: #b6bec2; margin: 0; }

/* Protocol sequence */
.sequence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.step:not(:last-child)::after { /* connector line */
  content: ""; position: absolute; top: 46px; right: -25px; width: 26px; height: 1px; background: var(--accent);
}
.step-num { display: inline-block; color: #031009; background: var(--accent); padding: 2px 8px; font-size: .85rem; margin-bottom: 18px; }
.step p { color: #b6bec2; margin: 0; }

/* About + map */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid p { color: #c4cbcf; }
.map-panel { position: relative; margin: 0; border: 1px solid var(--line-strong); background: #050607; }
.map-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.map-svg { display: block; width: 100%; height: auto; overflow: hidden; }
/* Dark halo behind every label so text stays readable where it crosses borders and grid lines. */
.map-svg text { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; paint-order: stroke; stroke: #050607; stroke-width: 3px; stroke-linejoin: round; }
.map-grid-line { stroke: rgba(255,255,255,.045); stroke-width: 1; }
.map-grat { stroke: rgba(255,255,255,.10); stroke-width: .75; stroke-dasharray: 2 4; }
.map-tick { fill: rgba(255,255,255,.35); font-size: 8px !important; }
.map-tick--hot { fill: rgba(46,240,143,.75); }
.map-region { fill: rgba(255,255,255,.16); font-size: 14px !important; letter-spacing: .4em !important; font-weight: 700; }
.map-region--act { fill: rgba(255,255,255,.22); font-size: 8px !important; letter-spacing: .25em !important; }
.map-hatch-line { stroke: rgba(46,240,143,.13); stroke-width: 1.2; }
.map-act { fill: url(#act-hatch); stroke: rgba(233,237,239,.85); stroke-width: 1.25; stroke-linejoin: round; }
.map-act-glow { fill: rgba(0,178,95,.05); stroke: rgba(0,178,95,.35); stroke-width: 6; stroke-linejoin: round; }
.map-river { fill: none; stroke: rgba(46,211,255,.45); stroke-width: 1.2; stroke-dasharray: 4 3; stroke-linejoin: round; }
.map-range { fill: none; stroke: rgba(46,240,143,.28); stroke-width: .8; stroke-dasharray: 3 5; }
.map-range-label { fill: rgba(46,240,143,.55); font-size: 7.5px !important; }
.map-cross { stroke: rgba(46,240,143,.35); stroke-width: .75; stroke-dasharray: 6 4; }
.map-hq { fill: var(--accent-bright); font-size: 11px !important; font-weight: 700; letter-spacing: .14em !important; }
.map-ping { fill: var(--accent-bright); filter: drop-shadow(0 0 4px var(--accent)); }
.map-ping-ring { fill: none; stroke: var(--accent-bright); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.map-scan { animation: map-scan 7s linear infinite; pointer-events: none; }
@keyframes map-scan { from { transform: translateY(0); } to { transform: translateY(560px); } }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.map-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* Contact terminal */
.terminal { max-width: 820px; margin: 0 auto; border: 1px solid var(--line-strong); background: #050607; }
.terminal-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); text-transform: uppercase; }
.terminal-body { padding: clamp(28px, 5vw, 48px); }
.terminal-body p { color: #c4cbcf; }
.term-line { color: var(--accent-bright) !important; margin-bottom: 20px; min-height: 1.5em; overflow-wrap: anywhere; }
.terminal .btn { margin-top: 8px; text-transform: none; letter-spacing: .04em; }

/* ---------- Inner pages ---------- */
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }
.site-nav .nav-cta[aria-current="page"] { background: var(--accent-dim); }

.page-hero {
  position: relative; padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(0,178,95,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--bg);
}
.page-hero--compact .lede { max-width: 44em; }
.page-hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
.page-hero .lede { margin-bottom: 0; }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(46,240,143,.4); }
.eyebrow a:hover { border-bottom-color: var(--accent-bright); }

.section--tight { padding-top: clamp(48px, 6vw, 72px); }
.section--cta { border-top: 1px solid var(--line); background: var(--bg-alt); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split .section-lede { margin-bottom: 0; }
.text-link { color: var(--accent-bright); text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .08em; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.h3-like { font-size: 1.35rem; letter-spacing: .04em; margin-bottom: 20px; }

/* Linked service nodes */
.node--link { display: block; text-decoration: none; color: inherit; }
.node-more { display: inline-block; margin-top: 20px; color: var(--accent-bright); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; transition: opacity .2s, transform .2s; }
.node--link:hover .node-more, .node--link:focus-visible .node-more { opacity: 1; transform: translateX(4px); }
.node-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Service detail */
.profiler-name .node-icon { display: inline-block; vertical-align: -6px; width: 30px; height: 30px; margin: 0 12px 0 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; margin-bottom: 64px; }
.check-list, .arrow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li, .arrow-list li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; color: #c4cbcf; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 6px;
  border-left: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(-45deg);
}
.arrow-list li { font-size: .98rem; }
.arrow-list li::before { content: ">"; position: absolute; left: 6px; color: var(--accent-bright); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--bg); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; transition: background .2s; }
.pager-link .mono { font-size: .8rem; font-weight: 400; }
.pager-link:hover { background: #0d1113; }
.pager-link--next { text-align: right; }

/* Programs */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-strong); padding: 24px 26px 26px; }
.program-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.program h3 { font-size: 1.5rem; }
.program p { color: #b6bec2; flex: 1; }
.status-chip { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.status-chip::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.status-chip[data-status="in-use-internally"], .status-chip[data-status="live"] { color: var(--accent-bright); border-color: rgba(46,240,143,.45); }
.status-chip[data-status="in-development"] { color: #ffc94d; border-color: rgba(255,201,77,.45); }
.tag-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { white-space: nowrap; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; }

/* Principles */
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principle { padding: 28px 24px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.principle p { color: #b6bec2; margin: 0; }
.sequence--stacked { grid-template-columns: 1fr; }
.sequence--stacked .step::after { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.contact-grid .terminal { max-width: none; margin: 0; }
.contact-card dd a { color: var(--accent-bright); overflow-wrap: anywhere; }
.contact-card .profiler-foot { margin-top: 16px; text-transform: none; letter-spacing: .02em; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: #0a0d0f; color: var(--text); border: 1px solid var(--line-strong); border-radius: 0;
  font: 500 1.05rem/1.4 var(--font-head); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-bright) 50%), linear-gradient(135deg, var(--accent-bright) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(0,178,95,.25); }
.field [aria-invalid="true"] { border-color: var(--glitch-a); }
.terminal-body .field-error { color: #ff6b81; font-size: .85rem; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 18px 0 0; min-height: 1.5em; font-size: .95rem; }
.form-status.is-ok { color: var(--accent-bright); }
.form-status.is-error { color: #ff6b81; }
.form-status a { color: inherit; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* 404 */
.hero--error { min-height: calc(100vh - 72px - 180px); }
.terminal--error { position: relative; z-index: 1; }
.terminal--error h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; }
.err, .term-line--error { color: #ff6b81 !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: #050607; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.footer-logo { height: 26px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; font-size: .85rem; color: var(--muted); }
.footer-details a { color: var(--muted); }
.footer-details a:hover { color: var(--accent-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .page-hero-inner, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .node-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; }
  .sequence, .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .sequence--stacked { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 9, 10, .97); border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .site-nav .nav-cta { border: 0; border-top: 1px solid var(--line); color: var(--accent-bright); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .logo { height: 26px; }
  .hero { padding: 56px 0 72px; min-height: 0; }
  .node-grid, .node-grid--2, .sequence, .principle-grid, .detail-grid, .pager { grid-template-columns: 1fr; }
  .pager-link--next { text-align: left; }
  .profiler-data div { grid-template-columns: 96px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print: light page, black logo */
@media print {
  body { background: #fff; color: #000; }
  .scanlines, .net-canvas, .ticker, .nav-toggle, .site-nav, .hero-actions { display: none !important; }
  .logo--screen { display: none; }
  .logo--print { display: block; }
  .site-header { position: static; background: none; border: 0; }
  .hero, .section--alt, .site-footer, .map-panel, .terminal, .profiler, .node { background: #fff !important; color: #000; }
}
