:root {
  --bg: #03060c;
  --panel: rgba(8, 15, 25, 0.78);
  --line: rgba(56, 189, 248, 0.16);
  --line-hover: rgba(56, 189, 248, 0.45);
  --text: #f3f7ff;
  --text-muted: #8496ad;
  --text-sub: #a1b1c6;
  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --blue: #60a5fa;
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --neon-pink: #ff2a85;
  --neon-cyan: #00f3ff;
  --emerald: #34d399;
  --glow-cyan: rgba(56, 189, 248, 0.36);
  --glow-violet: rgba(168, 85, 247, 0.28);
  --glow-neon: rgba(255, 42, 133, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Ambient Space Canvas ─────────────────────────────────────────────── */
.space, .space > * { position: fixed; inset: 0; pointer-events: none; }
.space {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 50, 95, 0.20), transparent 32%),
    radial-gradient(circle at 76% 56%, rgba(88, 48, 160, 0.16), transparent 35%),
    radial-gradient(circle at 24% 65%, rgba(14, 90, 115, 0.14), transparent 32%),
    linear-gradient(180deg, #020408 0%, #060e19 55%, #020408 100%);
}

.stars {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.stars-a {
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 8% 18%, #ffffff 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 42%, #7dd3fc 0 1px, transparent 1.8px),
    radial-gradient(circle at 31% 12%, #ffffff 0 1px, transparent 1.5px),
    radial-gradient(circle at 47% 28%, #93c5fd 0 1px, transparent 1.7px),
    radial-gradient(circle at 63% 16%, #ffffff 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 31%, #c084fc 0 1px, transparent 1.8px),
    radial-gradient(circle at 89% 12%, #ffffff 0 1px, transparent 1.5px),
    radial-gradient(circle at 94% 43%, #67e8f9 0 1px, transparent 1.6px);
  animation: stars-drift-a 36s ease-in-out infinite alternate;
}

.stars-b {
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 13% 67%, #ffffff 0 1px, transparent 1.4px),
    radial-gradient(circle at 28% 76%, #60a5fa 0 1px, transparent 1.5px),
    radial-gradient(circle at 56% 68%, #ffffff 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 74%, #a855f7 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 61%, #ffffff 0 1px, transparent 1.4px);
  filter: blur(0.3px);
  animation: stars-drift-b 48s ease-in-out infinite alternate;
}

/* Framing Celestial Planets */
.planet {
  position: absolute;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  box-shadow: inset -34px -25px 80px rgba(0, 0, 0, 0.95), 0 0 55px rgba(56, 189, 248, 0.24);
  background: radial-gradient(circle at 62% 35%, #15253d 0%, #0a1321 44%, #020508 74%);
  will-change: filter;
}

.planet::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(96, 195, 255, 0.55);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.65));
  animation: planet-aura 8s ease-in-out infinite alternate;
}

.planet-left {
  left: -23vw;
  top: 7vh;
}

.planet-right {
  right: -25vw;
  top: 14vh;
  transform: scale(0.72);
  opacity: 0.88;
}

.horizon {
  position: absolute;
  inset: auto -8vw 0;
  height: 36vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.18), transparent 58%),
    linear-gradient(176deg, transparent 0 43%, rgba(7, 14, 25, 0.92) 44% 100%);
  clip-path: polygon(0 66%, 9% 55%, 17% 61%, 28% 45%, 37% 58%, 49% 43%, 60% 63%, 72% 48%, 82% 60%, 91% 46%, 100% 61%, 100% 100%, 0 100%);
}

.grid {
  position: absolute;
  top: 58%;
  inset-inline: 0;
  bottom: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.24) 1px, transparent 1px);
  background-size: 78px 78px;
  transform: perspective(500px) rotateX(67deg) scale(1.8);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

/* ─── Main Application Shell ───────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px 1fr auto 36px;
  padding: 0 clamp(20px, 3.5vw, 68px);
}

/* ─── Topbar ───────────────────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.10);
}

.topbar-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-spark {
  color: var(--cyan);
  font-size: 15px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
  animation: spark-twinkle 4s ease-in-out infinite;
}

.mini-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: #eaf2ff;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.brand-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 4px;
  padding: 2px 6px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link, .nav-link-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 4px;
  cursor: pointer;
  letter-spacing: 0.10em;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s ease;
}

.nav-link:hover, .nav-link:focus-visible,
.nav-link-btn:hover, .nav-link-btn:focus-visible {
  color: #f3f7ff;
}

.nav-ext {
  font-size: 10px;
  opacity: 0.7;
}

/* Featured Neon Games Topbar Button */
.nav-neon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.20), rgba(0, 243, 255, 0.18));
  border: 1px solid rgba(255, 42, 133, 0.50);
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.28), inset 0 0 10px rgba(0, 243, 255, 0.15);
  transition: all 0.22s ease;
}

.nav-neon-btn:hover, .nav-neon-btn:focus-visible {
  border-color: #00f3ff;
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.45), 0 0 32px rgba(255, 42, 133, 0.35);
  transform: translateY(-1px) scale(1.02);
}

.neon-bolt {
  color: #00f3ff;
  font-size: 12px;
  filter: drop-shadow(0 0 6px #00f3ff);
}

.neon-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.10em;
  background: #ff2a85;
  color: #fff;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.7);
}

.kernel-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8fa0b5;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(8, 16, 26, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #526073;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.kernel-state.online .state-dot {
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.kernel-state.degraded .state-dot {
  background: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

/* ─── Hero Centerpiece ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(940px, 94vw);
  text-align: center;
  transform: translateY(-2vh);
}

/* Ambient Radial Nebula Flare behind Wordmark */
.wordmark-halo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, 88vw);
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.26) 0%, rgba(168, 85, 247, 0.15) 42%, transparent 72%);
  filter: blur(54px);
  pointer-events: none;
  z-index: -1;
  animation: halo-breathe 7s ease-in-out infinite alternate;
}

.eyebrow {
  color: #7f99b9;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.50em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Central Wordmark with Continuous Glow & Gradient Shimmer */
.wordmark {
  margin: 8px 0 2px;
  font-family: "Arial Narrow", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(70px, 12vw, 158px);
  line-height: 0.90;
  font-weight: 300;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  background: linear-gradient(90deg, #7dd3fc 0%, #ffffff 25%, #60a5fa 50%, #c084fc 75%, #7dd3fc 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 16px rgba(125, 211, 252, 0.32),
    0 0 40px rgba(96, 165, 250, 0.24),
    0 0 75px rgba(192, 132, 252, 0.18);
  filter: drop-shadow(0 0 2px rgba(224, 242, 254, 0.75));
  animation: wordmark-shimmer 12s ease-in-out infinite, wordmark-glow 6s ease-in-out infinite alternate;
}

/* Illuminated Divider Rule */
.wordmark-rule {
  position: relative;
  width: min(640px, 70vw);
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.50), rgba(168, 85, 247, 0.70), transparent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.32);
  overflow: hidden;
}

.wordmark-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: rule-sweep 6s ease-in-out infinite;
}

/* ─── Companion Module Deck (4 Cards) ──────────────────────────────────── */
.module-deck {
  width: min(1280px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 16px;
}

.module-card {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9, 17, 28, 0.86), rgba(4, 8, 15, 0.74));
  backdrop-filter: blur(16px);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.20s ease, border-color 0.20s ease, background 0.20s ease, box-shadow 0.20s ease;
}

/* Left Accent Indicator Lines */
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.module-card:hover, .module-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  background: linear-gradient(135deg, rgba(12, 23, 38, 0.94), rgba(7, 13, 23, 0.88));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(56, 189, 248, 0.16);
  outline: none;
}

.module-card:hover::before {
  width: 3px;
  opacity: 1;
}

/* Neon Games Card Special Theming */
.module-neon::before {
  background: linear-gradient(180deg, transparent, #ff2a85 40%, #00f3ff 100%, transparent);
  opacity: 0.9;
}

.module-neon:hover, .module-neon:focus-visible {
  border-color: rgba(255, 42, 133, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 42, 133, 0.22);
}

.module-neon .module-icon {
  color: #00f3ff;
  border-color: rgba(0, 243, 255, 0.35);
  background: rgba(255, 42, 133, 0.12);
  text-shadow: 0 0 8px #00f3ff;
}

.module-neon:hover .module-icon {
  border-color: #00f3ff;
  background: rgba(255, 42, 133, 0.22);
  color: #ffffff;
}

/* System Card Theming */
.module-system {
  width: 100%;
  color: inherit;
}

.module-system::before {
  background: linear-gradient(180deg, transparent, var(--violet), transparent);
}

.module-system:hover, .module-system:focus-visible {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 28px rgba(168, 85, 247, 0.16);
}

.module-index {
  align-self: start;
  color: #4a5a6e;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-top: 2px;
}

.module-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.08);
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.module-card:hover .module-icon {
  border-color: rgba(56, 189, 248, 0.50);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.module-system .module-icon {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.24);
  background: rgba(168, 85, 247, 0.08);
}

.module-system:hover .module-icon {
  border-color: rgba(168, 85, 247, 0.50);
  background: rgba(168, 85, 247, 0.14);
  color: #e9d5ff;
}

.module-copy { min-width: 0; }

.module-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.module-title-row strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f1f6ff;
}

.ext-arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.18s ease, color 0.18s ease;
}

.module-card:hover .ext-arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.module-card[href="/warframe/"]:hover .ext-arrow,
.module-card[href="/neon/"]:hover .ext-arrow {
  color: var(--cyan);
  transform: translateX(3px);
}

.module-copy span {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.module-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.module-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.module-status.live {
  color: var(--emerald);
}

.module-status.live > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.module-status.neon {
  color: #00f3ff;
}

.module-status.neon > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff2a85;
  box-shadow: 0 0 8px #ff2a85;
  animation: pulse-dot 2s ease-in-out infinite;
}

.module-status.neutral {
  color: var(--violet-bright);
}

.module-status.neutral > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.shortcut-pill {
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  background: rgba(14, 23, 36, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 4px;
  padding: 1.5px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.module-card:hover .shortcut-pill {
  color: #94a3b8;
  border-color: rgba(56, 189, 248, 0.28);
}

/* ─── Footer Statusline ────────────────────────────────────────────────── */
.footerline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

.footer-center {
  color: #55667d;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.footer-center kbd {
  font-family: inherit;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 3px;
  padding: 1px 4px;
}

/* ─── System Dialog ────────────────────────────────────────────────────── */
.system-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  background: rgba(6, 12, 20, 0.94);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 50px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(24px);
}

.system-dialog::backdrop {
  background: rgba(1, 4, 8, 0.72);
  backdrop-filter: blur(6px);
}

.system-panel { padding: 26px; }

.system-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.system-heading h2 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f1f6ff;
}

.dialog-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dialog-close:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.50);
  background: rgba(56, 189, 248, 0.10);
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.system-grid > div {
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  background: rgba(12, 22, 36, 0.45);
}

.system-grid span {
  display: block;
  color: #64748b;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.system-grid strong {
  display: block;
  margin-top: 6px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
}

.system-note {
  margin: 18px 0 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.6;
}

/* ─── Continuous Keyframe Animations ───────────────────────────────────── */
@keyframes wordmark-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wordmark-glow {
  0% {
    text-shadow:
      0 0 16px rgba(125, 211, 252, 0.32),
      0 0 40px rgba(96, 165, 250, 0.20),
      0 0 65px rgba(192, 132, 252, 0.14);
    filter: drop-shadow(0 0 2px rgba(224, 242, 254, 0.65));
  }
  100% {
    text-shadow:
      0 0 26px rgba(125, 211, 252, 0.50),
      0 0 55px rgba(96, 165, 250, 0.34),
      0 0 95px rgba(192, 132, 252, 0.26);
    filter: drop-shadow(0 0 3px rgba(224, 242, 254, 0.90));
  }
}

@keyframes halo-breathe {
  0% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes rule-sweep {
  0% { transform: translateX(-150%); }
  45%, 100% { transform: translateX(450%); }
}

@keyframes planet-aura {
  0% {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
    opacity: 0.82;
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.85));
    opacity: 1;
  }
}

@keyframes stars-drift-a {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes stars-drift-b {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

@keyframes spark-twinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.9)); }
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 6px currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 14px currentColor, 0 0 4px currentColor;
    opacity: 0.72;
  }
}

/* ─── Responsive Adjustments ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  body { overflow-y: auto; }
  .shell {
    min-height: 100svh;
    grid-template-rows: 68px minmax(360px, 1fr) auto auto;
    padding: 0 20px 20px;
    gap: 16px;
  }
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { transform: none; padding: 20px 0; }
  .wordmark { font-size: clamp(52px, 15vw, 96px); }
  .module-deck { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .module-card { min-height: 94px; }
  .footerline {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 10px;
  }
}

@media (max-width: 640px) {
  .mini-brand { font-size: 13px; }
  .brand-tag { display: none; }
  .kernel-state { font-size: 9.5px; padding: 4px 10px; }
  .wordmark { letter-spacing: 0.12em; padding-left: 0.12em; }
  .module-deck { grid-template-columns: 1fr; max-width: 480px; }
  .module-card { grid-template-columns: auto 1fr auto; padding: 14px; }
  .module-index { display: none; }
  .module-copy span { font-size: 10px; }
  .system-grid { grid-template-columns: 1fr; }
  .footer-center { display: none; }
}

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