.project-detail {
    color: var(--ink);
    background: #ffffff;
}

.project-hero {
    position: relative;
    min-height: 780px;
    color: #ffffff;
    background: var(--navy);
    overflow: hidden;
}

.project-hero.has-image {
    background-image: var(--project-hero-image);
    background-position: center;
    background-size: cover;
}

.project-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(2, 16, 34, 0.96) 0%,
            rgba(2, 20, 41, 0.78) 48%,
            rgba(2, 20, 41, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(2, 16, 34, 0.55),
            transparent 45%
        );
}

.project-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 780px;
    padding-top: 180px;
    padding-bottom: 90px;
    align-items: flex-end;
}

.project-hero__content {
    max-width: 980px;
}

.project-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(62px, 7vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.project-hero__excerpt {
    max-width: 680px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.8;
}

.project-hero__excerpt p {
    margin: 0;
}

.project-hero__facts {
    display: flex;
    margin: 48px 0 0;
    gap: 0;
    flex-wrap: wrap;
}

.project-hero__facts div {
    min-width: 180px;
    padding: 0 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.project-hero__facts div:first-child {
    padding-left: 0;
    border-left: 0;
}

.project-hero__facts dt {
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-hero__facts dd {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.project-detail__navigation {
    position: sticky;
    top: var(--header-height);
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

body.admin-bar .project-detail__navigation {
    top: calc(var(--header-height) + 32px);
}

.project-detail__navigation .shell {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 34px;
    overflow-x: auto;
}

.project-detail__navigation a {
    min-width: max-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-overview {
    padding: 120px 0;
    scroll-margin-top: 150px;
}

.project-overview__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 120px;
}

.project-overview h2,
.project-section-heading h2,
.project-enquiry h2 {
    margin: 0;
    font-size: clamp(42px, 4.5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.project-overview__body {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.project-overview__body > *:first-child {
    margin-top: 0;
}

.project-tags {
    margin-top: 44px;
}

.project-tags strong {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 13px;
}

.project-tags div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    padding: 9px 13px;
    color: #0b4f91;
    background: #eef5fb;
    border: 1px solid #d7e5f1;
    font-size: 12px;
}

.project-gallery-section {
    padding: 120px 0;
    color: #ffffff;
    background: var(--navy);
    scroll-margin-top: 150px;
}

.project-section-heading {
    max-width: 850px;
    margin-bottom: 55px;
}

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

.project-gallery-grid__item {
    height: 460px;
    margin: 0;
    overflow: hidden;
    background: #0a213c;
}

.project-gallery-grid__item.is-featured {
    grid-column: 1 / -1;
    height: 680px;
}

.project-gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-gallery-grid__item:hover img {
    transform: scale(1.025);
}

.project-products {
    padding: 120px 0;
    background: #f5f7fa;
    scroll-margin-top: 150px;
}

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

.project-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
}

.project-product-card__image {
    display: flex;
    min-height: 340px;
    padding: 34px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.project-product-card__image img {
    width: 100%;
    height: 270px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-product-card:hover .project-product-card__image img {
    transform: scale(1.04);
}

.project-product-card__image > span {
    color: var(--muted);
    font-size: 12px;
}

.project-product-card__content {
    display: flex;
    padding: 26px;
    flex: 1;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.project-product-card h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.project-product-card__content > p {
    display: flex;
    margin: 16px 0 0;
    gap: 8px;
    flex-wrap: wrap;
}

.project-product-card__content > p span {
    padding: 6px 9px;
    color: #315b88;
    background: #eef4f9;
    font-size: 10px;
    font-weight: 600;
}

.project-product-card__link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 28px;
    align-items: center;
    justify-content: space-between;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-enquiry {
    color: #ffffff;
    background: var(--navy);
    scroll-margin-top: 150px;
}

.project-enquiry__inner {
    display: flex;
    min-height: 390px;
    padding-top: 85px;
    padding-bottom: 85px;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.project-enquiry__inner > div {
    max-width: 780px;
}

.project-enquiry p:not(.eyebrow) {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

@media (max-width: 1050px) {
    .project-overview__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 980px) {
    .project-hero,
    .project-hero__inner {
        min-height: 680px;
    }

    .project-hero__inner {
        padding-top: 150px;
    }

    .project-hero__facts div {
        min-width: 50%;
        padding: 18px 20px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .project-hero__facts div:first-child {
        padding: 18px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .project-gallery-grid__item.is-featured {
        height: 520px;
    }

    .project-enquiry__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-enquiry__inner .button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .project-hero,
    .project-hero__inner {
        min-height: 620px;
    }

    .project-hero__inner {
        padding-top: 125px;
        padding-bottom: 60px;
    }

    .project-hero h1 {
        font-size: 54px;
    }

    .project-hero__facts {
        margin-top: 34px;
    }

    .project-hero__facts div {
        min-width: 100%;
        padding: 15px 0;
    }

    .project-hero__facts div:first-child {
        padding: 15px 0;
    }

    .project-overview,
    .project-gallery-section,
    .project-products {
        padding: 80px 0;
    }

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

    .project-gallery-grid__item,
    .project-gallery-grid__item.is-featured {
        grid-column: auto;
        height: 330px;
    }

    .project-product-grid {
        grid-template-columns: 1fr;
    }

    .project-product-card__image {
        min-height: 300px;
    }
}
