/* ------------- Canvas ------------------------*/
body {
    background-color: black;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* ------------- Navigation -------------------*/
.top-service {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 16px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 10pt;
    letter-spacing: .209em;
    white-space: nowrap;
    overflow-x: auto;
}

.top-nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 24px;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 10pt;
    letter-spacing: .209em;
}

.top-nav a {
    color: #7F7979;
    text-decoration: none;
}

.top-service h1 {
    margin: 0;
    color: #FDFDFD;
    font-size: 1.25rem;
    font-weight: 400;
}

.top-logo {
    display: block;
    flex: 0 0 auto;
    width: 120px;
    height: auto;
    margin-left: auto;
}

.top-nav a:first-child {
    color: #FDFDFD;
}

.top-nav a:not(:first-child):hover {
    color: #FFFFFF;
}


/* ------------- Hero ---------------------*/
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FDFDFD;
    font-family: "Montserrat", sans-serif;
}

.hero-logo {
    display: block;
    width: 180px;
    height: auto;
    opacity: 0;
    filter: blur(12px);
}

.wordmark {
    margin: 18px 0 0;
    font-size: 27px;
    font-weight: 100;
    letter-spacing: .275em;
    opacity: 0;
    filter: blur(12px);
}

/* ------------- Research ------------------*/
.mission-statement {
    margin: 15px 0 15px;
    color: #FDFDFD;
    font-family: "Montserrat", sans-serif;
    font-size: 20pt;
    font-weight: 300;
    text-align: center;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FDFDFD;
    font-family: "Montserrat", sans-serif;
}

.hero .mission-statement {
    opacity: 0;
}

.hero .mission-statement.is-visible {
    animation: blur-to-clear 1.2s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .hero .mission-statement {
        opacity: 1;
        filter: none;
        animation: none !important;
    }
}

/* ------------- Footer ------------------*/
.coming-soon {
    margin: 15px 0 50px;
    color: #FDFDFD;
    font-family: "Montserrat", sans-serif;
    font-size: 20pt;
    font-weight: 400;
    text-align: center;
}

.site-footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding: 20px 16px;
}
.site-footer > a,
.coming-soon,
.made-with {
    opacity: 0;
    filter: blur(12px);
}
.made-with {
    position: absolute;
    right: 16px;
    bottom: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #7F7979;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 12pt;
    line-height: 1;
}

.made-with img {
    display: block;
    width: 16px;
    height: 16px;
}

.site-footer img {
    display: block;
    width: 24px;
    height: 24px;
}

.site-footer a:first-child img {
    width: 44px;
    height: 39px;
}

.site-footer a:nth-child(2) img {
    width: 45px;
    height: 40px;
}

.site-footer a:nth-child(3) img {
    width: 68.5px;
    height: 47px;
}

.site-footer a:nth-child(4) img {
    width: 35px;
    height: 57px;
}

/*----------------Map ----------------------*/
.map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgb(0 0 0 / 62%);
}

.map-overlay[hidden] {
    display: none;
}

.map-image {
    display: block;
    width: min(50vw, 70vh, 720px);
    max-height: 60vh;
    object-fit: contain;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 55%);
    background: #000;
}

.map-close {
    position: absolute;
    top: clamp(12px, calc(50% - 23vh), 40vh);
    right: calc(50% - min(25vw, 35vh, 360px) - 26px);
    border: 0;
    background: transparent;
    color: #fff;
    font: 36px/1 "Montserrat", sans-serif;
    cursor: pointer;
}

@media (max-width: 600px) {
    .map-image {
        width: min(85vw, 60vh);
        max-height: 60vh;
    }

    .map-close {
        top: 15vh;
        right: 8vw;
    }
}


/* ------------- Animation ------------------*/
@keyframes blur-to-clear {
    from {
        opacity: 0;
        filter: blur(12px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .wordmark,
    .site-footer > a,
    .coming-soon,
    .made-with {
        opacity: 1;
        filter: none;
        animation: none !important;
    }
}

.hero-logo.is-visible,
.wordmark.is-visible,
.site-footer > a.is-visible {
    animation: blur-to-clear 1.2s ease-out forwards;
}

.wordmark.is-visible {
    animation-delay: 0.25s;
}

.site-footer > a:nth-of-type(2).is-visible {
    animation-delay: 0.15s;
}

.site-footer > a:nth-of-type(3).is-visible {
    animation-delay: 0.3s;
}

.coming-soon.is-visible,
.made-with.is-visible {
    animation: blur-to-clear 2.6s ease-out forwards;
}

.coming-soon.is-visible {
    animation-delay: 0.45s;
}

.made-with.is-visible {
    animation-delay: 0.7s;
}


