/* ============================================
   SECURENCE — Team Page Editorial Architecture
   Frameless portraits · Zero boxy cards · 3D Backdrop
   ============================================ */

.team-page-hero {
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    padding: 160px 40px 72px;
    position: relative;
    background: transparent;
}

.team-hero-bg,
.team-hero-grid,
.team-hero-glow,
.team-hero-particles,
.team-section-bg {
    display: none;
}

.team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto 0 max(0px, calc((100vw - var(--container-max)) / 2));
}

.team-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.team-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.8vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    color: #ffffff;
}

.team-hero-desc {
    font-size: 1.06rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.65;
}

.team-members-section {
    position: relative;
    z-index: 2;
    padding: 96px 0;
    background: rgba(6, 6, 8, 0.94);
    border-top: 1px solid var(--border-hairline);
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px 32px;
}

.tm-card {
    position: relative;
    padding: 24px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-hairline);
    text-align: left;
    transition: border-color 0.25s ease;
}

.tm-card:hover {
    border-top-color: #ffffff;
}

.tm-card-glow {
    display: none;
}

.tm-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
    cursor: pointer;
}

.tm-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: border-color 0.25s ease;
}

.tm-card:hover .tm-avatar-ring {
    border-color: #ffffff;
}

.tm-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #111215;
}

.tm-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--ease-out-expo);
}

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

.tm-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 4px;
}

.tm-division {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tm-role {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tm-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tm-socials {
    display: flex;
    gap: 10px;
}

.tm-social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tm-social-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.tm-social-link svg {
    width: 14px;
    height: 14px;
}

.team-join-section {
    position: relative;
    z-index: 2;
    padding: 96px 0;
    background: #000000;
    border-top: 1px solid var(--border-hairline);
}

.team-join-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.team-join-divider {
    width: 48px;
    height: 1px;
    background: var(--border-strong);
    margin: 0 auto 28px;
}

.team-join-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.team-join-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tm-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.tm-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
}

.tm-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
}

.tm-lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
}

.tm-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: #141418;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tm-lightbox-close:hover {
    background: #ffffff;
    color: #000000;
}

@media (max-width: 1100px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-page-hero {
        padding: 132px 22px 52px;
    }

    .team-hero-content {
        margin: 0;
    }

    .team-members-grid {
        grid-template-columns: 1fr;
    }
}
