* {
    font-family: 'Bad Script', 'fot-klee-pro';
}

button {
    font-family: 'Bad Script', 'fot-klee-pro';
}

body,
html {
    height: 100%;
    min-height: 100%;
    background: #01247b;
    color: white;
    -webkit-font-smoothing: antialiased;
    font-size: calc(.2vw + 12px);
    line-height: 1.4;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span,
p span {
    vertical-align: middle;
}

h1 span + span,
h2 span + span,
h3 span + span,
h4 span + span,
h5 span + span,
h6 span + span,
p span + span {
    display: inline-flex;
    align-items: center;
}

h1 span + span::before,
h2 span + span::before,
h3 span + span::before,
h4 span + span::before,
h5 span + span::before,
h6 span + span::before,
p span + span::before {
    display: inline-block;
    content: "";
    width: 3.5em;
    height: 1px;
    background: white;
    margin: 0 0.5em 0 0.3em;
}

.h1,
.nav,
h1 {
    color: white;
    font-weight: 400;
    font-size: 2.4rem;
    margin-bottom: 0;
}

.nav,
h2,
h3 {
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0;
    padding-bottom: 0.6rem;
}

h4 {
    margin-bottom: 0;
    padding-bottom: 1.6rem;
}

a {
    color: inherit;
}

svg {
    fill: currentColor;
}

img,
svg {
    vertical-align: middle;
}

.logo {
    text-decoration: none;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
}

.header {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template: repeat(3, [row-start] minmax(25vh, 1fr))/repeat(12, [col-start] 1fr);
    will-change: transform, width;
    transition: 0.5s transform cubic-bezier(0.39, 0.575, 0.565, 1);
    -webkit-transition: 0.5s -webkit-transform cubic-bezier(0.39, 0.575, 0.565, 1);
}

@media (max-width: 700px) {
    .header {
        grid-template: repeat(3, [row-start] 1fr)/repeat(6, [col-start] 1fr);
    }
}

.header[data-menustate="open"] {
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    animation: expand 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
}

.header[data-menustate="open"] .grid-item {
    animation: shuffle 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
}

.header[data-menustate="open"] .logo {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#lady-block .header[data-menustate="open"] .grid-item {
    animation: lady-shuffle 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
}

.article {
    padding: 1.6rem 3rem 1.8rem 1.4rem;
}

.article + .article {
    margin-top: auto;
    padding-top: 0;
}

.article--align-right {
    text-align: right;
}

.rotate {
    display: inline-block;
    margin: 0;
}

.rotate--right {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform-origin: center right;
}

.object-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav,
.nav-toggle {
    position: absolute;
    color: white;
}

.nav {
    width: 50%;
    height: 100vh;
    right: 100%;
    z-index: 1;
    background: #01247b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    will-change: right;
    transition: 0.5s cubic-bezier(0.39, 0.575, 0.565, 1);
    -webkit-transition: 0.5s cubic-bezier(0.39, 0.575, 0.565, 1);
}

@media (max-width: 700px) {
    .nav {
        width: 100%;
    }
}

.nav span {
    text-decoration: none;
    will-change: color, blur;
    opacity: 0;
    filter: blur(2px);
    margin-left: 18vw;
}

.nav span + span {
    margin-top: 0.6em;
}

.nav[data-state="open"] {
    right: 50%;
    color: white;
}

@media (max-width: 700px) {
    .nav[data-state="open"] {
        right: 10%;
    }
}

.nav[data-state="open"] span {
    opacity: 1;
    margin-left: 20vw;
    filter: blur(0);
    font-size: 15px;
}

.nav[data-state="open"] div {
    width: 80%;
    margin-left: 70px;
    font-size: 20px;
}

@media (max-width: 420px) {
    .nav[data-state="open"] div {
        margin-left: 60px;
        font-size: 16px;
    }
}

.nav div {
    width: 80%;
    margin-left: 70px;
    font-size: 20px;
}

@media (max-width: 420px) {
    .nav div {
        margin-left: 60px;
        font-size: 16px;
    }
}

#lady-block .nav {
    background: #e0a4bc;
}

.nav-toggle {
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.nav-toggle svg {
    pointer-events: none;
}

.nav-toggle .icon--close {
    display: none;
}

.nav-toggle[data-menustate="open"] .icon--close {
    display: initial;
}

.nav-toggle[data-menustate="open"] .icon--menu {
    display: none;
}

.grid-item {
    background: #01247b;
    position: relative;
    will-change: border;
}

.grid-item::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    background: #01247b;
    animation: background-swipe-out 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.1s 1;
}

.grid-item--primary {
    grid-area: span 3 / span 6;
    display: grid;
    align-items: center;
    justify-items: start;
}

.grid-item--primary > .logo,
.grid-item--primary > img {
    grid-area: 1 / 1 / -1 / -1;
}

.grid-item--secondary {
    grid-area: span 2 / span 3;
    animation-duration: 1.4s;
}

.grid-item--tertiary {
    background: #439a74;
    grid-area: span 1 / span 2;
    animation-duration: 1.8s;
}

.grid-item--content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-item .logo {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

#lady-block .grid-item {
    background: #e0a4bc;
}

#lady-block .grid-item::after {
    background: #e0a4bc;
}

#lady-block .grid-item--tertiary {
    background: #bfad44;
}

.loading-overlay {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    margin: -200vh -200vw;
    will-change: transform, padding, opacity;
    animation: hide-overlay 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: hide-overlay 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.loading-overlay__content {
    position: relative;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    padding: 50vw 50vh;
    will-change: transform, padding, opacity;
    animation: rotate-expand-out 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: rotate-expand-out 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
}

.loading-overlay__content::after {
    content: "";
    position: absolute;
    z-index: -1;
    -webkit-perspective: -300;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #01247b;
    will-change: width;
    animation: background-swipe-in 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: background-swipe-in 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-transform: translate3d(0, 0, 0);
}

.loading-overlay-ios {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    margin: 0 -100vw;
    will-change: transform, padding, opacity;
    animation: hide-overlay 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: hide-overlay 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.loading-overlay-ios__content {
    position: relative;
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    padding: 50vw 50vh;
    will-change: transform, padding, opacity;
    animation: rotate-expand-out 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: rotate-expand-out 2.4s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
}

.loading-overlay-ios__content::after {
    content: "";
    position: absolute;
    z-index: -1;
    -webkit-perspective: -300;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #01247b;
    will-change: width;
    animation: background-swipe-in 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-animation: background-swipe-in 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 1;
    -webkit-transform: translate3d(0, 0, 0);
}

#lady-block .loading-overlay__content::after,
#lady-block .loading-overlay-ios__content::after {
    background: #e0a4bc;
}

@keyframes background-swipe-in {
    from {
        width: 0;
    }
}

@keyframes background-swipe-out {
    0%,
    65% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes rotate-expand-out {
    0%,
    100%,
    15%,
    30%,
    50%,
    65%,
    95% {
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
        padding: 0.2em 2em;
        opacity: 1;
    }
    30%,
    50% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        padding: 4em 2.4em;
    }
    65%,
    95% {
        transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
        padding: 50vw 50vh;
    }
    100% {
        transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
        padding: 50vw 50vh;
    }
}

@keyframes hide-overlay {
    0%,
    90% {
        opacity: 1;
        visibility: visible;
        background: white;
    }
    95% {
        background: transparent;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes expand {
    0%,
    100% {
        width: 100%;
    }
    50% {
        width: 110vw;
    }
}

@keyframes shuffle {
    0%,
    90% {
        border-left: 0 solid #01247b;
    }
    50% {
        border-left: 2vw solid #01247b;
    }
}

@keyframes lady-shuffle {
    0%,
    90% {
        border-left: 0 solid #e0a4bc;
    }
    50% {
        border-left: 2vw solid #e0a4bc;
    }
}

button {
    margin: 15px auto;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 100px;
    padding: 15px 20px;
    border: 0px solid #000;
}

/* Initiate Auto-Pulse animations */
button.pulse-button {
    animation: borderPulse 1000ms infinite ease-out, colorShift 10000ms infinite ease-in;
}

/* Initiate color change for pulse-on-hover */
button.pulse-button-hover {
    animation: colorShift 10000ms infinite ease-in;
}

/* Continue animation and add shine on hover */
button.pulse-button:hover,
button.pulse-button:focus {
    animation: borderPulse 1000ms infinite ease-out, colorShift 10000ms infinite ease-in, hoverShine 200ms;
}

/* Declate color shifting animation */
@keyframes colorShift {
    0%, 100% {
        background: #0045e6;
    }
    33% {
        background: #fb3e3e;
    }
    66% {
        background: #0dcc00;
    }
}

/* Declare border pulse animation */
@keyframes borderPulse {
    0% {
        box-shadow: inset 0px 0px 0px 5px rgba(255, 255, 255, 0.4), 0px 0px 0px 0px white;
    }
    100% {
        box-shadow: inset 0px 0px 0px 3px rgba(117, 117, 255, 0.2), 0px 0px 0px 10px rgba(255, 255, 255, 0);
    }
}

/* Declare shine on hover animation */
@keyframes hoverShine {
    0% {
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
    }
    50% {
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    }
    100% {
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.4) 100%);
    }
}
