:root {
    color-scheme: dark;
    --ink: #090f17;
    --ivory: #f5f0e8;
    --muted: #a4acb8;
    --amber: #eab77d;
    --line: #ffffff1c;
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    background: var(--ink);
    color: var(--ivory);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

body.mobile-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

button, input {
    font: inherit;
}

a {
    color: inherit;
}

button, a, input {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--amber);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 5px;
}

.frontier-app {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: .8rem 1rem;
    background: var(--ivory);
    color: var(--ink);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: #090f17eb;
}

.header-inner, .footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 56px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-mark {
    width: 48px;
    height: 48px;
}

.brand-type {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-name {
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .21em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-navigation ul {
    display: flex;
    gap: 27px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation button {
    background: none;
    border: 0;
    padding: 12px 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .015em;
    cursor: default;
    opacity: 1;
}

.navigation-caption {
    color: var(--amber);
    font-family: ui-monospace, monospace;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid #eab77d3b;
    border-radius: 3px;
    padding: 5px 7px;
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

.frontier-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 104px max(56px, calc((100% - 1208px) / 2)) 114px;
    flex: 1;
    min-height: 670px;
}

.frontier-shell:focus {
    outline: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 525px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: var(--amber);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.signal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 12px #eab77d66;
}

.frontier-shell h1 {
    font-size: clamp(3.5rem, 6.2vw, 5.5rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.055em;
    margin: 0 0 25px;
    max-width: 11ch;
    overflow-wrap: anywhere;
}

.text-accent {
    color: var(--amber);
    display: block;
}

.lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
    max-width: 410px;
    margin: 0;
    text-wrap: pretty;
}

.entry-note {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    margin: 23px 0 0;
}

.entry-note > span {
    color: var(--amber);
    font-size: 15px;
}

.return-link {
    display: inline-flex;
    gap: 24px;
    color: var(--amber);
    margin-top: 32px;
    text-underline-offset: 5px;
}

.planet-vista {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 87%;
    overflow: hidden;
    pointer-events: none;
}

.planet-vista::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ink) 0%, #090f1780 24%, transparent 50%), linear-gradient(0deg, var(--ink), transparent 20%, transparent 85%, #090f1766);
}

.planet-vista > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .92;
}

.vista-label {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 1;
    left: 64%;
    top: 63%;
    gap: 12px;
    font-family: ui-monospace, monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .13em;
    text-shadow: 0 1px 6px var(--ink);
}

.vista-label-detail {
    display: block;
    color: #c3c8d1;
    margin-top: 8px;
    font-size: 8px;
    letter-spacing: .08em;
}

.crosshair {
    width: 22px;
    height: 22px;
    position: relative;
    border: 1px solid #f5f0e850;
    border-radius: 50%;
}

.crosshair::before, .crosshair::after {
    content: "";
    position: absolute;
    background: var(--ivory);
}

.crosshair::before {
    width: 1px;
    height: 10px;
    top: 5px;
    left: 10px;
}

.crosshair::after {
    width: 10px;
    height: 1px;
    top: 10px;
    left: 5px;
}

.vista-caption {
    position: absolute;
    z-index: 1;
    right: 8%;
    bottom: 56px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .2em;
}

.hero-coordinate {
    position: absolute;
    bottom: 54px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-coordinate > span:first-child {
    font-size: 11px;
    color: var(--amber);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #0c131c;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 124px;
    gap: 24px;
}

.footer-message {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-message p {
    font-size: 14px;
    margin: 0;
}

.footer-message p > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 7px;
}

.small-orbit {
    display: block;
    position: relative;
    width: 31px;
    height: 31px;
    border: 1px solid #eab77d80;
    border-radius: 50%;
    transform: rotate(-35deg);
}

.small-orbit::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 13px;
    left: -8px;
    top: 7px;
    border: 1px solid #eab77d80;
    border-radius: 50%;
}

.footer-signature {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.7;
}

.footer-signature > span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .1em;
    margin-top: 6px;
}

@media (min-width: 1440px) {
    .frontier-shell {
        padding-left: 116px;
        padding-right: 116px;
    }

}

@media (max-width: 1050px) {
    .main-navigation ul {
        gap: 18px;
    }

    .navigation-caption {
        display: none;
    }

    .header-inner, .footer-inner {
        padding-inline: 36px;
    }

    .frontier-shell {
        padding-inline: 36px;
    }

    .hero-content {
        max-width: 490px;
    }

    .planet-vista {
        width: 95%;
        opacity: .8;
    }

}

@media (max-width: 760px) {
    .header-inner {
        min-height: 88px;
        padding-inline: 24px;
        flex-wrap: wrap;
        column-gap: 12px;
        row-gap: 0;
    }

    .brand {
        gap: 10px;
        min-height: 88px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: .17em;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: #ffffff04;
        color: var(--ivory);
        cursor: pointer;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 18px;
    }

    .menu-icon > span {
        display: block;
        width: 18px;
        height: 1px;
        background: currentColor;
    }

    .menu-icon.is-open > span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-icon.is-open > span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.is-open > span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu:not([open]) {
        display: none;
    }

    .mobile-menu[open] {
        display: block;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, calc(100vw - 48px));
        height: 100dvh;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: #0c131c;
        color: var(--ivory);
        box-shadow: 16px 0 44px #00000066;
        transform: translateX(-104%);
        transition: transform 240ms ease-out;
    }

    .mobile-menu[open].is-open {
        transform: translateX(0);
    }

    .mobile-menu::backdrop {
        background: #02060bcc;
        backdrop-filter: blur(3px);
    }

    .mobile-menu-panel {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 24px;
    }

    .mobile-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 40px;
        margin-bottom: 36px;
    }

    .mobile-menu-kicker {
        color: var(--amber);
        font-family: ui-monospace, monospace;
        font-size: 9px;
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .mobile-menu-close {
        min-height: 44px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: #ffffff04;
        color: var(--ivory);
        cursor: pointer;
        font-size: 11px;
    }

    .mobile-menu .navigation-caption {
        display: inline-block;
        margin: 0 0 9px;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu nav button {
        width: 100%;
        text-align: left;
        min-height: 45px;
        padding: 12px 0;
        border: 0;
        background: none;
        color: var(--muted);
        font-size: 14px;
        opacity: 1;
    }

    .frontier-shell {
        min-height: 810px;
        padding: 60px 24px 290px;
    }

    .hero-content {
        max-width: 525px;
    }

    .eyebrow {
        font-size: 9px;
        margin-bottom: 23px;
    }

    .frontier-shell h1 {
        font-size: clamp(3.4rem, 11.6vw, 4.5rem);
        max-width: 12ch;
        margin-bottom: 20px;
    }

    .lead {
        font-size: 14px;
        line-height: 1.8;
        max-width: 370px;
    }

    .planet-vista {
        inset: auto 0 0;
        height: 440px;
        width: 100%;
        opacity: .85;
    }

    .planet-vista > img {
        width: 125%;
        max-width: none;
        margin-left: -25%;
        object-fit: cover;
    }

    .planet-vista::after {
        background: linear-gradient(180deg, var(--ink), #090f1740 37%, transparent 55%, var(--ink) 100%);
    }

    .vista-label {
        left: 54%;
        top: 64%;
        font-size: 8px;
        gap: 8px;
    }

    .vista-label-detail {
        font-size: 7px;
    }

    .vista-caption {
        display: none;
    }

    .hero-coordinate {
        bottom: 28px;
        font-size: 7px;
        gap: 13px;
    }

    .hero-coordinate > span:first-child {
        font-size: 9px;
    }

    .footer-inner {
        min-height: 120px;
        padding: 24px;
    }

    .footer-message {
        gap: 17px;
    }

    .footer-message p {
        font-size: 12px;
    }

    .footer-message p > span {
        font-size: 10px;
    }

    .footer-signature {
        display: none;
    }

}

@media (prefers-reduced-motion: no-preference) {
    .brand, .planet-form button {
        transition: opacity .2s, background .2s;
    }

    .brand:hover {
        opacity: .8;
    }

}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu[open] {
        transition: none;
    }
}
