/* The Home industries showcase can also be placed on service detail pages. */
.home-industries {
    padding-block: clamp(48px, 6vw, 80px);
    background: var(--homepage-industries-background, var(--site-section-surface, #f3f9fd));
}

.home-industries__header {
    width: 100%;
    max-width: none;
    margin: 0 auto 26px;
    text-align: center;
}

.home-industries__header h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.home-industries__description-intro {
    max-width: none;
    margin: 0;
    color: #596c7e;
    font-size: 0.94rem;
    font-weight: 400;
}

.home-industries .home-industries__header > .home-industries__description-intro {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
}

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

.home-industries__card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1.42;
    border-radius: 14px;
    background: #173451;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 5px 16px rgba(23, 52, 81, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-industries__card:hover,
.home-industries__card:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(23, 52, 81, 0.2);
}

.home-industries__card:focus-visible {
    outline: 3px solid #1599c5;
    outline-offset: 3px;
}

.home-industries__card img,
.home-industries__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-industries__card img {
    object-fit: cover;
    transition: transform 350ms ease;
}

.home-industries__card:hover img,
.home-industries__card:focus-visible img {
    transform: scale(1.045);
}

.home-industries__shade {
    z-index: 0;
    background: linear-gradient(180deg, rgba(9, 28, 47, 0.02) 12%, rgba(8, 26, 46, 0.18) 42%, rgba(7, 19, 42, 0.94) 100%);
}

.home-industries__copy {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 15px;
    left: 16px;
    display: grid;
    gap: 5px;
}

.home-industries__title {
    font-size: clamp(0.92rem, 1.15vw, 1.12rem);
    font-weight: 720;
    line-height: 1.24;
    text-transform: none;
}

.home-industries__description {
    display: -webkit-box;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    font-size: clamp(0.72rem, 0.9vw, 0.82rem);
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.home-industries__card:hover .home-industries__description,
.home-industries__card:focus-visible .home-industries__description {
    max-height: 3.55em;
    opacity: 1;
    transform: translateY(0);
}

.home-industries .home-followup__actions {
    display: flex;
    justify-content: center;
    margin-block-start: 28px;
}

@media (max-width: 991.98px) {
    .home-industries__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .home-industries__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home-industries__card { aspect-ratio: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
    .home-industries__card,
    .home-industries__card img,
    .home-industries__description { transition-duration: 0.01ms; }
}
