/* monopole.center — Bauhaus isometric research center */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFA;
    color: #3D3D3D;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Iso grid line color reference: #E8E8E8 */

/* ===== Isometric Grid Background ===== */
.iso-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.iso-grid.visible {
    opacity: 1;
}

/* ===== Vertical Navigation ===== */
#vertical-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0;
}

.nav-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3D3D3D;
    text-decoration: none;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 8px 12px;
    transition: color 0.2s ease, transform 0.2s ease, padding-right 0.2s ease;
    white-space: nowrap;
}

.nav-label:hover {
    padding-right: 16px;
    color: #E63946;
}

.nav-label.active {
    color: #E63946;
}

/* ===== Bento Grid Container ===== */
#bento-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 60px 80px 80px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* ===== Module Base ===== */
.module {
    border: 1px solid #D1D1D1;
    padding: 32px;
    background: #FAFAFA;
    position: relative;
    transition: border-color 0.25s ease;
}

.module:hover {
    border-color: #1A1A1A;
}

.module:hover .module-label {
    color: #E63946;
}

/* Module Sizes */
.module-hero {
    grid-column: span 12;
    text-align: center;
    padding: 48px 32px;
}

.module-wide {
    grid-column: span 8;
}

.module-medium {
    grid-column: span 7;
}

.module-small {
    grid-column: span 4;
}

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

/* ===== Module Labels ===== */
.module-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: color 0.25s ease;
}

.label-red { color: #E63946; }
.label-blue { color: #457B9D; }
.label-amber { color: #F4A261; }

/* ===== Hero ===== */
.hero-wireframe {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.wire-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 0.6s ease;
}

.wire-path.drawn {
    stroke-dashoffset: 0;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 48px;
    color: #1A1A1A;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #457B9D;
    letter-spacing: 0.04em;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: #1A1A1A;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ===== Body Text ===== */
.body-text {
    color: #3D3D3D;
    margin-bottom: 12px;
}

.body-text.secondary {
    color: #457B9D;
    font-size: 14px;
}

/* ===== Diagrams ===== */
.diagram-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 12px auto 0;
}

/* ===== Metrics ===== */
.metric-block {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #D1D1D1;
}

.metric-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.metric-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #1A1A1A;
}

.metric-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #457B9D;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== Accent Dots ===== */
.accent-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

.dot-red { background: #E63946; }
.dot-blue { background: #457B9D; }
.dot-amber { background: #F4A261; }

/* ===== Bento Item Animation ===== */
.bento-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-item.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Alternate module backgrounds */
.module-small:nth-child(even) {
    background: #F0F0F0;
}

/* ===== Section Numbering Indicators ===== */
.module-label::before {
    display: none;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    #vertical-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        background: #FAFAFA;
        border-bottom: 1px solid #D1D1D1;
        z-index: 200;
        padding: 8px;
    }

    .nav-label {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 10px;
        padding: 4px 8px;
    }

    .nav-label:hover {
        padding-right: 8px;
    }

    #bento-container {
        padding: 60px 16px 40px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .module-hero,
    .module-wide,
    .module-medium,
    .module-small,
    .module-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .section-title {
        font-size: 22px;
    }

    .module {
        padding: 24px;
    }

    .accent-dot {
        display: none;
    }
}
