:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --accent: #d1d1d1;
    --text-main: #e0e0e0;
    --text-dim: #6b6b6b;
    --source-color: #0175e2;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-bottom: 100px; /* dostosowane do nowego footera */
    -webkit-font-smoothing: antialiased;
}

header { text-align: center; padding: 30px 20px 10px; }
.brand-badge { font-size: 0.5rem; letter-spacing: 3px; border: 1px solid #222; display: inline-block; padding: 3px 8px; margin-bottom: 10px; color: var(--text-dim); }
header h1 { font-weight: 600; font-size: 1.6rem; letter-spacing: 5px; margin: 0; }
header h1 span { font-weight: 200; color: var(--text-dim); }
header p { color: var(--text-dim); letter-spacing: 4px; font-size: 0.63rem; margin-top: 5px; text-transform: uppercase; }

/* GRID */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 15px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Musi być wyższy niż canvas (-2) */
}

.monitor-card {
    background: var(--card-bg);
    border: 1px solid #161616;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s, 
                filter 0.3s,
                border-color 0.05s linear;  /* bardzo szybki lub całkowicie pomijamy */
    opacity: 0.85;
    filter: grayscale(30%);
}
.monitor-card:not(.soon):not(.active):hover .image-container {
    background: radial-gradient(circle, #3a3a3a 0%, #050505 90%);
    transition: background 2s ease;
}

.monitor-card.active { opacity: 1; filter: grayscale(0%); border-color: var(--accent); transform: translateY(-4px); }
.monitor-card.source-card.active { border-color: var(--source-color); }


.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #1a1a1a 0%, #050505 90%);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}


.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #3a3a3a 0%, #050505 90%);
    opacity: 0;
    transition: opacity 1s ease-in-out; /* długi atak i długi release */
    pointer-events: none;
    z-index: 1;
}

.monitor-card:not(.soon):not(.active):hover .image-container::before {
    opacity: 1;
    /* transition dziedziczy – ten sam czas */
}

/* Zapewniamy, że zawartość (logo, img) jest nad nakładką */
.image-container > * {
    position: relative;
    z-index: 2;
}


.monitor-card:not(.soon):not(.active):hover .image-container::before {
    opacity: 1;
}

.monitor-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.info { padding: 10px; text-align: center; }
.info h3 { margin: 0; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.5px; }
.info span { font-size: 0.5rem; color: var(--text-dim); text-transform: uppercase; display: block; margin-top: 3px; }

/* TEASERS */
.monitor-card.soon { cursor: default; opacity: 0.3; border: 1px dashed #222; position: relative; overflow: hidden; filter: grayscale(40%); }
.monitor-card.soon::after {
    content: "AVAILABLE SOON"; position: absolute; top: 30px; right: -25px;
    background: #666666; color: white; font-size: 0.45rem; font-weight: bold;
    padding: 3px 25px; transform: rotate(45deg); letter-spacing: 1px;
}
.monitor-card.soon img { filter: grayscale(100%) brightness(0.3) blur(2px); }

/* GÓRNY FOOTER (vault-controls) */
.vault-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    border-top: 1px solid #1a1a1a;
    padding: 12px 0 4px;
    z-index: 1000;
}

.player-bridge {
    display: grid;
    grid-template-columns: 280px 1fr 280px;  /* lewa i prawa stałe, środek elastyczny */
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.left-col {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.center-col {
    display: flex;
    justify-content: center;  /* wycentrowanie przycisku w środkowej kolumnie */
}

.right-col {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    /* nie dodajemy szerokości – grid ją narzuca */
}

/* Dodatkowo, aby elementy w prawej kolumnie nie wpływały na jej szerokość */
.track-selector {
    display: flex;
    gap: 5px;
    width: 175px;          /* 4x40px + 3x5px = 175px */
    flex-shrink: 0;
}

.track-btn {
    width: 40px;
    flex-shrink: 0;
}

.now-playing-mini {
    width: 150px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-indicator {
    min-width: 70px;
    flex-shrink: 0;
    text-align: center;
}

.alert-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.55rem;
    color: #777;
    letter-spacing: 1px;
    white-space: nowrap;
}

.volume-container {
    display: flex;
    align-items: center;
}

#master-play {
    background: transparent;
    color: var(--accent);
    border: 1px solid #333;
    padding: 8px 25px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: var(--transition);
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}
#master-play:hover { background: #111; border-color: #666; color: #fff; }

input[type=range] {
    -webkit-appearance: none;
    background: #222;
    height: 1px;
    width: 60px;
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 10px;
    width: 10px;
    background: #555;
    cursor: pointer;
    border-radius: 50%;
}

.status-indicator {
    font-size: 0.5rem;
    letter-spacing: 1px;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
}
.status-live {
    color: var(--source-color) !important;
    font-weight: 600;
}

/* Track selector */
.track-selector {
    display: flex;
    gap: 5px;
}
.track-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    font-size: 0.6rem;
    padding: 4px 0;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}
.track-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}
.track-btn:hover {
    border-color: #777;
    color: #ddd;
}

/* Now playing mini */
.now-playing-mini {
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;          /* ← stała szerokość dla tekstu */
    flex-shrink: 0;
    text-align: right;     /* wyrównanie do prawej, by nie przesuwało */
}

/* Footer minimalny (metodologia) */
.methodology-text {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1.2px;
    line-height: 1.5;
    display: block;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.8;
}
.footer-minimal {
    text-align: center;
    padding: 8px 0 4px;
    border-top: 1px solid #1a1a1a;
    margin-top: 8px;
}

.methodology-static {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1.2px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.8;
}

/* BIO OVERLAY - Specyficzna warstwa dla Twojego profilu */
#bio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* Musi być nad stopką i gridem */
    display: none; /* Sterowane przez JS */
    align-items: center;
    justify-content: center;

    /* Tło z niską alfą - pozwala "oddychać" shaderowi pod spodem */
    background: rgba(5, 5, 5, 0.3); 

    /* Klucz do elegancji: rozmycie tła WebGL */
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
}

/* Karta wewnątrz, która pozostaje ostra i monolityczna */
.bio-card {
    background: #0a0a0a; 
    border: 1px solid #1a1a1a;
    max-width: 900px; 
    width: 95%;
    position: relative; 
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8); /* Głębia nad rozmytym tłem */
}
.bio-grid { display: grid; grid-template-columns: 280px 1fr; gap: 60px; }

#close-bio {
    position: absolute; /* lub fixed, jeśli chcesz go zawsze w tym samym miejscu ekranu */
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--source-color);
    padding: 10px 20px;
    cursor: pointer;
    z-index: 2100;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

#close-bio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--source-color);
}

/* Fix dla tła: jeśli z-index -2 chowa canvas za body, upewnij się, że: */
#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Zmień z -2 na -1, jeśli tło jest czarne */
}





.bio-photo { width: 100%; height: auto; margin-top: 120px; filter: grayscale(100%) contrast(1.1); border: 1px solid #222; display: block; }
.bio-header { margin-bottom: 30px; }
.sub-label { font-size: 0.55rem; color: #555; letter-spacing: 3px; text-transform: uppercase; }
.bio-header h2 { font-size: 1rem; font-weight: 600; letter-spacing: 2px; margin: 5px 0 0 0; color: #fff; }
.bio-body p { font-size: 0.8rem; line-height: 1.7; color: #888; margin-bottom: 20px; font-weight: 300; }
.bio-footer { display: flex; gap: 15px; margin-top: 20px; }
.contact-btn {
    display: inline-block; padding: 12px 30px; border: 1px solid #333; color: #fff;
    text-decoration: none; font-size: 0.65rem; letter-spacing: 2px; transition: 0.3s;
    background: transparent;
}
.contact-btn:hover { background: #fff; color: #000; border-color: #fff; }
.yt-btn { border-color: #0175e2; color: #0175e2; }
.yt-btn:hover { background: #0175e2; color: #fff; border-color: #0175e2; }
#close-bio {
    position: absolute; top: 30px; right: 30px; background: none; border: none; 
    color: #444; font-size: 0.6rem; letter-spacing: 2px; cursor: pointer;
}
#close-bio:hover { color: #fff; }



/* LOGO I ANIMACJE (BEZ ZMIAN) */
.source-logo-wrapper {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px;
}
.source-svg { width: 55%; height: auto; max-height: 80%; }
.source-card.active .source-logo-wrapper svg {
    filter: drop-shadow(0 0 25px rgba(0, 132, 255, 0.5));
    transition: var(--transition);
}
.pulse-element {
    fill: #0175e2 !important;
    animation: bcrPulse 3s infinite ease-in-out !important;
    transform-origin: 537.91px 534.13px;
    transform-box: fill-box;
}
@keyframes bcrPulse {
    0% { opacity: 1; filter: drop-shadow(0 0 2px rgba(0, 53, 255, 0.8)); }
    50% { opacity: 0; filter: drop-shadow(0 0 25px rgba(0, 53, 255, 1)); }
    100% { opacity: 1; filter: drop-shadow(0 0 2px rgba(0, 53, 255, 0.8)); }
}
.outer-ring {
    stroke: var(--accent);
    opacity: 0.3;
    animation: ringFade 3s infinite ease-in-out !important;
}
@keyframes ringFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}
/* Bazowy styl dla Control Room */
.control-room-text {
    font-weight: 200;
    color: var(--text-dim); /* #555 */
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                text-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header-trigger {
    cursor: pointer;
    text-align: center;
    margin-bottom: 40px; /* Zachowaj odstęp od grida */
}

/* Stan bazowy - surowy, przygaszony */
.control-room-text {
    color: var(--text-dim); 
    font-weight: 200;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                text-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stan po najechaniu - czysta, niebieska luminescencja */
.main-header-trigger:hover .control-room-text {
    color: var(--source-color); /* Twój niebieski #0084ff */
    text-shadow: 0 0 20px rgba(0, 132, 255, 0.4);
}
header {
    text-align: center; /* Centruje wewnętrzny blok */
    padding: 30px 20px 10px;
}

.main-header-trigger {
    display: inline-block; /* Kluczowa zmiana: szerokość dopasowana do treści */
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    padding: 10px 20px; /* Dodatkowy margines błędu dla palca/myszki */
}

/* Reszta stylów pozostaje bez zmian, by zachować płynne podświetlenie */
.control-room-text {
    color: var(--text-dim);
    font-weight: 200;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                text-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header-trigger:hover .control-room-text {
    color: var(--source-color);
    text-shadow: 0 0 20px rgba(0, 132, 255, 0.4);
}
#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Definiujemy paletę "Deep Monolith" */
    --gradient-color-1: #000000; /* Głęboka czerń */
    --gradient-color-2: #060a0d; /* Głęboki błękit */
    --gradient-color-3: #0e0e0e; /* Onyks */
    --gradient-color-4: #00264a; /* Błękit (akcent) */
}
/* Aktywny kafelek – bez ramki, z wewnętrznym gradientem i subtelnym cieniem */
.monitor-card.active {
    border-color: transparent !important;   /* usuwa białą/niebieską ramkę */
    box-shadow: 0 0 20px rgba(0, 28, 54, 0.4); /* delikatna poświata w kolorze #001c36 */
    transform: translateY(-4px); /* pozostawiamy delikatne uniesienie */
}

/* Zmiana tła wewnątrz kafelka (gradient z #002f5a) */
.monitor-card.active .image-container {
    background: radial-gradient(circle, #002f5a 0%, #050505 90%);
}

/* Dla kafelka źródła (z logo) – analogicznie, bez ramki */
.monitor-card.source-card.active {
    border-color: transparent !important;
}
.monitor-card.source-card.active .image-container {
    background: radial-gradient(circle, #002f5a 0%, #050505 90%);
}

/* --- RESEARCHER CARD --- */

#info-card-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.info-card-layout {
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important; /* Wymusza kolumny */
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.info-visual-side {
    flex: 0 0 45%;
    background: radial-gradient(circle, #00264a 0%, #000000 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.info-text-side {
    flex: 1;
    padding: 60px;
    background: transparent !important;
}

/* Typografia i Log */
.info-header h2 { font-size: 1.8rem; letter-spacing: 5px; margin: 0; color: #fff; }
.tech-label { font-size: 0.6rem; color: var(--source-color); letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; display: block; }
.info-body { margin-top: 40px; }
.info-row { margin-bottom: 25px; }
.info-row label { display: block; font-size: 0.55rem; color: #555; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.info-row p { font-size: 0.85rem; color: #aaa; line-height: 1.6; margin: 0; font-weight: 300; }

.italic-note { 
    font-style: italic; 
    color: #eee !important; 
    border-left: 2px solid var(--source-color); 
    padding-left: 20px; 
}

.info-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.log-text { font-size: 0.65rem; color: #444; line-height: 1.5; margin: 0; }

.info-card-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100%;
}


.info-visual-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--source-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.info-visual-side img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); 
}



/* Przycisk Close - taki sam jak w Bio */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid #333;
    color: #555;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 2px;
    z-index: 1000;
}

.close-btn:hover {
    color: #fff;
    border-color: #fff;
}


/* Mikroskopijny, techniczny przycisk INFO */
.info-trigger {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 55px;  /* Jeszcze mniejszy niż ostatnio */
    height: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Ledwo widoczna ramka */
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.info-trigger span {
    font-size: 0.5rem; /* Ekstremalnie mały font */
    font-weight: 700;
    letter-spacing: 1px;
    color: #444; /* Ciemniejszy, by nie odciągał uwagi */
    line-height: 1;
    pointer-events: none; /* Kliknięcie przechodzi do kontenera div */
}

/* Hover: Subtelne podświetlenie w kolorze źródła */
.info-trigger:hover {
    border-color: var(--source-color);
    background: rgba(0, 132, 255, 0.1);
}

.info-trigger:hover span {
    color: var(--source-color);
}

/* --- MOBILE  --- */

@media (max-width: 768px) {
    body {
        padding-bottom: 220px;
    }

    /* === GRID: 3 KOLUMNY === */
    .vault-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .monitor-card {
        padding: 10px 5px !important;
        min-height: 110px !important;
    }
    .monitor-card h3 {
        font-size: 0.5rem !important;
    }

    /* === KAFELKI (skalowanie) === */
    .info {
        padding: 6px 4px;
    }
    .info h3 {
        font-size: 0.55rem;
        line-height: 1.2;
    }
    .info span {
        font-size: 0.4rem;
    }
    .image-container {
        padding: 10px;
    }
    .monitor-card.soon::after {
        font-size: 0.35rem;
        top: 15px;
        right: -20px;
        padding: 2px 20px;
    }

    /* === GÓRNY PASEK === */
    .player-bridge {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 10px;
    }
    .left-col, .center-col, .right-col {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .status-indicator {
        min-width: auto;
        width: auto;
        text-align: center;
        margin: 0;
    }
    .track-selector {
        justify-content: center;
        width: auto;
    }
    #master-play {
        width: 90%;
        margin: 0 auto;
    }
    .footer-minimal {
        padding: 8px 10px;
        text-align: center;
    }
    .methodology-static, .methodology-trigger {
        font-size: 0.55rem;
        line-height: 1.3;
        word-break: break-word;
        white-space: normal;
        display: inline-block;
        max-width: 90%;
    }
    .now-playing-mini, .alert-compact {
        display: none;
    }
    .volume-container {
        width: 70%;
        justify-content: center;
    }
    input[type=range] {
        width: 100%;
    }

    /* ============================================
   RESPONSIVE: RESEARCHER CARD (mobile only)
   ============================================ */

#info-card-overlay {
        padding: 20px !important; /* To tworzy równe marginesy od krawędzi tel. */
        display: none; /* JS zamieni to na flex */
        justify-content: center !important;
        align-items: flex-start !important; /* Start od góry dla łatwego scrollowania */
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    /* 2. Karta - symetryczna i wyśrodkowana */
    #info-card-overlay .info-card-layout {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 20px auto !important;
    background: rgba(10, 10, 10, 0.95) !important;
    
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}
#info-card-overlay .info-card-grid {
    display: block !important;
    width: 100% !important;
}
    /* 3. Sekcja wizualna - centrowanie obrazka */
    .info-visual-side {
        width: 100% !important;
        flex: none !important;
        height: 220px !important;
        padding: 0px !important;
        display: flex !important;
        justify-content: left !important;
        align-items: left !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .info-visual-side img {
        max-height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        align-items: flex-start !important;
    }

    /* 4. Sekcja tekstu - pełna szerokość i symetria */
    .info-text-side {
        width: 100% !important;
        flex: none !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* 5. PRZYCISK CLOSE - Naprawa działania */
    .close-btn {
        position: fixed !important; /* Zawsze widoczny przy przewijaniu */
        top: 15px !important;
        right: 15px !important;
        z-index: 11000 !important; /* Musi być nad wszystkim innym */
        padding: 10px 18px !important;
        background: #000 !important;
        border: 1px solid #444 !important;
        color: #fff !important;
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
        cursor: pointer !important;
        pointer-events: all !important; /* Gwarancja klikalności */
    }
    #info-card-overlay .close-btn:hover {
        background: rgba(255,255,255,0.2) !important;
    }

    /* === BIO OVERLAY === */
    #bio-overlay {
        align-items: flex-start !important;
        padding: 20px 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .bio-card {
        padding: 40px 20px 30px 20px !important;
        margin: 20px auto;
        width: 95%;
        box-sizing: border-box;
    }
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .bio-photo-area {
        width: 140px;
        margin: 0 auto;

    }
    .bio-footer {
        flex-direction: column;
        gap: 10px;
    }
    .contact-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    #close-bio {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        z-index: 2001;
    }

    /* === TYPOGRAFIA (info-header) === */
    .info-header h2 {
        font-size: 1.4rem !important;
        letter-spacing: 3px !important;
    }
    .info-body {
        margin-top: 30px !important;
    }
    .info-row {
        margin-bottom: 25px !important;
    }
    .info-row p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    .info-footer {
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    .log-text {
        font-size: 0.55rem !important;
    }
    .info-header, .info-body, .info-footer {
        width: 100% !important;
        display: block !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .methodology-static, .methodology-trigger {
        font-size: 0.4rem;
    }
    .track-btn {
        width: 70px;
        font-size: 0.5rem;
    }
    .status-indicator {
        font-size: 0.45rem;
    }
}