/* Home hero — rotating HD slides with Ken Burns */

.hero {
    position: relative;
    min-height: 620px;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #12306f;
    isolation: isolate;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a276e;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-leaving {
    opacity: 1;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero-slide img,
.hero-slide-photo {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.03);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active img,
.hero-slide.is-active .hero-slide-photo {
    transform: scale(1);
    animation: sfHeroKenPan 5s ease-in-out 0.9s infinite alternate;
}

.hero-slide.is-leaving img,
.hero-slide.is-leaving .hero-slide-photo {
    transform: scale(1.02);
    animation: none;
}

.hero-copy-panels {
    display: grid;
    grid-template-areas: "heroCopyStack";
    align-items: start;
}

.hero-copy-panel {
    grid-area: heroCopyStack;
    opacity: 0;
    visibility: hidden;
    margin: 0;
    min-height: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-copy-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-copy-panel.is-active .script,
.hero-copy-panel.is-active h1,
.hero-copy-panel.is-active h2,
.hero-copy-panel.is-active p {
    animation: sfHeroLineIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy-panel.is-active .script { animation-delay: 0.04s; }
.hero-copy-panel.is-active h1 { animation-delay: 0.14s; }
.hero-copy-panel.is-active h2 { animation-delay: 0.26s; }
.hero-copy-panel.is-active p { animation-delay: 0.38s; }

@keyframes sfHeroLineIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
    background: #fff;
    transform: scale(1.15);
}

.hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Subtle zoom keeps edges (especially focal/right areas) sharp on HD assets */
@keyframes sfHeroKenPan {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.045);
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            100deg,
            rgba(4, 14, 42, 0.94) 0%,
            rgba(6, 22, 68, 0.88) 18%,
            rgba(8, 28, 82, 0.52) 36%,
            rgba(8, 28, 82, 0.12) 52%,
            rgba(8, 28, 82, 0) 64%
        ),
        linear-gradient(
            180deg,
            rgba(4, 14, 42, 0.2) 0%,
            rgba(4, 14, 42, 0) 26%,
            rgba(4, 14, 42, 0.28) 100%
        );
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero-copy {
    padding: 72px 0 168px;
    max-width: min(520px, 100%);
    position: relative;
    z-index: 2;
}

.hero h1.hero-headline--long {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}

@media (max-width: 719px) {
    .hero-copy {
        padding: 40px 0 140px;
        max-width: 100%;
    }
    .hero h1.hero-headline--long {
        font-size: clamp(21px, 5.8vw, 28px);
        line-height: 1.18;
    }
    .hero-dots {
        bottom: 96px;
    }
}

.hero-actions {
    position: relative;
    z-index: 1;
}

.hero-breathe-actions .btn-red,
.hero-breathe-actions .btn-watch {
    animation: sfelkBtnBreathe 5.4s ease-in-out infinite;
}

.hero-breathe-actions .btn-red {
    animation-delay: 0.1s;
}
.hero-breathe-actions .btn-watch {
    animation-delay: 0.55s;
}

.hero-breathe-actions .btn-red:hover,
.hero-breathe-actions .btn-watch:hover {
    animation-play-state: paused;
}

@media (min-width: 1020px) {
    .hero {
        min-height: 640px;
    }
}

@media (max-width: 719px) {
    .hero {
        min-height: 560px;
    }
    .hero-copy {
        padding-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide img {
        transition: none;
        animation: none;
        transform: none;
    }
    .hero-copy-panel,
    .hero-copy-panel.is-active .script,
    .hero-copy-panel.is-active h1,
    .hero-copy-panel.is-active h2,
    .hero-copy-panel.is-active p {
        animation: none;
        transform: none;
    }
    .hero-copy-panel.is-active .script,
    .hero-copy-panel.is-active h1,
    .hero-copy-panel.is-active h2,
    .hero-copy-panel.is-active p {
        opacity: 1;
    }
    .hero-breathe-actions .btn-red,
    .hero-breathe-actions .btn-watch {
        animation: none;
    }
}