.app-hero-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.app-hero-category {
    position: relative;
    display: block;
    min-height: 10rem;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: #0f172a;
    isolation: isolate;
    cursor: pointer;
}

.app-hero-category::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.48);
    transition: background 180ms ease;
    pointer-events: none;
}

.app-hero-category-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0) scale(1);
    transition: transform 750ms ease, filter 200ms ease;
    will-change: transform, filter;
    pointer-events: none;
}

.app-hero-category:hover::after,
.app-hero-category:focus-visible::after {
    background: rgba(15, 23, 42, 0.18);
}

.app-hero-category:hover .app-hero-category-image,
.app-hero-category:focus-visible .app-hero-category-image {
    transform: translateZ(0) scale(1.05);
}

.app-hero-category-title {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(85%, 13rem);
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: clamp(1rem, 2.3vw, 1.65rem);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
    pointer-events: none;
}

@media (min-width: 768px) {
    .app-hero-categories {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: 1rem 0 1.25rem;
    }

    .app-hero-category {
        flex: 1 1 0;
        aspect-ratio: 1.08 / 1;
        min-height: 13rem;
        clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
    }

    .app-hero-category:not(:first-child) {
        margin-left: -7%;
    }
}

@media (min-width: 1024px) {
    .app-hero-category {
        min-height: 16rem;
    }

    .app-hero-category:not(:first-child) {
        margin-left: -9%;
    }
}
