@charset "utf-8";

@font-face {
    font-family: 'Telegraph';
    src: url('../fonts/tel-regular.otf');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Telegraph';
    src: url('../fonts/tel-ultrabold.otf');
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
}

@font-face {
    font-family: 'Grotesk';
    src: url('../fonts/grotesk.woff');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
}

/* layout */

:root {
    --doc-height: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html {
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-overflow-scrolling: touch;
    font-size: 100%;
    box-sizing: border-box;
    color: #403C3D;
    height: 100vh;
    height: var(--doc-height);
}

body {
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-family: Telegraph, Arial, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 3.2vw;
    color: #403C3D;
    height: 100vh;
    height: var(--doc-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (orientation: landscape) {
    body {
        font-size: 1vw;
    }
}

#app {
    width: 100%;
    flex: 1 1 auto;
    overflow: scroll;
}

/* defaults */

input.submit, input.button, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: Telegraph, Arial, Tahoma, sans-serif;
}

a {
    text-decoration: none;
    transition: opacity 300ms ease;
    opacity: 1;
    color: #fff;
}

@media (orientation: landscape) {
    a:hover {
        text-decoration: underline;
    }
}

img {
    display: inline-block;
    width: 100%;
    height: auto;
}

article {
    height: 100vh;
    height: var(--doc-height);
    overflow: hidden;
    position: relative;
}

/* intro article */

article#intro {
    background-color: #D4D6D5;
    z-index: 5;
}

/* intro sky */

#intro-sky {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

#intro-sky-bg {
    position: absolute;
    width: 105%;
    height: 110%;
    top: 0;
    left: 0;
    z-index: 1;
    background-position: 50% 50%;
    background-size: cover;
    background-image: url(../gfx/sky-d.jpg);
    overflow: hidden;
    transform: translate(0, -10%);
    transition: opacity 3000ms ease, transform 3000ms ease;
    opacity: 0;
}

#intro-sky-bg.active {
    opacity: 1;
    transform: translate(-5%, 0);
}

/* header logo */

#intro-logo {
    position: absolute;
    width: 34vw;
    top: 7vw;
    left: 7vw;
    z-index: 2;
}

@media (orientation: landscape) {
    #intro-logo {
        position: absolute;
        width: 11vw;
        top: 3vw;
        left: 3vw;
        z-index: 2;
    }
}

/* header contacts scroll button */

#intro-con {
    position: absolute;
    width: 13vw;
    top: 7vw;
    right: 7vw;
    z-index: 2;
}

@media (orientation: landscape) {
    #intro-con {
        position: absolute;
        width: 4.16vw;
        top: 3vw;
        right: 3vw;
        z-index: 2;
    }
}

#intro-con img {
    transition: opacity 300ms ease, transform 300ms ease;
    z-index: 2;
    transform: scale(1, 1);
}

#intro-con img.hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 0;
}

@media (orientation: landscape) {
    #intro-con a:hover img {
        opacity: 1;
        transform: scale(1.2, 1.2);
    }
}

/* plane */

#intro-plane {
    position: absolute;
    width: 33vw;
    top: 75vh;
    left: 37vw;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: opacity 3000ms ease, left 3000ms ease, top 3000ms ease;
    opacity: 0;
    will-change: opacity, top, left;
}
@media (orientation: landscape) {
    #intro-plane {
        width: 13vw;
        top: 65vh;
        left: 47vw;
    }
}

#intro-plane.active {
    opacity: 1;
    top: 45vh;
    left: 50vw;
}

/* down arrow */

#intro-arrow {
    position: absolute;
    width: 14vw;
    bottom: 7vw;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: hovering 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}
@media (orientation: landscape) {
    #intro-arrow {
        width: 5.125vw;
        bottom: 3vw;
    }
}

#intro-arrow a {
    display: block;
    position: relative;
    padding: 3vw;
}
@media (orientation: landscape) {
    #intro-arrow a {
        padding: 1vw;
    }
}
@keyframes hovering {
    0% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, 0);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/* fly articles */

article#fly {
    background-color: transparent;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}
article#fly-second {
    background-color: #c2beb2;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.fly-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--doc-height);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background-position: 50% 50%;
    background-size: cover;
    overflow: hidden;
}

#fly-first-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 30;
    overflow: hidden;
    pointer-events: none;
}
#fly-first-layer .fly-wrapper {
    background-image: url(../gfx/forest-d.jpg);
}

#fly-second-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2;
    top: 0;
    left: 0%;
    pointer-events: none;
    overflow: hidden;
    pointer-events: none;
}
#fly-second-layer .fly-wrapper {
    background-image: url(../gfx/city-d.jpg);
}
.fly-text {
    color: #fff;
    text-align: center;
    font-size: 8.4vw;
    pointer-events: none;
    display: block;
}
@media (orientation: landscape) {
    .fly-text {
        font-size: 4.7vw;
    }
}

/* mission */

article#mission {
    background-color: #FFF;
    z-index: 5;
}

#mission-wrapper {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translate(0, -54%);
    left: 0;
    z-index: 1;
    padding: 0 8vw;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
}
@media (orientation: landscape) {
    #mission-wrapper {
        transform: translate(0, -50%);
        padding: 0 12.5vw;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: flex-start;
    }
}

/* mission photo */

#mission-photo {
    width: 64vw;
    flex: 0 0 auto;
}
@media (orientation: landscape) {
    #mission-photo {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* mission text */

#mission-text {
    position: relative;
    flex: 0 0 auto;
    padding: 15vw 0 0 0;
}
@media (orientation: landscape) {
    #mission-text {
        width: 50%;
        flex: 0 0 50%;
        padding: 0 6vw 0 9.5vw;
    }
}

#mission-text h1 {
    font-weight: 400;
    font-size: 4em;
    line-height: 0.9em;
    position: absolute;
    max-width: 60vw;
    display: block;
    top: -60vw;
    left: 41vw;
}
@media (orientation: landscape) {
    #mission-text h1 {
        font-weight: 400;
        margin: 0 0 0.4em 0;
        font-size: 4.8em;
        line-height: 0.9em;
        position: relative;
        max-width: auto;
        top: -0.6em;
        left: -2.4em;
    }
}
#mission-text p {
    font-family: Grotesk;
    font-weight: 400;
    color: #82868a;
    line-height: 1.7em;
    font-size: 0.75em;
}

/* contacts */

article#contacts {
    background-color: #BDBCBF;
    z-index: 5;
}

#contacts-wrapper {
    padding: 5vw 8vw 16vw;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 2;
    transition: transform 1000ms ease;
}
@media (orientation: landscape) {
    #contacts-wrapper {
        padding: 2vw 12.5vw 6vw;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        position: absolute;
        transform: translate(0, -50%);
        z-index: 2;
        transition: transform 1000ms ease;
    }
}

body.formsent #contacts-wrapper {
    transform: translate(-100%, -50%);
}
@media (orientation: landscape) {
    body.formsent #contacts-wrapper {
        transform: translate(-100%, -50%);
    }
}

#contacts-text {
    flex: 0 0 auto;
    padding: 0;
    position: relative;
}
@media (orientation: landscape) {
    #contacts-text {
        width: 50%;
        flex: 0 0 50%;
        padding: 0 10vw 0 0;
        position: relative;
    }
}

#contacts-text h1 {
    font-weight: 400;
    margin: 0 0 0.45em 0;
    font-size: 4em;
    line-height: 0.9em;
    position: relative;
    top: 0;
    left: -0.05em;
}
@media (orientation: landscape) {
    #contacts-text h1 {
        font-weight: 400;
        margin: 0;
        font-size: 4.8em;
        line-height: 0.9em;
        position: absolute;
        top: -1.7em;
    }
}

#contacts-text p {
    font-family: Grotesk;
    font-weight: 400;
    line-height: 1.7em;
    font-size: 0.75em;
    position: relative;
}

#contacts-form {
    flex: 0 0 auto;
    padding: 10vw 0 0 0;
}
@media (orientation: landscape) {
    #contacts-form {
        width: 50%;
        flex: 0 0 50%;
        padding: 0 5vw 0 0;
    }
}

/* form sent */

#contacts-sent {
    padding: 0 8vw;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translate(100%, -54%);
    z-index: 2;
    transition: transform 1000ms ease;
    text-align: center;
}
@media (orientation: landscape) {
    #contacts-sent {
        transform: translate(100%, -60%);
        justify-content: center;
        padding: 0 12.5vw;
    }
}
body.formsent #contacts-sent {
    transform: translate(0, -54%);
}
@media (orientation: landscape) {
    body.formsent #contacts-sent {
        transform: translate(0, -60%);
    }
}

#contacts-sent-text {
    position: relative;
    top: -2.5em;
}
@media (orientation: landscape) {
    #contacts-sent-text {
        top: 0;
    }
}
#contacts-sent-text h1 {
    font-weight: 400;
    margin: 0;
    font-size: 4em;
    line-height: 0.9em;
    margin-bottom: 0.5em;
}
@media (orientation: landscape) {
    #contacts-sent-text h1 {
        font-weight: 400;
        margin: 0;
        font-size: 4.8em;
        line-height: 0.9em;
        margin-bottom: 0.7em;
    }
}

#contacts-sent-text p {
    font-family: Grotesk;
    font-weight: 400;
    line-height: 1.7em;
    font-size: 0.75em;
    position: relative;
    max-width: 25em;
    margin: 0 auto 2em;
}
@media (orientation: landscape) {
    #contacts-sent-text p {
        margin: 0 auto 3em;
    }
}

#contacts-sent-text img {
    width: 26.6vw;
    height: auto;
    margin-bottom: 3em;
}
@media (orientation: landscape) {
    #contacts-sent-text img {
        width: 8vw;
        height: auto;
        margin-bottom: 4em;
    }
}

#contacts-sent-text button {
    padding-left: 4em;
    padding-right: 4em;
}

/* contacts footer */

#contacts-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 4vw 8vw;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    font-size: 1.1em;
}
@media (orientation: landscape) {
    #contacts-footer {
        padding: 2vw 12.5vw;
        font-size: 1.25em;
    }
}
.contacts-footer-block {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    width: 50%;
    flex: 0 0 50%;
}
@media (orientation: landscape) {
    .contacts-footer-block {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        width: 50%;
        flex: 0 0 50%;
    }
}
.contacts-footer-block div:first-child {
    margin-bottom: 2vw;
}
@media (orientation: landscape) {
    .contacts-footer-block div:first-child {
        margin-right: 5vw;
        margin-bottom: 0;
    }
}

#contacts-plane {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-position: 22% 30%;
    background-size: auto 130%;
    background-image: url(../gfx/plane-d.jpg?c=1);
    will-change: transform;
}
@media (orientation: landscape) {
    #contacts-plane {
        background-size: cover;
        background-position: 50% 0%;
    }
}

/* form */

input, textarea {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    background-color: rgba(255, 255, 255, 0.69);
    font-size: 1em;
    padding: 0.7em;
    border-radius: 0;
    font-family: Telegraph, Arial, Tahoma, sans-serif;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}
@media (orientation: landscape) {
    input, textarea {
        font-size: 1.1em;
        padding: 1em;
    }
}
@media (orientation: landscape) {
    input:hover, textarea:hover {
        border: 1px solid #fff;
    }
}
textarea {
    height: 7em;
}
@media (orientation: landscape) {
    textarea {
        height: 10em;
    }
}
button {
    color: #413d3e;
    margin: 0;
    padding: 1.2em 2em 0.8em;
    vertical-align: middle;
    border: 0;
    background-color: #fff;
    border-radius: 0;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 300ms ease;
}
@media (orientation: landscape) {
    button {
        padding: 1.4em 2.3em 1.1em;
        font-size: 1.1em;
        font-weight: 700;
    }
}
@media (orientation: landscape) {
    button:hover {
        background-color: #01b7ff;
        color: #fff;
    }
}
button img {
    height: 1.4em;
    width: auto;
    position: relative;
    left: -0.5em;
    top: -0.1em;
    margin-right: 0.8em;
}
@media (orientation: landscape) {
    button img {
        top: 0;
    }
}
button img.hover {
    display: none;
}
@media (orientation: landscape) {
    button:hover img.hover {
        display: inline;
    }
    button:hover img.still {
        display: none;
    }
}
.form-item {
    position: relative;
    margin-bottom: 0.5vw;
}
@media (orientation: landscape) {
    .form-item {
        margin-bottom: 0.2vw;
    }
}
.form-item-button {
    margin-top: 1vw;
}
.form-item-double {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
}
.form-item-double > div {
    width: 50%;
    flex: 0 0 50%;
}
.form-item-double > div:first-child {
    padding-right: 0.5vw;
}
@media (orientation: landscape) {
    .form-item-double > div:first-child {
        padding-right: 0.2vw;
    }
}

::-webkit-input-placeholder {
    color: #ddd;
}
::-moz-placeholder {
    color: #000;
}
:-ms-input-placeholder {
    color: #000;
}
:-moz-placeholder {
    color: #000;
}
::placeholder {
    color: #999;
}

.activabledelay {
    transition: opacity 800ms ease;
    opacity: 0;
}
.activabledelay.activedelay {
    opacity: 1;
}

/* form error */

#form-error, #form-email-error {
    position: absolute;
    top: 0.5em;
    left: 55%;
    z-index: 1;
    color: #fff;
}
@media (orientation: landscape) {
    #form-error, #form-email-error {
        top: 1em;
    }
}
#form-error span, #form-email-error span {
    font-size: 0.8em;
    position: relative;
    top: 0.6em;
}
@media (orientation: landscape) {
    #form-error span, #form-email-error span {
        font-size: 1em;
        top: 0.5em;
    }
}
#form-error img, #form-email-error img {
    height: 2em;
    width: auto;
    position: relative;
    top: -0.1em;
    vertical-align: middle;
    margin-right: 0.5em;
}
