/* AMX Staff — team cards (matches rank/home redesign tokens) */

.amx-staff-page .home-hero__lead { max-width: 36rem; }

.amx-staff.home-section--light {
    background: #fff;
    padding-top: 4.5rem;
    padding-bottom: 4.75rem;
}

.amx-staff__wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Intro */
.amx-staff__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin: 0 auto 2.5rem;
    max-width: 40rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(3, 13, 117, 0.08);
}

.amx-staff__intro-copy { max-width: 36rem; margin: 0 auto; }

.amx-staff__kicker {
    display: inline-block;
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fa0073;
}

.amx-staff__title {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #020c41;
}

.amx-staff__intro-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.amx-staff__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(3, 13, 117, 0.08);
    color: #030d75;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.amx-staff__chip i { font-size: 0.7rem; opacity: 0.85; }

.amx-staff__chip--pink {
    background: rgba(250, 0, 115, 0.08);
    border-color: rgba(250, 0, 115, 0.18);
    color: #fa0073;
}

/* Team blocks */
.amx-staff__team {
    margin-bottom: 3rem;
}

.amx-staff__team:last-child {
    margin-bottom: 0;
}

.amx-staff__sec-head {
    text-align: center;
    margin: 0 auto 1.65rem;
    max-width: 32rem;
}

.amx-staff__sec-kicker {
    display: inline-block;
    margin: 0 0 0.4rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fa0073;
}

.amx-staff__sec-head h3 {
    margin: 0 0 0.4rem;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #020c41;
}

.amx-staff__sec-head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748b;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
    -webkit-text-align-last: center;
}

/* Grids */
.amx-staff__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .amx-staff__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .amx-staff__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ops: up to 5 cards — nice wrap on desktop */
@media (min-width: 1024px) {
    .amx-staff__grid--ops {
        grid-template-columns: repeat(6, 1fr);
    }
    .amx-staff__grid--ops .amx-staff-card {
        grid-column: span 2;
    }
    .amx-staff__grid--ops .amx-staff-card:nth-child(4),
    .amx-staff__grid--ops .amx-staff-card:nth-child(5) {
        grid-column: span 2;
    }
    .amx-staff__grid--ops .amx-staff-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .amx-staff__grid--ops .amx-staff-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Cards */
.amx-staff-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(3, 13, 117, 0.08);
    box-shadow: 0 10px 28px rgba(2, 12, 65, 0.05);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.amx-staff-card:hover {
    border-color: rgba(250, 0, 115, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(2, 12, 65, 0.1);
}

.amx-staff-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(160deg, #020c41 0%, #030d75 100%);
}

.amx-staff-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.amx-staff-card:hover .amx-staff-card__media img {
    transform: scale(1.04);
}

.amx-staff-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1;
    text-align: center;
}

.amx-staff-card__role {
    display: inline-flex;
    align-self: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(250, 0, 115, 0.08);
    border: 1px solid rgba(250, 0, 115, 0.16);
    color: #fa0073;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.amx-staff-card__name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.amx-staff-card__name {
    margin: 0;
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #020c41;
    text-align: center;
}

.amx-staff-card__flag {
    width: 1.35rem;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(2, 12, 65, 0.15);
    flex-shrink: 0;
}

.amx-staff-card__bio {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #64748b;
    flex: 1;
    width: 100%;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;
    -webkit-text-align-last: center;
}

.amx-staff-card__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    padding-top: 0.15rem;
    width: 100%;
}

.amx-staff-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #030d75;
}

.amx-staff-card__stat i {
    font-size: 0.7rem;
    color: #fa0073;
    opacity: 0.9;
}

.amx-staff-card__stat-unit {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.7rem;
}

.amx-staff-card__ids {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}

.amx-staff-card__id {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid rgba(3, 13, 117, 0.08);
    color: #030d75;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.amx-staff-card__id--muted {
    color: #94a3b8;
    background: #f8fafc;
}

.amx-staff-card__email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fa0073;
    text-decoration: none;
    transition: opacity 0.15s;
    word-break: break-all;
    text-align: center;
}

.amx-staff-card__email:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.amx-staff-card__email i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Open positions */
.amx-staff-card--open {
    border-style: dashed;
    border-color: rgba(250, 0, 115, 0.28);
    background: linear-gradient(180deg, rgba(250, 0, 115, 0.03) 0%, #fff 42%);
}

.amx-staff-card--open:hover {
    border-color: rgba(250, 0, 115, 0.45);
}

.amx-staff-card__placeholder {
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(250, 0, 115, 0.1), transparent 65%),
        linear-gradient(160deg, rgba(2, 12, 65, 0.04) 0%, rgba(250, 0, 115, 0.06) 100%);
    color: #fa0073;
    border-bottom: 1px dashed rgba(250, 0, 115, 0.2);
}

.amx-staff-card__placeholder-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 0, 115, 0.1);
    border: 1px solid rgba(250, 0, 115, 0.2);
    font-size: 1.25rem;
}

.amx-staff-card__placeholder span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #030d75;
}

.amx-staff-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
    align-self: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fa0073 0%, #e91e6e 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(250, 0, 115, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.amx-staff-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(250, 0, 115, 0.32);
    color: #fff;
}

/* Mobile */
@media (max-width: 639px) {
    .amx-staff__wrap {
        padding: 0 1.15rem;
    }

    .amx-staff.home-section--light {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .amx-staff-card__body {
        padding: 1rem 1.05rem 1.15rem;
    }
}
