/* Hero backdrop: a WebGL shader draws the glass (see hero-backdrop.js), so it is sharp at any size and
   never bands. The stylesheet only places it. If WebGL is unavailable the script switches to the still
   image in .hero-plate. The earlier raster glass stack stays on disk but is no longer shown. */
.hero .hero-trace {
  display: none !important;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gl {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-plate {
  display: none;
  position: absolute;
  inset: -5% -3%;
  width: 106%;
  height: 110%;
}

.hero-backdrop[data-fallback] .hero-gl {
  display: none;
}

.hero-backdrop[data-fallback] .hero-plate {
  display: block;
}

/* The hero is tall and narrow on phones, so cropping to its right edge would show only a sliver.
   Draw the artwork wider than the screen and anchor it behind the dart instead. */
@media (max-width: 700px) {
  .hero-backdrop {
    inset: auto -40vw 0 auto;
    width: 280vw;
    height: auto;
    aspect-ratio: 2000 / 667;
    mask-image: linear-gradient(to top, #000 62%, transparent);
  }
}
