.project-team-global {
    padding-top: 48px;
}

.project-team,
.project-credentials {
    margin-top: 0;
    margin-bottom: 56px;
}

.project-team__intro {
    margin-bottom: 26px;
    max-width: 850px;
}

.project-team__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #1768c4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-team__intro h2 {
    margin: 0 0 12px;
    color: #103b76;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.15;
}

.project-team__intro p {
    margin: 0;
    color: #4c6383;
    line-height: 1.6;
}

.project-team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-leader {
    display: grid;
    grid-template-columns: minmax(175px, .88fr) minmax(0, 1.12fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e5f6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(14, 53, 106, .06);
}

.project-leader__portrait {
    min-width: 0;
    background: #e9eef6;
}

.project-leader__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    object-position: 50% 22%;
}

.project-leader__content {
    padding: 28px 26px;
    min-width: 0;
}

.project-leader__content h3 {
    margin: 0 0 18px;
    color: #103b76;
    font-size: 25px;
    line-height: 1.15;
}

.project-leader__role {
    margin: 0 0 10px;
    color: #1768c4;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.project-leader__experience {
    margin: 0 0 16px;
    color: #103b76;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.project-leader__fact {
    margin: 0 0 13px;
    color: #4c6383;
    font-size: 14px;
    line-height: 1.6;
}

.project-leader__website {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #0759b6;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-credentials__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.project-credential {
    min-width: 0;
    border: 1px solid #d9e5f6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.project-credential__open {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-credential__preview {
    display: block;
    flex-shrink: 0;
    padding: 12px;
    height: 340px;
    overflow: hidden;
    background: #f3f7fc;
}

.project-credential__preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-credential__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    min-width: 0;
}

.project-credential__copy small {
    color: #607895;
    font-size: 11px;
    line-height: 1.4;
}

.project-credential__copy h3 {
    margin: 9px 0 8px;
    color: #103b76;
    font-size: 17px;
    line-height: 1.3;
}

.project-credential__copy p {
    margin: 0;
    color: #4c6383;
    font-size: 12px;
    line-height: 1.55;
}

.project-team a:focus-visible,
.project-credentials a:focus-visible,
.project-credential-dialog :focus-visible {
    outline: 3px solid #eeae38;
    outline-offset: 3px;
}

body.project-credential-open {
    overflow: hidden;
}

.project-credential-dialog {
    width: min(1080px, calc(100vw - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: #103b76;
    background: #fff;
}

.project-credential-dialog:not([open]) {
    display: none;
}

.project-credential-dialog::backdrop {
    background: rgba(5, 22, 46, .84);
    backdrop-filter: blur(4px);
}

.project-credential-dialog__inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 28px);
}

.project-credential-dialog__toolbar,
.project-credential-dialog__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

.project-credential-dialog__toolbar {
    border-bottom: 1px solid #dce6f4;
}

.project-credential-dialog__toolbar h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.project-credential-dialog button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #dce6f4;
    border-radius: 8px;
    color: #103b76;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
}

.project-credential-dialog .project-credential-dialog__close {
    font-size: 26px;
}

.project-credential-dialog__image {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    background: #eef3f9;
}

.project-credential-dialog__image img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 184px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
}

.project-credential-dialog__navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-credential-dialog__footer a {
    color: #0759b6;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1180px) {
    .project-team__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-leader {
        grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr);
    }

    .project-leader__portrait img {
        min-height: 360px;
        max-height: 500px;
    }

    .project-credentials__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .project-leader {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-leader__portrait img {
        height: 360px;
        min-height: 0;
        max-height: none;
    }

    .project-leader__content {
        padding: 25px 22px;
    }

    .project-credentials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .project-credential__preview {
        height: 320px;
        padding: 10px;
    }

    .project-credential__copy {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .project-credentials__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-credential__preview {
        height: 340px;
    }

    .project-credential-dialog__footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-credential {
        transition: none;
    }
}
