.section-subpage-hero {
    --hero-background-image: none;
    --hero-mobile-background-image: var(--hero-background-image);
    --hero-overlay-rgb: 245 243 239;
    --hero-overlay-a1: .55;
    --hero-overlay-a2: .4125;
    --hero-overlay-a3: .22;
    --hero-overlay-a4: .066;
    position: relative;
    isolation: isolate;
    height: 280px;
    overflow: hidden;
    background-color: #f2f1ee;
    background-image: var(--hero-background-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-subpage-hero--support {
    --hero-background-image: url("/assets/images/banners/contact.png");
}

.section-subpage-hero--products {
    --hero-background-image: url("/assets/images/banners/product-list-hero.png");
}

.section-subpage-hero--technology {
    --hero-background-image: url("/assets/images/banners/product-list-hero2.png");
}

.section-subpage-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a1)) 0%,
        rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a2)) 25%,
        rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a3)) 42%,
        rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a4)) 55%,
        rgb(var(--hero-overlay-rgb) / 0%) 65%
    );
    content: "";
    pointer-events: none;
}

.section-subpage-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.section-subpage-hero__text {
    width: fit-content;
    max-width: 700px;
}

.section-subpage-hero__eyebrow {
    margin: 0 0 11px;
    color: var(--color-primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-subpage-hero__title {
    margin: 0;
    color: var(--color-dark);
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.055em;
}

.section-subpage-hero__description {
    max-width: 680px;
    margin: 24px 0 0;
    color: #404040;
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.75;
    white-space: pre-line;
    word-break: keep-all;
}

.section-subnav {
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.section-subnav__track {
    max-width: 1180px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.section-subnav__item {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    min-height: 142px;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    padding: 24px 18px 27px;
    color: #3f454a;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    transition: color 260ms ease, background-color 220ms ease;
}

@media (min-width: 821px) {
    .section-subnav--items-1 .section-subnav__item,
    .section-subnav--items-2 .section-subnav__item {
        width: 250px;
        max-width: 250px;
        flex: 0 1 250px;
    }
}

.section-subnav__item:not(:first-child)::before {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 0;
    width: 1px;
    height: 58px;
    background: #e7e7e7;
    content: "";
    transform: translateY(-50%);
    transition: opacity 180ms ease;
    pointer-events: none;
}

.section-subnav__item::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--color-primary);
    content: "";
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.section-subnav__icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    color: inherit;
    transition: color 260ms ease, transform 280ms ease;
}

.section-subnav__label {
    position: relative;
    z-index: 1;
    color: inherit;
    transition: color 260ms ease;
}

.section-subnav__indicator {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.section-subnav__item:not(.is-disabled):focus-visible,
.section-subnav__item.is-active {
    color: var(--color-primary);
}

.section-subnav__item:not(.is-disabled):focus-visible {
    background: rgb(230 0 19 / 2.5%);
}

.section-subnav__item:not(.is-disabled):focus-visible .section-subnav__icon {
    transform: translateY(-2px);
}

.section-subnav__item:not(.is-disabled):focus-visible .section-subnav__indicator,
.section-subnav__item.is-active .section-subnav__indicator {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.section-subnav__item:focus-visible {
    z-index: 1;
    outline: 3px solid rgb(230 0 19 / 20%);
    outline-offset: -3px;
}

.section-subnav__item.is-disabled {
    color: #989da2;
}

@media (hover: hover) and (pointer: fine) {
    .section-subnav__item:not(.is-disabled):hover {
        background: transparent;
        color: #fff;
    }

    .section-subnav__item:not(.is-disabled):hover::after {
        transform: scaleY(1);
    }

    .section-subnav__item:not(.is-disabled):hover:not(:first-child)::before {
        opacity: 0;
    }

    .section-subnav__item:not(.is-disabled):hover .section-subnav__icon {
        transform: translateY(-2px);
    }

    .section-subnav__item:not(.is-disabled):hover .section-subnav__indicator {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }
}

.section-content-container {
    max-width: 1180px;
}

@media (max-width: 820px) {
    .section-subpage-hero {
        height: clamp(260px, 34vh, 320px);
        background-image: var(--hero-mobile-background-image);
        background-position: 58% center;
    }

    .section-subpage-hero::before {
        background: linear-gradient(
            90deg,
            rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a1)) 0%,
            rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a2)) 34%,
            rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a3)) 52%,
            rgb(var(--hero-overlay-rgb) / var(--hero-overlay-a4)) 72%,
            rgb(var(--hero-overlay-rgb) / 0%) 100%
        );
    }

    .section-subpage-hero__description {
        margin-top: 17px;
        font-size: .96rem;
    }

    .section-subnav {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .section-subnav::-webkit-scrollbar {
        display: none;
    }

    .section-subnav__track {
        width: max-content;
        min-width: 100%;
        margin-inline: 0;
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
        justify-content: flex-start;
    }

    .section-subnav--items-1 .section-subnav__track,
    .section-subnav--items-2 .section-subnav__track {
        width: 100%;
        justify-content: center;
    }

    .section-subnav__item {
        min-width: 132px;
        min-height: 116px;
        flex: 0 0 132px;
        gap: 11px;
        padding: 18px 15px 22px;
        font-size: .92rem;
    }

    .section-subnav__item:not(:first-child)::before {
        height: 48px;
    }

    .section-subnav__icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (max-width: 640px) {
    .section-subpage-hero__text {
        max-width: min(90%, 400px);
    }

    .section-subpage-hero__title {
        font-size: clamp(2.6rem, 13vw, 3.65rem);
    }

    .section-subpage-hero__description {
        font-size: var(--font-size-copy-small);
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-subnav {
        scroll-behavior: auto;
    }

    .section-subnav__item,
    .section-subnav__item::before,
    .section-subnav__item::after,
    .section-subnav__icon,
    .section-subnav__label,
    .section-subnav__indicator {
        transition: none;
    }

    .section-subnav__item:not(.is-disabled):hover .section-subnav__icon,
    .section-subnav__item:not(.is-disabled):focus-visible .section-subnav__icon {
        transform: none;
    }
}
