.bb-hero-map {
    height: 160vh;
    position: relative;
}
.bb-hero-map__inner {
    position: sticky;
    top: 0;
    height: 160vh;
    overflow: hidden;
    background: var(--bg-1);
    background: radial-gradient(circle at center, var(--bg-1) 0%, var(--surface-1) 100%);
}
.bb-hero-map__overlay {
    position: absolute;
    z-index: 20;
    /* Pushed substantially farther from the top header */
    top: max(140px, calc(12vh + env(safe-area-inset-top)));
    /* Anchored dynamically to the right side */
    right: max(6vw, env(safe-area-inset-right));
    left: auto;
    /* Text flows cleanly backwards toward the mainland */
    text-align: right;
    width: auto;
    max-width: 400px;
    pointer-events: none;
}
.bb-hero-map__overlay * { pointer-events: auto; }
.bb-hero-map__title { 
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    margin-bottom: var(--space-1); 
    letter-spacing: -0.02em;
    opacity: 0.9;
}
.bb-hero-map__subtitle { 
    font-size: clamp(0.85rem, 2vw, 1rem); 
    color: var(--text-2); 
    margin-bottom: var(--space-4);
    opacity: 0.7;
}

.bb-town-affinity {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    background: var(--surface-2);
    border: 1px solid var(--border-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-round);
    color: var(--text-2);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-1);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.bb-town-affinity i.fa-fire {
    color: var(--danger, #e74c3c);
}
.bb-hero-map__search {
    transform: scale(0.9);
    transform-origin: left center;
}

.bb-map {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center; /* Safe vertical centering */
    overflow-x: auto;
    overflow-y: hidden;
    /* Prevent accidental swipe-history navigation when swiping diagonally */
    overscroll-behavior-x: none;
    /* Smooth elastic scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

.bb-map__projection-plane {
    position: relative;
    flex-shrink: 0;
    /* Center safely on desktop where it fits natively */
    margin: 0 auto;
    /* Rigid aspect ratio mapped to the folded bounding box */
    aspect-ratio: 820 / 792;
    /* The map is the visual statement piece. Allow it to scale aggressively to 90% view width and bleed vertically if necessary. */
    width: 90vw;
    max-width: none;
    height: auto;
}

@media (max-width: 768px) {
    .bb-map__projection-plane {
        /* Remove auto-margins to unlock the left boundary for JS scroll positioning */
        margin: 0;
        /* Explode the map boundary past the viewport horizontally */
        width: 160vw;
        max-width: none;
        max-height: 80vh;
    }
}

.bb-map__svg {
    position: absolute;
    inset: 0;
    color: var(--brand); 
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.1));
    transition: opacity 0.5s ease;
}
.bb-map__svg svg { width: 100%; height: 100%; display: block; }
.bb-map__svg path { 
    fill: var(--bg-1); 
    fill-opacity: 0.6;
    stroke: currentColor; 
    stroke-width: 0.8; 
    transition: fill-opacity 0.3s ease;
}
.bb-map__svg path:hover {
    fill-opacity: 0.9;
}

.bb-map__signals {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bb-signal {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: auto;
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
}
.bb-signal--fade-out .bb-signal__dot {
    animation: bb-signal-exit 0.8s ease forwards;
}
.bb-signal--fade-out .bb-signal__label {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bb-signal__dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand);
    animation: bb-signal-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: filter 0.2s ease;
}
.bb-signal:hover .bb-signal__dot {
    filter: brightness(1.2);
}
.bb-signal__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    animation: bb-ping 4.0s cubic-bezier(0.2, 0, 0.2, 1) infinite;
}
.bb-signal__label {
    position: absolute;
    top: 0;
    left: 0;
    /* Centers horizontally and pushes directly below the 0x0 point */
    transform: translate(-50%, calc(15px + (var(--scale-factor, 1) * 5px)));
    font-size: 11px;
    font-weight: 700;
    color: var(--text-1);
    background: var(--brand-700);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 0;
    animation: bb-fade-in 0.6s ease forwards 0.2s;
}

@keyframes bb-ping {
    65%, 100% { transform: scale(3.5); opacity: 0; }
}

@keyframes bb-signal-entry {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(var(--scale-factor, 1)); }
}
@keyframes bb-signal-exit {
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}
@keyframes bb-fade-in {
    to { opacity: 1; }
}

/* Reduce visual weight of subsequent sections */
.landing-ignition .section { padding: var(--space-12) 0; }
.landing-ignition .ignition-header h2 { font-size: 1.5rem; }

/* Demand List Panel */
.bb-demand-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: var(--space-8);
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 30;
}
.bb-demand-list-panel {
    background: var(--bg-1);
    border-radius: var(--radius-2);
    box-shadow: var(--shadow-2);
    width: 100%;
    max-width: 600px;
    pointer-events: auto;
    border: 1px solid var(--surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(var(--bg-1-rgb), 0.85);
}
.bb-demand-list-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--surface-2);
}
.bb-demand-list-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.bb-demand-count {
    font-size: 0.75rem;
    background: var(--surface-3);
    color: var(--text-2);
    padding: 2px 8px;
    border-radius: var(--radius-round);
    font-weight: 600;
}
.bb-demand-toggle {
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-size: 1.1rem;
    padding: var(--space-2);
    border-radius: var(--radius-1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.bb-demand-toggle:hover {
    background: var(--surface-2);
    color: var(--brand);
}
.bb-demand-list-body {
    max-height: 350px;
    overflow-y: auto;
    padding: var(--space-2) 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.3s ease;
    opacity: 1;
}
.is-minified .bb-demand-list-body {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
.is-minified.bb-demand-list-panel {
    border-color: var(--brand-alpha, rgba(var(--brand-rgb), 0.2));
}
.bb-demand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bb-demand-list__item {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    gap: var(--space-4);
    transition: background-color 0.2s ease;
}
.bb-demand-list__item:hover {
    background: var(--surface-1);
}
.bb-demand-list__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
}
.bb-demand-list__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bb-demand-placeholder-avatar {
    width: 100%;
    height: 100%;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 1rem;
}
.bb-demand-list__content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-1);
}
.bb-demand-list__content strong.bb-term {
    color: var(--brand);
    font-weight: 600;
}
.bb-demand-list__meta {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 2px;
}

/* ── Section 2: Activity Feed ── */
.bb-activity-section {
    background: var(--bg-1);
    border-top: 1px solid var(--border-1);
}
.bb-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-2);
    background: var(--surface-1);
    border: 1px solid var(--border-1);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.bb-activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--surface-2);
    animation: bb-activity-fade-in 0.5s ease both;
    transition: background-color 0.15s ease;
}
.bb-activity-item:last-child {
    border-bottom: none;
}
.bb-activity-item:hover {
    background: var(--surface-2);
}
.bb-activity-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    color: var(--icon-color);
    font-size: 0.85rem;
}
.bb-activity-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text-1);
}
.bb-activity-time {
    flex-shrink: 0;
    font-size: var(--fs-xs, 0.75rem);
    color: var(--text-3);
    white-space: nowrap;
}

@keyframes bb-activity-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .bb-activity-item {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }
    .bb-activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .bb-activity-label {
        font-size: 0.88rem;
    }
}

/* ── Section 3: Existing Value Stagger ── */
.bb-stagger-grid {
    --stagger-delay: 150ms;
}
.bb-stagger-item {
    animation: bb-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay, 0) * var(--stagger-delay));
}

/* ── Section 3: Horizontal Slider ── */
.bb-horizontal-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden; /* Hide horizontal scrollbar container bleed */
    position: relative;
    z-index: 10;
}
.bb-horizontal-slider__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--space-4);
    padding: var(--space-4) calc(50vw - min(100% - var(--space-8), var(--container-lg))/2);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bb-horizontal-slider__track::-webkit-scrollbar {
    display: none;
}

.bb-slider-card {
    flex: 0 0 clamp(260px, 75vw, 320px);
    scroll-snap-align: center;
    transform: translateY(0);
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
    animation: bb-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay, 0) * 150ms);
}
.bb-slider-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-3);
    z-index: 2;
}

.bb-slider-cap {
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    backdrop-filter: blur(12px);
    border: 1px dashed var(--line-strong);
    border-radius: var(--card-radius);
    color: var(--brand);
    font-weight: 700;
    font-size: var(--fs-lg);
    position: relative;
    transition: background var(--dur-2), transform var(--dur-2);
}
.bb-slider-cap-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.bb-slider-cap:hover {
    background: var(--surface);
    transform: scale(1.02);
    box-shadow: var(--shadow-2);
}

@keyframes bb-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section 4: Pipeline Steps ── */
.bb-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
    position: relative;
    z-index: 2;
}

.bb-step-card {
    position: relative;
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-1);
    border-radius: var(--card-radius);
    padding: var(--space-6) var(--space-5);
    overflow: hidden;
    transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3);
    box-shadow: var(--shadow-1);
    animation: bb-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay, 0) * 200ms);
}

.bb-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: color-mix(in oklab, var(--brand) 30%, transparent);
}

.bb-step-card__ghost-num {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 140px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-100);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.bb-step-card:hover .bb-step-card__ghost-num {
    transform: scale(1.05) translate(-10px, 10px);
    opacity: 0.6;
}

.bb-step-card__content {
    position: relative;
    z-index: 10;
}

/* ── Section 5: Network Stats Banner ── */
.bb-stats-banner {
    background: var(--grad-move);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.1);
}

.bb-stats-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bb-stats-banner__inner {
    position: relative;
    z-index: 10;
}

.bb-stats-banner__heading {
    text-align: center;
    margin-bottom: var(--space-8);
}

.bb-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-10);
    text-align: center;
}

.bb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.bb-stat-glow {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: var(--space-2);
}

.bb-stat-label {
    font-size: var(--fs-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-1) var(--space-3);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-round);
}

/* ── Section 6: Join CTA ── */
.bb-join-cta {
    background: var(--bg);
    position: relative;
}

.bb-join-cta__title {
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-1) 0%, var(--text-3) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-join-cta__btn {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 30%, transparent);
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.bb-join-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 40%, transparent);
}
