/* ==========================================================================
   HonkerWorks CSS Stylesheet v0.2
   Aesthetics: Premium Cyber-Laboratory / Minimalist Monokai / Glassmorphism
   Theme: Calibrated Dynamic Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg-base: #060606;
    --bg-card: rgba(13, 14, 16, 0.72);
    --bg-card-hover: rgba(20, 22, 26, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f0f0f0;
    --text-secondary: #a0a5b5;
    --text-muted: #626875;
    
    /* Default Calibrated Dynamic Accent Colors (Calibrated by user) */
    --theme-c1: #ffd31d;
    --theme-c1-glow: rgba(255, 211, 29, 0.15);
    --theme-c2: #ff2e63;
    --theme-c2-glow: rgba(255, 46, 99, 0.15);
    --theme-c3: #00adb5;
    --theme-c3-glow: rgba(0, 173, 181, 0.15);
    
    /* Neon Accents mapped to dynamically updated variables */
    --color-banana: var(--theme-c1);
    --color-banana-glow: var(--theme-c1-glow);
    --color-green: #39e58e;
    --color-green-glow: rgba(57, 229, 142, 0.2);
    --color-gold: var(--theme-c1);
    --color-blue: var(--theme-c3);
    --color-pink: var(--theme-c2);
    
    /* Typography */
    --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', Consolas, Monaco, monospace;
    
    --transition-speed: 0.3s;
}

/* --------------------------------------------------------------------------
   1. Base & Layout Defaults
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 34px;
}

/* Helper width utility */
.w-100 { width: 100%; }
.mt-1 { margin-top: 1rem; }
.flex-col { flex-direction: column; }

/* --------------------------------------------------------------------------
   2. Canvas Background & Overlays
   -------------------------------------------------------------------------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    background-color: #060606;
}

.lab-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   3. Common UI & Utility Components
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2.5rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.glass-card:hover {
    border-color: var(--theme-c1-glow);
    box-shadow: 0 12px 40px 0 rgba(255, 211, 29, 0.02), 0 0 20px 0 rgba(0, 0, 0, 0.6);
}

.lab-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--theme-c1);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 2px 8px;
    background: var(--theme-c1-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.header-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 4px;
}

.header-dots span:nth-child(1) { background-color: var(--theme-c2); }
.header-dots span:nth-child(2) { background-color: var(--theme-c1); }
.header-dots span:nth-child(3) { background-color: var(--theme-c3); }

.text-center { text-align: center; }

/* Buttons styling */
.action-btn {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    outline: none;
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
}

.primary-btn {
    background-color: var(--theme-c1);
    color: #000;
    border: 1px solid var(--theme-c1);
    box-shadow: 0 4px 15px var(--theme-c1-glow);
}

.primary-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--theme-c1-glow);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    background-color: var(--theme-c1-glow);
    border-color: var(--theme-c1);
    color: var(--theme-c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--theme-c1-glow);
}

.text-link-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.text-link-btn:hover {
    color: var(--theme-c1);
}

.reset-link-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: color var(--transition-speed);
}

.reset-link-btn:hover {
    color: var(--theme-c2);
}

.accent-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--theme-c1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.green { background-color: var(--color-green); box-shadow: 0 0 8px var(--color-green); }
.status-dot.gold { background-color: var(--theme-c1); box-shadow: 0 0 8px var(--theme-c1); }
.status-dot.blue { background-color: var(--theme-c3); box-shadow: 0 0 8px var(--theme-c3); }

/* --------------------------------------------------------------------------
   4. Floating Canvas Controller
   -------------------------------------------------------------------------- */
.floating-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-controls.controls-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.hidden {
    display: none !important;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.control-btn:hover {
    background: var(--theme-c1-glow);
    border-color: var(--theme-c1);
    color: var(--theme-c1);
}

.control-btn.active {
    background: rgba(57, 229, 142, 0.1);
    border-color: var(--color-green);
    color: var(--color-green);
}

#toggle-animation-btn {
    width: auto;
    padding: 0 10px;
    border-radius: 20px;
    gap: 4px;
}

.mode-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 90px;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Intro Flow & Theme Calibration
   -------------------------------------------------------------------------- */
.fullscreen-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.intro-phase {
    position: absolute;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.intro-phase.active {
    position: relative;
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    display: block;
}

.centered-card {
    max-width: 480px;
    margin: auto;
}

.wide-card {
    max-width: 900px;
    margin: auto;
}

.scrollable-card {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.scrollable-card .card-content {
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 1.5rem;
}

.phase-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.split-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Swatch Grid Layout */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

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

.swatch {
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.swatch:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

.swatch.selected {
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.25);
}

.swatch-name {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    background: rgba(255,255,255,0.85);
    padding: 1px 4px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.selection-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--theme-c1);
}

/* Custom pickers styling */
.custom-pickers-box {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.custom-pickers-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: center;
}

.custom-pickers-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.custom-pickers-row input[type="color"] {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    padding: 0;
    overflow: hidden;
}

.custom-pickers-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.custom-pickers-row input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   6. Comic Placeholder & Layout
   -------------------------------------------------------------------------- */
.comic-container {
    padding: 0.5rem 0;
}

.comic-placeholder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .comic-placeholder {
        grid-template-columns: 1fr;
        max-height: 50vh;
        overflow-y: auto;
        padding-right: 8px;
    }
}

.comic-panel {
    background: rgba(10, 10, 10, 0.5);
    border: 2px solid var(--text-muted);
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--transition-speed);
}

.comic-panel:hover {
    border-color: var(--theme-c1);
}

.panel-num {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.panel-graphic {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
}

.panel-emoji {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.panel-script {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
}

.panel-script strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. Text Dumpage Content Styling
   -------------------------------------------------------------------------- */
.text-dumpage h2 {
    font-weight: 600;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--theme-c1);
    padding-left: 12px;
}

.text-dumpage h3 {
    font-weight: 500;
    color: var(--theme-c1);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.8rem 0;
    font-family: var(--font-mono);
}

.text-dumpage p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.text-dumpage ul {
    list-style-type: none;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

.text-dumpage li {
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    padding-left: 1.5rem;
}

.text-dumpage li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--theme-c1);
}

/* --------------------------------------------------------------------------
   8. Main Site Layout (Phase 4)
   -------------------------------------------------------------------------- */
#main-site {
    opacity: 0;
    transition: opacity 0.8s ease;
    width: 100%;
}

#main-site.visible {
    opacity: 1;
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 6, 6, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 34px;
    z-index: 100;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-emoji {
    font-size: 1.5rem;
    animation: sway 3s ease-in-out infinite alternate;
    display: inline-block;
    transform-origin: bottom center;
}

.lab-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--theme-c1);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--theme-c1);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 6rem 2rem 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.lab-badge {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--theme-c1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--theme-c1);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.lab-status-strip {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    max-width: 600px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}
.dot.green { background-color: var(--color-green); }
.dot.gold { background-color: var(--theme-c1); }

.pulse-green {
    background-color: var(--color-green);
    box-shadow: 0 0 0 0 rgba(57, 229, 142, 0.7);
    animation: pulse 1.8s infinite;
}

/* Sections */
.content-section {
    padding: 4rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* Grid splits */
.grid-2col {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.manifesto-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--theme-c1);
}

.manifesto-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.ethics-box {
    margin-top: 2rem;
    background: rgba(255, 46, 99, 0.04);
    border: 1px dashed var(--theme-c2);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
}

.ethics-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-c2);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.ethics-box p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

.quote-box {
    border-left: 2px solid var(--theme-c3);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.quote-symbol {
    position: absolute;
    top: -15px;
    left: 8px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(0, 173, 181, 0.05);
    line-height: 1;
}

.quote-box p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Axioms Section */
.bg-subtle-box {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.axioms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

.axiom-card {
    padding: 1.8rem !important;
}

.axiom-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.axiom-card h4 {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   9. Active Research Programs Cards
   -------------------------------------------------------------------------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

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

.program-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.program-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.program-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
    line-height: 1.5;
}

.lab-notes {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.note-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. Lab Documentation Area (Tabs)
   -------------------------------------------------------------------------- */
.documentation-panel {
    padding: 0;
    overflow: hidden;
}

.doc-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.3);
}

.doc-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.doc-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.doc-tab.active {
    color: var(--theme-c1);
    border-bottom-color: var(--theme-c1);
    background: rgba(255, 211, 29, 0.02);
}

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
}

/* --------------------------------------------------------------------------
   10.5 Field Notes Timeline
   -------------------------------------------------------------------------- */
.notes-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.timeline-item {
    border-left: 1px dashed var(--border-color);
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--theme-c1);
    position: absolute;
    left: -5px;
    top: 6px;
    box-shadow: 0 0 6px var(--theme-c1);
}

.item-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}

.timeline-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Contact & Communications
   -------------------------------------------------------------------------- */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-email {
    color: var(--theme-c1);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
}

.contact-email:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.lab-footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-status {
    color: var(--color-green);
}

/* --------------------------------------------------------------------------
   13. Global Keyframe Animations & Media Query Resets
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(57, 229, 142, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(57, 229, 142, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(57, 229, 142, 0);
    }
}

@keyframes sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(10deg); }
}

/* Respect user configuration for motion settings */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    #bg-canvas {
        display: none;
    }
}

/* Media resets for header */
@media (max-width: 768px) {
    .lab-header {
        padding: 1.2rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    .lab-nav {
        gap: 1.2rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-tagline {
        font-size: 1.35rem;
    }
    .content-section {
        padding: 3rem 2rem;
    }
    .tab-content {
        padding: 1.8rem;
    }
}

/* --------------------------------------------------------------------------
   14. Easter Egg: Drifting Banana & Emoji Storm
   -------------------------------------------------------------------------- */
#drifting-banana {
    position: fixed;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    z-index: 12000;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    transition: transform 0.15s ease-out;
    /* Smooth floating default animation */
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

#drifting-banana:hover {
    transform: scale(1.2) rotate(15deg);
}

#storm-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 15000;
    overflow: hidden;
}

.storm-emoji {
    position: absolute;
    font-size: 2.2rem;
    user-select: none;
    pointer-events: none;
    will-change: transform, left, top;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)) brightness(1); }
    100% { filter: drop-shadow(0 8px 16px rgba(255, 211, 29, 0.4)) brightness(1.15); }
}

.ai-generated-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    padding: 8px 18px;
    border: 1px solid var(--theme-c1);
    background: var(--theme-c1-glow);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--theme-c1);
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px var(--theme-c1-glow);
    text-transform: uppercase;
}

.pulse-icon {
    font-size: 1.1rem;
    animation: bounceSlow 2s infinite alternate ease-in-out;
}

@keyframes bounceSlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-3px) scale(1.1); }
}

.global-ai-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: rgba(6, 6, 6, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--theme-c1-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-c1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-speed), color var(--transition-speed);
}

/* --------------------------------------------------------------------------
   15. Team Cohort & Dossier Modals
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.team-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-c1);
    box-shadow: 0 12px 30px var(--theme-c1-glow), 0 0 20px 0 rgba(0, 0, 0, 0.6);
}

.team-avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--theme-c1) 0%, var(--theme-c2) 50%, var(--theme-c3) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    background-color: #111;
    transition: transform 0.5s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--theme-c1);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.team-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Growing Team Tags */
.backgrounds-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.2rem;
}

.backgrounds-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.backgrounds-tags span:hover {
    color: var(--theme-c1);
    border-color: var(--theme-c1-glow);
}

/* Dossier Modal CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not(.hidden) .modal-container {
    transform: scale(1) translateY(0);
}

/* Scrollbar styling for modal */
.modal-container::-webkit-scrollbar {
    width: 6px;
}
.modal-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-c1);
}

.dossier-card {
    padding: 3rem !important;
    position: relative;
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-overlay:not(.hidden) .dossier-card {
    border-color: var(--theme-c1-glow);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px;
    outline: none;
    z-index: 10;
}

.close-btn:hover {
    color: var(--theme-c2);
    transform: rotate(90deg);
}

.dossier-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

@media (max-width: 600px) {
    .dossier-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
}

.dossier-avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--theme-c1) 0%, var(--theme-c2) 50%, var(--theme-c3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.dossier-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-base);
    background-color: #111;
}

.dossier-identity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dossier-identity h2 {
    margin-bottom: 0;
}

.dossier-role-badge {
    font-family: var(--font-mono);
    color: var(--theme-c1);
    font-size: 0.95rem;
    font-weight: 500;
}

.dossier-body {
    display: grid;
    grid-template-columns: 1.30fr 0.70fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .dossier-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.dossier-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    border-left: 2px solid var(--theme-c1);
    padding-left: 10px;
}

.dossier-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.dossier-text ul {
    list-style: none;
    margin-left: 0.5rem;
    margin-bottom: 1.5rem;
}

.dossier-text li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.dossier-text li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--theme-c1);
}

.dossier-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 700;
}

.roles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.roles-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.dossier-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dossier-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--theme-c1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dossier-link:hover {
    color: #fff;
    transform: translateX(3px);
}

.dossier-link::before {
    content: "→";
    font-size: 0.9rem;
}


