@font-face {
    font-family: 'Canela';
    src: url('assets/fonts/Canela-Thin-Web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Atlas Grotesk';
    src: url('assets/fonts/Atlas Grotesk-Light-Web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    /* border: 0.5px solid hotpink; */
}

/* html,
body {
    overscroll-behavior: none;
} */

html {
    scroll-behavior: smooth;
}


@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    background: #FFFCFC;
    font-size: 15px;
    line-height: 1.5;
    max-width: 100vw;
    /* overflow-x: hidden; */
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* text-wrap: balance; */
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

#root,
#__next {
    isolation: isolate;
}

a {
    text-decoration: none;
    color: #808080;
    font-family: 'Atlas Grotesk', sans-serif;
    font-weight: 400;
    padding: 4px 0;
    /* border-bottom: 1px solid #80808000; */
    will-change: border-bottom;
    transition: border-bottom ease .5s,
        color ease .5s;
}

a:hover {
    color: #000;
    /* border-bottom: 1px solid #80808050; */
}

footer {
    position: absolute;
    display: flex;
    align-items: end;
    top: 130vh;
    /* justify-content: space-between; */
    /* top: calc(100vh + 200px); */
    /* top: calc(120svh + 50px); */
    /* height: 120px; */
    left: 0;
    width: 100%;
    /* margin-bottom: 50px; */
    color: #808080;
    gap: 60px;
    font-family: 'Atlas Grotesk', sans-serif;
}

footer span {
    position: absolute;
    display: flex;
    /* top: calc(100vh + 50px); */
    /* height: 180px; */
    left: 60px;
    margin-bottom: 80px;
    /* columns: 2; */
    gap: 60px;
    font-family: 'Atlas Grotesk', sans-serif;
}

footer .spacer {
    height: 10px;
}

.copyright {
    position: absolute;
    height: 20px;
    right: 60px;
    bottom: 30px;
    height: 20px;
    /* text-align: right; */
    font-family: 'Atlas Grotesk', sans-serif;
    font-size: 15px;
    color: #808080;
}

h1 {
    font-family: 'Canela', sans-serif;
    /* font-size: clamp([value-min], [value-preferred], [value-max]); */
    font-size: clamp(40px, 3vw, 55px);
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 1%;
    /* width: 15ch; */
    /* width: 100%; */
    z-index: 10;
}

h2 {
    /* display: none; */
    font-family: 'Canela', sans-serif;
    /* font-size: 30px; */
    /* font-size: clamp([value-min], [value-preferred], [value-max]); */
    font-size: clamp(25px, 2vw, 30px);
    line-height: 100%;
    font-weight: 400;
    color: #808080;
    z-index: 10;
}

.logo {
    position: fixed;
    top: 30px;
    left: 60px;
    width: 145px;
    opacity: 0;
    transition: all ease .5s;
}

nav {
    position: absolute;
    display: flex;
    /* justify-content: flex-end; */
    align-items: center;
    top: 0;
    left: 0;
    height: 125px;
    width: 100%;
    justify-content: end;
    padding-right: 60px;
    /* font-size: 1.42rem; */
}

nav .links {
    width: fit-content;
    height: fit-content;
    display: flex;
    gap: 30px;
    font-size: 15px;
}

.welcome {
    position: absolute;
    top: 42vh;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-wrapper {
    position: fixed;
    top: 125px;
    right: 0px;
    overflow: hidden;
    width: 33vw;
    aspect-ratio: 4/5;
    /* height: 600px; */
    /* height: calc(100vh - 250px); */
    opacity: 0;
    /* min-height: calc(100vh - 200px); */
    /* background: rgb(178, 178, 178); */
    /* background-image: url("assets/video-poster.png"); */
}

video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 700px) {
    body {
        font-size: 13px !important;
    }

    .welcome {
        position: relative;
        top: calc(100svh - 119px);
        /* top: 820px; */
        /* top: 620px; */
        left: 30px;
        width: 320px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        position: absolute;
        top: 30px;
        left: 30px;
        width: 100px;
    }

    .video-wrapper {
        position: absolute;
        width: calc(100% - 60px);
        min-height: 300px;
        height: 60svh;
        aspect-ratio: unset;
        /* max-height: 400px; */
        left: 30px;
        /* aspect-ratio: 4/5; */
        /* height: 33svh; */
        top: 100px;
    }

    footer {
        top: calc(100svh + 200px);
        /* top: 950px; */
        /* top: calc(100svh + 90px); */
        /* height: 160px; */
        left: 0px;
        font-size: 14px !important;
        z-index: 10;
    }

    footer span {
        left: 30px;
    }

    .copyright {
        /* position: absolute; */
        right: 30px;
        bottom: 30px;
        font-size: 13px !important;
    }

    nav {
        /* top: 0; */
        /* left: 0; */
        height: 90px;
        width: 100%;
        padding-right: 30px;
    }

    nav.links {
        width: fit-content;
        height: fit-content;
        display: flex;
        gap: 30px;
        font-size: 14px;
    }

    footer {
        opacity: 0;
    }
}



.logo,
.video-wrapper {
    opacity: 0;
}

/* Animation */
.view {
    opacity: 0;
    transform: translateY(20px) translateX(0px);
    transition: opacity 1s ease-out, transform .8s ease-out;
    will-change: opacity, transform;
}

.view.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* .video-wrapper,
#automatic {
    opacity: 0;
    visibility: hidden;
} */