:root {
    --clean-bg: #ffffff;
    --card-surface: #f8f9fa;
    --back-surface: #111115;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-light: #f4f4f5;
    --text-dim: #a1a1aa;
    --border-line: #e4e4e7;
    --font-clean: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.premium-flip-team {
    background-color: var(--clean-bg);
    color: var(--text-dark);
    font-family: var(--font-clean);
    padding: 100px 4vw;
}

.premium-flip-team * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.board-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.board-header {
    border-bottom: 2px solid var(--border-line);
    padding-bottom: 24px;
    margin-bottom: 50px;
}

.board-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Grid Layout */
.board-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- The 3D Flip System Container --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 440px;
    /* Fixed structural height prevents row jumps */
    perspective: 1200px;
    /* Creates the cinematic depth illusion */
}

/* Inner wrapper coordinating the rotation physics */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

/* Interaction Trigger */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Shared properties for both faces */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Fixes Safari artifact paths */
    backface-visibility: hidden;
    border: 1px solid var(--border-line);
    display: flex;
    flex-direction: column;
}

/* --- FRONT FACE STYLING --- */
.flip-card-front {
    background-color: var(--card-surface);
}

.card-image-box {
    width: 100%;
    height: 95%;
    overflow: hidden;
    background-color: #ededf0;
}

.leader-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 16px;
    background: var(--clean-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader-title-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.leader-title-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- BACK FACE STYLING --- */
.flip-card-back {
    background-color: var(--back-surface);
    color: var(--text-light);
    transform: rotateY(180deg);
    /* Pre-rotates back panel */
    padding: 30px;
    justify-content: flex-start;
    border-color: var(--back-surface);
}

.back-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.back-role {
    font-size: 0.85rem;
    /* color: var(--text-dim); */
    color: #b8ff5a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}

.back-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    flex-grow: 1;
}

.back-footer {
    padding-top: 15px;
}

.back-social {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-social:hover {
    color: var(--text-dim);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .board-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .board-row {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 460px;
    }
}



.team-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 70px
}

.team-number {
    font-size: 11px;
    color: #777
}

.team-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600
}

.team-line {
    flex: 1;
    height: 1px;
    background: #d5d1ca
}

.team-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 10%;
    margin-bottom: 70px
}

.team-eyebrow {
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6c9f2d
}

.team-heading h2 {
    font: 500 clamp(50px, 6vw, 90px)/.95 Manrope, sans-serif;
    letter-spacing: -5px
}

.team-heading h2 span {
    color: #8b867f
}