.th-hero.th-hero-carousel {
    position: relative;
    display: block;
    min-height: 620px;
    height: min(720px, calc(100svh - 64px));
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #0a1d37;
}

.th-hero-carousel::before {
    display: none;
}

.th-hero-slides,
.th-hero-slide,
.th-hero-background,
.th-hero-shade {
    position: absolute;
    inset: 0;
}

.th-hero-slides {
    overflow: hidden;
}

.th-hero-slide {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
}

.th-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.th-hero-background {
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 64px);
    object-fit: cover;
    object-position: center top;
    transform: none;
}

.th-hero-slide.is-active .th-hero-background {
    transform: none;
}

.th-hero-shade {
    background:
        linear-gradient(90deg, rgba(5, 18, 38, .94) 0%, rgba(5, 18, 38, .81) 43%, rgba(5, 18, 38, .35) 100%),
        linear-gradient(0deg, rgba(5, 18, 38, .45), transparent 55%);
}

.th-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    align-items: center;
    padding: 70px 0 120px;
}

.th-hero-copy {
    max-width: 720px;
    color: #fff;
    opacity: 0;
    transform: none;
    transition: opacity .45s ease .12s;
}

.th-hero-slide.is-active .th-hero-copy {
    opacity: 1;
    transform: none;
}

.th-hero-carousel .th-eyebrow {
    margin-bottom: 20px;
    color: #62e7d4;
    font-size: 11px;
    letter-spacing: .17em;
}

.th-hero-carousel h1,
.th-hero-carousel h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(43px, 5.4vw, 70px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.06;
}

.th-hero-carousel h1 span,
.th-hero-carousel h2 span {
    display: block;
    color: #45dec8;
}

.th-hero-carousel .th-lede {
    max-width: 620px;
    margin-top: 22px;
    color: rgba(244, 249, 255, .86);
    font-size: 16px;
    line-height: 1.75;
}

.th-hero-carousel .th-actions {
    margin-top: 29px;
}

.th-hero-carousel .th-button {
    min-height: 49px;
    border-color: #1268e9;
    border-radius: 7px;
    background: #1268e9;
    box-shadow: 0 10px 24px rgba(4, 61, 141, .25);
}

.th-hero-carousel .th-button:hover,
.th-hero-carousel .th-button:focus {
    border-color: #00bba7;
    background: #00a995;
}

.th-hero-carousel .th-button-light {
    border-color: rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.th-hero-carousel .th-button-light:hover,
.th-hero-carousel .th-button-light:focus {
    border-color: #45dec8;
    background: rgba(0, 187, 167, .18);
    color: #fff !important;
}

.th-hero-carousel .th-product-line {
    gap: 8px;
    margin-top: 26px;
    color: #f2f7fd;
}

.th-hero-carousel .th-product-line span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(7, 27, 52, .33);
    color: rgba(245, 250, 255, .88);
    font-size: 9px;
    letter-spacing: .1em;
    backdrop-filter: blur(8px);
}

.th-hero-controls {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 27px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    color: #fff;
}

.th-hero-controls[hidden] {
    display: none;
}

.th-hero-count {
    min-width: 54px;
    color: rgba(235, 244, 254, .7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.th-hero-count strong {
    color: #45dec8;
}

.th-hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .48);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.th-hero-dot.is-active {
    width: 27px;
    background: #45dec8;
}

.th-hero-control-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.th-hero-control,
.th-hero-pause {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 6px;
    background: rgba(7, 27, 52, .28);
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.th-hero-pause {
    min-width: 64px;
}

.th-hero-control:hover,
.th-hero-control:focus-visible,
.th-hero-pause:hover,
.th-hero-pause:focus-visible {
    border-color: #45dec8;
    background: rgba(0, 187, 167, .2);
}

.th-hero-dot:focus-visible,
.th-hero-control:focus-visible,
.th-hero-pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .th-hero.th-hero-carousel {
        min-height: 700px;
        height: min(760px, calc(100svh - 58px));
    }

    .th-hero-shade {
        background:
            linear-gradient(90deg, rgba(5, 18, 38, .9), rgba(5, 18, 38, .58)),
            linear-gradient(0deg, rgba(5, 18, 38, .58), transparent 70%);
    }

    .th-hero-inner {
        align-items: flex-start;
        padding-top: 82px;
        padding-bottom: 145px;
    }

    .th-hero-carousel h1,
    .th-hero-carousel h2 {
        font-size: clamp(39px, 10vw, 56px);
    }

    .th-hero-carousel .th-lede {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.7;
    }

    .th-hero-carousel .th-actions {
        gap: 8px;
        margin-top: 24px;
    }

    .th-hero-carousel .th-button {
        min-height: 45px;
        padding: 0 14px;
        font-size: 12px;
    }

    .th-hero-controls {
        bottom: 20px;
        flex-wrap: wrap;
        gap: 13px;
    }

    .th-hero-control-actions {
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .th-hero-controls {
        gap: 10px;
    }

    .th-hero-count {
        min-width: 42px;
        font-size: 10px;
    }

    .th-hero-dots {
        gap: 6px;
    }

    .th-hero-dot {
        width: 7px;
        height: 7px;
    }

    .th-hero-dot.is-active {
        width: 20px;
    }

    .th-hero-pause {
        min-width: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-hero-slide,
    .th-hero-background,
    .th-hero-copy,
    .th-hero-dot {
        transition: none !important;
    }
}

/* Carousel finish: stronger legibility with the blue/teal brand language. */
.th-hero.th-hero-carousel {
    min-height: 600px;
    height: min(700px, calc(100svh - 64px));
    background: #174a58;
}

.th-hero-slide {
    transition: opacity .65s ease;
}

.th-hero-shade {
    background:
        linear-gradient(90deg, rgba(23, 74, 88, .66) 0%, rgba(23, 74, 88, .42) 42%, rgba(23, 74, 88, .1) 100%),
        linear-gradient(0deg, rgba(23, 74, 88, .22), transparent 58%);
}

.th-hero-inner { padding-top: 58px; padding-bottom: 122px; }
.th-hero-copy { max-width: 740px; }
.th-hero-carousel .th-eyebrow {
    margin-bottom: 14px;
    color: #71e2d3;
    font-size: 10px;
    letter-spacing: .18em;
}
.th-hero-carousel h1,
.th-hero-carousel h2 {
    max-width: 740px;
    font-size: clamp(40px, 4.8vw, 62px);
    font-weight: 740;
    letter-spacing: -.06em;
    line-height: 1.04;
}
.th-hero-carousel h1 span,
.th-hero-carousel h2 span { color: #65dfd0; }
.th-hero-carousel .th-lede {
    max-width: 590px;
    margin-top: 16px;
    color: rgba(241, 249, 250, .88);
    font-size: 14px;
    line-height: 1.7;
}
.th-hero-carousel .th-product-line { gap: 7px; margin-top: 20px; }
.th-hero-carousel .th-product-line span {
    padding: 6px 9px;
    border-color: rgba(180, 226, 228, .25);
    border-radius: 3px;
    background: rgba(9, 39, 54, .42);
    font-size: 8px;
    letter-spacing: .1em;
}
.th-hero-count strong { color: #71e2d3; }
.th-hero-dot.is-active { background: #65dfd0; }
.th-hero-control:hover,
.th-hero-control:focus-visible,
.th-hero-pause:hover,
.th-hero-pause:focus-visible {
    border-color: #65dfd0;
    background: rgba(8, 124, 131, .28);
}
.th-hero-dot:focus-visible,
.th-hero-control:focus-visible,
.th-hero-pause:focus-visible {
    outline-color: #71e2d3;
}

@media (max-width: 767px) {
    .th-hero.th-hero-carousel {
        min-height: 630px;
        height: min(700px, calc(100svh - 58px));
    }
    .th-hero-inner { padding-top: 64px; padding-bottom: 138px; }
    .th-hero-shade {
        background:
            linear-gradient(90deg, rgba(7, 29, 43, .93), rgba(7, 29, 43, .67)),
            linear-gradient(0deg, rgba(7, 29, 43, .66), transparent 72%);
    }
    .th-hero-carousel h1,
    .th-hero-carousel h2 {
        font-size: clamp(36px, 9vw, 46px);
        line-height: 1.03;
    }
    .th-hero-carousel .th-lede { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .th-hero-background { transform: none !important; }
}

@media (max-width: 767px) {
    .th-hero.th-hero-carousel {
        min-height: 600px;
        height: min(700px, calc(100svh - 64px));
    }

    .th-hero-background {
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(100% - 64px);
        object-fit: cover;
        object-position: center top;
    }

    .th-hero-shade {
        background:
            linear-gradient(90deg, rgba(23, 74, 88, .68) 0%, rgba(23, 74, 88, .42) 48%, rgba(23, 74, 88, .12) 100%),
            linear-gradient(0deg, rgba(23, 74, 88, .24), transparent 58%);
    }

    .th-hero-inner {
        height: 100%;
        min-height: 100%;
        align-items: center;
        padding: 70px 0 110px;
    }

    .th-hero-copy {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
    }

    .th-hero-carousel .th-product-line {
        flex-wrap: wrap;
    }

    .th-hero-carousel h1,
    .th-hero-carousel h2 {
        font-size: clamp(32px, 8.5vw, 42px);
    }

    .th-hero-controls {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .th-hero.th-hero-carousel {
        min-height: 700px;
    }

    .th-hero-background {
        top: 64px;
        bottom: auto;
        height: min(56.25vw, 42svh);
        object-fit: contain;
        object-position: center top;
    }

    .th-hero-shade {
        background:
            linear-gradient(180deg, rgba(23, 74, 88, .02) 0%, rgba(23, 74, 88, .04) 25%, rgba(23, 74, 88, .34) 43%, rgba(23, 74, 88, .74) 58%, #174a58 100%);
    }

    .th-hero-inner {
        padding: calc(64px + min(56.25vw, 42svh) + 18px) 0 112px;
    }
}
