/* ═══════════════════════════════════════════════════════════
   about.css — SPIDER-VERSE 2099 HOLOGRAPHIC EDITION
   Auto-playing cinematic background + Miguel-style holo panels
═══════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────── */
.section--about {
    background: #000;
    position: relative;
    overflow: hidden;
    padding: var(--sp-2xl) 0;
}

/* ── Cinematic canvas (absolute background, full section) */
#about-cinematic-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    object-fit: cover;
}

/* Dark scrim over canvas so text stays readable */
.section--about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 18, 0.62);
    z-index: 1;
    pointer-events: none;
}

/* Scanline overlay — subtle CRT feel */
.section--about::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 240, 255, 0.018) 3px,
        rgba(0, 240, 255, 0.018) 4px
    );
    z-index: 2;
    pointer-events: none;
}

/* ── Sticky content layer (normal flow) ─────────────── */
.about__sticky-content {
    position: relative;
    z-index: 3;
}

/* ── Section heading ─────────────────────────────────── */
.section--about .comic-heading {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.8rem);
    text-shadow:
        3px 0 0 var(--c-cyan),
        -3px 0 0 var(--c-magenta),
        0 3px 0 var(--c-border-dark);
    margin-bottom: var(--sp-xl);
    letter-spacing: 0.12em;
}

/* ── Grid layout ─────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* ── Holographic panel base ──────────────────────────── */
.about-panel {
    /* Holo glass */
    background: rgba(0, 10, 30, 0.45);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-left: 3px solid rgba(0, 240, 255, 0.7);
    box-shadow:
        0 0 0 1px rgba(0,240,255,0.06) inset,
        0 0 30px rgba(0,240,255,0.08) inset,
        0 8px 32px rgba(0,0,0,0.55),
        0 0 60px rgba(0,240,255,0.06);
    position: relative;
    overflow: hidden;
    padding: var(--sp-lg) var(--sp-lg) var(--sp-lg) calc(var(--sp-lg) + 8px);
    /* GSAP reveal */
    opacity: 0;
    transform: translateY(40px);
    transition: box-shadow 0.4s ease;
}

/* Holo shimmer bar — top edge glow */
.about-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,240,255,0.8) 30%,
        rgba(0,240,255,0.4) 70%,
        transparent 100%);
    animation: holo-shimmer 4s linear infinite;
}

@keyframes holo-shimmer {
    0%   { opacity: 0.3; transform: scaleX(0.6) translateX(-30%); }
    50%  { opacity: 1;   transform: scaleX(1)   translateX(0); }
    100% { opacity: 0.3; transform: scaleX(0.6) translateX(30%); }
}

.about-panel:hover {
    box-shadow:
        0 0 0 1px rgba(0,240,255,0.15) inset,
        0 0 40px rgba(0,240,255,0.14) inset,
        0 8px 40px rgba(0,0,0,0.6),
        0 0 80px rgba(0,240,255,0.12);
}

.about-panel.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-pop);
}

/* Coloured left accent bar */
.about-panel__accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0,240,255,0) 0%,
        rgba(0,240,255,1) 40%,
        rgba(0,240,255,0.6) 70%,
        rgba(0,240,255,0) 100%);
    filter: blur(0.5px);
}

.about-panel--orgs .about-panel__accent-line {
    background: linear-gradient(180deg,
        rgba(217,0,255,0) 0%,
        rgba(217,0,255,1) 40%,
        rgba(217,0,255,0.6) 70%,
        rgba(217,0,255,0) 100%);
}

.about-panel--orgs {
    border-left-color: rgba(217,0,255,0.7);
    border-color: rgba(217,0,255,0.22);
    box-shadow:
        0 0 0 1px rgba(217,0,255,0.06) inset,
        0 0 30px rgba(217,0,255,0.08) inset,
        0 8px 32px rgba(0,0,0,0.55),
        0 0 60px rgba(217,0,255,0.06);
}

.about-panel--orgs::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(217,0,255,0.8) 30%,
        rgba(217,0,255,0.4) 70%,
        transparent 100%);
}

.about-panel--mission .about-panel__accent-line {
    background: linear-gradient(90deg,
        rgba(252,238,10,0) 0%,
        rgba(252,238,10,1) 40%,
        rgba(252,238,10,0.6) 70%,
        rgba(252,238,10,0) 100%);
    width: 100%;
    height: 2px;
    top: 0;
    left: 0;
}

.about-panel--mission {
    border-left-color: rgba(252,238,10,0.5);
    border-color: rgba(252,238,10,0.18);
    box-shadow:
        0 0 0 1px rgba(252,238,10,0.05) inset,
        0 0 30px rgba(252,238,10,0.06) inset,
        0 8px 32px rgba(0,0,0,0.55);
}

.about-panel--mission::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(252,238,10,0.8) 30%,
        rgba(252,238,10,0.4) 70%,
        transparent 100%);
}

/* ── Tag label ───────────────────────────────────────── */
.about-panel__tag {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: rgba(0,240,255,0.9);
    background: rgba(0,240,255,0.07);
    border: 1px solid rgba(0,240,255,0.22);
    padding: 2px 10px;
    margin-bottom: var(--sp-md);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,240,255,0.6);
}

.about-panel--orgs .about-panel__tag {
    color: rgba(217,0,255,0.9);
    background: rgba(217,0,255,0.07);
    border-color: rgba(217,0,255,0.22);
    text-shadow: 0 0 10px rgba(217,0,255,0.6);
}

.about-panel--mission .about-panel__tag {
    color: rgba(252,238,10,0.9);
    background: rgba(252,238,10,0.06);
    border-color: rgba(252,238,10,0.2);
    text-shadow: 0 0 10px rgba(252,238,10,0.5);
}

/* ── Heading ─────────────────────────────────────────── */
.about-panel__title {
    font-family: var(--ff-display);
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: var(--sp-md);
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* crisp drop shadow instead of blur */
}

/* ── Body text ───────────────────────────────────────── */
.about-panel__body {
    font-family: var(--ff-body);
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85); /* Highly readable off-white instead of tinted blue */
    line-height: 1.75;
    max-width: 560px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.about-em {
    font-style: normal;
    font-weight: 800;
    color: rgba(0,240,255,0.95);
    text-shadow: 0 0 12px rgba(0,240,255,0.4);
}

/* ── Lead panel — grid position ──────────────────────── */
.about-panel--lead {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

/* ── Metric cards ────────────────────────────────────── */
.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: var(--sp-lg);
    border-top: 1px solid rgba(0,240,255,0.1);
}

.about-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(0,240,255,0.04);
    border: 1px solid rgba(0,240,255,0.12);
    border-radius: 4px;
    transition: background 0.25s, box-shadow 0.25s;
}

.about-metric:hover {
    background: rgba(0,240,255,0.08);
    box-shadow: 0 0 20px rgba(0,240,255,0.1);
}

.about-metric--magenta {
    background: rgba(217,0,255,0.04);
    border-color: rgba(217,0,255,0.12);
}

.about-metric--magenta:hover {
    background: rgba(217,0,255,0.08);
    box-shadow: 0 0 20px rgba(217,0,255,0.1);
}

.about-metric__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(0,240,255,0.08);
    border: 1px solid rgba(0,240,255,0.2);
    color: var(--c-cyan);
}

.about-metric__icon svg {
    width: 18px;
    height: 18px;
}

.about-metric--magenta .about-metric__icon {
    background: rgba(217,0,255,0.08);
    border-color: rgba(217,0,255,0.22);
    color: var(--c-magenta);
}

.about-metric__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about-metric__value {
    font-family: var(--ff-display);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: rgba(255,255,255,0.93);
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(0,240,255,0.4);
}

.about-metric--magenta .about-metric__value {
    text-shadow: 0 0 14px rgba(217,0,255,0.4);
}

.about-metric__lbl {
    font-family: var(--ff-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(0,240,255,0.55);
    text-transform: uppercase;
    margin-top: 3px;
}

.about-metric--magenta .about-metric__lbl {
    color: rgba(217,0,255,0.55);
}

/* ── Orgs panel ──────────────────────────────────────── */
.about-panel--orgs {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

.about-orgs {
    list-style: none;
    margin-top: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-org {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 2px solid rgba(0,240,255,0.4);
    transition: background 0.25s;
}

.about-panel--orgs .about-org:nth-child(2) {
    border-left-color: rgba(217,0,255,0.4);
}

.about-panel--orgs .about-org:nth-child(3) {
    border-left-color: rgba(252,238,10,0.4);
}

.about-org:hover {
    background: rgba(255,255,255,0.04);
}

.about-org__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    padding: 3px;
}

.about-org__logo--invert {
    filter: invert(1) brightness(0.85);
}

.about-org__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.about-org__name {
    font-family: var(--ff-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.about-org__full {
    font-family: var(--ff-body);
    font-size: 0.73rem;
    font-weight: 500;
    color: rgba(160,200,230,0.6);
    line-height: 1.4;
}

/* ── Mission panel ───────────────────────────────────── */
.about-panel--mission {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.about-panel--mission__inner {
    display: flex;
    gap: var(--sp-xl);
    align-items: flex-start;
}

.about-panel--mission .about-panel__title {
    flex-shrink: 0;
    min-width: 200px;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    text-shadow: 0 0 20px rgba(252,238,10,0.2), 0 2px 4px rgba(0,0,0,0.8);
}

/* ── Pillar strip ────────────────────────────────────── */
.about-pillars {
    display: flex;
    gap: var(--sp-md);
    padding-top: var(--sp-md);
    border-top: 1px solid rgba(252,238,10,0.12);
}

.about-pillar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(252,238,10,0.04);
    border: 1px solid rgba(252,238,10,0.14);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: background 0.25s, box-shadow 0.25s;
}

.about-pillar:hover {
    background: rgba(252,238,10,0.08);
    box-shadow: 0 0 16px rgba(252,238,10,0.1);
}

.about-pillar__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-pillar__label {
    font-family: var(--ff-display);
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    letter-spacing: 0.07em;
    color: rgba(252,238,10,0.85);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(252,238,10,0.3);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about-panel--lead,
    .about-panel--orgs,
    .about-panel--mission {
        grid-column: 1;
        grid-row: auto;
    }

    .about-panel--mission__inner {
        flex-direction: column;
        gap: var(--sp-md);
    }

    .about-pillars {
        flex-direction: column;
    }

    .about-pillar {
        clip-path: none;
    }
}

@media (max-width: 600px) {
    .about-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .about-metric {
        padding: 0.6rem 0.65rem;
        gap: 0.5rem;
    }

    .about-metric__icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .about-metric__icon svg {
        width: 14px;
        height: 14px;
    }

    .about-metric__value {
        font-size: 1rem;
    }

    .about-metric__lbl {
        font-size: 0.65rem;
    }
}