:root {
  color-scheme: dark;
  --bg: #04070d;
  --bg-soft: #0c1320;
  --panel: rgba(8, 15, 25, 0.9);
  --panel-strong: rgba(7, 11, 20, 0.94);
  --border: rgba(58, 245, 224, 0.18);
  --border-strong: rgba(255, 46, 166, 0.4);
  --text: #eefcff;
  --muted: #95aabd;
  --accent: #3af5e0;
  --accent-strong: #00f2ff;
  --danger: #ff2ea6;
  --violet: #c34cff;
  --sodium: #1effb4;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --radius-sm: 12px;
  --content: 1080px;
  --header-height: 76px;
  --font-title: "Bahnschrift SemiCondensed", "DIN Condensed", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.14), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(255, 46, 166, 0.16), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(30, 255, 180, 0.08), transparent 28%),
    linear-gradient(180deg, #03060b 0%, #07101a 22%, #09111d 58%, #04070d 100%);
  font-size: 15px;
  line-height: 1.58;
  min-width: 320px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 10px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(90deg, rgba(0, 242, 255, 0.05), transparent 22%, rgba(255, 46, 166, 0.05)),
    rgba(5, 9, 16, 0.78);
  border-bottom: 1px solid rgba(58, 245, 224, 0.12);
}

#top,
#main,
.hero {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  width: clamp(132px, 16vw, 190px);
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-nav a,
.nav-toggle {
  position: relative;
  overflow: hidden;
  color: var(--text);
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
  font-size: 0.94rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--border-strong);
  color: var(--accent);
  background: rgba(87, 234, 255, 0.06);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: 44px 0 52px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: 8%;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 255, 0.22);
  box-shadow:
    0 0 0 24px rgba(0, 242, 255, 0.03),
    0 0 0 48px rgba(255, 46, 166, 0.025),
    0 0 90px rgba(0, 242, 255, 0.12);
  opacity: 0.75;
  animation: haloPulse 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-backdrop,
.hero-rain,
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-backdrop {
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0.24), rgba(3, 6, 11, 0.9)),
    linear-gradient(90deg, rgba(3, 6, 11, 0.84) 0%, rgba(3, 6, 11, 0.38) 44%, rgba(3, 6, 11, 0.82) 100%),
    url("./img/hero-supernatural-scene.svg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-backdrop::before,
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-backdrop::before {
  background:
    radial-gradient(circle at 18% 34%, rgba(0, 242, 255, 0.22), transparent 18%),
    radial-gradient(circle at 76% 22%, rgba(255, 46, 166, 0.22), transparent 16%),
    radial-gradient(circle at 70% 68%, rgba(30, 255, 180, 0.12), transparent 18%),
    conic-gradient(from 180deg at 72% 52%, transparent 0 24%, rgba(0, 242, 255, 0.08) 24% 30%, transparent 30% 55%, rgba(255, 46, 166, 0.08) 55% 59%, transparent 59% 100%);
  mix-blend-mode: screen;
}

.hero-backdrop::after {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18.5%, transparent 19% 100%),
    linear-gradient(295deg, transparent 0 56%, rgba(0, 242, 255, 0.11) 57%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 66px);
  opacity: 0.52;
}

.hero-rain {
  background-image:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.12) 28%, transparent 60%),
    repeating-linear-gradient(100deg, transparent 0 10px, rgba(190, 255, 250, 0.16) 10px 12px, transparent 12px 24px),
    repeating-linear-gradient(100deg, transparent 0 32px, rgba(255, 46, 166, 0.08) 32px 33px, transparent 33px 70px);
  background-size: 100% 100%, 210px 210px, 340px 340px;
  animation: rainShift 10s linear infinite;
  opacity: 0.34;
}

.scanline {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.01) 1px, transparent 3px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.02), transparent 40%, rgba(255, 46, 166, 0.025));
  background-size: 100% 4px;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: center;
}

.hero-copy,
.hero-dossier {
  position: relative;
}

.eyebrow,
.section-kicker,
.dossier-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--accent);
}

.glitch-title {
  position: relative;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 5.6vw, 4.55rem);
  line-height: 0.95;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #bafff8 32%, #52f7ff 56%, #ff7fd2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 22px rgba(58, 245, 224, 0.18),
    0 0 44px rgba(0, 242, 255, 0.18),
    0 0 70px rgba(255, 46, 166, 0.16);
}

h1,
h2 {
  color: var(--accent);
}

h2,
.section-heading h2,
.dossier-card h2,
.cta-copy h2 {
  color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 48%, var(--danger) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.glitch-title::before {
  color: rgba(0, 242, 255, 0.36);
  transform: translate(2px, 0);
  clip-path: inset(10% 0 45% 0);
  animation: glitchA 3.4s infinite linear alternate-reverse;
}

.glitch-title::after {
  color: rgba(255, 46, 166, 0.3);
  transform: translate(-2px, 0);
  clip-path: inset(55% 0 5% 0);
  animation: glitchB 4.4s infinite linear alternate-reverse;
}

.hero-subtitle {
  margin: 12px 0 0;
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  letter-spacing: 0.18em;
  color: #dffcff;
}

.hero-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 0.98rem;
  color: #d9ebf5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.command-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(9, 15, 24, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(0, 242, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.command-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 46%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0;
  transition: left 420ms ease, opacity 180ms ease;
}

.command-button:hover,
.command-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--border-strong);
}

.command-button:hover::after,
.command-button:focus-visible::after {
  left: 124%;
  opacity: 1;
}

.command-button.primary {
  background:
    linear-gradient(135deg, rgba(0, 242, 255, 0.3), rgba(58, 245, 224, 0.08) 45%, rgba(255, 46, 166, 0.16)),
    rgba(8, 15, 24, 0.94);
  box-shadow:
    0 16px 34px rgba(0, 242, 255, 0.18),
    inset 0 0 0 1px rgba(58, 245, 224, 0.24);
}

.command-button.secondary {
  background:
    linear-gradient(135deg, rgba(255, 46, 166, 0.16), rgba(0, 242, 255, 0.06)),
    rgba(10, 15, 22, 0.9);
}

.command-button.large {
  min-width: min(100%, 280px);
}

.hero-meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-meta li,
.dossier-card,
.poster-frame,
.intel-card,
.guide-step,
.ops-card,
.timeline-item,
.gallery-card,
.faq-item,
.cta-box,
.system-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(135deg, rgba(0, 242, 255, 0.05), transparent 34%, rgba(255, 46, 166, 0.04) 100%),
    rgba(8, 14, 23, 0.84);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-meta li::before,
.dossier-card::before,
.poster-frame::before,
.intel-card::before,
.guide-step::before,
.ops-card::before,
.timeline-item::after,
.gallery-card::before,
.faq-item::before,
.cta-box::before,
.system-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0), rgba(0, 242, 255, 0.82), rgba(255, 46, 166, 0.82), rgba(255, 46, 166, 0));
  opacity: 0.7;
}

.hero-meta li {
  padding: 13px 15px;
}

.hero-meta li:hover,
.dossier-card:hover,
.poster-frame:hover,
.intel-card:hover,
.guide-step:hover,
.ops-card:hover,
.timeline-item:hover,
.gallery-card:hover,
.faq-item:hover,
.cta-box:hover,
.system-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 245, 224, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(135deg, rgba(0, 242, 255, 0.08), transparent 36%, rgba(255, 46, 166, 0.07) 100%),
    rgba(9, 16, 27, 0.9);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(0, 242, 255, 0.08);
}

.hero-meta span,
.intel-list dt {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-meta strong {
  font-size: 0.9rem;
  color: #f6feff;
}

.hero-dossier {
  display: grid;
  gap: 14px;
}

.dossier-card {
  padding: 20px;
  backdrop-filter: blur(14px);
}

.dossier-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  font-size: 1.3rem;
}

.intel-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.intel-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intel-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.intel-list dd {
  margin: 0;
  color: #def5ff;
  word-break: normal;
}

.intel-list a {
  color: var(--accent);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.poster-frame:hover img,
.panel-media:hover img,
.gallery-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.section {
  padding: 68px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-dark {
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 242, 255, 0.08), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 46, 166, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.94), rgba(7, 12, 21, 0.98));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(1.38rem, 2.45vw, 1.95rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
}

.section-heading p:last-child {
  margin: 0;
  color: #c8d5df;
}

.feature-grid,
.guide-grid,
.ops-board,
.gallery-grid {
  display: grid;
  gap: 14px;
}

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

.intel-card,
.guide-step,
.ops-card,
.timeline-item,
.gallery-card {
  padding: 18px;
}

.card-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.26), rgba(255, 46, 166, 0.18));
  color: var(--accent);
  font-family: var(--font-title);
  letter-spacing: 0.08em;
  box-shadow:
    0 0 18px rgba(0, 242, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.intel-card h3,
.guide-step h3,
.ops-card h3,
.timeline-item h3,
.system-panel h3,
.faq-item summary,
.cta-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}

.intel-card p,
.guide-step p,
.timeline-item p,
.cta-copy p,
.panel-copy p,
.faq-item p,
.gallery-card figcaption {
  margin: 0;
  color: #c6d3dd;
}

.systems-layout {
  display: grid;
  gap: 16px;
}

.systems-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button,
.filter-chip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 14, 22, 0.88);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--border-strong);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 242, 255, 0.08);
}

.tab-button.is-active,
.filter-chip.is-active {
  background:
    linear-gradient(135deg, rgba(0, 242, 255, 0.16), rgba(255, 46, 166, 0.12)),
    rgba(8, 14, 22, 0.95);
  border-color: rgba(0, 242, 255, 0.45);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.12);
}

.systems-panels {
  display: grid;
}

.system-panel {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.panel-copy {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-media {
  min-height: 300px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #090d13;
}

.panel-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.signal-list,
.ops-card ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.signal-list li,
.ops-card li {
  color: #d2deea;
  margin-bottom: 8px;
}

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

.ops-board {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding-left: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 46, 166, 0.72));
  transition: box-shadow 220ms ease, background 220ms ease;
}

.timeline-item:hover::before {
  box-shadow: 0 0 18px rgba(58, 245, 224, 0.32);
}

.timeline-item time {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.12);
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

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

.gallery-card {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.gallery-card figcaption {
  order: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.72;
}

.gallery-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.22);
  background: rgba(0, 242, 255, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  letter-spacing: 0.04em;
  color: #f4fdff;
}

.gallery-card p {
  margin: 0;
  color: #c6d3dd;
}

.gallery-card img {
  order: 2;
  border-radius: calc(var(--radius) - 10px);
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
  object-fit: cover;
  margin-bottom: 0;
  transition: transform 420ms ease, filter 420ms ease;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  transition: color 180ms ease, background 180ms ease;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--accent);
  background: rgba(0, 242, 255, 0.045);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 18px;
}

.cta-section {
  padding-top: 58px;
  padding-bottom: 74px;
}

.cta-box {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.site-footer {
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(0, 242, 255, 0.04), transparent 28%, rgba(255, 46, 166, 0.04)),
    rgba(4, 7, 11, 0.96);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 500ms ease, opacity 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@keyframes rainShift {
  from {
    transform: translate3d(0, -20px, 0);
  }
  to {
    transform: translate3d(-58px, 92px, 0);
  }
}

@keyframes haloPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes glitchA {
  0%, 100% {
    transform: translate(2px, 0);
  }
  20% {
    transform: translate(4px, -2px);
  }
  60% {
    transform: translate(1px, 2px);
  }
}

@keyframes glitchB {
  0%, 100% {
    transform: translate(-2px, 0);
  }
  35% {
    transform: translate(-4px, 1px);
  }
  75% {
    transform: translate(-1px, -1px);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .system-panel,
  .cta-box {
    grid-template-columns: 1fr;
  }

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

  .ops-board,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    grid-template-columns: 1fr;
  }

  .gallery-card figcaption,
  .gallery-card img {
    min-height: 0;
  }

  .gallery-card img {
    aspect-ratio: 16 / 9;
  }

  .cta-actions {
    justify-items: stretch;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --radius: 16px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 14px;
    border: 1px solid rgba(87, 234, 255, 0.14);
    border-radius: 20px;
    background: rgba(8, 13, 19, 0.96);
    display: none;
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-meta,
  .feature-grid,
  .guide-grid,
  .ops-board {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading h2 {
    letter-spacing: 0.03em;
  }

  .hero-actions,
  .systems-tabs,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .command-button,
  .tab-button,
  .filter-chip {
    width: 100%;
  }

  .dossier-card,
  .intel-card,
  .guide-step,
  .ops-card,
    .timeline-item,
    .system-panel,
    .cta-box {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
