/* concurrent.day - Generative Stone Garden */
/* Palette: Quarry White #f5f0eb, Obsidian Slate #2d2a26, Jade Concurrent #1a7a6d,
   Marble Vein Gold #c4956a, Gravel Gray #8a8279, Polished Cream #ebe3d9,
   Deep Jade #0d4f45, Aged Parchment #c4b8a8 */

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

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

body {
    background: #f5f0eb;
    color: #2d2a26;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

.garden-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2vw;
}

.modular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Block base */
.block {
    position: relative;
    overflow: hidden;
    border: 1px solid #c4b8a8;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 280px;
}

/* Marble background effect - CSS feTurbulence */
.marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='6' seed='42'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='30'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23m)' fill='%238a8279'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Module A: Hero (3x2) */
.block-hero {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 80vh;
    background: #f5f0eb;
    padding: 0;
}

.block-hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    mix-blend-mode: multiply;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #2d2a26;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #8a8279;
    letter-spacing: 0.02em;
}

/* Module B-D: Concept stones (1x1) */
.block-concept {
    background: #f5f0eb;
    min-height: 280px;
}

.concept-word {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2d2a26;
    letter-spacing: 0.02em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

/* Module E: Panorama vein (full-width, 1 row) */
.block-panorama {
    grid-column: 1 / -1;
    min-height: 160px;
    background: #ebe3d9;
    padding: 0;
}

.block-panorama canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

/* Module F-K: Reading stones */
.block-reading {
    background: #f5f0eb;
}

.block-reading.block-wide {
    grid-column: span 2;
}

.block-reading.block-alt {
    background: #ebe3d9;
}

.reading-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #8a8279;
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.block-wide .reading-text {
    max-width: 720px;
}

/* Vintage SVG overlays */
.vintage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Module L: Enso (2x2, centered) */
.block-enso {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
    background: #f5f0eb;
    justify-self: center;
}

.block-enso canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.enso-signature {
    position: relative;
    z-index: 2;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8a8279;
    margin-top: auto;
    padding-bottom: 2rem;
}

/* Block reveal animation */
.block {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.block.revealed {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .modular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .block-hero {
        grid-column: 1 / -1;
        min-height: 60vh;
    }

    .block-panorama {
        grid-column: 1 / -1;
    }

    .block-reading.block-wide {
        grid-column: 1 / -1;
    }

    .block-enso {
        grid-column: 1 / -1;
        grid-row: span 1;
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .modular-grid {
        grid-template-columns: 1fr;
    }

    .block-hero {
        min-height: 70vh;
    }

    .block-reading.block-wide {
        grid-column: 1;
    }

    .block-enso {
        grid-column: 1;
        min-height: 350px;
    }

    .block {
        min-height: 220px;
    }
}
