/* CW-ARCADE — ATMOSPHERIC BACKGROUNDS
   Hex-grid technology canvas (leaderboards/competition) and aurora
   whisp field (recovery/research). Both are decorative, bounded to
   their own section, and never affect document flow/height. */

/* ---------- Hex background (leaderboards) ---------- */
.hex-stage {
  position: relative;
  background: var(--graphite-950);
  overflow: hidden;
}

.hex-stage__canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.hex-stage__canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex-stage__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--graphite-950) 0%,
    transparent 14%,
    transparent 86%,
    var(--graphite-950) 100%
  );
}

.hex-stage > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Pixel tunnel field (recovery / research) ----------
   Port of Codepen/Misc/3d pixel renderer (js/pixel-tunnel.js): a
   canvas 2D point-grid of undulating waves receding into the distance,
   with mouse parallax, recolored to brand cyan. Replaces this
   section's previous aurora-whisp treatment — one authoritative
   research-section backdrop. */
.tunnel-stage {
  position: relative;
  overflow: hidden;
}

.tunnel-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.tunnel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    var(--void) 0%,
    transparent 18%,
    transparent 82%,
    var(--void) 100%
  );
  pointer-events: none;
}

.tunnel-stage > .container {
  position: relative;
  z-index: 1;
}

.tunnel-stage .glass-scroller {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tunnel-canvas {
    display: none;
  }
}

/* ---------- Reflective light streaks (Who It's For) ----------
   Port of Codepen/"reflective canvas background" (js/audience-
   reflective.js): falling light streaks with a mirrored, blurred
   "wet floor" reflection baked in partway down, plus a bloom pass. */
.who-section {
  position: relative;
  overflow: hidden;
}

.who-reflective {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  /* Static dark backdrop + floor haze band, rendered once by the
     compositor instead of redrawn on canvas every frame — the canvas
     underneath only ever needs to paint the moving streaks/reflection
     and its bloom, not the whole section's base color each frame. */
  background:
    linear-gradient(
      180deg,
      rgba(0, 173, 252, 0) 44%,
      rgba(0, 173, 252, 0.16) 58%,
      rgba(124, 92, 255, 0.1) 66%,
      rgba(0, 173, 252, 0.03) 74%,
      rgba(0, 173, 252, 0) 84%
    ),
    radial-gradient(ellipse 85% 60% at 50% 46%, rgb(9, 13, 22) 0%, rgb(2, 3, 6) 100%);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.9) 12%,
    rgba(0, 0, 0, 0.9) 82%,
    transparent
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.9) 12%,
    rgba(0, 0, 0, 0.9) 82%,
    transparent
  );
}

.who-reflective canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.who-section > .container {
  position: relative;
  z-index: 1;
}
