* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
}

body {
    overflow: hidden;
}

.landing {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.hero {
    width: 100%;
    height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero img {
    display: block;

    height: 64vh;
    width: auto;

    max-width: 96vw;
    object-fit: contain;
}

.services-wrap {
    position: relative;
    width: 100%;
    height: 40vh;
}

.services {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    align-items: center;
    justify-items: center;

    gap: clamp(8px, 1.5vw, 24px);
    padding: 0 2vw 2vh;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    text-decoration: none;
    cursor: pointer;
}

.service-link img {
    display: block;

    height: 36vh;
    width: auto;

    max-width: 30vw;
    object-fit: contain;

    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.service-link:hover img,
.service-link:focus-visible img {
    transform: scale(1.045);

    filter:
        brightness(1.18)
        contrast(1.06)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.24))
        drop-shadow(0 0 24px rgba(255, 255, 255, 0.12));
}

.service-link:active img {
    transform: scale(1.015);
}

.service-link:focus-visible {
    outline: none;
}

.carousel-arrow {
    display: none;
}

@media (max-aspect-ratio: 4/3) and (min-width: 701px) {
    .hero img {
        height: auto;
        width: min(64vh, 90vw);
        max-width: 90vw;
    }

    .service-link img {
        height: auto;
        width: min(36vh, 29vw);
        max-width: 29vw;
    }
}

@media (max-width: 700px) {
    .hero {
        height: 55vh;
    }

    .hero img {
        height: auto;
        width: 88vw;

        max-width: 88vw;
        max-height: 52vh;
    }

    .services-wrap {
        height: 45vh;
    }

    .services {
        width: 100%;
        height: 100%;

        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 78vw;
        grid-template-columns: none;

        gap: 5vw;
        padding: 0;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 11vw;

        justify-items: stretch;
        align-items: center;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .services::-webkit-scrollbar {
        display: none;
    }

    .service-link {
        width: 78vw;
        height: 100%;

        scroll-snap-align: center;
        flex: 0 0 auto;
    }

    .service-link:first-child {
        margin-left: 11vw;
    }

    .service-link:last-child {
        margin-right: 11vw;
    }

    .service-link img {
        width: 72vw;
        height: auto;

        max-width: 72vw;
        max-height: 39vh;
    }

    .service-link:hover img {
        transform: none;
        filter: none;
    }

    .service-link:active img {
        transform: scale(0.98);
        filter: brightness(1.15);
    }

    .carousel-arrow {
        display: flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 50%;
        z-index: 20;

        width: 42px;
        height: 62px;

        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 8px;

        background: rgba(0, 0, 0, 0.58);
        color: rgba(255, 255, 255, 0.90);

        font-size: 30px;
        line-height: 1;

        transform: translateY(-50%);
        cursor: pointer;

        box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);

        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .carousel-prev {
        left: 6px;
    }

    .carousel-next {
        right: 6px;
    }

    .carousel-arrow:active {
        background: rgba(70, 70, 70, 0.75);
        transform: translateY(-50%) scale(0.94);
    }
}
