/* hero-3d.css — layer styles for the ambient Three.js hero background.
 * Add AFTER layout.css. Changes nothing else: no text, layout, photo,
 * animation or colour changes elsewhere on the page.
 */

.hero {
  position: relative;
  overflow: hidden;
}

/* WebGL canvas: sits above the dotted grid, below all hero content. */
#hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  /* Fade the effect out towards the bottom, like the existing grid. */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
}

/* Keep the dotted grid visible faintly behind the canvas. */
.hero-grid {
  z-index: -1;
}

/* Hero content must sit above the canvas. */
.hero .container.hero-layout,
.hero .scroll-cue {
  position: relative;
  z-index: 1;
}

/* If WebGL is unavailable the canvas stays empty — no layout shift. */
