.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 12px;
}

.bento-tile {
    position: relative;
    grid-row: span 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1d;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #f5f3ee;
    isolation: isolate;
    transition: outline-color 0.2s ease;
}

.bento-tile__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: -1; /* sits behind the ::before gradient and content */
}

.bento-tile:hover .bento-tile__image {
    transform: scale(1.06);
}

.bento-tile--featured {
    grid-row: span 2;
}

.bento-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 35%,
        rgba(0,0,0,0.15) 65%,
        rgba(0,0,0,0) 100%
    );
    z-index: 0;
}

.bento-tile__content {
    position: static;
    z-index: 1;
    padding: 22px;
}

.bento-tile--featured .bento-tile__content {
    padding: 28px;
}

.bento-tile__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bento-tile--featured .bento-tile__title {
    font-size: 1.5rem;
}

.bento-tile__desc {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(245,243,238,0.85);
    max-width: 32ch;
}

.bento-tile__link {
    color: #f5f3ee;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.bento-tile__link:hover {
    gap: 10px;
    opacity: 0.85;
}

.bento-tile__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-tile:hover {
    outline: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 800px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .bento-tile,
    .bento-tile--featured {
        grid-row: span 1;
        height: 260px;
    }
}
