@import url(./config.css);

body{
    margin: 0;
        background-color: #024;
        color: #fff9;
        font-family: sans-serif;
        overflow: hidden;
        
        background-image: linear-gradient(to bottom, #024, black);  
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center;
        
}
p{
    margin-block-start: 0;
    margin-block-end: .5em;
}
h1, h2, h3, h4, h5, h6{
    font-weight: 500;
}
h1{
    font-size: 3.5em;
    margin-block-start: .5em;
    margin-block-end: .5em;
}
h2{
    font-size: 2.5em;
    margin-block-start: .5em;
    margin-block-end: .5em;
}
h3{
    font-size: 2em;
    margin-block-start: .2em;
    margin-block-end: .2em;
}

@media screen and (width < 520px)  {
    
    h1{
        font-size: 3em;
        margin-block-start: .5em;
        margin-block-end: .5em;
    }
    h2{
        font-size: 2em;
        margin-block-start: .5em;
        margin-block-end: .5em;
    }
    h3{
        font-size: 1.7em;
        margin-block-start: .1.5em;
        margin-block-end: .1.5em;
    }
}




.root{
    padding: 0;
    height: 100svh;
    box-sizing: border-box;
    width: 100%;
}
.movie-bg{
    z-index: 1;
    position: absolute;
    height: 100%;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    video{
        opacity: .6;
        height: 100%;
        aspect-ratio: 16 / 9;
    }
}
@media  (min-aspect-ratio: 16/9) {
    .movie-bg video{
        height:unset;
        width: 100%;
        
    }
}
.spacer{
    flex-grow: 1;
}
.navigation{
    opacity: 66%;
    height: 48px;
    
    box-sizing: border-box;
    z-index: 100;
    position: fixed;
    display: flex;
    flex-direction: row;
    /*width: 100%;*//*for the nav bubbles to work*/
    padding: var(--nav-padding);
    
    &>.brand{
        padding-top: 6px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        /*justify-content: center;*/
        cursor: pointer;
        /*max-height: 100%;*/
        height: 100%;

        margin-top: 1em;
        height: 60px;
        
        & img{
            max-height: calc(100% - 0px);
        }
        &:hover img{
            filter: drop-shadow(0 0 3px var(--brand-teal));
        }
        
    }
    
    &>nav{
        color: #fff;
        display: flex;
        flex-direction: row;
        gap: 8px;
        gap: max(2vw, 8px);
        
        &>span,
        &>a,
        &>div{
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
            xbackground: blue;
            cursor: pointer;
            padding: 0px 2px;
            font-size: 20px;
            xfont-weight: 100;
            
            border-bottom: 2px inset #0000;
            &:hover{
                xbackground: #0004;
                border-bottom: 2px inset #fff;
            }
        }
    }
}

@media screen and (width < 520px)  {
    .navigation>.brand{
        height: 50px;
    }
}




.footer{
    flex-shrink: 0;
    width: 100%;
    
    .footer-content{
        background-color: #000;
        
        overflow-y: auto;
        box-sizing: border-box;
        padding: var(--footer-padding);

        width: 100%;
        /*min-height: 5em;*/

        overflow: hidden;
    }

    .footer-bg .sand g use{
        fill: #000;
    }

    &.invert{
        & .footer-content{
            background-color: #bbb;
            color: #000;
        }
        .footer-bg .sand g use{
            fill: #bbb;
        }


    }
}

.sand {
  position:relative;
  width: 100%;
  height:15svh;
  margin-bottom:-7px; /*Fix for safari gap*/
  /*min-height:100px;*?
  /*max-height:150px;*/

  height: 2em
}
@media screen and (width < 520px)  {
    .sand{
        height: 1.4em;
    }
}




.content-wrapper{
    z-index: 50;
    position: relative;
    width: 100%;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;


    
    scrollbar-color: #fff9 #0005;
    /*scrollbar-width: thin;*/
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  .content-wrapper{

    /*scrollbar-width: thin;*/
  }
}

.content-panel{
    height: 150svh;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    /*overflow: hidden;*/
    position: sticky;
    &.bookend{
        height: 100svh;
    }
}
.content-pane{
    height: 100svh;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content-bg{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    position: absolute;
    top: 0;
    &.black{
        background-color: #000;
        box-shadow: 0 -5px 50px #000;
        box-shadow: 0 -10px 10px #000;
    }
    &.blue{
        background-color: var(--brand-blue-dark);
    }
}
.pane-section, 
.projects-section{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-grow: 1;

    flex-direction: row;

    padding: 3em 0;

    &.projects-section{
        width: 100%;
        padding: 0;
    }
}
.pane-content,
.pane-image{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;

    padding: 0 3em;
}
.pane-image{
    overflow: hidden;
    aspect-ratio: 1/1;
    opacity: 66%;
    max-width: 100%;
    & img{
        max-height: 100%;
        max-width: 100%;
    
    }
}

@media screen and (width < 920px)  {
    .pane-section{
        flex-direction: column;
    }
    .pane-content{
        flex: 0;
    }

    .pane-image{
        flex-shrink: 1;
        flex-grow: 1;
        aspect-ratio: 16/9;
        & img{}
    }

}

  
.banner-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3em 0;
    
}

@media screen and (width < 520px)  {
}

.content-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    flex-grow: 1;
    
}

.project-section{
    height: 100%;
    flex-grow: 1;
    position: relative;



    & .project-bg{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    & .project-content{
        position: absolute;
        bottom: 0;
        background-color: #0008;
        width: 100%;
        padding: 1em 3em 2em;
        overflow: hidden;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1em;

    }
        
}
@media screen and (width < 720px)  {
    .project-content{
        padding: 1em;
    }
}

.btn-primary, .btn-secondary, .btn-tertiary, .btn-bubble, .btn-text{

        color: #fff9;
        background-color: #0000;
        border: 1px solid #fff9;
        cursor: pointer;
        display: inline-flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        padding: .7em 1em;
        text-decoration: none;
        border-radius: 99px;
        overflow: hidden;

        &.btn-bubble{
            border-radius: 100%;
            aspect-ratio: 1/1;
        }
        
        &:hover,
        &:active,
        &:focus{
            animation: bubbleGlow .25s linear; 

            /*

            border-radius: 1em;

            background-image: linear-gradient(to bottom, #fff0, #fff9);  

            */
            box-shadow: inset 0 -.25em .25em #fff9;
        }

        &.btn-up,
        &.btn-down{
            position: absolute;
            right: 1em;
            z-index: 120;

            &.btn-up{
                top: 1em;
            }
            &.btn-down{
                bottom: 1em;
            }
        }

}
@keyframes bubbleGlow {
  from {box-shadow: inset 0 -.25em .25em #fff0;}
  to {box-shadow: inset 0 -.25em .25em #fff9;}
}
