/* Work and service grid systems */
.bento-section {
    padding: var(--space-xl) 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
    gap: var(--space-sm);
}

.bento-item {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: var(--transition-smooth);
    isolation: isolate;
}

.bento-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 7, 12, 0.88), rgba(4, 7, 12, 0.28), rgba(4, 7, 12, 0));
    z-index: 1;
}

.bento-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    margin-top: 0.45rem;
    font-size: clamp(1.22rem, 0.95rem + 0.65vw, 1.7rem);
    color: #fff;
}

.bento-content p {
    margin-top: 0.5rem;
    color: hsl(var(--text-muted));
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.bento-item:hover {
    transform: translateY(-6px);
    border-color: hsla(var(--primary-accent), 0.32);
    box-shadow:
        0 24px 48px -24px rgba(0, 0, 0, 0.82),
        0 0 34px hsla(var(--primary-accent), 0.22);
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-note {
    background: linear-gradient(160deg, rgba(52, 164, 255, 0.13), rgba(251, 187, 64, 0.08));
}

.bento-lg {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-md {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-sm {
    grid-column: span 4;
}

.bento-wide {
    grid-column: span 8;
}

.services-section {
    background: hsl(var(--midnight-surface));
}

.services-grid {
    grid-auto-rows: minmax(320px, auto);
}

.service-card {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: var(--transition-bounce);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px -26px rgba(0, 0, 0, 0.82),
        0 0 30px hsla(var(--secondary-accent), 0.22);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: hsla(var(--primary-accent), 0.1);
    border: 1px solid hsla(var(--primary-accent), 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: hsl(var(--primary-accent));
}

.service-card:hover .service-icon {
    border-color: hsla(var(--secondary-accent), 0.45);
    box-shadow: 0 0 22px hsla(var(--secondary-accent), 0.2);
}

.service-title {
    color: #fff;
    font-size: var(--fs-lg);
}

.service-desc {
    color: hsl(var(--text-muted));
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.service-points {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-points li {
    font-size: var(--fs-xs);
    color: hsl(var(--text-main));
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.service-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--secondary-accent));
    box-shadow: 0 0 10px hsla(var(--secondary-accent), 0.45);
}

@media (max-width: 980px) {
    .bento-lg,
    .bento-md,
    .bento-sm,
    .bento-wide {
        grid-column: span 12;
        grid-row: span 1;
    }

    .bento-grid {
        grid-auto-rows: minmax(250px, auto);
    }
}