main.team {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team__hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(18, 13, 36, 0.8);
    box-shadow: var(--glow);
}

.team__hero .lede {
    margin: 4px 0 0;
}

.team-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.team-section {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 14px 10px;
    background: rgba(255, 255, 255, 0.02);
}

.team-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.team-section__head .small {
    font-size: 13px;
    margin: 0;
}

.pyramid-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pyramid-row.single .team-card {
    max-width: 420px;
}

.crown-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.team-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    min-width: 220px;
    max-width: 340px;
}

.team-card.highlight {
    background: linear-gradient(135deg, rgba(122, 61, 255, 0.08), rgba(18, 13, 36, 0.9));
    border-color: rgba(122, 61, 255, 0.28);
    min-width: 260px;
}

.team-card.highlight--crown {
    background: linear-gradient(135deg, rgba(122, 61, 255, 0.14), rgba(18, 13, 36, 0.95));
    border-color: rgba(122, 61, 255, 0.35);
}

.team-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: visible;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    display: grid;
    place-items: center;
}

.team-card__crown {
    position: absolute;
    top: -15px;
    right: -8px;
    rotate: 20deg;
    background: rgba(139, 99, 248, 0.9);
    color: #1a1232;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.team-card__avatar {
    margin-bottom: 4px;
}

.team-card .label {
    order: 4;
    margin: 0;
}

.team-card h3 {
    order: 2;
    margin: 2px 0 6px;
}

.team-card .muted {
    order: 3;
    margin: 0;
}

.team-card__avatar img:not([style*="display: none"]) + .avatar-fallback {
    display: none;
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-weight: 700;
}

.team-card__avatar.ghost {
    border: 1px dashed var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 22px;
}

.team-card h3 {
    margin: 2px 0 6px;
}

.team-card .label {
    margin-bottom: 4px;
    margin-top: 6px;
}

.team-card .muted {
    margin: 0;
}

.muted-box {
    margin-bottom: 3px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

@media (max-width: 640px) {
    .team__hero {
        grid-template-columns: 1fr;
    }
}
