/* Careers hero: depth + restrained motion (KofC palette) */
#careers-hero .careers-hero-glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: min(90vw, 720px);
    height: min(90vw, 720px);
    transform: translate(-20%, -50%);
    background: #112866;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.65;
    pointer-events: none;
    mix-blend-mode: screen;
}
#careers-hero .careers-hero-glow-tr {
    left: auto;
    right: 0;
    transform: translate(25%, -35%);
    opacity: 0.35;
}
#careers-hero .careers-hero-shine {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(246, 182, 25, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(17, 40, 102, 0.45), transparent 50%);
    pointer-events: none;
}
#careers-hero .careers-hero-line {
    width: 4rem;
    height: 4px;
    background: linear-gradient(90deg, #f6b619, rgba(246, 182, 25, 0.35));
    border-radius: 2px;
    box-shadow: 0 0 24px rgba(246, 182, 25, 0.45);
}
#careers-hero .careers-hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}
#careers-hero .careers-hero-visual {
    box-shadow:
        0 0 0 1px rgba(246, 182, 25, 0.25),
        0 28px 60px -20px rgba(0, 0, 0, 0.55);
}
#careers-hero .careers-hero-in {
    opacity: 0;
    transform: translateY(18px);
    animation: careers-hero-in 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
#careers-hero .careers-hero-in:nth-child(1) {
    animation-delay: 0.06s;
}
#careers-hero .careers-hero-in:nth-child(2) {
    animation-delay: 0.14s;
}
#careers-hero .careers-hero-in:nth-child(3) {
    animation-delay: 0.22s;
}
#careers-hero .careers-hero-in:nth-child(4) {
    animation-delay: 0.3s;
}
#careers-hero .careers-hero-in:nth-child(5) {
    animation-delay: 0.38s;
}
#careers-hero .careers-hero-in:nth-child(6) {
    animation-delay: 0.46s;
}
#careers-hero .careers-hero-visual-wrap {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    animation: careers-hero-visual-in 1s cubic-bezier(0.25, 1, 0.5, 1) 0.12s forwards;
}
@keyframes careers-hero-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes careers-hero-visual-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    #careers-hero .careers-hero-in,
    #careers-hero .careers-hero-visual-wrap {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

#hero-video-popup::backdrop {
    background: radial-gradient(circle at 50% 20%, rgba(26, 54, 128, 0.42), rgba(4, 12, 35, 0.84));
    backdrop-filter: blur(6px);
}

#hero-video-popup {
    width: min(94vw, 1080px);
    max-width: none;
}

#hero-video-popup .hero-video-popup__panel {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, rgba(12, 39, 105, 0.98), rgba(7, 25, 72, 0.98));
    box-shadow: 0 32px 70px -28px rgba(0, 0, 0, 0.65);
    padding: 0.9rem;
}

#hero-video-popup .hero-video-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.45rem 0.45rem 0.8rem;
}

#hero-video-popup .hero-video-popup__eyebrow {
    margin: 0 0 0.35rem;
    color: rgba(246, 182, 25, 0.95);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#hero-video-popup .hero-video-popup__close {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#hero-video-popup .hero-video-popup__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(246, 182, 25, 0.6);
    transform: translateY(-1px);
}

#hero-video-popup .hero-video-popup__close:focus-visible {
    outline: 2px solid #f6b619;
    outline-offset: 2px;
}

#hero-video-popup .hero-video-popup__video {
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    #hero-video-popup {
        width: min(96vw, 1080px);
    }

    #hero-video-popup .hero-video-popup__panel {
        padding: 0.7rem;
        border-radius: 16px;
    }

    #hero-video-popup .hero-video-popup__header {
        padding: 0.35rem 0.35rem 0.65rem;
    }
}
