/* ==========================================================================
   Hero with Carousel Section Styles
   ========================================================================== */

.hero-with-carousel.homepage-hero {
    background-color: rgb(var(--color-background));
    color: var(--color-text, inherit);
    display: block;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Dynamic Background Layer
   -------------------------------------------------------------------------- */
.hero-with-carousel .dynamic-background {
    background-color: var(--color-black, #000);
    z-index: 0;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.hero-with-carousel .dynamic-background__item {
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity .8s cubic-bezier(.23, 1, .32, 1);
    position: absolute;
    top: -1px;
    left: 0;
}

.hero-with-carousel .dynamic-background__item--active {
    opacity: 1;
}

.hero-with-carousel .dynamic-background__poster {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-with-carousel .dynamic-background__video {
    object-fit: cover;
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-with-carousel theme-video-media {
    height: 100%;
}

.hero-with-carousel .dynamic-background__media-wrapper > theme-video-media > .theme-video-media {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
}

.hero-with-carousel .dynamic-background__media-wrapper .theme-video-media__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-with-carousel .dynamic-background__media-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-with-carousel .dynamic-background__media-wrapper video,
.hero-with-carousel .dynamic-background__media-wrapper iframe {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-with-carousel .dynamic-background__media-wrapper--mobile {
    display: none;
}

@media (max-width: 959px) {
    .hero-with-carousel .dynamic-background__media-wrapper--desktop {
        display: none;
    }

    .hero-with-carousel .dynamic-background__media-wrapper--mobile {
        display: block;
    }
}

.hero-with-carousel .dynamic-background__overlay-gradient {
    z-index: 3;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 70%, #000000 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-with-carousel .dynamic-background__overlay {
    pointer-events: none;
    z-index: 4;
    background-color: rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 30) / 100));
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* --------------------------------------------------------------------------
   Text Container & Content
   -------------------------------------------------------------------------- */
.hero-with-carousel .homepage-hero__text-container {
    z-index: 10;
    width: calc((var(--grid-column-width, 70px) * 11) + (var(--grid-gutter-width, 24px) * 10));
    max-width: 90%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 90px 16px 30px;
    display: flex;
    position: relative;
}

@media (min-width: 744px) {
    .hero-with-carousel .homepage-hero__text-container {
        width: 100%;
        padding: 160px 0 72px;
    }
}

@media (min-width: 1020px) {
    .hero-with-carousel .homepage-hero__text-container {
        padding-bottom: 120px;
    }
}

@media (min-width: 1280px) {
    .hero-with-carousel .homepage-hero__text-container {
        padding-bottom: 80px;
    }
}

@media (min-width: 1440px) {
    .hero-with-carousel .homepage-hero__text-container {
        padding: 240px 0 80px;
    }
}

@media (min-width: 1920px) {
    .hero-with-carousel .homepage-hero__text-container {
        padding-bottom: 120px;
    }
}

.hero-with-carousel .homepage-hero__text-container-localized-hero-text {
    width: 100%;
}

.hero-with-carousel .hero-text {
    margin: 0;
    word-break: break-word;
}

.hero-with-carousel .homepage-hero__cta {
    margin: 24px 0 16px;
}

@media (min-width: 1020px) {
    .hero-with-carousel .homepage-hero__cta {
        margin: 32px 0 24px;
    }
}

/* --------------------------------------------------------------------------
   Angled 3D Carousel
   -------------------------------------------------------------------------- */
.hero-with-carousel .angled-carousel {
    --card-width: 70vw;
    --card-aspect-ratio: 16/10;
    --card-height: calc(var(--card-width) / (var(--card-aspect-ratio)));
    --carousel-gap: 0px;
    width: 100vw;
    max-width: 100%;
    height: calc(var(--card-height) + 30px);
    min-height: 240px;
    z-index: 10;
    justify-content: center;
    align-items: flex-end;
    display: flex;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

@media (min-width: 744px) {
    .hero-with-carousel .angled-carousel {
        --card-width: 55vw;
        --card-aspect-ratio: 16/10;
        --carousel-gap: 0px;
    }
}

@media (min-width: 1020px) {
    .hero-with-carousel .angled-carousel {
        --card-width: 45vw;
        --card-aspect-ratio: 898/561;
        --carousel-gap: 0px;
    }
}

.hero-with-carousel .angled-carousel__card {
    color: var(--color-black, #000);
    height: var(--card-height);
    width: var(--card-width);
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    left: 50%;
    top: 0;
    overflow: hidden;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1), opacity .6s cubic-bezier(.23, 1, .32, 1);
    cursor: pointer;
    will-change: transform, opacity;
}

.hero-with-carousel .angled-carousel__card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 5;
}

.hero-with-carousel .angled-carousel__card picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-with-carousel .angled-carousel__card-background-image {
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 744px) {
    .hero-with-carousel .angled-carousel__card-background-image {
        border-radius: 6px;
    }
}

@media (min-width: 1020px) {
    .hero-with-carousel .angled-carousel__card-background-image {
        border-radius: 8px;
    }
}

.hero-with-carousel .angled-carousel__card-overlay {
    opacity: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 4px;
    width: 100%;
    height: 100%;
    transition: opacity .5s cubic-bezier(.23, 1, .32, 1);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

@media (min-width: 744px) {
    .hero-with-carousel .angled-carousel__card-overlay {
        border-radius: 6px;
    }
}

@media (min-width: 1020px) {
    .hero-with-carousel .angled-carousel__card-overlay {
        border-radius: 8px;
    }
}

.hero-with-carousel .angled-carousel__card-overlay--active {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Carousel Control Hitboxes & Cursor Follower
   -------------------------------------------------------------------------- */
.hero-with-carousel .angled-carousel__controls {
    width: 35vw;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    z-index: 30;
}

.hero-with-carousel .angled-carousel__controls--left {
    left: 0;
}

.hero-with-carousel .angled-carousel__controls--right {
    right: 0;
}

.hero-with-carousel .cursor-follow {
    width: 100%;
    height: 100%;
}

.hero-with-carousel .cursor-follow__area {
    z-index: 30;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

@media (min-width: 1020px) {
    .hero-with-carousel .cursor-follow__area {
        display: flex;
    }
}

.hero-with-carousel .cursor-follow__content-sr-only {
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
}

/* Floating Follower Pill */
.cursor-follow__follower.uswing-hero-cursor {
    pointer-events: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0);
    transition: opacity 0.25s cubic-bezier(.23, 1, .32, 1);
}

.cursor-follow__follower.uswing-hero-cursor.is-visible {
    opacity: 1;
}

.cursor-follow__pill {
    background: #ffffff;
    color: #000000;
    border-radius: 90px;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    display: flex;
    box-shadow: 0 18px 11px rgba(0, 0, 0, 0.08), 0 8px 8px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.12);
}

.cursor-follow__pill p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
}

/* --------------------------------------------------------------------------
   Video Play/Pause Controls
   -------------------------------------------------------------------------- */
.hero-with-carousel .homepage-hero__controls-container {
    z-index: 50;
    display: block;
    position: absolute;
    bottom: var(--grid-gutter-width, 24px);
    left: var(--grid-gutter-width, 24px);
    pointer-events: auto;
}

.hero-with-carousel .homepage-hero__controls {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    color: #ffffff;
    transition: background-color .2s ease, transform .2s ease;
    pointer-events: auto;
}

.hero-with-carousel .homepage-hero__controls:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.hero-with-carousel .controls__button-svg {
    display: block;
}

/* --------------------------------------------------------------------------
   CTA Button Styles
   -------------------------------------------------------------------------- */
.hero-with-carousel .cta {
    color: var(--color-black, #000);
    text-decoration: none;
}

.hero-with-carousel .cta--light {
    color: var(--color-white, #fff);
}

.hero-with-carousel .cta--primary-subtle,
.hero-with-carousel .cta--primary {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    text-transform: uppercase;
    --cta-arrow-gap: 8px;
    --cta-arrow-margin-right: -4px;
    --cta-hover-offset: 2px;
    background-color: var(--color-black, #000);
    color: var(--color-white, #fff);
    border: none;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1em;
    display: inline-flex;
    overflow: hidden;
    transition: color .2s ease, background-color .2s ease;
}

.hero-with-carousel .cta--primary-subtle.cta--light,
.hero-with-carousel .cta--primary.cta--light {
    background-color: var(--color-white, #fff);
    color: var(--color-black, #000);
}

@media (hover: hover) {

    .hero-with-carousel .cta--primary-subtle.cta--light:hover,
    .hero-with-carousel .cta--primary.cta--light:hover {
        background-color: rgba(255, 255, 255, 0.85);
        color: var(--color-black, #000);
    }
}

.hero-with-carousel .cta--has-arrow span[data-arrow="true"] {
    width: 1em;
    margin-left: var(--cta-arrow-gap, 8px);
    margin-right: var(--cta-arrow-margin-right, -4px);
    flex-shrink: 0;
    align-items: center;
    display: inline-flex;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.645, .045, .355, 1);
}

.hero-with-carousel .cta__arrow-icon {
    line-height: 1;
    display: block;
    transform: translate(-100%);
    transition: transform .25s cubic-bezier(.645, .045, .355, 1);
}

.hero-with-carousel .cta__label {
    align-items: center;
    line-height: 1;
    display: inline-flex;
    transition: transform .35s cubic-bezier(.645, .045, .355, 1);
}

.hero-with-carousel .cta.cta--has-arrow .cta__label {
    transform: translateX(calc(var(--cta-arrow-gap, 8px) / 2 + .5em + var(--cta-arrow-margin-right, -4px) / 2));
}

@media (hover: hover) {
    .hero-with-carousel .cta:hover.cta--has-arrow .cta__label {
        transform: translateX(calc(-6px + var(--cta-hover-offset, 2px)));
    }

    .hero-with-carousel .cta:hover span[data-arrow="true"] {
        transform: translateX(var(--cta-hover-offset, 2px));
    }

    .hero-with-carousel .cta:hover .cta__arrow-icon {
        transition: transform .35s cubic-bezier(.645, .045, .355, 1);
        transform: translate(0);
    }
}