.home-service-stack.is-stacked {
    display: block;
    position: relative;
}

.home-service-stack.is-stacked > .home-service-stack__card {
    position: absolute;
    inset-inline: 0;
    top: var(--home-service-flow-top);
    width: 100%;
    z-index: var(--home-service-layer);
    transform: translate3d(0, var(--home-service-shift, 0px), 0);
}

.home-service-stack .home-service-card {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e6e8eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(17 24 39 / 8%);
}

.home-service-card__visual {
    position: relative;
    min-height: clamp(230px, 15vw, 330px);
    overflow: hidden;
    border-radius: 14px;
    background: #e9eaeb;
}

.home-service-card__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-service-card__icon {
    position: absolute;
    top: 14px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.home-service-card__icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.home-service-card__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: clamp(20px, 2vw, 30px);
}

.home-service-card__content::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 7px;
    border-radius: 7px;
    background: #e5410b;
    content: '';
}

.home-service-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.home-service-card__heading h2 {
    margin: 0;
    color: #181d27;
    font-size: clamp(27px, 2.7vw, 48px);
    font-weight: 700;
    line-height: 1.12;
}

.home-service-card__arrow {
    display: grid;
    flex: 0 0 54px;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: #d73508;
    color: #fff;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.home-service-card__arrow:hover,
.home-service-card__arrow:focus-visible {
    background: #ac2b08;
    transform: translateX(3px);
}

.home-service-card__feature-label {
    margin-top: 14px;
    color: #d73508;
    font-size: 18px;
    font-weight: 600;
}

.home-service-card__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.home-service-card__features > * {
    margin-block: 0 !important;
}

.home-service-card__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgb(17 24 39 / 3%);
    color: #242936;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.35;
}

.home-service-card__feature i {
    flex: 0 0 20px;
}

@media (min-width: 901px) and (max-height: 780px) {
    .home-service-card__content {
        padding-block: 14px;
    }

    .home-service-card__feature-label {
        margin-top: 10px;
    }

    .home-service-card__features {
        gap: 8px;
        margin-top: 8px;
    }

    .home-service-card__feature {
        min-height: 48px;
    }
}

@media (max-width: 900px) {
    .home-service-stack .home-service-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-service-card__visual {
        min-height: 220px;
        aspect-ratio: 2.1;
    }

    .home-service-card__content {
        padding: 26px 20px 18px;
    }

    .home-service-card__content::before {
        inset-block: 0 auto;
        inset-inline: 0;
        width: auto;
        height: 6px;
    }
}

@media (max-width: 600px) {
    .home-service-card__features {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-service-card__icon {
        top: 12px;
        left: 12px;
        width: 52px;
        height: 52px;
    }

    .home-service-card__arrow {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }
}

.home-animated-label {
    position: relative;
    display: block;
    height: 1.5em;
    overflow: hidden;
    line-height: 1.5;
    white-space: nowrap;
}

.home-animated-label__current,
.home-animated-label__next {
    transition: transform 1.125s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-animated-label__current {
    display: block;
}

.home-animated-label__next {
    position: absolute;
    inset: 0;
    transform: translateY(100%);
}

.home-animated-cta:hover .home-animated-label__current,
.home-animated-cta:focus-visible .home-animated-label__current {
    transform: translateY(-100%);
}

.home-animated-cta:hover .home-animated-label__next,
.home-animated-cta:focus-visible .home-animated-label__next {
    transform: translateY(0);
}

.home-animated-arrow {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

.home-animated-arrow__current,
.home-animated-arrow__next {
    transition: transform 1.125s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-animated-arrow__current {
    display: block;
}

.home-animated-arrow__next {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
}

.home-animated-cta:hover .home-animated-arrow__current,
.home-animated-cta:focus-visible .home-animated-arrow__current {
    transform: translateX(-100%);
}

.home-animated-cta:hover .home-animated-arrow__next,
.home-animated-cta:focus-visible .home-animated-arrow__next {
    transform: translateX(0);
}

a.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden,
button.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden {
    height: 1.5em;
    line-height: 1.5;
}

a.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child,
button.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child {
    display: block;
    transform: translateY(0) !important;
    translate: none !important;
    transition: transform 1.125s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

a.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child,
button.group > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child {
    position: absolute;
    inset: 0 !important;
    transform: translateY(100%) !important;
    translate: none !important;
    transition: transform 1.125s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

a.group:hover > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child,
a.group:focus-visible > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child,
button.group:hover > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child,
button.group:focus-visible > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:first-child {
    transform: translateY(-100%) !important;
}

a.group:hover > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child,
a.group:focus-visible > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child,
button.group:hover > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child,
button.group:focus-visible > span[class*="py-3.75"] > span.relative.block.overflow-hidden > span:last-child {
    transform: translateY(0) !important;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(210px, 15vw, 260px) auto 1fr;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #364354;
    border-radius: 22px;
    background: #182231;
    box-shadow: 0 18px 34px rgb(0 0 0 / 18%);
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge):hover {
    border-color: #e5410b;
    box-shadow: 0 22px 42px rgb(0 0 0 / 28%);
    transform: translateY(-4px);
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > a {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    display: block;
    min-width: 0;
    overflow: hidden;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgb(7 12 19 / 90%) 100%);
    content: '';
    pointer-events: none;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > a img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 350ms ease;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge):hover > a img {
    transform: scale(1.04);
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > h3 {
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    max-width: 100%;
    margin: 0 18px 19px;
    padding-left: 13px;
    border-left: 3px solid #ee4b17;
    color: #fff;
    font-size: clamp(23px, 1.55vw, 29px);
    font-weight: 650;
    line-height: 1.17;
    overflow-wrap: anywhere;
    pointer-events: none;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > p {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    padding: 21px 21px 18px;
    color: #c5cfdb;
    font-size: 16px;
    line-height: 1.55;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > .divide-y {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    min-width: 0;
    margin: 0 16px 16px;
    padding: 2px 13px;
    border: 1px solid #303e50;
    border-radius: 14px;
    background: #101925;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > .divide-y > div {
    display: grid;
    grid-template-columns: minmax(78px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 13px 0;
    border-color: #2c394a;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > .divide-y > div > div:first-child {
    color: #aebdce;
    line-height: 1.45;
}

[data-cms-collection="products"] > div:not(.cms-collection-badge) > .divide-y > div > div:last-child {
    min-width: 0;
    color: #f5f7fa;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: right;
}

@media (max-width: 600px) {
    [data-cms-collection="products"] > div:not(.cms-collection-badge) {
        grid-template-rows: 220px auto 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-cms-collection="products"] > div:not(.cms-collection-badge),
    [data-cms-collection="products"] > div:not(.cms-collection-badge) > a img {
        transition: none;
    }
}

@media (max-width: 1023px) {
    .page-hero-header-clearance {
        padding-top: 136px;
    }

    #mobile-menu {
        top: 110px;
        height: auto;
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
    }

    #mobile-menu > div {
        max-height: calc(100vh - 110px);
        max-height: calc(100dvh - 110px);
    }
}

#team-section {
    scroll-margin-top: 110px;
}

.product-gallery-dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 1100px);
    max-width: none;
    max-height: 90vh;
    padding: 16px;
    margin: auto;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #111827;
    color: #fff;
}

.product-gallery-dialog::backdrop {
    background: rgb(0 0 0 / 85%);
}

.product-gallery-dialog__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-gallery-dialog__image {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 72px);
    margin: 0 auto;
    object-fit: contain;
}

.product-gallery-dialog__caption {
    margin: 12px 50px 0 0;
    font-size: 16px;
}
