.studio-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #fff, var(--studio-accent-wash));
}
.studio-background-contours,
.studio-background-highlight {
    position: absolute;
    inset: 0;
}
.studio-background-contours,
.studio-background-highlight::after {
    background: var(--studio-accent-color);
    mask: url('/images/studio-contours.svg') repeat;
    mask-size: 1200px 900px;
}
.studio-background-contours { opacity: .055; }
.studio-background-highlight {
    opacity: 0;
    background: radial-gradient(circle 240px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%), color-mix(in srgb, var(--studio-accent-color) 4.5%, transparent), transparent);
    transition: opacity .3s ease;
}
.studio-background-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    clip-path: circle(190px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%));
    /* Fade the highlighted contour lines smoothly at the spotlight edge. */
    background: radial-gradient(circle 190px at var(--studio-pointer-x, 50%) var(--studio-pointer-y, 50%), var(--studio-accent-color), transparent);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .studio-background.is-pointer-active .studio-background-highlight { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-background-highlight { display: none; transition: none; }
}
@media print {
    .studio-background { display: none; }
}
