/* Homepage Meet Our Team — isolated reference-parity component. */
.route-home #team.be-team {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    color: #333;
    background: #fcfcfc;
}

.be-team__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.be-team__header {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.be-team__eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f55733;
    font-size: 18px;
    font-weight: 300;
    line-height: 21.6px;
}

.be-team__header h2 {
    margin: 0;
    color: #333;
    font-size: 42px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.be-team__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.be-team__card {
    position: relative;
    min-width: 0;
    aspect-ratio: .74;
    overflow: visible;
    border-radius: 40px;
    background: #e7e7e7;
    --team-name-line: 31.2px;
    --team-role-line: 21.6px;
    --team-role-lines: 1;
    --team-label-height: max(80px, calc(12px + var(--team-name-line) + (var(--team-role-line) * var(--team-role-lines))));
    --team-copy-top: calc(12px + ((var(--team-label-height) - 12px - var(--team-name-line) - (var(--team-role-line) * var(--team-role-lines))) / 2));
}

.be-team__card--multiline {
    --team-role-lines: 2;
}

.be-team__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.be-team__media > img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.be-team__card:hover .be-team__media > img {
    transform: scale(1.025);
}

.be-team__label {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: max-content;
    max-width: calc(100% - 40px);
    height: var(--team-label-height);
    padding: 0 20px 0 0;
    border-radius: 0 40px 0 0;
    background: #fcfcfc;
}

.be-team__label::before,
.be-team__label::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40V0C40 22.0914 22.0914 40 0 40H40Z' fill='%23fcfcfc'/%3E%3C/svg%3E");
    transform: rotate(90deg);
}

.be-team__label::before {
    left: 0;
    bottom: 100%;
}

.be-team__label::after {
    left: 100%;
    bottom: 0;
}

.be-team__label h3,
.be-team__label p {
    margin: 0;
}

.be-team__label h3 {
    margin-top: var(--team-copy-top);
    color: #333;
    font-size: 24px;
    font-weight: 500;
    line-height: var(--team-name-line);
    white-space: nowrap;
}

.be-team__label p {
    position: absolute;
    left: 0;
    top: calc(var(--team-copy-top) + var(--team-name-line));
    width: calc(100% - 20px);
    color: #545454;
    font-size: 18px;
    font-weight: 300;
    line-height: var(--team-role-line);
}

@media (max-width: 800px) {
    .be-team__inner {
        max-width: none;
        padding: 60px 20px;
        gap: 30px;
    }

    .be-team__eyebrow {
        font-size: 16px;
        line-height: 19.2px;
    }

    .be-team__header h2 {
        font-size: 22px;
        line-height: 22px;
    }

    .be-team__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .be-team__card {
        width: 100%;
        height: 350px;
        aspect-ratio: auto;
        --team-name-line: 23.4px;
        --team-role-line: 19.2px;
    }

    .be-team__label h3 {
        font-size: 18px;
    }

    .be-team__label p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .be-team__media > img {
        transition: none;
    }

    .be-team__card:hover .be-team__media > img {
        transform: none;
    }
}
