/* Soft pools of the footer palette, inside the existing animated circle. */
:where(.bp-animate-gradient),
.bpj-scroll-hero[data-circle-fill="gradient"] .bpjh-disc {
    --bp-gradient-base-layer: linear-gradient(120deg,
        color-mix(in srgb,var(--bpjh-gradient-base,var(--bg-light-2)) 90%,transparent),
        color-mix(in srgb,var(--bpjh-gradient-fade,var(--bg-light-3)) 90%,transparent));
    background-image:
        radial-gradient(ellipse at 15% 40%, var(--bpjh-gradient-glow,var(--accent)), transparent 56%),
        radial-gradient(ellipse at 95% 78%, var(--bpjh-gradient-highlight,var(--tertiary)), transparent 48%),
        var(--bp-gradient-base-layer);
}

@media (prefers-reduced-motion: no-preference) {
    :where(.bp-animate-gradient),
    .bpj-scroll-hero[data-circle-fill="gradient"] .bpjh-disc:where(.bp-animate-gradient) {
        background-image:
            radial-gradient(ellipse 34% 44% at center, var(--bpjh-gradient-glow,var(--accent)) 18%, transparent),
            radial-gradient(ellipse 32% 42% at center, var(--bpjh-gradient-highlight,var(--tertiary)) 16%, transparent),
            var(--bp-gradient-base-layer);
    }
    .bp-animate-gradient {
        animation: bp-gradient-drift 10s cubic-bezier(.36,.14,.64,.86) infinite;
    }
    .bpj-scroll-hero.is-offscreen .bp-animate-gradient { animation-play-state: paused; }

    /* The focal points cross on opposite sides of the centre; the circle itself stays in place. */
    @keyframes bp-gradient-drift {
        0%, 100% {
            background-size: 184% 164%, 180% 170%, 130% 130%;
            background-position: 87% 65%, 18% 35%, 0% 50%;
        }
        25%      { background-position: 48% 100%, 68% 0%, 50% 0%; }
        50%      { background-position: 8% 30%, 96% 69%, 100% 50%; }
        75%      { background-position: 55% 0%, 45% 100%, 50% 100%; }
    }
}
