/* ─── PERSONNEL PAGE STYLES ──────────────────────────────────── */

.profile-hero {
    padding: 4rem 1rem 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.profile-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    animation: scan-h 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.profile-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-back {
    margin-bottom: 2rem;
}

.profile-back a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--white);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.profile-back a:hover {
    opacity: 1;
}

.profile-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-photo-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.35);
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.1);
}

.profile-photo-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.18) 2px,
        rgba(0,0,0,0.18) 4px
    );
    pointer-events: none;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.profile-id {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.profile-callsign {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0.25rem 0 0.5rem;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    opacity: 0.55;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.2);
    width: fit-content;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.profile-stat:last-child {
    border-right: none;
}

.profile-stat-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.profile-stat-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* ─── BIOGRAPHY ──────────────────────────────────────────────── */

.bio-block {
    max-width: 760px;
}

.bio-block p {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 1rem;
}

.bio-block p:last-child {
    margin-bottom: 0;
}

/* ─── DETAIL TABLE ───────────────────────────────────────────── */

.detail-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255,255,255,0.18);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.detail-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table td {
    padding: 0.9rem 1.25rem;
    vertical-align: top;
}

.detail-table td:first-child {
    letter-spacing: 0.2em;
    opacity: 0.4;
    width: 35%;
    white-space: nowrap;
}

.detail-table td:last-child {
    letter-spacing: 0.05em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-photo-wrap {
        width: 120px;
        height: 120px;
    }

    .profile-stats {
        flex-wrap: wrap;
    }

    .profile-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .profile-stat:last-child {
        border-bottom: none;
    }
}
