*,
*::before,
*::after,
*:before,
*:after,
*:focus,
*:active {
    box-sizing: border-box;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-interpolation-mode: bicubic;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: $baseFontSize;
}

*:focus {}

body {
    font-family: $fontFamily;
    -moz-osx-font-smoothing: grayscale;
    /*(For Firefox)*/
    -webkit-font-smoothing: antialiased;
    /*(For Chrome and Safari)*/
    overflow-x: clip;

    &.disable-scroll {
        overflow-y: hidden;
    }
}

.site-container {
    min-height: 100vh;
    min-height: 100svh;
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.visually-hidden {
    display: none;
}

.container {
    width: 100%;
    max-width: $containerWidth;
    margin-left: auto;
    margin-right: auto;
}



// ANIMATIONS

.ls-appear {
    transform: translateY(4rem);
    opacity: 0;
    transition: opacity 0.8s linear, transform 1s $ExpoEaseOut;
    will-change: transform, opacity;

    &.is-inview {
        transform: translateY(0);
        opacity: 1;
    }

    &--rtl {
        transform: translateX(40vw);

        &.is-inview {
            transform: translateX(0);
        }
    }
}

.ls-opacity {
    opacity: 0;
    transition: opacity 0.4s linear;
    will-change: opacity;

    &.is-inview {
        opacity: 1;
    }
}

.ls-cover {
    width: 100%;
    transition: clip-path 1s $ExpoEaseOut;

    &.is-inview {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

        .imageRender_cover {
            transform: scale(1);
        }
    }

    &--long {
        transition: clip-path 1.6s $ExpoEaseOut;
    }

    &--rtl {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }

    &--ltr {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    &--btt {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }

    &--ttb {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .imageRender_cover {
        transform: scale(1.3);
        transition: transform 1.6s $ExpoEaseOut;
        will-change: transform;
    }
}

@for $i from 1 through 10 {
    .ls-delay--#{$i} {
        transition-delay: ($i * 0.15) * 1s;
    }
}

/* a11y */
.swiper .swiper-notification {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    z-index: -1000;
}

.u-underline {
    position: relative;
    text-decoration: none;

    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background: currentColor;
        top: 100%;
        left: 0;
        pointer-events: none;
        transform-origin: 100% 50%;
        transform: scale3d(0, 1, 1);
        transition: transform 0.4s $ExpoEaseOut;
    }

    &:hover::before,
    &.active::before {
        transform-origin: 0% 50%;
        transform: scale3d(1, 1, 1);
    }
}



u-appear {
    transform: translateY(4rem);
    opacity: 0;
    transition: opacity 0.4s linear, transform 1s $ExpoEaseOut;
    will-change: transform, opacity;

    &.is-inview {
        transform: translateY(0);
        opacity: 1;
    }
}

.u-opacity {
    opacity: 0;
    transition: opacity 0.25s linear;

    &.is-inview {
        opacity: 1;
    }
}

.u-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: clip-path 1.2s $ExpoEaseOut;
    will-change: clip-path;

    &.is-inview {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

        img {
            transform: scale(1) rotate(0deg);
        }
    }

    &--rtl {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }

    &--ltr {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }

    &--btt {
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }

    &--ttb {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    img {
        // position: absolute;
        // top: 0;
        // left: 0;
        // width: 100%;
        // height: 100%;
        // object-fit: cover;
        // object-position: center;
        transform: scale(1.3) rotate(3deg);
        transition: transform 1.6s $ExpoEaseOut;
    }
}

@for $i from 1 through 10 {
    .-delay--#{$i} {
        transition-delay: ($i * 0.15) * 1s;
    }
}

strong {
    color: $orange;
}