/* ============================================
   MONOPOLE.ONE — Graffiti-Tagged Broken Manifesto
   ============================================ */

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

:root {
    --soot-black: #1A1410;
    --warm-dark-brown: #4A4030;
    --burnt-orange: #E08030;
    --concrete-grey: #D0C8C0;
    --wall-white: #F0ECE4;
    --drip-dark: #2A2420;
    --spray-fade: #C08020;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--concrete-grey);
    color: var(--warm-dark-brown);
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* --- STENCIL BACKGROUND TEXTURE --- */
.stencil-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

/* --- ORGANIC BLOBS --- */
.blob {
    position: fixed;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    background: var(--burnt-orange);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 1.5s ease;
}

.blob-1 {
    width: 400px;
    height: 350px;
    top: 10%;
    left: -5%;
    border-radius: 62% 38% 46% 54% / 60% 34% 66% 40%;
}

.blob-2 {
    width: 300px;
    height: 280px;
    top: 35%;
    right: -3%;
    border-radius: 38% 62% 54% 46% / 40% 66% 34% 60%;
}

.blob-3 {
    width: 250px;
    height: 220px;
    top: 60%;
    left: 15%;
    border-radius: 52% 48% 33% 67% / 55% 42% 58% 45%;
}

.blob-4 {
    width: 350px;
    height: 300px;
    top: 80%;
    right: 10%;
    border-radius: 45% 55% 62% 38% / 50% 60% 40% 50%;
}

.blob-5 {
    width: 200px;
    height: 180px;
    top: 5%;
    right: 20%;
    border-radius: 58% 42% 40% 60% / 35% 55% 45% 65%;
}

.blob.visible {
    opacity: 0.12;
}

/* --- TECH STENCILS CONTAINER --- */
.tech-stencils-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.tech-stencil-mark {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.tech-stencil-mark.visible {
    opacity: 0.15;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--soot-black);
    transform: rotate(-2deg);
    letter-spacing: 0.05em;
    line-height: 1.1;
    position: relative;
    z-index: 5;
    opacity: 0;
    animation: scrawlIn 1.2s ease-out 0.3s forwards;
}

.hero-dot {
    color: var(--burnt-orange);
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--warm-dark-brown);
    transform: rotate(1deg);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeSlideUp 1s ease-out 1s forwards;
    position: relative;
    z-index: 5;
}

@keyframes scrawlIn {
    0% {
        opacity: 0;
        transform: rotate(-2deg) translateY(30px) scale(0.95);
        filter: blur(2px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: rotate(-2deg) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: rotate(1deg) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: rotate(1deg) translateY(0);
    }
}

/* --- STENCIL SVGs (Hero) --- */
.stencil-svg {
    position: absolute;
    z-index: 3;
    opacity: 0.7;
}

.stencil-circle {
    top: -5%;
    left: 5%;
    transform: rotate(15deg);
}

.stencil-arrow {
    bottom: 15%;
    right: 8%;
    transform: rotate(-8deg);
}

.stencil-cross {
    top: 20%;
    right: 15%;
    transform: rotate(25deg);
}

.stencil-triangle {
    bottom: 5%;
    left: 10%;
    transform: rotate(-5deg);
}

/* --- DRIP MARKS --- */
.drip-mark {
    position: absolute;
    z-index: 4;
}

.drip-1 {
    top: 25%;
    left: 30%;
}

.drip-2 {
    top: 60%;
    right: 25%;
}

.drip-3 {
    bottom: 20%;
    left: 55%;
}

/* --- TAG LABELS --- */
.tag-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--burnt-orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* --- BROKEN GRID --- */
.broken-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 4rem clamp(1rem, 5vw, 4rem);
    position: relative;
    z-index: 10;
}

.grid-cell {
    background: var(--wall-white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    border-left: 4px solid var(--burnt-orange);
    transition: transform 0.4s ease;
}

.grid-cell::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--drip-dark);
    opacity: 0.15;
    pointer-events: none;
}

.cell-heading {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: var(--soot-black);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    transform: rotate(-1deg);
}

.cell-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    color: var(--warm-dark-brown);
    line-height: 1.7;
}

.cell-stencil {
    display: block;
    width: 100%;
    height: auto;
}

/* --- MANIFESTO GRID LAYOUT --- */
.cell-1 {
    grid-column: 1 / 7;
    grid-row: 1;
    z-index: 3;
    margin-bottom: -2rem;
}

.cell-2 {
    grid-column: 6 / 12;
    grid-row: 1;
    z-index: 2;
    margin-top: 3rem;
    margin-left: -1rem;
}

.cell-3 {
    grid-column: 3 / 10;
    grid-row: 2;
    z-index: 4;
    margin-top: -1rem;
    background: transparent;
    border-left: none;
    padding: 1rem;
}

.cell-3::before {
    display: none;
}

.cell-4 {
    grid-column: 1 / 6;
    grid-row: 3;
    z-index: 3;
    margin-top: -3rem;
}

.cell-5 {
    grid-column: 7 / 13;
    grid-row: 3;
    z-index: 2;
    margin-top: -1rem;
    margin-left: -2rem;
}

/* --- STENCIL WALL SECTION --- */
.stencil-wall-section {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--soot-black);
    overflow: hidden;
}

.stencil-wall-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(42, 36, 32, 0.3) 40px,
            rgba(42, 36, 32, 0.3) 41px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(42, 36, 32, 0.3) 40px,
            rgba(42, 36, 32, 0.3) 41px
        );
    opacity: 0.2;
    pointer-events: none;
}

.wall-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
    position: relative;
}

.wall-stencil {
    display: block;
    margin: 3rem auto;
    opacity: 0.8;
}

.wall-stencil-1 {
    transform: rotate(-1deg);
}

.wall-stencil-2 {
    transform: rotate(2deg);
    margin-left: 10%;
}

.wall-stencil-3 {
    transform: rotate(-1.5deg);
    margin-right: 5%;
    margin-left: auto;
}

.wall-text-block {
    padding: clamp(1.5rem, 3vw, 3rem);
    position: relative;
}

.wall-block-1 {
    transform: rotate(0.5deg);
    border-left: 4px solid var(--burnt-orange);
    margin-left: 5%;
    max-width: 600px;
}

.wall-block-2 {
    transform: rotate(-1deg);
    border-right: 4px solid var(--spray-fade);
    text-align: right;
    margin-left: auto;
    max-width: 550px;
}

.wall-heading {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--wall-white);
    transform: rotate(-1deg);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.wall-body {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--concrete-grey);
    line-height: 1.7;
}

.wall-block-2 .tag-label {
    color: var(--spray-fade);
}

/* --- FIELD THEORY SECTION --- */
.field-section {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--wall-white);
}

.grid-dense {
    grid-template-columns: repeat(12, 1fr);
}

.field-cell-1 {
    grid-column: 1 / 7;
    grid-row: 1;
    z-index: 3;
}

.field-cell-2 {
    grid-column: 6 / 13;
    grid-row: 1;
    z-index: 2;
    margin-top: 4rem;
    margin-left: -1.5rem;
}

.field-cell-3 {
    grid-column: 3 / 9;
    grid-row: 2;
    z-index: 4;
    background: transparent;
    border-left: none;
    margin-top: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-cell-3::before {
    display: none;
}

.field-diagram svg {
    display: block;
}

.field-cell-4 {
    grid-column: 7 / 13;
    grid-row: 2;
    z-index: 3;
    margin-top: 1rem;
    margin-left: -2rem;
}

/* --- TRANSMISSION SECTION --- */
.transmission-section {
    position: relative;
    z-index: 10;
    padding: 8rem 0;
    background: var(--concrete-grey);
    text-align: center;
}

.transmission-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.transmission-stencil,
.transmission-stencil-bottom {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    opacity: 0.6;
}

.transmission-heading {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--soot-black);
    transform: rotate(-1deg);
    margin: 2rem 0 1rem;
    line-height: 1.15;
}

.transmission-text {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--warm-dark-brown);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.transmission-tag {
    margin: 2rem 0;
}

.tag-final {
    font-size: 0.9rem;
    color: var(--spray-fade);
    letter-spacing: 0.2em;
}

/* --- SCROLL ANIMATIONS --- */
.grid-cell,
.wall-text-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.grid-cell.in-view,
.wall-text-block.in-view {
    opacity: 1;
    transform: translateY(0);
}

.grid-cell.in-view[data-rotate="-2"] {
    transform: rotate(-2deg);
}

.grid-cell.in-view[data-rotate="1.5"] {
    transform: rotate(1.5deg);
}

.grid-cell.in-view[data-rotate="-1"] {
    transform: rotate(-1deg);
}

.grid-cell.in-view[data-rotate="2"] {
    transform: rotate(2deg);
}

.grid-cell.in-view[data-rotate="-1.5"] {
    transform: rotate(-1.5deg);
}

.grid-cell.in-view[data-rotate="1"] {
    transform: rotate(1deg);
}

.wall-block-1.in-view {
    transform: rotate(0.5deg);
}

.wall-block-2.in-view {
    transform: rotate(-1deg);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .broken-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .cell-1, .cell-2, .cell-3, .cell-4, .cell-5,
    .field-cell-1, .field-cell-2, .field-cell-3, .field-cell-4 {
        grid-column: 1 / -1;
        grid-row: auto;
        margin: 0;
        margin-top: 0;
        margin-left: 0;
    }

    .cell-2, .cell-5, .field-cell-2, .field-cell-4 {
        margin-left: 1rem;
    }

    .cell-4, .field-cell-1 {
        margin-right: 1rem;
    }

    .stencil-svg {
        transform: scale(0.7);
    }

    .blob {
        transform: scale(0.6);
    }

    .wall-stencil {
        max-width: 90%;
    }

    .wall-block-1,
    .wall-block-2 {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .stencil-svg {
        transform: scale(0.5);
    }

    .blob {
        transform: scale(0.4);
    }
}

/* --- SELECTION STYLING --- */
::selection {
    background: var(--burnt-orange);
    color: var(--wall-white);
}
