.home-expertise {
    --expertise-text: #f1eff8;
    --expertise-muted: #a29daa;
    --expertise-blue: #629ff3;
    position: relative;
    isolation: isolate;
    padding: 76px 0 100px;
    background: #140f21;
    color: var(--expertise-text);
    letter-spacing: 0;
}

.home-expertise__background {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-expertise__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-expertise__container {
    position: relative;
    z-index: 1;
    width: min(100% - 92px, 1200px);
    margin-inline: auto;
}

.home-expertise__header {
    position: relative;
    text-align: center;
    margin-bottom: 56px;
}

.home-expertise__eyebrow {
    position: absolute;
    inset: -32px 0 auto;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
    font: 800 72px/1.1 var(--font-heading, "Outfit", sans-serif);
    text-transform: uppercase;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.home-expertise__title {
    position: relative;
    margin: 0;
    color: var(--expertise-text);
    font: 700 48px/1.15 var(--font-heading, "Outfit", sans-serif);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.home-expertise__header::after {
    content: "";
    display: block;
    width: 96px;
    height: 3px;
    margin: 22px auto 0;
    border-radius: 2px;
    background: #7376f4;
    box-shadow: 0 0 20px 5px rgba(110, 112, 243, 0.3);
}

.home-expertise__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.home-expertise__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 328px;
    aspect-ratio: 0.79;
    padding: 22px 24px 14px;
    overflow: hidden;
    border: 1px solid #807895;
    border-radius: 28px 0 28px 0;
    background: linear-gradient(135deg, #292337, #171322 65%);
    color: var(--expertise-text);
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(95, 99, 229, 0.13);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.home-expertise__card-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.home-expertise__artwork {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-expertise__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 350ms ease;
}

.home-expertise__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(21, 17, 32, 0.12), transparent 38%, rgba(21, 17, 32, 0.16) 65%, rgba(21, 17, 32, 0.96) 100%);
}

.home-expertise__copy,
.home-expertise__cta {
    position: relative;
    z-index: 2;
}

.home-expertise__card-title {
    margin: 0 0 4px;
    color: inherit;
    font: 700 20px/1.25 "Nunito", sans-serif;
    overflow-wrap: anywhere;
}

.home-expertise__description {
    margin: 0 0 16px;
    color: var(--expertise-muted);
    font: 400 14px/1.3 "Nunito", sans-serif;
    overflow-wrap: anywhere;
}

.home-expertise__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 146px;
    font: 700 14px/1.3 "Nunito", sans-serif;
}

.home-expertise__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1.5px solid var(--expertise-blue);
    border-radius: 50%;
    background: rgba(31, 39, 62, 0.7);
    transition: background 220ms ease;
}

.home-expertise__arrow img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-expertise__card:focus-visible {
    outline: 2px solid #b1cfff;
    outline-offset: 5px;
    border-color: var(--expertise-blue);
    box-shadow: 0 0 28px rgba(97, 126, 248, 0.45);
}

.home-expertise__more {
    margin: 34px auto 0;
    width: calc(100% - 92px);
}

.home-expertise__more-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 26px;
    color: var(--expertise-muted);
    font: 600 14px/1.4 "Nunito", sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.home-expertise__more-title::before,
.home-expertise__more-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.home-expertise__industries {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(190, 183, 207, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.home-expertise__industry {
    position: relative;
    flex: 1 1 25%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.home-expertise__industry + .home-expertise__industry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.home-expertise__industry-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    height: 100%;
    padding: 12px;
    color: var(--expertise-text);
    font: 700 14px/1.3 "Nunito", sans-serif;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.home-expertise__industry-content img {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.home-expertise__industry-content:focus-visible {
    outline: 2px solid var(--expertise-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (hover: hover) {
    .home-expertise__card:hover {
        color: var(--expertise-text);
        border-color: #75abff;
        box-shadow: 0 0 0 1px rgba(112, 112, 251, 0.35), 0 0 30px rgba(80, 111, 248, 0.36);
        transform: translateY(-4px);
    }

    .home-expertise__card:hover .home-expertise__artwork img {
        transform: scale(1.035);
    }

    .home-expertise__card:hover .home-expertise__arrow {
        background: #4564aa;
    }

    a.home-expertise__industry-content:hover {
        color: #aaceff;
        background: rgba(98, 159, 243, 0.08);
    }
}

@media (max-width: 1100px) {
    .home-expertise__container { width: min(100% - 48px, 800px); }
    .home-expertise__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-expertise__card { aspect-ratio: 0.9; }
    .home-expertise__more { width: 100%; }
}

@media (max-width: 600px) {
    .home-expertise { padding: 64px 0; }
    .home-expertise__container { width: min(100% - 40px, 400px); }
    .home-expertise__header { margin-bottom: 36px; }
    .home-expertise__eyebrow { top: -22px; font-size: 42px; }
    .home-expertise__title { font-size: 30px; }
    .home-expertise__header::after { width: 72px; margin-top: 18px; }
    .home-expertise__cards { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .home-expertise__card { min-height: 360px; aspect-ratio: 0.88; padding: 22px 24px 16px; }
    .home-expertise__card-title { font-size: 22px; }
    .home-expertise__description { max-width: 260px; font-size: 15px; }
    .home-expertise__arrow { width: 44px; height: 44px; flex-basis: 44px; }
    .home-expertise__more { margin-top: 32px; }
    .home-expertise__more-title { gap: 10px; margin-bottom: 20px; font-size: 12px; }
    .home-expertise__industry { flex-basis: 50%; }
    .home-expertise__industry:nth-child(odd)::before { display: none; }
    .home-expertise__industry:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .home-expertise__industry-content { min-height: 58px; padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-expertise__card,
    .home-expertise__artwork img,
    .home-expertise__arrow { transition: none; }
    .home-expertise__card:hover,
    .home-expertise__card:hover .home-expertise__artwork img { transform: none; }
}