.cover {
    position: relative;
    overflow: hidden;
    max-width: none;
    height: fit-content;
    color: white;
    --cover-headline-duration: 1.25s;
    --cover-text-duration: 1.25s;
    --cover-quote-duration: 1.2s;
    --cover-blackout-duration: 1.2s;
    --cover-video-duration: 2.2s;
    --cover-delay-headline: 0.6s;
    --cover-delay-media: 1.95s;
    --cover-delay-blackout: 1.8s;
    --cover-delay-content: 3.6s;
    --cover-delay-quote: 5.8s;
    /* Top-line + bottom-line: same beat, slightly after main text / quote */
    --cover-delay-labels-after-content: 4.05s;
    --cover-delay-labels-after-quote: 6.25s;
    --cover-delay-quote-no-video: 1200ms;
    --cover-delay-labels-after-quote-no-video: 1650ms;
    --cover-delay-quote-no-video-headline: 2s;
}

/* TODO: Refactor? */
.cover h1 {
    text-align: center;
    font-style: normal;
    font-weight: 800;
    font-size: 40px;
    line-height: 48px; 
    text-transform: uppercase;
}

.cover h1 span {
    display: block;
}

.cover h1 span:not(:only-child):last-child {
    margin-top: var(--premium-big-gap);
}

.cover .relative {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.cover .background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    height: 100%;
}

/* Same overlay behavior as two-column: fixed dark edges, variable middle stop */
.cover .background::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, var(--cover-overlay-mid, 0.5)) 50%,
        #000 100%);
}

.cover .background img,
.cover .background video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

@keyframes coverTextReveal {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coverHeadlineReveal {
    from {
        opacity: 0;
        transform: translateY(64px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coverQuoteFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coverBlackIntroReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes coverVideoTopReveal {
    from {
        clip-path: inset(0 0 100% 0);
    }

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

.cover.cover-intro-sequence:not(.cover-intro-started) .background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    opacity: 1;
}

.cover.cover-intro-sequence:not(.cover-intro-started) .video-wrapper {
    clip-path: inset(0 0 100% 0);
}

.cover.cover-intro-sequence:not(.cover-intro-started) .content-wrapper > *:not(.headline) {
    opacity: 0;
    transform: translateY(36px);
}

.cover.cover-intro-sequence:not(.cover-intro-started) .content-wrapper .headline h1 {
    opacity: 0;
    transform: translateY(64px);
}

.cover.cover-intro-sequence:not(.cover-intro-started) .content-wrapper .headline .top-line {
    opacity: 0;
    transform: translateY(32px);
}

.cover.cover-intro-sequence.cover-intro-started .background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    animation: coverBlackIntroReveal var(--cover-blackout-duration) ease forwards;
    animation-delay: var(--cover-delay-blackout);
    will-change: opacity;
}

.cover.cover-intro-sequence.cover-intro-started .video-wrapper {
    clip-path: inset(0 0 100% 0);
    animation: coverVideoTopReveal var(--cover-video-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-media);
    will-change: clip-path;
}

.cover.cover-intro-sequence.cover-intro-started .background video {
    opacity: 1;
    animation: none;
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper > *:not(.headline) {
    opacity: 0;
    animation: coverTextReveal var(--cover-text-duration) var(--gb-ease-standard) forwards;
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper .headline h1 {
    opacity: 0;
    animation: coverHeadlineReveal var(--cover-headline-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-headline);
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper .headline .top-line {
    opacity: 0;
    transform: translateY(32px);
    animation: coverTextReveal var(--cover-text-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-labels-after-content);
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper .entry-content,
.cover.cover-intro-sequence.cover-intro-started .content-wrapper .btn-secondary {
    animation-delay: var(--cover-delay-content);
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper .bottom-line {
    animation-delay: var(--cover-delay-labels-after-content);
}

.cover.cover-intro-sequence.cover-intro-started .content-wrapper .entry-content--quote .quote-wrapper {
    opacity: 0;
    transform: translateY(32px);
    animation: coverQuoteFadeUp var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-quote);
}

.cover.cover-intro-sequence.cover-intro-started.cover-has-quote-wrapper .content-wrapper .bottom-line {
    opacity: 0;
    transform: translateY(32px);
    animation: coverQuoteFadeUp var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-labels-after-quote);
}

/* Intro + quote: labels together, shortly after quote-wrapper */
.cover.cover-intro-sequence.cover-intro-started.cover-has-quote-wrapper .content-wrapper .headline .top-line {
    opacity: 0;
    transform: translateY(32px);
    animation: coverQuoteFadeUp var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-labels-after-quote);
}

/* Non-video covers with quote: set explicit initial states */
.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .headline h1,
.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .headline .top-line,
.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .bottom-line {
    opacity: 0;
    transform: translateY(32px);
}

.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate.cover-quote-in-view .content-wrapper .headline h1 {
    animation: coverHeadlineReveal var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-quote-no-video-headline);
}

.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate.cover-quote-in-view .content-wrapper .headline .top-line,
.cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate.cover-quote-in-view .content-wrapper .bottom-line {
    animation: coverQuoteFadeUp var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-labels-after-quote-no-video);
}

/* Covers without video intro: quote fades up when cover is in view */
.cover:not(.cover-intro-sequence).cover-quote-animate .content-wrapper .entry-content--quote .quote-wrapper {
    opacity: 0;
    transform: translateY(32px);
}

.cover:not(.cover-intro-sequence).cover-quote-animate.cover-quote-in-view .content-wrapper .entry-content--quote .quote-wrapper {
    animation: coverQuoteFadeUp var(--cover-quote-duration) var(--gb-ease-standard) forwards;
    animation-delay: var(--cover-delay-quote-no-video);
}

@media (prefers-reduced-motion: reduce) {
    .cover.cover-intro-sequence .background::before {
        animation: none;
        opacity: 0;
    }

    .cover.cover-intro-sequence .video-wrapper {
        animation: none;
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    .cover.cover-intro-sequence .background video,
    .cover.cover-intro-sequence .content-wrapper > * {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cover.cover-intro-sequence .content-wrapper .entry-content--quote .quote-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cover:not(.cover-intro-sequence).cover-quote-animate .content-wrapper .entry-content--quote .quote-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .headline h1,
    .cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .headline .top-line,
    .cover:not(.cover-intro-sequence).cover-has-quote-wrapper.cover-quote-animate .content-wrapper .bottom-line {
        animation: none;
        opacity: 1;
        transform: none;
    }

}

.cover .headline >*,
.cover .bottom-line {
    max-width: 1006px;
}

.cover .headline {
    display: flex;
    flex-direction: column;
    gap: var(--premium-big-gap);
}

.cover .headline .top-line {
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    font-family: "Nicky Sans", nicky-sans, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px; /* 133.333% */
}

.cover .headline .top-line span {
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    font-family: "Nicky Sans", nicky-sans, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.cover .headline .top-line,
.cover .content-wrapper .bottom-line {
    font-size: 16px;
    line-height: 28px;
}

.cover .container {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 10;
    height: 100%;
    width: 100%;
    /* padding: 45px 20px 0 20px; */
}

.cover .content-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: var(--premium-big-gap);
    padding: calc(40px + 6dvw) 0;
    width: 100%;
    /* max-width: 768px; */
}

@media (max-width: 1023px) {
    .cover .content-wrapper {
        row-gap: 16px;
    }
}

.cover .content-wrapper .labels {
    margin-top: 24px;
}

.cover .content-wrapper .entry-content {
    display: flex;
    width: 100%;
    max-width: 1006px;
    flex-direction: column;
    gap: 24px;
}

/* Quote style */
.cover .content-wrapper .entry-content--quote {
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 800;
    line-height: 56px;
}

.cover .content-wrapper .entry-content--quote .quote-wrapper {
    text-align: center;
    font-size: 26px;
    line-height: 28px;
    font-style: normal;
    font-weight: 800;
    display: block;
}

/* Content style */
.cover .content-wrapper .entry-content--content {
    text-align: center;
    font-family: "Nicky Sans", nicky-sans, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
}

.cover .content-wrapper .bottom-line {
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    font-family: "Nicky Sans", nicky-sans, sans-serif;
    font-style: normal;
    font-weight: 400;
}

@media (min-width: 1024px) {
    /* .cover .container {
        padding: 0 64px;
    } */

    .cover .content-wrapper .entry-content--quote .quote-wrapper {
        font-size: 48px;
        line-height: 56px;
    }

    .cover .content-wrapper .entry-content--content {
        font-size: 32px;
        line-height: 40px;
    }

    .cover .headline .top-line,
    .cover .content-wrapper .bottom-line {
        font-size: 24px;
        line-height: 32px;
    }

    .cover h1 {
        font-size: 64px;
        line-height: 72px;
    }
}

@media (min-width: 768px) {}

@media (min-width: 1200px) {}
