@font-face {
    font-family: 'Basel Grotesk';
    src: url('fonts/Basel-Grotesk-Light.eot');
    src: url('fonts/Basel-Grotesk-Light.eot?#iefix') format('embedded-opentype'),
         url('fonts/Basel-Grotesk-Light.woff2') format('woff2'),
         url('fonts/Basel-Grotesk-Light.woff') format('woff');
    font-weight: 375;
} 

:root{
    --dark-background-color: rgb(8, 8, 8);
    --dark-font-color: rgb(255, 255, 255);
    --lght-background-color: rgb(253, 253, 253);
    --lght-font-color: rgb(30, 30, 30);
}

html{
    background-color: var(--lght-background-color);
    font-family: 'basel grotesk';
    font-weight: 200;
    color:var(--lght-font-color);
    -ms-overflow-style:none;  /* IE and Edge remove scroll bar*/
    scrollbar-width:none;  /* Firefox remove scroll bar*/
    scroll-behavior: smooth;
    z-index: 1;
}

* {
    margin: 0; /* remove default browser padding and margins */
    padding: 0; /* remove default browser padding and margins */
    box-sizing: border-box; /* remove default browser padding and margins */
}

body{
    position: absolute; /*avoids collapsing margins problem of child element property of margin-top and margin-bottom from affecting the bodies top in the window viewport and sibling elements that are position absolute*/
    overflow-x: hidden;
}

a{
    color:inherit;
    text-decoration:none; /* remove browser default link style */
}

::-webkit-scrollbar {
    display:none; /* Safari Chrome Opera remove scroll bar*/
}

.nav-bar{
    z-index: 2;
    top: 0;
    left: 0;
    position: fixed;
    width: 100vw;
    height: 87px;
    /*background-color: var(--lght-background-color);*/
    transition: top 270ms cubic-bezier(0,0,0,1);
}

.nav{
    display: grid;
    position: relative;
    float: right;
    grid-template-columns: 3, minmax(0,1fr);
    grid-template-rows: 1, 1fr;
    z-index: 2;
    font-size: 130%;
    width: 320px;
    top: 0;
    right: 0;
    margin: 30px 0 0 0;
}

.nav-btn{
    opacity: 0;
    display: grid;
    position: relative;
    float: right;
    z-index: 5;
    font-size: 120%;
    top: 0;
    right: 0;
    margin: 27px 0px;
    width: 66px;/*formerly 36px*/
    height: 30px;
    cursor: pointer;
    transition: all 150ms ease-in-out;
}

.nav-btn-menu {
    align-self: center;
    justify-self: center;
    transform-origin: center;
    width: 30px;
    height: 1.5px;
    background: transparent;
    transition: all 150ms ease-in-out;
}

.nav-btn-menu::before,
.nav-btn-menu::after{
    content: '';
    position: absolute;
    transform-origin: center;
    width: 30px;
    height: 1.5px;
    transition: all 150ms ease-in-out;
    background: var(--lght-font-color);
}

.nav-btn-menu::before{
    transform: translateY(-4px);
}

.nav-btn-menu::after{
    transform: translateY(4px);
}

.nav-btn.open .nav-btn-menu{
    background: transparent;
    box-shadow: none;
}

.nav-btn.open .nav-btn-menu::before{
    transform: rotate(45deg);
}

.nav-btn.open .nav-btn-menu::after{
    transform: rotate(-45deg);
}

.nav-menu{
    opacity: 0;
    position: fixed;
    font-size: 300%;
    letter-spacing: .015ch;
    word-spacing: 0.03ch;
    line-height: 1.35;
    bottom: 0;
    margin: 0 35px 30px 35px;
}

.nav-menu-background{
    display: none;
    opacity: 0;
    position: fixed;
    height: 100vh;
    width: 100vw;
    /*background-color: var(--lght-background-color);*/
    bottom: 0;
}

.nav-work{
    grid-row: 1;
}

.nav-info{
    grid-row: 1;
    justify-self: center;
}

.nav-contact{
    grid-row: 1;
    justify-self: right;
}

.text-0{
    position: fixed;
    margin: 200px 35px 0 35px;
    font-family: 'basel grotesk';
    font-feature-settings: 'ss12', 'ss02';
    font-size: 350%;
    text-justify: left;
    transform-origin: top left;
    top: 0;
    left: 0;
    z-index: 2;
    transition: font-size 300ms cubic-bezier(0,.25,.75,1), 
                margin 300ms cubic-bezier(0,.25,.75,1),
                top 270ms cubic-bezier(0,0,0,1);
}

.text-0 h1{
    font-weight: 200;
}

.text-0-sub{
    opacity: 1;
    transition: opacity 100ms cubic-bezier(0,.25,.75,1);
}

.text-1{
    position: relative;
    margin: 0.5vw 1.5vw 1.5vw 1.5vw;
    font-family: 'basel grotesk';
    font-size: 130%;
    font-weight: 200;
    font-feature-settings: 'ss12', 'ss02';
    letter-spacing: .015ch;
    word-spacing: 0.03ch;
    text-indent: 0ch;
    line-height: 1.35;
    bottom: 0px;
    right: 0px;
    opacity: 1;
    float: right;
}

.underline{
    text-decoration: underline;
}

.hide{
    opacity: 0;
}

.show{
    opacity: 1;
}

.container{
    position: relative;
    margin: 790px 40px 0vw 275px;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    column-gap: 30px;
    row-gap: 60px;
    z-index: 1;
}

.img-container-1 img{
    width: 100%;
    height: auto;
    display: block;
}

.img-container-1 video{
    width: 100%;
}

.img-ambientPhotonicsSmartHome{
    grid-column: 3/-1;
    display: block;
    grid-row: 1;
}

.img-lyftGlow{
    grid-column: 3/-1;
    display: block;
    grid-row: 2;
}

.img-motiveOmnicam{
    grid-column: 3/-1;
    display: block;
    grid-row: 3;
}

.img-rokuVoiceRemotePro{
    grid-column: 3/-1;
    display: block;
    grid-row: 4;
}

.img-7{
    grid-column: 3/-1;
    display: block;
    grid-row: 5;
}

.img-1{
    grid-column: 8/16;
    display: block;
    grid-row: 6;
}

.img-2{
    grid-column: 1/10;
    display: block;
    grid-row: 7;
}

.img-5{
    grid-column: 5/12;
    display: block;
    grid-row: 8;
}

.img-6{
    grid-column: 8/15;
    display: block;
    grid-row: 9;
}

.img-3{
    grid-column: 2/9;
    display: block;
    grid-row: 10;
}

.img-4{
    grid-column: 5/13;
    display: block;
    grid-row: 11;
}

.footer{
    font-size: 100%;
    margin: 300px 0 30px 35px;
}

.animate-in {
    transition: opacity 700ms ease-out, transform 300ms ease-out;;
    opacity: 0;
    transform: translateY(100px);
}

.animate-in.appear{
    opacity: 1;
    transform: translateY(0px);
}

@media screen and (max-width: 800px){

    .nav-bar{
        height: 68px;
    }

    .nav {
        display: none;
    }

    .nav-btn{
        opacity: 1;
        margin: 17px 25px 0 0;
    }

    .text-0{
        font-size: 110%;
        margin: 20px 5px 0 25px;
        pointer-events: none;
    }

    .text-0-sub {
        display: inline-block;
        margin: 0 0 0 0;
    }

    .container{
        margin: 500px 15px 0vw 15px;
        column-gap: 0px;
        row-gap: 40px;
    }

    .img-container-1{
        grid-column: 1/-1;
    }

}

@media screen and (min-width: 800){
    .text-0 {
        font-size: 335%;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: var(--dark-background-color);
        color: var(--dark-font-color);
    }

    /*.nav-bar {
        background-color: var(--dark-background-color);
    }*/

    .nav-btn-menu::before,
    .nav-btn-menu::after{
        background: var(--dark-font-color);
    }

    /*.nav-menu-background{
        background-color: var(--dark-background-color);
    }*/
}