/* muhan.studio - Kinetic Minimalism / Avant-Garde Typography */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: #1C1C1E;
    background: #000000;
    overflow-x: hidden;
}

/* ===== Progress Line ===== */
.progress-line {
    position: fixed;
    top: 0;
    left: 10vw;
    width: 80vw;
    height: 1px;
    background: #B8B0A8;
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #E63A2E;
    transition: width 100ms linear;
}

/* ===== Red Dot Cursor ===== */
.red-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E63A2E;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, -50%);
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .red-dot {
        display: block;
    }
    body {
        cursor: none;
    }
}

/* ===== Acts ===== */
.act {
    min-height: 200vh;
    position: relative;
    overflow: hidden;
}

.act-dark {
    background: #000000;
    color: #F7F3EE;
}

.act-light {
    background: #F7F3EE;
    color: #1C1C1E;
}

/* ===== Transition Zones ===== */
.transition-zone {
    height: 100vh;
}

.transition-dark-to-light {
    background: linear-gradient(180deg, #000000, #F7F3EE);
}

.transition-light-to-dark {
    background: linear-gradient(180deg, #F7F3EE, #000000);
}

/* ===== Act I: The Threshold ===== */
.act-threshold {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-character {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: 50vw;
    color: #F7F3EE;
    line-height: 1;
    animation: breathe-char 6s ease-in-out infinite;
    user-select: none;
}

@keyframes breathe-char {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* ===== Act II: The Corridor ===== */
.act-corridor {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.corridor-scroll {
    display: flex;
    min-width: max-content;
    height: 100vh;
}

.corridor-piece {
    width: 60vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    margin-right: 20vw;
    scroll-snap-align: start;
}

.piece-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1C1C1E;
    margin-bottom: 1.5rem;
}

.piece-desc {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: #3A3A3C;
    max-width: 38ch;
}

/* ===== Act III: The Discipline ===== */
.act-discipline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.discipline-content {
    max-width: 38ch;
    padding: 0 2rem;
}

.discipline-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: #1C1C1E;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.discipline-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.discipline-space {
    height: 50vh;
}

.discipline-emphasis {
    font-weight: 400;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.red-word {
    color: #E63A2E;
}

/* ===== Act IV: The Infinite ===== */
.act-infinite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.generative-lines {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.generative-lines svg {
    width: 80vw;
    height: 80vh;
}

.gen-line {
    stroke: #3A3A3C;
    stroke-width: 0.8;
    stroke-linecap: round;
}

.infinite-info {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.infinite-info.revealed {
    opacity: 1;
    transform: translateY(0);
}

.studio-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #F7F3EE;
}

.studio-meta {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #B8B0A8;
    letter-spacing: 0.05em;
}

.red-dot-static {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E63A2E;
    margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-character {
        font-size: 40vw;
    }

    .corridor-piece {
        width: 100vw;
        margin-right: 0;
        padding: 2rem;
    }

    .act-corridor {
        min-height: auto;
    }

    .corridor-scroll {
        flex-direction: column;
        min-width: auto;
        height: auto;
    }

    .corridor-piece {
        height: auto;
        min-height: 80vh;
    }
}
