/* BIASlab animated factor-graph hero
   ----------------------------------------------------------------
   Single unified hero: canvas fills the whole block (Gaussians &
   graph underneath), title+subtitle overlaid at the TOP of the hero
   where the canvas is empty (the factor graph starts ~1/3 down),
   so text never clashes with nodes.
*/

.biaslab-hero {
  /* palette — locked dark in both site themes */
  --hero-bg-b: #0f1230;
  --hero-edge: rgba(255, 255, 255, 0.20);
  --hero-node-fill: rgba(20, 24, 50, 0.88);
  --hero-node-stroke: rgba(255, 255, 255, 0.55);
  --hero-node-text: rgba(255, 255, 255, 0.96);
  --hero-node-glow: rgba(77, 208, 225, 0.22);
  --hero-bump-alpha: 0.12;
  --hero-ripple: rgba(122, 252, 255, 0.70);
  --hero-bumps: #4dd0e1, #ff6b6b, #ffd166, #b388ff, #7afcff;

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(420px, 62vh, 620px);
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg-b);
}

.biaslab-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Title/subtitle overlay pinned to the TOP of the hero, not centered,
   so they sit in the empty airspace above the factor-graph rows. */
.biaslab-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem 0;
  pointer-events: none;
}

.biaslab-hero__title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.01em;
  max-width: 60rem;
  text-shadow: 0 2px 20px rgba(6, 8, 32, 0.55);
}

.biaslab-hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 62rem;
  margin: 0;
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(6, 8, 32, 0.55);
}

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