/* FONTS */
@font-face {
    font-family: default-font;
    src: url(../fonts/subset-Roboto-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: default-font;
    src: url(../fonts/subset-Roboto-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: icon-font;
    src: url(../fonts/icon-font.ttf);
    font-weight: 400;
}

/* KEYFRAMES */
@keyframes pulse {
    from {
        transform: scale(0);
        border-width: 1em;
    }
    to {
        transform: scale(1.33);
        border-width: 0;
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* MAIN */
:root{
    --navy: #2a3d4f;
    --yellow: #fdb913;
}

html {
	background-color: #f2f2f2;
	color:#1C2B39;
	-webkit-font-smoothing: antialiased;
    overflow: hidden;
}

body {
    margin: 0;
	font-family: default-font, sans-serif;
	font-size: 14px;
	line-height: 1.5em;
    display: flex;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* GENERAL */
p {
	margin: 20px 0;
}

ul,
ol{
    margin: 20px 0;
    padding-left: 20px;
}

li{
	margin: 15px 0;
}

hr {
	margin: 30px 0;
	height: 1px;
	border: 0;
	background-color: currentColor;
    opacity: 0.2;
}

a {
	color: var(--yellow);
	text-decoration: none;
    outline: 0;
	cursor: pointer;
}

a:hover,
a:focus-visible{
	text-decoration: underline;
}

.button{
	display: inline-block; vertical-align: middle;
	max-width: 100%;
    margin: 0;
	padding: 15px 20px;
	box-sizing: border-box;
	border-radius: 0;
	border: 0;
    outline: 0;
	text-align: center;
	font-family: inherit;
    font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
	color: #ffffff;
	background-color: var(--yellow);
	cursor:pointer;
}

.button:hover,
.button:focus{
    color: #ffffff;
	background-color: var(--yellow);
}

img,
svg,
video{
	width:auto;
	max-width: 100%;
	height:auto;
    vertical-align: top;
}

h1, h2, h3, h4{
	margin: 30px 0 20px 0;
}

h1,
.h1{
	font-size: 30px;
	line-height: 1.2em;
    font-weight: 400;
}

h2,
.h2{
	font-size: 25px;
	line-height: 1.2em;
    font-weight: 700;
}

h3,
.h3{
	font-size: 20px;
	line-height: 1.2em;
    font-weight: 700;
}

h4,
.h4{
	font-size: 15px;
	line-height: 1.2em;
    font-weight: 700;
}

@media screen and (max-width: 60em) {
    h1,
    .h1{
        font-size: 30px;
        line-height: 1.2em;
    }

    h2,
    .h2{
        font-size: 25px;
        line-height: 1.2em;
    }
}

/* ICON FONT */
.icon-font{
    font-family: icon-font;
    font-weight: 400;
}

/* HEADER */
header{
    z-index: 1;
}

header .toggle-button {
    position: fixed; top: 0; right: 0; z-index: 1;
    display: none;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-align: center;
    background-color: var(--yellow);
    color: var(--navy);
    cursor: pointer;
}

header .toggle-button:hover,
header .toggle-button:focus-visible {
    color: #ffffff;
}

header .toggle-button span {
    position: absolute; bottom: 0; left: 0; right: 0;
    width: 50%;
    height: 2px;
    margin: -1px auto;
    background-color: currentColor;
    transition: top 0.1s 0.1s,transform 0.1s,visibility 0s 0.1s
}

header.open .toggle-button span {
    transition: top 0.1s,transform 0.1s 0.1s,visibility 0s 0.1s
}

header .toggle-button span:nth-child(1) {
    top: 30%
}

header .toggle-button span:nth-child(2) {
    top: 50%
}

header .toggle-button span:nth-child(3) {
    top: 70%
}

header.open .toggle-button span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg)
}

header.open .toggle-button span:nth-child(2) {
    top: 50%;
    visibility: hidden
}

header.open .toggle-button span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg)
}

header nav{
    display: flex; flex-direction: column;
    width: 220px;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) transparent;
    background-color: var(--navy);
    color: #ffffff;
}

header .map{
    display: flex; align-items: center; gap: 15px;
    padding: 15px;
    color: currentColor;
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

header .map::after{
    content: "";
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    position: absolute; bottom:0; left: 0; right: 0;
}

header .map:hover,
header .map:focus-visible{
    color: var(--yellow);
}

header .menu{
    flex-grow: 1;
    position: relative;
    transform: translate(0, 0);
}

header .menu ul{
    position: fixed; top: 0; left: -100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    visibility: hidden;
    overflow: hidden;
    transition: left 0.3s, visibility 0s 0.3s;
}

header .menu ul.active{
    left: 0;
    visibility: visible;
    overflow: visible;
    transition: left 0.3s;
}

header .menu ul.active ul{
    left: 100%;
}

header .menu li{
    margin: 0;
    padding: 0;
}

header .menu a{
    display: flex; align-items: center; gap: 15px;
    padding: 15px;
    color: currentColor;
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

header .menu a::after{
    content: "";
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    position: absolute; bottom:0; left: 0; right: 0;
}

header .menu a:hover,
header .menu a:focus-visible{
    color: var(--yellow);
}

header .menu a .icon-font{
    color: var(--yellow);
    line-height: 1em;
}

header .menu a .icon-font:last-child{
    margin-left: auto;
}

@media screen and (max-width: 75em) {
    header .toggle-button{
        display: block;
    }
    header nav{
        position: fixed; top: 0; right: 100%;
        visibility: hidden;
        transition: transform 0.3s, box-shadow 0.3s, visibility 0s 0.3s;
    }
    header.open nav{
        visibility: inherit;
        transform: translateX(100%);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    header .menu ul.active{
        visibility: hidden;
        transition: left 0.3s, visibility 0s 0.3s;
    }
    header.open .menu ul.active{
        visibility: visible;
        transition: left 0.3s;
    }
}

/* MAIN */
main{
    width: 0;
    flex-grow: 1;
    position: relative;
}

main::after{
    content: "";
    display: block;
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    width: 40px;
    height: 40px;
    margin: auto;
    border: 5px solid var(--yellow);
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

main.loading::after{
    visibility: inherit;
    opacity: 1;
    transition: opacity 0.3s;
}

/* FOOTER */
footer{
    position: fixed; bottom: 15px; right: 15px;
}

/* PAGE */
.page{
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) transparent;
}

.page > .inner{
    display: flex; flex-direction: column; gap: 30px;
    min-height: 100%;
    padding: min(5%, 40px);
    padding-top: 30px;
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.page .header{
    transition: opacity 0.3s;
    @starting-style {
        opacity: 0;
    }
}

main.out .page .header{
    opacity: 0;
}

.page .header > .inner{
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
    margin: 0 -25px;
}

.page .header .left{
    width: 0;
    flex-grow: 1;
    margin: -30px 0;
}

.page .header .right{
    width: 300px;
    margin: -30px 0;
}

.page .header .left > .inner{
    max-width: 900px;
    margin: 30px 0;
    padding: 0 25px;
}

.page .header .right > .inner{
    margin: 30px 0;
    padding: 0 25px;
}

.page .header .heading{
    padding-right: 50px;
}

.page .header .heading::after{
    content: "";
    display: block;
    max-width: 120px;
    height: 3px;
    margin-top: 10px;
    background-color: var(--yellow);
}

.page .header .hotspot{
    position: relative;
    display: inline-flex;
    gap: 10px;
    margin: 0;
    padding: 10px;
    padding-right: 15px;
    border-radius: 100vw;
    background-color: var(--navy);
    color: #ffffff;
}

@media screen and (max-width: 75em) {
    .page .header .right{
        width: 100%;
    }
}

/* LINES */
.lines{
    position: absolute; top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.lines .line{
    fill: none;
    stroke: currentColor;
    stroke-dasharray: 1;
    transition: stroke-dashoffset 1s;
    @starting-style {
        stroke-dashoffset: -1;
    }
}

/* HOTSPOT */
.hotspot{
    display: flex; align-items: center; gap: 2em;
    margin: 0 0 0 -3em;
    position: absolute;
    color: currentColor;
    transition: opacity 0.5s 0.5s;
    @starting-style {
       opacity: 0;
    }
}

.hotspot.align-top{
    align-items: flex-start;
}

.hotspot.align-bottom{
    align-items: flex-end;
}

.hotspot.reverse{
    flex-direction: row-reverse;
    margin: 0 -3em 0 0;
    text-align: right;
}

.hotspot:hover,
.hotspot:focus-visible{
    text-decoration: none;
    color: currentColor;
}

.hotspot .content{
    display: flex; flex-direction: column; gap: 0.5em;
    white-space: nowrap;
}

.hotspot .spot{
    display: block;
    width: 2em;
    height: 2em;
    flex-shrink: 0;
    margin: 0;
    position: relative;
}

.hotspot .spot::before,
.hotspot .spot::after{
    content: "";
    display: block;
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    border-radius: 50%;
    border: 0.25em solid #ffb91d;
    box-sizing: border-box;
    transform: scale(1);
}

.hotspot .spot::after{
    border-width: 0.75em;
    transform: scale(0.33);
}

a.hotspot:hover .spot::before,
a.hotspot:focus-visible .spot::before{
    animation: pulse 1.2s linear -0.3s infinite;

}

a.hotspot:hover .spot::after,
a.hotspot:focus-visible .spot::after{
    animation: pulse 1.2s linear -0.9s infinite;
}

/* COMPONENT */
.component{
    display: block;
	position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 1;
    max-width: 90%;
    max-height: 90%;
    width: 600px;
	margin: auto;
    padding: 0;
	border: 0;
	outline: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) transparent;
	background-color: rgba(42, 61, 79, 0.9);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
	opacity: 0;
    transform: scale(0.5);
	transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
    transition-timing-function: ease-in;
}

.component[open]{
	visibility: inherit;
	opacity: 1;
    transform: none;
    transition: opacity 0.3s, transform 0.3s;
    transition-timing-function: ease-out;
}

.component .columns{
    display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 15px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.component .close-button{
    float: right;
    display: block;
    position: relative;
    width: 50px;
    height: 50px;
    margin: -15px -15px 0 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-align: center;
    background-color: transparent;
    color: currentColor;
    cursor: pointer;
}

.component .close-button:hover,
.component .close-button:focus-visible{
    color: var(--yellow);
}

.component .close-button::before {
    content: "";
    position: absolute; top: 50%; left: 0; right: 0;
    width: 50%;
    height: 2px;
    margin: -1px auto;
    background-color: currentColor;
    transform: rotate(45deg)
}

.component .close-button::after {
    content: "";
    position: absolute; top: 50%; left: 0; right: 0;
    width: 50%;
    height: 2px;
    margin: -1px auto;
    background-color: currentColor;
    transform: rotate(-45deg)
}

.component .image{
    width: 100px;
    flex-grow: 1;
}

.component .image img{
    width: 100%;
}

.component .content{
    flex-basis: 200px;
    flex-grow: 1;
    margin: -30px 0;
}

.component .content > .inner{
    margin: 30px 0;
}

/* MAP */
#map{
    margin: auto;
    position: relative;
    font-size: min(0.8vw, 14px);
    line-height: 1.4em;
    transition: transform 0.3s, opacity 0.3s;
    @starting-style {
        opacity: 0;
    }
}

main.forwards #map{
    transition-timing-function: ease-out;
    @starting-style {
        transform: scale(0.5);
    }
}

main.backwards #map{
    transition-timing-function: ease-out;
    @starting-style {
        transform: scale(2);
    }
}

main.out #map{
    opacity: 0;
}

main.out.forwards #map{
    transition-timing-function: ease-in;
    transform: scale(2);
}

main.out.backwards #map{
    transition-timing-function: ease-in;
    transform: scale(0.5);
}

#map .plane{
    position: absolute; top: 0; right: 0;
    margin-top: -15%;
    width: 30%;
    transition: transform 1s ease-out;
    @starting-style {
        transform: translate(100%, -100%);
    }
}

/* MACHINE */
#machine{
    margin: auto;
    position: relative;
    font-size: min(0.8vw, 14px);
    line-height: 1.4em;
    transition: transform 0.3s, opacity 0.3s;
    @starting-style {
        opacity: 0;
    }
}

main.forwards #machine{
    transition-timing-function: ease-out;
    @starting-style {
        transform: scale(0.5);
    }
}

main.backwards #machine{
    @starting-style {
        opacity: 1;
    }
}

main.out #machine{
    opacity: 0;
}

main.out.forwards #machine{
    opacity: 1;
}

main.out.backwards #machine{
    transition-timing-function: ease-in;
    transform: scale(0.5);
}

#machine .background{
    opacity: 0;
    transition: opacity 0.3s;
}

main.backwards #machine .background{
    @starting-style {
        opacity: 1;
    }
}

main.out.forwards #machine .background{
    opacity: 1;
}

#machine .overlay{
    position: absolute; top: 0; bottom: 0; left: 0; right: 0;
    transition: opacity 0.3s;
}

main.backwards #machine .overlay{
    @starting-style {
        opacity: 0;
    }
}

main.out.forwards #machine .overlay{
    opacity: 0;
}

/* COMPONENTS */
#components{
    margin: auto;
    position: relative;
    font-size: min(0.8vw, 14px);
    line-height: 1.4em;
    transition: opacity 0.3s;
    @starting-style {
        opacity: 0;
    }
}

main.forwards #components{
    @starting-style {
        opacity: 1;
    }
}

main.out #components{
    opacity: 0;
}

main.out.backwards #components{
    opacity: 1;
}

#components .background{
    width: 100%;
}

#components .overlay{
    position: absolute; top: 0; left: 0;
    width: 100%;
    transition: opacity 0.3s;
}

main.forwards #components .overlay{
    @starting-style {
        opacity: 0;
    }
}

main.out.backwards #components .overlay{
    opacity: 0;
}