.asm-hero-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.asm-hero-stat-num {
    font-family: var(--rs-ff-title);
    font-size: 48px;
    font-weight: 700;
    color: var(--rs-white);
    line-height: 1;
}
.asm-hero-stat-num small {
    font-size: 22px;
    color: var(--rs-theme-orange);
}
.asm-hero-stat-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 8px;
}
@media only screen and (max-width: 575px) {
    .asm-hero-stats { gap: 30px; margin-top: 30px; padding-top: 25px; }
    .asm-hero-stat-num { font-size: 36px; }
}
.asm-hero-compact .rs-banner-bg-thumb { background-position: center 85%; }
.asm-hero-compact .rs-banner-wrapper { padding: 240px 0 140px; }
@media only screen and (max-width: 1199px) {
    .asm-hero-compact .rs-banner-wrapper { padding: 200px 0 120px; }
}
@media only screen and (max-width: 767px) {
    .asm-hero-compact .rs-banner-wrapper { padding: 160px 0 100px; }
}

.asm-section-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
    align-items: center;
    margin-top: 18px;
    color: var(--rs-grey);
    font-size: 15px;
    line-height: 1.6;
}
.asm-section-summary strong {
    color: var(--rs-black);
    font-weight: 700;
}

.asm-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 36px;
}
.asm-filter-tab {
    background: var(--rs-white);
    border: 1px solid var(--rs-border-secondary);
    color: var(--rs-grey);
    padding: 10px 22px;
    border-radius: 55px;
    font-family: var(--rs-ff-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.asm-filter-tab:hover {
    background: var(--rs-bg-primary);
    color: var(--rs-black);
    border-color: var(--rs-grey);
}
.asm-filter-tab.active,
.asm-filter-tab[aria-pressed="true"] {
    background: var(--rs-theme-orange);
    border-color: var(--rs-theme-orange);
    color: var(--rs-white);
}
.asm-filter-tab:focus-visible {
    outline: 3px solid var(--rs-theme-orange);
    outline-offset: 3px;
}

.asm-filter-tabs.is-inverted .asm-filter-tab {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}
.asm-filter-tabs.is-inverted .asm-filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--rs-white);
    border-color: rgba(255, 255, 255, 0.7);
}
.asm-filter-tabs.is-inverted .asm-filter-tab.active,
.asm-filter-tabs.is-inverted .asm-filter-tab[aria-pressed="true"] {
    background: var(--rs-white);
    border-color: var(--rs-white);
    color: var(--rs-black);
}
.asm-filter-tabs.is-inverted .asm-filter-tab:focus-visible {
    outline: 3px solid var(--rs-white);
    outline-offset: 3px;
}

.asm-card {
    position: relative;
    background: var(--rs-white);
    border: 1px solid var(--rs-border-primary);
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}
.asm-card:hover,
.asm-card:focus-visible {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.08);
}
.asm-card:focus-visible {
    outline: 3px solid var(--rs-theme-orange);
    outline-offset: 3px;
}
.asm-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
}
.asm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.asm-card:hover .asm-card-thumb img,
.asm-card:focus-visible .asm-card-thumb img {
    transform: scale(1.06);
}
.asm-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
    pointer-events: none;
}
.asm-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 55px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1;
    color: var(--rs-white);
    background: var(--rs-theme-orange);
    transition: background-color 0.3s ease;
}
.asm-badge-podium,
.asm-badge-garden,
.asm-badge-slab,
.asm-badge-student,
.asm-badge-remodel,
.asm-badge-healthcare,
.asm-badge-hospitality,
.asm-badge-education,
.asm-badge-commercial,
.asm-badge-industrial,
.asm-badge-logistics { background: var(--rs-theme-orange); }

.asm-card-meta-overlay {
    position: absolute;
    bottom: 14px;
    right: 16px;
    z-index: 2;
    text-align: right;
    color: var(--rs-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.asm-card-meta-overlay .num {
    font-family: var(--rs-ff-title);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}
.asm-card-meta-overlay .label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 1;
}
.asm-card-meta-overlay.is-text .num {
    font-family: var(--rs-ff-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
    max-width: 180px;
    margin-left: auto;
}

.asm-card-content {
    padding: 22px 22px 22px;
    background: var(--rs-white);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.asm-card-title {
    font-family: var(--rs-ff-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--rs-black);
    margin: 0 0 10px;
    line-height: 1.25;
    transition: color 0.3s;
}
.asm-card:hover .asm-card-title,
.asm-card:focus-visible .asm-card-title {
    color: var(--rs-theme-orange);
}
.asm-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--rs-grey);
    line-height: 1.5;
}
.asm-card-meta i {
    font-size: 15px;
    color: var(--rs-theme-orange);
    flex-shrink: 0;
}
.asm-card-gc {
    font-size: 14px;
    color: var(--rs-grey);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rs-border-primary);
    line-height: 1.5;
}
.asm-card-gc strong {
    color: var(--rs-black);
    font-weight: 700;
}
.asm-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rs-theme-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.asm-card-cta i {
    font-size: 16px;
    transition: transform 0.25s ease;
}
.asm-card:hover .asm-card-cta i,
.asm-card:focus-visible .asm-card-cta i {
    transform: translateX(4px);
}

.asm-projects-embed .asm-card-thumb { aspect-ratio: 16 / 11; }

.asm-grid-count {
    font-size: 14px;
    color: var(--rs-grey);
    margin-top: 28px;
    text-align: right;
}
.asm-grid-count strong {
    color: var(--rs-black);
    font-weight: 700;
}
.asm-projects-cta-row {
    margin-top: 36px;
    text-align: center;
}

.asm-section-on-dark .asm-card {
    background: var(--rs-white);
}
.asm-section-on-dark .asm-grid-count {
    color: rgba(255, 255, 255, 0.85);
}
.asm-section-on-dark .asm-grid-count strong {
    color: var(--rs-white);
}
.asm-section-on-dark .asm-section-summary {
    color: rgba(255, 255, 255, 0.85);
}
.asm-section-on-dark .asm-section-summary strong {
    color: var(--rs-white);
}

.asm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.asm-modal-overlay.active {
    display: flex;
    animation: asmFadeIn 0.25s ease;
}
@keyframes asmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.asm-modal {
    background: var(--rs-white);
    border-radius: 10px;
    max-width: 1080px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    animation: asmModalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}
@keyframes asmModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 991px) {
    .asm-modal {
        grid-template-columns: 1fr;
        max-height: 94vh;
        overflow-y: auto;
    }
}

.asm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}
.asm-modal-close:hover {
    background: var(--rs-theme-orange);
    transform: rotate(90deg);
}
.asm-modal-close:focus-visible {
    outline: 3px solid var(--rs-theme-orange);
    outline-offset: 2px;
}

.asm-modal-gallery {
    position: relative;
    background: #111;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.asm-gallery-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 360px;
}
@media (max-width: 991px) {
    .asm-gallery-stage { min-height: 260px; aspect-ratio: 16 / 10; }
}
.asm-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.asm-modal-badge-floating {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
}
.asm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}
.asm-gallery-nav:hover {
    background: var(--rs-theme-orange);
}
.asm-gallery-nav:focus-visible {
    outline: 3px solid var(--rs-theme-orange);
    outline-offset: 2px;
}
.asm-gallery-prev { left: 14px; }
.asm-gallery-next { right: 14px; }
.asm-modal.has-gallery .asm-gallery-nav { display: flex; }

.asm-gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: none;
}
.asm-modal.has-gallery .asm-gallery-counter { display: block; }

.asm-gallery-thumbs {
    display: none;
    gap: 8px;
    padding: 10px;
    background: #0d0d0d;
    overflow-x: auto;
}
.asm-modal.has-gallery .asm-gallery-thumbs { display: flex; }
.asm-gallery-thumb {
    flex: 0 0 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: none;
    padding: 0;
    transition: border-color 0.2s;
}
.asm-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asm-gallery-thumb.active { border-color: var(--rs-theme-orange); }
.asm-gallery-thumb:focus-visible { outline: 2px solid var(--rs-theme-orange); outline-offset: 2px; }

.asm-modal-body {
    padding: 36px 36px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
@media (max-width: 991px) {
    .asm-modal-body { padding: 28px 24px; }
}

.asm-modal-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 55px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1;
    color: var(--rs-white);
    background: var(--rs-theme-orange);
    margin-bottom: 14px;
}

.asm-modal-title {
    font-family: var(--rs-ff-title);
    font-size: 30px;
    font-weight: 700;
    color: var(--rs-black);
    margin: 0 0 8px;
    line-height: 1.2;
}
@media (max-width: 575px) {
    .asm-modal-title { font-size: 24px; }
}
.asm-modal-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--rs-grey);
    line-height: 1.5;
}
.asm-modal-location i {
    color: var(--rs-theme-orange);
    font-size: 17px;
}

.asm-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 20px;
    background: var(--rs-bg-primary);
    border-radius: 8px;
}
.asm-modal-stat-num {
    font-family: var(--rs-ff-title);
    font-size: 26px;
    font-weight: 700;
    color: var(--rs-theme-orange);
    line-height: 1.1;
    word-break: break-word;
}
.asm-modal-stat-num.is-text {
    font-size: 16px;
    color: var(--rs-black);
}
.asm-modal-stat-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--rs-grey);
    margin-top: 6px;
    line-height: 1.3;
}

.asm-modal-overview {
    font-size: 16px;
    line-height: 1.7;
    color: #2c2d2e;
}

.asm-modal-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.asm-modal-cta .rs-btn { font-size: 14px; }

body.asm-modal-open { overflow: hidden; }

@media (max-width: 767px) {
    .asm-filter-tabs {
        gap: 8px;
        margin: 24px 0 28px;
    }
    .asm-filter-tab {
        padding: 9px 16px;
        font-size: 13px;
    }
    .asm-section-summary { font-size: 14px; gap: 14px 22px; }
    .asm-grid-count { font-size: 13px; text-align: left; margin-top: 22px; }
    .asm-card-content { padding: 18px 18px; }
    .asm-card-title { font-size: 18px; }

    .asm-modal-overlay {
        padding: 0;
        display: block;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .asm-modal {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .asm-modal-overlay.active { display: block; }
    .asm-modal-body {
        padding: 22px 18px 28px;
        gap: 16px;
        min-width: 0;
    }
    .asm-modal-gallery {
        min-height: 0;
    }
    .asm-gallery-stage {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .asm-modal-title {
        font-size: 22px;
        word-break: break-word;
    }
    .asm-modal-location {
        flex-wrap: wrap;
    }
    .asm-modal-stats {
        padding: 16px;
        gap: 14px;
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }
    .asm-modal-stat-num { font-size: 22px; }
    .asm-modal-stat-num.is-text { font-size: 14px; }
    .asm-modal-overview { font-size: 15px; line-height: 1.6; }
    .asm-modal-overview, .asm-modal-stat-num.is-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .asm-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    .asm-gallery-nav { width: 38px; height: 38px; font-size: 18px; }
    .asm-card-cta { font-size: 13px; }
    .asm-modal-cta { width: 100%; }
    .asm-modal-cta .rs-btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .asm-card-meta-overlay .num { font-size: 26px; }
    .asm-card-meta-overlay.is-text .num { font-size: 12px; max-width: 140px; }
    .asm-card-badge { font-size: 13px; padding: 5px 12px; }
    .asm-modal-stats { grid-template-columns: 1fr; }
}

@media (hover: none) {
    .asm-filter-tab { min-height: 44px; }
    .asm-card { -webkit-tap-highlight-color: rgba(208, 50, 56, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
    .asm-card,
    .asm-card-thumb img,
    .asm-card-cta i,
    .asm-modal,
    .asm-modal-overlay,
    .asm-filter-tab,
    .asm-modal-close { animation: none !important; transition: none !important; }
}
