.ab-team-section {
    position: relative;
    --ab-team-max-width: 1440px;
    --ab-team-grid-gap: 30px;
    --ab-team-card-radius: 18px;
    --ab-team-panel-ease: cubic-bezier(.22, .61, .36, 1);
    --ab-team-border: rgba(17, 17, 17, 0.10);
    --ab-team-muted: #666;
    --ab-team-soft: #8d8d8d;
}

.ab-team-section__header {
    max-width: 880px;
    margin: 0 0 42px;
}

.ab-team-section__title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 2.8vw, 3.125rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.ab-team-section__intro {
    color: var(--ab-team-muted);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.7;
}

.ab-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ab-team-grid-gap);
}

.ab-team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: var(--ab-team-card-radius);
    cursor: pointer;
    background: #fff;
    border: 1px solid transparent;
    transition: transform .6s var(--ab-team-panel-ease), box-shadow .6s var(--ab-team-panel-ease), border-color .4s ease, opacity .5s ease, translate .5s ease;
    will-change: transform;
}

.ab-team-card:hover,
.ab-team-card:focus-visible {
    transform: translateY(-6px);
    border-color: var(--ab-team-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    outline: none;
}

.ab-team-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.82;
    border-radius: inherit;
    background: #f2f2f2;
}

.ab-team-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0;
    transition: opacity .45s ease;
}

.ab-team-card:hover .ab-team-card__media::after,
.ab-team-card:focus-visible .ab-team-card__media::after {
    opacity: 1;
}

.ab-team-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .8s var(--ab-team-panel-ease);
}

.ab-team-card:hover .ab-team-card__media img,
.ab-team-card:focus-visible .ab-team-card__media img {
    transform: scale(1.04);
}

.ab-team-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 4px 0;
}

.ab-team-card__name,
.ab-team-panel__name {
    margin: 0;
    color: #111;
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.ab-team-card__name {
    font-size: clamp(1.35rem, 1.2vw, 1.75rem);
}

.ab-team-card__role,
.ab-team-panel__role {
    margin: 0;
    color: var(--ab-team-muted);
}

.ab-team-card__role {
    font-size: .95rem;
    line-height: 1.55;
}

.ab-team-card__excerpt {
    max-width: 32ch;
    color: #333;
    font-size: .98rem;
    line-height: 1.65;
}

.ab-team-grid--reveal .ab-team-reveal-item {
    opacity: 0;
    translate: 0 34px;
}

.ab-team-grid--reveal .ab-team-reveal-item.is-visible {
    opacity: 1;
    translate: 0 0;
}

.ab-team-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .36s ease, visibility .36s ease;
}

.ab-team-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ab-team-panel__dialog {
    position: relative;
    width: min(100vw, 100%);
    min-height: 100dvh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    transform: translateX(100%);
    transition: transform .78s var(--ab-team-panel-ease);
}

.ab-team-panel.is-open .ab-team-panel__dialog {
    transform: translateX(0);
}

.ab-team-panel__close {
    position: fixed;
    top: 28px;
    right: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 5;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.ab-team-panel__close:hover,
.ab-team-panel__close:focus-visible {
    transform: rotate(90deg);
    border-color: rgba(17, 17, 17, 0.25);
    background: rgba(255, 255, 255, 0.98);
    outline: none;
}

.ab-team-panel__close span {
    position: absolute;
    width: 20px;
    height: 1.5px;
    background: #111;
}

.ab-team-panel__close span:first-child { transform: rotate(45deg); }
.ab-team-panel__close span:last-child { transform: rotate(-45deg); }

.ab-team-panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(44px, 5vw, 90px);
    align-items: stretch;
    min-height: 100dvh;
    padding: clamp(88px, 8vw, 118px) clamp(24px, 4vw, 64px) clamp(48px, 5vw, 64px);
    max-width: var(--ab-team-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.ab-team-panel__content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 720px;
}

.ab-team-panel__name {
    font-size: clamp(2.6rem, 5vw, 5.45rem);
    margin-bottom: 18px;
}

.ab-team-panel__role {
    max-width: 34ch;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.7;
}

.ab-team-panel__description {
    margin-top: 32px;
    color: #1d1d1d;
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.85;
}

.ab-team-panel__description > *:first-child { margin-top: 0; }
.ab-team-panel__description > *:last-child { margin-bottom: 0; }
.ab-team-panel__description p,
.ab-team-panel__description ul,
.ab-team-panel__description ol { margin: 0 0 1.1em; }

.ab-team-panel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.ab-team-panel__meta p {
    margin: 0;
    color: #222;
    font-size: .96rem;
    line-height: 1.6;
}

.ab-team-panel__meta a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

.ab-team-panel__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ab-team-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.ab-team-social:hover,
.ab-team-social:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.20);
    background: #fafafa;
    outline: none;
}

.ab-team-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ab-icon--linkedin::before { content: 'in'; }
.ab-icon--twitter::before { content: 'X'; }
.ab-icon--facebook::before { content: 'f'; }
.ab-icon--instagram::before { content: 'ig'; font-size: 9px; }
.ab-icon--website::before { content: '↗'; }

.ab-team-panel__image-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.ab-team-panel__image {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.ab-team-panel__image img {
    width: 100%;
    display: block;
    aspect-ratio: 0.82;
    object-fit: cover;
    border-radius: 28px;
}

body.ab-team-panel-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1279px) {
    .ab-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ab-team-panel__inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .84fr);
    }
}

@media (max-width: 1024px) {
    .ab-team-section__header {
        margin-bottom: 34px;
    }

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

    .ab-team-panel__dialog {
        width: 100%;
    }

    .ab-team-panel__inner {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        padding-top: 86px;
        padding-bottom: 40px;
    }

    .ab-team-panel__content-col {
        max-width: none;
        order: 2;
    }

    .ab-team-panel__image-col {
        order: 1;
        justify-content: flex-start;
    }

    .ab-team-panel__image {
        max-width: 520px;
        margin-left: 0;
    }

    .ab-team-panel__name {
        margin-bottom: 14px;
    }
}

@media (max-width: 767px) {
    .ab-team-section__header {
        margin-bottom: 28px;
    }

    .ab-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ab-team-card__content {
        padding-top: 16px;
    }

    .ab-team-card__excerpt {
        max-width: none;
    }

    .ab-team-panel {
        background: rgba(10, 10, 10, 0.18);
    }

    .ab-team-panel__dialog {
        width: 100%;
        min-height: 100dvh;
        height: 100dvh;
    }

    .ab-team-panel__inner {
        gap: 24px;
        padding: 78px 18px 28px;
    }

    .ab-team-panel__close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
    }

    .ab-team-panel__name {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .ab-team-panel__role,
    .ab-team-panel__description {
        max-width: none;
    }

    .ab-team-panel__socials {
        gap: 10px;
    }

    .ab-team-social {
        width: 100%;
        justify-content: center;
    }

    .ab-team-panel__image {
        max-width: none;
    }

    .ab-team-panel__image img {
        border-radius: 18px;
        aspect-ratio: 0.9;
    }
}
