:root {
    --scrub-pages: 5;
}

.scrub-section {
    height: calc(var(--scrub-pages) * 100vh);
    position: relative;
}

.scrub-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.scrub-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrub-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.30) 0%,
            rgba(10, 10, 10, 0.05) 45%,
            rgba(10, 10, 10, 0.05) 55%,
            rgba(10, 10, 10, 0.50) 100%);
    z-index: 1;
    pointer-events: none;
}

.scrub-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad) 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

.scrub-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scrub-panel[data-phase="1"] {
    justify-content: center;
    align-items: flex-end;
    text-align: left;
}

.scrub-panel[data-phase="2"],
.scrub-panel[data-phase="3"] {
    justify-content: center;
}

.scrub-panel-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 40px;
    border-radius: 4px;
    max-width: 560px;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.74) 0%,
            rgba(10, 10, 10, 0.58) 100%);
    backdrop-filter: blur(20px) saturate(0.75);
    -webkit-backdrop-filter: blur(20px) saturate(0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
}


.scrub-quote {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    font-style: normal;
    text-shadow:
        0 2px 32px rgba(0, 0, 0, 0.95),
        0 1px 6px rgba(0, 0, 0, 0.85);
}

.scrub-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.scrub-heading {
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: 16px;
    text-shadow:
        0 2px 16px rgba(0, 0, 0, 0.9),
        0 1px 4px rgba(0, 0, 0, 0.8);
}

.scrub-body {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.scrub-panel .cs-back {
    margin-bottom: 40px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.scrub-panel .cs-hero__title {
    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.95),
        0 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
}

.scrub-panel .cs-hero__subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
    margin-bottom: 24px;
}

.scrub-panel .cs-hero__tags {
    margin-top: 4px;
}

.scrub-scroll-hint {
    position: absolute;
    bottom: 80px;
    right: var(--pad);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scrub-scroll-hint span {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scrub-hint-track {
    width: 6px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 500px;
    position: relative;
    overflow: hidden;
}

.scrub-hint-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 16px;
    background: var(--muted);
    border-radius: 500px;
    animation: scrub-hint-y 1.6s ease-in-out infinite;
}

@keyframes scrub-hint-y {
    0% {
        transform: translateY(-16px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(48px);
        opacity: 0;
    }
}

.scrub-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scrub-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    z-index: 10;
    transition: width 0.08s linear;
}

@media (max-width: 768px) {
    :root {
        --scrub-pages: 4;
    }

    .scrub-panel {
        padding: 0 var(--pad) 60px;
    }

    .scrub-panel[data-phase="2"],
    .scrub-panel[data-phase="3"] {
        justify-content: flex-end;
    }

    .scrub-panel-inner {
        max-width: 100%;
        padding: 24px 28px;
    }

    .scrub-quote {
        font-size: clamp(22px, 7vw, 36px);
    }

    .scrub-scroll-hint {
        right: 50%;
        transform: translateX(50%);
        bottom: 8px;
        flex-direction: column;
        gap: 6px;
    }

    .scrub-scroll-hint span {
        font-size: 9px;
    }

    .scrub-hint-track {
        width: 1px;
        height: 24px;
    }

    .scrub-hint-thumb {
        width: 1px;
        height: 8px;
        animation: scrub-hint-m-y 1.6s ease-in-out infinite;
    }
}

@keyframes scrub-hint-m-y {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(24px);
        opacity: 0;
    }
}