/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

body {
    font: 16px/26px 'Open Sans', Helvetica, Arial, sans-serif;
    background: #F3F3F3;
}

.wrapper {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #2671b8;
    font-family: 'Titillium Web', sans-serif;
    text-decoration: uppercase;
    font-weight: 300;
}

a {
    color: #2671b8;
    text-decoration: none;
}
a:hover {
    color: #333333;
    text-decoration: underline;
}

/* ==============
    MOBILE: Menu
   ============== */

.hamburger {
    display: block;
    background: url(/images/hamburger.png) center center no-repeat;
    background-size: 100%;
    display: block;
    text-indent: -9999em;
    outline: none;
    width: 24px;
    height: 19px;
    position: absolute;
    top: 15px;
    right: 18px;
}
nav {
    clear: both;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow: hidden;
    max-height: 0;
    -webkit-transition: max-height .5s ease-out;
    transition: max-height .5s  ease-out;
}

nav ul.show {
    max-height: 300px;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;

    color: #2671b8;
    background: #F3F3F3;
    font-family: 'Titillium Web', sans-serif;
}

nav a:hover,
nav a:visited {
    color: #2671b8;
}

nav a:hover {
    background: #2671b8;
    color: #F3F3F3;
    text-decoration: none;
}

.header-container {
    border-bottom: 1px solid #333333;
    padding: 0 5%;
    position: fixed;
    top: 0; left: 0;
    width: 90%;
    background: #F3F3F3;
    z-index: 10;
}

.header-container h1 {
    margin: 1.125em 0 .5em;
    text-indent: -9999em;
    background: url(/images/small-name-blue.png) top left no-repeat;
    background-size: 100%;
    max-width: 241px;
    height: 19px;
    width: 40%;
    display: inline-block;
    float: left;
    font-size: 18px;
}

.header-container h3 {
    margin: 1.125em 0 .5em 1em;
    text-indent: -9999em;
    background: url(/images/web-dev-gray.png) top left no-repeat;
    background-size: 100%;
    max-width: 164px;
    width: 30%;
    display: inline-block;
    font-size: 18px;
    height: 23px;
    float: left;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
}

.main-container {
}

.main-container > hr {
    display: block;
    position: relative;
    border: 0;
    width: 100%;
    z-index: 1;
    padding-bottom: 56.203%;
    margin: 0;
}

.main-splash {
    background:#CCCCCC;
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 5;
    top: 53px;
    left: 0;
}

.main-splash .name-overlay {
    position: absolute;
    top:0; bottom: 0;
    left: 0; right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 5;
}

.main-splash .name-overlay h4 {
    width: 80%;
    background: url(/images/large-logo-lockup.png) center top no-repeat;
    background-size: 100%;
    font-size: 0; line-height: 0;
    text-indent: -9999em;
    padding-bottom: 17.57%;
    margin: 0% auto 0;
    position: relative;
    top: 37%;
    max-width: 495px;
}

.main-splash ul {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 3;
}

.main-splash ul li {
    position: relative;
    width: 100%;
    text-align: center;
    opacity: 0;
    display:none;
}
.main-splash ul li:first-child {
    opacity: 0.6;
    display: block;
}

.projects {
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 7;
    background: #F3F3F3;
    -webkit-transform: translate3d(0,0,0);
}

.projects-list {
    padding: 4em 0;
}

.projects-list article {
    width: 90%;
    max-width: 370px;
    margin: 0 auto;
}
.projects-list article header {
    text-align: center;
    padding: 3em 0 1em;
}
.projects-list article:first-child header {
    padding-top: 0;
}
.projects-list article section a {
    display: block;
}
.projects-list article section img {
    width: 100%;
}
.projects-list article footer {
    font-size: .825em;
}

/* ===============
    PROJECT DETAIL OVERLAY
   =============== */

.project-overlay {       
    position: absolute;
    right: -110%;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background: #2671b8;
    background: rgba(38,113,184,0.7);
    -webkit-transition: right 1s ease;
    transition: right 1s ease;
}

.project-overlay.show {
    right: 0;
}

 .project-overlay .back {
    padding: 1em 0 1em 20px;
    display: block;
    box-sizing: border-box;
    color: #2671b8;
    text-decoration: none;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
    margin-bottom: 1em;
}

.project-overlay .back:hover {
    background: transparent;
    color: #FFFFFF;
}

.project-overlay .back span {
    position: relative;
}
.project-overlay .back span:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: -20px;
    top: 8px;
    border-style: solid;
    border-width: 4px 3px 4px 0;
    border-color: transparent #2671b8 transparent transparent;
}
.project-overlay .back:hover span:after {
    border-color: transparent #FFFFFF transparent transparent;
}

.project-overlay .inner {
    width: 90%;
    height: auto;
    background: #F3F3F3;
    padding: 0 5% 2em 5%;
    border-bottom: 1px solid #333333;
}

.project-overlay .project-details h1 {
    padding: 0 0 2em;
    margin: 0;
}

.project-overlay .project-details .site-visual {
    max-width: 515px;
    padding-bottom: 2em;
}

.project-overlay .project-details .site-visual img {
    width: 100%;
}

.project-overlay .project-details .site-visual > a {
    display: block;
    text-align: right;
    padding-right: 20px;
    color: #2671b8;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Titillium Web', Helvetica, Arial, sans-serif;
    margin: 2em 0 0;
    position: relative;
}

.project-overlay .project-details .site-visual > a:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    right: 0px;
    top: 9px;
    border-style: solid;
    border-width: 4px 0 4px 3px;
    border-color: transparent transparent transparent #2671b8;
}

/* ===============
    ALL: FOOTER
   =============== */

.footer-container {
    background: #2671b8;
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 8;
}

.footer-container footer h3 {
    background: url(/images/footer-logo-lockup.png) center top no-repeat;
    background-size: 100%;
    text-indent: -9999em;
    max-width: 240px;
    margin: 0 auto;
    width: 80%;
    font-size: 0em;
    line-height: 0em;
    min-height: 49px;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}
















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

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        width: 27%;
        margin: 0 1.7%;
        padding: 25px 2%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}


@media only screen and (min-width: 250px) {
    .main-splash {
        padding-bottom: 42.125%;
        overflow: hidden;
    }
    .main-splash ul {
        position: absolute;
    }
    .main-splash ul li {
        float: left;
        width: 29%;
        margin: 0 2%;
    }
    .main-splash ul li img { width: 100%; max-width: 375px;}
    .main-splash ul li:nth-child(2), .main-splash ul li:nth-child(3) {
        display: block;
        opacity: 0.6;
    }
}

@media only screen and (min-width: 700px) {

    .main-container > hr {
        padding-bottom: 48.203%;
    }

    .projects article {
        width: 40%;
        display: inline-block;
        margin: 0 5%;
        float: left;
    }

    .projects article:nth-child(2) header {
        padding-top: 0;
    }

    .project-overlay .inner {
        background: #F3F3F3;
        width: 85%;
        float: right;
        height: 100%;
        border-left: 1px solid #333;
        padding-top: 2em;
        box-sizing: border-box;
    }

    .project-overlay .back {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 15%;
        background: #2671b8;
        background: rgba(38,113,184,0.7);
        padding: 2em 0 0; 
        text-align: center;
        color: #FFFFFF;
    }

    .project-overlay .back span:after {
        border-color: transparent #FFFFFF transparent transparent;
    }
    .project-overlay .back:hover span:after, .project-overlay .back:active span:after {
        border-color: transparent #2671b8 transparent transparent;
    }

    .project-overlay .project-details .site-visual {
        text-align: center;
        margin: 0 auto;
    }
    .project-overlay .project-details .site-visual img {
        max-width: 515px;
    }

}

@media only screen and (min-width: 850px) {
    .hamburger {
        display: none;
    }
    nav {
        float: right;
        width: 37%;
        clear: none;
    }
    nav ul {
        max-height: 100px;
        float: right;
    }
    nav a {
        width: auto;
        padding: 14px 14px 15px;
        margin: 0;
        text-align: center;
        cursor: pointer;
    }

}

@media only screen and (min-width: 1020px) {

    .project-overlay .back {
        padding-top: 4em;
    }

    .project-overlay .project-details {
        padding: 2em 4em;
        overflow: hidden;
    }
   
}

@media only screen and (min-width: 960px) {
    .projects article {
        width: 25%;
        margin: 0 4%;
    }

    .projects article:nth-child(3) header {
        padding-top: 0;
    }
}

@media only screen and (min-width: 1140px) {


}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}