/* ==============================================
   a6c.dev - Ocean Deep Hexagonal Design
   ============================================== */

/* CSS Custom Properties */
:root {
    /* Ocean Deep Palette */
    --deep-trench: #061E2E;
    --midnight-reef: #0C2D40;
    --bio-cyan: #00E5CC;
    --ocean-teal: #1A8A8A;
    --phosphor-green: #7DFFC1;
    --coral-signal: #FF6B6B;
    --sea-foam-white: #E0F7F4;
    --kelp-gray: #8AADB8;
    --prismatic-violet: #9B72CF;
    --deep-current: #0A3D5C;

    /* Dynamic region colors (changed via JS) */
    --bg-primary: #061E2E;
    --accent-primary: #00E5CC;
    --wireframe-color: rgba(10, 61, 92, 0.12);

    /* Typography */
    --font-body: 'Source Sans 3', sans-serif;
    --font-display: 'Nunito Sans', sans-serif;
    --font-data: 'IBM Plex Mono', monospace;

    /* Hex clip-path */
    --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-trench);
    color: var(--sea-foam-white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    transition: background-color 0.8s ease;
}

/* ---- Grain Noise Overlay ---- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.region-deep-current ~ .grain-overlay,
body.region-deep-current-active .grain-overlay {
    opacity: 0.05;
}

/* ---- Hex Wireframe Canvas ---- */
#hex-wireframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* ---- Regions ---- */
.region {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.region-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ---- Hex Clusters ---- */
.hex-cluster {
    display: grid;
    gap: 1rem;
    justify-items: center;
    align-items: center;
}

/* Surface cluster: centered breakout with satellites */
.cluster-surface {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.cluster-surface .breakout-cell {
    grid-column: 1 / 4;
    grid-row: 2;
}

.cluster-surface .heading-cell {
    grid-column: 1 / 4;
    grid-row: 1;
}

.cluster-surface .sat-tl {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
}

.cluster-surface .sat-tr {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
}

.cluster-surface .sat-bl {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
}

.cluster-surface .sat-br {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
}

/* Descent cluster */
.cluster-descent {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cluster-descent .heading-cell {
    grid-column: 2 / 4;
    grid-row: 1;
}

.cluster-descent .breakout-cell {
    grid-column: 1 / 3;
    grid-row: 2;
}

.cluster-descent .sat-scatter-1 {
    grid-column: 3;
    grid-row: 2;
}

.cluster-descent .sat-scatter-2 {
    grid-column: 1;
    grid-row: 3;
}

.cluster-descent .sat-crystal {
    grid-column: 2;
    grid-row: 3;
}

/* Deep Current cluster */
.cluster-deep-current {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.cluster-deep-current .heading-cell {
    grid-column: 1 / 3;
    grid-row: 1;
}

.cluster-deep-current .breakout-cell {
    grid-column: 2 / 4;
    grid-row: 2;
}

.cluster-deep-current .sat-dense-1 {
    grid-column: 1;
    grid-row: 2;
}

.cluster-deep-current .sat-dense-2 {
    grid-column: 4;
    grid-row: 2;
}

.cluster-deep-current .sat-dense-3 {
    grid-column: 1;
    grid-row: 3;
}

.cluster-deep-current .sat-dense-4 {
    grid-column: 2;
    grid-row: 3;
}

.cluster-deep-current .sat-crystal-branch {
    grid-column: 3;
    grid-row: 3;
}

/* Signal cluster: simplified, more negative space */
.cluster-signal {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cluster-signal .heading-cell {
    grid-column: 1 / 3;
    grid-row: 1;
}

.cluster-signal .breakout-cell {
    grid-column: 1;
    grid-row: 2;
}

.cluster-signal .sat-signal-1 {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
}

/* Emergence cluster */
.cluster-emergence {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cluster-emergence .heading-cell {
    grid-column: 1 / 4;
    grid-row: 1;
}

.cluster-emergence .breakout-cell {
    grid-column: 1 / 4;
    grid-row: 2;
}

.cluster-emergence .sat-emerge-1 {
    grid-column: 1;
    grid-row: 3;
}

.cluster-emergence .sat-emerge-2 {
    grid-column: 2;
    grid-row: 3;
}

.cluster-emergence .sat-emerge-3 {
    grid-column: 3;
    grid-row: 3;
}

/* ---- Hex Cells ---- */
.hex-cell {
    clip-path: var(--hex-clip);
    background-color: var(--midnight-reef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hex-cell.visible {
    opacity: 1;
    transform: scale(1);
}

.hex-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    border: 1px solid var(--deep-current);
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.3s ease;
    filter: url(#hand-drawn);
}

.hex-cell:hover::before {
    border-color: var(--bio-cyan);
}

.hex-cell:hover {
    box-shadow: 0 0 20px rgba(0, 229, 204, 0.3);
}

/* Heading cells */
.heading-cell {
    background: transparent;
    clip-path: none;
    padding: 2rem;
}

.heading-cell::before {
    display: none;
}

.heading-cell:hover {
    box-shadow: none;
}

/* ---- Typography ---- */
.region-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--sea-foam-white);
    text-align: center;
    line-height: 1.15;
}

/* ---- Breakout Cells ---- */
.breakout-cell {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1.15;
    transform: scale(0.85);
    background: linear-gradient(135deg, #061E2E 0%, #0C2D40 35%, #0A3D5C 65%, #1A8A8A 100%);
}

.breakout-cell.visible {
    transform: scale(1);
}

.breakout-cell svg {
    width: 80%;
    height: 80%;
}

/* Specific breakout sizing */
.hex-bloom-cell {
    max-width: 700px;
    aspect-ratio: 3 / 2.3;
}

.network-pulse-cell {
    max-width: 400px;
}

/* ---- Satellite Cells ---- */
.satellite-cell {
    width: 160px;
    aspect-ratio: 1 / 1.15;
    padding: 1.5rem;
}

.satellite-cell svg {
    width: 100%;
    height: 100%;
}

/* ---- SVG Sparklines ---- */
.spark-line {
    fill: none;
    stroke: var(--phosphor-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 2s ease;
}

.hex-cell.visible .spark-line {
    stroke-dashoffset: 0;
}

/* ---- Crystal Formation (Region 1) ---- */
.crystal-formation {
    overflow: visible;
}

.crystal-facet {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 1.5;
    opacity: 0;
    animation: crystal-assemble 4s ease-in-out infinite;
}

.facet-1 { animation-delay: 0s; }
.facet-2 { animation-delay: 0.5s; }
.facet-3 { animation-delay: 1s; }

.crystal-line {
    stroke: var(--prismatic-violet);
    stroke-width: 0.8;
    opacity: 0;
    animation: crystal-assemble 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.crystal-particle {
    fill: var(--bio-cyan);
    opacity: 0;
    animation: particle-converge 4s ease-in-out infinite;
}

.crystal-particle:nth-child(odd) {
    fill: var(--prismatic-violet);
}

@keyframes crystal-assemble {
    0% { opacity: 0; transform: scale(0.5); }
    30% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

@keyframes particle-converge {
    0% { opacity: 0.8; transform: translate(0, 0); }
    50% { opacity: 0.3; transform: translate(calc(200px - var(--cx, 0px)), calc(200px - var(--cy, 0px))); }
    100% { opacity: 0.8; transform: translate(0, 0); }
}

/* ---- Data Stream (Region 2) ---- */
.stream-path {
    fill: none;
    stroke: var(--phosphor-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: stream-flow 6s linear infinite;
}

.sp-1 { animation-delay: 0s; }
.sp-2 { stroke: var(--ocean-teal); animation-delay: 0.5s; }
.sp-3 { animation-delay: 1s; }
.sp-4 { stroke: var(--ocean-teal); animation-delay: 1.5s; }
.sp-5 { animation-delay: 2s; }

.stream-hex {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 2;
    animation: hex-pulse 3s ease-in-out infinite;
}

.stream-dot {
    fill: var(--phosphor-green);
    animation: dot-blink 2s ease-in-out infinite;
}

.stream-dot:nth-child(even) {
    animation-delay: 0.5s;
}

@keyframes stream-flow {
    0% { stroke-dashoffset: 600; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

@keyframes hex-pulse {
    0%, 100% { stroke-width: 2; opacity: 0.5; }
    50% { stroke-width: 3; opacity: 1; }
}

@keyframes dot-blink {
    0%, 100% { opacity: 0.3; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* ---- Ocean Current (Region 3) ---- */
.wave-path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    animation: wave-move 8s ease-in-out infinite;
}

.wp-1 { stroke: var(--bio-cyan); animation-delay: 0s; }
.wp-2 { stroke: var(--ocean-teal); animation-delay: 0.5s; }
.wp-3 { stroke: var(--bio-cyan); opacity: 0.7; animation-delay: 1s; }
.wp-4 { stroke: var(--ocean-teal); opacity: 0.5; animation-delay: 1.5s; }
.wp-5 { stroke: var(--prismatic-violet); opacity: 0.4; animation-delay: 2s; }

.ripple {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 1;
    opacity: 0;
    animation: ripple-expand 4s ease-out infinite;
}

.ripple-2 { animation-delay: 1.3s; }
.ripple-3 { animation-delay: 2.6s; }

@keyframes wave-move {
    0% { transform: translateX(0); }
    50% { transform: translateX(-40px); }
    100% { transform: translateX(0); }
}

@keyframes ripple-expand {
    0% { opacity: 0.6; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(2); }
}

/* ---- Network Pulse (Region 4) ---- */
.pulse-edge {
    stroke: var(--deep-current);
    stroke-width: 1.5;
    opacity: 0.4;
}

.pulse-node {
    fill: var(--deep-trench);
    stroke: var(--bio-cyan);
    stroke-width: 2;
    animation: node-pulse 5s ease-in-out infinite;
}

.pn-1 { animation-delay: 0s; }
.pn-2 { animation-delay: 0.8s; }
.pn-3 { animation-delay: 1.6s; }
.pn-4 { animation-delay: 2.4s; }
.pn-5 { animation-delay: 3.2s; }
.pn-6 { animation-delay: 4s; }

.signal-ring {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 1;
    opacity: 0;
    animation: signal-emanate 5s ease-out infinite;
}

.sr-1 { animation-delay: 0s; }
.sr-2 { animation-delay: 0.8s; }
.sr-3 { animation-delay: 1.6s; }
.sr-4 { animation-delay: 2.4s; }
.sr-5 { animation-delay: 3.2s; }
.sr-6 { animation-delay: 4s; }

@keyframes node-pulse {
    0%, 100% { fill: var(--deep-trench); stroke: var(--deep-current); }
    20% { fill: var(--bio-cyan); stroke: var(--bio-cyan); }
    40% { fill: var(--deep-trench); stroke: var(--deep-current); }
}

@keyframes signal-emanate {
    0% { opacity: 0; transform-origin: center; transform: scale(1); }
    20% { opacity: 0.6; }
    40% { opacity: 0; transform: scale(2.5); }
    100% { opacity: 0; transform: scale(2.5); }
}

/* ---- Hex Bloom (Region 5) ---- */
.bloom-hex {
    fill: none;
    stroke-width: 1.5;
    opacity: 0;
    animation: bloom-appear 7s ease-in-out infinite;
}

.bh-center {
    stroke: var(--bio-cyan);
    fill: rgba(0, 229, 204, 0.1);
    animation-delay: 0s;
}

.bh-r1-1 { stroke: var(--phosphor-green); animation-delay: 0.5s; }
.bh-r1-2 { stroke: var(--bio-cyan); animation-delay: 0.7s; }
.bh-r1-3 { stroke: var(--ocean-teal); animation-delay: 0.9s; }
.bh-r1-4 { stroke: var(--phosphor-green); animation-delay: 1.1s; }
.bh-r1-5 { stroke: var(--prismatic-violet); animation-delay: 1.3s; }
.bh-r1-6 { stroke: var(--coral-signal); animation-delay: 1.5s; }

.bh-r2-1 { stroke: var(--bio-cyan); animation-delay: 1.8s; }
.bh-r2-2 { stroke: var(--phosphor-green); animation-delay: 2.0s; }
.bh-r2-3 { stroke: var(--ocean-teal); animation-delay: 2.2s; }
.bh-r2-4 { stroke: var(--prismatic-violet); animation-delay: 2.4s; }
.bh-r2-5 { stroke: var(--coral-signal); animation-delay: 2.6s; }
.bh-r2-6 { stroke: var(--bio-cyan); animation-delay: 2.8s; }

.bh-outer-1 { stroke: var(--kelp-gray); animation-delay: 3.2s; }
.bh-outer-2 { stroke: var(--kelp-gray); animation-delay: 3.4s; }
.bh-outer-3 { stroke: var(--kelp-gray); animation-delay: 3.6s; }
.bh-outer-4 { stroke: var(--kelp-gray); animation-delay: 3.8s; }

@keyframes bloom-appear {
    0% { opacity: 0; transform: scale(0); }
    15% { opacity: 1; transform: scale(1.1); }
    25% { transform: scale(1); }
    60% { opacity: 1; }
    80% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(0); }
}

/* ---- Data Viz Elements ---- */

/* Scatter dots */
.scatter-hex {
    fill: none;
    stroke: var(--deep-current);
    stroke-width: 1;
}

.scatter-dot {
    fill: var(--bio-cyan);
}

/* Radial chart */
.radial-hex {
    fill: none;
    stroke: var(--deep-current);
    stroke-width: 1;
}

.radial-ring {
    fill: none;
    stroke: var(--kelp-gray);
    stroke-width: 0.5;
    opacity: 0.4;
}

.radial-bar {
    stroke: var(--ocean-teal);
    stroke-width: 2;
    stroke-linecap: round;
}

/* Crystal motifs */
.dendrite {
    stroke: var(--prismatic-violet);
    stroke-width: 1.2;
    opacity: 0.2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease;
}

.hex-cell.visible .dendrite {
    stroke-dashoffset: 0;
}

.dendrite-branch {
    stroke: var(--prismatic-violet);
    stroke-width: 0.8;
    opacity: 0.15;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 2.5s ease 0.5s;
}

.hex-cell.visible .dendrite-branch {
    stroke-dashoffset: 0;
}

/* Dense viz lines (Region 3) */
.dense-line {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 2s ease;
}

.dl-1 { stroke: var(--phosphor-green); }
.dl-2 { stroke: var(--bio-cyan); transition-delay: 0.3s; }
.dl-3 { stroke: var(--ocean-teal); transition-delay: 0.6s; }

.hex-cell.visible .dense-line {
    stroke-dashoffset: 0;
}

/* Network mini */
.net-edge {
    stroke: var(--deep-current);
    stroke-width: 1;
}

.net-node {
    fill: var(--bio-cyan);
    opacity: 0.7;
}

/* Bar chart */
.bar {
    fill: var(--ocean-teal);
    opacity: 0.7;
}

.bar:nth-child(even) {
    fill: var(--bio-cyan);
}

/* Voronoi */
.voronoi-line {
    fill: none;
    stroke: var(--prismatic-violet);
    stroke-width: 0.8;
    opacity: 0.3;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 3s ease;
}

.hex-cell.visible .voronoi-line {
    stroke-dashoffset: 0;
}

/* Crystal branches */
.branch {
    stroke: var(--prismatic-violet);
    stroke-width: 1;
    opacity: 0.25;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease;
}

.hex-cell.visible .branch {
    stroke-dashoffset: 0;
}

/* Signal sparkline */
.signal-line {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease;
}

.hex-cell.visible .signal-line {
    stroke-dashoffset: 0;
}

/* Emergence circles */
.emerge-circle {
    fill: none;
    stroke-width: 1.5;
}

.ec-1 { stroke: var(--bio-cyan); }
.ec-2 { stroke: var(--phosphor-green); }
.ec-3 { stroke: var(--coral-signal); }

/* Emergence hex inner */
.emerge-hex-inner {
    fill: none;
    stroke: var(--bio-cyan);
    stroke-width: 1;
}

.eh-2 { stroke: var(--phosphor-green); }
.eh-3 { stroke: var(--prismatic-violet); }

/* Final sparkline */
.spark-final {
    fill: none;
    stroke: var(--phosphor-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2s ease;
}

.hex-cell.visible .spark-final {
    stroke-dashoffset: 0;
}

/* ---- Region-specific backgrounds ---- */
.region-surface {
    background: var(--deep-trench);
}

.region-descent {
    background: linear-gradient(180deg, var(--deep-trench) 0%, #081F30 100%);
}

.region-deep-current {
    background: linear-gradient(180deg, #081F30 0%, var(--midnight-reef) 100%);
}

.region-signal {
    background: linear-gradient(180deg, var(--midnight-reef) 0%, var(--deep-trench) 100%);
}

.region-emergence {
    background: linear-gradient(180deg, var(--deep-trench) 0%, #051825 50%, var(--deep-trench) 100%);
}

/* ---- Hive Navigator ---- */
.hive-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 80px;
    height: 96px;
    cursor: pointer;
}

.hive-nav-svg {
    width: 100%;
    height: 100%;
}

.hive-hex {
    fill: transparent;
    stroke: var(--deep-current);
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.hive-hex:hover {
    stroke: var(--bio-cyan);
}

.hive-hex.active {
    fill: var(--ocean-teal);
    stroke: var(--ocean-teal);
}

/* ---- Region 4 (Signal) palette restriction ---- */
.region-signal .satellite-cell {
    background-color: rgba(6, 30, 46, 0.8);
}

.region-signal .breakout-cell {
    background: linear-gradient(135deg, #061E2E 0%, #0C2D40 50%, #061E2E 100%);
}

/* ---- Emergence dissolve effect ---- */
.region-emergence .hex-cell {
    animation: float-up 4s ease-in-out infinite;
}

.region-emergence .hex-cell:nth-child(2n) {
    animation-delay: 0.5s;
}

.region-emergence .hex-cell:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes float-up {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.region-emergence .hex-cell.visible {
    animation: float-up 4s ease-in-out infinite;
}

/* ---- Hex cell border draw-in animation ---- */
.hex-cell::after {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: var(--hex-clip);
    border: 1.5px solid var(--deep-current);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.hex-cell.visible::after {
    opacity: 1;
}

/* ---- Responsive: below 768px ---- */
@media (max-width: 768px) {
    .hex-cluster {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .hex-cell {
        justify-self: center !important;
    }

    .heading-cell,
    .breakout-cell,
    .satellite-cell {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .breakout-cell {
        max-width: 300px;
    }

    .breakout-cell.visible {
        transform: scale(1);
    }

    .hex-bloom-cell {
        max-width: 350px;
    }

    .satellite-cell {
        width: 130px;
    }

    .region-heading {
        font-size: clamp(1.6rem, 4vw, 3rem);
    }

    .hive-nav {
        bottom: 1rem;
        right: 1rem;
        width: 60px;
        height: 72px;
    }

    .region {
        min-height: 100vh;
    }
}

/* ---- SVG filters hidden ---- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---- Data font for labels ---- */
.data-label {
    font-family: var(--font-data);
    font-weight: 400;
    font-size: 0.75rem;
    fill: var(--kelp-gray);
}

/* ---- Subheading style (weight 600) ---- */
.subheading {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--sea-foam-white);
}

/* ---- Caption/metadata style ---- */
.caption {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--kelp-gray);
}

/* ---- Signature gradient for breakout cells ---- */
.breakout-cell {
    background: linear-gradient(135deg, #061E2E 0%, #0C2D40 35%, #0A3D5C 65%, #1A8A8A 100%);
}

/* ---- Vivid gradient for data-viz glows ---- */
.data-glow {
    background: linear-gradient(135deg, #00E5CC 0%, #7DFFC1 100%);
}
