.projects-hero,
.project-detail-hero {
    padding: 78px 0 64px;
    color: #ffffff;
    background-color: #11233a;
}

.projects-hero-inner {
    max-width: 820px;
}

.projects-hero h1,
.project-detail-hero h1 {
    margin: 10px 0 18px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.projects-hero p,
.project-detail-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(17, 35, 58, 0.08);
}

.project-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ecef;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.025);
}

.project-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 25px;
    color: #66717e;
    text-align: center;
}

.project-card-content {
    padding: 25px;
}

.project-card-meta,
.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #9a7428;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-card-meta span + span::before,
.project-detail-meta span + span::before {
    content: "•";
    margin-right: 14px;
}

.project-card h2 {
    margin: 12px 0 12px;
    font-size: 1.38rem;
    line-height: 1.3;
}

.project-card h2 a {
    color: #11233a;
    text-decoration: none;
}

.project-card p {
    margin: 0 0 20px;
    color: #65717d;
    line-height: 1.7;
}

.project-card-link,
.project-back-link {
    color: #956f22;
    font-weight: 800;
    text-decoration: none;
}

.projects-empty-state {
    max-width: 700px;
    margin: 0 auto;
    padding: 55px 30px;
    text-align: center;
    background: #f7f8f9;
    border: 1px solid #dfe4e9;
    border-radius: 8px;
}

.projects-empty-state h2 {
    color: #11233a;
}

.project-back-link {
    display: inline-block;
    margin-bottom: 26px;
    color: #e0c27c;
}

.project-detail-heading {
    max-width: 900px;
}

.project-overview-section {
    background: #ffffff;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.72fr);
    align-items: start;
    gap: 42px;
}

.project-overview-grid-no-image {
    grid-template-columns: minmax(280px, 420px);
    justify-content: end;
}

.project-cover-figure {
    min-width: 0;
    margin: 0;
}

.project-cover-image {
    display: block;
    width: 100%;
    max-height: 590px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

.project-image-caption,
.project-gallery-item figcaption {
    margin: 9px 0 0;
    color: #737e89;
    font-size: 0.85rem;
}

.project-facts {
    padding: 28px;
    background: #f5f7f8;
    border-left: 4px solid #b88a2d;
}

.project-facts h2 {
    margin: 0 0 20px;
    color: #11233a;
    font-size: 1.4rem;
}

.project-facts dl,
.project-facts dd {
    margin: 0;
}

.project-facts dl > div {
    padding: 13px 0;
    border-bottom: 1px solid #dce2e7;
}

.project-facts dl > div:last-child {
    border-bottom: 0;
}

.project-facts dt {
    margin-bottom: 4px;
    color: #65717d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-facts dd {
    color: #11233a;
    font-weight: 700;
}

.project-story-section {
    padding: 0 0 72px;
}

.project-story {
    max-width: none;
    color: #3f4e5d;
    font-size: 1.05rem;
    line-height: 1.85;
}

.project-story p:first-child {
    margin-top: 0;
}

.project-story p:last-child {
    margin-bottom: 0;
}

.project-scope-full {
    margin-top: 34px;
    padding: 28px 30px;
    background: #f5f7f8;
    border-left: 4px solid #b88a2d;
}

.project-scope-full h2 {
    margin: 0 0 10px;
    color: #11233a;
    font-size: 1.35rem;
}

.project-scope-full p {
    margin: 0;
    color: #5e6b78;
    line-height: 1.7;
}

.project-gallery-section {
    background: #f3f5f6;
}

.project-gallery-heading {
    margin-bottom: 30px;
}

.project-gallery-heading h2 {
    margin: 8px 0 0;
    color: #11233a;
}

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

.project-gallery-item {
    margin: 0;
}

.project-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.project-detail-cta {
    padding: 58px 0;
    color: #ffffff;
    background: #11233a;
}

.project-detail-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.project-detail-cta h2 {
    margin: 8px 0 9px;
    color: #ffffff;
}

.project-detail-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .projects-hero,
    .project-detail-hero {
        padding: 58px 0 48px;
    }

    .projects-grid,
    .project-gallery-grid,
    .project-overview-grid {
        grid-template-columns: 1fr;
    }

    .project-overview-grid {
        gap: 28px;
    }

    .project-overview-grid-no-image {
        justify-content: stretch;
    }

    .project-detail-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
