/* --- TEAM SECTION: Clean Modern --- */

.tm-section {
    position: relative;
    padding: clamp(6rem, 10vh, 10rem) 0;
    background-color: var(--bg);
    overflow: hidden;
    color: var(--text);
}

/* --- AMBIENT --- */
.tm-ambient {
    position: absolute; inset: 0; pointer-events: none;
}
.tm-glow-blur {
    position: absolute; width: 800px; height: 800px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    filter: blur(100px);
}

.tm-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 2;
}

/* --- HEADER --- */
.tm-header { text-align: center; max-width: 600px; margin: 0 auto 5rem; }

.tm-label-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; background: color-mix(in srgb, var(--brand) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    border-radius: 100px;
    color: var(--brand); font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.badge-icon svg { width: 14px; height: 14px; }

.tm-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.tm-gradient {
    background: linear-gradient(135deg, var(--text) 30%, var(--brand));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tm-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* --- GRID --- */
.tm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

/* --- CARDS --- */
.tm-card {
    position: relative;
    border-radius: 24px;
    /* Clean layout */
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: default;
}

.tm-card-glass {
    position: absolute; inset: 0;
    background: color-mix(in srgb, var(--elev-1) 70%, transparent);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 var(--glass-highlight);
    transition: all 0.3s ease;
}

.tm-card:hover .tm-card-glass {
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
    background: color-mix(in srgb, var(--elev-2) 80%, transparent);
    box-shadow: 
        0 20px 40px -10px rgba(0,0,0,0.15),
        0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent);
}

.tm-content {
    position: relative; z-index: 1; padding: 2rem;
    height: 100%; display: flex; flex-direction: column;
    transform: translateZ(20px); /* Parallax depth */
}

/* Profile Block */
.tm-profile { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.tm-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand-glow);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--text); font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}
/* Online dot */
.tm-avatar::after {
    content: ''; position: absolute; bottom: 2px; right: 2px;
    width: 10px; height: 10px; background: var(--ok);
    border: 2px solid var(--elev-1); border-radius: 50%;
}

.tm-info h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text); }
.tm-role { font-size: 0.85rem; color: var(--text-muted); }

.tm-divider { height: 1px; width: 100%; background: var(--stroke); margin-bottom: 1.5rem; opacity: 0.5; }

/* Details */
.tm-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.detail-item { display: flex; flex-direction: column; }
.detail-item .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-item .val { font-size: 0.95rem; color: var(--text); font-weight: 600; margin-top: 2px; }

/* Tags */
.tm-tags { display: flex; gap: 8px; margin-top: auto; }
.tm-tags span {
    font-size: 0.75rem; color: var(--text-muted);
    background: color-mix(in srgb, var(--text) 5%, transparent);
    padding: 4px 10px; border-radius: 6px;
    font-weight: 500; transition: 0.3s;
}
.tm-card:hover .tm-tags span {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
}

/* --- FOOTER --- */
.tm-footer {
    display: flex; justify-content: center; align-items: center; gap: 3rem;
    margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--stroke);
}
.tm-stat-group { display: flex; flex-direction: column; align-items: center; }
.tm-stat-group .val { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.tm-stat-group .lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-top: 5px; letter-spacing: 1px; }
.tm-stat-sep { width: 1px; height: 30px; background: var(--stroke); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .tm-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .tm-grid { grid-template-columns: 1fr; }
    .tm-title { font-size: 2.2rem; }
}