body {
    --white: #f8f7f6;
    --primary: #dcae7d;
    --primary-light: hsl(31, 58%, 72%);
    --black: #000000;
    --dark: #101010;
    --light: hsl(180, 1%, 64%);
    --lighter: #4e5256;
}

body,
html {
    width: 100vw;
    overflow-x: hidden;
}

.link {
    color: orchid;
}

#hero .link img {
    transition: transform 320ms ease-out;
}

#hero .link img:hover {
    transform: scale(1.1);
}

.flex.reverse {
    flex-direction: row-reverse;
}

.divider {
    width: 60%;
    height: 1px;
    background-color: var(--lighter);
    margin: 4rem auto;
}

.hello .project-img {
    max-height: 90vh;
    max-width: 100vw;
    width: auto;
    height: 100%;
}

.title {
    /* font-family: "Montserrat", serif; */
    text-align: center;
    text-transform: unset;
}

.subtitle {
    width: 100%;
    max-width: 640px;
}

.feature {
    width: 100%;
    padding: 0;
}

.feature .description {
    width: 100%;
    padding: 2rem;
}

.feature .subtitle {
    width: 540px;
    max-width: 100%;
}

.feature li,
.feature h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #161616;
    border-radius: 4px;
    padding: 2px 4px;
    color: #c02841;
}

.static-compare-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: fit-content;
}

.static-compare-container .static-compare-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.static-compare-container .static-compare-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.static-compare-container .label-bar {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    background: rgba(0, 0, 0, 0.16);
    user-select: none;
    pointer-events: none;
}

.static-compare-container .label-bar .label {
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.875rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    opacity: calc(1 - var(--pos));
}

.static-compare-image .img-1 {
    clip-path: inset(0 75% 0 0);
}

.static-compare-image .img-2 {
    clip-path: inset(0 50% 0 25%);
}

.static-compare-image .img-3 {
    clip-path: inset(0 25% 0 50%);
}

.static-compare-image .img-4 {
    clip-path: inset(0 0 0 75%);
}

.compare-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: fit-content;
    touch-action: none;
    /* prevent page scroll while dragging */
    cursor: ew-resize;
}

.compare-container .label-bar {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    background: rgba(0, 0, 0, 0.16);
    user-select: none;
    pointer-events: none;
}

.compare-container .label-bar .label {
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.875rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    opacity: calc(1 - var(--pos));
}

.compare-container .label-bar .label.right {
    opacity: var(--pos);
}

.compare-container .compare-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    /* box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); */
}

.compare-container .compare-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.compare-image .img-front {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.05s linear;
}


.compare-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    background: none;
    appearance: none;
    z-index: 10;
}

/* Slider thumb */
.compare-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1px;
    height: 100%;
    background: white;
    cursor: ew-resize;
}

.compare-slider::-moz-range-thumb {
    width: 1px;
    height: 100%;
    background: white;
    cursor: ew-resize;
}

.process .process-img,
.assets .assets-img {
    max-width: 800px;
    width: 100%;
}

.assets .process-img {
    aspect-ratio: 16/10;
    width: 600px;
    max-width: 100vw;
}

.full-width {
    width: 100%;
    max-width: 100vw;
}

.fg-el {
    background: var(--dark);
    font-size: 8vw;
    line-height: 16vw;
}

@media screen and (min-width: 600px) {
    .fg-el {
        font-size: 8vmax;
        line-height: 14vmax;
    }

    .feature .description {
        width: fit-content;
    }
}

@media (hover: hover) and (pointer: fine) {
    .compare-container {
        cursor: ew-resize;
    }
}