:root {
    --black: #020503;
    --green: #b9ff86;
    --fog: #cfdbd0;
    --dim: #718076;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--black);
    color: var(--fog)
}

button,
a {
    font: inherit
}

body:after {
    content: "";
    position: fixed;
    z-index: 30;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px)
}

header {
    position: absolute;
    z-index: 8;
    top: 0;
    left: 0;
    right: 0;
    height: 66px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

header>a {
    color: var(--green);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none
}

.lang {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--green);
    background: #020503b8;
    color: var(--green);
    font-weight: 800
}

.languages {
    position: fixed;
    z-index: 40;
    inset: auto 10px 10px;
    background: #050b07;
    border: 1px solid var(--green);
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
}

.languages[hidden] {
    display: none
}

.languages button {
    min-height: 52px;
    border: 1px solid #b9ff863b;
    background: transparent;
    color: var(--fog);
    text-align: left;
    padding: 0 11px
}

.languages button.active {
    background: var(--green);
    color: var(--black)
}

.hero {
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.08)
}

.hero:before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, #02050320 25%, #020503 98%)
}

.reticle {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 37%;
    width: 44vw;
    max-width: 240px;
    aspect-ratio: 1;
    border: 1px solid #b9ff8680;
    border-radius: 50%;
    transform: translate(-50%, -50%)
}

.reticle:before,
.reticle:after {
    content: "";
    position: absolute;
    background: #b9ff8680
}

.reticle:before {
    width: 140%;
    height: 1px;
    top: 50%;
    left: -20%
}

.reticle:after {
    height: 140%;
    width: 1px;
    left: 50%;
    top: -20%
}

.reticle i {
    position: absolute;
    inset: 28%;
    border: 1px solid var(--green);
    border-radius: 50%;
    animation: lock 2.3s ease-in-out infinite
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: 90px 18px 88px
}

.hero-copy>span,
.trail .intro>span,
.signal>span,
.exit>span {
    color: var(--green);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .16em
}

.hero h1,
.trail h2,
.signal h2,
.exit h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(3.4rem, 15vw, 7rem);
    line-height: .86;
    letter-spacing: -.07em;
    text-transform: uppercase;
    margin: .55rem 0 1rem
}

.hero-copy p,
.intro p,
.signal p {
    line-height: 1.65;
    max-width: 35rem
}

.hero-copy a,
.exit a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    padding: 0 18px;
    margin-top: 12px;
    background: var(--green);
    color: var(--black);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap
}

.hud {
    position: absolute;
    z-index: 4;
    left: 18px;
    right: 18px;
    bottom: 22px;
    display: flex;
    justify-content: space-between;
    color: var(--green);
    font-size: .58rem
}

.trail {
    padding: 95px 16px
}

.trail h2 {
    max-width: 9ch
}

.trail .intro p {
    color: #aab4ac
}

.trail>img {
    display: block;
    width: calc(100% + 32px);
    margin: 45px -16px 0;
    height: 62vw;
    min-height: 270px;
    object-fit: cover;
    filter: grayscale(.6) sepia(.3) hue-rotate(65deg)
}

.tracker {
    margin-top: 34px
}

.tracker button {
    width: 100%;
    min-height: 72px;
    border: 0;
    border-top: 1px solid #b9ff8638;
    background: transparent;
    color: var(--fog);
    display: grid;
    grid-template-columns: 55px 1fr;
    text-align: left;
    align-items: center
}

.tracker button span {
    color: var(--green);
    font-size: .7rem
}

.tracker button b {
    font-size: 1.1rem
}

.tracker button.active {
    background: var(--green);
    color: var(--black);
    padding-left: 10px
}

.tracker button.active span {
    color: var(--black)
}

.tracker p {
    color: var(--dim);
    font-size: .78rem;
    line-height: 1.6
}

.signal {
    min-height: 76dvh;
    position: relative;
    padding: 110px 18px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    border-block: 1px solid #b9ff8630
}

.signal h2 {
    max-width: 8ch
}

.wave {
    position: absolute;
    right: -25vw;
    width: 75vw;
    aspect-ratio: 1;
    border: 1px solid #b9ff8660;
    border-radius: 50%;
    box-shadow: 0 0 0 35px #b9ff8615, 0 0 0 70px #b9ff860c, 0 0 0 105px #b9ff8605
}

.signal>*:not(.wave) {
    position: relative
}

.exit {
    padding: 105px 18px;
    background: var(--green);
    color: var(--black)
}

.exit>span {
    color: var(--black)
}

.exit h2 {
    max-width: 8ch
}

.exit a {
    background: var(--black);
    color: var(--green)
}

footer {
    padding: 24px 18px;
    display: flex;
    justify-content: space-between;
    color: var(--dim);
    font-size: .62rem
}

@keyframes lock {
    50% {
        inset: 36%;
        opacity: .4
    }
}

@media(min-width: 800px) {
    header {
        padding: 0 5vw
    }

    .languages {
        left: auto;
        right: 5vw;
        top: 68px;
        bottom: auto;
        width: 430px
    }

    .hero-copy {
        padding: 110px 6vw
    }

    .trail {
        padding: 130px 8vw;
        display: grid;
        grid-template-columns: .8fr 1.2fr;
        gap: 6vw;
        align-items: end
    }

    .trail>img {
        width: 100%;
        height: 70vh;
        margin: 0;
        grid-column: 2;
        grid-row: 1/3
    }

    .tracker {
        grid-column: 1
    }

    .signal,
    .exit {
        padding: 10vw
    }

    .wave {
        width: 40vw;
        right: 5vw
    }

    footer {
        padding: 28px 5vw
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .reticle i {
        animation: none
    }
}