/* ============================================
   economic.day - Isometric Economic Diorama
   Bento-Box Layout / Pastel Palette / Marble
   ============================================ */

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

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #F4F0EB;
    color: #4E4659;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Marble Texture Mixin via class --- */
.marble-texture {
    position: absolute;
    inset: 0;
    background-color: #F4F0EB;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212,165,165,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212,165,165,0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(196,161,212,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, rgba(212,165,165,0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 30% 30%, rgba(232,224,240,0.2) 0%, transparent 50%);
    background-blend-mode: overlay;
    animation: marbleShimmer 20s ease-in-out infinite;
}

.marble-v2 {
    background-image:
        radial-gradient(ellipse at 60% 30%, rgba(212,165,165,0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 25% 70%, rgba(212,165,165,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(196,161,212,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 50%, rgba(212,165,165,0.18) 0%, transparent 35%);
}

.marble-v3 {
    background-image:
        radial-gradient(ellipse at 40% 60%, rgba(212,165,165,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(196,161,212,0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 80%, rgba(212,165,165,0.22) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 50%, rgba(232,224,240,0.15) 0%, transparent 50%);
}

.marble-v4 {
    background-image:
        radial-gradient(ellipse at 50% 40%, rgba(212,165,165,0.24) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 20%, rgba(196,161,212,0.14) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(212,165,165,0.2) 0%, transparent 45%);
}

.marble-v5 {
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(212,165,165,0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 30%, rgba(127,187,168,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(212,165,165,0.22) 0%, transparent 40%);
}

.marble-v6 {
    background-image:
        radial-gradient(ellipse at 45% 55%, rgba(212,165,165,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 25%, rgba(196,161,212,0.16) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 75%, rgba(212,165,165,0.24) 0%, transparent 40%);
}

.marble-v7 {
    background-image:
        radial-gradient(ellipse at 60% 40%, rgba(212,165,165,0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 80%, rgba(196,161,212,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 60%, rgba(212,165,165,0.15) 0%, transparent 40%);
}

.marble-reflection {
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(212,165,165,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(196,161,212,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(212,165,165,0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 80%, rgba(232,224,240,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(212,165,165,0.22) 0%, transparent 40%),
        radial-gradient(ellipse at 45% 70%, rgba(127,187,168,0.1) 0%, transparent 55%);
    border-radius: 16px;
}

@keyframes marbleShimmer {
    0%, 100% { background-position: 0px 0px; }
    50% { background-position: 4px 3px; }
}

/* --- Progress Indicator --- */
#progress-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 100;
}

.progress-bubble {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #DDD6CE 0%, #C8BFD6 100%);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease;
    box-shadow: 0 2px 6px rgba(200,191,214,0.4);
}

.progress-bubble.active {
    transform: scale(1.35);
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #C4A1D4 0%, #7FBBA8 100%);
    box-shadow: 0 2px 10px rgba(196,161,212,0.5);
}

.progress-bubble.filled {
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #7FBBA8 0%, #5B7B6F 100%);
}

/* --- Ambient Bubbles --- */
#ambient-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0.04;
    animation: bubbleFloat linear infinite;
}

.ab-1 { width: 280px; height: 280px; left: 5%; bottom: -280px; background-color: rgba(196,161,212,0.06); animation-duration: 12s; animation-delay: 0s; }
.ab-2 { width: 200px; height: 200px; left: 25%; bottom: -200px; background-color: rgba(127,187,168,0.05); animation-duration: 14s; animation-delay: 2s; }
.ab-3 { width: 340px; height: 340px; left: 55%; bottom: -340px; background-color: rgba(232,224,240,0.06); animation-duration: 11s; animation-delay: 4s; }
.ab-4 { width: 160px; height: 160px; left: 80%; bottom: -160px; background-color: rgba(242,212,196,0.05); animation-duration: 13s; animation-delay: 1s; }
.ab-5 { width: 240px; height: 240px; left: 40%; bottom: -240px; background-color: rgba(196,161,212,0.04); animation-duration: 10s; animation-delay: 6s; }
.ab-6 { width: 180px; height: 180px; left: 15%; bottom: -180px; background-color: rgba(127,187,168,0.05); animation-duration: 12s; animation-delay: 3s; }
.ab-7 { width: 300px; height: 300px; left: 65%; bottom: -300px; background-color: rgba(212,165,165,0.04); animation-duration: 14s; animation-delay: 5s; }
.ab-8 { width: 220px; height: 220px; left: 90%; bottom: -220px; background-color: rgba(232,224,240,0.05); animation-duration: 11s; animation-delay: 7s; }

@keyframes bubbleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.05; }
    100% { transform: translateY(-120vh) scale(0.8); opacity: 0; }
}

/* --- Atlas Sections --- */
.atlas-section {
    min-height: 100vh;
    padding: 40px 48px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Bento Grid Base --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 1400px;
    background-color: #DDD6CE;
    border-radius: 16px;
    padding: 12px;
    position: relative;
}

/* --- Bento Cell Base --- */
.bento-cell {
    background-color: #F4F0EB;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 180px;
}

/* --- Slide Reveal Animation --- */
.slide-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-reveal[data-direction="left"] { transform: translateX(-80px); }
.slide-reveal[data-direction="right"] { transform: translateX(80px); }
.slide-reveal[data-direction="up"] { transform: translateY(80px); }
.slide-reveal[data-direction="down"] { transform: translateY(-80px); }

.slide-reveal.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================================================
   SECTION 1: OPENING
   ================================================ */
.opening-grid {
    grid-template-rows: auto auto;
    min-height: 80vh;
}

.hero-cell {
    grid-column: 1 / 10;
    grid-row: 1 / 3;
    min-height: 500px;
    background-color: #E8E0F0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Varela Round', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    color: #4A3F6B;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 22px);
    color: #4E4659;
    max-width: 42ch;
    margin: 0 auto;
}

.opening-grid .marble-accent-cell {
    grid-column: 10 / 13;
    grid-row: 1 / 2;
    min-height: 220px;
}

.opening-grid .text-cell {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
    min-height: 220px;
}

/* --- Isometric Cityscape --- */
.isometric-cityscape {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateX(30deg) rotateY(45deg);
    transform-style: preserve-3d;
    perspective: 800px;
    opacity: 0.35;
}

.iso-ground {
    position: absolute;
    width: 360px;
    height: 360px;
    background-color: #D8EDE4;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(212,165,165,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(212,165,165,0.1) 0%, transparent 45%);
    transform: rotateX(90deg) translateZ(-60px);
    border-radius: 4px;
}

.iso-road {
    position: absolute;
    background-color: #DDD6CE;
    border-radius: 2px;
}

.road-h {
    width: 300px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(-59px);
}

.road-v {
    width: 8px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(-59px);
}

/* --- Isometric Buildings --- */
.iso-building {
    position: absolute;
    transform-style: preserve-3d;
}

.iso-building .iso-top {
    position: absolute;
    background-color: #D8EDE4;
    border: 1px solid rgba(91,123,111,0.15);
}

.iso-building .iso-front {
    position: absolute;
    background-color: #C4A1D4;
    border: 1px solid rgba(74,63,107,0.1);
}

.iso-building .iso-side {
    position: absolute;
    background-color: #E8E0F0;
    border: 1px solid rgba(74,63,107,0.08);
}

.building-gdp {
    width: 50px;
    height: 100px;
    left: calc(50% - 90px);
    top: calc(50% - 120px);
}

.building-gdp .iso-top {
    width: 50px; height: 30px; top: 0; left: 0;
    transform: rotateX(60deg) translateZ(15px);
    background-color: #D8EDE4;
}
.building-gdp .iso-front {
    width: 50px; height: 100px; top: 0; left: 0;
    background-color: #C4A1D4;
}
.building-gdp .iso-side {
    width: 30px; height: 100px; top: 0; right: -15px;
    transform: skewY(-30deg);
    background-color: #E8E0F0;
}

.building-inflation {
    width: 35px;
    height: 70px;
    left: calc(50% + 10px);
    top: calc(50% - 90px);
}

.building-inflation .iso-front {
    width: 35px; height: 70px;
    background-color: #F2D4C4;
    border-radius: 17px 17px 0 0;
}
.building-inflation .iso-side {
    width: 20px; height: 70px; right: -10px;
    transform: skewY(-30deg);
    background-color: #D4A5A5;
    border-radius: 0 10px 0 0;
}
.building-inflation .iso-top {
    width: 35px; height: 20px; top: -5px;
    background-color: #F2D4C4;
    border-radius: 50%;
}

.building-interest {
    width: 40px;
    height: 55px;
    left: calc(50% - 30px);
    top: calc(50% - 75px);
}

.building-interest .iso-front {
    width: 40px; height: 55px;
    background-color: #7FBBA8;
}
.building-interest .iso-side {
    width: 24px; height: 55px; right: -12px;
    transform: skewY(-30deg);
    background-color: #5B7B6F;
}
.building-interest .iso-top {
    width: 40px; height: 24px; top: -8px;
    background-color: #D8EDE4;
}

.building-trade {
    width: 45px;
    height: 45px;
    left: calc(50% + 55px);
    top: calc(50% - 65px);
}

.building-trade .iso-front {
    width: 45px; height: 45px;
    background-color: #E8E0F0;
}
.building-trade .iso-side {
    width: 26px; height: 45px; right: -13px;
    transform: skewY(-30deg);
    background-color: #C4A1D4;
}
.building-trade .iso-top {
    width: 45px; height: 26px; top: -8px;
    background-color: #D8EDE4;
}

.building-sm-1 {
    width: 25px; height: 35px;
    left: calc(50% - 60px); top: calc(50% - 55px);
}
.building-sm-1 .iso-front { width: 25px; height: 35px; background-color: #F2D4C4; }
.building-sm-1 .iso-side { width: 15px; height: 35px; right: -7px; transform: skewY(-30deg); background-color: #D4A5A5; }
.building-sm-1 .iso-top { width: 25px; height: 15px; top: -4px; background-color: #D8EDE4; }

.building-sm-2 {
    width: 30px; height: 25px;
    left: calc(50% + 30px); top: calc(50% - 45px);
}
.building-sm-2 .iso-front { width: 30px; height: 25px; background-color: #D8EDE4; }
.building-sm-2 .iso-side { width: 18px; height: 25px; right: -9px; transform: skewY(-30deg); background-color: #5B7B6F; }
.building-sm-2 .iso-top { width: 30px; height: 18px; top: -5px; background-color: #7FBBA8; }

/* ================================================
   TEXT CELLS
   ================================================ */
.text-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
}

.cell-lavender { background-color: #E8E0F0; }
.cell-mint { background-color: #D8EDE4; }
.cell-peach { background-color: #F2D4C4; }

.cell-aphorism {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #4E4659;
    max-width: 42ch;
    line-height: 1.7;
}

.accent-number {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: #7FBBA8;
    display: block;
    margin-bottom: 12px;
}

/* --- Marble Accent Cells --- */
.marble-accent-cell {
    padding: 0;
}

/* ================================================
   SECTION 2: FOUNDATIONS
   ================================================ */
.foundations-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, 1fr);
}

.foundations-grid .concept-cell:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 2; }
.foundations-grid .concept-cell:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 2; }
.foundations-grid .marble-accent-cell:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.foundations-grid .text-cell:nth-child(4) { grid-column: 1 / 5; grid-row: 2 / 3; }
.foundations-grid .concept-cell:nth-child(5) { grid-column: 5 / 9; grid-row: 2 / 3; }
.foundations-grid .concept-cell:nth-child(6) { grid-column: 9 / 13; grid-row: 2 / 3; }
.foundations-grid .marble-accent-cell:nth-child(7) { grid-column: 1 / 4; grid-row: 3 / 4; min-height: 100px; }

/* --- Concept Cells --- */
.concept-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background-color: #F4F0EB;
}

.concept-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #5B7B6F;
    text-align: center;
}

.concept-def {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #4E4659;
    text-align: center;
    max-width: 42ch;
    line-height: 1.6;
}

/* ================================================
   ISOMETRIC OBJECTS
   ================================================ */
.iso-object {
    position: relative;
    width: 100px;
    height: 80px;
    margin-bottom: 8px;
    transform-style: preserve-3d;
}

/* Supply - tall narrow cube */
.iso-supply {
    width: 70px;
    height: 90px;
}
.iso-supply .iso-top {
    position: absolute;
    width: 50px; height: 28px;
    top: 0; left: 10px;
    background-color: #D8EDE4;
    transform: skewX(-30deg);
    border: 1px solid rgba(91,123,111,0.2);
}
.iso-supply .iso-front {
    position: absolute;
    width: 40px; height: 60px;
    bottom: 0; left: 0;
    background-color: #7FBBA8;
    border: 1px solid rgba(91,123,111,0.15);
}
.iso-supply .iso-side {
    position: absolute;
    width: 30px; height: 60px;
    bottom: 0; right: 0;
    background-color: #5B7B6F;
    transform: skewY(-20deg);
    transform-origin: bottom left;
    border: 1px solid rgba(91,123,111,0.1);
}

/* Demand - wider flat cube */
.iso-demand {
    width: 80px;
    height: 70px;
}
.iso-demand .iso-top {
    position: absolute;
    width: 55px; height: 30px;
    top: 0; left: 12px;
    background-color: #F2D4C4;
    transform: skewX(-30deg);
    border: 1px solid rgba(212,165,165,0.3);
}
.iso-demand .iso-front {
    position: absolute;
    width: 45px; height: 40px;
    bottom: 0; left: 0;
    background-color: #C4A1D4;
    border: 1px solid rgba(196,161,212,0.2);
}
.iso-demand .iso-side {
    position: absolute;
    width: 35px; height: 40px;
    bottom: 0; right: 0;
    background-color: #E8E0F0;
    transform: skewY(-20deg);
    transform-origin: bottom left;
    border: 1px solid rgba(196,161,212,0.15);
}

/* Equilibrium - balanced bars */
.iso-equilibrium {
    width: 90px;
    height: 80px;
}
.iso-equilibrium .iso-top {
    position: absolute;
    width: 60px; height: 28px;
    top: 6px; left: 15px;
    background-color: #D8EDE4;
    transform: skewX(-25deg);
    border: 1px solid rgba(91,123,111,0.2);
}
.iso-equilibrium .iso-front {
    position: absolute;
    width: 35px; height: 48px;
    bottom: 0; left: 5px;
    background-color: #7FBBA8;
    border: 1px solid rgba(91,123,111,0.15);
}
.iso-equilibrium .iso-side {
    position: absolute;
    width: 25px; height: 48px;
    bottom: 0; left: 40px;
    background-color: #5B7B6F;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}
.iso-bar {
    position: absolute;
    bottom: 0;
    background-color: #C4A1D4;
    border: 1px solid rgba(196,161,212,0.2);
}
.iso-equilibrium .bar-1 {
    width: 12px; height: 48px; right: 15px;
    background-color: #C4A1D4;
}
.iso-equilibrium .bar-2 {
    width: 12px; height: 48px; right: 0;
    background-color: #E8E0F0;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

/* Scarcity - small incomplete cube */
.iso-scarcity {
    width: 70px;
    height: 65px;
}
.iso-scarcity .iso-top {
    position: absolute;
    width: 45px; height: 22px;
    top: 2px; left: 10px;
    background-color: #F2D4C4;
    transform: skewX(-30deg);
    border: 1px solid rgba(242,212,196,0.3);
    opacity: 0.6;
}
.iso-scarcity .iso-front {
    position: absolute;
    width: 35px; height: 40px;
    bottom: 0; left: 0;
    background-color: #D4A5A5;
    border: 1px solid rgba(212,165,165,0.2);
    border-top: 2px dashed rgba(212,165,165,0.5);
}
.iso-scarcity .iso-side {
    position: absolute;
    width: 28px; height: 40px;
    bottom: 0; right: 5px;
    background-color: #F2D4C4;
    transform: skewY(-20deg);
    transform-origin: bottom left;
    border: 1px solid rgba(242,212,196,0.25);
    border-top: 2px dashed rgba(212,165,165,0.4);
}

.iso-ground-sm {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background-color: #DDD6CE;
    border-radius: 50%;
    opacity: 0.5;
}

/* ================================================
   SECTION 3: MARKETS
   ================================================ */
.markets-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, 1fr);
}

.markets-grid .market-scene-cell { grid-column: 1 / 7; grid-row: 1 / 3; min-height: 360px; }
.markets-grid .text-cell.cell-peach { grid-column: 7 / 10; grid-row: 1 / 2; }
.markets-grid .concept-cell:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.markets-grid .marble-accent-cell { grid-column: 7 / 10; grid-row: 2 / 3; }
.markets-grid .concept-cell:nth-child(5) { grid-column: 10 / 13; grid-row: 2 / 3; }
.markets-grid .text-cell.cell-lavender { grid-column: 1 / 5; grid-row: 3 / 4; min-height: 120px; }

/* --- Marketplace Scene --- */
.market-scene-cell {
    background-color: #E8E0F0;
}

.iso-marketplace {
    position: relative;
    width: 260px;
    height: 120px;
    margin-bottom: 16px;
}

.iso-cube {
    position: absolute;
    width: 55px;
    height: 55px;
}

.producer-cube {
    left: 0;
    bottom: 10px;
}

.producer-cube .iso-top {
    position: absolute;
    width: 40px; height: 22px;
    top: -5px; left: 8px;
    background-color: #E8E0F0;
    transform: skewX(-30deg);
}
.producer-cube .iso-front {
    position: absolute;
    width: 35px; height: 45px;
    bottom: 0; left: 0;
    background-color: #C4A1D4;
}
.producer-cube .iso-side {
    position: absolute;
    width: 22px; height: 45px;
    bottom: 0; right: 0;
    background-color: #E8E0F0;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

.consumer-cube {
    right: 0;
    bottom: 10px;
}

.consumer-cube .iso-top {
    position: absolute;
    width: 40px; height: 22px;
    top: -5px; left: 8px;
    background-color: #D8EDE4;
    transform: skewX(-30deg);
}
.consumer-cube .iso-front {
    position: absolute;
    width: 35px; height: 45px;
    bottom: 0; left: 0;
    background-color: #F2D4C4;
}
.consumer-cube .iso-side {
    position: absolute;
    width: 22px; height: 45px;
    bottom: 0; right: 0;
    background-color: #D4A5A5;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

.trade-bridge {
    position: absolute;
    left: 55px;
    right: 55px;
    bottom: 32px;
    height: 6px;
    background: linear-gradient(90deg, #C4A1D4, #F2D4C4);
    border-radius: 3px;
}

.bridge-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -1px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 0%, #7FBBA8 100%);
    animation: bridgeDotMove 3s ease-in-out infinite;
}

.dot-1 { left: 10%; animation-delay: 0s; }
.dot-2 { left: 40%; animation-delay: 1s; }
.dot-3 { left: 70%; animation-delay: 2s; }

@keyframes bridgeDotMove {
    0%, 100% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(30px); opacity: 1; }
}

.iso-ground-market {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14px;
    background-color: #DDD6CE;
    border-radius: 50%;
    opacity: 0.4;
}

/* --- Price Bars --- */
.iso-price-bars {
    width: 80px;
    height: 75px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 10px;
}

.iso-step {
    width: 12px;
    border-radius: 2px 2px 0 0;
    position: relative;
}

.step-1 { height: 18px; background-color: #D8EDE4; }
.step-2 { height: 28px; background-color: #7FBBA8; }
.step-3 { height: 42px; background-color: #5B7B6F; }
.step-4 { height: 35px; background-color: #7FBBA8; }
.step-5 { height: 22px; background-color: #D8EDE4; }

.iso-step::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 5px;
    height: 100%;
    background-color: rgba(91,123,111,0.2);
    transform: skewY(-20deg);
    transform-origin: top left;
    border-radius: 0 2px 2px 0;
}

/* --- Competition Mini Cubes --- */
.iso-competition {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    justify-content: center;
    padding-bottom: 10px;
}

.iso-mini-cube {
    position: relative;
    width: 26px;
    height: 26px;
}

.iso-mini-cube .iso-top {
    position: absolute;
    width: 20px; height: 10px;
    top: -3px; left: 3px;
    transform: skewX(-30deg);
}
.iso-mini-cube .iso-front {
    position: absolute;
    width: 18px; height: 22px;
    bottom: 0; left: 0;
}
.iso-mini-cube .iso-side {
    position: absolute;
    width: 10px; height: 22px;
    bottom: 0; right: 0;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

.mc-1 .iso-top { background-color: #D8EDE4; }
.mc-1 .iso-front { background-color: #7FBBA8; }
.mc-1 .iso-side { background-color: #5B7B6F; }

.mc-2 .iso-top { background-color: #F2D4C4; }
.mc-2 .iso-front { background-color: #C4A1D4; }
.mc-2 .iso-side { background-color: #E8E0F0; }

.mc-3 .iso-top { background-color: #D8EDE4; }
.mc-3 .iso-front { background-color: #D4A5A5; }
.mc-3 .iso-side { background-color: #F2D4C4; }

/* ================================================
   SECTION 4: GROWTH
   ================================================ */
.growth-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, 1fr);
}

.growth-grid .text-cell.cell-mint { grid-column: 1 / 4; grid-row: 1 / 3; }
.growth-grid .pyramid-cell:nth-child(2) { grid-column: 4 / 6; grid-row: 1 / 3; }
.growth-grid .pyramid-cell:nth-child(3) { grid-column: 6 / 8; grid-row: 1 / 3; }
.growth-grid .pyramid-cell:nth-child(4) { grid-column: 8 / 10; grid-row: 1 / 3; }
.growth-grid .pyramid-cell:nth-child(5) { grid-column: 10 / 13; grid-row: 1 / 3; }
.growth-grid .concept-cell { grid-column: 1 / 5; grid-row: 3 / 4; }
.growth-grid .marble-accent-cell { grid-column: 5 / 8; grid-row: 3 / 4; }
.growth-grid .text-cell.cell-peach { grid-column: 8 / 13; grid-row: 3 / 4; }

/* --- Pyramid Cells --- */
.pyramid-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 24px;
    background-color: #F4F0EB;
}

.pyramid-year {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #E8A87C;
    margin-top: 8px;
}

/* --- Ziggurat Pyramids --- */
.iso-pyramid {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: auto;
    height: auto;
    gap: 0;
}

.pyramid-step {
    border-radius: 2px;
    position: relative;
}

.pyramid-step::after {
    content: '';
    position: absolute;
    top: 0;
    right: -4px;
    width: 4px;
    height: 100%;
    transform: skewY(-20deg);
    transform-origin: top left;
    border-radius: 0 2px 2px 0;
}

.pyramid-step::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 2px;
    right: -2px;
    height: 4px;
    transform: skewX(-30deg);
    border-radius: 2px;
}

.pyramid-1 .ps-1 { width: 50px; height: 22px; background-color: #D8EDE4; }
.pyramid-1 .ps-1::after { background-color: #5B7B6F; }
.pyramid-1 .ps-1::before { background-color: #7FBBA8; }
.pyramid-1 .ps-2 { width: 38px; height: 22px; background-color: #7FBBA8; }
.pyramid-1 .ps-2::after { background-color: #5B7B6F; }
.pyramid-1 .ps-2::before { background-color: #D8EDE4; }
.pyramid-1 .ps-3 { width: 26px; height: 22px; background-color: #5B7B6F; }
.pyramid-1 .ps-3::after { background-color: #4A3F6B; }
.pyramid-1 .ps-3::before { background-color: #7FBBA8; }

.pyramid-2 .ps-1 { width: 54px; height: 20px; background-color: #D8EDE4; }
.pyramid-2 .ps-1::after { background-color: #5B7B6F; }
.pyramid-2 .ps-1::before { background-color: #7FBBA8; }
.pyramid-2 .ps-2 { width: 44px; height: 20px; background-color: #7FBBA8; }
.pyramid-2 .ps-2::after { background-color: #5B7B6F; }
.pyramid-2 .ps-2::before { background-color: #D8EDE4; }
.pyramid-2 .ps-3 { width: 34px; height: 20px; background-color: #5B7B6F; }
.pyramid-2 .ps-3::after { background-color: #4A3F6B; }
.pyramid-2 .ps-3::before { background-color: #7FBBA8; }
.pyramid-2 .ps-4 { width: 24px; height: 20px; background-color: #4A3F6B; }
.pyramid-2 .ps-4::after { background-color: #4E4659; }
.pyramid-2 .ps-4::before { background-color: #5B7B6F; }

.pyramid-3 .ps-1 { width: 58px; height: 18px; background-color: #D8EDE4; }
.pyramid-3 .ps-1::after { background-color: #5B7B6F; }
.pyramid-3 .ps-1::before { background-color: #7FBBA8; }
.pyramid-3 .ps-2 { width: 48px; height: 18px; background-color: #7FBBA8; }
.pyramid-3 .ps-2::after { background-color: #5B7B6F; }
.pyramid-3 .ps-2::before { background-color: #D8EDE4; }
.pyramid-3 .ps-3 { width: 38px; height: 18px; background-color: #5B7B6F; }
.pyramid-3 .ps-3::after { background-color: #4A3F6B; }
.pyramid-3 .ps-3::before { background-color: #7FBBA8; }
.pyramid-3 .ps-4 { width: 28px; height: 18px; background-color: #4A3F6B; }
.pyramid-3 .ps-4::after { background-color: #4E4659; }
.pyramid-3 .ps-4::before { background-color: #5B7B6F; }
.pyramid-3 .ps-5 { width: 18px; height: 18px; background-color: #C4A1D4; }
.pyramid-3 .ps-5::after { background-color: #4A3F6B; }
.pyramid-3 .ps-5::before { background-color: #E8E0F0; }

.pyramid-4 .ps-1 { width: 62px; height: 16px; background-color: #D8EDE4; }
.pyramid-4 .ps-1::after { background-color: #5B7B6F; }
.pyramid-4 .ps-1::before { background-color: #7FBBA8; }
.pyramid-4 .ps-2 { width: 52px; height: 16px; background-color: #7FBBA8; }
.pyramid-4 .ps-2::after { background-color: #5B7B6F; }
.pyramid-4 .ps-2::before { background-color: #D8EDE4; }
.pyramid-4 .ps-3 { width: 42px; height: 16px; background-color: #5B7B6F; }
.pyramid-4 .ps-3::after { background-color: #4A3F6B; }
.pyramid-4 .ps-3::before { background-color: #7FBBA8; }
.pyramid-4 .ps-4 { width: 32px; height: 16px; background-color: #4A3F6B; }
.pyramid-4 .ps-4::after { background-color: #4E4659; }
.pyramid-4 .ps-4::before { background-color: #5B7B6F; }
.pyramid-4 .ps-5 { width: 22px; height: 16px; background-color: #C4A1D4; }
.pyramid-4 .ps-5::after { background-color: #4A3F6B; }
.pyramid-4 .ps-5::before { background-color: #E8E0F0; }
.pyramid-4 .ps-6 { width: 14px; height: 16px; background-color: #E8E0F0; }
.pyramid-4 .ps-6::after { background-color: #C4A1D4; }
.pyramid-4 .ps-6::before { background-color: #F4F0EB; }

/* --- Compound Interest Object --- */
.iso-compound {
    width: 70px;
    height: 75px;
}
.iso-compound .iso-top {
    position: absolute;
    width: 48px; height: 26px;
    top: 0; left: 10px;
    background-color: #7FBBA8;
    transform: skewX(-30deg);
    border: 1px solid rgba(91,123,111,0.2);
}
.iso-compound .iso-front {
    position: absolute;
    width: 38px; height: 50px;
    bottom: 0; left: 0;
    background-color: #D8EDE4;
    border: 1px solid rgba(91,123,111,0.15);
}
.iso-compound .iso-side {
    position: absolute;
    width: 26px; height: 50px;
    bottom: 0; right: 2px;
    background-color: #5B7B6F;
    transform: skewY(-20deg);
    transform-origin: bottom left;
    border: 1px solid rgba(91,123,111,0.1);
}

/* ================================================
   SECTION 5: CONNECTIONS
   ================================================ */
.connections-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, 1fr);
}

.connections-grid .trade-cell:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 2; }
.connections-grid .trade-cell:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.connections-grid .text-cell.cell-lavender { grid-column: 7 / 10; grid-row: 1 / 2; }
.connections-grid .marble-accent-cell:nth-child(4) { grid-column: 10 / 13; grid-row: 1 / 2; }
.connections-grid .trade-cell:nth-child(5) { grid-column: 1 / 4; grid-row: 2 / 3; }
.connections-grid .text-cell.cell-mint { grid-column: 4 / 7; grid-row: 2 / 3; }
.connections-grid .trade-cell:nth-child(7) { grid-column: 7 / 10; grid-row: 2 / 3; }
.connections-grid .marble-accent-cell:nth-child(8) { grid-column: 10 / 13; grid-row: 2 / 3; }
.connections-grid .concept-cell { grid-column: 1 / 5; grid-row: 3 / 4; }

/* --- Trade Pairs --- */
.trade-cell {
    background-color: #F4F0EB;
}

.iso-trade-pair {
    display: flex;
    align-items: center;
    gap: 0;
    width: 130px;
    height: 60px;
}

.iso-trade-pair .iso-cube {
    position: relative;
    width: 36px;
    height: 36px;
}

.trade-cube-a .iso-top {
    position: absolute;
    width: 26px; height: 14px;
    top: -3px; left: 5px;
    background-color: #E8E0F0;
    transform: skewX(-30deg);
}
.trade-cube-a .iso-front {
    position: absolute;
    width: 22px; height: 30px;
    bottom: 0; left: 0;
    background-color: #C4A1D4;
}
.trade-cube-a .iso-side {
    position: absolute;
    width: 14px; height: 30px;
    bottom: 0; right: 0;
    background-color: #E8E0F0;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

.trade-cube-b .iso-top {
    position: absolute;
    width: 26px; height: 14px;
    top: -3px; left: 5px;
    background-color: #D8EDE4;
    transform: skewX(-30deg);
}
.trade-cube-b .iso-front {
    position: absolute;
    width: 22px; height: 30px;
    bottom: 0; left: 0;
    background-color: #F2D4C4;
}
.trade-cube-b .iso-side {
    position: absolute;
    width: 14px; height: 30px;
    bottom: 0; right: 0;
    background-color: #D4A5A5;
    transform: skewY(-20deg);
    transform-origin: bottom left;
}

.trade-link {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #C4A1D4, #F2D4C4);
    border-radius: 2px;
    position: relative;
    min-width: 30px;
}

.link-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -1px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 0%, #7FBBA8 100%);
    animation: linkDotTravel 2.5s ease-in-out infinite;
}

.ld-1 { left: 15%; animation-delay: 0s; }
.ld-2 { left: 55%; animation-delay: 0.8s; }

@keyframes linkDotTravel {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(15px); opacity: 1; }
}

/* --- Labor Grid --- */
.iso-labor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 80px;
    height: auto;
}

.labor-cube {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    position: relative;
}

.labor-cube::after {
    content: '';
    position: absolute;
    top: 0;
    right: -3px;
    width: 3px;
    height: 100%;
    transform: skewY(-20deg);
    transform-origin: top left;
    border-radius: 0 2px 2px 0;
}

.labor-cube::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 1px;
    right: -2px;
    height: 3px;
    transform: skewX(-30deg);
    border-radius: 2px;
}

.labor-cube.employed {
    background-color: #7FBBA8;
}
.labor-cube.employed::after {
    background-color: #5B7B6F;
}
.labor-cube.employed::before {
    background-color: #D8EDE4;
}

.labor-cube.unemployed {
    background-color: #D4A5A5;
}
.labor-cube.unemployed::after {
    background-color: #C4A1D4;
}
.labor-cube.unemployed::before {
    background-color: #F2D4C4;
}

/* ================================================
   SECTION 6: REFLECTION
   ================================================ */
.reflection-grid {
    grid-template-columns: 1fr;
    min-height: 80vh;
}

.reflection-cell {
    grid-column: 1 / -1;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F4F0EB;
    position: relative;
}

.reflection-quote {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 3vw, 32px);
    color: #4A3F6B;
    text-align: center;
    max-width: 42ch;
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

/* --- Crystal (Innovation Dodecahedron) --- */
.iso-crystal {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
    animation: crystalRotate 20s linear infinite;
    transform-style: preserve-3d;
}

.crystal-face {
    position: absolute;
    background-color: rgba(196,161,212,0.3);
    border: 1px solid rgba(196,161,212,0.5);
    backdrop-filter: blur(1px);
}

.cf-1 {
    width: 60px; height: 40px;
    top: 10px; left: 20px;
    clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
    background-color: rgba(196,161,212,0.35);
}

.cf-2 {
    width: 50px; height: 50px;
    top: 25px; left: 5px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-color: rgba(232,224,240,0.4);
}

.cf-3 {
    width: 50px; height: 50px;
    top: 25px; right: 5px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-color: rgba(127,187,168,0.25);
}

.cf-4 {
    width: 70px; height: 30px;
    bottom: 15px; left: 15px;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    background-color: rgba(196,161,212,0.3);
}

.cf-5 {
    width: 40px; height: 35px;
    top: 5px; left: 30px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background-color: rgba(242,212,196,0.3);
}

.cf-6 {
    width: 40px; height: 35px;
    bottom: 10px; left: 30px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    background-color: rgba(212,165,165,0.25);
}

@keyframes crystalRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.05); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ================================================
   HOVER EFFECTS
   ================================================ */
.bento-cell {
    transition: box-shadow 0.4s ease;
}

.concept-cell:hover,
.trade-cell:hover,
.pyramid-cell:hover {
    box-shadow: 0 4px 24px rgba(200,191,214,0.35);
}

.concept-cell:hover .iso-object,
.trade-cell:hover .iso-object {
    transform: translateY(-3px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover bubble effect */
.concept-cell::after,
.trade-cell::after,
.pyramid-cell::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.6) 0%, rgba(196,161,212,0.3) 100%);
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.8s ease;
    pointer-events: none;
}

.concept-cell:hover::after,
.trade-cell:hover::after,
.pyramid-cell:hover::after {
    opacity: 1;
    transform: translateY(-30px);
}

/* ================================================
   RESPONSIVE / MOBILE
   ================================================ */
@media (max-width: 900px) {
    .atlas-section {
        padding: 24px 16px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    /* Reset all explicit grid placements for 2-col */
    .opening-grid .hero-cell,
    .opening-grid .marble-accent-cell,
    .opening-grid .text-cell,
    .foundations-grid .concept-cell,
    .foundations-grid .marble-accent-cell,
    .foundations-grid .text-cell,
    .markets-grid .market-scene-cell,
    .markets-grid .text-cell,
    .markets-grid .concept-cell,
    .markets-grid .marble-accent-cell,
    .growth-grid .text-cell,
    .growth-grid .pyramid-cell,
    .growth-grid .concept-cell,
    .growth-grid .marble-accent-cell,
    .connections-grid .trade-cell,
    .connections-grid .text-cell,
    .connections-grid .marble-accent-cell,
    .connections-grid .concept-cell {
        grid-column: auto;
        grid-row: auto;
    }

    .opening-grid .hero-cell {
        grid-column: 1 / -1;
        min-height: 350px;
    }

    .markets-grid .market-scene-cell {
        grid-column: 1 / -1;
        min-height: 280px;
    }

    .reflection-cell {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 48px;
    }

    .isometric-cityscape {
        transform: rotateX(30deg) rotateY(45deg) scale(0.7);
    }

    /* Simplify slide-reveal to fade on mobile */
    .slide-reveal {
        transform: none !important;
    }

    .slide-reveal.revealed {
        opacity: 1;
    }

    #progress-indicator {
        right: 12px;
        gap: 10px;
    }

    .progress-bubble {
        width: 10px;
        height: 10px;
    }

    .bento-cell {
        min-height: 140px;
        padding: 20px 16px;
    }

    .concept-label {
        font-size: 18px;
    }

    .concept-def {
        font-size: 14px;
    }
}

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

    .opening-grid .hero-cell {
        min-height: 300px;
    }

    .hero-title {
        font-size: 36px;
    }

    .iso-marketplace {
        width: 180px;
        height: 90px;
    }

    .iso-trade-pair {
        width: 100px;
        height: 50px;
    }

    .reflection-quote {
        font-size: 20px;
        padding: 0 16px;
    }

    .accent-number {
        font-size: 28px;
    }
}
