/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* ==========================================================================

/* @@LaptopSmall - landscape*/
@media only screen and (max-width: 1400px) {}
   
/* @@Tablety - landscape*/
@media only screen and (max-width: 1100px) {}

/* @@Tablety - portrait*/
@media only screen and (max-width: 900px) {}

/* @@Smarty - landscape*/
@media only screen and (max-width: 700px) {}

/* @@Smarty - portrait */
@media only screen and (max-width: 460px) {}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    position: relative;
    height: 100%;
}

body {
    position: relative;
    height: 100%;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Typography and colour
   ========================================================================== */
body {
    font-size: 1em;    
    font-family: "minion-pro", serif;
    line-height: 1.3;
}

h2 {
    font-size: 1em;
    font-weight: normal;
    font-style: italic;
    margin: 0 0 .5em; 

    color: #808285;   
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: #ff3a00;
}

a:active {
    background-color: transparent;
}

.reversed a {
    color: #fff;
}

.reversed a:hover {
    color: rgba(255,255,255,.5);
}

.reversed h2 {
    color: #fff;
}

/* @@LaptopSmall - landscape*/
@media only screen and (max-width: 1400px) {}
   
/* @@Tablety - landscape*/
@media only screen and (max-width: 1100px) {}

/* @@Tablety - portrait*/
@media only screen and (max-width: 900px) {}

/* @@Smarty - landscape*/
@media only screen and (max-width: 700px) {
    body {
        font-size: 11px;
    }
}

/* @@Smarty - portrait */
@media only screen and (max-width: 400px) {}

/* ==========================================================================
   Content
   ========================================================================== */




/*
 * Viewport
 */ 

.viewport {
    position: relative;    
    width: 100%;
    height: 100%;
}

.backgroundsize .viewport {
    overflow: hidden;
}


.viewport__surface {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.viewport__panel {
    position: relative;

    -webkit-backface-visibility: hidden;
}

.backgroundsize .viewport__panel {
    width: 100%;
    height: 100%;  
}

.backgroundsize .viewport__panel {
    position: absolute;
}

.backgroundsize .panel--01 {
    top: 0;
    left: 0;   
}

.backgroundsize .panel--02 {
    top: 0;
    left: 100%;
}

.backgroundsize .panel--03 {
    top: 100%;
    left: 100%;
}

.backgroundsize .panel--04 {
    top: 200%;
    left: 100%;
}

.backgroundsize .panel--05 {
    top: 200%;
    left: 0;
}

.next {
    position: absolute;

    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;

}

.animate .next {
    opacity: 1;
}


.next--right {
    background-size: 20%;
    right: 0;
    top: 0;
    bottom: 0;
    width: 10%;
    width: 10vw;
    
    background-image: url(next--right.svg);
    background-position: 80% 40%
}

.reversed .next--right {
    background-image: url(next--right--reversed.svg);
}

.next--down {
    background-size: auto 20%;
    right: 0;   
    left: 0; 
    bottom: 0;
    height: 10%;
    height: 10vw;
    background-image: url(next--down.svg);
    background-position: center 80%
}

.next--left {    
    background-size: 20%;
    left: 0; 
    bottom: 0;
    top: 0;
    width: 10%;
    width: 10vw;    
    background-image: url(next--left.svg);
    background-position: 20% 40%
}

.next--up {
    background-size: auto 20%;
    left: 0; 
    top: 0;
    right: 0;
    height: 10%;
    height: 10vw;    
    background-image: url(next--up.svg);
    background-position: 50% 20%
}

@media (orientation:portrait) {

.next--right    { width: 20%; width: 10vh;   }
.next--down     { height: 20%; height: 20vh;  }
.next--left     { width: 20%; width: 20vh;   }
.next--up       { height: 20%; height: 20vh;  }

}



/*
 * Panel 01, Panel 05 - logo and address
 */ 

.cover {
    background: #fff;
    color: #000;
    text-align: center;

    height: 90%;
}


.cover--reversed {
    background: #FF3118;
    color: #fff;
}


/* Defaults */
.cover__header {
    position: relative;
    height: 100%;
    text-align: center;
}


.cover__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}


/* Used to center content within the box */
.cover__header:before {
    content: ' ';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: 0;
    width: 0;
}

.cover__logo {
    position: relative;
    top: 20%;
}

.backgroundsize .cover__logo {
    position: relative;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    top: -10%;  
}

.logo {
    width: 40%;
}

.backgroundsize .logo--reversed {display: none;}

.backgroundsize .reversed .logo {display: none;}
.backgroundsize .reversed .logo--reversed {display: inline-block;}


.contact {
    text-align: center;
    padding-bottom: 3em;
}

.csstransitions .contact {
    opacity: 0;

    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}

.csstransitions .animate .contact {
    opacity: 1;
}

.contact__item {
    position: relative;
    display: inline-block;
    padding: 1em 3em;
}

.contact__item:first-child:after {
    position: absolute;
    content: " ";
    top: 40%;
    right: 0;
    width: 1px;
    height: 30%;    
    background: #ff3a00;
}

.reversed .contact__item:first-child:after {
    background: #fff;
}


/* @@LaptopSmall - landscape*/
@media only screen and (max-width: 1400px) {}
   
/* @@Tablety - landscape*/
@media only screen and (max-width: 1100px) {
    .logo {
        width: 50%;
    }
}

/* @@Tablety - portrait*/
@media only screen and (max-width: 900px) {}

/* @@Smarty - landscape*/
@media only screen and (max-width: 700px) {

    .contact {
        white-space: nowrap;
    }

    .contact__item {
        padding-left: 2em;
        padding-right: 2em;
    }
}

/* @@Smarty - portrait */
@media only screen and (max-width: 400px) {

    .contact {
        white-space: normal;
    }

    .contact__item:first-child:after {
        top: auto;
        bottom: 0;
        left: 40%;
        right: auto;
        width: 20%;
        height: 1px;        
    }

}

@media (orientation:portrait) {

    .logo {
        width: 70%;
    }

}


/*
 * Panel 02, 03, 04 - Renders
 */

.render {
    background-size: cover;
    background-position: center;
    background-color: #ff3a00;
}

.render__placeholder {
    width: 100%;
}

.backgroundsize .render__placeholder {
    display: none;
}

.backgroundsize .render--1 {
    background-image: url(/img/render-1.2000.jpg);
}

.backgroundsize .render--2 {
    background-image: url(/img/render-2.2000.jpg);
}

.backgroundsize .render--3 {
    background-image: url(/img/render-3.2000.jpg);
}

.backgroundsize .render--4 {
    background-image: url(/img/render-4.2000.jpg);
}





/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Inline SVG
 */

.inlinesvg [data-svgsrc] {
    display: none;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

.animate--bounce {
    -webkit-animation-duration: .3s;
       -moz-animation-duration: .3s;
         -o-animation-duration: .3s;
            animation-duration: .3s;


    -webkit-animation-iteration-count: 4;
       -moz-animation-iteration-count: 4;
         -o-animation-iteration-count: 4;
            animation-iteration-count: 4;

    -webkit-animation-timing-function: ease-out;
       -moz-animation-timing-function: ease-out;
         -o-animation-timing-function: ease-out;
            animation-timing-function: ease-out;

    -webkit-animation-direction: alternate;
       -moz-animation-direction: alternate; 
         -o-animation-direction: alternate; 
            animation-direction: alternate;

    -webkit-animation-delay: 1s;
       -moz-animation-delay: 1s;
         -o-animation-delay: 1s;
            animation-delay: 1s;            
}


@-webkit-keyframes bounce-right {
    0% {-webkit-transform: translateX(0);}
    100% {-webkit-transform: translateX(-15%);}    
}

@-moz-keyframes bounce-right {
    0% {-moz-transform: translateX(0);}
    100% {-moz-transform: translateX(-15%);}
}

@-o-keyframes bounce-right {
    0% {-o-transform: translateX(0);}
    100% {-o-transform: translateX(-15%);}
}
@keyframes bounce-right {
    0% {transform: translateX(0);}
    100% {transform: translateX(-15%);}
}

.animate .animate--bounce-right {
    
    -webkit-animation-name: bounce-right;
       -moz-animation-name: bounce-right;
         -o-animation-name: bounce-right;
            animation-name: bounce-right;

}


@-webkit-keyframes bounce-down {
    0% {-webkit-transform: translateY(0);}
    100% {-webkit-transform: translateY(-15%);}    
}

@-moz-keyframes bounce-down {
    0% {-moz-transform: translateY(0);}
    100% {-moz-transform: translateY(-15%);}
}

@-o-keyframes bounce-down {
    0% {-o-transform: translateY(0);}
    100% {-o-transform: translateY(-15%);}
}
@keyframes bounce-down {
    0% {transform: translateY(0);}
    100% {transform: translateY(-15%);}
}

.animate .animate--bounce-down {
    
    -webkit-animation-name: bounce-down;
       -moz-animation-name: bounce-down;
         -o-animation-name: bounce-down;
            animation-name: bounce-down;

}

@-webkit-keyframes bounce-left {
    0% {-webkit-transform: translateX(0);}
    100% {-webkit-transform: translateX(15%);}    
}

@-moz-keyframes bounce-left {
    0% {-moz-transform: translateX(0);}
    100% {-moz-transform: translateX(15%);}
}

@-o-keyframes bounce-left {
    0% {-o-transform: translateX(0);}
    100% {-o-transform: translateX(15%);}
}
@keyframes bounce-left {
    0% {transform: translateX(0);}
    100% {transform: translateX(15%);}
}

.animate .animate--bounce-left {
    
    -webkit-animation-name: bounce-left;
       -moz-animation-name: bounce-left;
         -o-animation-name: bounce-left;
            animation-name: bounce-left;

}

@-webkit-keyframes bounce-up {
    0% {-webkit-transform: translateY(0);}
    100% {-webkit-transform: translateY(15%);}    
}

@-moz-keyframes bounce-up {
    0% {-moz-transform: translateY(0);}
    100% {-moz-transform: translateY(15%);}
}

@-o-keyframes bounce-up {
    0% {-o-transform: translateY(0);}
    100% {-o-transform: translateY(15%);}
}
@keyframes bounce-up {
    0% {transform: translateY(0);}
    100% {transform: translateY(15%);}
}

.animate .animate--bounce-up {
    
    -webkit-animation-name: bounce-up;
       -moz-animation-name: bounce-up;
         -o-animation-name: bounce-up;
            animation-name: bounce-up;

}