/* ===========================================
   munju.org — Anti-Design Activist Aesthetic
   Colors: #E83090, #FF6B20, #F0E8D0, #1A1810, #2A8878, #D8C878, #7A7A6A
   Font: Recursive (variable)
   Animations: IntersectionObserver triggers.
   =========================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 400;
    font-variation-settings: "CASL" 0, "MONO" 0;
    color: #1A1810;
    background: #F0E8D0;
    overflow-x: hidden;
    width: 100vw;
}

/* --- TYPOGRAPHY SYSTEM --- */

/* Headlines — weight 900, casual max, misregistration */
.banner-title,
.section-headline {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 900;
    font-variation-settings: "CASL" 1, "MONO" 0;
    line-height: 1.05;
    text-transform: none;
}

/* Body text — weight 400, casual 0 */
.section-body p,
.program-desc {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 400;
    font-variation-settings: "CASL" 0, "MONO" 0;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.8;
}

/* Manifesto points — weight 700, mono 1 */
.manifesto-point .point-text {
    font-family: 'Recursive', monospace;
    font-weight: 700;
    font-variation-settings: "CASL" 0, "MONO" 1;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
}

.manifesto-point .point-number {
    font-family: 'Recursive', monospace;
    font-weight: 900;
    font-variation-settings: "CASL" 1, "MONO" 1;
    font-size: clamp(28px, 3vw, 40px);
    color: #E83090;
    line-height: 1;
}

/* Vintage stamp — weight 300, casual max, uppercase, rotated */
.vintage-stamp {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 300;
    font-variation-settings: "CASL" 1, "MONO" 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    transform: rotate(-1.5deg);
    color: #7A7A6A;
}

/* --- MISREGISTRATION TEXT SHADOW --- */
.banner-title {
    text-shadow:
        2px 2px 0 rgba(42, 136, 120, 0.4),
        -1px -1px 0 rgba(255, 107, 32, 0.3);
    transition: text-shadow 0.2s ease;
}

.banner-title:hover {
    text-shadow:
        4px 4px 0 rgba(42, 136, 120, 0.4),
        -2px -2px 0 rgba(255, 107, 32, 0.3);
}

.section-headline {
    text-shadow:
        2px 2px 0 rgba(232, 48, 144, 0.4),
        -1px -1px 0 rgba(42, 136, 120, 0.3);
    transition: text-shadow 0.2s ease;
}

.section-headline:hover {
    text-shadow:
        4px 4px 0 rgba(232, 48, 144, 0.4),
        -2px -2px 0 rgba(42, 136, 120, 0.3);
}

/* --- PAPER TEXTURE OVERLAY --- */
.banner-texture-overlay,
.section-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(26, 24, 16, 0.15) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

.banner-texture-overlay.visible,
.section-texture-overlay.visible {
    opacity: 1;
}

/* Scroll-responsive texture intensity on cream sections */
.pamphlet-cream .section-texture-overlay {
    transition: opacity 0.3s ease;
}

/* --- PROTEST BANNER (HERO) --- */
#protest-banner {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 500px;
    background: linear-gradient(135deg, #E83090 0%, #FF6B20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    animation: bannerFlash 0.3s ease-out 0s forwards;
}

@keyframes bannerFlash {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#protest-banner .banner-texture-overlay {
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(26, 24, 16, 0.2) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
}

.banner-title {
    font-size: clamp(40px, 7vw, 100px);
    color: #F0E8D0;
    margin-bottom: 0.15em;
    animation: misregShift 0.2s ease-out 0.5s both;
}

@keyframes misregShift {
    0% {
        text-shadow:
            6px 6px 0 rgba(42, 136, 120, 0.4),
            -3px -3px 0 rgba(255, 107, 32, 0.3);
    }
    100% {
        text-shadow:
            2px 2px 0 rgba(42, 136, 120, 0.4),
            -1px -1px 0 rgba(255, 107, 32, 0.3);
    }
}

.banner-subtitle {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 900;
    font-variation-settings: "CASL" 1, "MONO" 0;
    font-size: clamp(32px, 5vw, 72px);
    color: #D8C878;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

.banner-content .vintage-stamp {
    color: #F0E8D0;
    opacity: 0.6;
    margin-top: 1em;
}

/* --- VINTAGE MOTIF OVERLAYS --- */
.vintage-motif {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.vintage-motif:hover {
    transform: rotate(5deg);
}

.motif-1 {
    top: 10%;
    left: 5%;
    width: 50px;
    height: 50px;
}

.motif-2 {
    bottom: 15%;
    right: 8%;
    width: 35px;
    height: 35px;
}

.motif-3 {
    bottom: 10%;
    left: 12%;
    width: 70px;
    height: 25px;
}

.motif-4 {
    position: absolute;
    bottom: 8%;
    right: 5%;
    width: 45px;
    height: 55px;
}

.motif-5 {
    position: absolute;
    top: 5%;
    right: 6%;
    width: 65px;
    height: 45px;
}

/* --- PAMPHLET SECTIONS --- */
.pamphlet-section {
    position: relative;
    width: 100vw;
    padding: 0;
    overflow: hidden;
    /* Full-bleed vertical wipe animation */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease-out;
}

.pamphlet-section.visible {
    clip-path: inset(0 0 0% 0);
}

.pamphlet-cream {
    background: #F0E8D0;
    color: #1A1810;
}

.pamphlet-dark {
    background: #1A1810;
    color: #F0E8D0;
}

.pamphlet-dark .section-headline {
    color: #F0E8D0;
    text-shadow:
        2px 2px 0 rgba(232, 48, 144, 0.4),
        -1px -1px 0 rgba(216, 200, 120, 0.3);
}

.pamphlet-dark .section-headline:hover {
    text-shadow:
        4px 4px 0 rgba(232, 48, 144, 0.4),
        -2px -2px 0 rgba(216, 200, 120, 0.3);
}

.pamphlet-dark .section-body p,
.pamphlet-dark .program-desc {
    color: #F0E8D0;
    opacity: 0.9;
}

.section-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 0;
}

.section-headline {
    font-size: clamp(40px, 7vw, 100px);
    margin-bottom: 0.5em;
    color: #1A1810;
}

.section-body p {
    color: #1A1810;
    margin-bottom: 1.5em;
    max-width: 800px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* --- MANIFESTO NETWORK --- */
.manifesto-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 0;
}

.manifesto-network {
    position: relative;
    min-height: 600px;
}

.manifesto-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.manifesto-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.2s ease-out, filter 0.3s ease;
}

.manifesto-line.drawn {
    stroke-dashoffset: 0;
}

.manifesto-line.glow {
    filter: drop-shadow(0 0 6px rgba(42, 136, 120, 0.6));
}

.manifesto-node {
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.manifesto-node.visible {
    opacity: 1;
}

.manifesto-points {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
    padding-top: 32px;
}

.manifesto-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.manifesto-point.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-point:hover .point-number {
    transform: scale(1.1);
}

.point-number {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.point-text {
    color: #1A1810;
}

/* --- PROGRAMS GRID --- */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 16px;
}

.program-block {
    padding: 32px 0;
    border-top: 2px solid #E83090;
}

.program-title {
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 700;
    font-variation-settings: "CASL" 1, "MONO" 0;
    font-size: clamp(20px, 2.5vw, 30px);
    color: #D8C878;
    margin-bottom: 12px;
    text-shadow:
        2px 2px 0 rgba(232, 48, 144, 0.3);
    transition: text-shadow 0.2s ease;
}

.program-title:hover {
    text-shadow:
        4px 4px 0 rgba(232, 48, 144, 0.3);
}

/* --- CONTACT BLOCK --- */
.contact-block {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 2px solid #E83090;
}

.contact-label {
    font-family: 'Recursive', monospace;
    font-weight: 300;
    font-variation-settings: "CASL" 1, "MONO" 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7A7A6A;
    display: block;
    margin-bottom: 8px;
}

.contact-value {
    font-family: 'Recursive', monospace;
    font-weight: 700;
    font-variation-settings: "CASL" 0, "MONO" 1;
    font-size: clamp(20px, 3vw, 36px);
    color: #E83090;
}

/* --- VINTAGE COLLAGE FOOTER --- */
#collage-footer {
    position: relative;
    width: 100vw;
    background: #1A1810;
    padding: 80px 0 40px;
    overflow: hidden;
}

.collage-items {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    min-height: 300px;
}

.collage-text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid rgba(240, 232, 208, 0.15);
    font-family: 'Recursive', monospace, sans-serif;
    font-weight: 700;
    font-variation-settings: "CASL" 1, "MONO" 0;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #F0E8D0;
    transition: transform 0.3s ease;
}

.collage-text-block:hover {
    transform: rotate(0deg) scale(1.02);
}

.collage-detail {
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7A7A6A;
}

/* Slight rotations for collage effect */
.collage-1 {
    transform: rotate(-1.5deg);
    background: rgba(232, 48, 144, 0.08);
}

.collage-2 {
    transform: rotate(0.8deg);
    background: rgba(42, 136, 120, 0.08);
}

.collage-3 {
    transform: rotate(-0.5deg);
    background: rgba(255, 107, 32, 0.08);
    font-size: clamp(18px, 2vw, 28px);
}

.collage-frame {
    border: 2px solid rgba(240, 232, 208, 0.1);
    min-height: 100px;
    position: relative;
}

.collage-4 {
    transform: rotate(2deg);
    background:
        linear-gradient(45deg, rgba(232, 48, 144, 0.05) 0%, rgba(255, 107, 32, 0.05) 100%);
    grid-row: span 1;
}

.collage-5 {
    transform: rotate(-1deg);
    background:
        linear-gradient(135deg, rgba(42, 136, 120, 0.05) 0%, rgba(216, 200, 120, 0.05) 100%);
}

.collage-6 {
    transform: rotate(1.2deg);
    background: rgba(216, 200, 120, 0.06);
}

.collage-7 {
    transform: rotate(-0.8deg);
    background: rgba(232, 48, 144, 0.06);
}

.collage-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(122, 122, 106, 0.2);
    border-radius: 0;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(240, 232, 208, 0.1);
}

.footer-bottom .vintage-stamp {
    color: #7A7A6A;
    opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .manifesto-points {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .collage-items {
        grid-template-columns: 1fr 1fr;
    }

    .section-inner,
    .manifesto-inner {
        width: 90%;
        padding: 48px 0;
    }

    .banner-title {
        font-size: clamp(36px, 10vw, 70px);
    }

    .banner-subtitle {
        font-size: clamp(28px, 8vw, 50px);
    }
}

@media (max-width: 480px) {
    .collage-items {
        grid-template-columns: 1fr;
    }

    .manifesto-point {
        flex-direction: column;
        gap: 8px;
    }
}
