.category-grid.category-grid--illustrated {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.category-grid--illustrated > li {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: initial;
    scroll-snap-align: none;
}

.category-card.category-card--illustrated {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(207, 165, 107, 0.38);
    border-radius: 1rem;
    background: #fbf6ed;
    color: var(--navy-950);
    box-shadow: 0 8px 24px rgba(30, 35, 48, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card--illustrated .category-card__art {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
}

.category-card--illustrated .category-card__content {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    inset: auto;
    min-height: 7rem;
    padding: 1rem 1.1rem;
}

.category-card--illustrated .category-card__content strong {
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.category-card--illustrated .category-card__content small {
    margin-top: 0.8rem;
    color: #725d36;
    font-size: 0.72rem;
    line-height: 1.4;
}

.category-card--illustrated:hover {
    transform: translateY(-2px);
    border-color: #cfa56b;
    box-shadow: 0 12px 30px rgba(30, 35, 48, 0.09);
}

.category-card--illustrated:focus-visible {
    outline: 3px solid #bd8a2d;
    outline-offset: 4px;
}

.catalog-page__heading.catalog-page__heading--illustrated {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: 'copy artwork' 'meta artwork';
    align-items: center;
    gap: 1.25rem 2rem;
    margin: 1.5rem 0 2rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid rgba(207, 165, 107, 0.38);
    border-radius: 1.25rem;
    background: #fbf6ed;
}

.catalog-page__heading--illustrated > div {
    grid-area: copy;
    min-width: 0;
}

.catalog-page__heading--illustrated h1 {
    font-size: clamp(2rem, 3.9vw, 3.6rem);
    line-height: 1.1;
    overflow-wrap: break-word;
}

.catalog-page__heading--illustrated > .demo-pill {
    grid-area: meta;
    align-self: start;
    justify-self: start;
}

.catalog-page__heading--illustrated .category-heading__art {
    grid-area: artwork;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 0.85rem;
}

@media (max-width: 1100px) {
    .category-grid.category-grid--illustrated {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .category-grid.category-grid--illustrated {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .category-card--illustrated .category-card__content {
        min-height: 7.5rem;
        padding: 0.85rem;
    }

    .category-card--illustrated .category-card__content strong {
        font-size: 1rem;
    }

    .catalog-page__heading.catalog-page__heading--illustrated {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'copy' 'artwork' 'meta';
        gap: 1.25rem;
    }

    .catalog-page__heading--illustrated .category-heading__art {
        max-width: 34rem;
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card.category-card--illustrated {
        transition: none;
    }

    .category-card--illustrated:hover {
        transform: none;
    }
}
