.intro-prototype-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px auto 0;
}

.intro-prototype-button {
    min-height: var(--tap-size);
    margin: 0;
    padding: 0 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.intro-prototype-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.reveal-scroll-prototype {
    --reveal-bg: #f1eadf;
    --reveal-bg-2: #e7dac8;
    --reveal-glow: rgba(95, 140, 78, 0.26);
    position: fixed;
    inset: 0;
    z-index: 60;
    min-height: var(--viewport-height);
    color: #31422f;
    background: var(--reveal-bg) url('./assets/paper_main_moretexture.png') center / min(1400px, 120vw) auto repeat;
    font-family: 'Nanum Myeongjo', 'Noto Serif KR', serif;
    overflow: hidden;
    overscroll-behavior: none;
    pointer-events: auto;
    touch-action: none;
}

.reveal-scroll-prototype__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(241, 234, 223, .86) 0%, rgba(231, 218, 200, .74) 50%, rgba(241, 234, 223, .88) 100%),
        url('./assets/paper_main_moretexture.png') center / min(1400px, 120vw) auto repeat;
}

.reveal-scroll-prototype__band {
    position: absolute;
    left: -20%;
    width: 140%;
    height: 36vmin;
    filter: blur(52px);
    opacity: .8;
    will-change: transform;
}

.reveal-scroll-prototype__band--a {
    top: 6%;
    background: radial-gradient(60% 100% at 30% 50%, rgba(168, 201, 168, 0.34), transparent 72%);
    animation: reveal-scroll-drift-a 46s ease-in-out infinite alternate;
}

.reveal-scroll-prototype__band--b {
    top: 42%;
    background: radial-gradient(60% 100% at 65% 50%, rgba(150, 196, 188, 0.30), transparent 72%);
    animation: reveal-scroll-drift-b 54s ease-in-out infinite alternate;
}

.reveal-scroll-prototype__band--c {
    top: 72%;
    background: radial-gradient(60% 100% at 45% 50%, rgba(196, 214, 178, 0.28), transparent 72%);
    animation: reveal-scroll-drift-c 61s ease-in-out infinite alternate;
}

@keyframes reveal-scroll-drift-a {
    from { transform: translate3d(-3%, 0, 0); }
    to { transform: translate3d(4%, -1.5%, 0); }
}

@keyframes reveal-scroll-drift-b {
    from { transform: translate3d(4%, 1%, 0); }
    to { transform: translate3d(-4%, -1%, 0); }
}

@keyframes reveal-scroll-drift-c {
    from { transform: translate3d(-5%, -1%, 0); }
    to { transform: translate3d(3%, 1.5%, 0); }
}

.reveal-scroll-prototype__close {
    position: fixed;
    top: calc(var(--safe-top) + 12px);
    right: calc(var(--safe-right) + 12px);
    z-index: 5;
    width: var(--tap-size);
    height: var(--tap-size);
    padding: 0;
    color: rgba(49, 66, 47, .76);
    background: rgba(238, 243, 233, .68);
    border: 1px solid rgba(76, 112, 68, .16);
    border-radius: 999px;
    font: inherit;
    font-size: 24px;
    line-height: 1;
}

.reveal-scroll-prototype__progress {
    position: fixed;
    z-index: 4;
    left: 50%;
    bottom: clamp(20px, 7vh, 54px);
    width: min(86vw, 340px);
    color: rgba(70, 101, 64, .76);
    transform: translateX(-50%);
    pointer-events: none;
}

.reveal-scroll-prototype__progress.is-selectable {
    pointer-events: auto;
}

.reveal-scroll-prototype__progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-family: 'Noto Serif KR', serif;
    font-size: .72rem;
    letter-spacing: .04em;
}

.reveal-scroll-prototype__progress-track {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: -12px -8px;
    padding: 12px 8px;
}

.reveal-scroll-prototype__progress-step {
    position: relative;
    height: 36px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent;
    cursor: default;
}

.reveal-scroll-prototype__progress-step::before {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 50%;
    height: 8px;
    border-radius: 999px;
    background: rgba(76, 112, 68, .20);
    transform: translateY(-50%);
    transition: background-color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.reveal-scroll-prototype__progress-step.is-complete {
    cursor: pointer;
}

.reveal-scroll-prototype__progress-step.is-complete::before {
    background: rgba(76, 112, 68, .50);
}

.reveal-scroll-prototype__progress-step.is-active {
    cursor: pointer;
}

.reveal-scroll-prototype__progress-step.is-active::before {
    background: rgba(76, 112, 68, .86);
    transform: translateY(-50%) scaleY(1.25);
}

.reveal-scroll-prototype__progress-step.is-locked {
    opacity: 1;
}

.reveal-scroll-prototype__progress-step.is-locked::before {
    opacity: .32;
}

.reveal-scroll-prototype__progress-step:disabled {
    cursor: default;
}

.reveal-scroll-prototype__progress-step:focus-visible {
    outline: 2px solid rgba(76, 112, 68, .7);
    outline-offset: 4px;
}

.reveal-scroll-prototype__line-nav {
    position: fixed;
    z-index: 4;
    top: 50%;
    right: clamp(14px, 5vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.reveal-scroll-prototype__line-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(76, 112, 68, .13);
    box-shadow: 0 0 0 1px rgba(76, 112, 68, .07);
    transition: transform 520ms ease, background-color 520ms ease;
}

.reveal-scroll-prototype__line-dot.is-seen {
    background: rgba(76, 112, 68, .22);
}

.reveal-scroll-prototype__line-dot.is-active {
    background: rgba(76, 112, 68, .78);
    transform: scale(1.55);
}

.reveal-scroll-prototype__scroller {
    position: relative;
    z-index: 2;
    height: var(--viewport-height);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.reveal-scroll-prototype__cinematic {
    position: relative;
    z-index: 2;
    height: var(--viewport-height);
    overflow: hidden;
    touch-action: manipulation;
}

.reveal-scroll-prototype__cinematic-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: var(--viewport-height);
    padding: 18svh 7vw 22svh;
}

.reveal-scroll-prototype__cinematic-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(86vw, 19em);
    color: transparent;
    background-image: linear-gradient(165deg, #4d7344 0%, #6f9d5b 55%, #a3c489 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: blur(16px) drop-shadow(0 0 14px var(--reveal-glow));
    font-size: clamp(1.38rem, 7.1vw, 3.25rem);
    font-weight: 400;
    letter-spacing: .22em;
    line-height: 1.62;
    opacity: 0;
    overflow-wrap: break-word;
    text-align: center;
    text-wrap: balance;
    transform: translate3d(-50%, calc(-50% + 18px), 0) scale(.985);
    transform-origin: center;
    user-select: none;
    will-change: opacity, filter, letter-spacing, transform;
    word-break: keep-all;
}

.reveal-scroll-prototype--cinematic .reveal-scroll-prototype__line-nav {
    right: clamp(14px, 5vw, 34px);
}

.reveal-scroll-prototype__stage {
    min-height: var(--viewport-height);
    padding: 36svh 7vw 40svh;
}

.reveal-scroll-prototype__line {
    position: relative;
    width: min(78vw, 18em);
    max-width: 19em;
    min-height: 32svh;
    margin: 0 auto 7svh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-image: linear-gradient(165deg, #4d7344 0%, #6f9d5b 55%, #a3c489 100%);
    background-clip: text;
    -webkit-background-clip: text;
    filter:
        blur(var(--line-blur, 9.2px))
        drop-shadow(0 0 calc(4px + (var(--line-emphasis, 0) * 10px)) rgba(95, 140, 78, calc(.10 + (var(--line-emphasis, 0) * .22))));
    font-size: clamp(1.38rem, 7.1vw, 3.25rem);
    font-weight: 400;
    letter-spacing: .012em;
    line-height: 1.62;
    opacity: var(--line-opacity, .26);
    overflow-wrap: break-word;
    text-align: center;
    text-wrap: normal;
    transform: translateY(var(--line-shift, 16px)) scale(var(--line-scale, .98));
    will-change: opacity, filter, letter-spacing, transform;
    word-break: keep-all;
}

.reveal-scroll-prototype__line.is-title {
    font-weight: 700;
}

.reveal-scroll-prototype__line.is-label {
    min-height: 18svh;
    margin-bottom: 2svh;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(.94rem, 4.2vw, 1.32rem);
    font-weight: 600;
}

@media (max-width: 430px) {
    .reveal-scroll-prototype__stage {
        padding: 34svh 5vw 38svh;
    }

    .reveal-scroll-prototype__line {
        width: min(82vw, 17em);
        min-height: 30svh;
        margin-bottom: 6svh;
        font-size: clamp(1.18rem, 6.4vw, 2.2rem);
        line-height: 1.7;
    }

    .reveal-scroll-prototype__cinematic-stage {
        padding: 18svh 5vw 22svh;
    }

    .reveal-scroll-prototype__cinematic-line {
        width: min(90vw, 18em);
        font-size: clamp(1.18rem, 6.4vw, 2.2rem);
        line-height: 1.7;
    }

    .reveal-scroll-prototype__line-nav {
        right: 12px;
        gap: 8px;
    }

    .reveal-scroll-prototype__line-dot {
        width: 6px;
        height: 6px;
    }

    .reveal-scroll-prototype__progress {
        bottom: max(18px, env(safe-area-inset-bottom));
        width: min(78vw, 240px);
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-scroll-prototype__band {
        animation: none;
    }

    .reveal-scroll-prototype__line {
        opacity: 1;
        filter: none;
        letter-spacing: 0;
        transform: none;
    }

    .reveal-scroll-prototype__cinematic-line {
        filter: none;
        letter-spacing: 0;
        transform: translate3d(-50%, -50%, 0);
    }

}
