/*
 * Temporary home-hero study.
 * Remove this stylesheet link and the c-hero-outline-preview classes/markup
 * from index.html to restore the original hero without touching shared CSS.
 */

.c-hero-outline-preview {
    display: block;
    min-height: 0;
    overflow: clip;
    padding-top: 100vh;
    padding-top: 100svh;
}

.c-hero-outline-preview > .c-above-fold__media {
    bottom: auto;
    height: 100vh;
    height: 100svh;
}

.c-hero-outline-preview__artwork {
    --hero-drift-y: 0px;
    --hero-wordmark-scale: 1;
    align-items: center;
    display: flex;
    height: 100vh;
    height: 100svh;
    inset: 0 0 auto;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.c-hero-outline-preview__wordmark {
    display: block;
    height: 100%;
    inset: 0 auto 0 var(--space-1);
    max-width: none;
    object-fit: contain;
    position: absolute;
    transform: scale(var(--hero-wordmark-scale));
    transform-origin: center;
    width: calc(100% - var(--space-2));
}

.c-hero-outline-preview__wordmark--multiply {
    mix-blend-mode: multiply;
    opacity: 0.2;
    transform:
        translate3d(0, var(--hero-drift-y), 0)
        scale(var(--hero-wordmark-scale));
}

.c-hero-outline-preview__wordmark--base {
    clip-path: inset(0);
    opacity: 1;
}

.c-hero-outline-preview__artwork.is-ready .c-hero-outline-preview__wordmark--base {
    animation: hero-wordmark-base-fade-down 960ms cubic-bezier(0.65, 0, 0.2, 1) 260ms forwards;
}

.c-hero-outline-preview__artwork.is-settled .c-hero-outline-preview__wordmark--base {
    animation: none;
    clip-path: inset(100% 0 0);
    opacity: 0;
}

.c-hero-outline-preview__artwork.is-drifting .c-hero-outline-preview__wordmark--multiply {
    will-change: transform;
}

@keyframes hero-wordmark-base-fade-down {
    from {
        clip-path: inset(0);
        opacity: 1;
    }

    to {
        clip-path: inset(100% 0 0);
        opacity: 0;
    }
}

@supports (
    (mask-image: linear-gradient(#000, #000)) or
    (-webkit-mask-image: linear-gradient(#000, #000))
) {
    .c-hero-outline-preview__wordmark--base {
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0 34%,
            #000 46% 100%
        );
        -webkit-mask-position: 0 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: 100% 300%;
        clip-path: none;
        mask-image: linear-gradient(
            to bottom,
            transparent 0 34%,
            #000 46% 100%
        );
        mask-position: 0 100%;
        mask-repeat: no-repeat;
        mask-size: 100% 300%;
    }

    .c-hero-outline-preview__artwork.is-ready .c-hero-outline-preview__wordmark--base {
        animation-name: hero-wordmark-base-fade-down-soft;
    }

    .c-hero-outline-preview__artwork.is-settled .c-hero-outline-preview__wordmark--base {
        -webkit-mask-position: 0 0;
        clip-path: none;
        mask-position: 0 0;
        opacity: 0;
    }
}

@keyframes hero-wordmark-base-fade-down-soft {
    from {
        -webkit-mask-position: 0 100%;
        mask-position: 0 100%;
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
        opacity: 0;
    }
}

.c-hero-outline-preview .c-hero-media-toggle {
    bottom: auto;
    top: calc(100vh - var(--space-1) - 44px);
    top: calc(100svh - var(--space-1) - 44px);
}

.c-hero-outline-preview__scroll-cue {
    align-items: center;
    background-color: var(--color-bach-black);
    border: 1px solid var(--color-graphite);
    border-bottom: 0;
    border-radius: 4rem 4rem 0 0;
    box-sizing: border-box;
    color: var(--color-mist-grey);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 4rem;
    justify-content: center;
    left: 50%;
    padding-top: 0.45rem;
    position: absolute;
    text-decoration: none;
    top: 100vh;
    top: 100svh;
    transform: translate(-50%, -100%);
    width: 7rem;
    z-index: 3;
}

.c-hero-outline-preview__scroll-cue:hover,
.c-hero-outline-preview__scroll-cue:focus-visible {
    color: var(--color-warm-paper);
}

.c-hero-outline-preview__scroll-cue:focus-visible {
    outline: 3px solid var(--color-bach-blue);
    outline-offset: -3px;
}

.c-hero-outline-preview__scroll-label {
    font-family: var(--font-mono);
    font-size: var(--font-size-technical);
    letter-spacing: var(--letter-spacing-technical);
    line-height: 1;
}

.c-hero-outline-preview__scroll-arrow {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    display: block;
    height: 0.45rem;
    transform: rotate(45deg);
    width: 0.45rem;
}

.c-hero-outline-preview__information {
    background-color: var(--color-bach-black);
    color: var(--color-warm-paper);
    margin: 0;
    min-height: 0;
    padding: var(--space-2) var(--space-2) var(--space-3);
    place-items: initial;
    position: relative;
    scroll-margin-top: var(--space-1);
}

.c-hero-outline-preview__content {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: var(--space-1) var(--space-2);
    grid-template-columns: minmax(0, 8fr) minmax(18rem, 5fr);
    isolation: auto;
    justify-items: start;
    max-width: none;
    overflow: visible;
    padding: 0;
    text-align: left;
}

.c-hero-outline-preview__content::after {
    display: none;
}

.c-hero-outline-preview__content .c-hero__eyebrow {
    color: var(--color-mist-grey);
    grid-column: 1 / -1;
}

.c-hero-outline-preview__content .c-hero__title {
    align-self: start;
    grid-column: 1;
    grid-row: 2 / span 2;
    max-width: 12ch;
}

.c-hero-outline-preview__content .c-hero__copy {
    align-self: end;
    color: var(--color-warm-paper);
    grid-column: 2;
    margin: 0;
    max-width: 58ch;
}

.c-hero-outline-preview__content .c-hero__actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 0;
}

.c-hero-outline-preview__content .c-button--primary {
    background-color: var(--color-warm-paper);
    border-color: var(--color-warm-paper);
    color: var(--color-bach-black);
}

.c-hero-outline-preview__content .c-button--primary:hover {
    background-color: var(--color-bach-black);
    border-color: var(--color-bach-blue);
    color: var(--color-warm-paper);
}

.c-hero-outline-preview__content .c-button--secondary {
    background-color: transparent;
    border-color: var(--color-warm-paper);
    color: var(--color-warm-paper);
}

.c-hero-outline-preview__content .c-button--secondary:hover {
    background-color: var(--color-warm-paper);
    border-color: var(--color-bach-blue);
    color: var(--color-bach-black);
}

@media (max-width: 900px) {
    .c-hero-outline-preview__information {
        padding: var(--space-2) var(--space-1) var(--space-3);
    }

    .c-hero-outline-preview__content {
        gap: var(--space-1);
        grid-template-columns: minmax(0, 1fr);
    }

    .c-hero-outline-preview__content .c-hero__eyebrow,
    .c-hero-outline-preview__content .c-hero__title,
    .c-hero-outline-preview__content .c-hero__copy,
    .c-hero-outline-preview__content .c-hero__actions {
        grid-column: 1;
        grid-row: auto;
    }

    .c-hero-outline-preview__content .c-hero__title {
        max-width: 15ch;
    }
}

@media (max-width: 700px) {
    .c-hero-outline-preview__artwork.is-ready .c-hero-outline-preview__wordmark--base {
        animation-delay: 180ms;
        animation-duration: 760ms;
    }

    .c-hero-outline-preview__scroll-cue {
        height: 3.5rem;
        width: 6rem;
    }

    .c-hero-outline-preview__information {
        padding: var(--space-2) var(--space-half) var(--space-2);
    }

    .c-hero-outline-preview__content {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-hero-outline-preview__artwork .c-hero-outline-preview__wordmark--base {
        -webkit-mask-position: 0 0;
        animation: none;
        clip-path: inset(100% 0 0);
        mask-position: 0 0;
        opacity: 0;
    }
}
