/**
 * Shared background behind all front-page sections (markup in front-page.php).
 * One video for the whole page; the overlay is off on the hero and on elsewhere. The sections that used to
 * carry their own video + overlay are see-through, so their content changes over a background that stays.
 */
.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #020319;
    pointer-events: none;
}

.site-backdrop-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Same gradient as the old per-section .section-gradient-overlay */
.site-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 25%,
        rgba(255, 255, 255, 0) 0%,
        rgba(12, 14, 43, 1) 50%,
        rgba(2, 3, 25, 1) 100%);
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-jm-section]:not([data-jm-section="hero"]) .site-backdrop-overlay {
    opacity: 0.9;
}

/* Hero and footer keep their own video: their colour-dodge glows only blend with layers inside their section */
.site-main > .portfolio-section,
.site-main > .team-section,
.site-main > .testimonials-section,
.site-main > .publications-section,
.site-main > .contact-section {
    background: transparent;
}
