/* ===== Our Work: industry filters, 6-per-page carousel, mobile details sheet =====
   Loaded after css/style.css. Only adds new pieces; existing card / tab styles are untouched. */
:root {
    --ev-red: #E8192C;
}

/* Industry filter row (sits under the service tabs) */
.ev-industry-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ev-industry-btn {
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(128, 128, 128, .28);
    background: transparent;
    color: inherit;
    border-radius: 50px;
    padding: 8px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    opacity: .78;
    transition: color .2s, background .2s, border-color .2s, opacity .2s;
}

.ev-industry-btn:hover {
    opacity: 1;
    border-color: rgba(232, 25, 44, .45);
}

.ev-industry-btn.active {
    opacity: 1;
    color: var(--ev-red);
    background: rgba(232, 25, 44, .08);
    border-color: rgba(232, 25, 44, .55);
}

.ev-industry-btn:focus-visible {
    outline: 2px solid var(--ev-red);
    outline-offset: 2px;
}

/* Grid page change animation */
.ev-work__grid {
    transition: opacity .28s ease, transform .28s ease;
}

.ev-work__grid.is-leaving {
    opacity: 0;
    transform: translateX(calc(var(--ev-dir, 1) * -24px));
}

.ev-work__grid.is-entering {
    opacity: 0;
    transform: translateX(calc(var(--ev-dir, 1) * 24px));
    transition: none;
}

.ev-work-empty {
    margin: 30px 0 0;
    text-align: center;
    opacity: .7;
    font-size: 15px;
}

/* Carousel controls */
.ev-work-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.ev-work-pager[hidden] {
    display: none;
}

.ev-work-pager__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128, 128, 128, .3);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, opacity .2s;
}

.ev-work-pager__arrow:hover:not(:disabled) {
    background: var(--ev-red);
    border-color: var(--ev-red);
    color: #fff;
}

.ev-work-pager__arrow:disabled {
    opacity: .3;
    cursor: default;
}

.ev-work-pager__dots {
    display: flex;
    gap: 8px;
}

.ev-work-pager__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(128, 128, 128, .35);
    cursor: pointer;
    transition: width .3s, background .3s;
}

.ev-work-pager__dot.active {
    width: 24px;
    background: var(--ev-red);
}

/* ⋯ details button - phones / touch only */
.ev-work-card__more {
    display: none;
}

/* Bottom sheet */
.ev-work-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .3s;
}

.ev-work-sheet-backdrop.is-open {
    opacity: 1;
}

.ev-work-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
    background: #141317;
    color: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .45);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.2, .9, .25, 1), visibility 0s linear .38s;
}

.ev-work-sheet.is-open {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.ev-work-sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .25);
    margin: 0 auto 14px;
}

.ev-work-sheet__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background:red;
    color: #fff;
    font-size: 20px;
    line-height: 34px;
    cursor: pointer;
}

.ev-work-sheet__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #222;
}

.ev-work-sheet__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ev-work-sheet__tags span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(232, 25, 44, .16);
    color: #ff6b77;
}

.ev-work-sheet__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.ev-work-sheet__desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

body.ev-sheet-lock {
    overflow: hidden;
}

/* Phones & touch screens: tap instead of hover */
@media (max-width: 767px),
(hover: none) {
    .ev-work-card {
        -webkit-tap-highlight-color: transparent;
    }

    .ev-work-card .ev-work-card__hover-wrap {
        display: none !important;
    }

    .ev-work-card .ev-work-card__overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .ev-work-card__more {
        display: none !important;
    }
}

/* Phones: filters scroll sideways in one line, 2 columns x 3 rows per page */
@media (max-width: 767px) {
    .ev-industry-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding: 2px 16px 4px;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
    }

    .ev-industry-filters::-webkit-scrollbar {
        display: none;
    }

    .ev-industry-btn {
        flex: 0 0 auto;
        padding: 7px 14px;
        font-size: 13px;
    }

    .ev-work__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .ev-work-pager {
        margin-top: 22px;
    }

    .ev-work-pager__arrow {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ev-work__grid,
    .ev-work-sheet,
    .ev-work-sheet-backdrop {
        transition: none !important;
    }
}