@import url("/versions/after-hours/styles/theme.css");

.motion-story {
    --scroll-progress: 0;
    --open-progress: clamp(0, calc((var(--scroll-progress) - .06) * 1.5), 1);
    background: var(--black);
}

.motion-story[data-motion-skipped] {
    --scroll-progress: 1;
}

.motion-story[data-motion-skipped] .motion-panel,
.motion-story[data-motion-skipped] .motion-cue {
    display: none;
}

.motion-stage {
    isolation: isolate;
    overflow: clip;
    background: #080807;
}

.motion-backdrop,
.motion-backdrop img,
.motion-shade {
    position: absolute;
    inset: 0;
}

.motion-backdrop {
    z-index: -3;
}

.motion-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.motion-shade {
    z-index: -2;
    background: rgba(0, 0, 0, .56);
}

.icon--map-pin {
    mask-image: url('/shared/assets/icons/lucide/map-pin.svg');
}

.header-visit-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #3b3b37;
    color: #b9b8b3;
    background: transparent;
    font: 10px var(--font-mono);
    text-transform: uppercase;
    transition: border-color 180ms ease, color 180ms ease;
}

.header-visit-shortcut:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.header-visit-shortcut .icon {
    width: 16px;
    height: 16px;
}

.header-visit-shortcut span {
    display: none;
}

.motion-result h1 {
    font-size: 50px;
    line-height: .94;
}

.motion-result h1 span {
    display: block;
}

.motion-result h1 span:first-child {
    color: var(--red);
}

.motion-result h1 span:last-child {
    color: var(--yellow);
}

.motion-result > p:not(.eyebrow) {
    color: #dddcd8;
    font-size: 15px;
}

.motion-result .text-link {
    color: var(--yellow);
}

.motion-panel {
    background: #0d0d0c;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
    will-change: transform;
}

.motion-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.94) contrast(1.04);
    transform: scale(calc(1 + var(--open-progress) * .06));
}

.motion-panel--left img {
    object-position: 43% center;
}

.motion-panel--right img {
    object-position: 54% center;
}

.motion-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, .72));
}

.motion-panel span {
    position: absolute;
    z-index: 1;
    color: var(--yellow);
    font: 58px/1 var(--font-editorial-display);
}

.motion-panel--left {
    transform: translate3d(calc(var(--open-progress) * -102%), 0, 0);
}

.motion-panel--right {
    transform: translate3d(calc(var(--open-progress) * 102%), 0, 0);
}

.motion-cue {
    color: rgba(255, 255, 255, .82);
    font: 10px var(--font-mono);
    text-transform: uppercase;
    opacity: clamp(0, calc((.34 - var(--scroll-progress)) * 5), 1);
}

.motion-cue .icon {
    width: 16px;
    height: 16px;
    color: var(--yellow);
}

.motion-story + .quick-info {
    position: relative;
    z-index: 2;
}

@media (min-width: 400px) {
    .motion-result h1 {
        font-size: 58px;
    }

    .motion-panel span {
        font-size: 64px;
    }
}

@media (min-width: 600px) {
    .header-visit-shortcut {
        width: auto;
        gap: 8px;
        padding-inline: 12px;
    }

    .header-visit-shortcut span {
        display: inline;
    }

    .motion-result h1 {
        font-size: 76px;
    }

    .motion-panel span {
        font-size: 72px;
    }
}

@media (min-width: 800px) {
    .motion-result h1 {
        font-size: 98px;
    }

    .motion-result > p:not(.eyebrow) {
        font-size: 17px;
    }

    .motion-panel--left img,
    .motion-panel--right img {
        object-position: center;
    }
}

@media (min-width: 1100px) {
    .motion-result h1 {
        font-size: 122px;
    }

    .motion-panel span {
        font-size: 100px;
    }
}

@media (max-width: 359px) {
    .motion-result h1 {
        font-size: 44px;
    }

    .motion-panel span {
        font-size: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-story:not([data-motion-preview]) .motion-panel,
    .motion-story:not([data-motion-preview]) .motion-cue {
        display: none;
    }
}
