.hero-video {
    background: #05070b;
    color-scheme: dark;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(44px + var(--header-height));
    padding-bottom: 96px;
    display: flex;
    flex-direction: column;
}

.hero-video .hero-bg {
    z-index: 0;
}

.hero-video .hero-stack,
.hero-video .main-container,
.hero-video .hero-marquee {
    position: relative;
    z-index: 1;
}

.hero-video .main-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-video .hero-stack {
    gap: 14px;
}

.hero-video .hero-title-center {
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1;
}

.hero-video .hero-description-center {
    margin-top: 2px;
    max-width: 720px;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.5;
}

.hero-video .hero-buttons-center {
    margin-top: 4px;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    --hero-slide-duration: 5200ms;
}

.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .9s cubic-bezier(.22, .61, .36, 1);
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 11, .18) 0%, transparent 36%, rgba(5, 7, 11, .16) 100%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: brightness(.78) contrast(1.08) saturate(1.12);
    transform: scale(1.04);
}

.hero-bg-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 11, .72) 0%, rgba(5, 7, 11, .42) 38%, rgba(5, 7, 11, .58) 72%, rgba(5, 7, 11, .92) 100%),
        radial-gradient(ellipse 80% 60% at 50% 45%, transparent 30%, rgba(5, 7, 11, .55) 100%);
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(0, 45, 255, .17) 0%, rgba(0, 45, 255, .08) 22%, transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, transparent 34%);
    mix-blend-mode: screen;
    opacity: .55;
    pointer-events: none;
}

.hero-carousel-status {
    position: absolute;
    top: calc(20px + var(--header-height));
    right: clamp(18px, 3.6vw, 36px);
    z-index: 1;
    width: min(360px, calc(100vw - 36px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(13, 17, 23, .34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
}

.hero-carousel-status-title {
    margin: 0 0 10px;
    color: rgba(235, 239, 247, .74);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-carousel-status-track {
    display: grid;
    gap: 8px;
}

.hero-carousel-pill {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    opacity: .44;
    transform: translateX(0);
    transition: opacity .35s ease, transform .35s ease, border-color .35s ease, background .35s ease;
}

.hero-carousel-pill.is-active {
    opacity: 1;
    transform: translateX(-2px);
    border-color: rgba(147, 197, 253, .24);
    background: rgba(255, 255, 255, .08);
}

.hero-carousel-pill-index {
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.hero-carousel-pill-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hero-carousel-pill-title {
    color: #f4f7fb;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
}

.hero-carousel-pill-bar {
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.hero-carousel-pill-bar::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #93c5fd 0%, #ffffff 100%);
}

.hero-carousel-pill.is-active .hero-carousel-pill-bar::before {
    animation: hero-slide-progress var(--hero-slide-duration) linear forwards;
}

@keyframes hero-slide-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hero-video .hero-bg-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-root) 100%);
}

.hero-video .hero-kicker {
    color: #e9eef7;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
}

.hero-video .hero-kicker .pulse-dot {
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
}

.hero-video .hero-title,
.hero-video .hero-title-center {
    color: #f4f7fb;
    text-shadow: 0 1px 24px rgba(0, 0, 0, .45);
}

.hero-video .hero-rotator-word {
    color: inherit;
}

.hero-video .hero-description,
.hero-video .hero-description-center {
    color: rgba(235, 239, 247, .86);
}

.hero-video .hero-stats-row {
    background: rgba(13, 17, 23, .46);
    border-color: rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.hero-video .hero-stat-item strong {
    color: #f4f7fb;
}

.hero-video .hero-stat-item span {
    color: rgba(235, 239, 247, .62);
}

.hero-video .hero-stat-item + .hero-stat-item::before {
    background: rgba(255, 255, 255, .12);
}

.hero-video .btn-secondary {
    background: rgba(255, 255, 255, .06);
    color: #f4f7fb;
    border-color: rgba(255, 255, 255, .22);
}

.hero-video .btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .34);
}

.hero-video .service-chip {
    background: rgba(255, 255, 255, .06);
    color: rgba(235, 239, 247, .86);
    border-color: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
}

.hero-video .hero-marquee {
    background: rgba(5, 7, 11, .55);
    border-color: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.hero-video .hero-marquee-item {
    color: rgba(235, 239, 247, .78);
}

.hero-video .hero-marquee-item::after {
    color: rgba(147, 197, 253, .55);
}

.hero-image {
    background: #05070b;
    color-scheme: dark;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(40px + var(--header-height));
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image .hero-bg {
    z-index: 0;
}

.hero-image .hero-stack,
.hero-image .main-container {
    position: relative;
    z-index: 1;
}

.hero-image .main-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image .hero-stack {
    gap: 16px;
}

.hero-image .hero-title-center {
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.04;
}

.hero-image .hero-tagline,
.hero-image .hero-tagline-center {
    margin: 0;
    color: rgba(235, 239, 247, .92);
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 760;
    letter-spacing: -.018em;
    line-height: 1.05;
    text-align: center;
    max-width: 720px;
}

.hero-image .hero-description-center {
    margin-top: 2px;
    max-width: 640px;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.55;
}

.hero-image .hero-buttons-center {
    margin-top: 8px;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-image .hero-bg-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-root) 100%);
}

.hero-image .hero-title,
.hero-image .hero-title-center {
    color: #f4f7fb;
    text-shadow: 0 1px 24px rgba(0, 0, 0, .45);
}

.hero-image .hero-description,
.hero-image .hero-description-center {
    color: rgba(235, 239, 247, .86);
}

@media (max-width: 720px) {
    .hero-bg-image {
        object-position: center 40%;
    }

    .hero-carousel-status {
        display: none;
    }

    .hero-bg-glow {
        opacity: .38;
    }
}
