:root {
    --pyramid-navy: #17324d;
    --pyramid-navy-deep: #0f2538;
    --pyramid-sand: #e8ddc7;
    --pyramid-sand-soft: #f5f0e7;
    --pyramid-ink: #1e2933;
    --pyramid-muted: #66717b;
    --pyramid-line: #d9d5cd;
    --pyramid-white: #ffffff;
}

.pyramid-project-page,
.pyramid-project-grid {
    color: var(--pyramid-ink);
    font-family: inherit;
}

.pyramid-project-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.pyramid-project-breadcrumbs {
    padding: 28px 0 12px;
    color: var(--pyramid-muted);
    font-size: 0.92rem;
}

.pyramid-project-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.pyramid-project-hero {
    padding: 38px 0 42px;
    border-bottom: 1px solid var(--pyramid-line);
}

.pyramid-project-eyebrow {
    margin: 0 0 10px;
    color: var(--pyramid-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pyramid-project-title {
    max-width: 980px;
    margin: 0;
    color: var(--pyramid-navy-deep);
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.pyramid-project-summary {
    max-width: 820px;
    margin: 22px 0 0;
    color: #45515b;
    font-size: clamp(1.04rem, 1.8vw, 1.28rem);
    line-height: 1.75;
}

.pyramid-project-cover {
    margin: 34px 0 0;
    overflow: hidden;
    border-radius: 2px;
    background: var(--pyramid-sand-soft);
}

.pyramid-project-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
}

.pyramid-project-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--pyramid-line);
    border: 1px solid var(--pyramid-line);
}

.pyramid-project-fact {
    min-height: 130px;
    padding: 24px;
    background: var(--pyramid-sand-soft);
}

.pyramid-project-fact dt {
    margin-bottom: 7px;
    color: var(--pyramid-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pyramid-project-fact dd {
    margin: 0;
    color: var(--pyramid-navy-deep);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.55;
}

.pyramid-project-section {
    padding: 64px 0;
}

.pyramid-project-section + .pyramid-project-section {
    border-top: 1px solid var(--pyramid-line);
}

.pyramid-project-section h2 {
    margin: 0 0 24px;
    color: var(--pyramid-navy-deep);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.pyramid-project-content {
    max-width: 850px;
    font-size: 1.05rem;
    line-height: 1.85;
}

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

.pyramid-project-list {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pyramid-project-list li {
    position: relative;
    padding: 16px 20px 16px 48px;
    border: 1px solid var(--pyramid-line);
    background: var(--pyramid-white);
    line-height: 1.65;
}

.pyramid-project-list li::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 20px;
    width: 12px;
    height: 2px;
    background: var(--pyramid-navy);
}

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

.pyramid-project-gallery figure {
    margin: 0;
    overflow: hidden;
    background: var(--pyramid-sand-soft);
}

.pyramid-project-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pyramid-project-cta {
    padding: 58px 0;
    background: var(--pyramid-navy-deep);
    color: var(--pyramid-white);
}

.pyramid-project-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pyramid-project-cta h2 {
    margin: 0 0 8px;
    color: var(--pyramid-white);
}

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

.pyramid-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--pyramid-sand);
    color: var(--pyramid-navy-deep);
    background: var(--pyramid-sand);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.pyramid-project-button:hover,
.pyramid-project-button:focus {
    color: var(--pyramid-white);
    background: transparent;
}

/* Dynamic listing shortcode */
.pyramid-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.pyramid-project-card {
    overflow: hidden;
    border: 1px solid var(--pyramid-line);
    background: var(--pyramid-white);
}

.pyramid-project-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pyramid-sand-soft);
}

.pyramid-project-card__image img,
.pyramid-project-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

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

.pyramid-project-card__body {
    padding: 24px;
}

.pyramid-project-card h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.35;
}

.pyramid-project-card h3 a {
    color: var(--pyramid-navy-deep);
    text-decoration: none;
}

.pyramid-project-card__location {
    color: var(--pyramid-muted);
    font-size: 0.92rem;
}

.pyramid-project-text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--pyramid-navy);
    font-weight: 700;
    text-decoration: none;
}

.pyramid-projects-empty {
    padding: 24px;
    border: 1px solid var(--pyramid-line);
    background: var(--pyramid-sand-soft);
}

@media (max-width: 920px) {
    .pyramid-project-facts,
    .pyramid-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .pyramid-project-shell {
        width: min(100% - 28px, 1180px);
    }

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

    .pyramid-project-hero,
    .pyramid-project-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }
}
