.cbc-projects {
    background: #f5f9ff;
    color: #004079;
    min-height: 100vh;
    padding: 112px 46px 80px;
}

.cbc-projects__hero {
    max-width: 1160px;
    margin: 0 auto;
}

.cbc-projects__view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 62px;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 1;
}

.cbc-projects__view-toggle a {
    border: 1px solid #70c7ee;
    color: #69bde4;
    padding: 10px 26px;
    text-decoration: none;
}

.cbc-projects__view-toggle .is-active {
    background: #004079;
    border-color: #004079;
    color: #fff;
}

.cbc-projects__title-row {
    align-items: center;
    display: flex;
    gap: 48px;
    margin-bottom: 72px;
}

.cbc-projects h1 {
    color: #004079;
    font-size: clamp(72px, 12vw, 158px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: .85;
    margin: 0;
    text-transform: uppercase;
}

.cbc-projects__arrow {
    border-bottom: 3px solid #51b9e8;
    border-right: 3px solid #51b9e8;
    display: block;
    height: 54px;
    margin-top: 34px;
    position: relative;
    width: 54px;
}

.cbc-projects__arrow::before {
    background: #51b9e8;
    content: "";
    height: 3px;
    position: absolute;
    right: -4px;
    top: 25px;
    transform: rotate(45deg);
    transform-origin: right center;
    width: 74px;
}

.cbc-projects__filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto 72px;
    max-width: 820px;
}

.cbc-projects__filters select,
.cbc-projects__keyword {
    background: #d7dce2;
    border: 0;
    border-right: 1px solid #f5f9ff;
    color: #004079;
    display: block;
    height: 38px;
    min-width: 0;
    text-transform: uppercase;
}

.cbc-projects__filters select {
    appearance: none;
    font-size: 10px;
    padding: 0 18px;
    text-align: center;
    text-align-last: center;
}

.cbc-projects__filters select:nth-child(1) {
    background: #5bc0e9;
}

.cbc-projects__filters select:nth-child(2) {
    background: #f53a35;
    color: #fff;
}

.cbc-projects.is-list-view .cbc-projects__filters {
    margin-bottom: 66px;
}

.cbc-projects.is-list-view .cbc-projects__filters select:nth-child(3) {
    background: #d7dce2;
    color: #004079;
}

.cbc-projects.is-list-view .cbc-projects__keyword {
    background: #004079;
}

.cbc-projects.is-list-view .cbc-projects__keyword::after {
    align-items: center;
    background: #004079;
    color: #fff;
    content: "TAKE ME THERE";
    display: flex;
    font-size: 10px;
    height: 38px;
    justify-content: center;
    min-width: 132px;
    text-transform: uppercase;
}

.cbc-projects.is-list-view .cbc-projects__keyword input {
    background: #d7dce2;
    color: #004079;
}

.cbc-projects.is-list-view .cbc-projects__keyword input::placeholder {
    color: #004079;
}

.cbc-projects__keyword {
    align-items: center;
    background: #004079;
    display: flex;
}

.cbc-projects__keyword input {
    background: transparent;
    border: 0;
    color: #fff;
    flex: 1;
    font-size: 10px;
    height: 100%;
    min-width: 0;
    padding: 0 10px 0 16px;
    text-transform: uppercase;
}

.cbc-projects__keyword input::placeholder {
    color: #fff;
    opacity: 1;
}

.cbc-projects__keyword button {
    background: transparent;
    border: 0;
    height: 38px;
    position: relative;
    width: 34px;
}

.cbc-projects__keyword button::before {
    border: 2px solid #70c7ee;
    border-radius: 50%;
    content: "";
    height: 12px;
    left: 8px;
    position: absolute;
    top: 9px;
    width: 12px;
}

.cbc-projects__keyword button::after {
    background: #70c7ee;
    content: "";
    height: 2px;
    left: 20px;
    position: absolute;
    top: 22px;
    transform: rotate(45deg);
    width: 9px;
}

.cbc-projects__grid {
    display: grid;
    gap: 64px 38px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1160px;
}

.cbc-projects__item {
    grid-column: span 2;
    min-width: 0;
    text-decoration: none;
}

.cbc-projects__image {
    aspect-ratio: 1.6;
    background: #d9e3ed;
    overflow: hidden;
}

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

.cbc-projects__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 6px;
}

.cbc-projects__meta span {
    color: #004079;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.cbc-projects__meta span + span::before {
    content: "|";
    margin-right: 8px;
}

.cbc-projects__item h2 {
    color: #004079;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .95;
    margin: 0;
    text-transform: uppercase;
}

.cbc-projects__empty {
    color: #004079;
    font-size: 18px;
    grid-column: 1 / -1;
    text-align: center;
}

.cbc-projects__pagination {
    margin: 48px auto 0;
    max-width: 1160px;
}

.cbc-projects__list {
    border-top: 1px solid rgba(0, 64, 121, .08);
    margin: 0 calc(50% - 50vw);
}

.cbc-projects__list-item {
    align-items: center;
    border-bottom: 1px solid rgba(0, 64, 121, .08);
    display: grid;
    grid-template-columns: minmax(46px, 1fr) minmax(0, 620px) 70px 240px minmax(24px, 1fr);
    min-height: 126px;
    position: relative;
    text-decoration: none;
}

.cbc-projects__list-copy {
    grid-column: 2;
    min-width: 0;
}

.cbc-projects__list-item h2 {
    color: rgba(0, 64, 121, .2);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.cbc-projects__list-item .cbc-projects__meta {
    margin: 0;
}

.cbc-projects__list-item .cbc-projects__meta span {
    color: rgba(0, 64, 121, .25);
}

.cbc-projects__list-arrow,
.cbc-projects__list-dot,
.cbc-projects__list-image {
    display: none;
}

.cbc-projects__list-item.is-active {
    border-bottom-color: rgba(81, 185, 232, .55);
}

.cbc-projects__list-item.is-active h2 {
    color: #004079;
}

.cbc-projects__list-item.is-active .cbc-projects__meta span {
    color: #004079;
}

.cbc-projects__list-item.is-active .cbc-projects__list-arrow {
    border-bottom: 2px solid #004079;
    border-right: 2px solid #004079;
    display: block;
    grid-column: 1;
    height: 30px;
    justify-self: end;
    margin-right: 30px;
    position: relative;
    width: 30px;
}

.cbc-projects__list-item.is-active .cbc-projects__list-arrow::before {
    background: #004079;
    content: "";
    height: 2px;
    position: absolute;
    right: -2px;
    top: 14px;
    transform: rotate(45deg);
    transform-origin: right center;
    width: 42px;
}

.cbc-projects__list-item.is-active .cbc-projects__list-dot {
    align-items: center;
    background: #dff3fb;
    border-radius: 50%;
    color: #004079;
    display: flex;
    grid-column: 3;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.cbc-projects__list-item.is-active .cbc-projects__list-dot::before {
    background: #004079;
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
}

.cbc-projects__list-item.is-active .cbc-projects__list-image {
    aspect-ratio: 1.6;
    display: block;
    grid-column: 4;
    height: 112px;
    overflow: hidden;
}

.cbc-projects__list-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cbc-project-detail {
    background: #f5f9ff;
    color: #004079;
    min-height: 100vh;
    padding: 170px 0 90px;
}

.cbc-project-detail__intro {
    align-items: center;
    display: grid;
    gap: 74px;
    grid-template-columns: minmax(230px, 360px) minmax(0, 660px);
    margin: 0 auto 104px;
    max-width: 1070px;
    padding: 0 44px;
}

.cbc-project-detail__copy h1 {
    color: #004079;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: .9;
    margin: 0 0 34px;
    max-width: 300px;
    text-transform: uppercase;
}

.cbc-project-detail__copy dl {
    margin: 0;
}

.cbc-project-detail__copy dl div {
    display: flex;
    font-size: 11px;
    line-height: 1.35;
}

.cbc-project-detail__copy dt {
    color: #004079;
    font-weight: 800;
    margin: 0 4px 0 0;
}

.cbc-project-detail__copy dd {
    color: #1e8cc5;
    margin: 0;
}

.cbc-project-detail__stripe {
    background: linear-gradient(90deg, #f43b35 0 42%, #55bfe9 42% 70%, #d1d6dc 70% 100%);
    display: block;
    height: 3px;
    margin-top: 86px;
    width: 198px;
}

.cbc-project-detail__hero-image {
    aspect-ratio: 1.58;
    overflow: hidden;
}

.cbc-project-detail__hero-image img,
.cbc-project-detail__feature img,
.cbc-project-detail__related-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cbc-project-detail__feature {
    aspect-ratio: 1.68;
    margin: 0 auto 100px;
    max-height: 650px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cbc-project-detail__feature span {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    position: absolute;
    right: 82px;
    text-transform: uppercase;
    top: 49%;
}

.cbc-project-detail__related {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) 220px 275px 420px minmax(42px, 1fr);
    grid-auto-rows: auto;
    margin: 0 auto;
    max-width: 1120px;
    position: relative;
}

.cbc-project-detail__related-heading {
    align-self: end;
    color: #004079;
    font-size: 26px;
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 20px;
}

.cbc-project-detail__related-card {
    align-items: center;
    background: #004079;
    color: #fff;
    display: flex;
    grid-column: 2 / 4;
    grid-row: 2;
    min-height: 190px;
    padding: 38px 60px;
    text-decoration: none;
    z-index: 2;
}

.cbc-project-detail__related-card h2 {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.cbc-project-detail__related-card p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.cbc-project-detail__related-card span {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.cbc-project-detail__related-card span + span::before {
    content: "|";
    margin-right: 8px;
}

.cbc-project-detail__related-image {
    aspect-ratio: 1.58;
    display: block;
    grid-column: 4;
    margin-bottom: 74px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.cbc-project-detail__related-image.is-first {
    grid-row: 1 / 3;
    margin: 0 0 0 -50px;
}

.cbc-project-detail__related-image span {
    align-items: center;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 9px;
    height: 58px;
    justify-content: center;
    position: absolute;
    right: 34px;
    text-transform: uppercase;
    top: 48%;
    width: 58px;
}

.cbc-project-detail__back {
    align-items: center;
    border: 1px solid #004079;
    color: #004079;
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    grid-column: 2;
    grid-row: 3;
    height: 28px;
    justify-content: center;
    margin-top: 36px;
    text-decoration: none;
    text-transform: uppercase;
    width: 180px;
}

@media (min-width: 900px) {
    .cbc-projects__item:nth-child(4),
    .cbc-projects__item:nth-child(5) {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .cbc-projects {
        padding: 96px 24px 56px;
    }

    .cbc-projects__view-toggle {
        margin-bottom: 42px;
    }

    .cbc-projects__title-row {
        gap: 24px;
        margin-bottom: 44px;
    }

    .cbc-projects__arrow {
        height: 34px;
        width: 34px;
    }

    .cbc-projects__arrow::before {
        top: 15px;
        width: 48px;
    }

    .cbc-projects__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 46px;
    }

    .cbc-projects__grid {
        gap: 38px 22px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbc-projects__item,
    .cbc-projects__item:nth-child(4),
    .cbc-projects__item:nth-child(5) {
        grid-column: auto;
    }

    .cbc-projects__item h2 {
        font-size: 17px;
    }

    .cbc-projects__list-item {
        grid-template-columns: 24px minmax(0, 1fr) 52px 150px 24px;
        min-height: 104px;
    }

    .cbc-projects__list-item h2 {
        font-size: 18px;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-arrow {
        height: 22px;
        margin-right: 12px;
        width: 22px;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-arrow::before {
        top: 10px;
        width: 32px;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-dot {
        height: 42px;
        width: 42px;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-image {
        height: 84px;
    }

    .cbc-project-detail {
        padding-top: 120px;
    }

    .cbc-project-detail__intro {
        gap: 36px;
        grid-template-columns: 1fr;
        margin-bottom: 56px;
        padding: 0 24px;
    }

    .cbc-project-detail__copy h1 {
        max-width: none;
    }

    .cbc-project-detail__stripe {
        margin-top: 40px;
    }

    .cbc-project-detail__feature {
        margin-bottom: 58px;
    }

    .cbc-project-detail__feature span {
        right: 32px;
    }

    .cbc-project-detail__related {
        gap: 20px;
        grid-template-columns: 24px minmax(0, 1fr) 24px;
    }

    .cbc-project-detail__related-heading,
    .cbc-project-detail__related-card,
    .cbc-project-detail__related-image,
    .cbc-project-detail__related-image.is-first,
    .cbc-project-detail__back {
        grid-column: 2;
        grid-row: auto;
        margin-left: 0;
    }

    .cbc-project-detail__related-card {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .cbc-projects {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cbc-projects__view-toggle a {
        padding: 9px 18px;
    }

    .cbc-projects__filters,
    .cbc-projects__grid {
        grid-template-columns: 1fr;
    }

    .cbc-projects.is-list-view .cbc-projects__keyword::after {
        min-width: 106px;
    }

    .cbc-projects__list-item {
        grid-template-columns: 16px minmax(0, 1fr) 44px 16px;
        padding: 18px 0;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-image {
        display: none;
    }

    .cbc-projects__list-item.is-active .cbc-projects__list-dot {
        grid-column: 3;
    }
}
