@keyframes organic-cell {
    0% {
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Header */
.site_header {
    width: 100%;
    z-index: 10;
}

.site_header__row {
    position: relative;
    z-index: 3;
    pointer-events: none;
    margin-left: 0;
    margin-right: 0;
}

.site_header__row a {
    pointer-events: initial;
    display: block;
}

.site_logo a {
    display: inline-block;
}

.site_logo a svg path { 
    -o-transition: fill 150ms ease-in;
    -webkit-transition: fill 150ms ease-in;
    -moz-transition: fill 150ms ease-in;
    -ms-transition: fill 150ms ease-in;
    transition: fill 150ms ease-in;
}

.site_logo a:hover svg path {
    fill: #9B8E69;
}

/* Header Animation */
.header-active .site_header {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding-bottom: env(safe-area-inset-bottom);
}

.site_header__inside {
  padding-left: 1.818rem;
  padding-right: 1.818rem;
}

.header-overlay-text {
    position: absolute;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 999999 !important;
    font-size: 33px;
}

.stop-animation * {
    transition-delay: 250ms !important;
    transition-duration: 750ms !important;
}

.header-overlay-text p {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 200;
    color: #ffffff;
    font-size: 9.636em;
    line-height: 0.855;
    z-index: 99999;
    opacity: 0;
    
    transition: linear 1250ms opacity;
    transition-delay: 3250ms;
}

.breathing-in .header-overlay-text p {
    opacity: 1;
    transition: linear 650ms opacity;
    transition-delay: 350ms;
}

.animation-done .header-overlay-text {
    visibility: hidden;
}

.header-active .site_header__inside {
    height:100%;
}

.header_form {
    position: absolute;
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    right: 50%;
    top: 50%;
    z-index: 9999 !important;
    /* margin-right: -2.621rem;
    margin-top: -2.632rem; */
    width: 0rem;
    height: 0rem;  
    /* top: -5.364rem; */
    transition: linear 4750ms margin-top, linear 4750ms margin-right, linear 4750ms top, linear 4750ms right, linear 4750ms width, linear 4750ms height, linear 4750ms z-index;
}

.first-animation .header_form, 
.first-animation.breathing-out .header_form {   
    width: 5.242rem;
    height: 5.364rem;
    margin-right: -2.621rem;
    margin-top: -2.632rem;
}

.breathing-in .hader_form {
    width: 150vw;
    height: 150vh;
    height: calc(var(--vh, 1vh) * 150);
    margin-right: -75vw;
    margin-top: -75vh;
    margin-top: calc(var(--vh, 1vh) * -75);
    transition: linear 4750ms margin-top, linear 4750ms margin-right, linear 4750ms top, linear 4750ms right, linear 4750ms width, linear 4750ms height;
}

.breathing-out .header_form {   
    width: 5.242rem;
    height: 5.364rem;
    margin-right: -2.621rem;
    margin-top: -2.632rem;
}

.header_form svg {
    position: relative;
    width: 100%;
    height: 100%;

    animation: organic-cell ease-in-out 25s infinite;
    animation-play-state: paused;
}

.header_form svg path {
    fill: #FFEDBD;
}

.header_form {
    pointer-events: none;
}

.animation-done .header_form {
    pointer-events: initial;
    cursor: pointer; 
}

.animation-done .header_form svg {
    animation-play-state: running;
}

.animation-done .header_form {
    position: absolute;
    display: flex;
    justify-content: center;
    opacity: 1;
    align-items: center;
    /* top: 4.606rem;
    right: 13.455rem; */
}

.animation .header_form {
    opacity: 1;
}

.header_form p {    
    position: absolute;
    pointer-events: none;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px;

    
    transition: linear 250ms opacity;
    transition-delay: 150ms;
}

.animation-done .header_form p {
    opacity: 1;
}

.animation .site_header__row {
    z-index: -2;
}

.site_header__row .site_login {
    opacity: 0;
    margin-top: 1.394rem;
    transition: ease-in 450ms opacity;
}

.animation-done .site_header__row .site_login {
    opacity: 1;
}

.animation.breathing-in .header_form {
    width: 150vw;
    height: 150vh;
    height: calc(var(--vh, 1vh) * 150);
    margin-right: -75vw;
    margin-top: -75vh;
    margin-top: calc(var(--vh, 1vh) * -75);
}

.animation .header_form {
    z-index: -1;
}



/* @media screen and (max-width: 1160px) {
    .animation-done .header_form, .header_form, .first-animation .header_form {
        right: 20vw;
        top: 30vh;
    }
    .animation.breathing-in .header_form {
        top:-200vh;
    }
} */

/* @media screen and (min-width: 990px) {
    .site_wrapper:not(.header-active) #header {
        position: absolute;
    } 
} */
.site_scroll_down {
    position: absolute;
    width: 100%;
    max-width: 1628px;
    margin: 0 auto;
    left: 0px;
    box-sizing: border-box;
    right: 0px;
    z-index: 0;
    bottom: 0px;
    padding: 0 20px 0 20px;
    margin: 0 auto;
    height: 2rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    transition: opacity .5s ease-in-out; 
}

header {
    position: relative;
}

header .site_scroll_down a {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
    transition: all .25s cubic-bezier(0.38, 0.15, 0, 1);
    top: auto;
    bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0 auto;
    max-width: 78px;
    z-index: 999999;
    pointer-events: initial;
    cursor: pointer;
    text-align: center; 
}

.site_scroll_down a span {
    font-size: 0.5rem;
    line-height: 0.5rem;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.sd_0 {
    fill: none;
    stroke: #4B4B4B;
    stroke-width: 1.5;
}

a:hover .sd_0 {
    stroke: #F9C22E;
}

#sd_0 {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.5;
}


@media screen and (max-height: 1000px) {
    .header-overlay-text {
        font-size: 28px;
    } 
}

@media screen and (max-height: 900px) {
    .header-overlay-text {
        font-size: 25px;
    } 
}

@media screen and (max-height: 800px) {
    .header-overlay-text {
        font-size: 22px;
    } 
}

@media screen and (max-height: 700px) {
    .header-overlay-text {
        font-size: 18px;
    } 
}

@media screen and (max-height: 620px) {
    .header-overlay-text {
        font-size: 16px;
    } 
}

@media screen and (max-height: 600px) {
    .header-overlay-text {
        font-size: 14px;
    } 
}

@media screen and (max-height: 400px) {
    .header-overlay-text {
        font-size: 12px;
    } 
}