/*

*/


/* ====== Begin Boilerplate CSS ====== */

html {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    background-color: #222; /* Color you see during overscroll */
    font-size: 62.5%; /* makes rem = px size */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'ShareTechMono-Regular', monospace;
    /*font-family: 'OpenSans-Regular', sans-serif;*/
    min-height: 100%;
    /*height: 100%;*/
    color: #ccc;
    /*-webkit-font-smoothing: antialiased;*/
    /*-moz-osx-font-smoothing: grayscale;*/
}

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

html > * { font-size: 1.4rem; }

p, li, span { margin: 0; line-height: 1.65; }

a { outline: 0; text-decoration: none; }

a:link { text-decoration: none; color: #fff; }
a:visited { text-decoration: none; color: #fff; }
a:focus { outline: 1px dotted #444; }
a:hover { text-decoration: none; color: #b00; }
a:active { text-decoration: none; color: #b00; }

* { -webkit-tap-highlight-color: transparent; }
body.mobile * { cursor: auto !important; }

ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
}

h1,h2,h3,h4,h5,h6 {
    color: #fff;
    margin: 0;
    font-weight: normal;
    font-family: 'Anton-Regular', sans-serif;
}

h1 { margin-bottom: 12px; }
h2 { margin-bottom: 6px; }

.serif { font-family: serif; }
.sans-serif { font-family: sans-serif; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.vh { height: 100vh; }

/*.abs-fill-wrapper {*/
/*position: relative;*/
/*display: block;*/
/*height: 100%;*/
/*}*/

/*@media all and (min-width: 414px) {*/

.abs-fill-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
}

/*}*/

.table-table {
    position: relative;
    display: table;
    height: 100%;
    width: 100%;
}

.table-cell {
    position: relative;
    display: table-cell;
    height: 100%;
    width: 100%;
    vertical-align: middle;
}

.aspect-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.aspect-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.aspect-21-9 {
    position: relative;
    display: block;
    padding-top: 42.857%;
}

.aspect-16-9 {
    position: relative;
    display: block;
    padding-top: 56.25%;
}

.aspect-3-2 {
    position: relative;
    display: block;
    padding-top: 66.666%;
}

.aspect-4-3 {
    position: relative;
    display: block;
    padding-top: 75%;
}

.aspect-6-5 {
    position: relative;
    display: block;
    padding-top: 83.333%;
}

.aspect-1-1 {
    position: relative;
    display: block;
    padding-top: 100%;
}

.stay-down-wrapper {
    position: relative;
    min-height: 100%;
}

.stay-down-content {
    /* padding-bottom: [height of footer]; */
}

.stay-down-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    /* height: [height of footer]; */
}

.close {
    position: relative;
    display: inline-block;
    width: 25px;
    height: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.35s ease-in-out;
}

.close::before, .close::after {
    content: '';
    position: absolute;
    height: 2px;
    margin-top: -1px;
    width: 100%;
    top: 50%;
    left: 0;
    background-color: #000;
    transition: background-color 0.35s ease-in-out;
}

.close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.close:hover {
    background-color: #000;
}

.close:hover::before,
.close:hover::after {
    background-color: #fff;
}

.page-curtain {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: opacity 1.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

body.loaded .page-curtain {
    pointer-events: none;
    opacity: 0;
}

.vh-landing video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 101%;
    min-height: 101%;
    width: auto;
    height: auto;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    overflow: hidden;
}

@media (min-aspect-ratio: 16/9) {
    .vh-landing video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .vh-landing video {
        width: auto;
        height: 100%;
    }
}



/* Animated Menu Hamburger */

.menu-toggle {
    position: fixed;
    top: 16px;
    /*right: 50%;*/
    /*transform: translateX(50%);*/
    right: 16px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.menu-toggle * {
    transition: width .25s ease-in-out, height .25s ease-in-out;
    box-sizing: border-box;
}

.menu-toggle span {
    display: block;
    background-color: #fff;
}

.menu-toggle .menu-hamburger {
    position: absolute;
    height: 100%;
    width: 100%;
}

.menu-toggle .menu-hamburger span {
    width: 34px;
    height: 6px;
    position: relative;
}

.menu-toggle .menu-hamburger span:nth-child(1) {
    transition-delay: 0.5s;
    margin: 2px 0 6px;
}

.menu-toggle .menu-hamburger span:nth-child(2) {
    transition-delay: 0.625s;
    margin: 0;
}

.menu-toggle .menu-hamburger span:nth-child(3) {
    transition-delay: 0.75s;
    margin: 6px 0 2px;
}

.menu-toggle .menu-cross {
    position: absolute;
    height: 100%;
    width: 100%;
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.menu-toggle .menu-cross span:nth-child(1) {
    height: 0%;
    width: 6px;
    position: absolute;
    top: 0;
    left: 14px;
    transition-delay: 0s;
}

.menu-toggle .menu-cross span:nth-child(2) {
    width: 0%;
    height: 6px;
    position: absolute;
    left: 0;
    top: 14px;
    transition-delay: 0.25s;
}

.menu-toggle.open .menu-hamburger span {
    width: 0%;
}

.menu-toggle.open .menu-hamburger span:nth-child(1) {
    transition-delay: 0s;
}

.menu-toggle.open .menu-hamburger span:nth-child(2) {
    transition-delay: 0.125s;
}

.menu-toggle.open .menu-hamburger span:nth-child(3) {
    transition-delay: 0.25s;
}

.menu-toggle.open .menu-cross span:nth-child(1) {
    height: 100%;
    /* transition-delay: 0.625s; */
    transition-delay: 0.75s;
}

.menu-toggle.open .menu-cross span:nth-child(2) {
    width: 100%;
    /* transition-delay: 0.375s; */
    transition-delay: 0.5s;
}



/* ====== Slick Slider overrides ====== */

.slick-list,
.slick-track,
.slick-slide,
.slick-slide > div,
.slick-slide > div > div,
.slick-slide > div > div > img {
    height: 100%;
}

.slick-slide > div,
.slick-slide > div > div > img {
    width: 100%;
}

/* For when setting the gallery to a specific aspect-ratio */
.aspect-content .slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* For when swapping lazy-loaded img src as background-image */
.slick-list .slide img {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}



/* ====== Form Styling Overrides ==== */

form {
    position: relative;
    display: block;
    margin: 0 auto;
    /*padding: 18px 0 0;*/
    width: 100%;
    /*max-width: 400px;*/
}

form label {
    display: none;
}

form input,
form select {
    position: relative;
    display: block;
    width: 100%;
    color: #ccc;
    background-color: transparent;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
    border-bottom: 2px solid #ccc;
    margin-bottom: 12px;
    line-height: 30px;
    height: 30px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    outline: none;

    transition: background-color 0.25s ease;
}


form select {
    padding: 0 12px 0 0;
    line-height: 34px;
    background: url(../img/common/dd-arrow.png) right center no-repeat;
    background-size: 9px 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -moz-text-indent: -2px;
}

/* prevents white-on-white issues in Chrome */
form select option, optgroup {
    background-color: #fff;
    color: #000;
    -webkit-appearance: none;
}

form textarea {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    outline: none;
    background: transparent;
    color: #ccc;
    border: 2px solid #ccc;
    padding: 6px;
}

.form-submit {
    position: relative;
    display: block;
    width: auto;
    margin: 0 auto;
    height: 36px;
    line-height: 36px;
    font-family: 'Anton-Regular', sans-serif;
    font-size: 1.8rem;
    cursor: pointer;
    text-align: center;
    color: #b00;
    background-color: #ccc;
    border-radius: 0;
    padding: 0 32px;

    transition: color 0.35s ease, background-color 0.35s ease;
}

.form-submit:hover {
    background-color: #b00 !important;
    color: #fff;
}

.required-span {
    position: relative;
    display: block;
    font-size: 1.1rem;
    font-style: italic;
    text-align: left;
    margin-bottom: 32px;
}

form input:focus,
form textarea:focus {
  color: #fff;
  outline: none;
}

form input:focus {
    border-bottom-color: #fff;
}

form textarea:focus {
    border-color: #fff;
}

form input::placeholder,
form textarea::placeholder {
    color: #ccc;
    opacity: 1; /* make sure Chrome doesn’t dim it */
    transition: color 0.15s ease;
}

form input:focus::placeholder,
form textarea:focus::placeholder {
  color: #fff;
  opacity: 1;
}


/* ====== Waypoint Animations ====== */

.fade-in {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1s;
    transition-timing-function: ease-in-out;
}
.fade-in.activate,
.activate .fade-in {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    will-change: transform;
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
    transition-property: opacity, transform;
    transition-duration: 1s, 1s;
    transition-timing-function: ease-in-out, ease;
}
.fade-in-up.activate,
.activate .fade-in-up {
    opacity: 1;
    will-change: transform;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}



/* ====== Begin Custom CSS ====== */

.page-content {
    position: relative;
    display: block;
    width: 100%;
    padding: 160px 32px 32px;
}

.page-bg-slider.slider {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.landing-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* small viewport on initial load */
    min-height: 100dvh;  /* dynamic (updates as bars show/hide) */
    padding: 128px 0;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-pane {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 128px 0;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hero-pane::-webkit-scrollbar { width: 0; }

/* Vertically centered variant */
.hero-pane.center {
  justify-content: center;
}

.hero,
.hero-pane {
    min-height: 100vh;
    min-height: 100dvh;
}

.landing-logo {
    position: relative;
    display: block;
    width: calc(100% - 32px);
    max-width: 420px;
    height:  auto;
    margin:  0 auto 32px;
    padding-left: 24px;
}

.cta-button-wrapper {
    position: relative;
    display: block;
    text-align: center;
}

a.cta-button {
    position: relative;
    display: inline-block;
    height: 42px;
    line-height: 42px;
    font-family: 'Anton-Regular', sans-serif;
    font-size: 1.8rem;
    width: auto;
    padding: 0 32px;
    text-align: center;
    margin: 0 8px;
    transition: color 0.35s ease, background-color 0.35s ease;
}
a.cta-button:link,
a.cta-button:visited {
    background-color: #fff;
    color: #b00;
}
a.cta-button:hover,
a.cta-button:active {
    background-color: #b00;
    color: #fff;
}

.blur-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 84px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Safari support */
}

.phone-link {
    position: fixed;
    top: 20px;
    right: 72px;
}
.phone-link img {
    height: 24px;
}

.nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(34,34,34,0.95);
    padding: 128px 32px 64px;
    font-family: 'Anton-Regular', sans-serif;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Safari support */
}

body.nav-closed .nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out 0.5s;
}

body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out;
}

body.nav-open .nav-item {
    opacity: 1;
}

body.nav-open .nav-item:nth-child(1) { transition: opacity 0.5s ease-in-out 0.5s; }
body.nav-open .nav-item:nth-child(2) { transition: opacity 0.5s ease-in-out 0.6s; }
body.nav-open .nav-item:nth-child(3) { transition: opacity 0.5s ease-in-out 0.7s; }
body.nav-open .nav-item:nth-child(4) { transition: opacity 0.5s ease-in-out 0.8s; }
body.nav-open .nav-item:nth-child(5) { transition: opacity 0.5s ease-in-out 0.9s; }
body.nav-open .nav-item:nth-child(6) { transition: opacity 0.5s ease-in-out 1.0s; }
body.nav-open .nav-item:nth-child(7) { transition: opacity 0.5s ease-in-out 1.1s; }
body.nav-open .nav-item:nth-child(8) { transition: opacity 0.5s ease-in-out 1.2s; }

.nav-logo {
    position: absolute;
    top:  16px;
    left: 13px;
    width: 128px;
    height: auto;
}

.nav-list {
    position: relative;
    display: block;
}

.nav-item {
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0;
}

body.nav-closed .nav-item {
    transition: opacity 0.5s ease-in-out;
}

.nav-item a {
    font-size: 2.4rem;
}

.nav-item a:link,
.nav-item a:visited {

}

.nav-item a:hover,
.nav-item a:active {

}

.main-window {
    position: relative;
    display: block;
    width: calc(100% - 32px);
    margin: 0 auto;
    max-width: 640px;
    padding: 16px;
    background-color: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Safari support */
}

.spa-hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    height: 100vh;
    height: 100svh;
}

.spa-show {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out 0.5s;
}

body.spa-home.nav-closed .nav-logo {
    opacity: 0;
    pointer-events: none;
}

body.nav-closed .nav-logo {
    transition: opacity 0.5s ease-in-out;
}

body.spa-home.nav-open .nav-logo {
    transition: opacity 0.5s ease-in-out;
}

ul.services-list {
    list-style-type: disc;
    list-style-position: outside;
    margin-left: 1.5em;
    padding-left: 0;
}

ul.services-list li {
    display: list-item;
    margin-bottom: 8px;
}

#view-home span {
    position: relative;
    display: block;
    font-family: 'ShareTechMono-Regular', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #fff;
}

#view-about p {
    margin-bottom: 16px;
}

#view-services p {
    margin-bottom: 16px;
}

#view-contact p {
    line-height: 2;
    margin-bottom: 24px;
}

/* ====== Media Queries ====== */

@media all and (min-width: 420px) {

    .landing-logo {
        margin:  0 auto 48px;
        padding-left: 48px;
    }

    a.cta-button,
    .form-submit {
        height: 48px;
        line-height: 48px;
        font-size: 2.4rem;
        padding: 0 32px;
    }

    .nav-item {
        font-size: 3.2rem;
    }

    .main-window {
        padding: 48px 32px;
    }

    #view-home span {
        font-size: 2.1rem;
        margin-bottom: 32px;
    }

}

@media all and (min-width: 768px) {

    html > * { font-size: 1.6rem; }

    .blur-bar {
        height: 116px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-toggle {
        top: 24px;
        right: 28px;
    }
    
    .nav-logo {
        top:  32px;
        left: 29px;
    }

    .phone-link {
        top: 29px;
        right: 84px;
    }

    a.cta-button,
    .form-submit {
        height: 64px;
        line-height: 64px;
        font-size: 2.8rem;
        padding: 0 64px;
    }

    .main-window {
        width: calc(100% - 64px);
        max-width: 840px;
        padding: 64px 96px;
    }

    #view-home span {
        font-size: 3.6rem;
        margin-bottom: 48px;
    }

    #view-services .main-window {
        max-width: 960px;
    }

    #view-contact .main-window {
        max-width: 720px;
    }

    h1 {
        font-size: 3.8rem;
    }

    #view-about p {
        line-height: 2;
    }

}


/* iPhone 5 Portrait Landing */
@media screen and (min-width: 320px) and (max-width: 320px) and (min-height: 450px) and (max-height: 470px) { }

/* iPhone 6 Portrait Landing */
@media all and (min-width: 375px) and (max-width: 375px) and (min-height: 549px) and (max-height: 569px) { }

/* iPhone 7 Portrait Landing */

/* iPhone 5 Portrait */
@media all and (max-width : 320px) { }
/* Wider than iPhone 6 Portrait */
@media all and (min-width : 376px) { }
/* Wider than iPhone 6+ Portrait */
@media all and (min-width : 415px) { }
/* Wider than iPad 6+ Portrait */
@media all and (min-width : 769px) { }
/* Tablets and up, starting with Nexus 7 */
@media all and (min-width: 960px) and (min-height: 600px) and (orientation : landscape), all and (min-width: 600px) and (min-height: 960px) and (orientation: portrait) { }
@media all and (min-width: 960px) and (orientation : landscape), all and (min-width: 600px) and (orientation: portrait) { }

/* All size bigger than tablets, leaving off on Nexus 10 / ASUS transformer */
@media all and (min-width : 801px) and (min-height: 1281px) and (orientation : portrait),  all and (min-width : 1281px) and (min-height: 801px) and (orientation : landscape) { }



@media all and (max-aspect-ratio: 1/1) { }

