:root {
  --bg-0: #020402;
  --bg-1: #060a06;
  --bg-2: #0b110b;
  --bg-3: #111911;
  --panel: rgba(10, 15, 10, 0.84);
  --panel-strong: rgba(8, 13, 8, 0.96);
  --line: rgba(143, 255, 122, 0.12);
  --line-strong: rgba(143, 255, 122, 0.28);
  --text: #edf5ea;
  --muted: #9aad96;
  --signal: #a8ff60;
  --signal-2: #6dff98;
  --signal-3: #e7ffc9;
  --warn: #f0c86b;
  --danger: #ff6b7d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  --radius: 22px;
  --content-width: 1200px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(109, 255, 152, 0.07), transparent 20%),
    radial-gradient(circle at bottom right, rgba(168, 255, 96, 0.05), transparent 22%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 22%, var(--bg-2) 60%, var(--bg-3) 100%);
  overflow-x: hidden;
}

::selection {
  background: rgba(168, 255, 96, 0.22);
  color: #f7fff1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.page-noise,
.page-grid,
.page-scanlines,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  z-index: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
}

.page-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(143, 255, 122, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 122, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  animation: grid-drift 18s linear infinite;
}

.page-scanlines {
  z-index: 1;
  opacity: 0.13;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.011),
    rgba(255, 255, 255, 0.011) 1px,
    transparent 1px,
    transparent 4px
  );
}

.glow {
  z-index: 0;
  width: 560px;
  height: 560px;
  margin: auto;
  border-radius: 50%;
  filter: blur(140px);
}

.glow-a {
  top: -280px;
  left: -220px;
  background: rgba(109, 255, 152, 0.09);
  animation: float-a 14s ease-in-out infinite;
}

.glow-b {
  right: -240px;
  bottom: -280px;
  background: rgba(168, 255, 96, 0.07);
  animation: float-b 16s ease-in-out infinite;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(34px); }
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(34px, 26px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-36px, -24px); }
}

.container,
.site-header,
.hero,
.operator-strip,
.section,
.archive-hero,
.archive-filters,
.archive-layout,
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 18px;
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 174, 56, 0.35));
}

.brand-name {
  color: var(--text);
  font-size: 0.98rem;
}

.brand-mark-x {
  color: #ff3b30;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-left: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.25);
  opacity: 0.92;
  transform: translateY(-1px);
  display: inline-block;
}

.brand:hover .brand-mark-x,
.brand:focus-visible .brand-mark-x {
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.42);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}



.panel {
  background: linear-gradient(180deg, rgba(12, 18, 12, 0.88), rgba(8, 12, 8, 0.97));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel:hover {
  border-color: var(--line-strong);
}

.panel-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.panel-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.panel-bar span:nth-child(1) { background: var(--warn); }
.panel-bar span:nth-child(2) { background: var(--signal-2); }
.panel-bar span:nth-child(3) { background: var(--signal); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 30px;
  align-items: center;
  min-height: 92vh;
  padding-top: 40px;
  padding-bottom: 42px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
}

.glitch::before {
  color: rgba(168, 255, 96, 0.55);
  transform: translate(1px, -1px);
  animation: glitch-a 2.8s infinite linear alternate-reverse;
}

.glitch::after {
  color: rgba(240, 200, 107, 0.32);
  transform: translate(-1px, 1px);
  animation: glitch-b 2.3s infinite linear alternate-reverse;
}

@keyframes glitch-a {
  0% { clip-path: inset(0 0 80% 0); }
  20% { clip-path: inset(20% 0 50% 0); }
  40% { clip-path: inset(60% 0 12% 0); }
  60% { clip-path: inset(12% 0 70% 0); }
  80% { clip-path: inset(44% 0 32% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes glitch-b {
  0% { clip-path: inset(80% 0 0 0); }
  20% { clip-path: inset(48% 0 22% 0); }
  40% { clip-path: inset(14% 0 56% 0); }
  60% { clip-path: inset(66% 0 8% 0); }
  80% { clip-path: inset(28% 0 36% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.hero-text,
.section-head p:last-child,
.channel-copy p,
.archive-hero-copy p:last-child,
.article-copy p,
.article-copy li,
.article-copy blockquote {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.03rem;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0 0;
}

.hero-actions,
.channel-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-signal {
  position: relative;
  max-width: 760px;
  margin-top: 28px;
}

.hero-signal::before {
  content: none;
}

.hero-signal-panel {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 255, 122, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(109, 255, 152, 0.05), rgba(109, 255, 152, 0.02) 38%, rgba(240, 200, 107, 0.03)),
    rgba(7, 11, 7, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 18px 44px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(109, 255, 152, 0.08), transparent);
  transform: translateX(-100%);
  animation: hero-signal-scan 8s linear infinite;
  pointer-events: none;
}

.hero-signal-row {
  position: relative;
  z-index: 1;
  padding: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hero-signal-row::before {
  content: none;
}

.hero-signal-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-signal-row p {
  margin: 0;
  color: var(--signal-3);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(109, 255, 152, 0.05);
}

@keyframes hero-signal-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { opacity: 1; }
  50% { opacity: 0.9; }
  100% { transform: translateX(100%); opacity: 0; }
}

.code-banner,
.filter-strip,
.article-tags,
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.code-banner span,
.filter-pill,
.article-tags span,
.meta-pill {
  padding: 10px 14px;
  border: 1px solid rgba(143, 255, 122, 0.12);
  border-radius: 999px;
  background: rgba(109, 255, 152, 0.06);
  color: var(--signal-3);
  font-size: 0.9rem;
}


.hero-panel .panel {
  overflow: hidden;
}

.terminal-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  align-items: center;
  padding: 22px;
}


.terminal-layout {
  position: relative;
  isolation: isolate;
}

.terminal-layout > * {
  position: relative;
  z-index: 1;
}

.terminal-watermark,
.terminal-corner-logo {
  position: absolute;
  background-image: url("assets/htc-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.terminal-watermark {
  display: none;
}

.hero-panel {
  position: relative;
  isolation: isolate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: min(60vw, 540px);
  height: min(60vw, 540px);
  right: -78px;
  top: 54px;
  z-index: 0;
  background-image: url("assets/htc-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  filter: saturate(0.78) brightness(0.72) blur(0.4px);
  transform: rotate(-4deg);
  transform-origin: center;
  pointer-events: none;
}

.hero-panel .panel {
  position: relative;
  z-index: 1;
}

.terminal-corner-logo {
  z-index: 2;
  width: 98px;
  height: 98px;
  top: 12px;
  right: 12px;
  opacity: 0.84;
  filter: drop-shadow(0 0 14px rgba(255, 176, 78, 0.22));
  animation: logo-drift 6s ease-in-out infinite;
}

.terminal {
  padding-right: 20px;
}

.terminal-layout {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
}

.hud-stack {
  position: relative;
  min-height: 640px;
}

.hud-stack::before,
.hud-stack::after {
  content: "";
  position: absolute;
  height: 1px;
  pointer-events: none;
  opacity: 0.9;
}

.hud-stack::before {
  top: 350px;
  left: -6px;
  width: 92px;
  background: linear-gradient(90deg, rgba(143, 255, 122, 0), rgba(143, 255, 122, 0.14), rgba(143, 255, 122, 0.34));
  transform: rotate(12deg);
  transform-origin: left center;
}

.hud-stack::after {
  top: 382px;
  left: 28px;
  width: 78px;
  background: linear-gradient(90deg, rgba(143, 255, 122, 0), rgba(143, 255, 122, 0.08), rgba(143, 255, 122, 0.22));
  transform: rotate(-6deg);
  transform-origin: left center;
}

.hud-kicker {
  display: none;
}

.relay-panel {
  position: absolute;
  right: 0;
  bottom: 112px;
  width: min(100%, 206px);
  margin-top: 0;
  padding: 4px 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-mono);
}

.relay-panel::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -16px;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 255, 122, 0.22), rgba(143, 255, 122, 0));
  opacity: 0.72;
}

.relay-title {
  margin-bottom: 10px;
  color: rgba(240, 255, 235, 0.98);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.relay-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(143, 255, 122, 0.12);
  color: rgba(212, 228, 208, 0.92);
  font-size: 0.76rem;
}

.relay-row:first-of-type {
  border-top: 0;
}

.relay-row span {
  text-transform: lowercase;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

.relay-row strong {
  color: #f1fff2;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.operator-signature {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: min(100%, 224px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.signature-label {
  color: rgba(218, 232, 214, 0.82);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signature-svg {
  width: 100%;
  height: 38px;
  overflow: visible;
}

.signature-guide,
.signature-shadow,
.signature-trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signature-guide {
  stroke: rgba(143, 255, 122, 0.08);
  stroke-width: 0.8;
}

.signature-shadow {
  stroke: rgba(119, 255, 157, 0.08);
  stroke-width: 5;
  filter: blur(3px);
}

.signature-trace {
  stroke: rgba(255, 190, 92, 0.92);
  stroke-width: 1.9;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  filter: drop-shadow(0 0 6px rgba(255, 186, 84, 0.2));
  animation: signature-write 7.2s ease-in-out infinite;
}

.signature-caption {
  color: rgba(236, 218, 173, 0.72);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 190, 92, 0.1);
}

@keyframes signature-write {
  0%, 14% {
    stroke-dashoffset: 520;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  60%, 80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
}

@keyframes logo-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-1.4deg); }
}

.node-network {
  position: absolute;
  inset: 24px 18px 18px 18px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.node-link,
.node-point {
  position: absolute;
}

.node-link {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(143, 255, 122, 0), rgba(143, 255, 122, 0.16), rgba(143, 255, 122, 0.02));
  opacity: 0.52;
  animation: network-fade 5.4s ease-in-out infinite;
}

.node-link-a { top: 74px; left: 236px; width: 158px; transform: rotate(-14deg); animation-delay: 0.2s; }
.node-link-b { top: 110px; left: 314px; width: 112px; transform: rotate(24deg); animation-delay: 1.1s; }
.node-link-c { top: 150px; left: 140px; width: 156px; transform: rotate(12deg); animation-delay: 1.8s; }
.node-link-d { top: 204px; left: 284px; width: 172px; transform: rotate(6deg); animation-delay: 0.7s; }
.node-link-e { top: 264px; left: 136px; width: 196px; transform: rotate(-8deg); animation-delay: 2.5s; }
.node-link-f { top: 322px; left: 194px; width: 176px; transform: rotate(18deg); animation-delay: 1.4s; }
.node-link-g { top: 382px; left: 88px; width: 252px; transform: rotate(2deg); animation-delay: 3.1s; }
.node-link-h { top: 436px; left: 226px; width: 164px; transform: rotate(-18deg); animation-delay: 1.9s; }
.node-link-i { top: 500px; left: 122px; width: 236px; transform: rotate(10deg); animation-delay: 2.9s; }
.node-link-j { top: 548px; left: 244px; width: 146px; transform: rotate(-12deg); animation-delay: 0.9s; }
.node-link-k { top: 136px; left: 420px; width: 120px; transform: rotate(72deg); animation-delay: 2.2s; }
.node-link-l { top: 244px; left: 458px; width: 118px; transform: rotate(98deg); animation-delay: 1.6s; }

.node-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 255, 240, 0.96) 0%, rgba(109, 255, 152, 0.88) 60%, rgba(72, 198, 115, 0.82) 100%);
  box-shadow: 0 0 12px rgba(109, 255, 152, 0.34);
  animation: node-pulse 4.8s ease-in-out infinite;
}

.node-point-a { top: 68px; left: 226px; animation-delay: 0.2s; }
.node-point-b { top: 106px; left: 388px; animation-delay: 1.1s; }
.node-point-c { top: 144px; left: 304px; animation-delay: 2s; }
.node-point-d { top: 202px; left: 446px; animation-delay: 0.8s; }
.node-point-e { top: 258px; left: 198px; animation-delay: 2.6s; }
.node-point-f {
  top: 316px;
  left: 330px;
  animation-delay: 1.8s;
}
.node-point-g { top: 380px; left: 142px; animation-delay: 1.4s; }
.node-point-h { top: 430px; left: 392px; animation-delay: 2.3s; }
.node-point-i { top: 498px; left: 214px; animation-delay: 0.6s; }
.node-point-j {
  top: 548px;
  left: 426px;
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #fff5d6 0%, rgba(240, 200, 107, 0.96) 68%, rgba(213, 155, 51, 0.98) 100%);
  box-shadow: 0 0 14px rgba(240, 200, 107, 0.55);
  animation-delay: 1.8s;
}
.node-point-k { top: 238px; left: 516px; animation-delay: 2.9s; }

@keyframes node-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.42; }
  45% { transform: scale(1.22); opacity: 0.96; }
  70% { transform: scale(1); opacity: 0.68; }
}

@keyframes network-fade {
  0%, 100% { opacity: 0.16; }
  45% { opacity: 0.62; }
  70% { opacity: 0.3; }
}


.terminal,
.archive-terminal,
.boot-sequence {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  line-height: 1.86;
  color: #dfeedd;
}

.terminal p,
.archive-terminal p,
.boot-sequence p {
  margin: 0;
}

.prompt {
  color: var(--signal);
}

.log-feed {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 10px;
  color: #cfe6cb;
  font-size: 0.92rem;
}

.log-feed span {
  opacity: 0;
  animation: log-cycle 8s linear infinite;
}

.log-feed span:nth-child(1) { animation-delay: 0s; }
.log-feed span:nth-child(2) { animation-delay: 2s; }
.log-feed span:nth-child(3) { animation-delay: 4s; }
.log-feed span:nth-child(4) { animation-delay: 6s; }

@keyframes log-cycle {
  0% { opacity: 0; transform: translateY(4px); }
  8%, 20% { opacity: 1; transform: translateY(0); }
  28%, 100% { opacity: 0; transform: translateY(-4px); }
}

.cursor-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(168, 255, 96, 0.75);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.radar {
  position: relative;
  width: 178px;
  height: 178px;
  margin: 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(98, 255, 146, 0.08));
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  pointer-events: none;
}

.radar::before {
  width: 178px;
  height: 178px;
  background:
    linear-gradient(rgba(143, 255, 122, 0.12), rgba(143, 255, 122, 0.12)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(143, 255, 122, 0.1), rgba(143, 255, 122, 0.1)) center / 100% 1px no-repeat,
    repeating-conic-gradient(
      from -2deg,
      rgba(143, 255, 122, 0.12) 0deg 1.3deg,
      transparent 1.3deg 22.5deg
    );
  mask: radial-gradient(circle, transparent 0 68px, black 68px 89px, transparent 89px);
  opacity: 0.34;
}

.radar::after {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(143, 255, 122, 0.08);
  box-shadow: inset 0 0 20px rgba(143, 255, 122, 0.03);
}

.radar-ring,
.radar-sweep,
.radar-center,
.radar-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.radar-ring-1 {
  width: 178px;
  height: 178px;
  border: 1px solid rgba(143, 255, 122, 0.16);
  box-shadow: inset 0 0 0 1px rgba(143, 255, 122, 0.02);
  animation: rotate 20s linear infinite;
}

.radar-ring-2 {
  width: 132px;
  height: 132px;
  border: 1px dashed rgba(109, 255, 152, 0.22);
  animation: rotate-reverse 15s linear infinite;
}

.radar-ring-3 {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(143, 255, 122, 0.26);
  animation: rotate 10s linear infinite;
}

.radar-sweep {
  width: 178px;
  height: 178px;
  background: conic-gradient(
    from 12deg,
    rgba(168, 255, 96, 0.22) 0deg,
    rgba(109, 255, 152, 0.08) 30deg,
    rgba(109, 255, 152, 0.02) 58deg,
    transparent 94deg
  );
  filter: blur(0.2px);
  animation: rotate 4.6s linear infinite;
}

.radar-center {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, var(--signal-3) 0%, var(--signal-2) 58%, rgba(109, 255, 152, 0.9) 100%);
  box-shadow: 0 0 20px rgba(109, 255, 152, 0.8);
}

.radar-dot {
  width: 8px;
  height: 8px;
}

.radar-dot-a,
.radar-dot-c {
  background: radial-gradient(circle, rgba(244, 255, 233, 0.95) 0%, rgba(109, 255, 152, 0.92) 70%, rgba(72, 198, 115, 0.96) 100%);
  box-shadow: 0 0 10px rgba(109, 255, 152, 0.55);
}

.radar-dot-b {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #fff4cf 0%, var(--warn) 68%, #d59b33 100%);
  box-shadow: 0 0 12px rgba(240, 200, 107, 0.78);
}

.radar-dot-a { top: 18px; left: 82px; }
.radar-dot-b { top: 118px; left: 130px; }
.radar-dot-c { top: 84px; left: 20px; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  to { transform: rotate(-360deg); }
}

.operator-strip {
  padding-top: 6px;
}

.strip-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px;
}

.strip-panel strong {
  display: block;
  margin-bottom: 8px;
}

.strip-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section,
.archive-layout,
.article-page {
  padding-top: 96px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2,
.archive-hero-copy h1,
.article-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.module-grid,
.status-grid {
  display: grid;
  gap: 22px;
}

.module-grid {
  grid-template-columns: repeat(3, 1fr);
}

.status-grid {
  grid-template-columns: repeat(4, 1fr);
}

.module-card,
.status-card,
.entry-card,
.sidebar-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover,
.status-card:hover,
.channel:hover,
.hero-panel .panel:hover,
.entry-card:hover,
.sidebar-card:hover,
.article-layout .panel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

.module-id {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.module-card h3,
.status-card h3,
.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.module-card p,
.status-card p,
.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.operational-grid {
  position: relative;
}

.operational-card {
  position: relative;
  min-height: 166px;
  padding-top: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.88), rgba(6, 12, 9, 0.96));
}

.status-index {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 14px;
  color: rgba(170, 255, 156, 0.76);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.operational-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operational-card p {
  max-width: 24ch;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.95;
  color: rgba(220, 236, 213, 0.78);
}

.status-bridge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: -4px 0 12px;
  padding: 0 22px;
  height: 24px;
  pointer-events: none;
}

.status-bridge span {
  position: relative;
  justify-self: center;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(170, 255, 156, 0.18), rgba(170, 255, 156, 0));
}

.status-bridge span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(150, 255, 146, 0.7);
  box-shadow: 0 0 0 4px rgba(146, 255, 148, 0.06), 0 0 14px rgba(146, 255, 148, 0.18);
}

.code-banner {
  margin-top: 24px;
  padding: 20px;
}

.channel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 28px;
}

.channel-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.channel-linkbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.channel-qr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-qr-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.channel-qr {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
}

.channel-link-label {
  margin: 0 0 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.channel-link {
  display: block;
  word-break: break-all;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--signal-2);
}

.channel-link:hover {
  color: var(--text);
}

.channel-link-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #081008;
  background: linear-gradient(135deg, var(--signal-2), var(--signal));
  box-shadow: 0 10px 28px rgba(109, 255, 152, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(168, 255, 96, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.site-footer {
  padding-top: 42px;
  padding-bottom: 40px;
}

.site-footer p {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
  padding-top: 54px;
}

.archive-side {
  overflow: hidden;
}

.archive-terminal {
  padding: 22px;
}

.archive-filters {
  padding-top: 24px;
}

.filter-strip {
  padding: 18px;
}

.filter-pill {
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  border-color: var(--line-strong);
  background: rgba(109, 255, 152, 0.09);
  color: var(--signal);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-top: 24px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.archive-main {
  display: grid;
  gap: 22px;
}

.entry-top,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.entry-top {
  margin-bottom: 16px;
}

.entry-tag {
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.entry-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
}

.entry-card h2 a {
  transition: color 0.2s ease;
}

.entry-card h2 a:hover {
  color: var(--signal);
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.entry-meta {
  margin-top: 16px;
  color: #c6d5c3;
  font-size: 0.92rem;
}

.archive-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.sidebar-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(143, 255, 122, 0.08);
}

.sidebar-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.sidebar-list span {
  color: var(--muted);
}

.sidebar-list strong {
  color: var(--text);
  font-weight: 600;
}

.plain-list li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(143, 255, 122, 0.06);
}

.sidebar-btn {
  width: 100%;
  margin-top: 18px;
}

.article-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-head {
  margin-bottom: 28px;
}

.meta-strip {
  margin-bottom: 16px;
}

.article-copy {
  padding: 30px;
}

.article-copy h2 {
  margin: 34px 0 14px;
  font-size: 1.6rem;
  line-height: 1.15;
}

.article-copy p {
  margin: 0 0 18px;
}

.article-copy ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-copy li {
  margin-bottom: 10px;
}

.article-copy blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--signal);
  background: rgba(109, 255, 152, 0.04);
  border-radius: 0 14px 14px 0;
}

.article-copy pre {
  margin: 24px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  color: #dff5cf;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-aside {
  display: grid;
  gap: 22px;
}

.boot-sequence {
  padding: 18px 20px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--signal-3);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.inline-note {
  color: var(--signal);
}

.muted {
  color: var(--muted);
}

.hide-mobile {
  display: inline;
}

@media (max-width: 1080px) {
  .hero,
  .channel,
  .module-grid,
  .status-grid,
  .strip-panel,
  .terminal-layout,
  .archive-hero,
  .archive-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hud-stack {
    width: min(100%, 280px);
    min-height: 420px;
    justify-self: center;
  }

  .hud-stack::before {
    top: 210px;
    left: -8px;
    width: 74px;
    height: 1px;
    transform: rotate(16deg);
  }

  .hud-stack::after {
    top: 238px;
    left: 24px;
    width: 58px;
    height: 1px;
    transform: rotate(-4deg);
  }

  .relay-panel {
    bottom: 86px;
  }

  .operator-signature {
    bottom: -8px;
  }

  .node-network {
    inset: 28px 16px 18px 16px;
    opacity: 0.62;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .channel-linkbox {
    max-width: 420px;
  }

  .status-bridge {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 14px;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 14px;
  }

  .hero-actions,
  .channel-actions,
  .article-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-signal-panel {
    padding: 14px 16px;
  }

  .hero-signal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-signal-row p {
    white-space: normal;
  }

  .hud-kicker {
    display: none;
  }

  .hud-stack {
    width: 100%;
    min-height: 360px;
  }

  .node-network {
    inset: 18px 14px 18px 14px;
    opacity: 0.52;
  }

  .hud-stack::before,
  .hud-stack::after {
    display: none;
  }

  .relay-panel {
    max-width: 240px;
    right: 0;
    bottom: 82px;
  }

  .operator-signature {
    right: 0;
    bottom: -6px;
    max-width: 240px;
  }

  .radar {
    width: 150px;
    height: 150px;
  }

  .radar-ring-1,
  .radar-sweep {
    width: 150px;
    height: 150px;
  }

  .radar-ring-2 {
    width: 110px;
    height: 110px;
  }

  .radar-ring-3 {
    width: 70px;
    height: 70px;
  }

  .node-link-e,
  .node-link-f,
  .node-link-g,
  .node-point-e,
  .node-point-f {
    display: none;
  }

  .archive-hero-copy h1,
  .section-head h2,
  .article-head h1 {
    font-size: 2.35rem;
  }

  .article-copy {
    padding: 22px;
  }

  .hide-mobile {
    display: none;
  }

  .status-bridge {
    grid-template-columns: 1fr;
    gap: 8px;
    height: 18px;
    padding: 0;
  }

  .status-bridge span:not(:first-child) {
    display: none;
  }
}

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


/* notes + 404 */
.notes-hero,
.error-hero {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 54px 24px 24px;
}

.notes-hero h1,
.error-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.notes-hero p,
.error-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.notes-layout,
.error-layout {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  gap: 24px;
}

.notes-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.note-list {
  display: grid;
  gap: 22px;
}

.note-card,
.error-card {
  padding: 24px;
}

.note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.note-label {
  color: var(--signal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note-id {
  color: var(--muted);
  font-size: 0.88rem;
}

.note-card h2,
.error-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.14;
}

.note-card p,
.error-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.note-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.note-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 255, 154, 0.12);
  background: rgba(103, 231, 116, 0.05);
  color: var(--signal-3);
  font-size: 0.88rem;
}

.error-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  padding-bottom: 60px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.error-ascii {
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
  overflow-x: auto;
  color: var(--signal);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1080px) {
  .notes-layout,
  .error-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {

  .hero-panel::before {
    width: min(74vw, 400px);
    height: min(74vw, 400px);
    right: -26px;
    top: 52px;
    opacity: 0.06;
  }

  .terminal-watermark {
    display: none;
  }

  .terminal-corner-logo {
    width: 72px;
    height: 72px;
    top: 12px;
    right: 12px;
  }
}


.network-banner {
  margin-top: 8px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.network-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(111, 255, 168, 0.12), transparent 30%),
    radial-gradient(circle at 76% 42%, rgba(255, 194, 92, 0.08), transparent 24%);
  pointer-events: none;
}

.network-banner-bar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(168, 255, 140, 0.08);
  background: linear-gradient(180deg, rgba(6, 18, 12, 0.9), rgba(5, 14, 10, 0.55));
}

.network-banner-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(143, 255, 122, 0.22);
  box-shadow: 0 0 12px rgba(143, 255, 122, 0.12);
}

.network-banner-bar span:first-child {
  background: rgba(255, 207, 111, 0.85);
}

.network-banner-body {
  position: relative;
  padding: 18px 22px 24px;
}

.network-banner-body::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: min(82%, 760px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(150,255,146,0), rgba(150,255,146,0.14), rgba(150,255,146,0));
}


.network-banner-kicker {
  margin: 0 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(219, 255, 210, 0.62);
}

.network-canvas {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(143, 255, 122, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 18, 12, 0.76), rgba(4, 10, 8, 0.9)),
    linear-gradient(90deg, rgba(143, 255, 122, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 255, 122, 0.03) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.network-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(111, 255, 168, 0.05), transparent);
  animation: mesh-scan 8s linear infinite;
}

.network-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-links line {
  stroke: rgba(145, 255, 178, 0.18);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  animation: dash-flow 18s linear infinite;
}

.mesh-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(219, 255, 210, 0.86);
  font-size: 0.84rem;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(143, 255, 122, 0.09);
  background: rgba(8, 20, 14, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  animation: node-drift 7s ease-in-out infinite;
}

.mesh-node .node-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #92ff94;
  box-shadow: 0 0 0 4px rgba(146, 255, 148, 0.08), 0 0 14px rgba(146, 255, 148, 0.5);
  animation: node-pulse 2.8s ease-in-out infinite;
}

.mesh-node .node-name {
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.mesh-node.node-core {
  background: rgba(13, 28, 19, 0.82);
  border-color: rgba(143, 255, 122, 0.16);
}

.mesh-node.node-core .node-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 6px rgba(146, 255, 148, 0.1), 0 0 20px rgba(146, 255, 148, 0.65);
}

.mesh-node.node-accent .node-dot {
  background: #ffc35c;
  box-shadow: 0 0 0 4px rgba(255, 195, 92, 0.1), 0 0 14px rgba(255, 195, 92, 0.5);
}

.mesh-node.node-mini {
  font-size: 0.76rem;
  color: rgba(219, 255, 210, 0.7);
}

.node-hex { top: 18px; left: 34px; animation-delay: -1.6s; }
.node-ssh { top: 44px; left: 135px; animation-delay: -0.8s; }
.node-nft { top: 90px; left: 306px; animation-delay: -2.2s; }
.node-443 { top: 44px; left: 492px; animation-delay: -1.1s; }
.node-dns { top: 154px; left: 458px; animation-delay: -3.3s; }
.node-vlan { top: 150px; left: 642px; animation-delay: -1.8s; }
.node-kernel { top: 42px; left: 688px; animation-delay: -2.7s; }
.node-routing { top: 146px; left: 828px; animation-delay: -0.4s; }
.node-packets { top: 88px; left: 858px; animation-delay: -1.4s; }
.node-loop { top: 86px; left: 968px; animation-delay: -2.9s; }
.node-simplex { top: 92px; left: 710px; animation-delay: -1.9s; }

@keyframes mesh-scan {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(125%); }
}

@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -80; }
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes node-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@media (max-width: 900px) {
  .network-banner-body {
    padding: 16px 16px 20px;
  }

  .network-canvas {
    min-height: 280px;
    overflow-x: auto;
  }

  .network-links,
  .mesh-node {
    transform: scale(0.92);
    transform-origin: top left;
  }
}

/* modules section refinement */
.strip-control {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.88), rgba(6, 12, 8, 0.96));
}

.strip-segment {
  position: relative;
  padding: 22px 22px 20px 22px;
  min-height: 122px;
}

.strip-segment + .strip-segment {
  border-left: 1px solid rgba(150, 255, 146, 0.07);
}

.strip-segment::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(146, 255, 148, 0.72);
  box-shadow: 0 0 0 5px rgba(146, 255, 148, 0.06), 0 0 18px rgba(146, 255, 148, 0.18);
}

.strip-label {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(170, 255, 156, 0.66);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.strip-control strong {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strip-control p {
  max-width: 34ch;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(220, 236, 213, 0.76);
}

.section-modules {
  position: relative;
}

.section-head-modules {
  margin-bottom: 32px;
}

.section-head-modules p:last-child {
  max-width: 64ch;
}

.module-grid-hud {
  position: relative;
  align-items: stretch;
}

.module-grid-hud::before {
  content: "";
  position: absolute;
  inset: 16px 8% 18px;
  pointer-events: none;
  background:
    linear-gradient(transparent 33.33%, rgba(146, 255, 148, 0.05) 33.33%, rgba(146, 255, 148, 0.05) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(transparent 66.66%, rgba(146, 255, 148, 0.05) 66.66%, rgba(146, 255, 148, 0.05) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(90deg, transparent 33.33%, rgba(146, 255, 148, 0.04) 33.33%, rgba(146, 255, 148, 0.04) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
    linear-gradient(90deg, transparent 66.66%, rgba(146, 255, 148, 0.04) 66.66%, rgba(146, 255, 148, 0.04) calc(66.66% + 1px), transparent calc(66.66% + 1px));
  opacity: 0.4;
}

.module-hud {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.9), rgba(6, 12, 9, 0.97));
  overflow: hidden;
}

.module-hud::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(146, 255, 148, 0.62);
  box-shadow: 0 0 0 4px rgba(146, 255, 148, 0.05), 0 0 16px rgba(146, 255, 148, 0.14);
}

.module-hud::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 255, 146, 0), rgba(150, 255, 146, 0.24), rgba(150, 255, 146, 0));
}

.module-hud.is-active {
  border-color: rgba(150, 255, 146, 0.16);
  box-shadow: inset 0 0 0 1px rgba(150, 255, 146, 0.04), 0 12px 40px rgba(0, 0, 0, 0.34);
}

.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.module-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(210, 229, 205, 0.68);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #92ff94;
  box-shadow: 0 0 0 4px rgba(146, 255, 148, 0.06), 0 0 14px rgba(146, 255, 148, 0.18);
}

.module-hud h3 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-hud p {
  max-width: 26ch;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.95;
  color: rgba(220, 236, 213, 0.76);
}

.module-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(170, 255, 156, 0.62);
}

.module-foot strong {
  color: rgba(241, 245, 238, 0.9);
  font-weight: 600;
}

.module-grid-hud .module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(150, 255, 146, 0.16);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.56);
}

@media (max-width: 1080px) {
  .strip-segment + .strip-segment {
    border-left: 0;
    border-top: 1px solid rgba(150, 255, 146, 0.07);
  }

  .module-grid-hud::before {
    inset: 14px 18px;
    background:
      linear-gradient(transparent 50%, rgba(146, 255, 148, 0.05) 50%, rgba(146, 255, 148, 0.05) calc(50% + 1px), transparent calc(50% + 1px));
  }
}

@media (max-width: 720px) {
  .module-hud {
    min-height: 176px;
  }

  .module-hud p {
    max-width: none;
  }
}


/* v33 refinement pass */
.site-nav {
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(143, 255, 122, 0.16);
  background: rgba(109, 255, 152, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01), 0 8px 20px rgba(0,0,0,0.16);
}

.site-nav a[aria-current="page"] {
  color: var(--signal-3);
}

.subpage-hero {
  padding-top: 54px;
  padding-bottom: 0;
}

.micro-line {
  margin: 16px 0 0;
  color: rgba(221, 239, 214, 0.78);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.list-clean li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--signal);
}

.compact-list li {
  line-height: 1.75;
}

.protocol-grid {
  grid-template-columns: repeat(3, 1fr);
}

.protocol-state-panel {
  align-items: stretch;
}

.protocol-scope-box {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.wide-btn {
  margin-top: 20px;
  width: 100%;
}

.signal-layout .note-card .micro-line {
  margin-top: 14px;
}

.access-entry-panel {
  align-items: stretch;
}

.access-linkbox {
  gap: 10px;
}

.access-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.access-strip-item {
  padding: 14px 14px 12px;
  border: 1px solid rgba(143, 255, 122, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.micro-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-strip-item strong {
  display: block;
  font-size: 0.96rem;
}

.access-grid .module-card {
  min-height: 100%;
}

.access-state-grid .operational-card p {
  max-width: none;
}

.status-bridge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 22px 0 26px;
  opacity: 0.8;
}

.status-bridge span {
  height: 1px;
  background: linear-gradient(90deg, rgba(143,255,122,0.1), rgba(143,255,122,0.28), rgba(143,255,122,0.04));
}

.module-card .eyebrow {
  margin-bottom: 12px;
}

.channel-linkbox .list-clean li {
  color: rgba(220,236,213,0.82);
}

@media (max-width: 1080px) {
  .protocol-grid,
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-bridge {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav {
    justify-content: center;
    gap: 10px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .protocol-grid,
  .access-grid,
  .access-strip,
  .status-bridge {
    grid-template-columns: 1fr;
  }

  .protocol-state-panel,
  .channel {
    grid-template-columns: 1fr;
  }

  .subpage-hero {
    padding-top: 42px;
  }
}


/* v34 premium typography + spacing + mobile polish */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.55;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(168, 255, 96, 0.88);
  outline-offset: 3px;
}

.site-header {
  padding-top: clamp(16px, 2vw, 22px);
  padding-bottom: clamp(14px, 1.8vw, 18px);
  background: linear-gradient(180deg, rgba(3, 7, 4, 0.82), rgba(3, 7, 4, 0.58));
  border-bottom: 1px solid rgba(143, 255, 122, 0.08);
}

.brand-name {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.site-nav {
  gap: clamp(10px, 1.4vw, 18px);
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero,
.archive-hero {
  gap: clamp(24px, 3vw, 38px);
}

.hero {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(34px, 4.4vw, 48px);
}

.hero-title,
.section-head h2,
.archive-hero-copy h1,
.article-head h1,
.notes-hero h1,
.error-hero h1,
.channel-copy h2 {
  text-wrap: balance;
}

.hero-title {
  max-width: 10.5ch;
}

.hero-copy,
.archive-hero-copy,
.notes-hero,
.error-hero,
.section-head,
.channel-copy {
  max-width: 68ch;
}

.hero-text,
.section-head p:last-child,
.channel-copy p,
.archive-hero-copy p:last-child,
.article-copy p,
.article-copy li,
.article-copy blockquote,
.notes-hero p,
.error-hero p,
.note-card p,
.error-card p {
  font-size: clamp(1rem, 0.3vw + 0.96rem, 1.08rem);
  line-height: 1.88;
}

.hero-text {
  max-width: 60ch;
}

.section,
.archive-layout,
.article-page {
  padding-top: clamp(76px, 9vw, 104px);
}

.section-head,
.article-head {
  margin-bottom: clamp(24px, 3.2vw, 34px);
}

.module-card,
.status-card,
.entry-card,
.sidebar-card,
.note-card,
.error-card {
  padding: clamp(22px, 2vw, 28px);
}

.panel-bar {
  padding: 15px 18px;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
  letter-spacing: 0.02em;
}

.site-footer {
  padding-top: clamp(52px, 7vw, 72px);
}

.channel-link {
  font-size: 0.94rem;
}

.channel-link-note,
.channel-link-label,
.signature-label,
.signature-caption,
.micro-line,
.micro-kicker,
.strip-label,
.status-index,
.module-state,
.hero-signal-label,
.network-banner-kicker,
.relay-title {
  text-wrap: pretty;
}

@media (max-width: 1080px) {
  .site-header {
    gap: 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .channel-copy,
  .notes-hero,
  .section-head {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: stretch;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
    line-height: 0.95;
    max-width: 11ch;
  }

  .hero-text,
  .section-head p:last-child,
  .channel-copy p,
  .notes-hero p,
  .note-card p,
  .error-card p {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .hero-actions,
  .channel-actions,
  .article-actions,
  .error-actions {
    gap: 12px;
  }

  .panel-bar,
  .terminal-layout,
  .channel,
  .article-copy,
  .note-card,
  .error-card,
  .module-card,
  .status-card,
  .sidebar-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .terminal,
  .archive-terminal,
  .boot-sequence {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .hero-signal-panel,
  .channel-linkbox,
  .network-canvas,
  .module-hud,
  .operational-card,
  .note-card,
  .error-card {
    border-radius: 18px;
  }

  .notes-hero,
  .error-hero {
    padding-top: 42px;
    padding-bottom: 0;
  }

  .site-footer p {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
}


/* === Branding micro-interactions pass === */
:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header {
  border-bottom: 1px solid transparent;
  transition: background 0.32s var(--ease-smooth), border-color 0.32s var(--ease-smooth), box-shadow 0.32s var(--ease-smooth), padding 0.32s var(--ease-smooth);
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(4, 8, 5, 0.88), rgba(4, 8, 5, 0.74));
  border-color: rgba(143, 255, 122, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand,
.site-nav a,
.btn,
.panel,
.channel-qr-link,
.access-strip-item,
.strip-segment,
.module-hud,
.operational-card,
.status-card,
.channel,
.note-card,
.sidebar-card,
.access-linkbox,
.channel-linkbox,
.network-banner,
.protocol-scope-box,
.protocol-state-panel {
  position: relative;
  isolation: isolate;
}

.brand::after,
.btn::after,
.panel::after,
.channel-qr-link::after,
.access-strip-item::after,
.strip-segment::after,
.module-hud::after,
.operational-card::after,
.status-card::after,
.channel::after,
.note-card::after,
.sidebar-card::after,
.access-linkbox::after,
.channel-linkbox::after,
.network-banner::after,
.protocol-scope-box::after,
.protocol-state-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 255, 96, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s var(--ease-smooth);
  pointer-events: none;
  z-index: -1;
}

.brand:hover::after,
.btn:hover::after,
.panel:hover::after,
.channel-qr-link:hover::after,
.access-strip-item:hover::after,
.strip-segment:hover::after,
.module-hud:hover::after,
.operational-card:hover::after,
.status-card:hover::after,
.channel:hover::after,
.note-card:hover::after,
.sidebar-card:hover::after,
.access-linkbox:hover::after,
.channel-linkbox:hover::after,
.network-banner:hover::after,
.protocol-scope-box:hover::after,
.protocol-state-panel:hover::after {
  opacity: 1;
}

.brand {
  transition: transform 0.28s var(--ease-smooth), filter 0.28s var(--ease-smooth);
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(168, 255, 96, 0.08));
}

.site-nav a {
  padding: 8px 0;
  transition: color 0.22s var(--ease-smooth), text-shadow 0.22s var(--ease-smooth);
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,255,96,0), rgba(168,255,96,0.9), rgba(168,255,96,0));
  transform: scaleX(0.32);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.24s var(--ease-smooth), opacity 0.24s var(--ease-smooth);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-shadow: 0 0 18px rgba(168, 255, 96, 0.14);
}

.site-nav a:hover::before,
.site-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.btn {
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -32%;
  width: 42%;
  height: 340%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.14), rgba(255,255,255,0));
  opacity: 0;
  transition: transform 0.45s var(--ease-smooth), opacity 0.28s var(--ease-smooth);
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(240%) rotate(18deg);
}

.hero-panel .panel,
.access-entry-panel,
.network-banner,
.protocol-state-panel,
.protocol-scope-box {
  transition: transform 0.28s var(--ease-smooth), border-color 0.28s var(--ease-smooth), box-shadow 0.28s var(--ease-smooth), background 0.28s var(--ease-smooth);
}

.hero-panel .panel:hover,
.access-entry-panel:hover,
.network-banner:hover,
.protocol-state-panel:hover,
.protocol-scope-box:hover {
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(168, 255, 96, 0.04);
}

.hero-signal-panel,
.access-strip-item,
.strip-segment,
.relay-panel,
.operator-signature,
.network-banner-body,
.protocol-state-panel,
.protocol-scope-box,
.access-linkbox,
.channel-linkbox {
  transition: border-color 0.28s var(--ease-smooth), transform 0.28s var(--ease-smooth), box-shadow 0.28s var(--ease-smooth), background 0.28s var(--ease-smooth);
}

.hero-signal-panel:hover,
.access-strip-item:hover,
.strip-segment:hover,
.network-banner:hover .network-banner-body,
.protocol-state-panel:hover,
.protocol-scope-box:hover,
.access-linkbox:hover,
.channel-linkbox:hover {
  border-color: rgba(168, 255, 96, 0.18);
  box-shadow: inset 0 0 0 1px rgba(168, 255, 96, 0.03);
}

.hero-title .glitch,
.hero-title span:last-child {
  transition: text-shadow 0.32s var(--ease-smooth), transform 0.32s var(--ease-smooth);
}

.hero-copy:hover .hero-title .glitch,
.hero-copy:hover .hero-title span:last-child {
  text-shadow: 0 0 24px rgba(168, 255, 96, 0.12);
}

.signature-trace,
.signature-shadow,
.radar-sweep,
.radar-dot,
.node-point,
.node-link,
.terminal-corner-logo,
.terminal-watermark {
  transition: filter 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.hero-panel:hover .terminal-corner-logo {
  filter: drop-shadow(0 0 20px rgba(255, 179, 81, 0.3));
  transform: scale(1.02);
}

.hero-panel:hover .radar-dot,
.hero-panel:hover .node-point {
  filter: drop-shadow(0 0 12px rgba(168, 255, 96, 0.34));
}

.hero-panel:hover .signature-trace {
  filter: drop-shadow(0 0 10px rgba(241, 200, 107, 0.28));
}

.hero-panel:hover .node-link {
  opacity: 0.92;
}

.hero-panel:hover .terminal-watermark {
  opacity: 0.15;
}

.channel-link {
  transition: color 0.22s var(--ease-smooth), text-shadow 0.22s var(--ease-smooth);
}

.channel-link:hover {
  text-shadow: 0 0 18px rgba(109, 255, 152, 0.14);
}

.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 120;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.12s linear;
}

.cursor-ring {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(168, 255, 96, 0.34);
  box-shadow: 0 0 24px rgba(168, 255, 96, 0.08);
  backdrop-filter: blur(2px);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: rgba(168, 255, 96, 0.86);
  box-shadow: 0 0 14px rgba(168, 255, 96, 0.22);
}

body.cursor-visible .cursor-ring,
body.cursor-visible .cursor-dot {
  opacity: 1;
}

body.cursor-engaged .cursor-ring {
  transform: translate(-50%, -50%) scale(0.86);
  border-color: rgba(240, 200, 107, 0.42);
}

body.cursor-engaged .cursor-dot {
  transform: translate(-50%, -50%) scale(1.24);
  background: rgba(240, 200, 107, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .brand,
  .site-nav a,
  .btn,
  .panel,
  .channel-qr-link,
  .access-strip-item,
  .strip-segment,
  .module-hud,
  .operational-card,
  .status-card,
  .channel,
  .note-card,
  .sidebar-card,
  .access-linkbox,
  .channel-linkbox,
  .network-banner,
  .protocol-scope-box,
  .protocol-state-panel,
  .hero-title .glitch,
  .hero-title span:last-child,
  .signature-trace,
  .signature-shadow,
  .radar-sweep,
  .radar-dot,
  .node-point,
  .node-link,
  .terminal-corner-logo,
  .terminal-watermark,
  .cursor-ring,
  .cursor-dot {
    transition: none !important;
  }

  .btn::before,
  .brand::after,
  .btn::after,
  .panel::after,
  .channel-qr-link::after,
  .access-strip-item::after,
  .strip-segment::after,
  .module-hud::after,
  .operational-card::after,
  .status-card::after,
  .channel::after,
  .note-card::after,
  .sidebar-card::after,
  .access-linkbox::after,
  .channel-linkbox::after,
  .network-banner::after,
  .protocol-scope-box::after,
  .protocol-state-panel::after,
  .site-nav a::before {
    display: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring,
  .cursor-dot {
    display: none !important;
  }
}


/* v37 mobile + crawl polish */
html, body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

.hero-copy,
.hero-panel,
.section-head,
.channel-copy,
.access-entry-panel,
.protocol-state-panel,
.protocol-scope-box,
.module-card,
.status-card,
.channel-linkbox,
.access-linkbox,
.access-strip-item {
  min-width: 0;
}

.hero-signal-row p,
.relay-row,
.signature-caption,
.terminal p,
.hero-text,
.channel-copy p,
.section-head p:last-child,
.module-card p,
.status-card p {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 820px) {
  .container,
  .site-header,
  .hero,
  .operator-strip,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 22px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .terminal-layout {
    gap: 16px;
    padding: 18px;
  }

  .hud-stack {
    width: min(100%, 320px);
    min-height: 390px;
  }

  .hero-signal-panel {
    padding: 15px 16px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .container,
  .site-header,
  .hero,
  .operator-strip,
  .section,
  .site-footer,
  .notes-hero,
  .error-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
  }

  .site-nav {
    gap: 8px;
    scroll-snap-type: x proximity;
  }

  .site-nav a {
    scroll-snap-align: start;
    min-height: 38px;
    padding: 7px 11px;
    font-size: 0.85rem;
  }

  .hero {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11.4vw, 3.05rem);
    line-height: 0.96;
    max-width: 9.6ch;
  }

  .hero-text,
  .section-head p:last-child,
  .channel-copy p,
  .notes-hero p,
  .error-hero p,
  .module-card p,
  .status-card p,
  .access-linkbox p,
  .channel-linkbox p {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .hero-actions,
  .channel-actions,
  .article-actions,
  .error-actions {
    grid-template-columns: 1fr;
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .btn,
  .hero-actions .btn,
  .channel-actions .btn,
  .article-actions .btn,
  .error-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-signal {
    margin-top: 22px;
  }

  .hero-signal-panel {
    gap: 12px;
    padding: 14px 14px;
    border-radius: 18px;
  }

  .hero-signal-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-signal-label {
    min-height: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .hero-signal-row p {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .hero-panel::before {
    width: min(70vw, 280px);
    height: min(70vw, 280px);
    right: -14px;
    top: 64px;
    opacity: 0.05;
  }

  .panel {
    border-radius: 18px;
  }

  .panel-bar {
    padding: 13px 14px;
  }

  .panel-bar span {
    width: 10px;
    height: 10px;
  }

  .terminal-layout {
    padding: 14px;
    gap: 12px;
  }

  .terminal {
    padding-right: 0;
    font-size: 0.82rem;
    line-height: 1.62;
  }

  .terminal p {
    margin: 0 0 7px;
  }

  .log-feed {
    gap: 6px;
    margin: 12px 0;
  }

  .terminal-corner-logo {
    width: 58px;
    height: 58px;
    top: 10px;
    right: 10px;
    opacity: 0.8;
  }

  .node-network {
    display: none;
  }

  .hud-stack {
    width: 100%;
    min-height: 304px;
  }

  .radar {
    width: 126px;
    height: 126px;
    margin-left: auto;
  }

  .radar-ring-1,
  .radar-sweep {
    width: 126px;
    height: 126px;
  }

  .radar-ring-2 {
    width: 94px;
    height: 94px;
  }

  .radar-ring-3 {
    width: 58px;
    height: 58px;
  }

  .relay-panel {
    width: min(100%, 184px);
    right: 0;
    bottom: 74px;
    padding-left: 10px;
  }

  .relay-panel::before {
    left: 10px;
    top: -12px;
    width: 28px;
  }

  .relay-title {
    margin-bottom: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }

  .relay-row {
    gap: 10px;
    padding: 6px 0;
    font-size: 0.7rem;
  }

  .operator-signature {
    width: min(100%, 188px);
    bottom: -10px;
    gap: 4px;
  }

  .signature-label {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }

  .signature-svg {
    height: 30px;
  }

  .signature-caption {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .subpage-hero,
  .notes-hero,
  .error-hero {
    padding-top: 28px;
  }

  .section,
  .article-page {
    padding-top: 60px;
  }

  .section-head,
  .article-head {
    margin-bottom: 20px;
  }

  .section-head h2,
  .channel-copy h2,
  .notes-hero h1,
  .error-hero h1,
  .article-head h1 {
    font-size: clamp(2rem, 9.4vw, 2.7rem);
    line-height: 0.98;
  }

  .module-grid,
  .status-grid,
  .protocol-grid,
  .access-grid,
  .access-strip,
  .status-bridge {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .module-card,
  .status-card,
  .access-strip-item,
  .access-linkbox,
  .channel-linkbox,
  .protocol-state-panel,
  .protocol-scope-box,
  .panel {
    border-radius: 18px;
  }

  .module-card,
  .status-card,
  .access-strip-item,
  .access-linkbox,
  .channel-linkbox,
  .protocol-state-panel,
  .protocol-scope-box,
  .channel {
    padding: 18px 16px;
  }

  .micro-line {
    margin-top: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    line-height: 1.7;
  }

  .site-footer {
    padding-top: 44px;
    padding-bottom: 26px;
  }

  .site-footer p {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.7;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .hero-text {
    max-width: 34ch;
  }

  .radar {
    width: 114px;
    height: 114px;
  }

  .radar-ring-1,
  .radar-sweep {
    width: 114px;
    height: 114px;
  }

  .radar-ring-2 {
    width: 84px;
    height: 84px;
  }

  .radar-ring-3 {
    width: 52px;
    height: 52px;
  }

  .relay-panel {
    width: min(100%, 170px);
  }

  .operator-signature {
    width: min(100%, 176px);
  }

  .signature-caption {
    letter-spacing: 0.08em;
  }
}


/* HackCoreX signature */
.signature-svg {
  width: 100%;
  height: 50px;
  overflow: visible;
}
.signature-svg-wordmark {
  filter: drop-shadow(0 0 10px rgba(255, 78, 78, 0.08));
}
.signature-guide {
  fill: none;
  stroke: rgba(143, 255, 122, 0.09);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signature-shadow-text,
.signature-trace-text {
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 34px;
  letter-spacing: 0.02em;
  paint-order: stroke fill;
}
.signature-shadow-text {
  fill: none;
  stroke: rgba(255, 76, 76, 0.18);
  stroke-width: 4;
  filter: blur(2px);
}
.signature-trace-text {
  fill: none;
  stroke: rgba(255, 190, 92, 0.98);
  stroke-width: 1.8;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 7px rgba(255, 176, 82, 0.18));
  animation: signature-write-text 6.8s ease-in-out infinite;
}
.signature-x {
  fill: none;
  stroke: rgba(255, 74, 74, 0.98);
  stroke-width: 2;
}
@keyframes signature-write-text {
  0%, 12% { stroke-dashoffset: 900; opacity: 0; }
  20% { opacity: 1; }
  62%, 82% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}


/* Mobile and tablet responsiveness for terminal HUD/signature */
@media (max-width: 860px) {
  .terminal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 16px 20px;
  }

  .terminal {
    order: 1;
  }

  .hud-stack {
    order: 2;
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding-top: 6px;
  }

  .relay-panel,
  .operator-signature {
    position: static;
    width: 100%;
    max-width: 320px;
    padding: 0;
    margin: 0 auto;
  }

  .relay-panel {
    background: transparent;
  }

  .relay-panel::before,
  .hud-stack::before,
  .hud-stack::after {
    display: none;
  }

  .operator-signature {
    gap: 8px;
    align-items: flex-start;
    pointer-events: none;
  }

  .signature-svg {
    max-width: 280px;
    height: 48px;
  }

  .signature-caption {
    max-width: 280px;
    font-size: 0.58rem;
    line-height: 1.6;
    letter-spacing: 0.12em;
    word-break: break-word;
  }

  .node-network {
    inset: 20px 12px auto 12px;
    height: 240px;
    opacity: 0.28;
  }

  .radar {
    margin: 0 auto 2px;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.07em;
  }

  .brand-mark-x {
    font-size: 0.96rem;
    margin-left: 6px;
    text-shadow: 0 0 12px rgba(255, 59, 48, 0.34);
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    text-align: center;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 0.92rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(143,255,122,0.07);
  }

  .hero {
    gap: 20px;
    min-height: auto;
    padding-top: 22px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 0.94;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-signal-panel {
    padding: 14px 14px;
  }

  .terminal {
    font-size: 0.95rem;
  }

  .relay-panel {
    max-width: none;
  }

  .relay-title {
    font-size: 0.64rem;
  }

  .relay-row {
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header,
  .hero,
  .operator-strip,
  .section,
  .archive-hero,
  .archive-filters,
  .archive-layout,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 10px 8px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 13vw, 3.3rem);
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .btn {
    padding: 14px 16px;
  }

  .terminal-layout {
    padding: 14px 12px 18px;
  }

  .terminal {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .log-feed {
    margin-top: 12px;
  }

  .log-feed span {
    display: block;
    margin-bottom: 6px;
  }

  .radar {
    width: 138px;
    height: 138px;
  }
  .radar-ring-1,
  .radar-sweep { width: 138px; height: 138px; }
  .radar-ring-2 { width: 98px; height: 98px; }
  .radar-ring-3 { width: 64px; height: 64px; }

  .signature-label {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
  }

  .signature-svg {
    max-width: 240px;
    height: 42px;
  }

  .signature-shadow-text,
  .signature-trace-text {
    font-size: 28px;
  }

  .signature-caption {
    max-width: 240px;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }
}


/* Pentest route */
.kb-route-link {
  margin-top: 18px;
}

.pentest-hero {
  padding-bottom: 12px;
}

.pentest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.pentest-meta {
  margin-top: 18px;
}

.pentest-toolbar,
.pentest-banner,
.pentest-section,
.pentest-footer-note {
  padding-left: 32px;
  padding-right: 32px;
}

.pentest-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 22px;
  margin-top: 12px;
}

.pentest-search-panel,
.pentest-stats-panel {
  padding: 22px;
}

.pentest-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pentest-quick-links a,
.qa-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(143,255,122,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pentest-quick-links a:hover,
.qa-tags span:hover {
  color: var(--text);
  border-color: rgba(143,255,122,0.28);
}

.pentest-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pentest-banner {
  margin-top: 20px;
}

.pentest-banner-panel {
  align-items: stretch;
}

.pentest-banner-box {
  min-width: 250px;
}

.pentest-section {
  margin-top: 34px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.qa-card {
  overflow: hidden;
}

.qa-card[hidden] {
  display: none !important;
}

.qa-card summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px 18px;
  position: relative;
}

.qa-card summary::-webkit-details-marker {
  display: none;
}

.qa-card summary::after {
  content: '+';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(143,255,122,0.16);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.qa-card[open] summary::after {
  content: '–';
}

.qa-summary-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 52px;
}

.qa-summary-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.qa-id {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143,255,122,0.08);
  border: 1px solid rgba(143,255,122,0.12);
  color: var(--text);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.qa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.qa-tags span {
  padding: 7px 10px;
  font-size: 0.7rem;
}

.qa-answer {
  border-top: 1px solid rgba(143,255,122,0.09);
  padding: 18px 22px 22px;
  color: var(--muted);
}

.qa-answer p {
  margin: 0 0 14px;
  line-height: 1.72;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.pentest-footer-note {
  margin-top: 30px;
}

.pentest-footer-panel {
  padding: 24px;
}

@media (max-width: 1080px) {
  .pentest-toolbar {
    grid-template-columns: 1fr;
  }

  .qa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pentest-toolbar,
  .pentest-banner,
  .pentest-section,
  .pentest-footer-note {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pentest-search-panel,
  .pentest-stats-panel,
  .pentest-footer-panel {
    padding: 18px;
  }

  .qa-card summary,
  .qa-answer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .qa-summary-head {
    gap: 10px;
  }

  .qa-summary-head h3 {
    font-size: 1rem;
  }

  .pentest-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pentest-toolbar,
  .pentest-banner,
  .pentest-section,
  .pentest-footer-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pentest-hero-actions,
  .pentest-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pentest-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .qa-summary-head {
    flex-direction: column;
  }

  .qa-id {
    min-width: 0;
    width: fit-content;
  }

  .pentest-stats-grid {
    grid-template-columns: 1fr;
  }
}


/* Exam node */
.exam-toolbar,
.exam-banner,
.exam-board,
.exam-footer-note {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.exam-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.exam-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  padding-top: 28px;
}

.exam-control-panel,
.exam-stats-panel,
.exam-banner-panel,
.exam-footer-note .panel {
  padding: 24px;
}

.exam-filter-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.exam-filter,
.exam-mode {
  appearance: none;
  border: 1px solid rgba(143, 255, 122, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.exam-filter:hover,
.exam-mode:hover,
.exam-filter:focus-visible,
.exam-mode:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(143, 255, 122, 0.32);
  background: rgba(143, 255, 122, 0.08);
  color: var(--text-1);
}

.exam-filter.is-active,
.exam-mode.is-active {
  border-color: rgba(143, 255, 122, 0.34);
  background: rgba(143, 255, 122, 0.12);
  color: var(--text-1);
  box-shadow: 0 0 0 1px rgba(143, 255, 122, 0.08) inset;
}

.exam-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.exam-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exam-reset {
  min-width: 180px;
}

.exam-stats-grid {
  grid-template-columns: 1fr 1fr;
}

.exam-side-note {
  margin-top: 18px;
  border-top: 1px solid rgba(143, 255, 122, 0.12);
  padding-top: 16px;
}

.exam-banner {
  padding-top: 22px;
}

.exam-board {
  padding-top: 32px;
  padding-bottom: 16px;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exam-question {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.exam-q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exam-q-id,
.exam-q-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exam-q-id {
  color: var(--signal-3);
}

.exam-q-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 255, 122, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
}

.exam-question h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--text-1);
}

.exam-options {
  display: grid;
  gap: 10px;
}

.exam-option {
  appearance: none;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-radius: 16px;
  border: 1px solid rgba(143, 255, 122, 0.12);
  background: rgba(255, 255, 255, 0.024);
  padding: 14px 14px 14px 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.exam-option:hover,
.exam-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(143, 255, 122, 0.28);
  background: rgba(143, 255, 122, 0.07);
  color: var(--text-1);
}

.exam-option[disabled] {
  cursor: default;
}

.exam-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(143, 255, 122, 0.16);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--signal-3);
}

.exam-option.is-selected {
  border-color: rgba(143, 255, 122, 0.24);
}

.exam-option.is-correct {
  border-color: rgba(143, 255, 122, 0.46);
  background: rgba(143, 255, 122, 0.12);
  color: var(--text-1);
  box-shadow: 0 0 0 1px rgba(143, 255, 122, 0.09) inset;
}

.exam-option.is-wrong {
  border-color: rgba(255, 104, 104, 0.46);
  background: rgba(255, 104, 104, 0.1);
  color: #ffdcdc;
}

.exam-feedback {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-feedback.is-correct {
  color: var(--signal-3);
}

.exam-feedback.is-wrong {
  color: #ff9c9c;
}

.exam-explanation {
  border-top: 1px solid rgba(143, 255, 122, 0.1);
  padding-top: 14px;
  color: var(--text-2);
}

.exam-question[hidden] {
  display: none !important;
}

body.exam-mode-active .exam-question.is-locked .exam-option:not(.is-correct):not(.is-wrong) {
  opacity: 0.74;
}

@media (max-width: 1080px) {
  .exam-toolbar {
    grid-template-columns: 1fr;
  }

  .exam-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .exam-toolbar,
  .exam-banner,
  .exam-board,
  .exam-footer-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  .exam-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exam-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .exam-mode-row {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-mode-switch {
    width: 100%;
  }

  .exam-mode,
  .exam-reset {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .exam-stats-grid {
    grid-template-columns: 1fr;
  }

  .exam-option {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px;
  }
}

.exam-layout-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.exam-overview-panel {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.exam-overview-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.exam-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.exam-overview-chip {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease, background 160ms ease;
}

.exam-overview-chip:hover,
.exam-overview-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 76, 76, 0.45);
  color: var(--text);
}

.exam-overview-chip.is-selected {
  border-color: rgba(255, 76, 76, 0.45);
  color: var(--text);
  background: rgba(255, 76, 76, 0.08);
}

.exam-overview-chip.is-locked {
  box-shadow: inset 0 0 0 1px rgba(255, 76, 76, 0.18);
}

.exam-question-copy {
  white-space: pre-line;
}

.exam-feedback-neutral {
  border-color: rgba(255,255,255,0.08);
  color: var(--muted);
}

.exam-question-dynamic.is-locked {
  box-shadow: inset 0 0 0 1px rgba(255, 76, 76, 0.18);
}

.exam-question-dynamic .exam-option-text {
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .exam-layout-grid {
    grid-template-columns: 1fr;
  }

  .exam-overview-panel {
    position: static;
  }

  .exam-overview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .exam-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


.exam-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exam-kpi-correct strong,
.exam-kpi-correct .kb-stat-label {
  color: #9af0a4;
}

.exam-kpi-wrong strong,
.exam-kpi-wrong .kb-stat-label {
  color: #ff9d9d;
}

.exam-kpi-score strong {
  color: #ffffff;
}

.exam-scorebar {
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.exam-scorebar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,97,97,0.8), rgba(143,255,122,0.95));
  transition: width 180ms ease;
}

.exam-lock-copy {
  margin: 10px 0 0;
  color: var(--text-2);
}

.exam-question-dynamic.is-correct-card {
  box-shadow: inset 0 0 0 1px rgba(143, 255, 122, 0.16);
}

.exam-question-dynamic.is-wrong-card {
  box-shadow: inset 0 0 0 1px rgba(255, 104, 104, 0.18);
}

.exam-option.is-correct .exam-option-key {
  border-color: rgba(143, 255, 122, 0.45);
  background: rgba(143, 255, 122, 0.14);
  color: #dffff3;
}

.exam-option.is-wrong .exam-option-key {
  border-color: rgba(255, 104, 104, 0.44);
  background: rgba(255, 104, 104, 0.12);
  color: #ffe4e4;
}

.exam-feedback {
  min-height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.exam-feedback-answer {
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.exam-feedback.is-correct {
  border-color: rgba(143, 255, 122, 0.32);
  background: rgba(143, 255, 122, 0.09);
}

.exam-feedback.is-wrong {
  border-color: rgba(255, 104, 104, 0.28);
  background: rgba(255, 104, 104, 0.08);
}

.exam-explanation {
  border-top: 1px solid rgba(143, 255, 122, 0.1);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.exam-explanation-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-3);
}

.exam-explanation-copy {
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
}

.exam-overview-chip.is-correct {
  border-color: rgba(143,255,122,0.42);
  background: rgba(143,255,122,0.12);
  color: #eaffed;
}

.exam-overview-chip.is-wrong {
  border-color: rgba(255,104,104,0.42);
  background: rgba(255,104,104,0.12);
  color: #ffe4e4;
}

@media (max-width: 900px) {
  .exam-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .exam-stats-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Pentest hub / resources --- */
.hub-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.resource-card,
.resource-item,
.checklist-card,
.guide-card {
  position: relative;
  overflow: hidden;
}

.resource-card-head,
.resource-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.resource-card h2,
.resource-item h2,
.guide-card h2 {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
}

.resource-card-link {
  margin-top: 1rem;
}

.resource-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: rgba(214, 231, 220, 0.86);
}

.resource-list li + li {
  margin-top: 0.45rem;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.resource-tags span,
.qa-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(210, 38, 38, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 244, 239, 0.78);
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-summary {
  color: rgba(214, 231, 220, 0.84);
}

.copy-blocks {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.copy-block {
  position: relative;
  border: 1px solid rgba(210, 38, 38, 0.18);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 16px;
  padding: 0.9rem 0.9rem 0.7rem;
}

.copy-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.resource-copy,
.checklist-reset {
  margin-top: 0.75rem;
  border: 1px solid rgba(210, 38, 38, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: #f0f6f2;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.resource-copy.is-copied {
  border-color: rgba(86, 201, 142, 0.45);
  color: rgba(188, 255, 215, 0.95);
}

.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.guide-list {
  margin: 0;
  padding-left: 1rem;
  color: rgba(214, 231, 220, 0.86);
}

.guide-list li + li {
  margin-top: 0.45rem;
}

.checklist-progress {
  margin: 1rem 0 1rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  color: rgba(214, 231, 220, 0.82);
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(210,38,38,0.45), rgba(255,84,84,0.92));
  transition: width 0.2s ease;
}

.checklist-items {
  display: grid;
  gap: 0.7rem;
}

.check-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(210, 38, 38, 0.14);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
}

.check-item input {
  margin-top: 0.18rem;
}

.check-item span {
  color: rgba(224, 236, 229, 0.88);
}

.check-item input:checked + span {
  color: rgba(188, 255, 215, 0.95);
}

.guide-card summary {
  list-style: none;
  cursor: pointer;
}

.guide-card summary::-webkit-details-marker {
  display: none;
}

.pentest-hub-toolbar {
  margin-bottom: 1rem;
}

.pentest-hub-panel {
  min-height: 100%;
}

@media (max-width: 860px) {
  .resource-card-head,
  .resource-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-link-row {
    flex-direction: column;
  }
}


/* --- Massive offensive rework --- */
.page-main,
.notes-hero,
.pentest-toolbar,
.pentest-section,
.section-block,
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-main {
  padding-bottom: 3rem;
}

.section-block {
  margin-top: 2rem;
}

.mega-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.mega-hero-copy,
.mega-hero-side {
  min-width: 0;
}

.hero-chip-row,
.page-anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.page-anchor-row a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(143,255,122,0.16);
  background: rgba(255,255,255,0.03);
  color: rgba(235,244,239,0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-terminal {
  padding: 1rem 1.1rem 1.2rem;
}

.topic-grid,
.matrix-grid,
.flow-grid,
.guide-grid-2 {
  display: grid;
  gap: 1rem;
}

.topic-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.matrix-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-card,
.matrix-card,
.note-panel,
.flow-card-large {
  padding: 1.2rem;
}

.topic-card h3,
.matrix-card h3,
.note-panel h2 {
  margin: 0.3rem 0 0.7rem;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stack-list {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  color: rgba(214, 231, 220, 0.86);
}

.stack-list li + li {
  margin-top: 0.5rem;
}

.flow-card {
  background: linear-gradient(180deg, rgba(12, 18, 12, 0.88), rgba(8, 12, 8, 0.97));
  border: 1px solid rgba(143,255,122,0.1);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.flow-card strong {
  color: var(--signal-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.flow-card span {
  color: rgba(214, 231, 220, 0.86);
  line-height: 1.5;
}

.flow-card-link {
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.flow-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(168,255,96,0.24);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  background: linear-gradient(180deg, rgba(14, 22, 14, 0.94), rgba(8, 12, 8, 0.98));
}

.flow-card-link:focus-visible {
  outline: 2px solid rgba(168,255,96,0.45);
  outline-offset: 3px;
}

.atlas-detail summary {
  list-style: none;
  cursor: pointer;
}

.atlas-detail summary::-webkit-details-marker {
  display: none;
}

.code-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(143,255,122,0.09);
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tiny-copy {
  padding: 0.45rem 0.75rem;
  min-height: auto;
}

.code-block {
  margin: 0.8rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(143,255,122,0.08);
  color: #eefde5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
}

.checklist-card {
  padding: 1.2rem;
}

.progress-head {
  margin-top: 1rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(214, 231, 220, 0.86);
  font-size: 0.92rem;
}

.progress-bar {
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(109,255,152,0.8), rgba(168,255,96,0.9));
}

.checklist-items {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: rgba(214, 231, 220, 0.88);
}

.check-item input {
  margin-top: 0.28rem;
}

.inline-link-row {
  margin-top: 1rem;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.panel-split-hero {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.narrow-head {
  max-width: 760px;
}

@media (min-width: 1350px) {
  .resource-grid:not(.guide-grid-2),
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .mega-hero,
  .split-section,
  .guide-grid-2,
  .topic-grid-4,
  .matrix-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mega-hero,
  .split-section,
  .guide-grid-2,
  .topic-grid-3,
  .topic-grid-4,
  .matrix-grid,
  .flow-grid,
  .compact-flow-grid,
  .guide-columns {
    grid-template-columns: 1fr;
  }

  .copy-row,
  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Mobile refinement pass // 2026-04-20 */
@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px 10px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .archive-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }

  .hero-copy,
  .hero-panel,
  .archive-hero-copy,
  .notes-hero,
  .error-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel .panel {
    min-height: auto;
  }

  .hero-title,
  .archive-hero-copy h1,
  .notes-hero h1,
  .error-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
    line-height: 0.98;
  }

  .hero-text,
  .archive-hero-copy p:last-child,
  .notes-hero p,
  .error-hero p {
    max-width: none;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-signal-panel {
    padding: 18px;
  }

  .terminal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .terminal {
    min-height: auto;
  }

  .hud-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-self: stretch;
  }

  .radar {
    width: 156px;
    height: 156px;
    margin: 0 auto;
  }

  .relay-panel,
  .operator-signature {
    width: 100%;
  }

  .relay-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .operator-strip,
  .section-block,
  .section,
  .notes-layout,
  .brief-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .strip-control,
  .topic-grid,
  .topic-grid-3,
  .module-grid,
  .flow-grid,
  .compact-flow-grid,
  .protocol-grid,
  .access-grid,
  .status-grid,
  .operational-grid,
  .notes-grid,
  .brief-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .channel-linkbox {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .archive-hero,
  .notes-hero,
  .error-hero,
  .section,
  .section-block,
  .operator-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .hero-title,
  .archive-hero-copy h1,
  .notes-hero h1,
  .error-hero h1 {
    font-size: clamp(1.9rem, 12vw, 3rem);
  }

  .hero-text,
  .archive-hero-copy p:last-child,
  .notes-hero p,
  .error-hero p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .terminal {
    padding: 18px;
    font-size: 0.82rem;
  }

  .relay-panel {
    padding: 16px;
  }

  .relay-title,
  .signature-caption {
    letter-spacing: 0.12em;
  }

  .channel-qr {
    max-width: 200px;
  }
}


/* Mobile navigation refresh */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(143,255,122,0.14);
  background: rgba(9, 14, 9, 0.88);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle-lines::before { top: 0; }
.nav-toggle-lines span { top: 5px; }
.nav-toggle-lines::after { bottom: 0; }

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(143,255,122,0.12);
    background: rgba(5, 10, 5, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.32);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(143,255,122,0.07);
    white-space: normal;
    line-height: 1.35;
  }

  .site-header.nav-open .nav-toggle-lines::before {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-lines span {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-lines::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0,1fr) auto;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.84rem;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.7rem;
  }

  .site-nav {
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 18px;
  }
}


/* nav-domain refresh */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group-toggle {
  appearance: none; border: 1px solid rgba(143,255,122,0.12); background: rgba(255,255,255,0.02); color: var(--text);
  font: inherit; font-size: 0.9rem; padding: 10px 14px; border-radius: 999px; cursor: pointer; letter-spacing: 0.02em;
}
.nav-group-toggle:hover, .nav-group:focus-within .nav-group-toggle { border-color: rgba(168,255,96,0.28); color: #f5fff0; }
.nav-mega {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 320px; max-width: 620px;
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 14px;
  border-radius: 18px; border: 1px solid rgba(143,255,122,0.12); background: rgba(8,12,8,0.97);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 120;
}
.nav-mega a {
  display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(143,255,122,0.08);
  background: rgba(255,255,255,0.02); font-size: 0.92rem;
}
.nav-mega a:hover, .nav-mega a[aria-current="page"] { border-color: rgba(168,255,96,0.22); background: rgba(109,255,152,0.08); }
.nav-group:hover .nav-mega, .nav-group:focus-within .nav-mega { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 900px) {
  .nav-group { display: block; width: 100%; }
  .nav-group-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,0.02);
  }
  .nav-mega {
    position: static; min-width: 0; max-width: none; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: transparent; padding: 10px 0 0 14px; grid-template-columns: 1fr; gap: 10px;
  }
  .nav-mega a { font-size: 0.95rem; }
}
