:root {
  --void: #02040a;
  --void-2: #07111b;
  --void-3: #0b1824;
  --ink: #f8fbff;
  --muted: #a8c6d3;
  --cyan: #36f6ff;
  --green: #8dff70;
  --amber: #ffd15c;
  --magenta: #ff3fb4;
  --panel: rgba(4, 12, 20, 0.9);
  --panel-2: rgba(7, 22, 32, 0.94);
  --border: #eafcff;
  --black: #000;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.72);
  --page-gutter: clamp(22px, 4vw, 48px);
  --header-gutter: clamp(14px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.58), rgba(2, 4, 10, 0.96)),
    var(--void);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(54, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(54, 246, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
}

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

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

.scanlines {
  z-index: 20;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.22;
}

.star-noise {
  z-index: -2;
  background-image:
    radial-gradient(circle at 12% 20%, var(--border) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 14%, var(--cyan) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 38%, var(--amber) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 64%, var(--magenta) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 76%, var(--border) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 84%, var(--green) 0 1px, transparent 2px);
  background-size: 260px 260px;
  opacity: 0.5;
}

.shell {
  width: calc(100vw - var(--page-gutter) - var(--page-gutter));
  max-width: 1180px;
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: calc(100vw - var(--header-gutter) - var(--header-gutter));
  max-width: 1240px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid rgba(248, 251, 255, 0.12);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
}

.brand,
.music-toggle,
.nav-toggle,
.site-nav,
.hero-label,
.pixel-kicker,
.tile-label,
.article-meta-bar,
.mini-grid,
.hud-chip,
.chapter-grid,
.pixel-button,
.pixel-link,
.breadcrumb-nav,
.url-chip,
.hub-examples,
.category-search,
.category-meta,
.read-index,
.sidebar-panel,
.tag-cloud,
.recent-list,
.site-footer {
  font-family: "Press Start 2P", monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1.5;
  text-shadow: 3px 3px 0 var(--black);
}

.brand-sigil {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background:
    url("/assets/optimized/images/brand/grey-alien-sprite-240.webp") center / cover no-repeat,
    rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(54, 246, 255, 0.42);
  box-shadow:
    0 0 0 3px var(--black),
    0 0 18px rgba(54, 246, 255, 0.56);
  image-rendering: pixelated;
}

.brand-sigil::before,
.brand-sigil::after {
  content: none;
  position: absolute;
  inset: 0;
}

.brand-sigil::before {
  z-index: 1;
  background:
    linear-gradient(#f1fbff, #f1fbff) 10px 3px / 8px 2px no-repeat,
    linear-gradient(#c7d2d8, #c7d2d8) 7px 5px / 14px 3px no-repeat,
    linear-gradient(#b7c2c8, #b7c2c8) 5px 8px / 18px 4px no-repeat,
    linear-gradient(#adb9c0, #adb9c0) 4px 12px / 20px 4px no-repeat,
    linear-gradient(#96a4ad, #96a4ad) 5px 16px / 18px 3px no-repeat,
    linear-gradient(#87969f, #87969f) 7px 19px / 14px 3px no-repeat,
    linear-gradient(#b7c2c8, #b7c2c8) 10px 22px / 8px 2px no-repeat,
    linear-gradient(#7f8d96, #7f8d96) 5px 10px / 2px 6px no-repeat,
    linear-gradient(#7f8d96, #7f8d96) 21px 10px / 2px 6px no-repeat;
}

.brand-sigil::after {
  z-index: 2;
  background:
    linear-gradient(#05090d, #05090d) 7px 10px / 5px 7px no-repeat,
    linear-gradient(#05090d, #05090d) 16px 10px / 5px 7px no-repeat,
    linear-gradient(rgba(54, 246, 255, 0.75), rgba(54, 246, 255, 0.75)) 8px 11px / 1px 1px no-repeat,
    linear-gradient(rgba(54, 246, 255, 0.75), rgba(54, 246, 255, 0.75)) 17px 11px / 1px 1px no-repeat,
    linear-gradient(#05090d, #05090d) 10px 20px / 8px 2px no-repeat;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.48rem;
  line-height: 1.8;
  scrollbar-width: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 2px solid rgba(54, 246, 255, 0.38);
  background: rgba(0, 0, 0, 0.62);
  color: var(--cyan);
  font-size: 0.48rem;
  line-height: 1.6;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(248, 251, 255, 0.08);
}

.music-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 8px;
  border: 2px solid rgba(255, 209, 92, 0.38);
  background: rgba(0, 0, 0, 0.62);
  color: var(--amber);
  font-size: 0.42rem;
  line-height: 1.6;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(248, 251, 255, 0.08);
}

.music-toggle[aria-pressed="true"] {
  border-color: rgba(141, 255, 112, 0.68);
  color: var(--green);
  box-shadow:
    inset 0 0 0 1px rgba(248, 251, 255, 0.08),
    0 0 16px rgba(141, 255, 112, 0.22);
}

.nav-toggle::before {
  content: "+";
  margin-right: 8px;
  color: var(--green);
}

.site-header.nav-open .nav-toggle::before {
  content: "-";
}

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

.site-nav a {
  flex: 0 0 auto;
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.46);
  border: 2px solid rgba(248, 251, 255, 0.16);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.breadcrumb-nav {
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-nav li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.breadcrumb-nav li + li::before {
  content: "/";
  color: var(--cyan);
}

.breadcrumb-nav a,
.breadcrumb-nav [aria-current="page"] {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  border: 2px solid rgba(248, 251, 255, 0.16);
  background: rgba(0, 0, 0, 0.48);
}

.breadcrumb-nav [aria-current="page"] {
  color: var(--amber);
  border-color: rgba(255, 209, 92, 0.34);
}

.hero-breadcrumb {
  margin-bottom: 18px;
}

.hero-stage {
  position: relative;
  display: grid;
  min-height: 92svh;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 30px;
  border-bottom: 4px solid var(--border);
  background: var(--void);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: url("/assets/optimized/pixel/hero-ufo-arcade-1120.webp");
  background-position: center 44%;
  background-size: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
  z-index: -2;
  background:
    radial-gradient(ellipse at 58% 38%, rgba(54, 246, 255, 0.08) 0%, rgba(2, 4, 10, 0.04) 34%, rgba(2, 4, 10, 0.36) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(2, 4, 10, 0.16) 38%, rgba(2, 4, 10, 0.62) 100%),
    linear-gradient(90deg, rgba(2, 4, 10, 0.82), rgba(2, 4, 10, 0.12) 58%, rgba(2, 4, 10, 0.34));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.hero-content.shell {
  max-width: 1240px;
}

.hero-label {
  margin: 0 0 16px;
  padding: 7px 10px;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.58);
  border: 2px solid rgba(255, 209, 92, 0.34);
  font-size: 0.52rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.pixel-kicker,
.tile-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.64rem;
  line-height: 1.8;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9ch;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: 0;
  text-shadow:
    6px 6px 0 var(--black),
    0 0 24px rgba(54, 246, 255, 0.38);
}

.hero-content h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 3.55vw, 3.85rem);
  line-height: 1.22;
  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
}

h2,
h3 {
  font-family: "VT323", monospace;
  font-weight: 400;
}

h2 {
  max-width: 16ch;
  color: var(--ink);
  font-size: clamp(3rem, 5.8vw, 5.8rem);
}

h3 {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero-copy {
  max-width: 780px;
  margin: 24px 0 0;
  color: #c7dce6;
  font-family: "VT323", monospace;
  font-size: clamp(1.35rem, 1.85vw, 1.82rem);
  line-height: 1.48;
  text-shadow: 2px 2px 0 var(--black);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.pixel-button,
.pixel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 3px solid var(--border);
  background: rgba(2, 4, 10, 0.82);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.45),
    5px 5px 0 var(--black);
  color: var(--ink);
  font-size: 0.62rem;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.pixel-button:hover,
.pixel-button:focus-visible,
.pixel-link:hover,
.pixel-link:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.45),
    7px 7px 0 var(--black);
}

.pixel-button:focus-visible,
.pixel-link:focus-visible,
.chapter-grid a:focus-visible,
.link-card:focus-visible,
.breadcrumb-nav a:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.pixel-button-primary {
  background: var(--amber);
  color: #160e00;
}

.pixel-link {
  margin-top: 22px;
}

.hero-hud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.hud-chip {
  min-height: 68px;
  padding: 12px;
  border: 2px solid rgba(248, 251, 255, 0.34);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.64);
}

.hud-chip span,
.chapter-grid span {
  display: block;
  color: var(--cyan);
  font-size: 0.46rem;
  line-height: 1.6;
}

.hud-chip strong,
.chapter-grid strong {
  display: block;
  color: var(--amber);
  font-size: 0.58rem;
  line-height: 1.45;
}

.chapter-strip {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.06), rgba(2, 4, 10, 0.96)),
    var(--black);
  border-top: 3px solid rgba(248, 251, 255, 0.72);
  border-bottom: 3px solid rgba(248, 251, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(54, 246, 255, 0.22),
    inset 0 -1px 0 rgba(54, 246, 255, 0.18);
}

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

.chapter-grid a {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 66px;
  padding: 12px 14px;
  border-left: 2px solid rgba(248, 251, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.06), rgba(141, 255, 112, 0.025)),
    var(--void);
}

.chapter-grid a:hover,
.chapter-grid a:focus-visible {
  background:
    linear-gradient(180deg, rgba(141, 255, 112, 0.14), rgba(54, 246, 255, 0.07)),
    var(--void-2);
  outline: none;
}

.chapter-grid a:last-child {
  border-right: 2px solid rgba(248, 251, 255, 0.16);
}

.section {
  position: relative;
  z-index: 1;
  padding: 74px 0 20px;
}

[id] {
  scroll-margin-top: 106px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.portal-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(248, 251, 255, 0.16);
}

.portal-heading .pixel-kicker {
  flex: 0 0 auto;
  margin: 0;
}

.portal-heading h2 {
  max-width: none;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  line-height: 1.8;
  white-space: nowrap;
}

.channel-grid,
.hub-grid,
.archive-grid,
.investigation-grid,
.article-layout {
  display: grid;
  gap: 18px;
}

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

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

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

.investigation-module {
  padding-top: 72px;
}

.investigation-head {
  display: grid;
  grid-template-columns: minmax(330px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
  padding: 0 0 14px;
  border-bottom: 2px solid rgba(248, 251, 255, 0.16);
}

.investigation-head > *,
.investigation-grid > *,
.feature-panel > *,
.section-heading > * {
  min-width: 0;
}

.investigation-head .pixel-kicker {
  margin-bottom: 8px;
}

.investigation-head h2 {
  max-width: none;
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.82rem, 1.12vw, 1.04rem);
  line-height: 1.7;
  white-space: nowrap;
  text-transform: uppercase;
}

.investigation-head p:not(.pixel-kicker) {
  margin: 0;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.62rem, 0.95vw, 0.82rem);
  line-height: 1.9;
  max-width: 66rem;
}

.investigation-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  align-items: stretch;
  gap: 20px;
}

.investigation-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 24px;
  border: 3px solid rgba(248, 251, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 209, 92, 0.08), rgba(54, 246, 255, 0.04)),
    rgba(0, 0, 0, 0.36);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.66);
}

.investigation-copy h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  line-height: 1.02;
}

.investigation-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pixel-panel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.06), rgba(255, 63, 180, 0.03)),
    var(--panel);
  border: 4px solid var(--border);
  box-shadow:
    0 0 0 4px var(--black),
    var(--shadow);
}

.pixel-panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(54, 246, 255, 0.16);
  pointer-events: none;
}

.link-card {
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover h3,
.link-card:focus-visible h3 {
  color: var(--green);
}

.url-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 2px solid rgba(255, 209, 92, 0.28);
  background: rgba(255, 209, 92, 0.08);
  color: var(--amber);
  font-size: 0.46rem;
  line-height: 1.55;
  text-transform: lowercase;
}

.channel-card,
.hub-card,
.archive-card,
.feature-panel,
.article-main {
  padding: 22px;
}

.channel-card,
.hub-card,
.archive-card {
  min-height: 100%;
}

.channel-card,
.hub-card,
.archive-card {
  display: flex;
  flex-direction: column;
}

.channel-card p:not(.tile-label),
.hub-card p:not(.tile-label),
.archive-card p:not(.tile-label),
.article-body p,
.article-intro,
.article-opening-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.asset-thumb,
.feature-art,
.article-hero-art {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--black);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 3px rgba(248, 251, 255, 0.16);
}

.asset-thumb::after,
.feature-art::after,
.article-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px);
  pointer-events: none;
}

.asset-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 18px;
  object-fit: cover;
}

.species-thumb {
  background-image: url("/assets/optimized/pixel/card-alien-species-480.webp");
}

.history-thumb {
  background-image: url("/assets/optimized/pixel/card-historical-sky-480.webp");
}

.case-thumb {
  background-image: url("/assets/optimized/pixel/card-case-files-480.webp");
}

.hub-card {
  min-height: 360px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.07), rgba(255, 63, 180, 0.025)),
    linear-gradient(90deg, rgba(255, 209, 92, 0.06), transparent 52%),
    var(--panel);
}

.hub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hub-card-top .url-chip {
  margin-bottom: 0;
}

.hub-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(248, 251, 255, 0.32);
  background: rgba(0, 0, 0, 0.52);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(54, 246, 255, 0.16);
}

.hub-mark::before,
.hub-mark::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hub-sightings .hub-mark::before {
  background:
    linear-gradient(var(--cyan), var(--cyan)) 12px 12px / 20px 4px no-repeat,
    linear-gradient(var(--green), var(--green)) 18px 16px / 8px 10px no-repeat,
    linear-gradient(rgba(141, 255, 112, 0.26), rgba(141, 255, 112, 0.26)) 16px 26px / 12px 12px no-repeat;
}

.hub-sightings .hub-mark::after {
  background:
    linear-gradient(var(--ink), var(--ink)) 8px 31px / 4px 4px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 30px 8px / 4px 4px no-repeat,
    linear-gradient(var(--magenta), var(--magenta)) 32px 29px / 3px 3px no-repeat;
}

.hub-aliens .hub-mark::before {
  background:
    linear-gradient(#dce6eb, #dce6eb) 14px 7px / 16px 4px no-repeat,
    linear-gradient(#b7c2c8, #b7c2c8) 10px 11px / 24px 8px no-repeat,
    linear-gradient(#9aa9b2, #9aa9b2) 12px 19px / 20px 8px no-repeat,
    linear-gradient(#7f8d96, #7f8d96) 16px 27px / 12px 4px no-repeat;
}

.hub-aliens .hub-mark::after {
  background:
    linear-gradient(#05090d, #05090d) 13px 15px / 6px 8px no-repeat,
    linear-gradient(#05090d, #05090d) 25px 15px / 6px 8px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 14px 16px / 1px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 26px 16px / 1px 1px no-repeat;
}

.hub-ancient .hub-mark::before {
  background:
    linear-gradient(var(--amber), var(--amber)) 20px 6px / 4px 28px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 10px 16px / 24px 4px no-repeat,
    linear-gradient(rgba(255, 209, 92, 0.3), rgba(255, 209, 92, 0.3)) 8px 30px / 28px 4px no-repeat;
}

.hub-otherworldly .hub-mark::before {
  background:
    linear-gradient(var(--magenta), var(--magenta)) 14px 8px / 16px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 9px 19px / 8px 8px no-repeat,
    linear-gradient(var(--green), var(--green)) 27px 25px / 8px 8px no-repeat;
}

.hub-science .hub-mark::before {
  background:
    radial-gradient(circle at 50% 50%, var(--cyan) 0 5px, transparent 6px),
    linear-gradient(var(--green), var(--green)) 7px 20px / 30px 3px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 20px 7px / 3px 30px no-repeat;
}

.hub-news .hub-mark::before {
  background:
    linear-gradient(var(--ink), var(--ink)) 10px 8px / 24px 4px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 10px 16px / 18px 4px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 10px 24px / 24px 4px no-repeat,
    linear-gradient(var(--green), var(--green)) 10px 32px / 14px 4px no-repeat;
}

.hub-card h3 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 2.5vw, 2.65rem);
  line-height: 1;
}

.hub-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.hub-examples span {
  padding: 7px 8px;
  overflow-wrap: anywhere;
  border: 2px solid rgba(54, 246, 255, 0.2);
  background: rgba(0, 0, 0, 0.34);
  color: var(--cyan);
  font-size: 0.46rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.feature-actions .pixel-link {
  margin-top: 0;
}

.pixel-link-muted {
  border-color: rgba(248, 251, 255, 0.46);
  color: var(--muted);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(54, 246, 255, 0.09), transparent 44%),
    linear-gradient(180deg, rgba(141, 255, 112, 0.05), rgba(255, 63, 180, 0.03)),
    var(--panel);
}

.feature-art {
  min-height: 430px;
  background-image: url("/assets/optimized/pixel/article-condign-casefile-1120.webp");
}

.feature-body {
  display: grid;
  align-content: center;
  padding: 6px 4px 6px 0;
}

.feature-body h3 {
  font-size: clamp(2.3rem, 3.2vw, 3.65rem);
  line-height: 1.02;
}

.mini-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-grid span {
  padding: 10px;
  border: 2px solid rgba(248, 251, 255, 0.24);
  background: rgba(0, 0, 0, 0.42);
  color: var(--green);
  font-size: 0.52rem;
  line-height: 1.7;
}

.category-shell {
  padding-top: 112px;
}

.category-breadcrumb {
  margin-bottom: 18px;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  column-gap: 60px;
  row-gap: 32px;
  align-items: start;
  min-width: 0;
}

.category-main {
  min-width: 0;
  display: contents;
}

.category-intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  max-width: 1280px;
  padding: 10px 0 8px;
}

.category-intro h1 {
  max-width: none;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.category-intro p:not(.pixel-kicker) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.62rem, 0.95vw, 0.82rem);
  line-height: 1.9;
}

.category-feature {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.category-feature::after {
  inset: 10px;
}

.category-feature-art {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 460px;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.72);
}

.category-feature-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-feature-art::after,
.recent-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px);
  pointer-events: none;
}

.category-art-ufo,
.category-art-news,
.category-thumb-case {
  background-image: url("/assets/optimized/pixel/card-case-files-480.webp");
}

.category-art-aliens,
.category-thumb-aliens {
  background-image: url("/assets/optimized/pixel/card-alien-species-480.webp");
}

.category-art-ancient,
.category-art-otherworldly {
  background-image: url("/assets/optimized/pixel/card-historical-sky-480.webp");
}

.category-art-science {
  background-image: url("/assets/optimized/pixel/hero-ufo-arcade-1120.webp");
}

.category-thumb-condign {
  background-image: url("/assets/optimized/pixel/article-condign-casefile-1120.webp");
}

.feature-route-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  max-width: min(100%, 320px);
  padding: 10px 12px;
  border: 3px solid var(--black);
  background: var(--cyan);
  color: var(--void);
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px rgba(248, 251, 255, 0.2);
}

.category-feature-copy {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 28px 30px 30px;
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.08), rgba(255, 209, 92, 0.035)),
    rgba(0, 0, 0, 0.42);
}

.category-feature-copy h2 {
  max-width: none;
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: clamp(3.6rem, 5.7vw, 5.6rem);
  line-height: 0.95;
  text-shadow: 5px 5px 0 var(--black);
}

.category-ancient-alien-theory .category-feature-copy h2 {
  font-size: clamp(3rem, 4.6vw, 4.75rem);
  overflow-wrap: anywhere;
}

.category-ancient-alien-theory .category-read-card h3 {
  font-size: clamp(1.65rem, 2.05vw, 2.25rem);
  overflow-wrap: anywhere;
}

.category-ancient-alien-theory .category-read-card {
  min-height: 0;
}

.category-ancient-alien-theory .portal-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.category-ancient-alien-theory .portal-heading h2 {
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-feature-copy > p:not(.tile-label) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.category-meta span,
.read-index {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 2px solid rgba(54, 246, 255, 0.22);
  background: rgba(0, 0, 0, 0.38);
  color: var(--cyan);
  font-size: 0.46rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.category-section {
  grid-column: 1;
  display: grid;
  gap: 18px;
}

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

.category-read-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 22px;
}

.category-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.category-card-top .url-chip {
  margin-bottom: 0;
  text-transform: uppercase;
}

.category-read-card h3 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1;
}

.category-read-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.archive-index-section {
  padding-top: 28px;
}

.archive-index-list {
  display: grid;
  gap: 10px;
}

.archive-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px 16px;
  border: 2px solid rgba(54, 246, 255, 0.22);
  background: linear-gradient(180deg, rgba(5, 20, 28, 0.82), rgba(2, 4, 10, 0.86));
  color: var(--ink);
  text-decoration: none;
}

.archive-index-row:hover {
  border-color: var(--cyan);
  background: rgba(54, 246, 255, 0.08);
}

.archive-index-row span {
  display: -webkit-box;
  overflow: hidden;
  font-family: "VT323", monospace;
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-index-row em {
  overflow: hidden;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  font-style: normal;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-index-row strong {
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  line-height: 1.5;
  text-align: right;
}

.category-sidebar {
  grid-column: 2;
  grid-row: 2 / span 4;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 94px;
}

.category-search {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 3px solid rgba(248, 251, 255, 0.22);
  background: rgba(0, 0, 0, 0.38);
}

.category-search span {
  color: var(--cyan);
  font-size: 0.48rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.category-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid rgba(248, 251, 255, 0.22);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.8rem;
}

.category-search input::placeholder {
  color: rgba(168, 198, 211, 0.7);
}

.search-filter-status {
  color: var(--green) !important;
}

.search-shell {
  display: grid;
  gap: 24px;
}

.site-search-form {
  display: grid;
  gap: 12px;
}

.site-search-form label {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.site-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.site-search-row input {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 3px solid rgba(248, 251, 255, 0.22);
  background: rgba(0, 0, 0, 0.48);
  color: var(--ink);
  font: 1.35rem "VT323", monospace;
}

.search-summary,
.search-empty {
  color: var(--muted);
  font-size: 1.2rem;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.search-result h2 {
  margin: 0;
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.search-result p {
  margin: 0;
  color: var(--muted);
}

.search-result em {
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: 0.46rem;
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sidebar-panel {
  padding: 18px;
  border: 3px solid rgba(248, 251, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.055), rgba(255, 63, 180, 0.025)),
    rgba(0, 0, 0, 0.34);
}

.sidebar-panel h2 {
  max-width: none;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(248, 251, 255, 0.18);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
}

.sidebar-link-list {
  display: grid;
  gap: 8px;
}

.sidebar-link-list a,
.recent-list a {
  display: grid;
  color: var(--muted);
}

.sidebar-link-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(248, 251, 255, 0.1);
  font-size: 0.55rem;
  line-height: 1.7;
}

.sidebar-link-list a[aria-current="page"],
.sidebar-link-list a:hover,
.sidebar-link-list a:focus-visible,
.tag-cloud span,
.tag-cloud a:hover,
.tag-cloud a:focus-visible,
.recent-list a:hover strong,
.recent-list a:focus-visible strong {
  color: var(--green);
}

.sidebar-link-list strong {
  color: var(--amber);
  font-weight: 400;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.tag-cloud a {
  display: inline-flex;
  padding: 7px 8px;
  border: 2px solid rgba(54, 246, 255, 0.22);
  background: rgba(0, 0, 0, 0.34);
  color: var(--cyan);
  font-size: 0.45rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.recent-list {
  display: grid;
  gap: 14px;
}

.recent-list a {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  position: relative;
  min-height: 70px;
  overflow: hidden;
  border: 3px solid var(--black);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 2px rgba(248, 251, 255, 0.12);
}

.recent-list strong,
.recent-list em {
  display: block;
}

.recent-list strong {
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.05;
}

.recent-list em {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 0.43rem;
  font-style: normal;
  line-height: 1.5;
}

.article-page {
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.35), rgba(2, 4, 10, 0.96)),
    var(--void);
}

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

.article-layout > *,
.category-layout > * {
  min-width: 0;
}

.article-layout-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.article-breadcrumb {
  grid-column: 1 / -1;
}

.article-title-breadcrumb {
  margin: 18px 0 22px;
}

.article-title-breadcrumb ol {
  gap: 10px;
}

.article-title-breadcrumb a,
.article-title-breadcrumb [aria-current="page"] {
  min-height: 38px;
  padding: 8px 12px;
}

.article-main h1 {
  max-width: 100%;
  font-family: "VT323", monospace;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  text-wrap: normal;
  text-shadow: 5px 5px 0 var(--black);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--amber);
  font-size: 0.56rem;
  line-height: 1.8;
}

.article-meta-bar span {
  padding: 8px 10px;
  border: 2px solid rgba(255, 209, 92, 0.36);
  background: rgba(0, 0, 0, 0.45);
}

.article-hero-art {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 22px 0;
  background-image: url("/assets/optimized/pixel/article-condign-casefile-1120.webp");
  background-position: center;
  background-size: cover;
}

.article-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.related-art-img,
.asset-thumb {
  image-rendering: pixelated;
}

.post-art-condign,
.related-art-condign {
  background-image: url("/assets/optimized/pixel/article-condign-casefile-1120.webp");
}

.post-art-cash,
.related-art-cash {
  background-image: url("/assets/optimized/pixel/card-case-files-480.webp");
}

.post-art-grey,
.related-art-grey {
  background-image: url("/assets/optimized/pixel/card-alien-species-480.webp");
}

.post-art-anunnaki,
.related-art-anunnaki {
  background-image: url("/assets/optimized/pixel/card-historical-sky-480.webp");
}

.article-intro {
  max-width: 100%;
  color: var(--ink);
  font-size: 1.2rem;
}

.article-opening-copy {
  max-width: 100%;
  margin: 18px 0 28px;
  padding-top: 16px;
  border-top: 2px solid rgba(248, 251, 255, 0.12);
}

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

.case-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.case-brief div {
  padding: 12px;
  border: 2px solid rgba(54, 246, 255, 0.22);
  background: rgba(0, 0, 0, 0.36);
}

.case-brief span,
.case-brief strong {
  display: block;
}

.case-brief span {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.case-brief strong {
  margin-top: 5px;
  color: var(--amber);
  font-family: "VT323", monospace;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.file-snapshot {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 2px solid rgba(54, 246, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.07), rgba(255, 209, 92, 0.035)),
    rgba(0, 0, 0, 0.32);
}

.snapshot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(248, 251, 255, 0.12);
}

.snapshot-head .pixel-kicker,
.snapshot-head p {
  margin: 0;
}

.snapshot-head p:not(.pixel-kicker) {
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.5rem, 0.82vw, 0.64rem);
  line-height: 1.8;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.snapshot-grid div {
  min-height: 104px;
  padding: 12px;
  border: 2px solid rgba(255, 209, 92, 0.26);
  background: rgba(0, 0, 0, 0.34);
}

.snapshot-grid span,
.snapshot-grid strong {
  display: block;
}

.snapshot-grid span {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.44rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.snapshot-grid strong {
  margin-top: 18px;
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
}

.snapshot-grid strong a {
  color: inherit;
  text-decoration: none;
}

.snapshot-grid strong a:hover,
.snapshot-grid strong a:focus-visible {
  color: var(--green);
}

.snapshot-route {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 2px solid rgba(54, 246, 255, 0.2);
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: 0.46rem;
  line-height: 1.7;
  text-decoration: none;
}

.snapshot-route span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-route:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.intel-grid div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
  border: 2px solid rgba(255, 209, 92, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 209, 92, 0.08), rgba(54, 246, 255, 0.03)),
    rgba(0, 0, 0, 0.36);
}

.intel-grid span {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.46rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.intel-grid strong {
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
}

.article-body {
  max-width: 100%;
}

.article-body h2 {
  max-width: 100%;
  margin: 34px 0 10px;
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.86rem, 1.6vw, 1.12rem);
  line-height: 1.8;
  text-transform: uppercase;
}

.article-body h3 {
  margin: 26px 0 8px;
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.86rem);
  line-height: 1.8;
  text-transform: uppercase;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body a:hover,
.article-body a:focus-visible {
  color: var(--green);
  outline: none;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 209, 92, 0.35);
  background: rgba(255, 209, 92, 0.08);
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: 0.66em;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.article-body ol {
  counter-reset: article-list;
}

.article-body li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.article-body ul li::before,
.article-body ol li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(141, 255, 112, 0.42);
}

.article-body ol li {
  counter-increment: article-list;
  padding-left: 42px;
}

.article-body ol li::before {
  content: counter(article-list, decimal-leading-zero);
  top: 0.05em;
  left: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: 0.52rem;
  line-height: 1.7;
  box-shadow: none;
}

.article-body figure {
  margin: 20px 0 30px;
  overflow-x: auto;
  border: 3px solid rgba(54, 246, 255, 0.28);
  background: rgba(0, 0, 0, 0.38);
}

.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.article-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.article-body figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-body table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 13px 14px;
  border: 2px solid rgba(248, 251, 255, 0.16);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--amber);
  font-family: "Press Start 2P", monospace;
  font-size: 0.52rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.nft-index,
.nft-detail {
  padding-bottom: 0;
}

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

.nft-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
}

.nft-card figure {
  aspect-ratio: 1;
  margin: 0;
  border-bottom: 3px solid rgba(248, 251, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.08), rgba(255, 209, 92, 0.035)),
    rgba(0, 0, 0, 0.52);
}

.nft-card img,
.nft-model-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.nft-card div {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.nft-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.68rem, 1vw, 0.86rem);
  line-height: 1.7;
  text-transform: uppercase;
}

.nft-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.nft-card .tile-label {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.44rem;
  line-height: 1.6;
}

.nft-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0 28px;
}

.nft-model-art {
  aspect-ratio: 1;
  margin: 0;
  padding: 10px;
  border: 3px solid rgba(54, 246, 255, 0.28);
  background:
    radial-gradient(circle at 50% 44%, rgba(54, 246, 255, 0.14), transparent 56%),
    rgba(0, 0, 0, 0.46);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.66);
}

.nft-model-copy {
  display: grid;
  gap: 18px;
}

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

.nft-trait-grid div {
  min-height: 96px;
  padding: 13px;
  border: 2px solid rgba(255, 209, 92, 0.26);
  background: rgba(0, 0, 0, 0.34);
}

.nft-trait-grid span,
.nft-trait-grid strong {
  display: block;
}

.nft-trait-grid span {
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.44rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.nft-trait-grid strong {
  margin-top: 14px;
  color: var(--amber);
  font-family: "VT323", monospace;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
}

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

blockquote {
  margin: 28px 0;
  padding: 20px;
  border: 3px dashed var(--green);
  background: rgba(141, 255, 112, 0.08);
}

blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.moodboard-shell {
  display: grid;
  gap: 28px;
  padding-top: 112px;
}

.moodboard-hero {
  padding: 14px;
}

.moodboard-hero img,
.moodboard-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid var(--black);
}

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

.moodboard-grid article {
  display: grid;
  gap: 16px;
}

.moodboard-grid h2,
.moodboard-rules strong {
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  text-transform: uppercase;
}

.moodboard-grid p,
.moodboard-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.moodboard-rules {
  display: grid;
  gap: 18px;
}

.moodboard-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.moodboard-rule-grid div {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(54, 246, 255, 0.22);
  background: rgba(0, 0, 0, 0.34);
}

.moodboard-rule-grid span {
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.58fr) repeat(3, minmax(190px, 1fr));
  gap: 22px;
  margin-top: 70px;
  padding: 38px 0 30px;
  color: var(--muted);
  font-size: 0.5rem;
  line-height: 1.7;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 4px solid rgba(248, 251, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(54, 246, 255, 0.07), rgba(255, 63, 180, 0.025)),
    linear-gradient(90deg, rgba(141, 255, 112, 0.04), transparent 36%, rgba(255, 209, 92, 0.035)),
    rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(54, 246, 255, 0.25),
    0 -18px 44px rgba(0, 0, 0, 0.42);
}

.site-footer p {
  margin: 0;
}

.footer-brand,
.footer-column {
  position: relative;
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1.5;
  text-shadow: 3px 3px 0 var(--black);
}

.footer-logo:hover,
.footer-logo:focus-visible {
  color: var(--green);
}

.footer-column > p {
  margin-top: 18px;
  margin-bottom: 12px;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column a {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 2px solid rgba(248, 251, 255, 0.16);
  background: rgba(0, 0, 0, 0.34);
}

.footer-column a {
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  transform: translate(-2px, -2px);
}

.footer-column a span {
  color: var(--cyan);
  font-size: 0.42rem;
  line-height: 1.5;
  text-transform: lowercase;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-legal a {
  color: var(--muted);
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--green);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 2px solid rgba(248, 251, 255, 0.14);
  color: var(--muted);
  font-size: 0.46rem;
  line-height: 1.7;
}

@media (max-width: 1040px) {
  .site-header {
    position: absolute;
    padding: 9px 10px;
  }

  .brand {
    font-size: 0.62rem;
  }

  .site-nav {
    gap: 5px;
    font-size: 0.43rem;
  }

  .music-toggle {
    font-size: 0.38rem;
  }

  .site-nav a {
    padding: 6px 7px;
  }

  .hero-stage {
    min-height: 780px;
    padding-top: 108px;
  }

  .hero-content h1 {
    max-width: 20ch;
    font-size: 2.3rem;
  }

  .hero-copy {
    max-width: 720px;
    font-size: 1.45rem;
  }

  .section-heading,
  .investigation-head,
  .investigation-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .channel-grid,
  .hub-grid,
  .archive-grid,
  .nft-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .category-layout,
  .category-feature {
    grid-template-columns: 1fr;
  }

  .category-main {
    display: grid;
    gap: 32px;
  }

  .category-intro,
  .category-feature,
  .category-section,
  .category-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

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

  .category-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-search,
  .sidebar-panel:last-child {
    grid-column: 1 / -1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 20px;
    --header-gutter: 12px;
    --shadow: 5px 5px 0 rgba(0, 0, 0, 0.72);
  }

  .shell {
    width: auto;
    max-width: none;
    margin-right: var(--page-gutter);
    margin-left: var(--page-gutter);
  }

  .hero-content.shell {
    width: auto;
    max-width: none;
    margin-right: var(--page-gutter);
    margin-left: var(--page-gutter);
  }

  .site-header {
    right: var(--header-gutter);
    left: var(--header-gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 8px;
    transform: none;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .music-toggle {
    margin-left: 0;
    padding: 7px 6px;
    font-size: 0.36rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 180ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .site-header.nav-open .site-nav {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .moodboard-grid,
  .moodboard-rule-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
    padding: 168px 0 24px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(2, 4, 10, 0.58) 0%, rgba(2, 4, 10, 0.28) 40%, rgba(2, 4, 10, 0.68) 100%),
      linear-gradient(90deg, rgba(2, 4, 10, 0.82), rgba(2, 4, 10, 0.18));
  }

  .hero-content {
    padding: 0;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2.25rem, 10vw, 3.7rem);
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(0.92rem, 3.3vw, 1.34rem);
    line-height: 1.55;
    overflow-wrap: normal;
  }

  .hero-content h1 span {
    display: block;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1.24rem;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .hero-label {
    font-size: 0.52rem;
  }

  h2 {
    font-size: clamp(2.35rem, 8vw, 3.2rem);
  }

  .hero-hud,
  .channel-grid,
  .hub-grid,
  .archive-grid,
  .category-read-grid,
  .category-sidebar,
  .feature-panel,
  .investigation-head,
  .investigation-grid,
  .snapshot-grid,
  .intel-grid,
  .case-brief {
    grid-template-columns: 1fr;
  }

  .snapshot-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .snapshot-grid div {
    min-height: 0;
  }

  .category-shell {
    padding-top: 154px;
  }

  .category-intro {
    gap: 12px;
  }

  .category-intro h1 {
    max-width: none;
    font-size: clamp(1.25rem, 5vw, 1.85rem);
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .category-intro p:not(.pixel-kicker) {
    font-size: clamp(0.58rem, 2.45vw, 0.72rem);
    line-height: 1.9;
  }

  .category-feature-art {
    justify-content: flex-start;
    min-height: 320px;
    padding: 12px;
  }

  .category-feature-copy {
    padding: 22px;
  }

  .category-feature-copy h2 {
    font-size: clamp(2.25rem, 8vw, 2.9rem);
    line-height: 1.08;
  }

  .archive-index-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .archive-index-row em {
    white-space: normal;
  }

  .archive-index-row strong {
    text-align: left;
  }

  .feature-route-badge {
    max-width: 220px;
    font-size: 0.46rem;
    line-height: 1.55;
    text-align: left;
  }

  .category-search,
  .sidebar-panel:last-child {
    grid-column: auto;
  }

  .investigation-head h2 {
    white-space: normal;
  }

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

  .chapter-grid a {
    min-height: 60px;
  }

  .section {
    padding-top: 56px;
  }

  .portal-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .portal-heading h2 {
    white-space: normal;
  }

  .article-layout {
    padding-top: 154px;
  }

  .article-main {
    overflow: hidden;
  }

  .nft-detail-grid {
    grid-template-columns: 1fr;
  }

  .article-main .url-chip {
    display: block;
    width: 100%;
    word-break: break-all;
  }

  .article-main h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9vw, 3.05rem);
    line-height: 1.02;
  }

  .article-main,
  .channel-card,
  .archive-card,
  .category-read-card,
  .investigation-copy,
  .feature-panel {
    padding: 18px;
  }

  .article-hero-art {
    min-height: 0;
  }

  .article-body figure {
    overflow-x: hidden;
  }

  .article-body table {
    min-width: 0;
    table-layout: fixed;
  }

  .article-body th,
  .article-body td {
    padding: 9px 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.78rem;
  }

  .article-body th {
    font-size: 0.4rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-bottom,
  .footer-legal {
    justify-content: flex-start;
  }

}

@media (max-width: 620px) {
  .hero-actions {
    width: 100%;
  }

  .pixel-button,
  .pixel-link {
    width: 100%;
  }
}

@media (max-width: 460px) {
  :root {
    --page-gutter: 18px;
    --header-gutter: 10px;
  }

  .brand {
    font-size: 0.62rem;
  }

  .site-nav a {
    padding: 7px 7px;
    font-size: 0.4rem;
  }

  .nav-toggle {
    font-size: 0.4rem;
  }

  .pixel-button,
  .pixel-link {
    width: 100%;
  }

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

  .hero-content h1 {
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: normal;
  }

  .hero-content h1 span {
    display: block;
  }

  .hero-copy,
  .channel-card p:not(.tile-label),
  .hub-card p:not(.tile-label),
  .archive-card p:not(.tile-label),
  .investigation-copy p,
  .article-body p,
  .article-body li,
  .article-intro,
  .article-opening-copy p {
    font-size: 0.98rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .article-main h1 {
    font-size: 2.5rem;
  }

  .nft-model-grid,
  .related-nft-grid,
  .nft-trait-grid {
    grid-template-columns: 1fr;
  }
}
