.container-custom.tpa-projects {
    --projects-navy: #103a50;
    --projects-ink: #102d3d;
    --projects-muted: #435e6e;
    --projects-line: #dbe6ec;
    --projects-accent: #a2d4e8;
    box-sizing: border-box;
    margin-top: 18px;
    margin-bottom: 52px;
    color: var(--projects-ink);
}

.tpa-projects *, .tpa-projects *::before, .tpa-projects *::after {
    box-sizing: inherit;
}

.projects-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(20rem, 31vw, 23rem);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 12px;
    background: #092736;
    color: #fff;
}

.projects-hero::before, .projects-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
}

.projects-hero::before {
    left: 32%;
    background: url('/static/images/p-services-06.jpg') center / cover no-repeat;
}

.projects-hero::after {
    background: linear-gradient(90deg, #092736 27%, rgba(9, 39, 54, .95) 38%, rgba(9, 39, 54, .47) 68%, rgba(9, 39, 54, .14));
}

.projects-hero__copy {
    max-width: 36rem;
}

.projects-hero__copy::before {
    display: block;
    width: 3rem;
    height: 2px;
    margin-bottom: 1.25rem;
    background: var(--projects-accent);
    content: '';
}

.projects-hero h1 {
    margin: 0 0 1rem;
    color: inherit;
}

.projects-hero p {
    max-width: 26rem;
    margin: 0;
    color: #e2eff5;
}

.projects-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--projects-line);
}

.projects-index a {
    display: grid;
    place-items: center;
    padding: .9rem .5rem;
    min-height: 3.5rem;
    border-bottom: 2px solid transparent;
    color: var(--projects-navy);
    text-align: center;
    text-decoration: none;
}

.projects-index a:hover, .projects-index a:focus-visible {
    border-bottom-color: #5790ab;
    background: #eff6fa;
}

.tpa-projects a:focus-visible {
    outline: 2px solid #286888;
    outline-offset: 3px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.7vw, 1.9rem);
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-margin-top: 1.25rem;
    border: 1px solid var(--projects-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(13, 47, 66, .07);
}

.project-card:target {
    outline: 2px solid #5790ab;
    outline-offset: 3px;
}

.project-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.project-card--models {
    grid-column: 1 / -1;
}

.project-card__art {
    display: grid;
    align-content: center;
    background-color: #091f2d;
    background-image: linear-gradient(rgba(141, 202, 221, .065) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(141, 202, 221, .065) 1px, transparent 1px),
                      radial-gradient(ellipse at center, #17465b, #091f2d 78%);
    background-size: 18px 18px, 18px 18px, 100% 100%;
    background-position: center;
}

.project-card__art img {
    display: block;
    width: 100%;
    height: auto;
}

.project-card__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 3.3vw, 2.6rem);
}

.project-card__copy p {
    margin: 0 0 1.25rem;
    color: var(--projects-muted);
}

.project-card__copy .project-card__category {
    margin-bottom: .65rem;
    color: #2b657f;
    font-size: .875rem;
    text-transform: uppercase;
}

.project-card h2, .projects-contact h2 {
    margin: 0 0 .7rem;
    color: inherit;
    text-wrap: balance;
}

.project-card__scope {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    width: 100%;
    margin: auto 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--projects-line);
    list-style: none;
}

.project-card--wide .project-card__scope {
    margin-top: 0;
}

.project-card__scope li {
    padding: .22rem .64rem;
    border-radius: 4px;
    background: #eff5f8;
    color: var(--projects-navy);
    font-size: .875rem;
}

.project-card--models .project-card__copy p:last-child {
    margin-bottom: 0;
}

.project-card__models {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--projects-line);
    background: var(--projects-line);
}

.project-card__models figure {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #f1f7fa;
}

.project-card__models figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem .6rem;
    padding: .8rem 1.15rem;
}

.project-card__models small {
    color: var(--projects-muted);
    font-size: .875rem;
}

.projects-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem 2rem;
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--projects-line);
    border-left: 4px solid #73a4bd;
    border-radius: 10px;
    background: #f1f7fa;
}

.projects-contact p {
    margin: 0;
    color: var(--projects-muted);
}

@media (max-width: 767px) {
    .projects-hero {
        align-items: flex-end;
        min-height: 24rem;
        padding: 1.7rem;
    }

    .projects-hero::before {
        left: 0;
        background-position: 52% 28%;
    }

    .projects-hero::after {
        background: linear-gradient(0deg, #092736 7%, rgba(9, 39, 54, .96) 34%, rgba(9, 39, 54, .18) 85%);
    }

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

    .projects-index a:nth-child(-n + 2):not(:hover):not(:focus-visible) {
        border-bottom-color: var(--projects-line);
    }

    .projects-grid, .project-card__models {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-card--wide {
        display: flex;
    }
}
