/* load-in.css: critical styles for the intro sequence (original: .home-load-in-critical-styles embed). */

/* Lines */

.menu .tile-line.nav-l {
    transform: translate(0, -50%) scaleY(0);
    transform-origin: center top;
    background-color: var(--accent--tab);
}

.menu .tile-line.nav-r {
    transform: translate(0, -50%) scaleY(0);
    transform-origin: center bottom;
    background-color: var(--accent--tab);
}

.menu .tile-line.nav-t {
    transform: translate(50%, 0) scaleX(0);
    transform-origin: right center;
    background-color: var(--accent--tab);
}

.menu .tile-line.nav-b {
    transform: translate(50%, 0) scaleX(0);
    transform-origin: left center;
    background-color: var(--accent--tab);
}

.nav-tile.nav-tile-gridlines .tile-line {
		opacity: 0;
}

.nav-container.animating-in .nav-wrapper-gridlines {
		transition: opacity 1.5s ease-in-out 0.75s;
}

.nav-container:not(.final) .nav-wrapper-gridlines {
		opacity: 1;
}

.menu .tile-line.nav-l, .menu .tile-line.nav-r {
    height: 100vh;
}

.menu .tile-line.nav-t, .menu .tile-line.nav-b {
    width: 100vw;
}

/* Logo Draw In*/

.home-logo {
		width: 100%;
    height: 100%;
}

.home-logo path {
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1000 1000;
    stroke-dashoffset: 1000;
		fill: currentColor;
		fill-opacity: 0;
    stroke-width: 1px;
    stroke: var(--accent--tab);
    animation: drawIn 0.65s cubic-bezier(.4,0,.3,1) forwards 0.5s;
}

/* Emilia's logo has five shapes, drawn one after another (left block, centre
   column, then the bars from top to bottom). The last one ends at 1.75s, like the original
   single 1.25s draw, so the fill and the move into the corner keep their timing. */
.home-logo path:nth-child(2) { animation-delay: 0.65s; }
.home-logo path:nth-child(3) { animation-delay: 0.8s; }
.home-logo path:nth-child(4) { animation-delay: 0.95s; }
.home-logo path:nth-child(5) { animation-delay: 1.1s; }

@keyframes drawIn {
    to {
      	stroke-dashoffset: 0;
    }
}

/* Logo Movement and Fill */

.nav-container.animating-in .home-logo-container {
		transition: width 1.5s cubic-bezier(.5,0,0.05,1) 1s, height 1.5s cubic-bezier(.5,0,0.05,1) 1s, left 1.25s cubic-bezier(.5,0,0.3,1) 1.25s, bottom 1.25s cubic-bezier(.5,0,0.3,1) 1.25s;
}

.nav-container.final .home-logo-container {
    width: 91px;
    height: 91px;
    left: 45px;
    bottom: 44.5px;
}

@media (max-width: 991px) {
    .nav-container.final .home-logo-container {
        width: 66px;
        height: 66px;
        left: 32px;
        bottom: 31.5px;
    }
}

.nav-container.animating-in .home-logo path {
    transition: fill-opacity 0.75s ease-in-out 1.25s, stroke-opacity 0.5s ease-in-out 1.5s;
}

.nav-container.final .home-logo path {
		fill-opacity: 1;
    stroke-opacity: 0;
}

.nav-container.animating-in .nav-button-title-container {
		transition: opacity 1.25s ease-in-out 1.25s;
}

.nav-container:not(.final) .nav-button-title-container {
		opacity: 0;
}

.nav-button-svg {
		display: none !important;
}

