
* {
    margin: 0;
    padding: 0;

    resize: none;
    outline: none;

    border: 0;
    border-radius: 0;

    box-sizing: border-box;
}

html,
body {
    font-size: 10px;
    line-height: 10px;

    background: #082621;
    background-image: url(images/bg2.jpg);
    background-size: 100%;
    background-position: center bottom;
    background-attachment: fixed;
}

h1 {
  margin-block: 0.67em;
  font-size: 2em;
}


.wrapper {
    width: calc(100% - 40px);
    margin: 0 auto;
    max-width: 1190px;
}

.for-display {
    speak: none;
}

.for-sreader {
    width: 0;
    height: 0;

    font-size: 14px;
    line-height: 16px;
    text-indent: -5000vw;

    overflow: hidden;
}


/** intro **/

@keyframes intro-arrows {
    0%   { opacity: 0; transform: translate3d(0,-20%,0) }
    25%  { opacity: 1; transform: translate3d(0,-10%,0) }
    50%  { opacity: 1; transform: translate3d(0,  0%,0) }
    75%  { opacity: 1; transform: translate3d(0, 10%,0) }
    100% { opacity: 0; transform: translate3d(0, 20%,0) }
}

#intro {
    z-index: 1;

    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

#intro .bg {
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;

    z-index: 1;
    position: absolute;

    background: url(images/bg.jpg);
    background-size: cover;
    background-position: center;
}

#intro .bg:after {
    inset: 0;
    opacity: 0.86;

    content: '';
    display: block;
    position: absolute;

    mix-blend-mode: multiply;
    background-color: #0b2c26;
}

#intro .text {
    z-index: 2;
    position: relative;
}

#intro .text p,
#intro .text h1,
#intro .text .tagline {
    color: #a49915;

    font-size: 3.2rem;
    font-weight: 400;
    line-height: 4.7rem;
    font-family: 'Lexend Zetta', sans-serif;

    text-align: center;
    text-transform: uppercase;
}

#intro .text p {
    color: #ffffff;

    font-size: 2.0rem;
    font-weight: 300;
    line-height: 3.4rem;

    margin-top: 6.0rem;
}

#intro .text .tagline {
    color: #ffffff;

    font-size: 7.2rem;
    font-weight: 900;
    line-height: 7.2rem;

    text-shadow: 0 0 0.6em black,
                 0 0 0.6em black,
                 0 0 0.6em black,
                 0 0 0.6em black,
                 0 0 0.6em black;

    margin-bottom: 10rem;
}

#intro .text svg {
    display: block;

    width: 19.4rem;
    height: auto;
    margin: 5.0rem auto 0;

    overflow: visible;
}

#intro .text svg path {
    animation: intro-arrows 1s linear forwards infinite;
    animation-fill-mode: backwards;
    backface-visibility: hidden;
}

#intro .text svg path:nth-child(1) {
    animation-delay: 0.25s;
}


/** form **/

@keyframes form-bounce {
      0% { transform: translate3d(0, 0rem,0) }
     50% { transform: translate3d(0,-1rem,0) }
    100% { transform: translate3d(0, 0rem,0) }
}

@keyframes form-pin {
      0% { transform: translate3d(0, 0rem,0) }
     50% { transform: translate3d(0,-1rem,0) }
    100% { transform: translate3d(0, 0rem,0) }
}

#form {
    z-index: 2;
    position: relative;

    padding: 10rem 3rem 18rem;
    margin-top: -8.0rem;
    border-radius: 3.6rem 3.6rem 0 0;

    background: #0b2c26;
    box-shadow: 0 -0.2rem 0.4rem rgba(0,0,0, 0.1);
}

#form.bounce {
    animation: form-bounce 1s both cubic-bezier(0.215, 0.61, 0.355, 1);
}

#form h2 {
    color: #a49915;

    font-size: 2.0rem;
    font-weight: 300;
    line-height: 2.8rem;
    font-family: 'Lexend Zetta', sans-serif;

    text-align: center;
    text-transform: uppercase;
}

#form form {
    margin: 3.6rem auto 6.8rem;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;

    max-width: 500px;
}

#form form .field {
    width: calc(50% - 0.8rem);
    margin: 0 0 1rem;
    position: relative;
}

#form form .field:nth-child(1) { width: 100% }

.error-message,
#form form .field label,
#form form .field input {
    color: #0b2c26;

    font-size: 1.2rem;
    font-weight: 400;
    line-height: 4.5rem;
    font-family: 'Lexend Zetta', sans-serif;
}

#form form .field label {
    top: 0;
    left: 1.3rem;

    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;

    position: absolute;
    transition: transform 0.15s linear;
}

#form form .field label.filled {
    transform: scale(0.8) translateY(-1rem);
    transform-origin: top left;
}

#form form .field input {
    background: #e9c18f;

    width: 100%;
    padding: 0 1.3rem;

    border-radius: 1.1rem;
}

#form form .button {
    width: 100%;
    margin: 3.0rem 0 0;
}

#form form .button button {
    color: #9d9316;
    background: #0b2c26;

    width: 100%;
    cursor: pointer;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 4.5rem;
    font-family: 'Lexend Zetta', sans-serif;

    text-align: center;
    text-transform: uppercase;

    border: 1px solid #e9c18f;
    border-radius: 1.1rem;

    transition: transform 0.3s ease-out;
}

#form p {
    color: #8e8819;

    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.8rem;
    font-family: 'Lexend Zetta', sans-serif;

    text-align: center;
}

#form img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 1.1rem;
}

#form .map {
    margin: 4.0rem auto 0;
    max-width: 68.0rem;
    position: relative;
}

#form .map img:first-child {
    top: 0;
    left: 0;
    position: absolute;
    animation: form-pin 5s forwards infinite ease-in-out;
}

#form .logo {
    width: 28rem;
    height: auto;
    margin: 8.0rem auto 0;
    display: block;
}

.error-message {
    color: #ff5656;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

.error-message.success {
    color: #bbffc7;
    margin: 2rem 0 0;
    text-align: center;
    font-size: 1.3rem;
}


@media (any-hover: hover) {
    #form form .button button:hover {
        transform: scale(1.05);
    }
}


/** responsive **/

@media (max-width: 1190px) {
    html,
    body {
        font-size: 8px;
        line-height: 8px;
    }

    .wrapper {
        width: calc(100% - 30px);
        max-width: 880px;
    }
}

@media (max-width: 990px) {
    #intro .text {
        max-width: calc(100% - 40px);
    }

    #intro .text br {
        display: none;
    }

    #intro .text .tagline {
        font-size: 4.2rem;
        line-height: 4.2rem;
    }

    #form {
        padding: 5rem 3rem 18rem;
        margin-top: -5.0rem;
    }

    #form form .field {
        width: 100%;
    }
}

@media (max-width: 590px) {
    #form p br {
        display: none;
    }
}

@media (min-width: 530px) and (max-width: 990px) {
    #intro .text .tagline {
        font-size: 6.2rem;
        line-height: 6.2rem;
    }
}

#intro .text .tagline br {
    display: block !important;
}


@media (min-width: 1000px) {
    #intro .text .tagline {
        font-size: 10.2rem;
        line-height: 10.2rem;
    }
}
