/* ── Card ─────────────────────────────────────────────────────────────────── */
.team-card {
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.team-card__img-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 10px;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card__img {
    transform: scale(1.04);
}

.team-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.team-card__info {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
}

.team-card__name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--gold);
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.team-card__title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #222;
    margin: 0;
}

.team-card__cta {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.team-modal:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}

.team-modal[hidden] {
    display: flex !important;
    opacity: 0;
    pointer-events: none;
}

.team-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--gold);
    border:none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.team-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.team-modal__inner {
    display: flex;
    flex-direction: row;
    width: 100vw;
    margin: auto;
    background: #222;
    height: 100vh;
    overflow: hidden;
    transform: translateY(24px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-modal:not([hidden]) .team-modal__inner {
    transform: translateY(0);
}

.team-modal__image-col {
    flex: 0 0 45%;
    overflow: hidden;
    position: relative;
}

.team-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-modal__content-col {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 64px 56px;
    box-sizing: border-box;
    color: var(--white);
}

.team-modal__name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 0 0 12px;
}

.team-modal__title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 32px;
}

.team-modal__experience {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.team-modal__experience-label {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.team-modal__experience-value {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
}

.team-modal__divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 32px;
}

.team-modal__sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.team-modal__section-heading {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 10px;
}

.team-modal__section-body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 768px) {
    .team-modal__inner {
        flex-direction: column;
        max-height: 100vh;
        overflow-y: auto;
    }

    .team-modal__image-col {
        flex: none;
        height: 300px;
    }

    .team-modal__content-col {
        padding: 40px 24px;
    }
}