.projects-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    overflow: hidden;
}

.projects-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.45);
    z-index: 1;
}

.projects-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.projects-hero__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    padding: 120px 0 80px;
}

.projects-hero__title {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.95;
    font-weight: 500;
}

.projects-hero__text {
    max-width: 620px;
    margin: 0 auto;
    font-family: "IBM Plex Serif", Arial, Helvetica, sans-serif;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    font-size: 1.625rem;
    line-height: 1.5;
}

.projects-hero__text p {
    margin: 0;
}

.projects-hero__text p + p {
    margin-top: 12px;
}

@media (max-width: 991px) {
    .projects-hero {
        min-height: 460px;
    }

    .projects-hero__content {
        padding: 100px 0 70px;
    }

    .projects-hero__title {
        margin-bottom: 20px;
    }

    .projects-hero__text {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .projects-hero {
        min-height: 400px;
    }

    .projects-hero__content {
        padding: 90px 0 60px;
    }

    .projects-hero__title {
        font-size: 42px;
        line-height: 1;
    }

    .projects-hero__text {
        font-size: 16px;
        line-height: 1.45;
    }
}

.projects-directory {
    padding: 48px 0 80px;
    background: #efefeb;
}

.projects-directory .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-directory__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
}

.projects-directory__sidebar {
    background: #f6f6f2;
    padding: 28px 18px;
}

.projects-filter__group + .projects-filter__group {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #dbdbd4;
}

.projects-filter__title {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #9a9b7f;
    font-weight: 500;
    text-transform: uppercase;
}

.projects-filter__checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
    color: #1c1c1a;
}

.projects-filter__checkbox input[type="checkbox"],
.projects-filter__checkbox input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 1px solid #d6d6cf;
    background: #f6f6f2;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.projects-filter__checkbox input[type="checkbox"]:checked::after,
.projects-filter__checkbox input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #1c1c1a;
    border-radius: 2px;
}

.projects-filter__checkbox span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 500;
}

.projects-filter__checkbox em {
    font-style: normal;
    color: #8c8c86;
    font-weight: 400;
}

.projects-directory__content {
    min-width: 0;
}

.projects-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    transition: opacity 0.25s ease;
}

.projects-directory__grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.project-card {
    background: #f7f7f4;
    min-height: 228px;
    border: 1px solid #e0e0d9;
}

.project-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
}

.project-card__eyebrow {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.2;
    color: #4f4f4a;
}

.project-card__title {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.28;
    color: #1f1f1d;
    font-weight: 700;
    font-family: Georgia, serif;
}

.project-card__excerpt {
    font-size: 15px;
    line-height: 1.55;
    color: #61615c;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__footer {
    margin-top: auto;
    padding-top: 28px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    color: #1c1c1a;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.project-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.project-card__link--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.projects-directory__empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    background: #f7f7f4;
    border: 1px solid #e0e0d9;
    text-align: center;
    font-size: 16px;
    color: #555;
}

.projects-directory__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.projects-directory__page-link,
.projects-directory__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #d3d3cc;
    background: #f7f7f4;
    color: #1c1c1a;
    text-decoration: none;
    font-size: 14px;
}

.projects-directory__pagination .current {
    background: #1c1c1a;
    color: #fff;
    border-color: #1c1c1a;
}

@media (max-width: 1100px) {
    .projects-directory__layout {
        grid-template-columns: 280px 1fr;
    }

    .projects-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .projects-directory {
        padding: 28px 0 48px;
    }

    .projects-directory__layout {
        grid-template-columns: 1fr;
    }

    .projects-directory__sidebar {
        padding: 20px 16px;
    }

    .projects-directory__grid {
        grid-template-columns: 1fr;
    }

    .project-card__title {
        font-size: 20px;
    }
}

/* Past projects — two-column list view */

.projects-directory__list-container {
    width: 100%;
}

.projects-past-list {
    width: 100%;
}

.projects-past-list__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #3a3a38;
}

.projects-past-list__header-row {
    padding: 0 0 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #d0d0c8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2b4c8c;
}

.projects-past-list__group {
    margin-bottom: 28px;
}

.projects-past-list__group-title-row {
    padding-top: 20px;
    padding-bottom: 2px;
}

.projects-past-list__group-title {
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    color: #1c1c1a;
}

.projects-past-list__position,
.projects-past-list__industry {
    display: block;
}

@media (max-width: 600px) {
    .projects-past-list__row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
        border-bottom: 1px solid #e8e8e2;
    }

    .projects-past-list__header-row {
        display: none;
    }

    .projects-past-list__industry::before {
        content: 'Industry: ';
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #2b4c8c;
    }
}