.team-page {
    background: #f8f6f0;
    color: #23231f;
}

.team-hero {
    --team-hero-image: linear-gradient(120deg, #171a18, #2d302c);
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(10, 12, 11, 0.94) 0%, rgba(10, 12, 11, 0.72) 44%, rgba(10, 12, 11, 0.25) 100%),
        var(--team-hero-image) center / cover no-repeat;
}

.team-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(192, 145, 65, 0.2), transparent 35%),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
}

.team-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1px minmax(0, 680px);
    gap: 48px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.team-hero__line {
    width: 1px;
    height: 290px;
    background: #c3974c;
}

.team-hero .eyebrow {
    color: #d4a954;
    margin-bottom: 14px;
}

.team-hero h1 {
    margin: 0;
    font: 500 clamp(4rem, 7vw, 7.4rem) / 0.9 "Cormorant Garamond", serif;
    letter-spacing: -0.04em;
    max-width: 680px;
}

.team-hero__accent {
    display: block;
    width: 76px;
    height: 2px;
    margin: 32px 0 25px;
    background: #c3974c;
}

.team-hero p {
    max-width: 450px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.team-intro {
    padding: 56px 0 36px;
    text-align: center;
}

.team-intro p {
    max-width: 980px;
    margin: auto;
    color: #5f5a50;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.55;
}

.team-members {
    padding: 40px 0 130px;
}

.team-member {
    padding: 70px 0 95px;
    border-bottom: 1px solid rgba(53, 47, 38, 0.14);
}

.team-member:last-child {
    border-bottom: 0;
}

.team-member__main {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: clamp(55px, 8vw, 110px);
    align-items: center;
    max-width: 1080px;
    margin: auto;
}

.team-member--reverse .team-member__portrait-wrap {
    order: 2;
}

.team-member__portrait-wrap {
    position: relative;
    aspect-ratio: 0.82;
    padding: 14px;
}

.team-member__frame {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(177, 132, 57, 0.7);
}

.team-member__frame--one {
    inset: 0 22px 22px 0;
}

.team-member__frame--two {
    inset: 24px 0 0 24px;
}

.team-member__portrait {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #e1e3e4;
    filter: saturate(0.88) contrast(1.02);
}

.team-member__copy {
    position: relative;
}

.team-member__number {
    position: absolute;
    top: -52px;
    right: 0;
    font: 500 4.5rem/1 "Cormorant Garamond", serif;
    color: rgba(177, 132, 57, 0.12);
}

.team-member__copy h2 {
    margin: 0 0 4px;
    color: #28251f;
    font: 500 clamp(2.8rem, 5vw, 4.4rem) / 1 "Cormorant Garamond", serif;
}

.team-member__title {
    margin-bottom: 24px;
    color: #b18439;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.team-member__about {
    max-width: 650px;
    color: #5a574f;
    line-height: 1.85;
}

.team-member__signature {
    width: min(240px, 55%);
    height: 86px;
    margin-top: 24px;
}

.team-member__signature img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.team-member__signature-name {
    display: block;
    margin-top: 2px;
    font-size: 0.88rem;
    font-weight: 500;
}

.team-expertise {
    max-width: 1080px;
    margin: 55px auto 0;
    padding: 26px 28px 30px;
    border: 1px solid rgba(87, 75, 56, 0.22);
    background: rgba(255, 255, 255, 0.45);
}

.team-expertise > h3 {
    margin: 0 0 22px;
    font: 600 1.2rem "Cormorant Garamond", serif;
}

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

.team-expertise__item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 8px 26px;
    border-right: 1px solid rgba(87, 75, 56, 0.18);
}

.team-expertise__item:first-child {
    padding-left: 0;
}

.team-expertise__item:last-child {
    border-right: 0;
}

.team-expertise__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #b18439;
}

.team-expertise__icon svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-expertise__item h4 {
    margin: 0 0 7px;
    color: #2d2a25;
    font: 600 1.08rem "Cormorant Garamond", serif;
}

.team-expertise__item p {
    margin: 0;
    color: #706b62;
    font-size: 0.82rem;
    line-height: 1.55;
}

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

    .team-hero__content {
        gap: 24px;
        padding-top: 120px;
    }

    .team-member__main {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .team-member--reverse .team-member__portrait-wrap {
        order: 0;
    }

    .team-member__portrait-wrap {
        width: min(100%, 460px);
        margin: auto;
    }

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

    .team-expertise__item,
    .team-expertise__item:first-child {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(87, 75, 56, 0.16);
    }

    .team-expertise__item:last-child {
        border-bottom: 0;
    }
}

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

    .team-hero__content {
        grid-template-columns: 1px 1fr;
        gap: 18px;
        padding-top: 105px;
        padding-bottom: 55px;
    }

    .team-hero__line {
        height: 250px;
    }

    .team-hero h1 {
        font-size: 3.7rem;
    }

    .team-member {
        padding: 45px 0 70px;
    }

    .team-member__main {
        gap: 42px;
    }

    .team-member__copy h2 {
        font-size: 2.9rem;
    }

    .team-expertise {
        padding: 24px 20px;
    }
}
