@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/urbanist-latin.woff2') format('woff2');
}

:root {
    --team-navy: #071735;
    --team-orange: #fd8d32;
    --team-paper: #f4f3f0;
    --team-gutter: clamp(24px, 4.2vw, 80px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--team-navy);
    background: #ffffff;
    font-family: "Urbanist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.team-profile {
    overflow: hidden;
}

.team-profile > article {
    width: min(100%, 2160px);
    margin: 0 auto;
    padding: clamp(18px, 1.6vw, 28px) var(--team-gutter) clamp(40px, 3.4vw, 58px);
    background: var(--team-paper);
}

.team-profile__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: clamp(10px, 0.9vw, 14px);
    color: rgba(7, 23, 53, 0.62);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.team-profile__back {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: var(--team-navy);
    text-decoration: none;
}

.team-profile__back::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform-origin: right;
    transition: background-color 180ms ease, transform 260ms ease;
}

.team-profile__back:hover,
.team-profile__back:focus-visible {
    color: var(--team-orange);
}

.team-profile__back:hover::after,
.team-profile__back:focus-visible::after {
    transform: scaleX(0.72);
}

.team-profile__identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    column-gap: clamp(42px, 5vw, 90px);
    row-gap: clamp(8px, 0.8vw, 12px);
    align-items: center;
    padding: clamp(14px, 1.4vw, 22px) 0 clamp(18px, 1.6vw, 26px);
}

.team-profile__identity > .team-profile__eyebrow {
    grid-column: 1;
    grid-row: 1;
}

.team-profile__eyebrow,
.team-profile__section-label {
    margin: 0;
    color: var(--team-orange);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.team-profile h1 {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: 980px;
    margin: 0;
    font-size: clamp(40px, 3.8vw, 64px);
    font-weight: 360;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.team-profile__role-row {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 7px;
    padding-bottom: 0;
}

.team-profile__role-row p {
    margin: 0;
    color: rgba(7, 23, 53, 0.7);
    font-size: clamp(14px, 0.96vw, 17px);
    line-height: 1.45;
}

.team-profile__role-row p + p {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-profile__content {
    display: grid;
    grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(38px, 5.5vw, 102px);
    align-items: start;
    padding-top: clamp(28px, 2.8vw, 46px);
}

.team-profile__portrait {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin: 0;
    background: #dfe3e8;
}

.team-profile__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile__biography {
    min-width: 0;
}

.team-profile__section-label {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(7, 23, 53, 0.17);
}

.team-profile__richtext {
    columns: 2 310px;
    column-gap: clamp(30px, 3.4vw, 60px);
    margin-top: clamp(26px, 2.8vw, 44px);
    color: rgba(7, 23, 53, 0.76);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.62;
}

.team-profile__richtext p,
.team-profile__richtext ul,
.team-profile__richtext ol {
    break-inside: avoid;
    margin: 0 0 1.15em;
}

.team-profile__richtext > :last-child {
    margin-bottom: 0;
}

.team-profile__richtext a,
.team-profile__contacts a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.team-profile__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px clamp(24px, 3vw, 48px);
    margin-top: clamp(30px, 3.2vw, 50px);
    padding-top: 22px;
    border-top: 1px solid rgba(7, 23, 53, 0.17);
    font-size: 13px;
    font-weight: 650;
}

.team-profile__contacts a:hover,
.team-profile__contacts a:focus-visible {
    color: var(--team-orange);
}

.team-profile__cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px clamp(50px, 9vw, 150px);
    align-items: center;
    width: min(100%, 2160px);
    min-height: 160px;
    margin: 0 auto;
    padding: 34px var(--team-gutter);
    color: #ffffff;
    background: var(--team-navy);
}

.team-profile__cta > p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 1.08vw, 19px);
    line-height: 1.5;
}

.team-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px clamp(34px, 4vw, 64px);
}

.team-profile__action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 620;
    text-decoration: none;
}

.team-profile__action > span:first-child {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.82);
    transition: border-color 180ms ease, color 180ms ease;
}

.team-profile__plane {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 18px;
    background: url('../images/dyer-logo-white.svg') -12px -68px / 162px 90px no-repeat;
    transition: transform 180ms ease;
}

.team-profile__action:hover,
.team-profile__action:focus-visible {
    color: var(--team-orange);
}

.team-profile__action:hover > span:first-child,
.team-profile__action:focus-visible > span:first-child {
    border-color: var(--team-orange);
}

.team-profile__action:hover .team-profile__plane,
.team-profile__action:focus-visible .team-profile__plane {
    transform: translateX(5px);
}

.team-profile a:focus-visible {
    outline: 2px solid var(--team-orange);
    outline-offset: 6px;
}

@media (max-width: 980px) {
    .team-profile__identity {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-profile__identity > .team-profile__eyebrow,
    .team-profile h1,
    .team-profile__role-row {
        grid-column: 1;
        grid-row: auto;
    }

    .team-profile__role-row {
        max-width: 560px;
    }

    .team-profile__content {
        grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
        gap: 42px;
    }

    .team-profile__richtext {
        columns: auto;
    }

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

@media (max-width: 680px) {
    :root {
        --team-gutter: clamp(20px, 6.2vw, 30px);
    }

    .team-profile > article {
        padding-top: 16px;
        padding-bottom: 36px;
    }

    .team-profile__meta {
        padding-bottom: 10px;
        font-size: 9px;
    }

    .team-profile__identity {
        gap: 9px;
        padding: 14px 0 20px;
    }

    .team-profile h1 {
        max-width: 340px;
        font-size: clamp(36px, 10.8vw, 46px);
        line-height: 0.98;
    }

    .team-profile__content {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 24px;
    }

    .team-profile__portrait {
        width: min(100%, 430px);
        aspect-ratio: 4 / 5;
    }

    .team-profile__richtext {
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.58;
    }

    .team-profile__cta {
        min-height: 0;
        padding-top: 34px;
        padding-bottom: 38px;
    }

    .team-profile__actions {
        display: grid;
        justify-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-profile__back::after,
    .team-profile__action > span:first-child,
    .team-profile__plane {
        transition: none;
    }
}
