:root {
    /* Surface */
    --hero-background: #020108;
    --hero-overlay-color: #0d0d0d;

    /* Layer order */
    --hero-layer-scene: 0;
    --hero-layer-noise: 1;
    --hero-layer-gradient: 2;

    /* Bottom fade */
    --hero-bottom-fade-end: 0%;
    --hero-bottom-fade-start: 50%;

    /* Film grain */
    --hero-noise-opacity: 0.22;
    --hero-noise-size: 96px;
    --hero-noise-blend-mode: screen;
    --hero-noise-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.08' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cube-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    background: var(--hero-background);
}

.cube-hero canvas {
    position: relative;
    z-index: var(--hero-layer-scene);
    display: block;
    width: 100%;
    height: 100%;
}

.cube-hero .vignette {
    display: none;
}

.cube-hero .noise {
    position: absolute;
    inset: 0;
    z-index: var(--hero-layer-noise);
    pointer-events: none;
    opacity: var(--hero-noise-opacity);
    mix-blend-mode: var(--hero-noise-blend-mode);
    background-image: var(--hero-noise-image);
    background-size: var(--hero-noise-size);
}

.cube-hero .bottom-fade {
    position: absolute;
    inset: 0;
    z-index: var(--hero-layer-gradient);
    pointer-events: none;
    background: linear-gradient(
        to top,
        var(--hero-overlay-color) var(--hero-bottom-fade-end),
        rgb(13 13 13 / 0%) var(--hero-bottom-fade-start)
    );
}
