/* ================================================
   PARALIGM.COM — Pop-Art Urban Paradigm Wall
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F8F0E0;
    color: #5A4A30;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Generative Background Canvas --- */
#generative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

/* --- Modular Grid Wall --- */
.paradigm-wall {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 20px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Module Base --- */
.module {
    border: 3px solid #3A3020;
    border-radius: 0;
    background-color: #FFF8EC;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.module.revealed {
    opacity: 1;
    transform: scale(1);
}

.module-inner {
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* --- Halftone Dot Background --- */
.halftone {
    background-image: radial-gradient(#C0A878 1px, transparent 1px);
    background-size: 6px 6px;
}

.halftone .module-inner {
    background-color: rgba(255, 248, 236, 0.85);
}

/* --- Kinetic Typography --- */
.kinetic-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: #2A2010;
    letter-spacing: -0.03em;
    line-height: 1.05;
    animation: kineticWeight 5s ease-in-out infinite, kineticSpacing 3s ease-in-out infinite;
}

.kinetic-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #2A2010;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
    animation: kineticWeight 5s ease-in-out infinite, kineticSpacing 3s ease-in-out infinite;
}

@keyframes kineticWeight {
    0%, 100% { font-variation-settings: 'wght' 500; }
    50% { font-variation-settings: 'wght' 800; }
}

@keyframes kineticSpacing {
    0%, 100% { letter-spacing: -0.03em; }
    50% { letter-spacing: 0.01em; }
}

/* --- Pop Labels --- */
.pop-label {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #D09040;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-transform: uppercase;
    display: inline-block;
}

.pop-label-large {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
}

/* --- Body Text --- */
.module p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    color: #5A4A30;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
}

/* --- City Stamp Icons --- */
.city-stamp {
    width: 80px;
    height: 80px;
    color: #5A4A30;
    opacity: 0.65;
    margin-bottom: 12px;
}

/* --- Module Sizing & Placement --- */

/* Hero: spans 2 columns, tall */
.module-hero {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 360px;
    background-color: #FFF8EC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-hero .module-inner {
    text-align: center;
    align-items: center;
}

.module-hero .pop-label {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-top: -8px;
}

/* Manifesto: spans 2 columns */
.module-manifesto {
    grid-column: span 2;
    min-height: 180px;
}

/* Stamp module */
.module-stamp {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-stamp .module-inner {
    align-items: center;
    text-align: center;
}

/* Ideas module */
.module-ideas {
    grid-column: span 2;
    min-height: 160px;
}

/* Energy pop module */
.module-energy {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D09040;
}

.module-energy .module-inner {
    align-items: center;
    text-align: center;
}

.module-energy .pop-label-large {
    color: #FFF8EC;
    text-shadow: 3px 3px 0 #3A3020;
}

.module-energy.halftone {
    background-image: radial-gradient(#C0A878 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    background-color: #D09040;
}

.module-energy.halftone .module-inner {
    background-color: transparent;
}

/* Kinetic module */
.module-kinetic {
    min-height: 160px;
}

/* Subway stamp module */
.module-subway {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-subway .module-inner {
    align-items: center;
    text-align: center;
}

/* Statement module: wide */
.module-statement {
    grid-column: span 3;
    min-height: 180px;
}

/* Accent module */
.module-accent {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D04030;
}

.module-accent .module-inner {
    align-items: center;
    text-align: center;
}

.module-accent .pop-label-large {
    color: #FFF8EC;
    text-shadow: 3px 3px 0 #3A3020;
}

/* Generative module: spans 2 */
.module-generative {
    grid-column: span 2;
    min-height: 180px;
}

/* Sign stamp module */
.module-sign {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-sign .module-inner {
    align-items: center;
    text-align: center;
}

.module-sign .city-stamp {
    width: 100px;
    height: 120px;
}

/* Philosophy module: spans 2 */
.module-philosophy {
    grid-column: span 2;
    min-height: 180px;
}

/* --- Hover Effects --- */
.module:hover {
    z-index: 5;
}

.module::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #D09040;
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
    z-index: 3;
}

.module:hover::after {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .paradigm-wall {
        grid-template-columns: repeat(3, 1fr);
        padding: 16px;
    }

    .module-hero {
        grid-column: span 2;
        grid-row: span 2;
    }

    .module-statement {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .paradigm-wall {
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
    }

    .module-hero {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 280px;
    }

    .module-manifesto {
        grid-column: span 2;
    }

    .module-ideas {
        grid-column: span 2;
    }

    .module-statement {
        grid-column: span 2;
    }

    .module-generative {
        grid-column: span 2;
    }

    .module-philosophy {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .paradigm-wall {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .module-hero,
    .module-manifesto,
    .module-ideas,
    .module-statement,
    .module-generative,
    .module-philosophy {
        grid-column: span 1;
    }

    .module-hero {
        min-height: 240px;
    }

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