/* Regius Records - Sovereign Sound Architecture Shared Stylesheet */

:root {
    --bg-pure: #000000;
    --bg-surface: #0a0a0c;
    --bg-elevated: #111115;
    --bg-subtle: #16161c;
    --border-color: #222228;
    --border-light: #33333e;
    --gold-accent: #cbb26b;
    --gold-muted: #8c7843;
    --text-primary: #f5f5f7;
    --text-secondary: #9999a1;
    --text-muted: #66666e;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-pure);
}

body {
    background-color: var(--bg-pure);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Institutional Utility Bar */
.institutional-bar {
    background: #000;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
}

.inst-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.inst-badge {
    color: var(--gold-accent);
    font-weight: 600;
}

.inst-right {
    display: flex;
    gap: 2rem;
}

/* Top Institutional Header */
header.site-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.brand-block {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: max-content;
    margin-right: 2rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-block:hover {
    transform: scale(1.03);
}

.brand-logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: filter 0.3s ease;
}

.brand-block:hover .brand-logo {
    filter: drop-shadow(0 0 14px rgba(203, 178, 107, 0.5));
}

.main-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--gold-accent);
}

.header-cta {
    border: 1px solid var(--border-light);
    background: #0d0d10;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}

.header-cta:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* Institutional Container */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

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

.sec-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.sec-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Main Hub Artist Showcase Grid */
.artist-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.artist-hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.artist-hub-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(203, 178, 107, 0.15);
}

.artist-card-img-box {
    width: 100%;
    aspect-ratio: 16 / 11;
    position: relative;
    overflow: hidden;
    background: #000;
}

.artist-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artist-hub-card:hover .artist-card-img-box img {
    transform: scale(1.05);
}

.artist-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.artist-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artist-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.artist-card-genre {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.artist-card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.artist-card-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.artist-card-btn:hover {
    color: var(--gold-accent);
}

/* Artist Subpage Hero & Dossier */
.artist-hero-dossier {
    display: grid;
    grid-template-columns: 480px 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.artist-hero-portrait {
    position: relative;
    background: #000;
    min-height: 600px;
    border-right: 1px solid var(--border-color);
}

.artist-hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.artist-dossier-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.artist-meta-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.artist-hero-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.artist-real-identity {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.artist-bio-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.artist-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric-cell-val {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 0.25rem;
}

.metric-cell-lbl {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* 10-Photo High Resolution Editorial Gallery Grid */
.artist-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.artist-gallery-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.artist-gallery-counter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.artist-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.gallery-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

/* Dedicated Artist Audio Player & Tracklist */
.artist-player-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.album-showcase-split {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2.5rem;
}

.album-cover-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.album-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info-meta {
    display: flex;
    flex-direction: column;
}

.album-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.album-title-h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.album-desc-para {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.player-console-bar {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 140px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.player-controls-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.player-play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-accent);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.player-play-circle:hover {
    transform: scale(1.05);
    background: #dfc887;
}

.track-info-mini {
    overflow: hidden;
}

.track-name-bold {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-artist-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.waveform-scrub-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.waveform-canvas {
    width: 100%;
    height: 48px;
    background: rgba(255,255,255,0.02);
    border-radius: 2px;
}

.waveform-time-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Master Catalog & Tracklist Table Container */
.catalog-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 4px;
}

.catalog-table-container::-webkit-scrollbar {
    height: 6px;
}

.catalog-table-container::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

.catalog-table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.catalog-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

.catalog-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.catalog-table-container .catalog-table {
    border: none;
}

.catalog-table th {
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.catalog-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.catalog-track-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-track-row:hover td {
    background: var(--bg-elevated);
    color: #fff;
}

.catalog-track-row.active-track-row td {
    background: rgba(203, 178, 107, 0.08);
    color: #fff;
    border-bottom: 1px solid rgba(203, 178, 107, 0.3);
}

.catalog-track-row.active-track-row td:first-child {
    border-left: 3px solid var(--gold-accent);
}

.row-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    margin-right: 0.75rem;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.catalog-track-row:hover .row-play-icon,
.catalog-track-row.active-track-row .row-play-icon {
    border-color: var(--gold-accent);
    background: var(--gold-accent);
    color: #000;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lightbox-container {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-img-wrap {
    max-height: 75vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-img-wrap img {
    max-height: 75vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lightbox-meta {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--gold-accent);
}

/* Institutional Footer */
footer.site-footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 5rem 3rem 3rem;
}

.footer-grid {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-top: 1.25rem;
    max-width: 340px;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.footer-legal-bar {
    max-width: 1360px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.broadcast-showcase-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background: rgba(14, 16, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.vault-showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(14, 16, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.broadcast-feature-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.broadcast-actions-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.player-meta-badge-wrap {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-accent);
}

.institutional-release-bar {
    background: linear-gradient(90deg, rgba(203, 178, 107, 0.08) 0%, rgba(203, 178, 107, 0.22) 50%, rgba(203, 178, 107, 0.08) 100%);
    border-top: 1px solid var(--gold-accent);
    border-bottom: 1px solid var(--gold-accent);
    padding: 1.1rem 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: #fff;
}

.institutional-release-bar a {
    color: var(--gold-accent);
    text-decoration: underline;
    margin-left: 1.25rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .artist-hub-grid, .album-showcase-split, .artist-hero-dossier, .footer-grid,
    .broadcast-showcase-split, .vault-showcase-split {
        grid-template-columns: 1fr;
    }
    .broadcast-showcase-split,
    .vault-showcase-split {
        gap: 2rem;
        padding: 2rem;
    }
    .artist-hero-portrait {
        min-height: 440px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .artist-dossier-content {
        padding: 2.25rem 1.75rem;
    }
    .artist-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .institutional-bar {
        padding: 0.8rem 1.25rem;
    }
    header.site-header {
        padding: 0.85rem 1.25rem;
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }
    .brand-block {
        margin-right: auto;
    }
    .header-cta {
        padding: 0.5rem 1rem;
        font-size: 0.72rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    header.site-header nav {
        width: 100%;
        order: 3;
        overflow: hidden;
        position: relative;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
    .main-nav {
        display: flex;
        width: 100%;
        order: 3;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.65rem;
        padding: 0.5rem 0.25rem 0.6rem;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav li {
        flex-shrink: 0;
    }
    .main-nav a {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
        padding: 0.4rem 0.85rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(203, 178, 107, 0.2);
        border-radius: 999px;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }
    .main-nav a:hover,
    .main-nav a:active {
        border-color: var(--gold-accent);
        color: var(--gold-accent);
        background: rgba(203, 178, 107, 0.12);
    }
    .container {
        padding: 3rem 1.25rem;
    }
    .player-console-bar {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    .player-controls-left {
        width: 100%;
    }
    .waveform-scrub-container {
        width: 100%;
    }
    .player-meta-badge-wrap {
        text-align: left;
    }
    .artist-player-section {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .catalog-table-container {
        overflow-x: visible;
        border: none;
        background: transparent;
    }
    .catalog-table,
    .catalog-table tbody {
        display: block;
        width: 100%;
    }
    .catalog-table thead {
        display: none;
    }
    .catalog-track-row {
        display: grid !important;
        grid-template-columns: 46px 1fr auto;
        grid-template-areas:
            "play info playbtn"
            "play meta playbtn";
        gap: 0.3rem 0.85rem;
        align-items: center;
        background: rgba(14, 16, 22, 0.85);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.85rem 1rem;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .catalog-track-row:active,
    .catalog-track-row.active-track-row {
        border-color: var(--gold-accent);
        background: rgba(203, 178, 107, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(203, 178, 107, 0.08);
    }
    .catalog-track-row td {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }
    .catalog-track-row td:nth-child(1) {
        grid-area: play;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .catalog-track-row td:nth-child(1) .row-play-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(203, 178, 107, 0.12);
        border: 1px solid var(--gold-accent);
        color: var(--gold-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        margin-right: 0;
        transition: all 0.2s ease;
    }
    .catalog-track-row.active-track-row td:nth-child(1) .row-play-icon {
        background: var(--gold-accent);
        color: #000;
        box-shadow: 0 0 12px rgba(203, 178, 107, 0.6);
    }
    .catalog-track-row td:nth-child(2) {
        grid-area: info;
        overflow: hidden;
    }
    .catalog-track-row td:nth-child(2) strong {
        font-size: 0.95rem;
        color: #fff;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .catalog-track-row td:nth-child(2) span {
        font-size: 0.75rem;
        color: var(--gold-accent);
        display: block;
        margin-top: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .catalog-track-row td:nth-child(3) {
        display: none;
    }
    .catalog-track-row td:nth-child(4) {
        display: none;
    }
    .catalog-track-row td:nth-child(5) {
        grid-area: meta;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        color: var(--text-muted);
        white-space: nowrap;
        text-align: left;
    }
    .catalog-track-row td:nth-child(6) {
        grid-area: playbtn;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .catalog-track-row td:nth-child(6) .track-play-btn {
        font-size: 0.68rem;
        padding: 0.4rem 0.75rem;
        min-height: 36px;
        min-width: 52px;
        border-radius: 4px;
    }
    .player-console-bar {
        position: sticky;
        bottom: 0;
        z-index: 990;
        margin: 2.5rem 0 1rem;
        border-radius: 8px;
        border: 1px solid var(--gold-accent);
        background: rgba(10, 12, 16, 0.94);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(203, 178, 107, 0.15);
        padding: 1rem 1.15rem;
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    .sec-title {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
    }
    .institutional-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 1rem;
        font-size: 0.68rem;
    }
    .inst-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .inst-right {
        display: none;
    }
    .institutional-release-bar {
        padding: 0.85rem 1rem;
        font-size: 0.74rem;
        letter-spacing: 0.05em;
        line-height: 1.6;
    }
    .institutional-release-bar a {
        display: block;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    .broadcast-showcase-split,
    .vault-showcase-split {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
        border-radius: 6px;
    }
    .broadcast-showcase-split h3,
    .vault-showcase-split h3 {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
    }
    .broadcast-feature-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .broadcast-actions-group {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .broadcast-actions-group .header-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 44px;
        box-sizing: border-box;
    }
    .artist-hero-portrait {
        min-height: auto;
        aspect-ratio: 16 / 10;
        max-height: 320px;
    }
    .artist-hero-portrait img {
        object-fit: cover;
        object-position: center 25%;
    }
    .artist-hero-name {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
    }
    .artist-dossier-content {
        padding: 1.25rem 0.85rem;
    }
    .artist-metrics-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
        padding: 0.75rem 0;
        text-align: center;
    }
    .artist-metrics-grid > div {
        background: rgba(203, 178, 107, 0.05);
        border: 1px solid rgba(203, 178, 107, 0.2);
        border-radius: 4px;
        padding: 0.65rem 0.35rem;
    }
    .metric-cell-val {
        font-size: 1.05rem !important;
        font-weight: 700;
        color: var(--gold-accent);
    }
    .metric-cell-lbl {
        font-size: 0.62rem !important;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-top: 0.25rem;
    }
    .artist-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .artist-player-section {
        padding: 1.25rem 0.85rem;
    }
    .player-console-bar {
        padding: 1.15rem 0.85rem;
        gap: 1rem;
    }
    .player-play-circle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .player-meta-badge-wrap {
        text-align: center;
        width: 100%;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .album-showcase-split {
        gap: 1.25rem;
        padding-bottom: 1.25rem;
        text-align: center;
    }
    .album-cover-box {
        max-width: 220px;
        margin: 0 auto;
    }
    .album-title-h2 {
        font-size: 1.6rem;
    }
    .track-play-btn {
        min-height: 40px;
        min-width: 56px;
        padding: 0.5rem 0.85rem;
    }
    .artist-card-btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .row-play-icon {
        width: 28px;
        height: 28px;
        margin-right: 0.5rem;
    }
    footer.site-footer {
        padding: 3rem 1rem 2rem;
    }
    .footer-grid {
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    .footer-legal-bar {
        flex-direction: column;
        gap: 0.65rem;
        text-align: center;
        align-items: center;
        padding-top: 1.5rem;
    }
    .lightbox-modal {
        padding: 1rem;
    }
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.75);
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
    }
    .lightbox-img-wrap {
        max-height: 70vh;
    }
    .lightbox-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Sovereign Global Offices & Real Estate Component Module
   ========================================================================== */

/* Offices Hero & Topline HUD Strip */
.offices-hero-header {
    text-align: center;
    padding: 3rem 0 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.offices-hud-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0 3rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.offices-hud-cell {
    text-align: center;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--border-color);
}

.offices-hud-cell:last-child {
    border-right: none;
}

.offices-hud-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

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

/* Facility Navigation Pills */
.facility-nav-pills,
.office-nav-pills {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.facility-pill-btn,
.office-pill-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.facility-pill-btn:hover,
.facility-pill-btn.active,
.office-pill-btn:hover,
.office-pill-btn.active {
    color: #000;
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    font-weight: 600;
}

/* Standalone Facility / Office Dossier Cards */
.facility-dossier-card,
.office-dossier-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.facility-dossier-card:hover,
.office-dossier-card:hover {
    border-color: rgba(203, 178, 107, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.facility-card-header,
.office-card-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(14, 16, 20, 0.6);
}

.facility-card-title-group h2,
.office-card-title-group h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0.25rem 0;
    letter-spacing: -0.01em;
}

.facility-card-subtitle,
.office-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.facility-card-address,
.office-card-address {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.facility-coords-badge,
.office-coords-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-accent);
    background: rgba(203, 178, 107, 0.1);
    border: 1px solid rgba(203, 178, 107, 0.25);
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facility-coords-badge:hover,
.office-coords-badge:hover {
    background: rgba(203, 178, 107, 0.2);
    border-color: var(--gold-accent);
}

/* Facility / Office Split Layout (Plate + Specs) */
.facility-split-layout,
.office-split-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    border-bottom: 1px solid var(--border-color);
}

.facility-plate-box,
.office-plate-box {
    position: relative;
    border-right: 1px solid var(--border-color);
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.facility-plate-box img,
.office-plate-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.facility-plate-box:hover img,
.office-plate-box:hover img {
    transform: scale(1.04);
}

.facility-plate-overlay-tag,
.office-plate-overlay-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-color);
    color: var(--gold-accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

/* Architectural Key-Value HUD */
.facility-specs-container,
.office-specs-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facility-meta-hud,
.office-meta-hud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.facility-meta-item,
.office-meta-item {
    background: rgba(22, 22, 28, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 4px;
}

.facility-meta-label,
.office-meta-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.facility-meta-value,
.office-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* Interactive Tabs Component */
.facility-tabs-bar,
.office-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}

.facility-tab-btn,
.office-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facility-tab-btn:hover,
.office-tab-btn:hover {
    color: #fff;
}

.facility-tab-btn.active,
.office-tab-btn.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
    font-weight: 600;
}

.facility-tab-pane,
.office-tab-pane {
    display: none;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    min-height: 110px;
}

.facility-tab-pane.active,
.office-tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Facility Card Actions Footer */
.facility-card-footer,
.office-card-footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.facility-action-btns,
.office-action-btns {
    display: flex;
    gap: 0.75rem;
}

.facility-action-btn,
.office-action-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.facility-action-btn:hover,
.office-action-btn:hover {
    border-color: var(--gold-accent);
    color: #fff;
}

/* Index.html #offices 4-Column Showcase Grid */
.index-offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.index-office-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.index-office-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.index-office-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.index-office-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.index-office-card:hover .index-office-img-wrap img {
    transform: scale(1.06);
}

.index-office-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-color);
    color: var(--gold-accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.08em;
}

.index-office-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.index-office-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gold-accent);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.index-office-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.index-office-coords {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.index-office-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.index-office-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.index-office-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

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

/* Responsive Breakpoints for Offices */
@media (max-width: 1200px) {
    .index-offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .facility-split-layout,
    .office-split-layout {
        grid-template-columns: 380px 1fr;
    }
}

@media (max-width: 900px) {
    .offices-hud-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .offices-hud-cell:nth-child(2) {
        border-right: none;
    }
    .facility-split-layout,
    .office-split-layout {
        grid-template-columns: 1fr;
    }
    .facility-plate-box,
    .office-plate-box {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .index-offices-grid {
        grid-template-columns: 1fr;
    }
    .offices-hud-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }
    .offices-hud-cell {
        padding: 0.5rem 0.25rem;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }
    .offices-hud-cell:nth-child(2n) {
        border-right: none;
    }
    .offices-hud-value {
        font-size: 1.35rem;
    }
    .offices-hud-label {
        font-size: 0.65rem;
    }
    .facility-nav-pills,
    .office-nav-pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .facility-pill-btn,
    .office-pill-btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.7rem;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .facility-card-header,
    .office-card-header {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }
    .facility-card-title-group h2,
    .office-card-title-group h2 {
        font-size: 1.45rem;
    }
    .facility-coords-badge,
    .office-coords-badge {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .facility-meta-hud,
    .office-meta-hud {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .facility-tabs-bar,
    .office-tabs-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }
    .facility-tabs-bar::-webkit-scrollbar,
    .office-tabs-bar::-webkit-scrollbar {
        display: none;
    }
    .facility-tab-btn,
    .office-tab-btn {
        flex-shrink: 0;
        min-height: 44px;
        padding: 0.65rem 0.85rem;
        font-size: 0.72rem;
    }
    .facility-specs-container,
    .office-specs-container {
        padding: 1.25rem 1rem;
    }
    .facility-tab-pane,
    .office-tab-pane {
        min-height: 140px;
        font-size: 0.88rem;
    }
    .facility-card-footer,
    .office-card-footer {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.75rem;
    }
    .facility-action-btns,
    .office-action-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .facility-action-btn,
    .office-action-btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Milestone 2: Biogenics Directorate & Telemetry Component Styles
   ========================================================================== */

/* Telemetry HUD Section */
.telemetry-hud {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.telemetry-header-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
}

.telemetry-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.telemetry-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    color: var(--gold-accent);
}

.telemetry-status-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.telemetry-pulse-dot,
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Strain Switcher Bar */
.strain-switcher-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--bg-pure);
    border-bottom: 1px solid var(--border-color);
}

.strain-btn {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.strain-btn:last-child {
    border-right: none;
}

.strain-btn:hover {
    background: var(--bg-elevated);
}

.strain-btn.active {
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--gold-accent);
}

.strain-btn .strain-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.strain-btn .strain-name {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.strain-btn.active .strain-name {
    color: #fff;
    font-weight: 500;
}

/* Telemetry Stage Grid */
.telemetry-stage-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 480px;
}

@media (max-width: 1000px) {
    .telemetry-stage-grid {
        grid-template-columns: 1fr;
    }
    .strain-switcher-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .strain-switcher-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Left: Pod Plate */
.telemetry-pod-plate {
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pod-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
}

.pod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05);
    transition: opacity 0.3s ease;
}

.pod-scanline-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.pod-tag-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(203, 178, 107, 0.4);
    padding: 0.4rem 0.6rem;
    font-size: 0.68rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.pod-meta-strip {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.72rem;
}

.pod-meta-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.35rem;
}

.pod-meta-label {
    color: var(--text-muted);
}

.pod-meta-val {
    color: var(--text-primary);
    text-align: right;
}

.pod-cta-container {
    margin-top: auto;
}

.strain-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: #0d0d10;
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.strain-cta-btn:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    background: rgba(203, 178, 107, 0.12);
}

/* Right: Meters Panel */
.telemetry-meters-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meters-panel-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.strain-display-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.strain-profiling-tag {
    color: var(--gold-accent);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.strain-bio-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Meters Cluster */
.meters-cluster {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meter-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meter-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
}

.meter-name {
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.meter-number {
    color: var(--gold-accent);
    font-weight: 600;
}

.meter-track {
    width: 100%;
    height: 8px;
    background: var(--bg-pure);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-muted), var(--gold-accent));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.meter-fill-cyan {
    background: linear-gradient(90deg, #1e88e5, #64b5f6);
}

.meter-fill-amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* Aux Telemetry Grid */
.aux-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: var(--bg-pure);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    font-size: 0.74rem;
}

@media (max-width: 600px) {
    .aux-telemetry-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0.85rem;
        gap: 0.65rem;
    }
    .telemetry-header-bar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .telemetry-pod-plate {
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .telemetry-meters-panel {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }
    .strain-display-title {
        font-size: clamp(1.35rem, 5vw, 1.8rem);
    }
    .strain-bio-description {
        font-size: 0.88rem;
    }
    .strain-switcher-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .strain-btn {
        min-height: 48px;
        padding: 0.75rem 0.5rem;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    .strain-btn:nth-child(2n) {
        border-right: none;
    }
    .directorate-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding-top: 2.5rem;
    }
    .directorate-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.75rem;
    }
    .directorate-card {
        padding: 1.25rem 1rem;
    }
    .visualizer-container {
        padding: 1.25rem 0.85rem;
    }
    .visualizer,
    .frequency-meter {
        height: 180px;
    }
    .visualizer-readout {
        flex-direction: column;
        gap: 0.4rem;
    }
    .band-pill {
        padding: 0.4rem 0.65rem;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }
    .strain-cta-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .strain-cta-wrap .artist-card-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

.aux-cell {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.aux-lbl {
    color: var(--text-muted);
}

.aux-val {
    color: var(--gold-accent);
}

/* CRISPR-Acoustic Splicing Section */
.splicing-section,
.gene-splicing-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.splicing-table-wrap,
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 6px;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.splicing-table,
.institutional-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.splicing-table th,
.institutional-table th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.splicing-table td,
.institutional-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.splicing-table tr:last-child td,
.institutional-table tr:last-child td {
    border-bottom: none;
}

.splicing-table tr:hover td,
.institutional-table tr:hover td {
    background: var(--bg-elevated);
    color: #fff;
}

/* Frequency Visualizer Container */
.visualizer-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.visualizer-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.visualizer-band-legend {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.band-pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.band-pill:hover,
.band-pill.active {
    color: var(--gold-accent);
    border-color: var(--gold-accent);
    background: rgba(203, 178, 107, 0.1);
}

.visualizer-stage {
    position: relative;
    width: 100%;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.5rem 2rem 0.5rem;
}

.visualizer,
.frequency-meter {
    width: 100%;
    height: 220px;
    display: block;
}

.visualizer-grid-labels {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    pointer-events: none;
}

.visualizer-readout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.visualizer-readout span:first-child {
    color: var(--gold-accent);
}

/* Directorate Section */
.directorate-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
    border-top: 1px solid rgba(203, 178, 107, 0.2);
    padding-top: 4rem;
}

.directorate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.directorate-card {
    background: rgba(14, 16, 20, 0.85);
    border: 1px solid rgba(203, 178, 107, 0.3);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.directorate-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}

.directorate-badge-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-accent);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.directorate-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.directorate-role {
    font-size: 0.74rem;
    color: var(--gold-accent);
    letter-spacing: 0.05em;
}

.directorate-meta {
    background: var(--bg-pure);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.9rem;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
}

.directorate-meta div {
    line-height: 1.4;
}

.directorate-bio {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.directorate-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(203, 178, 107, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Cultivated Strain Cards Grid and CTA styling */
.strain-cta-wrap {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(203, 178, 107, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.strain-subject {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.artist-card-btn {
    width: auto;
    padding: 0.45rem 1rem;
}

/* ==========================================================================
   Mobile Performance & Rendering Acceleration Engine
   ========================================================================== */

/* Defer rendering of offscreen sections on modern mobile engines */
#roster, #catalog, #governance, #offices, #summits, #press, .vault-showcase-split {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

/* Eliminate 300ms tap delay and touch optimization across mobile */
a, button, .catalog-track-row, .facility-pill-btn, .facility-tab-btn, .gallery-card, .lightbox-close {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth momentum scrolling across iOS WebKit */
html, body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Image rendering acceleration */
img {
    content-visibility: auto;
}
