/* ============================================
   TEAM PAGE
   ============================================ */

/* ---------- SCROLL LOCK (used by overlay) ---------- */
body.scroll-locked {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
}

/* ---------- PAGE BODY ---------- */
.team-body {
    background: var(--navy-deep);
}

.team-main {
    min-height: 100vh;
    background: #f4f5f5;
}

/* ---------- BANNER ---------- */
.team-banner {
    position: relative;
    width: 100%;
    height: 36vh;
    min-height: 220px;
    background: var(--navy-deep);
    overflow: hidden;
    flex-shrink: 0;
}

/* Dot texture — same as companies banner */
.team-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.18)'/%3E%3C/svg%3E");
    background-size: 28px 28px;
    opacity: 0.12;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 100%);
}

/* Subtle blue glow — same as companies banner */
.team-banner::after {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 70%; height: 80%;
    background: radial-gradient(ellipse at 70% 30%, rgba(74, 144, 217, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.team-banner-text {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset for transparent nav */
    width: 100%;
    max-width: var(--container-max);
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    pointer-events: none;
}

.team-banner-headline-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-banner-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0;
}

.team-banner-subline {
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 600px;
}


/* ── PARTNERSHIP / DIFFERENTIATORS SECTION ── */

.team-partnership {
    background: #f4f5f5;
    padding: clamp(48px, 7vh, 96px) var(--container-pad);
}

.team-partnership-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.team-partnership-opener {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.02em;
    color: rgba(1, 12, 51, 0.75);
    margin: 0;
}

/* ── tsx-c Card ── */
.tsx-c-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 40px;
    border: 1px solid rgba(1, 12, 51, 0.10);
    margin-top: clamp(24px, 3vw, 40px);
}

.tsx-c-tabs {
    display: flex;
    gap: 0;
    align-items: flex-end;
}

.tsx-c-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(1, 12, 51, 0.08);
    padding: 0 0 16px;
    cursor: pointer;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: rgba(1, 12, 51, 0.2);
    text-align: left;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tsx-c-btn:hover { color: rgba(1, 12, 51, 0.5); }

.tsx-c-btn--active {
    color: #010c33;
    border-bottom-color: #06c4a2;
}

.tsx-c-divider-top { margin-bottom: 32px; }

.tsx-c-content { width: 100%; }

.tsx-c-panel {
    display: none;
    animation: tsxFadeIn 0.28s ease-out;
}

.tsx-c-panel--active { display: block; }

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

.tsx-c-subtitle {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #06c4a2;
}

.tsx-c-lead {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #010c33;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.tsx-c-body {
    margin-top: 20px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #717b7a;
    font-weight: 500;
    max-width: 740px;
}

.tsx-c-body p { margin: 0 0 0.85em; }
.tsx-c-body p:last-child { margin-bottom: 0; }

@media (max-width: 680px) {
    .tsx-c-card { padding: 24px 20px; }
    .tsx-c-btn { font-size: clamp(1rem, 4vw, 1.4rem); }
}

/* ── SCALED DISPLAY FIX — Team page ── */
@media (min-width: 1025px) and (max-width: 1439px) {

    .team-banner {
        height: 44vh;
        min-height: 280px;
    }
}
