body.season-halloween {
    --season-accent: #f47a1f;
}

.site-header.season-halloween {
    position: sticky;
    isolation: isolate;
    background: linear-gradient(135deg, #071126 0%, #101b3d 58%, #29130f 100%);
    border-bottom-color: #d8681c;
}

.site-header.season-halloween::before,
.site-header.season-halloween::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 91px;
    pointer-events: none;
}

.site-header.season-halloween::before {
    background-image: url('/assets/images/seasonal/halloween/header-desktop.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.site-header.season-halloween::after {
    background: linear-gradient(90deg, rgba(3,8,22,.2), rgba(3,8,22,.48) 30%, rgba(3,8,22,.38) 72%, rgba(3,8,22,.12));
}

.site-header.season-halloween .header-row {
    position: relative;
    z-index: 1;
}

.site-header.season-halloween .nav-cta {
    box-shadow: 0 0 0 1px rgba(255,177,90,.22), 0 3px 10px rgba(8,3,1,.28);
}

.seasonal-atmosphere {
    position: fixed;
    z-index: 2;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    contain: strict;
    pointer-events: none;
}

.seasonal-float {
    position: absolute;
    top: -12vh;
    left: var(--season-left);
    width: var(--season-size);
    height: var(--season-size);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: halloween-drift var(--season-duration) linear var(--season-delay) infinite;
    transform: translate3d(0,-12vh,0) rotate(0deg);
}

.seasonal-leaf-a { --season-left: 7%; --season-size: 28px; --season-duration: 22s; --season-delay: -6s; background-image: url('/assets/images/seasonal/halloween/leaf-01.svg'); }
.seasonal-leaf-b { --season-left: 31%; --season-size: 22px; --season-duration: 27s; --season-delay: -18s; background-image: url('/assets/images/seasonal/halloween/leaf-02.svg'); }
.seasonal-leaf-c { --season-left: 66%; --season-size: 25px; --season-duration: 25s; --season-delay: -11s; background-image: url('/assets/images/seasonal/halloween/leaf-01.svg'); }
.seasonal-leaf-d { --season-left: 88%; --season-size: 19px; --season-duration: 29s; --season-delay: -23s; background-image: url('/assets/images/seasonal/halloween/leaf-02.svg'); }
.seasonal-leaf-e { --season-left: 18%; --season-size: 18px; --season-duration: 30s; --season-delay: -26s; background-image: url('/assets/images/seasonal/halloween/leaf-02.svg'); }
.seasonal-leaf-f { --season-left: 45%; --season-size: 30px; --season-duration: 24s; --season-delay: -15s; background-image: url('/assets/images/seasonal/halloween/leaf-01.svg'); }
.seasonal-leaf-g { --season-left: 76%; --season-size: 21px; --season-duration: 32s; --season-delay: -8s; background-image: url('/assets/images/seasonal/halloween/leaf-02.svg'); }
.seasonal-leaf-h { --season-left: 95%; --season-size: 26px; --season-duration: 26s; --season-delay: -20s; background-image: url('/assets/images/seasonal/halloween/leaf-01.svg'); }

.seasonal-bat {
    position: absolute;
    left: -140px;
    background: url('/assets/images/seasonal/halloween/bat.svg') center/contain no-repeat;
    opacity: 0;
    animation: halloween-bat var(--bat-duration) linear var(--bat-delay) infinite;
}

.seasonal-bat-a { top: 18vh; width: 74px; height: 34px; --bat-duration: 34s; --bat-delay: -7s; }
.seasonal-bat-b { top: 39vh; width: 58px; height: 28px; --bat-duration: 41s; --bat-delay: -27s; }

@keyframes halloween-drift {
    0% { opacity: 0; transform: translate3d(0,-12vh,0) rotate(0deg); }
    8% { opacity: .34; }
    86% { opacity: .28; }
    100% { opacity: 0; transform: translate3d(11vw,116vh,0) rotate(520deg); }
}

@keyframes halloween-bat {
    0%, 72% { opacity: 0; transform: translate3d(0,0,0) scale(.8); }
    76% { opacity: .2; }
    96% { opacity: .16; }
    100% { opacity: 0; transform: translate3d(calc(100vw + 280px),-10vh,0) scale(1); }
}

@media (max-width: 1180px) {
    .site-header.season-halloween::before,
    .site-header.season-halloween::after {
        height: 71px;
    }

    .site-header.season-halloween::before {
        background-image: url('/assets/images/seasonal/halloween/header-mobile.webp');
    }

    .site-header.season-halloween .header-nav-area.mobile-open {
        background: linear-gradient(180deg, rgba(7,17,38,.97), rgba(19,16,35,.98));
        border-radius: 0 0 12px 12px;
    }

    .seasonal-bat-b { display: none; }
}

@media (max-width: 600px) {
    .seasonal-leaf-b,
    .seasonal-leaf-d,
    .seasonal-leaf-f { display: none; }
    .seasonal-bat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .seasonal-atmosphere { display: none; }
}
