.tl-hero-slider {
    --tl-parallax-scroll: 0px;
    --tl-road-y: 0px;
    --tl-title-y: 0px;
    --tl-copy-y: 0px;
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.tl-hero-slider__track {
    position: relative;
    min-height: 760px;
}

.tl-hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    min-height: 760px;
    opacity: 0;
    background: #000;
    isolation: isolate;
    transition: opacity .55s ease;
}

.tl-hero-slide::before {
    content: "";
    position: absolute;
    inset: -36px 0;
    z-index: -1;
    width: min(100%, 1180px);
    margin-inline: auto;
    background-image: var(--tl-slide-image);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    transform: translate3d(
        0,
        var(--tl-parallax-scroll),
        0
    ) scale(1.08);
    transform-origin: center;
    will-change: transform;
}

.tl-hero-slide.is-active::before {
    animation: tl-hero-image-in 1.3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes tl-hero-image-in {
    from {
        opacity: 0;
        scale: 1.08;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

.tl-hero-slide::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -110px;
    left: 0;
    z-index: -1;
    width: min(100%, 1180px);
    height: 310px;
    margin-inline: auto;
    background:
        linear-gradient(90deg, transparent 8%, rgba(186, 42, 38, .62) 31%, transparent 32% 62%, rgba(186, 42, 38, .5) 63%, transparent 87%),
        repeating-linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, .07) 11.2% 11.5%, transparent 11.7% 22%),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(186, 42, 38, .16) 42%, rgba(0, 0, 0, .92) 82%);
    filter: blur(7px);
    opacity: .72;
    transform: perspective(420px) rotateX(67deg) translate3d(
        0,
        var(--tl-road-y),
        0
    );
    transform-origin: center bottom;
    will-change: transform;
}

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

.tl-hero-slide__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 72px;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 360px 0 88px;
    perspective: 900px;
}

.tl-hero-slide__title,
.tl-hero-slide__copy {
    will-change: transform;
}

.tl-hero-slide__title {
    transform: translate3d(
        0,
        var(--tl-title-y),
        0
    );
}

.tl-hero-slide__copy {
    transform: translate3d(
        0,
        var(--tl-copy-y),
        0
    );
}

.tl-hero-slide__title h1 {
    margin: 0;
    color: #ba2a26;
    font-family: Montserrat, sans-serif;
    font-size: clamp(44px, 4.2vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.tl-hero-slide.is-active .tl-hero-slide__title h1,
.tl-hero-slide.is-active .tl-hero-slide__copy > * {
    animation: tl-hero-content-in .9s cubic-bezier(.22, 1, .36, 1) both;
}

.tl-hero-slide.is-active .tl-hero-slide__title h1 {
    animation-delay: .18s;
}

.tl-hero-slide.is-active .tl-hero-slide__copy > :nth-child(1) {
    animation-delay: .28s;
}

.tl-hero-slide.is-active .tl-hero-slide__copy > :nth-child(2) {
    animation-delay: .38s;
}

.tl-hero-slide.is-active .tl-hero-slide__copy > :nth-child(3) {
    animation-delay: .48s;
}

.tl-hero-slide.is-active .tl-hero-slide__copy > :nth-child(4) {
    animation-delay: .58s;
}

@keyframes tl-hero-content-in {
    from {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.tl-hero-slide__copy {
    max-width: 620px;
}

.tl-hero-slide__kicker {
    margin: 0 0 10px;
    color: #ba2a26;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tl-hero-slide__copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.15;
}

.tl-hero-slide__copy p:not(.tl-hero-slide__kicker) {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.tl-hero-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-top: 30px;
    padding: 0 28px;
    background: #ba2a26;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.tl-hero-slide__button:hover {
    background: #96211e;
}

.tl-hero-slider__controls {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 32px;
    display: flex;
    gap: 10px;
}

.tl-hero-slider__controls button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .tl-hero-slider__track,
    .tl-hero-slide {
        min-height: 720px;
    }

    .tl-hero-slide {
        background-position: center top;
    }

    .tl-hero-slide::before {
        inset: 0 0 auto;
        width: 100%;
        height: 300px;
        background-position: center;
        background-size: contain;
        transform: none;
    }

    .tl-hero-slide::after {
        bottom: -150px;
        opacity: .48;
    }

    .tl-hero-slide__inner {
        grid-template-columns: 1fr;
        gap: 22px;
        width: min(100% - 28px, 620px);
        padding: 330px 0 58px;
    }

    .tl-hero-slide__title h1 {
        font-size: 42px;
    }

    .tl-hero-slide__copy h2 {
        font-size: 28px;
    }

    .tl-hero-slide__copy p:not(.tl-hero-slide__kicker) {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-hero-slide::before,
    .tl-hero-slide::after,
    .tl-hero-slide__title,
    .tl-hero-slide__copy {
        transform: none;
        transition: none;
    }

    .tl-hero-slide.is-active::before,
    .tl-hero-slide.is-active .tl-hero-slide__title h1,
    .tl-hero-slide.is-active .tl-hero-slide__copy > * {
        animation: none;
        opacity: 1;
        transform: none;
        scale: 1;
    }
}

@media (max-width: 520px) {
    .tl-hero-slider__track,
    .tl-hero-slide {
        min-height: 690px;
    }

    .tl-hero-slide__inner {
        padding-top: 300px;
    }

    .tl-hero-slide::before {
        height: 270px;
    }

    .tl-hero-slide__title h1 {
        font-size: 34px;
    }
}
