.color-bends-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-color-bends {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-color-bends canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-scroll-section {
    --hero-progress: 0;
    position: relative;
    margin-bottom: -24vh;
}

.hero-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
}

.hero-scroll-runway {
    height: 24vh;
    pointer-events: none;
}

.hero-scroll-content {
    transform:
        translate3d(0, calc(var(--hero-progress) * -90px), 0)
        scale(calc(1 - var(--hero-progress) * 0.06));
    opacity: calc(1 - var(--hero-progress) * 0.92);
    filter: blur(calc(var(--hero-progress) * 5px));
    will-change: transform, opacity, filter;
}

.hero-scroll-bg {
    transform: scale(calc(1 + var(--hero-progress) * 0.14));
    opacity: calc(1 - var(--hero-progress) * 0.35);
    will-change: transform, opacity;
}

.hero-scroll-overlay {
    opacity: calc(1 - var(--hero-progress) * 0.25);
}

.hero-scroll-grid {
    opacity: calc(0.15 * (1 - var(--hero-progress)));
}

.hero-scroll-indicator {
    opacity: calc(1 - var(--hero-progress) * 1.4);
    transform: translateX(-50%) translateY(calc(var(--hero-progress) * 24px));
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-section {
        margin-bottom: 0;
    }

    .hero-scroll-runway {
        display: none;
    }

    .hero-scroll-sticky {
        position: relative;
        height: auto;
        min-height: 100vh;
    }

    .hero-scroll-content,
    .hero-scroll-bg,
    .hero-scroll-overlay,
    .hero-scroll-grid,
    .hero-scroll-indicator {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

.hero-color-bends-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(245, 242, 237, 0.42) 0%, rgba(245, 242, 237, 0.12) 50%, rgba(245, 242, 237, 0.02) 100%),
        linear-gradient(180deg, rgba(245, 242, 237, 0.28) 0%, rgba(245, 242, 237, 0.08) 50%, rgba(245, 242, 237, 0.35) 100%);
}

html.dark .hero-color-bends-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(18, 18, 18, 0.5) 0%, rgba(18, 18, 18, 0.18) 50%, rgba(18, 18, 18, 0.04) 100%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.12) 50%, rgba(18, 18, 18, 0.55) 100%);
}
