/* Exhibition dropdown uses the same red as Social and IP. */
#subnav-work-exhibition { --subnav-bg: #b60002; --subnav-hover: #a60002; }

/* Shared introduction treatment: Overview and Work categories only. */
#projects > #about-box-dark.cf-work-introduction {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    float: none;
    margin: 0 0 66px;
    padding: 0;
    background: transparent;
    color: var(--cf-superheader-color, #e8e8e8);
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(16px, 1.36vw, 23.2px) !important;
    line-height: 1.35 !important;
    font-weight: 400;
    letter-spacing: 0.004em;
    text-align: left;
}
#projects > #about-box-dark.cf-work-introduction::before { display: none; }
#projects > #about-box-dark.cf-work-introduction p {
    margin: 0;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit;
}
#projects > .cf-work-introduction + .work-category-nav {
    margin-top: 0;
    flex-wrap: wrap;
}
@media (max-width: 800px) {
    #projects > #about-box-dark.cf-work-introduction {
        display: block !important;
        /* Match the Overview introduction on mobile. */
        font-family: "Myriad Pro", Arial, sans-serif;
        font-size: var(--cf-mobile-reading-size, clamp(18.88px, 4.484vw, 23.6px)) !important;
        line-height: 1.58 !important;
    }
}

/* Match Work category introductions to the Overview desktop offset. */
@media screen and (min-width: 801px) {
    #content:has(> #projects > .cf-work-introduction) {
        padding-top: clamp(54px, 6vw, 86px);
    }
}

/* Keep collection tabs readable as they wrap across smaller screens. */
#projects > .work-category-nav {
    display: flex !important;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    align-items: center;
    gap: 14px 28px;
    width: 100%;
    box-sizing: border-box;
}
#projects > .work-category-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
}
#projects > .projectbox:has(> .cf-collection-divider) {
    grid-column: 1 / -1;
    width: 100%;
}
@media (max-width: 800px) {
    #projects > .work-category-nav {
        margin: 0 0 38px;
        font-size: 15.5px;
        line-height: 1.5;
        text-align: left;
    }
    #projects > .work-category-nav a {
        color: #999;
        padding-bottom: 5px;
        border-bottom: 3px solid transparent;
        letter-spacing: 0.1em;
    }
    #projects > .work-category-nav a[aria-current="page"] {
        color: #fff;
        border-bottom-color: #fff;
    }
}

/* Full collection headings, without changing the Overview introduction. */
.cf-work-introduction > .cf-collection-heading {
    font-family: inherit;
    font-size: 1.35em;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 18px;
    color: inherit;
}

/* Reserve the Overview copy's exact desktop height without touching mobile layout.
   Its hidden, non-interactive copy shares the same grid cell as the real text. */
.cf-work-intro-reserve { display: none; }
@media screen and (min-width: 801px) {
    #projects > #about-box-dark.cf-work-introduction {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: clamp(66px, 7vw, 94px);
    }
    .cf-work-introduction > p,
    .cf-work-introduction > .cf-work-intro-reserve {
        grid-area: 1 / 1;
        align-self: start;
    }
    .cf-work-introduction > .cf-work-intro-reserve {
        display: block;
        visibility: hidden;
        pointer-events: none;
        width: min(100%, 1180px);
    }
    #projects > #about-box-dark.cf-work-introduction .cf-work-intro-reserve p + p {
        margin-top: 0.85em;
    }
}
