/* namu.works - Cinematic Arboriculture Documentary */
/* Colors: #050505 True Black, #0A0A0A Carbon Black, #C8A84C Signal Gold, #C43B3B Alarm Red, #FAFAF5 Film White, #6B6B65 Matte Gray, #F5F5F0 Cream */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #FAFAF5;
    background-color: #050505;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== Cinema Frame ===== */
.cinema-frame {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.letterbox-top,
.letterbox-bottom {
    background: #050505;
    height: 40px;
    flex-shrink: 0;
}

.frame-content {
    flex: 1;
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== Title Card ===== */
.title-content {
    align-items: center;
    text-align: center;
}

.cinema-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #FAFAF5;
    letter-spacing: 0.02em;
    min-height: 1.2em;
    margin-bottom: 1.5rem;
}

.title-divider {
    width: 0;
    height: 1px;
    background: #C8A84C;
    margin: 0 auto 1.5rem;
    transition: width 1.5s ease;
}

.title-divider.drawn {
    width: 120px;
}

.title-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: #6B6B65;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 1s ease;
}

.title-sub.visible {
    opacity: 1;
}

.timing-marker {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #C8A84C;
    opacity: 0.4;
    display: block;
    margin-top: 2rem;
}

/* ===== Chapter Header ===== */
.chapter-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.chapter-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8A84C;
}

.chapter-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: #FAFAF5;
    margin-bottom: 2.5rem;
}

/* ===== Cinema Grid ===== */
.cinema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cinema-visual {
    display: flex;
    justify-content: center;
}

.blueprint {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.cinema-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #F5F5F0;
    line-height: 1.85;
    opacity: 0.8;
}

/* ===== Credits ===== */
.credits-content {
    align-items: center;
    text-align: center;
}

.credits-roll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.credits-roll.visible {
    opacity: 1;
    transform: translateY(0);
}

.credit-line {
    margin-bottom: 0.5rem;
}

.credit-domain {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #FAFAF5;
}

.credit-hangul {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: #C8A84C;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.credit-divider {
    width: 60px;
    height: 1px;
    background: #6B6B65;
    margin: 1.5rem auto;
}

.credit-role {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6B6B65;
}

.credit-detail {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #6B6B65;
    opacity: 0.6;
}

/* ===== Scroll Reveal ===== */
.cinema-grid,
.chapter-header,
.chapter-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cinema-grid.revealed,
.chapter-header.revealed,
.chapter-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .frame-content {
        padding: 3rem 2rem;
    }

    .cinema-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .letterbox-top,
    .letterbox-bottom {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .frame-content {
        padding: 2rem 1.5rem;
    }

    .cinema-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
