.raven-approach-prophecy {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(6.5rem, 12vh, 9rem)
        var(--page-gutter)
        clamp(7rem, 15vh, 10rem);

    color: var(--color-white);
    text-align: center;

    pointer-events: none;
}

.has-js .raven-approach-prophecy {
    visibility: hidden;
    opacity: 0;
}

.has-js .raven-approach-prophecy.is-visible {
    visibility: visible;
    opacity: 1;
}

.raven-approach-prophecy__quote {
    width: min(100%, 70rem);
    margin: 0;

    opacity: calc(1 - var(--raven-prophecy-exit, 0));
    transform:
        translate3d(
            0,
            calc(var(--raven-prophecy-exit, 0) * -2.75rem),
            0
        );

    font-family: var(--font-display);
    font-size: var(--approach-quote-size);
    font-style: normal;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    will-change: opacity, transform;
}

.raven-approach-prophecy__line {
    display: block;
    overflow: hidden;
    white-space: normal;
}

.raven-approach-prophecy__word {
    display: inline-block;
    white-space: nowrap;
}

.raven-approach-prophecy__char,
.raven-approach-prophecy__space {
    display: inline-block;
}

.raven-approach-prophecy__char {
    transform-origin: 50% 100%;
    will-change: opacity, transform, filter;
}

.raven-approach-prophecy__space {
    width: auto;
}

.raven-approach-prophecy__source {
    position: relative;
    margin-top: clamp(3rem, 12vh, 7rem);

    overflow: hidden;

    font-family: var(--font-display);
    font-size: var(--approach-source-size);
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .raven-approach-prophecy {
        justify-content: center;

        padding:
            clamp(6rem, 18vh, 8.5rem)
            clamp(1rem, 4.5vw, 1.5rem)
            clamp(6.5rem, 17vh, 9rem);
    }

    .raven-approach-prophecy__quote {
        width: 100%;
    }

    .raven-approach-prophecy__source {
        position: absolute;
        margin-top: 0;
        right: 1rem;
        bottom: clamp(1.75rem, 5vh, 3rem);
        left: 1rem;
    }

    /* Keep attribution above the bottom-right skip control on portrait screens. */
    .has-js .raven-approach-prophecy {
        padding-bottom: clamp(9.5rem, 20vh, 11rem);
    }

    .has-js .raven-approach-prophecy__source {
        bottom: 4.75rem;
    }
}

@media (orientation: landscape) and (max-height: 38rem) and (max-width: 48rem) {
    .has-js .raven-approach-prophecy {
        padding-bottom: 6.5rem;
    }

    .has-js .raven-approach-prophecy__source {
        right: calc(var(--page-gutter) + 8rem);
        bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-js .raven-approach-prophecy.is-visible {
        transition: none;
    }

    .raven-approach-prophecy__char {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .raven-approach-prophecy__quote {
        transform: none;
    }
}
