.team-directory,
.team-profile {
    overflow: hidden;
}

.team-card__profile-name,
.team-card__profile-link {
    color: inherit;
}

.team-card__profile-name:hover,
.team-card__profile-name:focus-visible,
.team-card__profile-link:hover,
.team-card__profile-link:focus-visible {
    color: var(--orange-700);
}

.team-card__profile-link {
    display: inline-flex;
    width: max-content;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.7rem;
}

.about__team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.team-directory__wrapper,
.team-profile__wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 6vw, 110px);
    padding-bottom: clamp(56px, 6vw, 100px);
}

.team-page__intro {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 1.6vw, 32px);
}

.team-profile {
    padding-bottom: clamp(40px, 3vw, 60px);
}

.team-profile__wrapper {
    padding-bottom: 0;
}

.team-profile__cta {
    margin-top: clamp(-62px, -3vw, -36px);
}

.team-profile .team-page__intro {
    gap: clamp(14px, 1vw, 20px);
}

.team-eyebrow {
    margin: 0 0 14px;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: .09em;
    color: var(--gray-800);
    text-transform: uppercase;
}

.team-eyebrow--light {
    color: rgba(255, 255, 255, .64);
}

.team-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    align-items: end;
    gap: 40px;
    margin-bottom: 38px;
}

.team-section-title {
    max-width: 1050px;
    margin: 0;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: clamp(5rem, 4.6vw, 8rem);
    line-height: .98;
    text-transform: uppercase;
}

.team-section-head__copy {
    max-width: 560px;
    margin: 0;
    font-size: clamp(2rem, 1.5vw, 2.6rem);
    line-height: 1.35;
    color: var(--gray-820);
}

.team-role {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 10px 16px 8px;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--primary-black);
    border-radius: 999px;
}

.team-role--manager {
    background: #dceaf1;
}

.team-role--master {
    background: var(--primary-yellow-50);
}

.team-directory__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(380px, .6fr);
    align-items: end;
    gap: 50px;
    padding: clamp(42px, 5vw, 82px);
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 175, 111, .45), transparent 33%),
        linear-gradient(140deg, #eef3f5 0%, #f7f7f4 70%);
    border-radius: 36px;
}

.team-directory__hero .team-eyebrow,
.team-directory__hero__copy {
    grid-column: 1;
}

.team-directory__title {
    grid-column: 1;
    max-width: 1250px;
    margin: 0;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: clamp(7rem, 7.5vw, 13rem);
    line-height: .9;
    text-transform: uppercase;
}

.team-directory__lead {
    grid-row: 1 / span 2;
    grid-column: 2;
    max-width: 580px;
    margin: 0;
    font-size: clamp(2.2rem, 1.7vw, 3rem);
    line-height: 1.35;
}

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

.team-directory-card {
    min-width: 0;
}

.team-directory-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--primary-black);
    background: #f3f4f4;
    border-radius: 28px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.team-directory-card__link:hover,
.team-directory-card__link:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(3, 3, 3, .12);
}

.team-directory-card__link:focus-visible,
.team-project-card__link:focus-visible {
    outline: 3px solid var(--orange-400);
    outline-offset: 4px;
}

.team-directory-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / .84;
    overflow: hidden;
    background: #dfe5e7;
}

.team-directory-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.team-directory-card__link:hover .team-directory-card__image,
.team-directory-card__link:focus-visible .team-directory-card__image {
    transform: scale(1.035);
}

.team-directory-card__count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 11px 15px 9px;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--primary-black);
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.team-directory-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
}

.team-directory-card__roles,
.team-profile-hero__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-directory-card__name {
    margin-top: 22px;
    font-weight: 600;
    font-size: clamp(3rem, 2vw, 4rem);
    line-height: 1.04;
}

.team-directory-card__position {
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1.25;
    color: var(--gray-820);
}

.team-directory-card__intro {
    margin-top: 24px;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--gray-820);
}

.team-directory-card__action,
.team-project-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: auto;
    padding-top: 28px;
    font-weight: 600;
    font-size: 2rem;
}

.team-directory-card__action svg,
.team-project-card__action svg {
    flex: 0 0 auto;
}

.team-directory__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: clamp(36px, 4vw, 64px);
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 175, 111, .18), transparent 35%),
        #201b21;
    border-radius: 32px;
}

.team-directory__cta h2 {
    max-width: 1050px;
    margin: 0;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: clamp(5rem, 4.5vw, 8rem);
    line-height: .98;
    text-transform: uppercase;
}

.team-directory__cta .default-button {
    flex: 0 0 auto;
    color: var(--primary-black);
    white-space: nowrap;
}

.team-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, .88fr);
    align-items: stretch;
    gap: clamp(28px, 4vw, 70px);
}

.team-profile-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(36px, 4.5vw, 76px);
    background: linear-gradient(145deg, #f7f7f4 0%, #eef3f5 100%);
    border-radius: 34px;
}

.team-profile-hero__title {
    max-width: 1100px;
    margin: 28px 0 0;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: clamp(8rem, 8vw, 14rem);
    line-height: .88;
    text-transform: uppercase;
}

.team-profile-hero__position {
    max-width: 800px;
    margin: 22px 0 0;
    font-weight: 600;
    font-size: clamp(2.4rem, 2vw, 3.4rem);
    line-height: 1.2;
}

.team-profile-hero__intro {
    max-width: 900px;
    margin: 28px 0 0;
    font-size: clamp(2.2rem, 1.6vw, 2.8rem);
    line-height: 1.42;
    color: var(--gray-820);
}

.team-profile-hero__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.team-profile-hero__specialties li {
    padding: 11px 16px 9px;
    font-size: 1.8rem;
    line-height: 1.1;
    background: #fff;
    border: 1px solid rgba(3, 3, 3, .1);
    border-radius: 999px;
}

.team-profile-hero__facts {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid rgba(3, 3, 3, .12);
}

.team-profile-hero__facts p {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    font-size: 1.8rem;
    color: var(--gray-820);
}

.team-profile-hero__facts strong {
    font-weight: 400;
    font-family: var(--second-font);
    font-size: 5rem;
    line-height: .8;
    color: var(--primary-black);
}

.team-profile-hero__portrait {
    position: relative;
    min-height: 720px;
    margin: 0;
    overflow: hidden;
    background: #dfe5e7;
    border-radius: 34px;
}

.team-profile-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-profile-hero__portrait figcaption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 12px 18px 10px;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--primary-black);
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.team-profile-quote {
    position: relative;
    padding: clamp(42px, 5vw, 82px);
    overflow: hidden;
    color: #fff;
    background: #201b21;
    border-radius: 34px;
}

.team-profile-quote::after {
    position: absolute;
    top: -100px;
    right: clamp(20px, 6vw, 110px);
    content: "“";
    font-family: Georgia, serif;
    font-size: 32rem;
    line-height: 1;
    color: rgba(255, 230, 164, .12);
}

.team-profile-quote blockquote {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0;
}

.team-profile-quote blockquote p {
    margin: 0;
    font-size: clamp(3.4rem, 3.4vw, 6rem);
    line-height: 1.18;
}

.team-profile-quote footer {
    margin-top: 28px;
    font-size: 2rem;
    color: rgba(255, 255, 255, .66);
}

.team-profile-quote cite {
    font-style: normal;
}

.team-profile-process__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.team-profile-process__grid--single {
    grid-template-columns: 1fr;
}

.team-profile-process__grid--single .team-process-card {
    display: grid;
    grid-template-columns: minmax(90px, .18fr) minmax(300px, .62fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
    min-height: 0;
}

.team-profile-process__grid--single .team-process-card__number,
.team-profile-process__grid--single .team-process-card p {
    margin: 0;
}

.team-profile-process__grid--single .team-process-card p {
    max-width: none;
}

.team-process-card {
    position: relative;
    min-height: 360px;
    padding: clamp(30px, 3vw, 50px);
    overflow: hidden;
    background: #f3f4f4;
    border-radius: 28px;
}

.team-process-card--manager {
    background: linear-gradient(145deg, #edf4f7 0%, #dceaf1 100%);
}

.team-process-card--master {
    background: linear-gradient(145deg, #fffaf0 0%, #ffe6a4 100%);
}

.team-process-card__number {
    display: block;
    margin-bottom: 70px;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: 5rem;
    line-height: 1;
    color: rgba(3, 3, 3, .38);
}

.team-process-card h3 {
    margin: 0;
    font-weight: 400;
    font-family: var(--second-font);
    font-size: clamp(4.6rem, 3.7vw, 6.8rem);
    line-height: .95;
    text-transform: uppercase;
}

.team-process-card p {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: clamp(2rem, 1.5vw, 2.6rem);
    line-height: 1.4;
}

.team-profile-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.team-project-card {
    min-width: 0;
}

.team-project-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--primary-black);
    background: #f3f4f4;
    border-radius: 26px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.team-project-card__link:hover,
.team-project-card__link:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(3, 3, 3, .11);
}

.team-project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.36 / 1;
    overflow: hidden;
    background: #dfe5e7;
}

.team-project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.team-project-card__link:hover .team-project-card__image,
.team-project-card__link:focus-visible .team-project-card__image {
    transform: scale(1.035);
}

.team-project-card__roles {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.team-project-card__roles span {
    padding: 9px 13px 7px;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.team-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.team-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--gray-700);
}

.team-project-card__meta > * + *::before {
    margin-right: 18px;
    content: "•";
    color: var(--orange-400);
}

.team-project-card__name {
    margin-top: 18px;
    font-weight: 600;
    font-size: clamp(2.6rem, 1.9vw, 3.4rem);
    line-height: 1.08;
}

.team-project-card__quote {
    display: -webkit-box;
    margin-top: 22px;
    overflow: hidden;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--gray-820);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

@media only screen and (max-width: 1499px) {
    .team-directory__grid,
    .team-profile-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-profile-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    }

    .team-profile-hero__portrait {
        min-height: 620px;
    }
}

@media only screen and (max-width: 1199px) {
    .team-section-head,
    .team-directory__hero {
        grid-template-columns: 1fr;
    }

    .team-directory__lead {
        grid-row: auto;
        grid-column: 1;
    }

    .team-profile-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    }

    .team-profile-hero__portrait {
        min-height: 540px;
    }

    .team-directory__cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media only screen and (max-width: 767px) {
    .team-directory__wrapper,
    .team-profile__wrapper {
        gap: 52px;
        padding-bottom: 52px;
    }

    .team-profile__wrapper {
        padding-bottom: 0;
    }

    .team-profile__cta {
        margin-top: -20px;
    }

    .team-eyebrow {
        margin-bottom: 10px;
        font-size: 1.4rem;
    }

    .team-section-head {
        gap: 18px;
        margin-bottom: 24px;
    }

    .team-section-title {
        font-size: 4rem;
    }

    .team-section-head__copy {
        font-size: 1.8rem;
    }

    .team-role {
        padding: 8px 12px 7px;
        font-size: 1.4rem;
    }

    .team-directory__hero {
        gap: 22px;
        padding: 26px 20px 30px;
        border-radius: 22px;
    }

    .team-directory__title {
        font-size: 5.4rem;
    }

    .team-directory__lead {
        font-size: 1.9rem;
    }

    .team-directory__grid,
    .team-profile-projects__grid,
    .team-profile-process__grid,
    .team-profile-hero {
        grid-template-columns: 1fr;
    }

    .team-directory-card__link,
    .team-project-card__link {
        border-radius: 20px;
    }

    .team-directory-card__content,
    .team-project-card__body {
        padding: 22px;
    }

    .team-directory-card__name {
        margin-top: 18px;
        font-size: 3rem;
    }

    .team-directory-card__position,
    .team-directory-card__intro,
    .team-directory-card__action,
    .team-project-card__action {
        font-size: 1.8rem;
    }

    .team-directory-card__intro {
        margin-top: 18px;
    }

    .team-directory__cta {
        gap: 28px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .team-directory__cta h2 {
        font-size: 4.6rem;
    }

    .team-directory__cta .default-button {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
        white-space: normal;
    }

    .team-profile-hero {
        gap: 18px;
    }

    .team-profile-hero__copy {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .team-profile-hero__title {
        margin-top: 22px;
        font-size: 6.4rem;
    }

    .team-profile-hero__position {
        margin-top: 16px;
        font-size: 2.3rem;
    }

    .team-profile-hero__intro {
        margin-top: 22px;
        font-size: 1.9rem;
    }

    .team-profile-hero__specialties {
        margin-top: 24px;
    }

    .team-profile-hero__specialties li {
        font-size: 1.5rem;
    }

    .team-profile-hero__facts {
        margin-top: 28px;
        padding-top: 24px;
    }

    .team-profile-hero__facts strong {
        font-size: 4rem;
    }

    .team-profile-hero__portrait {
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-radius: 22px;
    }

    .team-profile-hero__portrait figcaption {
        right: 14px;
        bottom: 14px;
        font-size: 1.4rem;
    }

    .team-profile-quote {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .team-profile-quote blockquote p {
        font-size: 3rem;
    }

    .team-profile-quote footer {
        margin-top: 20px;
        font-size: 1.7rem;
    }

    .team-process-card {
        min-height: 0;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .team-profile-process__grid--single .team-process-card {
        display: block;
    }

    .team-process-card__number {
        margin-bottom: 42px;
        font-size: 4rem;
    }

    .team-process-card h3 {
        font-size: 4rem;
    }

    .team-process-card p {
        font-size: 1.8rem;
    }

    .team-project-card__name {
        font-size: 2.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-directory-card__link,
    .team-directory-card__image,
    .team-project-card__link,
    .team-project-card__image {
        transition: none;
    }
}
