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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f2eb;
    color: #0b1a12;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    min-height: 100vh;
    /* palette: #1a3a28 deep forest, #f0ead6 warm parchment */
}

/* === SIDEBAR === */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(200px, 18vw, 280px);
    height: 100vh;
    background-color: #0b1a12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    z-index: 100;
}

#wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.25em;
    color: #f5f2eb;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

#sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nav-marker {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #4a6b52;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-marker:hover,
.nav-marker.active {
    color: #f5f2eb;
    transform: scale(1.2);
}

#sidebar-footer .mono-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #4a6b52;
}

/* === MAIN CONTENT === */
#content {
    margin-left: clamp(200px, 18vw, 280px);
    width: calc(100% - clamp(200px, 18vw, 280px));
}

.movement {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 6vw;
    position: relative;
}

.movement-inner {
    max-width: 900px;
    width: 100%;
}

/* === HERO === */
.hero-title {
    margin-bottom: 3rem;
}

.title-line {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 14rem);
    letter-spacing: 0.12em;
    line-height: 0.85;
    color: #0b1a12;
}

.title-sub {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.12em;
    color: #a83232;
    margin-top: 0.5rem;
}

.hero-decree {
    border-left: 3px solid #a83232;
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.decree-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.7;
    color: #2a2a28;
}

/* === SECTION TITLES === */
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    letter-spacing: 0.12em;
    color: #0b1a12;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #a83232;
    margin-top: 0.5rem;
}

/* === CONTENT GRID === */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.text-block .body-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.8;
    color: #2a2a28;
}

.annotation-block .annotation {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #4a6b52;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-top: 1px solid #d4c9a8;
    border-bottom: 1px solid #d4c9a8;
    padding: 0.75rem 0;
    display: block;
}

/* === GRAFFITI BLOCK === */
.graffiti-block {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(168, 50, 50, 0.05), transparent);
    border-left: 4px solid #1a3a28;
}

.graffiti-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #a83232;
    transform: rotate(-2deg);
    display: block;
    opacity: 0.9;
}

/* === COLLISION GRID === */
.collision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-institution .serif-voice {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.9;
    font-style: italic;
    color: #0b1a12;
}

.column-street .marker-voice {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #a83232;
    transform: rotate(-1deg);
}

/* === STENCIL ART === */
.stencil-art {
    margin-top: 2rem;
}

.stencil-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0.9;
}

.stencil-svg.wide {
    max-width: 600px;
}

/* === FOOTER === */
.footer-mark {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #d4c9a8;
}

.footer-mark .mono-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #4a6b52;
    letter-spacing: 0.05em;
    background-color: #f0ead6;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* === NOISE OVERLAY === */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === SCROLL ANIMATIONS === */
.movement-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.movement-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #sidebar {
        width: 60px;
    }

    #wordmark {
        font-size: 0.9rem;
    }

    #content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    .movement {
        padding: 3rem 1.5rem;
    }

    .collision-grid {
        grid-template-columns: 1fr;
    }

    .nav-marker {
        font-size: 0.9rem;
    }
}
