.team-page {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), sans-serif;
}

.elementor-location-header .elementor-menu-toggle {
    border: 0;
    color: var(--e-global-color-primary);
}

.elementor-location-header .elementor-menu-toggle svg {
    fill: currentColor;
}

.elementor-location-header .elementor-nav-menu--dropdown.team-menu-open {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(340px, calc(100vw - 48px));
    max-height: none;
    transform: none;
    z-index: 10;
}

.team-container {
    width: min(1140px, calc(100% - 48px));
    margin-inline: auto;
}

.team-intro {
    padding-block: 80px 56px;
    text-align: center;
}

.team-page .team-eyebrow {
    margin: 0 0 16px;
    color: var(--e-global-color-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-intro h2 {
    margin: 0 auto 28px;
    color: var(--e-global-color-primary);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.team-intro > p:not(.team-eyebrow),
.team-philosophy p {
    font-size: 16px;
    line-height: 1.8;
}

.team-section {
    padding-block: 24px 56px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.team-card {
    min-width: 0;
    scroll-margin-top: 24px;
}

.team-person-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f2f2f0;
}

.team-person-link:focus-visible {
    outline: 3px solid var(--e-global-color-primary);
    outline-offset: 4px;
}

.team-card .team-portrait {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 24%;
}

.team-card-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px 18px;
    background: rgb(0 0 0 / 70%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.team-person-link:hover .team-card-overlay,
.team-person-link:focus-visible .team-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-card-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.team-profile-container {
    padding-block: 48px 80px;
}

.team-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    color: #6f582c;
    font-size: 15px;
    font-weight: 600;
}

.team-back-link:hover,
.team-back-link:focus-visible {
    color: var(--e-global-color-text);
    text-decoration: underline;
}

.team-profile {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 56px;
}

.team-profile-photo {
    margin: 0;
}

.team-profile-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.team-profile-photo figcaption {
    padding: 24px;
    background: #1e292e;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.team-profile-photo figcaption p {
    margin: 0;
}

.team-profile-photo .team-profile-caption-name {
    margin-bottom: 8px;
    color: var(--e-global-color-accent);
    font-size: 18px;
    font-weight: 600;
}

.team-profile-content {
    min-width: 0;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.team-profile-content h1 {
    margin: 0 0 12px;
    color: var(--e-global-color-text);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.team-profile-content .team-profile-role {
    margin-bottom: 28px;
    color: #786338;
    font-weight: 500;
}

.team-profile-content h2 {
    margin: 0 0 16px;
    color: #786338;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.team-profile-content > p:not(.team-eyebrow):not(.team-profile-role) {
    margin: 0 0 20px;
}

.team-profile-focus {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5ddcc;
}

.team-profile-focus p {
    margin-bottom: 0;
}

.team-philosophy {
    margin-top: 24px;
    padding-block: 72px;
    background: #1e292e;
    color: #e0e0e0;
    text-align: center;
}

.team-philosophy .team-eyebrow,
.team-philosophy h2 {
    color: var(--e-global-color-accent);
}

.team-philosophy h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
}

.team-philosophy .team-motto {
    margin: 28px 0 0;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .team-profile {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .team-intro {
        padding-block: 48px 24px;
        text-align: left;
    }

    .team-section {
        padding-block: 24px;
    }

    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-profile-container {
        padding-block: 32px 48px;
    }

    .team-profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-philosophy {
        padding-block: 48px;
    }
}

@media (hover: none), (pointer: coarse) {
    .team-card-overlay {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card-overlay {
        transition: none;
    }
}
