/* Hero background: canvas animation from js/custom/hero-field.js */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}
.hero-field canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Vignette for depth + darker top so the header stays readable */
.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 18%),
    linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.6) 24%, rgba(5, 5, 5, 0) 50%),
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(5, 5, 5, 0) 45%, rgba(5, 5, 5, 0.7) 100%);
}
.hero-section > .hero-overlay {
  position: relative;
  z-index: 1;
}

/* Spotlight hand-over (js/custom/hero-spotlight.js sets --hero-flood 0..1 on scroll):
   drop the dark vignette and fade the hero copy as the screen floods white. */
.hero-field::after { opacity: calc(1 - var(--hero-wash, 0)); }
.hero-section > .hero-overlay { opacity: calc(1 - var(--hero-flood, 0) * 1.6); }
/* Webflow's overlay darkens the bottom 30% of the hero; drop it as fast as the vignette. */
.hero-section > .hero-overlay {
  background-image: linear-gradient(rgba(0, 0, 0, 0) 69%, rgba(0, 0, 0, calc(0.99 * (1 - var(--hero-wash, 0)))));
}
