/* =========================================
   VOXELMARKET — PROCESS
========================================= */

.vm-process {
    --vm-process-red: #e30613;
    --vm-process-text: #121212;
    --vm-process-muted: #737373;
    --vm-process-line: #e7e7e7;
    --vm-process-background: #ffffff;

    position: relative;
    width: 100%;
	overflow: clip;

    padding: 0 80px 80px;

    background: var(--vm-process-background);
    color: var(--vm-process-text);
}


/* =========================================
   NAVIGATION
========================================= */

.vm-process__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: min(78%, 980px);

    margin: 0 auto 28px;
}

.vm-process__tab {
    appearance: none;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    padding: 0 24px 20px;

    border: 0;
    border-right: 1px solid var(--vm-process-line);

    background: transparent;
    color: #666;

    font: inherit;
    text-align: center;

    cursor: pointer;
}

.vm-process__tab:last-child {
    border-right: 0;
}

.vm-process__tab::after {
    content: "";

    position: absolute;
    bottom: 7px;
    left: 50%;

    width: 0;
    height: 2px;

    background: var(--vm-process-red);

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

.vm-process__number {
    display: block;

    margin-bottom: 11px;

    font-size: 26px;
    line-height: 1;
    font-weight: 500;
}

.vm-process__label {
    display: block;

    font-size: 13px;
    line-height: 1;
    font-weight: 400;

    text-transform: uppercase;
}

.vm-process__tab.is-active {
    color: var(--vm-process-text);
}

.vm-process__tab.is-active .vm-process__number {
    color: var(--vm-process-red);
}

.vm-process__tab.is-active::after {
    width: 38px;
}


/* =========================================
   SLIDER
========================================= */

.vm-process__slider {
    --vm-process-slide-gap: 16px;
    --vm-process-slide-width: 76%;

    position: relative;

    width: 100%;

    overflow: visible;

    outline: none;
}

.vm-process__track {
    display: flex;
    gap: var(--vm-process-slide-gap);

    width: 100%;

    transform: translateX(
        calc(
            var(--vm-process-index, 0)
            * (
                var(--vm-process-slide-width)
                + var(--vm-process-slide-gap)
            )
            * -1
        )
    );

    transition: transform 0.55s cubic-bezier(
        0.22,
        1,
        0.36,
        1
    );

    will-change: transform;
}

.vm-process__slide {
    position: relative;

    flex:
        0
        0
        var(--vm-process-slide-width);

    height: 275px;

    overflow: hidden;

    border-radius: 9px;

    opacity: 0.5;

    transform: scale(0.985);

    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.vm-process__slide.is-active {
    opacity: 1;

    transform: scale(1);
}

.vm-process__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.55s ease;
}

.vm-process__slide.is-active:hover .vm-process__image {
    transform: scale(1.025);
}


/* =========================================
   CONTROLS
========================================= */

.vm-process__controls {
    position: absolute;

    right: 5px;
    bottom: -108px;

    display: flex;
    gap: 14px;

    z-index: 10;
}

.vm-process__arrow {
    appearance: none;

    width: 54px;
    height: 54px;

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

    padding: 0;

    border: 1px solid #bbb;
    border-radius: 50%;

    background: #fff;
    color: #111;

    font: inherit;
    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.vm-process__arrow:hover {
    border-color: #111;

    background: #111;
    color: #fff;
}

.vm-process__arrow:active {
    transform: scale(0.96);
}


/* =========================================
   PAGINATION
========================================= */

.vm-process__pagination {
    position: absolute;

    left: 50%;
    bottom: -17px;

    width: 140px;
    height: 2px;

    background: #d7d7d7;

    transform: translateX(-50%);
}

.vm-process__pagination::before {
    content: "";

    position: absolute;

    inset: 0 auto 0 0;

    width: var(--vm-process-progress, 25%);

    background: var(--vm-process-red);

    transition: width 0.35s ease;
}


/* =========================================
   DETAILS
========================================= */

.vm-process__details {
    position: relative;

    min-height: 120px;

    margin-top: 20px;
}

.vm-process__detail {
    position: relative;

    min-height: 120px;

    padding: 10px 150px 0 62px;
}

.vm-process__detail[hidden] {
    display: none !important;
}

.vm-process__detail.is-active {
    animation: vm-process-detail-in 0.35s ease both;
}

.vm-process__detail::before {
    content: "";

    position: absolute;

    top: 38px;
    left: 20px;

    width: 1px;
    height: 60px;

    background: var(--vm-process-red);
}

.vm-process__detail::after {
    content: "";

    position: absolute;

    top: 95px;
    left: 17px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--vm-process-red);
}

.vm-process__icon {
    position: absolute;

    top: 0;
    left: 0;

    width: 42px;
    height: 42px;

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

    border: 1px solid #f0c8ca;
    border-radius: 10px;

    background: #fff;
    color: var(--vm-process-red);

    font-size: 19px;
}

.vm-process__copy {
    position: relative;

    z-index: 2;
}

.vm-process__detail-title {
    margin: 0 0 7px;

    color: #111;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.vm-process__detail-text {
    max-width: 480px;

    margin: 0;

    color: var(--vm-process-muted);

    font-size: 15px;
    line-height: 1.5;
}

.vm-process__counter {
    position: absolute;

    top: 25px;
    right: 10px;

    z-index: 2;

    color: #777;

    font-size: 17px;
    line-height: 1;
}

.vm-process__counter-current {
    color: var(--vm-process-red);
    font-weight: 600;
}

.vm-process__ghost-number {
    position: absolute;

    left: 46px;
    top: 44px;

    z-index: 0;

    color: rgba(18, 18, 18, 0.045);

    font-size: 145px;
    line-height: 0.8;
    font-weight: 500;

    pointer-events: none;
    user-select: none;
}


/* =========================================
   ANIMATION
========================================= */

@keyframes vm-process-detail-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .vm-process {
        padding: 0 30px 20px;
    }


    /* NAV */

    .vm-process__nav {
        width: 100%;

        margin: 0 0 20px;
    }

    .vm-process__tab {
        padding: 0 6px 16px;
    }

    .vm-process__number {
        margin-bottom: 9px;

        font-size: 22px;
    }

    .vm-process__label {
        font-size: 10px;
    }

    .vm-process__tab::after {
        bottom: 4px;
    }

    .vm-process__tab.is-active::after {
        width: 34px;
    }


/* SLIDER */

.vm-process__slider {
    --vm-process-slide-gap: 10px;
    --vm-process-slide-width: 78%;
}

.vm-process__slide {
    height: 198px;

    border-radius: 8px;

    transform: scale(0.985);
}

.vm-process__slide.is-active {
    transform: scale(1);
}


    /* CONTROLS */

    .vm-process__controls {
        right: -10px;
        bottom: -23px;

        gap: 2px;
    }

    .vm-process__arrow {
        width: 46px;
        height: 46px;

        font-size: 18px;

        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }


    /* PAGINATION */

    .vm-process__pagination {
        bottom: -13px;

        width: 92px;
    }


    /* DETAILS */

    .vm-process__details {
        min-height: 125px;

        margin-top: 36px;
    }

    .vm-process__detail {
        min-height: 125px;

        padding: 5px 62px 0 54px;
    }

    .vm-process__icon {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .vm-process__detail::before {
        top: 36px;
        left: 18px;

        height: 58px;
    }

    .vm-process__detail::after {
        top: 91px;
        left: 15px;

        width: 7px;
        height: 7px;
    }

    .vm-process__detail-title {
        margin-bottom: 6px;

        font-size: 15px;
        line-height: 1.3;
    }

    .vm-process__detail-text {
        max-width: 320px;

        font-size: 12px;
        line-height: 1.5;
    }

    .vm-process__counter {
        top: 49px;
        right: 0;

        font-size: 13px;
    }

    .vm-process__ghost-number {
        left: 42px;
        top: 43px;

        font-size: 112px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .vm-process__slide,
    .vm-process__image,
    .vm-process__arrow {
        transition: none;
    }

    .vm-process__detail.is-active {
        animation: none;
    }
}