/* Team page additions — follows the established inner-page layout. */
.team-hero .page-hero__image { object-position: center 54%; }
.team-section { padding-top: clamp(76px, 8vw, 112px); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
}
.team-card::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
    content: "";
    opacity: .75;
}

.team-card__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: #050508;
}
.team-card__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5,5,8,.35));
    content: "";
    pointer-events: none;
}
.team-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card__media.is-avatar {
    display: grid;
    place-items: center;
    padding: clamp(12px, 1.8vw, 20px);
    background: #000;
}
.team-card__media.is-avatar::after {
    display: none;
}
.team-card__media.is-avatar img {
    width: min(100%, 320px);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    transform: scale(1.18);
    transform-origin: center;
}

.team-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 360px;
    place-items: center;
    color: rgba(255,255,255,.18);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.team-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(24px, 3vw, 36px);
}
.team-card__role {
    margin: 0;
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.team-card h3 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: .86;
    text-transform: uppercase;
}
.team-card__status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.72);
    font-family: var(--font-display);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.team-card__status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(102,231,179,.42);
}
.team-card__bio {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.72;
}
.team-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}
.team-card__tags span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    color: rgba(255,255,255,.66);
    font-family: var(--font-display);
    font-size: .59rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.team-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
    padding-top: 26px;
}
.team-card__actions a {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    color: #fff;
    font-family: var(--font-display);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.team-card__actions a:first-child { border-color: #fff; background: #fff; color: #08080b; }
.team-card__actions a:hover,
.team-card__actions a:focus-visible { border-color: #fff; outline: 0; }
.team-card__actions svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.team-empty {
    padding: 52px 24px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}
.team-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 980px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-card { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .team-card { grid-template-columns: 1fr; }
    .team-card__media { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
    
.team-card__media.is-avatar {
    display: grid;
    place-items: center;
    padding: clamp(12px, 1.8vw, 20px);
    background: #000;
}
.team-card__media.is-avatar::after {
    display: none;
}
.team-card__media.is-avatar img {
    width: min(100%, 320px);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
}

.team-card__placeholder { min-height: 0; }
    .team-card__content { padding: 22px 19px; }
    .team-card__actions,
    .team-cta__actions { width: 100%; flex-direction: column; }
    .team-card__actions a,
    .team-cta__actions .button { width: 100%; }
}

@media (max-width: 640px) {
    .team-card__media.is-avatar {
        aspect-ratio: 1 / 1;
        padding: 14px;
    }
    .team-card__media.is-avatar img {
        width: min(100%, 320px);
        transform: scale(1.12);
    }
}
