:root:has(.hero__banner) .navbar {
    position: relative;
    z-index: 2;
    animation: navbar-intro 2s ease-out 1s backwards;
}

:root:has(.hero__banner) :is(.navbar__logo-image, .navbar__toggle) {
    animation: navbar-icon-intro 2s ease-out 1s backwards;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px 42px 0;
    overflow-x: clip;
    text-align: center;
}

.hero__banner {
    --hero-image-ratio: calc(var(--hero-desktop-image-width) / var(--hero-desktop-image-height));
    --hero-safe-area-left: var(--hero-desktop-safe-area-left);
    --hero-safe-area-top: var(--hero-desktop-safe-area-top);
    --hero-safe-area-width: var(--hero-desktop-safe-area-width);
    --hero-safe-area-height: var(--hero-desktop-safe-area-height);
    --hero-intro-offset: 139px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1010px;
    aspect-ratio: 2;
    container-type: inline-size;
    clip-path: inset(0);
    animation: hero-banner-intro 2s ease-out 1s backwards;
}

.hero__image {
    --hero-intro-width: max(100vw, 100lvh * var(--hero-image-ratio));
    --hero-intro-height: calc(var(--hero-intro-width) / var(--hero-image-ratio));
    --hero-intro-left: clamp(
        100vw - var(--hero-intro-width),
        50vw - (var(--hero-safe-area-left) + var(--hero-safe-area-width) / 2) * var(--hero-intro-width),
        0px
    );
    --hero-intro-top: clamp(
        100lvh - var(--hero-intro-height),
        50lvh - (var(--hero-safe-area-top) + var(--hero-safe-area-height) / 2) * var(--hero-intro-height),
        0px
    );
    position: absolute;
    top: calc(var(--hero-safe-area-top) / var(--hero-safe-area-height) * -100%);
    left: calc(var(--hero-safe-area-left) / var(--hero-safe-area-width) * -100%);
    width: calc(100% / var(--hero-safe-area-width));
    max-width: none;
    height: calc(100% / var(--hero-safe-area-height));
    object-fit: cover;
    animation: hero-image-intro 2s ease-out 1s backwards;
}

.hero__title {
    position: absolute;
    top: 9.7%;
    left: 6.4%;
    margin: 0;
    overflow: clip;
    color: var(--color-light-grey);
    font-family: var(--font-serif);
    font-size: 5.545cqi;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

.hero__title-text {
    --hero-title-from: translateY(103.6%);
    display: block;
    animation: hero-title-intro 2s ease-out 1s backwards;
}

.hero__text {
    max-width: 366px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    text-transform: capitalize;
}

.rewards {
    display: grid;
    grid-template-columns: auto minmax(0, 881px);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
        ". list"
        "title list"
        "link list"
        ". list";
    justify-content: space-between;
    column-gap: 42px;
    margin-top: 100px;
    padding: 56px 42px;
    background: var(--color-light-grey);
}

.rewards__title {
    grid-area: title;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.55;
    text-transform: capitalize;
}

.rewards__title-accent {
    font-weight: 400;
}

.rewards__link {
    grid-area: link;
    justify-self: start;
    margin-top: 36px;
}

.rewards__link-icon {
    display: none;
    transform: rotate(-90deg);
}

.rewards__list {
    grid-area: list;
    display: flex;
    justify-content: flex-end;
    gap: min(72px, 5vw);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rewards__item {
    display: flex;
    flex: 0 1 225px;
    flex-direction: column;
    gap: 16px;
}

.rewards__media {
    aspect-ratio: 225 / 315;
    overflow: hidden;
}

.rewards__image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(calc(var(--rewards-parallax, 0.5) * -16.67%));
}

.rewards__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rewards__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.65;
}

.rewards__benefits {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rewards__benefit {
    min-height: 76px;
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.65;
}

.rewards__benefit + .rewards__benefit {
    min-height: 80px;
    padding-top: 10px;
    background: linear-gradient(var(--color-medium-light-grey), var(--color-medium-light-grey)) top left / 200px 1px no-repeat;
}

.locations {
    display: flex;
    margin: 100px 0;
}

.locations__media {
    flex: 0 0 59.03%;
    min-width: 0;
}

.locations__carousel:not(.tns-slider) > :not(:first-child) {
    display: none;
}

.locations__slide {
    width: 100%;
    aspect-ratio: 850 / 510;
    object-fit: cover;
}

.locations__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
}

.locations__eyebrow {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.locations__title {
    margin: 4px 0 16px;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.35;
}

.locations__text {
    max-width: 327px;
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .hero {
        padding: 47px 16px 50px;
    }

    .hero__banner {
        --hero-image-ratio: calc(var(--hero-mobile-image-width) / var(--hero-mobile-image-height));
        --hero-safe-area-left: var(--hero-mobile-safe-area-left);
        --hero-safe-area-top: var(--hero-mobile-safe-area-top);
        --hero-safe-area-width: var(--hero-mobile-safe-area-width);
        --hero-safe-area-height: var(--hero-mobile-safe-area-height);
        --hero-intro-offset: 102px;
        max-width: 285px;
        aspect-ratio: 285 / 333;
        margin-bottom: -7px;
    }

    .hero__title {
        top: 7.5%;
        left: 5.1%;
        overflow: visible;
        font-size: 24px;
    }

    .hero__title-text {
        --hero-title-from: translateY(45%);
    }

    .hero__text {
        max-width: 270px;
        font-size: 14px;
        text-transform: none;
    }

    .hero__text,
    .hero__link {
        animation: hero-content-intro 2s ease-out 1s backwards;
    }

    .rewards {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas:
            "title"
            "list"
            "link";
        margin-top: 0;
        padding: 64px 0 0;
    }

    .rewards__title {
        padding: 0 16px;
        font-size: 24px;
        line-height: 1.35;
        text-transform: none;
    }

    .rewards__title-accent {
        font-weight: 500;
    }

    .rewards__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        justify-self: stretch;
        margin-top: 0;
        padding: 24px 16px;
        border: 0;
        background: var(--color-dark-grey);
        color: var(--color-light-grey);
        line-height: 1.65;
        text-transform: none;
    }

    .rewards__link-icon {
        display: block;
    }

    .rewards__list {
        flex-direction: column;
        gap: 64px;
        margin-bottom: 64px;
    }

    .rewards__item {
        flex: none;
        flex-direction: row;
        gap: 32px;
        padding: 32px 24px 16px 0;
    }

    .rewards__item--reversed {
        flex-direction: row-reverse;
        padding: 32px 0 16px 24px;
    }

    .rewards__media {
        flex: 0 0 125px;
    }

    .rewards__content {
        flex: 0 1 171px;
        justify-content: space-between;
    }

    .rewards__item--reversed .rewards__content {
        flex-basis: 215px;
    }

    .rewards__name {
        font-size: 14px;
    }

    .rewards__benefit,
    .rewards__benefit + .rewards__benefit {
        min-height: 0;
        font-size: 14px;
    }

    .rewards__benefit + .rewards__benefit {
        background-size: 100% 1px;
    }

    .locations {
        flex-direction: column-reverse;
        margin: 0;
    }

    .locations__media {
        flex: none;
        margin: 32px 16px 72px;
    }

    .locations__content {
        padding: 72px 46px 0;
    }

    .locations__eyebrow {
        font-size: 12px;
    }

    .locations__title {
        font-size: 24px;
    }

    .locations__text {
        max-width: 238px;
        font-size: 14px;
    }
}

:root[data-intro="pending"] :is(
    .navbar,
    .navbar__logo-image,
    .navbar__toggle,
    .hero__banner,
    .hero__image,
    .hero__title-text,
    .hero__text,
    .hero__link
) {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .rewards__image {
        transform: none;
    }

    :root:has(.hero__banner) :is(.navbar, .navbar__logo-image, .navbar__toggle),
    .hero__banner,
    .hero__image,
    .hero__title-text,
    .hero__text,
    .hero__link {
        animation: none;
    }
}

@keyframes navbar-intro {
    from {
        color: var(--color-light-grey);
    }
}

@keyframes navbar-icon-intro {
    from {
        filter: brightness(0) invert(1);
    }
}

@keyframes hero-banner-intro {
    from {
        clip-path: inset(
            calc(-1 * var(--hero-intro-offset))
            calc((100% - 100vw) / 2)
            calc(var(--hero-intro-offset) + 100% - 100lvh)
        );
    }
}

@keyframes hero-image-intro {
    from {
        top: calc(var(--hero-intro-top) - var(--hero-intro-offset));
        left: calc(var(--hero-intro-left) - (100vw - 100cqi) / 2);
        width: var(--hero-intro-width);
        height: var(--hero-intro-height);
    }
}

@keyframes hero-content-intro {
    from {
        opacity: 0;
    }
}

@keyframes hero-title-intro {
    from {
        opacity: 0;
        transform: var(--hero-title-from);
    }
}
