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

.header-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.motion-story {
    min-height: 640px;
}

.motion-story[data-scroll-ready] {
    min-height: 245svh;
}

.motion-stage {
    position: relative;
    min-height: 640px;
    height: calc(100svh - var(--header-height));
}

[data-scroll-ready] .motion-stage {
    position: sticky;
    top: var(--header-height);
}

.motion-result {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.motion-result h1 {
    margin-top: 0;
}

.motion-result > p:not(.eyebrow) {
    max-width: 42ch;
    margin-top: 24px;
}

.motion-result__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.motion-panel {
    position: absolute;
    z-index: 8;
    top: 0;
    bottom: 0;
    width: 64%;
    overflow: hidden;
}

.motion-panel--left {
    left: 0;
    clip-path: inset(0 21.875% 0 0);
}

.motion-panel--right {
    right: 0;
    clip-path: inset(0 0 0 21.875%);
}

.motion-panel span {
    top: 64%;
}

.motion-panel--left span {
    left: 24px;
}

.motion-panel--right span {
    right: 24px;
}

.motion-cue {
    position: absolute;
    z-index: 10;
    right: 18px;
    bottom: 26px;
    display: none;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
}

@media (min-width: 600px) {
    .motion-story,
    .motion-stage {
        min-height: 680px;
    }

    .motion-result__actions {
        gap: 28px;
    }
}

@media (min-width: 800px) {
    .motion-story,
    .motion-stage {
        min-height: 620px;
    }

    .motion-story[data-scroll-ready] {
        min-height: 225svh;
    }

    .motion-panel {
        width: 50.1%;
        clip-path: none;
    }

    .motion-panel span {
        top: auto;
        bottom: 30px;
    }

    .motion-result {
        width: min(780px, calc(100% - var(--gutter) * 2));
        text-align: center;
    }

    .motion-result > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .motion-result__actions {
        justify-content: center;
    }

    .motion-cue {
        display: flex;
    }
}

@media (min-width: 1100px) {
    .motion-panel span {
        bottom: 44px;
    }

    .motion-panel--left span {
        left: 42px;
    }

    .motion-panel--right span {
        right: 42px;
    }

    .motion-cue {
        right: 24px;
    }
}

@media (max-width: 799px) and (max-height: 740px) {
    .motion-story,
    .motion-stage {
        min-height: 510px;
    }

    .motion-result {
        top: 52%;
    }

    .motion-result h1 {
        margin-top: 16px;
    }

    .motion-result > p:not(.eyebrow) {
        margin-top: 18px;
    }

    .motion-result__actions {
        margin-top: 20px;
    }
}

@media (max-width: 359px) {
    .header-brand-group {
        gap: 4px;
    }

    .header-brand-group .brand,
    .header-brand-group .brand img {
        width: 78px;
    }

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

    .header-reserve .icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-story:not([data-motion-preview]),
    .motion-story[data-scroll-ready]:not([data-motion-preview]) {
        min-height: 640px;
    }

    .motion-story:not([data-motion-preview]) .motion-stage,
    .motion-story[data-scroll-ready]:not([data-motion-preview]) .motion-stage {
        position: relative;
        top: auto;
    }
}
