.hero {
    --carousel-card-width: clamp(360px, 66vw, 640px);
    --carousel-card-height: calc(var(--carousel-card-width) * 379 / 660);
    --carousel-radius: calc(var(--carousel-card-width) * -2.2645);
    --carousel-track-depth: calc(var(--carousel-card-width) * -.734375);
    --carousel-track-scale: 1.8;
    --carousel-perspective: clamp(500px, 67vw, 650px);
    --hero-title-base: 0.7;
    --hero-title-font-size: clamp(calc(2.8rem * var(--hero-title-base)), calc(5.8vw * var(--hero-title-base)), calc(5.25rem * var(--hero-title-base)));
    isolation: isolate;
    position: relative;
    min-height: 98vh;
    /* margin: 10px; */
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--e-global-color-d49ac81);
    color: white;
    width: 100%;
    overflow: hidden;
}

.hero .DotButton {
    --dotBtnForeground-color: var(--e-global-color-d49ac81);
    --dotBtnBackground-color: var(--e-global-color-text);
}

.hero__grid {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__carousel {
    position: absolute;
    z-index: 1;
    top: 21%;
    left: 0;
    width: 100%;
    height: 58%;
    overflow: hidden;
    perspective: var(--carousel-perspective);
    perspective-origin: 50% 50%;
    pointer-events: none;
    background: linear-gradient(90deg, var(--e-global-color-d49ac81) -36%, transparent, var(--e-global-color-d49ac81));
    /* mask-image: linear-gradient(90deg, #ff0000 0, #ebbebe 8%, #e50000 92%, #ff2323 100%); */
}

.hero__carousel-track {
    position: absolute;
    top: 50%;
    /* background: red; */
    left: 50%;
    width: var(--carousel-card-width);
    height: var(--carousel-card-height);
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    will-change: transform;
}

.hero__carousel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--carousel-card-width);
    height: var(--carousel-card-height);
    margin: 0;
    overflow: hidden;
    border-radius: 5px;
    opacity: 0;
    background: color-mix(in srgb, var(--e-global-color-d49ac81) 78%, black);
    box-shadow: 0 18px 32px color-mix(in srgb, var(--e-global-color-d49ac81) 32%, transparent);
    backface-visibility: hidden;
    transform: translate(-50%, -50%) rotateY(calc(var(--angle) * 1deg)) translateZ(var(--carousel-radius));
    transform-style: preserve-3d;
}

.hero__carousel-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: saturate(.78) contrast(1.08) brightness(.82); */
    pointer-events: none;
}

.hero__carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, color-mix(in srgb, var(--e-global-color-d49ac81) 4%, transparent) 10%, color-mix(in srgb, var(--e-global-color-d49ac81) 42%, transparent) 72%, var(--e-global-color-d49ac81) 100%); */
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 920px);
    margin-top: -2vh;
    text-align: center;
    gap: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(#ff5e1f, #fc5e1ef5, transparent, transparent);

}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    color: black;
    gap: 8px;
    margin-bottom: clamp(36px, 7vh, 68px);
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 7px;
    background: white;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -.01em;
    animation: rise-in .8s .05s both cubic-bezier(.2, .8, .2, 1);
}

.hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--e-global-color-d49ac81) 76%, white);
    box-shadow: 0 0 0 4px rgba(255, 232, 154, .16);
    animation: pulse 2s ease-in-out infinite;
}

#hero-title {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Brawler", Georgia, serif;
    font-size: var(--hero-title-font-size);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
    animation: rise-in .9s .16s both cubic-bezier(.2, .8, .2, 1);
}



.hero__copy {
    max-width: 560px;
    /* margin: 38px auto 0; */
    color: rgba(255, 255, 255, .91);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.35;
    letter-spacing: -.02em;
    animation: rise-in .9s .28s both cubic-bezier(.2, .8, .2, 1);
}

.hero__actions {
    display: flex;
    justify-content: center;
    /* margin-top: 48px; */
    animation: rise-in .9s .4s both cubic-bezier(.2, .8, .2, 1);
}

.hero__button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 17px 23px 17px 25px;
    padding-right: 71px;
    border: 0;
    border-radius: 9px;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--e-global-color-d49ac81) 35%, transparent);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.hero__button span {
    display: flex;
    place-items: center;
    width: 40px;
    position: absolute;
    right: 7px;
    height: 40px;
    border-radius: 10px;
    background: var(--e-global-color-d49ac81);
    color: white;
    transition: transform .3s ease;
    justify-content: center;
    align-items: center;

    &::before {
        width: 12px;
        height: 12px;
        content: "";
        /* transform: translate(-50%, -50%) scale(1); */
        opacity: 1;
        transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 620ms cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 2;
        mask-image: url("data:image/svg+xml,%3Csvg width%3D%2225%22 height%3D%2225%22 viewBox%3D%220 0 25 25%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect y%3D%2220%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%225%22 y%3D%2215%22 width%3D%225%22 height%3D%225%22%2F%3E%3Crect x%3D%2210%22 y%3D%2210%22 width%3D%225%22 height%3D%225%22%2F%3E%3Crect x%3D%2215%22 y%3D%225%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2215%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2210%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 y%3D%225%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 y%3D%2210%22 width%3D%225%22 height%3D%225%22 %2F%3E%3C%2Fsvg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg width%3D%2225%22 height%3D%2225%22 viewBox%3D%220 0 25 25%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect y%3D%2220%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%225%22 y%3D%2215%22 width%3D%225%22 height%3D%225%22%2F%3E%3Crect x%3D%2210%22 y%3D%2210%22 width%3D%225%22 height%3D%225%22%2F%3E%3Crect x%3D%2215%22 y%3D%225%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2215%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2210%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 y%3D%225%22 width%3D%225%22 height%3D%225%22 %2F%3E%3Crect x%3D%2220%22 y%3D%2210%22 width%3D%225%22 height%3D%225%22 %2F%3E%3C%2Fsvg%3E");
        mask-size: contain;
        mask-position: center;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        background-color: var(--dotBtnBackground-color, white);
    }
}

.hero__button:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 18px 32px color-mix(in srgb, var(--e-global-color-d49ac81) 45%, transparent);
}

.hero__button:hover span {
    transform: translateX(3px);
}

.hero__button:focus-visible {
    outline: 3px solid #ffe89a;
    outline-offset: 5px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 7px rgba(255, 232, 154, .08);
    }
}

@keyframes carousel-spin {
    from {
        transform: translate(-50%, -50%) translateZ(var(--carousel-track-depth)) scale(var(--carousel-track-scale)) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) translateZ(var(--carousel-track-depth)) scale(var(--carousel-track-scale)) rotateY(360deg);
    }
}

@media (max-width: 900px) {
    .hero {
        --carousel-card-width: clamp(330px, 78vw, 520px);
        --carousel-perspective: clamp(460px, 69vw, 580px);
        min-height: 780px;
    }

    .hero__carousel {
        top: 13%;
        height: 52%;
    }

    .hero__content {
        /* margin-top: 8vh; */
    }
}

@media (max-width: 640px) {
    .hero {
        --carousel-card-width: min(102vw, 390px);
        --carousel-perspective: 430px;
        --carousel-track-scale: 2;
        min-height: max(680px, calc(100svh - 20px));
        /* margin: 10px; */
        border-radius: 14px;
        width: 95%;
        overflow: hidden;
        margin: 0 auto;
    }

    .hero__content {
        width: min(100% - 32px, 500px);
    }

    .hero__carousel {
        top: 22%;
        height: 43%;
    }

    .hero__eyebrow {
        margin-bottom: 42px;
        font-size: 11px;
    }

    .hero__copy {
        margin: 0;
    }

    .hero__actions {
        /* margin-top: 34px; */
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 4.1rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}