/* Extracted from page_panels/team.php block 1 */
:root {
    --ww-bg: #000;
    --ww-card: rgba(8, 10, 14, 0.64);
    --ww-border: rgba(255,255,255,0.10);
    --ww-border-2: rgba(255,255,255,0.08);
    --ww-shadow: 0 22px 80px rgba(0,0,0,0.60);
    --ww-text: rgba(255,255,255,0.92);
    --ww-muted: rgba(255,255,255,0.72);
    --ww-dim: rgba(255,255,255,0.62);
}

/* Page wrapper with same video + noise look */
.teamx-page {
    position: relative;
    background: var(--ww-bg);
    min-height: calc(100vh - 80px);
    overflow: hidden;
    color: var(--ww-text);
}

.teamx-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.teamx-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}

.teamx-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 800px at 20% 10%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.82) 62%, rgba(0,0,0,0.92) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.80));
}

.teamx-noise {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}

.teamx-wrap {
    position: relative;
    z-index: 2;
    padding: 3.25rem 1.25rem 4.25rem;
}

.teamx-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Shared glass panel */
.teamx-panel {
    border-radius: 2px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--ww-shadow);
    position: relative;
    overflow: hidden;
}

.teamx-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(700px 350px at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,0.12), rgba(255,255,255,0) 55%);
    opacity: 0.75;
    pointer-events: none;
}

.teamx-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 28%, rgba(255,255,255,0.05) 62%, rgba(255,255,255,0));
    opacity: 0.18;
    pointer-events: none;
}

.teamx-kicker {
    display: inline-flex;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
}

/* Header */
.teamx-header {
    padding: 1.35rem 1.35rem 1.2rem;
    margin-bottom: 1.25rem;
}

.teamx-title {
    margin: 0.55rem 0 0.45rem 0;
    color: var(--ww-text);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 2.8vw, 2.0rem);
    line-height: 1.05;
    position: relative;
    z-index: 2;
}

.teamx-subtitle {
    margin: 0;
    color: var(--ww-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

/* Group */
.teamx-group {
    margin-top: 1.25rem;
}

.teamx-group:first-of-type {
    margin-top: 0;
}

.teamx-group-head {
    padding: 0.95rem 1.2rem;
    margin-bottom: 0.9rem;
}

.teamx-group-title {
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.95);
}

/* Empty state */
.teamx-empty {
    padding: 1.25rem 1.35rem;
}
.teamx-empty-title {
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}
.teamx-empty-sub {
    color: rgba(255,255,255,0.70);
    position: relative;
    z-index: 2;
}

/* Grid */
.teamx-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* Card */
.teamx-card {
    display: flex;
    flex-direction: column;
}

/* Photo */
.teamx-photo {
    position: relative;
    padding-top: 78%;
    background: rgba(0,0,0,0.45);
    overflow: hidden;
    border-bottom: 1px solid var(--ww-border-2);
}

.teamx-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 180ms ease;
}

.teamx-card:hover .teamx-photo img {
    transform: scale(1.06);
}

.teamx-photo-gradient {
    position: absolute;
    bottom: 0;
    height: 55%;
    width: 100%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0));
}

.teamx-photo-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(700px 350px at 30% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0) 55%),
        rgba(0,0,0,0.35);
}

.teamx-initial {
    width: 56px;
    height: 56px;
    border-radius: 2px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
}

/* Info */
.teamx-info {
    padding: 0.95rem 1.0rem 0.75rem;
    position: relative;
    z-index: 2;
}

.teamx-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 0 0 0.15rem 0;
    color: rgba(255,255,255,0.92);
}

.teamx-role {
    margin: 0;
    font-size: 0.90rem;
    color: rgba(255,255,255,0.62);
}

/* Actions */
.teamx-actions {
    margin-top: auto;
    padding: 0.0rem 1.0rem 1.05rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.teamx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem;
    border-radius: 2px;
    font-size: 0.90rem;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    box-shadow: 0 18px 46px rgba(0,0,0,0.55);
    transition: transform 0.10s ease, background 0.10s ease, border-color 0.10s ease;
}

.teamx-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.teamx-btn:active { transform: translateY(0); }

.teamx-btn-vr {
    width: 44px;
    padding: 0;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.90);
}

.teamx-btn-bio {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.14);
}

/* Responsive */
@media (max-width: 1024px) {
    .teamx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .teamx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .teamx-wrap { padding: 2.75rem 1rem 3.5rem; }
    .teamx-grid { grid-template-columns: 1fr; }
}


