/* MAIN STYLESHEET: Limestone Ventures */
@import 'variables.css';

/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
}

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

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Monospace Utilities */
.mono {
    font-family: var(--font-mono);
}

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

.text-terminal {
    color: var(--text-terminal);
}

/* =========================================
   3. GRID BACKGROUND (Industrial Effect)
   ========================================= */
.grid-intro {
    background-image:
        linear-gradient(var(--bg-panel) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-panel) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* =========================================
   17. MACHINE: PROCESS VISUAL (Interactive Simulation)
   ========================================= */
.machine-visual-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: var(--bg-core);
    border: var(--border-thin);
    margin-bottom: 6rem;
    overflow: hidden;
    /* Create the "Funnel" visual background */
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20% 100%;
    /* Guide lines for stages */
}

/* Overlay Labels */
.mv-stage-label {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 100%;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.mv-threshold-label {
    position: absolute;
    bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-warning);
    transform: translateX(-50%);
    pointer-events: none;
    text-align: center;
}

.mv-threshold-line {
    position: absolute;
    top: 50px;
    bottom: 50px;
    width: 1px;
    border-left: 1px dashed var(--accent-warning);
    opacity: 0.3;
}

/* Particles */
.machine-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(234, 234, 234, 0.5);
    transition: opacity 0.5s ease, transform 0.1s linear;
    will-change: transform, opacity;
}

.particle-dead {
    opacity: 0 !important;
    transform: scale(0.5);
}

.particle-survivor {
    background-color: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    z-index: 10;
}

/* Mobile Vertical Flow */
@media (max-width: 768px) {
    .machine-visual-container {
        height: 500px;
        /* Taller for vertical flow */
        background-image: linear-gradient(180deg,
                rgba(255, 255, 255, 0.02) 1px, transparent 1px);
        background-size: 100% 20%;
    }

    .mv-stage-label {
        width: 100%;
        height: auto;
        left: 0 !important;
        /* Override inline styles if any, or class styles */
        padding-left: 1rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Reposition Stages Vertically */
    .mv-stage-label:nth-child(1) {
        top: 0% !important;
    }

    .mv-stage-label:nth-child(2) {
        top: 25% !important;
    }

    .mv-stage-label:nth-child(3) {
        top: 50% !important;
    }

    .mv-stage-label:nth-child(4) {
        top: 75% !important;
    }

    /* Threshold Lines Horizontal */
    .mv-threshold-line {
        width: 100%;
        height: 1px;
        top: auto !important;
        /* Reset top if needed, though we act on specific elements usually */
        left: 0 !important;
        border-left: none;
        border-top: 1px dashed var(--accent-warning);
    }

    .mv-threshold-line.pos-1 {
        top: 25% !important;
    }

    .mv-threshold-line.pos-2 {
        top: 50% !important;
    }

    .mv-threshold-line.pos-3 {
        top: 75% !important;
    }

    /* Threshold Labels */
    .mv-threshold-label {
        right: 10px;
        left: auto !important;
        transform: none;
        text-align: right;
        font-size: 0.65rem;
        width: auto;
    }

    .mv-threshold-label.pos-1 {
        top: 23% !important;
        bottom: auto;
    }

    .mv-threshold-label.pos-2 {
        top: 48% !important;
        bottom: auto;
    }

    .mv-threshold-label.pos-3 {
        top: 73% !important;
        bottom: auto;
    }
}



/* =========================================
   4. NAVIGATION HUD (Head-Up Display)
   ========================================= */
.hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--border-thin);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hud-logo {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.hud-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.hud-link {
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.hud-link:hover,
.hud-link.active {
    color: var(--text-primary);
}

/* Active indicator (Mechanical underline) */
.hud-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-success);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hud-link:hover::after,
.hud-link.active::after {
    width: 100%;
}

.hud-cta {
    background: transparent;
    border: var(--border-thin);
    color: var(--text-terminal);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-minimal);
}

.hud-cta:hover {
    background-color: rgba(0, 255, 204, 0.1);
    /* Subtle cyan tint */
    border-color: var(--accent-success);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

/* =========================================
   5. LAYOUT & CONTAINERS
   ========================================= */
main {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: calc(100vh - 100px);
    /* Leave room for footer */
    padding-bottom: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

section {
    margin-bottom: 4rem;
}

/* =========================================
   6. CARDS & PANELS
   ========================================= */
.panel {
    display: block;
    background-color: var(--bg-panel);
    border: var(--border-thin);
    border-radius: var(--border-radius-sharp);
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.panel:hover {
    border: var(--border-active);
}

/* =========================================
   7. FOOTER
   ========================================= */
.global-footer {
    border-top: var(--border-thin);
    padding: 2rem 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
.mobile-only {
    display: none;
}

/* Mobile Toggle (Hamburger) - Hidden on Desktop */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem;
    z-index: 20;
    /* Above overlay */
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-terminal);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hud-nav {
        padding: 0 1rem;
    }

    /* Hide the desktop CTA on mobile */
    .hud-nav>.hud-cta,
    .hud-nav>.hud-cta.js-copper-modal {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Fullscreen Overlay Menu */
    .hud-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 10;
        /* Below toggle */

        /* Hide state */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        margin: 0;
    }

    .hud-links.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hud-link {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }

    /* Mobile Only List Item */
    .mobile-only {
        display: block;
    }

    .mobile-only .hud-link {
        color: var(--text-terminal);
        border: 1px solid var(--text-terminal);
        padding: 0.5rem 1.5rem;
        border-radius: 4px;
    }

    /* Hamburger Animation to 'X' */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* =========================================
   9. HERO SECTION (Split Screen)
   ========================================= */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    padding-right: 2rem;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--accent-success);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.6;
}

/* Flywheel Visualization */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.flywheel-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}



/* =========================================
   10. DATA TICKER
   ========================================= */
.data-ticker {
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    background-color: var(--bg-core);
    overflow-x: auto;
    /* Allow scroll on small screens */
    white-space: nowrap;
    gap: 2rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-val {
    color: var(--text-terminal);
    font-weight: 700;
}

/* =========================================
   11. LOGO STRIP (The Network)
   ========================================= */
.network-section {
    padding: 6rem 0;
}

.network-header {
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-left: 2px solid var(--accent-success);
    padding-left: 1rem;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    opacity: 0.5;
}

.logo-placeholder {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}


/* =========================================
   18. MACHINE: SYSTEM MATRIX (Data Grid)
   ========================================= */
.system-matrix {
    width: 100%;
    margin-bottom: 6rem;
    border-collapse: collapse;
    font-family: var(--font-primary);
}

.system-matrix th,
.system-matrix td {
    padding: 1.5rem;
    border: 1px solid #222;
    /* Low visibility border */
    text-align: left;
    transition: background-color 0.2s ease;
}

.system-matrix th {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 400;
    border-bottom: 2px solid #333;
}

.matrix-cell-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.matrix-cell-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.matrix-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-terminal);
}

/* Crosshair Highlight Effects */
.matrix-row-hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.matrix-col-hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Intersection Highlight */
.matrix-row-hover.matrix-col-hover {
    background-color: rgba(0, 255, 204, 0.05);
    /* Cyan tint */
    border: 1px solid var(--accent-success);
}

/* Mobile: Card View for Matrix */
@media (max-width: 768px) {

    .system-matrix,
    .system-matrix tbody,
    .system-matrix tr,
    .system-matrix td {
        display: block;
        width: 100%;
    }

    .system-matrix thead {
        display: none;
    }

    .system-matrix tr {
        margin-bottom: 2rem;
        border: var(--border-thin);
    }

    .system-matrix td {
        border: none;
        border-bottom: 1px solid #222;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .system-matrix td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        color: var(--text-terminal);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 0.2rem;
    }

    /* Founder Card Mobile Stack */
    .operator-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* Reduced from 2rem */
        padding: 1.5rem;
    }

    .operator-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        /* Let natural aspect ratio show */
        max-height: none;
        /* Remove clamp */
    }

    /* Reduce vertical space before data */
    .operator-data {
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .operator-data-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: baseline;
        margin-bottom: 0.75rem;
    }

    .operator-label {
        min-width: 100px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* =========================================
   12. NARRATIVE (Problem/Solution)
   ========================================= */
.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
    border-top: var(--border-thin);
}

.narrative-col h3 {
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.narrative-col p {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .hero-split,
    .narrative-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: left;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo-strip {
        gap: 2rem;
        justify-content: flex-start;
    }

    /* Mobile Ticker Fix */
    .data-ticker {
        flex-direction: column;
        gap: 1rem;
        overflow-x: visible;
        white-space: normal;
        align-items: flex-start;
    }
}

/* =========================================
   13. PORTFOLIO FILTERS
   ========================================= */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: var(--border-thin);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.filter-btn.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-terminal);
    border-color: var(--accent-success);
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.2);
}

/* =========================================
   14. TEAM / OPERATORS
   ========================================= */
.operator-section {
    padding: 2rem 0 4rem 0;
}

.operator-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    /* Explicit rows */
    gap: 0 3rem;
    /* Gap between columns */
    background-color: var(--bg-panel);
    border: var(--border-thin);
    padding: 2.5rem;
    align-items: start;
}

.operator-image-container {
    grid-column: 1;
    grid-row: 1 / span 2;
    /* Span both rows (Content + Data) */
    width: 100%;
    aspect-ratio: 1/1.2;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    /* filter: grayscale(100%); */
    /* Can re-enable if image is colored */
    border: var(--border-thin);
}

.operator-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.8;
}

.operator-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    /* Align to bottom of top row/image if needed */
    height: 100%;
}

.operator-data {
    grid-column: 2;
    grid-row: 2;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: var(--border-thin);
    border-bottom: var(--border-thin);
    padding: 1.5rem 0;
    margin-top: 0;
    /* Removed margin as gap handles spacing or separate row */
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.operator-data-row {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.operator-label {
    color: var(--text-terminal);
    min-width: 120px;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.advisor-card {
    background-color: var(--bg-panel);
    border: var(--border-thin);
    padding: 1.5rem;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advisor-card:hover {
    border-color: var(--text-primary);
}

.advisor-name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.advisor-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    flex-grow: 1;
}

.advisor-exp {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-terminal);
    display: block;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.research-container {
    padding: 1rem;
}

.research-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.research-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #222;
}

.research-item:last-child {
    border-bottom: none;
}

.research-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.research-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

.research-exp {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-terminal);
    text-align: right;
}

.research-meta {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    text-align: right;
}

.call-to-arms {
    background-color: var(--bg-panel);
    border: var(--border-thin);
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid effect for Call to Arms */
.call-to-arms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   15. UTILITIES & HELPERS
   ========================================= */
.w-max-650 {
    max-width: 650px;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.fw-700 {
    font-weight: 700;
}

.text-warning {
    color: var(--accent-warning);
}

.cta-large {
    font-size: 0.9rem;
    padding: 1rem 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.left-0 {
    left: 0%;
}

.left-25 {
    left: 25%;
}

.left-50 {
    left: 50%;
}

.left-75 {
    left: 75%;
}

.w-25 {
    width: 25%;
}

.text-sm {
    font-size: 0.8rem;
}

.col-30 {
    width: 30%;
}

.col-25 {
    width: 25%;
}

.col-15 {
    width: 15%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-copy {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 3rem auto;
    line-height: 1.6;
}

.challenge-list {
    text-align: left;
    max-width: 550px;
    margin: 0 auto 3rem auto;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border: var(--border-thin);
}

.challenge-item {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.challenge-item:last-child {
    margin-bottom: 0;
}

.challenge-item::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-warning);
    font-weight: 700;
}

@media (max-width: 768px) {
    .operator-card {
        grid-template-columns: 100px 1fr;
        /* Fixed image width + fluid content */
        gap: 1.5rem;
    }

    .operator-image-container {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 1/1.2;
        /* Maintain portrait or square? */
        height: auto;
    }

    .operator-content {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        /* Center header vertically against image */
    }

    .operator-data {
        grid-column: 1 / -1;
        /* Full width */
        grid-row: 2;
        margin-top: 0.5rem;
    }


    .research-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .research-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        text-align: left;
    }

    .research-role,
    .research-exp {
        text-align: left;
    }
}

/* =========================================
   16. MODAL (CopperCRM)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 600px;
    height: 80vh;
    background-color: var(--bg-core);
    border: var(--border-active);
    border-radius: var(--border-radius-sharp);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-warning);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
    /* Copper forms usually have white background */
}