/* ============================================================
   political.bar — Fairycore Urban Political Discourse
   Palette: Twilight Plum, Dusk Lavender, Lantern Gold, Bubble Cyan,
            Petal Rose, Parchment Cream, Charcoal Ink, Prism Opal
   Fonts: IBM Plex Mono, Space Mono, Fira Mono
   ============================================================ */

/* CSS Custom Properties for animated bubble iridescence */
@property --bubble-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@property --mouse-x {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 50%;
}

@property --mouse-y {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 50%;
}

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

html {
    scroll-behavior: smooth;
    font-feature-settings: 'liga' 0;
}

body {
    background: #1A1424;
    color: #F2E8DC;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ---- Atmosphere Layer ---- */
.atmosphere-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, #2C243988, transparent 70%);
    transition: background 0.5s ease;
}

/* ---- Particles Layer ---- */
.particles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #C9B8E8;
    opacity: 0;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--particle-opacity, 0.25);
    }
    90% {
        opacity: var(--particle-opacity, 0.25);
    }
    100% {
        transform: translateY(calc(-100vh - 20px)) translateX(var(--particle-sway, 15px));
        opacity: 0;
    }
}

/* ---- Bubbles Layers ---- */
.bubbles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bubbles-bg {
    z-index: 2;
}

.bubbles-mid {
    z-index: 5;
}

.bubbles-fg {
    z-index: 12;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(
        from var(--bubble-angle),
        rgba(126, 200, 200, 0.08),
        rgba(212, 133, 154, 0.08),
        rgba(232, 168, 76, 0.08),
        rgba(201, 184, 232, 0.08),
        rgba(126, 200, 200, 0.08)
    );
    border: 1px solid rgba(201, 184, 232, 0.15);
    box-shadow:
        inset 0 -8px 16px rgba(255, 255, 255, 0.06),
        0 0 20px rgba(126, 200, 200, 0.08);
    animation: bubbleFloat linear infinite, bubbleIridescence 8s linear infinite;
    cursor: default;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 22%;
    left: 25%;
    width: 30%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-30deg);
}

.bubbles-fg .bubble {
    cursor: pointer;
    pointer-events: auto;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: var(--bubble-opacity, 0.6);
    }
    25% {
        transform: translateY(calc(var(--drift-y, -80px) * 0.25)) translateX(var(--sway-x, 20px));
    }
    50% {
        transform: translateY(calc(var(--drift-y, -80px) * 0.5)) translateX(calc(var(--sway-x, 20px) * -0.5));
    }
    75% {
        transform: translateY(calc(var(--drift-y, -80px) * 0.75)) translateX(calc(var(--sway-x, 20px) * 0.7));
    }
    100% {
        transform: translateY(var(--drift-y, -80px)) translateX(0);
        opacity: var(--bubble-opacity, 0.6);
    }
}

@keyframes bubbleIridescence {
    from { --bubble-angle: 0deg; }
    to { --bubble-angle: 360deg; }
}

@keyframes bubblePop {
    0% {
        transform: scale(1);
        opacity: var(--bubble-opacity, 0.6);
    }
    30% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.bubble.popping {
    animation: bubblePop 0.2s ease-out forwards !important;
}

.pop-particle {
    position: absolute;
    border-radius: 50%;
    background: #C9B8E8;
    pointer-events: none;
    animation: popScatter 0.4s ease-out forwards;
}

@keyframes popScatter {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--scatter-x, 20px), var(--scatter-y, -20px)) scale(0);
    }
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

.hero-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: #F2E8DC;
    text-shadow: 0 0 1px #C9B8E8;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 16px;
    color: #7EC8C8;
    margin-top: 20px;
    min-height: 26px;
    letter-spacing: 0.01em;
}

.hero-tagline .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #7EC8C8;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.scroll-indicator {
    margin-top: 60px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.chevron {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-right: 2px solid #F2E8DC;
    border-bottom: 2px solid #F2E8DC;
    transform: rotate(45deg);
    animation: chevronPulse 2s ease-in-out infinite;
}

@keyframes chevronPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ---- Boulevard Dividers ---- */
.boulevard {
    position: relative;
    width: 100%;
    height: 60px;
    z-index: 10;
    background: linear-gradient(90deg, transparent, #D4859A33, #7EC8C855, #E8A84C33, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.boulevard-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.street-lamp {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.lamp-pole {
    width: 2px;
    height: 30px;
    background: #F2E8DC44;
}

.lamp-head {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8A84C;
    position: relative;
}

.lamp-glow {
    position: absolute;
    top: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #E8A84C22, transparent 70%);
    pointer-events: none;
}

/* ---- Neighborhoods / Modular Grid ---- */
.neighborhood {
    position: relative;
    z-index: 10;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.modular-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    grid-auto-flow: dense;
}

/* ---- Module Base ---- */
.module {
    position: relative;
    background: #2C2439;
    border: 1px solid rgba(201, 184, 232, 0.08);
    border-radius: 4px;
    padding: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.4;
}

.module.activated {
    opacity: 1;
}

.module.explored {
    box-shadow: 0 0 12px rgba(232, 168, 76, 0.15);
    border-color: rgba(232, 168, 76, 0.2);
}

/* Module hover glow */
.module::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: radial-gradient(
        ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
        #C9B8E822,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Module expanded state border gradient */
.module.expanded::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 5px;
    background: conic-gradient(
        from var(--bubble-angle, 0deg),
        #7EC8C844,
        #D4859A44,
        #E8A84C44,
        #C9B8E844,
        #7EC8C844
    );
    z-index: -1;
    animation: bubbleIridescence 8s linear infinite;
}

.module.expanded {
    background: #2C2439;
    border-color: transparent;
    z-index: 20;
}

/* Module Label */
.module-label {
    font-family: 'Fira Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C9B8E8;
    display: block;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

/* Module Content */
.module-content {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.module.activated .module-content {
    max-height: 120px;
    opacity: 1;
}

.module.expanded .module-content {
    max-height: 600px;
    opacity: 1;
}

.module-detail {
    margin-top: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    font-weight: 300;
    color: #F2E8DCcc;
}

.module.expanded .module-detail {
    max-height: 300px;
    opacity: 1;
}

/* Module Content Typography */
.module h2 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.03em;
    color: #F2E8DC;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

.module h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7EC8C8, #D4859A, #E8A84C);
    transition: width 0.8s ease;
}

.module.activated h2::after {
    width: 60%;
}

.module h3 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #F2E8DC;
    margin-bottom: 8px;
}

.module p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 15px;
    line-height: 26px;
    color: #F2E8DCdd;
}

/* Module Types - Grid Placement */
.plaza-block[data-col="1/4"] { grid-column: 1 / 4; }
.plaza-block[data-col="2/5"] { grid-column: 2 / 5; }
.plaza-block[data-col="1/4"][data-row="1/3"] { grid-row: 1 / 3; }
.plaza-block[data-col="2/5"][data-row="1/3"] { grid-row: 1 / 3; }
.plaza-block[data-col="2/5"][data-row="4/6"] { grid-row: 4 / 6; }

.tower-block[data-col="4/5"] { grid-column: 4 / 5; }
.tower-block[data-col="1/2"] { grid-column: 1 / 2; }
.tower-block[data-col="6/7"] { grid-column: 6 / 7; }
.tower-block[data-col="4/5"][data-row="1/4"] { grid-row: 1 / 4; }
.tower-block[data-col="1/2"][data-row="2/5"] { grid-row: 2 / 5; }
.tower-block[data-col="6/7"][data-row="3/6"] { grid-row: 3 / 6; }

.row-house[data-col="5/7"] { grid-column: 5 / 7; }
.row-house[data-col="1/3"] { grid-column: 1 / 3; }
.row-house[data-col="3/5"] { grid-column: 3 / 5; }
.row-house[data-col="2/4"] { grid-column: 2 / 4; }
.row-house[data-col="4/6"] { grid-column: 4 / 6; }
.row-house[data-col="5/7"][data-row="1/2"] { grid-row: 1 / 2; }
.row-house[data-col="5/7"][data-row="2/3"] { grid-row: 2 / 3; }
.row-house[data-col="1/3"][data-row="3/4"] { grid-row: 3 / 4; }
.row-house[data-col="3/5"][data-row="4/5"] { grid-row: 4 / 5; }
.row-house[data-col="3/5"][data-row="3/4"] { grid-row: 3 / 4; }
.row-house[data-col="2/4"][data-row="3/4"] { grid-row: 3 / 4; }
.row-house[data-col="5/7"][data-row="4/5"] { grid-row: 4 / 5; }
.row-house[data-col="4/6"][data-row="1/2"] { grid-row: 1 / 2; }
.row-house[data-col="4/6"][data-row="2/3"] { grid-row: 2 / 3; }
.row-house[data-col="1/3"][data-row="3/4"] { grid-row: 3 / 4; }

.corner-shop[data-col="5/6"] { grid-column: 5 / 6; }
.corner-shop[data-col="6/7"] { grid-column: 6 / 7; }
.corner-shop[data-col="1/2"] { grid-column: 1 / 2; }
.corner-shop[data-col="4/5"] { grid-column: 4 / 5; }
.corner-shop[data-col="5/6"][data-row="2/3"] { grid-row: 2 / 3; }
.corner-shop[data-col="6/7"][data-row="2/3"] { grid-row: 2 / 3; }
.corner-shop[data-col="5/6"][data-row="3/4"] { grid-row: 3 / 4; }
.corner-shop[data-col="1/2"][data-row="1/2"] { grid-row: 1 / 2; }
.corner-shop[data-col="4/5"][data-row="3/4"] { grid-row: 3 / 4; }
.corner-shop[data-col="6/7"][data-row="1/2"] { grid-row: 1 / 2; }

/* Module Type Backgrounds */
.plaza-block {
    background: #2C2439;
}

.tower-block {
    background: #4A3B5E;
}

.row-house {
    background: #2C2439;
}

.corner-shop {
    background: #4A3B5E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.corner-shop .module-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Special Module Content ---- */

/* Window Grid (apartment windows) */
.window-grid {
    display: grid;
    grid-template-columns: repeat(4, 3px);
    grid-template-rows: repeat(6, 3px);
    gap: 3px;
    justify-content: center;
}

.window-cell {
    width: 3px;
    height: 3px;
    background: #1A1424;
    transition: background 0.5s ease;
}

.window-cell.lit {
    background: #E8A84C;
    box-shadow: 0 0 4px #E8A84C44;
}

/* Stats */
.stat-number {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 28px;
    color: #E8A84C;
    line-height: 1;
}

.stat-desc {
    font-family: 'Fira Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #C9B8E8;
    margin-top: 6px;
}

/* Decorative Bubble Container */
.deco-bubble-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(126, 200, 200, 0.15),
        rgba(212, 133, 154, 0.15),
        rgba(232, 168, 76, 0.15),
        rgba(201, 184, 232, 0.15),
        rgba(126, 200, 200, 0.15)
    );
    border: 1px solid rgba(201, 184, 232, 0.2);
    box-shadow: inset 0 -4px 8px rgba(255, 255, 255, 0.08);
    animation: bubbleIridescence 8s linear infinite;
}

/* Timeline */
.timeline-item {
    padding: 12px 0;
    border-left: 1px solid #7EC8C844;
    padding-left: 12px;
    margin-bottom: 4px;
}

.timeline-date {
    font-family: 'Fira Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #E8A84C;
    display: block;
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 13px;
    line-height: 20px;
    font-weight: 300;
}

/* Principles */
.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.principle-icon {
    color: #E8A84C;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 22px;
}

.principle-item p {
    font-size: 13px;
    line-height: 22px;
    font-weight: 300;
}

/* Pull Quote */
.pull-quote {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 14px;
    line-height: 24px;
    color: #F2E8DC;
    font-style: italic;
    border-left: 2px solid #D4859A;
    padding-left: 12px;
    margin-bottom: 8px;
}

.quote-cite {
    font-family: 'Fira Mono', monospace;
    font-size: 11px;
    color: #D4859A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Links ---- */
a {
    color: #7EC8C8;
    text-decoration: none;
    border-bottom: 1px dotted #7EC8C8;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

a:hover {
    color: #E8A84C;
    border-bottom: 1px solid #E8A84C;
}

a:visited {
    color: #D4859A;
}

/* ---- Compass Navigation ---- */
.compass-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(26, 20, 36, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.compass-btn:hover .compass-needle {
    animation: compassSpin 1s ease-in-out;
}

@keyframes compassSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.compass-btn:hover .compass-icon {
    transform: none;
}

.compass-btn:hover {
    background: rgba(26, 20, 36, 0.9);
}

/* ---- Map Overlay ---- */
.map-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.map-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.map-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 36, 0.6);
}

.map-panel {
    position: relative;
    background: rgba(74, 59, 94, 0.5);
    backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(201, 184, 232, 0.15);
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    z-index: 1;
}

.map-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    color: #F2E8DC;
    text-align: center;
    margin-bottom: 24px;
}

.map-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-block {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: rgba(44, 36, 57, 0.6);
    border: 1px solid rgba(201, 184, 232, 0.1);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: 'Fira Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F2E8DC;
}

.map-block:hover {
    background: rgba(44, 36, 57, 0.9);
    border-color: #E8A84C44;
}

.map-close {
    display: block;
    margin: 20px auto 0;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid #F2E8DC44;
    border-radius: 4px;
    color: #F2E8DC;
    font-family: 'Fira Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.map-close:hover {
    border-color: #E8A84C;
}

/* ---- Vine SVG Overlay ---- */
.vine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
}

.vine-path {
    fill: none;
    stroke: #7EC8C844;
    stroke-width: 0.15;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.1s linear;
}

.vine-path-right {
    stroke: #D4859A33;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 60px 24px 40px;
    background: #1A1424;
    overflow: hidden;
}

.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background:
        linear-gradient(to top, #1A1424 0%, transparent 100%),
        /* Buildings */
        linear-gradient(to right,
            transparent 0%, transparent 5%,
            #2C2439 5%, #2C2439 8%,
            transparent 8%, transparent 10%,
            #4A3B5E 10%, #4A3B5E 14%,
            transparent 14%, transparent 16%,
            #2C2439 16%, #2C2439 18%,
            transparent 18%, transparent 22%,
            #4A3B5E 22%, #4A3B5E 28%,
            transparent 28%, transparent 30%,
            #2C2439 30%, #2C2439 33%,
            transparent 33%, transparent 36%,
            #4A3B5E 36%, #4A3B5E 38%,
            transparent 38%, transparent 42%,
            #2C2439 42%, #2C2439 48%,
            transparent 48%, transparent 52%,
            #4A3B5E 52%, #4A3B5E 55%,
            transparent 55%, transparent 58%,
            #2C2439 58%, #2C2439 62%,
            transparent 62%, transparent 65%,
            #4A3B5E 65%, #4A3B5E 68%,
            transparent 68%, transparent 72%,
            #2C2439 72%, #2C2439 76%,
            transparent 76%, transparent 80%,
            #4A3B5E 80%, #4A3B5E 84%,
            transparent 84%, transparent 88%,
            #2C2439 88%, #2C2439 92%,
            transparent 92%, transparent 95%,
            #4A3B5E 95%, #4A3B5E 98%,
            transparent 98%, transparent 100%
        );
    background-size: 100% 100%, 100% 80%;
    background-position: bottom, bottom;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.skyline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, #2C2439, #4A3B5E44, #D4859A11, transparent);
}

.footer-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #F2E8DC;
    margin-bottom: 8px;
}

.footer-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 13px;
    color: #C9B8E8;
}

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

    .plaza-block[data-col="1/4"],
    .plaza-block[data-col="2/5"] { grid-column: 1 / 4; }
    .plaza-block[data-col="2/5"][data-row="4/6"] { grid-column: 1 / 4; }

    .tower-block[data-col="4/5"],
    .tower-block[data-col="1/2"],
    .tower-block[data-col="6/7"] { grid-column: span 1; grid-row: span 2; }

    .row-house[data-col="5/7"],
    .row-house[data-col="1/3"],
    .row-house[data-col="3/5"],
    .row-house[data-col="2/4"],
    .row-house[data-col="4/6"] { grid-column: span 2; grid-row: span 1; }

    .corner-shop[data-col="5/6"],
    .corner-shop[data-col="6/7"],
    .corner-shop[data-col="1/2"],
    .corner-shop[data-col="4/5"] { grid-column: span 1; grid-row: span 1; }

    /* Reset explicit row placements on mobile */
    .module[data-row] {
        grid-row: auto;
    }

    .neighborhood {
        padding: 24px 16px;
    }
}

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

    .plaza-block[data-col="1/4"],
    .plaza-block[data-col="2/5"] { grid-column: 1 / 3; }

    .row-house[data-col="5/7"],
    .row-house[data-col="1/3"],
    .row-house[data-col="3/5"],
    .row-house[data-col="2/4"],
    .row-house[data-col="4/6"] { grid-column: 1 / 3; }

    .tower-block[data-col="4/5"],
    .tower-block[data-col="1/2"],
    .tower-block[data-col="6/7"] { grid-column: span 1; }

    .corner-shop[data-col="5/6"],
    .corner-shop[data-col="6/7"],
    .corner-shop[data-col="1/2"],
    .corner-shop[data-col="4/5"] { grid-column: span 1; }
}
