.team-hero {
    position: relative;
    min-height: clamp(380px, 48vw, 520px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #082725;
    isolation: isolate;
}

.team-hero-background,
.team-hero-overlay {
    position: absolute;
    inset: 0;
}

.team-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

.team-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 34, 31, 0.94) 0%, rgba(5, 34, 31, 0.88) 32%, rgba(5, 34, 31, 0.54) 62%, rgba(5, 34, 31, 0.38) 100%),
        linear-gradient(180deg, rgba(8, 40, 36, 0.1), rgba(4, 20, 18, 0.22));
}

.team-hero-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 78px 22px 96px;
}

.team-hero-content {
    display: flex;
    justify-content: center;
}

.team-hero-title {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(62px, 10vw, 138px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.team-hero-breadcrumb {
    position: absolute;
    left: 22px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 70px;
    padding: 20px 26px;
    border-radius: 26px 26px 0 0;
    background: #ffffff;
    color: #d46f31;
    box-shadow: 0 18px 42px rgba(18, 37, 34, 0.16);
}

.team-hero-breadcrumb a,
.team-hero-breadcrumb strong,
.team-hero-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
}

.team-hero-breadcrumb a {
    color: #d46f31;
    font-weight: 600;
}

.team-hero-breadcrumb strong {
    color: #d46f31;
    font-weight: 700;
}

.team-hero-breadcrumb span {
    color: rgba(212, 111, 49, 0.72);
}

.team-intro-section {
    position: relative;
    padding: 86px 20px 90px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.team-intro-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.team-intro-dot {
    position: absolute;
    top: -10px;
    left: 430px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(11, 139, 115, 0.18);
}

.team-intro-dot::after {
    content: '';
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #0b8b73;
}

.team-intro-copy {
    max-width: 920px;
}

.team-intro-copy p {
    margin: 0 0 20px;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.7;
    color: #141918;
}

.team-intro-copy p:last-child {
    margin-bottom: 0;
}

.team-intro-copy strong {
    font-weight: 800;
    color: #111616;
}

.team-members-section {
    background:
        radial-gradient(circle at top left, rgba(11, 139, 115, 0.08), transparent 22%),
        linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
}

.team-members-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.team-members-header .section-text {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: #5f6c67;
}

.team-category-group + .team-category-group {
    margin-top: 42px;
}

.team-category-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.team-category-heading h3 {
    margin: 0;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d3431, #0b8b73);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(13, 52, 49, 0.14);
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.15;
    text-align: center;
}

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

.team-member-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(31, 49, 43, 0.12);
}

.team-member-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(13, 52, 49, 0.92), rgba(11, 139, 115, 0.82)),
        linear-gradient(180deg, #0d3431, #0b8b73);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-member-placeholder-accent {
    background:
        linear-gradient(135deg, rgba(212, 111, 49, 0.94), rgba(244, 199, 61, 0.88)),
        linear-gradient(180deg, #d46f31, #f4c73d);
    color: #ffffff;
}

.team-member-placeholder span {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .team-hero-shell {
        padding: 72px 18px 102px;
    }

    .team-hero-breadcrumb {
        left: 18px;
        right: 18px;
        padding: 18px 20px;
    }

    .team-intro-section {
        padding: 66px 18px 72px;
    }

    .team-intro-dot {
        left: auto;
        right: 18px;
        top: -14px;
    }

    .team-intro-copy p {
        font-size: 18px;
        line-height: 1.7;
    }

    .team-members-header {
        margin-bottom: 28px;
    }

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

@media (max-width: 640px) {
    .team-hero {
        min-height: 360px;
    }

    .team-hero-shell {
        padding: 66px 16px 108px;
    }

    .team-hero-breadcrumb {
        left: 16px;
        right: 16px;
        gap: 10px;
        padding: 16px 18px;
        border-radius: 22px 22px 0 0;
    }

    .team-hero-breadcrumb a,
    .team-hero-breadcrumb strong,
    .team-hero-breadcrumb span {
        font-size: 15px;
    }

    .team-intro-section {
        padding: 56px 16px 60px;
    }

    .team-intro-dot {
        width: 34px;
        height: 34px;
    }

    .team-intro-dot::after {
        inset: 9px;
    }

    .team-intro-copy p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .team-members-header .section-text {
        font-size: 15px;
    }

    .team-category-heading {
        margin-bottom: 18px;
    }

    .team-category-heading h3 {
        width: 100%;
        padding: 14px 18px;
        font-size: 20px;
    }

    .team-grid-compact {
        grid-template-columns: 1fr;
    }

    .team-member-placeholder {
        font-size: 18px;
    }
}
