Media and overlay layers
The image or video forms the back layer, the gradient occupies a separate layer above it, and the heading, supporting copy, and CTAs remain in the foreground. Gradient direction, color stops, and transparency determine which regions receive extra shading. Keeping these layers distinct lets the overlay improve local readability without fading the text or applying one uniform opacity value to the entire hero.