:root {
    --imep-black: #080808;
    --imep-dark: #111111;
    --imep-white: #ffffff;
    --imep-muted: #6f6f6f;
    --imep-line: rgba(0, 0, 0, 0.12);
    --imep-light: #f5f5f2;
    --imep-accent: #ee5b17;
}

/* Hide default theme title */
.single-imep_project .page-header h1,
.post-type-archive-imep_project .page-header h1,
.single-imep_project .entry-title,
.post-type-archive-imep_project .entry-title {
    display: none !important;
}

/* General container */
.imep-project-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

/* Archive header */
.imep-archive-header {
    padding: clamp(70px, 9vw, 125px) 24px clamp(44px, 6vw, 80px);
    font-family: "Titillium Web", Arial, sans-serif;
}

.imep-project-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--imep-black);
}

.imep-project-kicker::after {
    content: "";
    width: 70px;
    height: 1px;
    background: var(--imep-accent);
    display: inline-flex;
}

.imep-archive-header h1 {
    margin: 0;
    font-size: clamp(64px, 10vw, 138px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 400;
    color: var(--imep-black);
}

.imep-archive-header p {
    max-width: 660px;
    margin: 28px 0 0;
    font-size: 21px;
    line-height: 1.55;
    color: var(--imep-muted);
}

/* Archive listing */
.imep-project-archive-section {
    padding: 0 24px clamp(70px, 8vw, 120px);
}

.imep-project-archive-list,
.imep-projects-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 55px 4%;
    align-items: flex-start;
    width: 100%;
}

/* VamTam style project cards */
.imep-vamtam-project-card {
    width: 30.66%;
    font-family: "Titillium Web", Arial, sans-serif;
}

.imep-vamtam-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--imep-light);
}

.imep-vamtam-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    text-decoration: none;
}

.imep-vamtam-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.imep-vamtam-project-card:hover .imep-vamtam-thumb-link img {
    transform: scale(1.04);
}

.imep-project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 54px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.12);
    font-weight: 600;
    letter-spacing: -0.04em;
}

/* Hover button */
.imep-vamtam-read-more-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    background: var(--imep-white);
    min-height: 68px;
}

.imep-vamtam-read-more {
    display: flex;
    align-items: center;
    padding: 0 28px;
    color: var(--imep-black);
    font-size: 16px;
    text-decoration: none;
}

.imep-vamtam-read-more:hover {
    color: var(--imep-accent);
}

.imep-vamtam-read-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    color: var(--imep-accent);
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
    border-left: 1px solid #eeeeee;
}

.imep-vamtam-read-more-icon:hover {
    color: var(--imep-black);
}

/* Card meta and title */
.imep-vamtam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    color: #777777;
    font-size: 15px;
}

.imep-vamtam-meta span:not(:last-child)::after {
    content: ",";
}

.imep-vamtam-title {
    margin: 8px 0 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.imep-vamtam-title a {
    color: var(--imep-black);
    text-decoration: none;
}

.imep-vamtam-title a:hover {
    color: var(--imep-accent);
}

/* Sector pills */
.imep-sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "Titillium Web", Arial, sans-serif;
}

.imep-sector-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--imep-dark);
    background: #f7f7f4;
    padding: 9px 12px;
    text-decoration: none;
}

.imep-sector-pill:hover {
    background: var(--imep-dark);
    color: var(--imep-white);
}

/* Empty state */
.imep-empty {
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 18px;
}

/* Single project hero */
.imep-project-hero {
    background: var(--imep-black);
    color: var(--imep-white);
    padding: clamp(70px, 9vw, 130px) 24px;
    font-family: "Titillium Web", Arial, sans-serif;
}

.imep-project-hero .imep-project-kicker {
    color: var(--imep-white);
}

.imep-project-title {
    margin: 0;
    max-width: 980px;
    font-size: clamp(58px, 9vw, 132px);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 400;
    color: var(--imep-white) !important;
}

.imep-project-intro {
    max-width: 720px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
}

/* Single project layout */
.imep-project-main {
    padding: clamp(60px, 7vw, 110px) 24px;
    font-family: "Titillium Web", Arial, sans-serif;
}

.imep-project-layout {
    display: flex;
    gap: clamp(34px, 6vw, 90px);
    align-items: flex-start;
}

.imep-project-content {
    flex: 1 1 62%;
    min-width: 0;
}

.imep-project-content img {
    max-width: 100%;
    height: auto;
}

.imep-project-entry {
    font-size: 16px !important;
    line-height: 1.7;
}

.imep-project-featured-image {
    margin-bottom: 38px;
    overflow: hidden;
    background: var(--imep-light);
}

.imep-project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single project sidebar */
.imep-project-sidebar {
    flex: 0 0 360px;
    position: sticky;
    top: 100px;
    border-top: 2px solid var(--imep-black);
}

.imep-project-info-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--imep-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.imep-project-info-item strong {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--imep-muted);
}

.imep-project-info-item span {
    font-size: 20px;
    line-height: 1.35;
    color: var(--imep-black);
}

/* Major systems box */
.imep-project-systems {
    margin-top: 40px;
    padding: 34px;
    background: var(--imep-light);
}

.imep-project-systems h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 400;
}

.imep-project-systems p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: var(--imep-dark);
}

/* Pagination */
.navigation.pagination {
    margin-top: 60px;
    font-family: "Titillium Web", Arial, sans-serif;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    color: var(--imep-black);
    background: var(--imep-light);
    text-decoration: none;
}

.navigation.pagination .current,
.navigation.pagination a:hover {
    background: var(--imep-black);
    color: var(--imep-white);
}

/* Responsive */
@media (max-width: 1024px) {
    .imep-vamtam-project-card {
        width: 48%;
    }
}

@media (max-width: 900px) {
    .imep-project-layout {
        flex-direction: column;
    }

    .imep-project-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .imep-project-archive-list,
    .imep-projects-wrap {
        gap: 38px;
    }

    .imep-vamtam-project-card {
        width: 100%;
    }

    .imep-vamtam-title {
        font-size: 26px;
    }

    .imep-vamtam-read-more-wrap {
        min-height: 58px;
    }

    .imep-vamtam-read-more {
        padding: 0 20px;
        font-size: 15px;
    }

    .imep-vamtam-read-more-icon {
        width: 58px;
        font-size: 30px;
    }

    .imep-archive-header h1,
    .imep-project-title {
        letter-spacing: -0.045em;
    }
}