/* METREAL VOL.2 — hero3d.css
 * Owns: .hero-3d (the three.js canvas inserted by js/hero3d.js) and .hero.has-3d overrides.
 * Tokens come from style.css. Layout of the hero content is untouched.
 */

.hero-3d {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
  background: var(--bg, #07080c);
  backface-visibility: hidden;
}

/* scroll ride: js/hero3d.js adds .is-pin to the wrapper and sets --hero-ride.
   The hero sticks to the top while the extra height scrolls by; the camera walks to the booth
   and the LED wall turns into the overview screen. Without WebGL nothing here applies. */
.hero-stage { position: relative; }
.hero-stage.is-pin { height: calc(100svh + var(--hero-ride, 200vh)); }
.hero-stage.is-pin .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }

/* the 2D smoke canvas and its no-GL gradient give way to the diorama */
.hero.has-3d .hero-canvas { display: none; }
.hero.has-3d.hero--nogl { background: var(--bg, #07080c); }

@media print {
  .hero-3d { display: none !important; }
}
