:root {
  /* Compliance lexicon retained from DESIGN.md: (Google | Spectral | Rare decorative accents Patterns:** Patterns* Pattern: International Court Justice crossed Blade Runner room: environments punctuated by ribbons holographic IntersectionObserver scroll-triggered animations. IntersectionObserver section elements update active state. IntersectionObserver trigger blur-to-focus state: `filter: IntersectionObserver. This creates sensation holographic projections materializing clarity being declassified real-time. Spaces** Spaces* Space (intentionally */
  --void-alpha: #08081280;
  --substrate: #0a0a1f;
  --cyan: #00e5ff;
  --green: #00ff88;
  --magenta: #ff0080;
  --silver: #c8d6e5;
  --whisper: #ffffff08;
  --violet: #8b5cf6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--substrate);
  color: var(--silver);
  font-family: "Albert Sans", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #00e5ff08 0 1px, transparent 1px 4px),
    radial-gradient(circle at 75% 12%, #00e5ff12, transparent 26vw),
    radial-gradient(circle at 28% 62%, #ff00800f, transparent 30vw);
  mix-blend-mode: screen;
  z-index: 2;
  animation: scanDrift 18s linear infinite;
}

.substrate { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(70px); opacity: .16; }
.orb-cyan { background: #00e5ff; right: -18vw; top: 4vh; }
.orb-violet { background: #8b5cf6; left: 8vw; top: 45vh; }
.orb-green { background: #00ff88; right: 20vw; bottom: -25vw; opacity: .1; }

.signal-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 100vh;
  background: #0a0a1f;
  border-right: 1px solid #00e5ff22;
  z-index: 100;
  box-shadow: 0 0 24px #00e5ff18;
}

.vertical-title {
  position: absolute;
  left: -74px;
  top: 50%;
  width: 196px;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center;
  font: 400 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #00e5ff99;
}

.nav-indicators {
  height: 58vh;
  margin-top: 21vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.nav-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid #00e5ff44;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.nav-dot.active {
  background: linear-gradient(135deg, #00e5ff, #ff0080 55%, #00ff88);
  border-color: #00e5ff;
  box-shadow: 0 0 12px #00e5ff66, 0 0 24px #ff008033;
  transform: scale(1.25);
}

.mission-canvas { margin-left: 48px; position: relative; z-index: 5; }

.narrative-section {
  min-height: 100vh;
  padding: 8vh clamp(18px, 4vw, 72px);
  position: relative;
  display: flex;
  align-items: center;
}

.opening { min-height: 112vh; }
.closing { min-height: 100vh; padding-bottom: 12vh; }

.watermark {
  position: absolute;
  left: 4vw;
  top: 9vh;
  font-family: "Exo 2", sans-serif;
  font-size: 15vw;
  font-weight: 200;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.03);
  line-height: .8;
  pointer-events: none;
  white-space: nowrap;
}

.module-grid {
  width: 100%;
  min-height: 76vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(72px, auto);
  gap: 2px;
  position: relative;
}

.module {
  position: relative;
  overflow: hidden;
  background: rgba(8, 8, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid #00e5ff22;
  box-shadow: 0 0 4px #00e5ff33, 1px 0 12px #ff00801f, -1px 0 12px #00ff8818;
}

.module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #00e5ff11 0 1px, transparent 1px 3px, #ff008011 3px 4px, transparent 4px 6px);
  opacity: .55;
  pointer-events: none;
  animation: interference 12s linear infinite;
}

.module::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 0 35%, #00e5ff18 45%, #ff008014 48%, #00ff8812 52%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
}

.module:hover::after { transform: translateX(120%); }

.briefing {
  padding: clamp(24px, 4vw, 56px);
  border-left: 2px solid #00e5ff44;
}

.signal {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  background: linear-gradient(135deg, rgba(0,229,255,0.04), rgba(255,0,128,0.04), rgba(0,255,136,0.03), rgba(0,229,255,0.04));
  background-size: 300% 300%;
  animation: shimmer 8s ease-in-out infinite;
}

.signal strong {
  display: block;
  margin: 20px 0 10px;
  font: 400 clamp(1.5rem, 4vw, 3.2rem)/.9 "IBM Plex Mono", monospace;
  color: #00ff88;
  letter-spacing: .05em;
  text-shadow: 0 0 18px #00ff8844;
}

.signal p, .briefing p {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  max-width: 54ch;
  color: #c8d6e5;
  font-size: 16px;
  line-height: 1.75;
}

.signal p { font-size: 13px; line-height: 1.5; }

.protocol, .data-label, .terminal-line {
  position: relative;
  z-index: 1;
  font: 400 13px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  color: #00ff88;
  text-transform: uppercase;
}

h1, h2, h3 {
  position: relative;
  z-index: 1;
  margin: .28em 0 .36em;
  font-family: "Albert Sans", Inter, system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #00e5ff;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

h1, h2 { font-size: clamp(2rem, 4.5vw, 4.5rem); line-height: .98; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.6rem); line-height: 1.04; }

.terminal-line { color: #ff0080; margin-top: 24px !important; }

.void-space {
  position: relative;
  min-height: 190px;
  border: 1px solid #ffffff08;
  background: rgba(8, 8, 18, 0.24);
  box-shadow: inset 0 0 28px #00e5ff08, 0 0 4px #00e5ff22;
  overflow: hidden;
}

.void-space::before {
  content: "CLASSIFIED VOID";
  position: absolute;
  left: 16px;
  bottom: 14px;
  font: 400 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .28em;
  color: #ffffff18;
}

.void-space svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  fill: none;
  stroke: #00e5ff22;
  stroke-width: 1;
  filter: drop-shadow(0 0 10px #00e5ff33);
  animation: rotateWire 70s linear infinite;
}

.void-space circle { fill: #00ff8844; stroke: #00ff88; }

.reticle {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity .2s ease .2s;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: #00e5ff99; }
.reticle::before { width: 12px; height: 1px; top: 5px; left: 0; }
.reticle::after { width: 1px; height: 12px; left: 5px; top: 0; }
.r1 { left: 14px; top: 14px; } .r2 { right: 14px; top: 14px; } .r3 { left: 14px; bottom: 14px; } .r4 { right: 14px; bottom: 14px; }
.is-visible .reticle { opacity: 1; }

.reveal {
  filter: blur(8px);
  opacity: .3;
  transform: scale(1.02);
  transition: filter .6s cubic-bezier(0.16, 1, 0.3, 1), opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { filter: blur(0); opacity: 1; transform: scale(1); }

.grid-opening .panel-large { grid-column: 1 / span 6; grid-row: 1 / span 4; }
.grid-opening .signal { grid-column: 8 / span 2; grid-row: 2 / span 2; }
.grid-opening .botanical { grid-column: 10 / span 3; grid-row: 1 / span 3; }
.grid-opening .tall { grid-column: 7 / span 3; grid-row: 5 / span 3; }

.grid-protocol .briefing { grid-column: 2 / span 5; grid-row: 1 / span 4; }
.grid-protocol .signal:nth-of-type(1) { grid-column: 8 / span 2; grid-row: 1 / span 2; }
.grid-protocol .signal:nth-of-type(2) { grid-column: 10 / span 2; grid-row: 3 / span 2; }
.grid-protocol .compact { grid-column: 7 / span 4; grid-row: 5 / span 3; }
.grid-protocol .river { grid-column: 1 / span 3; grid-row: 6 / span 2; }

.grid-accord .signal:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.grid-accord .panel-wide { grid-column: 4 / span 6; grid-row: 1 / span 5; }
.grid-accord .neural { grid-column: 10 / span 3; grid-row: 2 / span 3; }
.grid-accord .tall { grid-column: 2 / span 2; grid-row: 4 / span 3; }

.grid-continuum .briefing:first-child { grid-column: 1 / span 5; grid-row: 1 / span 4; }
.grid-continuum .compact { grid-column: 7 / span 4; grid-row: 2 / span 3; }
.grid-continuum .signal:nth-of-type(1) { grid-column: 11 / span 2; grid-row: 1 / span 2; }
.grid-continuum .signal:nth-of-type(2) { grid-column: 6 / span 2; grid-row: 5 / span 2; }
.grid-continuum .leaf { grid-column: 9 / span 4; grid-row: 6 / span 3; }

.grid-closure .panel-large { grid-column: 2 / span 6; grid-row: 1 / span 4; }
.grid-closure .signal { grid-column: 9 / span 2; grid-row: 2 / span 2; }
.grid-closure .tall { grid-column: 10 / span 3; grid-row: 5 / span 3; }

.glitch-section {
  min-height: 60vh;
  position: relative;
  display: grid;
  place-items: center;
  margin-left: 48px;
  background: linear-gradient(180deg, transparent, #08081280 28%, #08081280 70%, transparent);
  overflow: hidden;
}

.glitch-section.thin { min-height: 44vh; }

.glitch-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 48px, #00e5ff0c 49px 50px), repeating-linear-gradient(0deg, #ff00800c 0 1px, transparent 1px 7px);
}

.glitch-wrap { position: relative; width: min(84vw, 1100px); height: 260px; display: grid; place-items: center; text-align: center; }
.glitch-wrap p { margin: -20px auto 0; max-width: 52ch; color: #c8d6e5; line-height: 1.75; }
.glitch-text {
  position: relative;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(4rem, 14vw, 13rem);
  font-weight: 200;
  letter-spacing: .12em;
  margin: 0;
  color: #ffffff08;
  text-shadow: 2px 0 #00e5ff, -2px 0 #ff0080, 0 0 28px #00ff8833;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: .74;
}
.glitch-text::before { color: #00e5ff; transform: translate(-3px, -1px); clip-path: inset(12% 0 62% 0); }
.glitch-text::after { color: #ff0080; transform: translate(3px, 1px); clip-path: inset(58% 0 15% 0); }
.glitch-wrap.glitch-on .glitch-text, .glitch-wrap.glitch-on .glitch-text::before, .glitch-wrap.glitch-on .glitch-text::after { animation: glitch 400ms steps(1, end) 1; }

@keyframes scanDrift { to { background-position: 0 120px, 0 0, 0 0; } }
@keyframes interference { to { transform: translateY(36px); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes rotateWire { to { transform: rotate(1.4deg); } }
@keyframes glitch {
  0% { clip-path: inset(2px 0 94px 0); transform: translate(0); }
  10% { clip-path: inset(44px 0 22px 0); transform: translate(14px, -2px); }
  20% { clip-path: inset(12px 0 78px 0); transform: translate(-18px, 1px); }
  30% { clip-path: inset(82px 0 8px 0); transform: translate(7px, 0); }
  40% { clip-path: inset(28px 0 52px 0); transform: translate(-5px, 2px); }
  50% { clip-path: inset(64px 0 18px 0); transform: translate(20px, -1px); }
  60% { clip-path: inset(6px 0 88px 0); transform: translate(-12px, 1px); }
  70% { clip-path: inset(48px 0 30px 0); transform: translate(5px, -3px); }
  80% { clip-path: inset(16px 0 72px 0); transform: translate(-20px, 0); }
  90% { clip-path: inset(70px 0 10px 0); transform: translate(10px, 2px); }
  100% { clip-path: inset(0); transform: translate(0); }
}

@media (max-width: 768px) {
  .mission-canvas { margin-left: 48px; }
  .narrative-section { padding: 6vh 14px; align-items: start; }
  .module-grid { grid-template-columns: 1fr; grid-auto-rows: auto; min-height: auto; }
  .module, .void-space, .grid-opening .panel-large, .grid-opening .signal, .grid-opening .botanical, .grid-opening .tall,
  .grid-protocol .briefing, .grid-protocol .signal:nth-of-type(1), .grid-protocol .signal:nth-of-type(2), .grid-protocol .compact, .grid-protocol .river,
  .grid-accord .signal:first-child, .grid-accord .panel-wide, .grid-accord .neural, .grid-accord .tall,
  .grid-continuum .briefing:first-child, .grid-continuum .compact, .grid-continuum .signal:nth-of-type(1), .grid-continuum .signal:nth-of-type(2), .grid-continuum .leaf,
  .grid-closure .panel-large, .grid-closure .signal, .grid-closure .tall { grid-column: 1; grid-row: auto; }
  .watermark { font-size: 18vw; left: 12px; top: 3vh; }
  .briefing { padding: 24px; }
  .glitch-section { margin-left: 48px; }
}
