/* --- TEAM SECTION LAYOUT --- */
.team-section {
    padding: 50px 0 50px 0; /* Matches Roadmap & Expertise Alignment */
    position: relative;
    max-width: 1290px;
    margin: 0 auto;
}

/* Aligning Header to match the rest of the blueprint */
.team-section .section-header {
    margin-bottom: 60px;
    padding: 0;
    text-align: left;
}
#team .hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem) !important; 
    line-height: 1.0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.team-grid {
    display: flex;
    justify-content: flex-start;
    gap: 80px; /* Gap between Akhil and Annie */
    flex-wrap: wrap;
    margin-top: 60px;
}

/* --- THE COMPACT PERSONNEL CARD --- */
.team-card {
    width: 320px; /* Precision width to avoid 'Big Image' clutter */
    position: relative;
    cursor: crosshair; /* Engineering 'Selection' feel */
    transform: scale(0.90);
}

.portrait-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Professional portrait ratio */
    background: #050505;
    overflow: hidden;
    
    /* THE GUARDIAN AESTHETIC: High contrast, low brightness B&W */
    filter: grayscale(100%) contrast(1.2) brightness(0.75);
    border: 1px solid rgba(0, 71, 171, 0.2);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 1.2s ease, opacity 0.8s ease;
}

/* --- THE SIGNATURE (SOUL OF INTEGRITY) --- */
.signature-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.signature-svg {
    width: 80%;
    filter: drop-shadow(0 0 12px #00d4ff);
}

/* THE WRITING ANIMATION LOGIC */
.sig-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000; /* Hidden by default */
    transition: stroke-dashoffset 2s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

/* --- HOVER DYNAMICS: THE REVEAL --- */
.team-card:hover .portrait-container {
    filter: grayscale(0%) contrast(100%) brightness(90%); /* Return to life */
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 50px rgba(0, 71, 171, 0.3);
}

.team-card:hover .portrait {
    transform: scale(1);
    opacity: 1;
}

/* Triggers the signature 'Writing' effect */
.team-card:hover .sig-path {
    stroke-dashoffset: 0;
}

/* --- TEXT CONTENT STYLING --- */
.member-info h3 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    margin-top: 30px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.member-role {
    display: block;
    color: #00d4ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin: 8px 0 18px 0;
}

.member-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    .team-section { padding: 80px 8%; }
    .team-card { width: 70%; margin-bottom: 40px; }
    .team-grid { gap: 40px; }
    .signature-svg { width: 50%; }
}