:root {
    --ink: #131a30;
    --muted: #65708a;
    --paper: #f3f6fc;
    --cream: #ffffff;
    --line: #dce3f0;
    --red: #6857e8;
    --red-dark: #4a38c5;
    --teal: #111f4b;
    --gold: #62dcff;
    --space: #050816;
    --space-soft: #0b1230;
    --violet: #8d7cff;
    --cyan: #62dcff;
    --shadow: 0 18px 48px rgba(8, 14, 38, .13);
}

html {
    scroll-padding-top: 24px;
}

body {
    background: var(--space) url("../images/orbital-nexus-space-desktop.webp") center top / cover fixed no-repeat;
    color: var(--ink);
    font-family: "Inter", sans-serif;
}

::selection {
    background: rgba(98, 220, 255, .3);
    color: #071022;
}

h1,
h2,
.brand,
.jump-grid span,
.section-number {
    font-family: "Space Grotesk", sans-serif;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.skip-link {
    border-radius: 999px;
    background: #fff;
    color: var(--space);
    box-shadow: var(--shadow);
}

.masthead {
    min-height: clamp(590px, 72vh, 720px);
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid rgba(98, 220, 255, .65);
    background: var(--space);
    isolation: isolate;
}

.masthead::after {
    width: 58%;
    height: 1px;
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    content: "";
    background: linear-gradient(90deg, transparent, var(--cyan));
    box-shadow: 0 0 20px rgba(98, 220, 255, .8);
    pointer-events: none;
}

.masthead-media,
.masthead-poster,
.masthead-poster img,
.masthead-video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.masthead-poster img,
.masthead-video {
    object-fit: cover;
    object-position: center;
}

.masthead-poster img {
    transform: scale(1.012);
}

.masthead-video {
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.masthead-video.is-ready {
    opacity: 1;
}

.masthead-shade {
    z-index: 2;
    background:
        radial-gradient(circle at 76% 48%, rgba(24, 56, 128, .08), rgba(4, 7, 20, .48) 48%, rgba(3, 6, 18, .76) 78%),
        linear-gradient(90deg, rgba(3, 6, 18, .96) 0%, rgba(4, 8, 24, .83) 39%, rgba(4, 8, 24, .18) 76%, rgba(4, 8, 24, .26) 100%),
        linear-gradient(0deg, rgba(3, 6, 18, .68), transparent 52%);
    pointer-events: none;
}

.masthead-layout {
    width: min(1180px, calc(100% - 48px));
    min-height: inherit;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.masthead-inner {
    width: 100%;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.brand {
    gap: 13px;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -.7px;
}

.brand b {
    color: var(--cyan);
    font-weight: 600;
}

.brand small {
    margin-top: 7px;
    color: rgba(226, 237, 255, .7);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.45px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(98, 220, 255, .55);
    border-radius: 50%;
    background: rgba(18, 28, 69, .62);
    box-shadow: inset 0 0 18px rgba(98, 220, 255, .12), 0 0 24px rgba(98, 220, 255, .13);
    backdrop-filter: blur(10px);
}

.brand-mark svg {
    width: 23px;
    color: var(--cyan);
}

.site-nav {
    gap: 27px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.site-nav a {
    color: rgba(239, 245, 255, .8);
}

.site-nav a:hover {
    border-color: var(--cyan);
    color: #fff;
}

.menu-button {
    border-radius: 50%;
    border-color: rgba(98, 220, 255, .45);
    background: rgba(7, 13, 37, .56);
    backdrop-filter: blur(12px);
}

.hero-message {
    max-width: 760px;
    margin: auto 0 88px;
    color: #fff;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 20px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.hero-eyebrow span {
    width: 32px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.hero-message h1 {
    max-width: none;
    margin: 0;
    color: #fff;
    font-size: clamp(58px, 6.4vw, 92px);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -4px;
    text-shadow: 0 8px 35px rgba(0, 0, 0, .38);
}

.hero-message h1 em {
    color: #a8edff;
    font-style: normal;
    font-weight: 500;
}

.hero-message > p:not(.hero-eyebrow) {
    max-width: 610px;
    margin: 26px 0 28px;
    color: rgba(230, 239, 255, .76);
    font-size: 16px;
    line-height: 1.65;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 13px 20px;
    border: 1px solid rgba(98, 220, 255, .58);
    border-radius: 999px;
    background: rgba(13, 24, 62, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: inset 0 0 20px rgba(98, 220, 255, .08);
    backdrop-filter: blur(12px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-cta:hover {
    border-color: var(--cyan);
    background: rgba(39, 83, 137, .58);
    transform: translateY(-2px);
}

.hero-cta svg {
    width: 17px;
}

.hero-status {
    position: absolute;
    right: 0;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: rgba(229, 238, 255, .62);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #66f4c3;
    box-shadow: 0 0 12px #66f4c3;
}

.hero-status b {
    color: rgba(255, 255, 255, .26);
}

.page-shell {
    width: min(1260px, calc(100% - 44px));
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 46px;
    margin: 0 auto;
    padding: 54px 34px 96px;
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-left: 1px solid rgba(255, 255, 255, .18);
    background: rgba(244, 247, 253, .965);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
}

.side-panel {
    border-color: var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(17, 26, 60, .055);
}

.side-panel h2 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -.6px;
}

.side-kicker,
.eyebrow {
    color: var(--red);
    letter-spacing: 1.8px;
}

.sponsor-panel > a {
    color: #324a82;
}

.sponsor-panel a:hover,
.featured-panel a:hover {
    color: var(--red);
}

.history-list article::before {
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px rgba(104, 87, 232, .5);
}

.history-list time {
    color: var(--red);
}

.featured-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #111d46, #182c63);
}

.featured-panel::after {
    width: 130px;
    height: 130px;
    position: absolute;
    right: -66px;
    bottom: -66px;
    border: 1px solid rgba(98, 220, 255, .25);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 20px rgba(98, 220, 255, .04), 0 0 0 42px rgba(98, 220, 255, .025);
    pointer-events: none;
}

.featured-panel .side-kicker {
    color: var(--cyan);
}

.welcome {
    padding: 14px 0 54px;
}

.welcome h2 {
    max-width: 760px;
    color: #11182d;
    font-size: clamp(42px, 5.2vw, 68px);
    letter-spacing: -2.8px;
}

.intro {
    color: var(--muted);
}

.directory-search {
    border-radius: 14px;
    border-color: #d5ddec;
    box-shadow: 0 12px 32px rgba(17, 31, 75, .1);
}

.directory-search:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(104, 87, 232, .1), 0 12px 32px rgba(17, 31, 75, .1);
}

.directory-search button,
.back-top {
    border-radius: 10px;
    background: var(--space-soft);
}

.directory-search button:hover,
.back-top:hover {
    background: var(--red);
}

.quick-stats b {
    color: #151d36;
}

.section-title-row h2 {
    letter-spacing: -1.4px;
}

.jump-grid {
    overflow: hidden;
    border-radius: 16px;
    border-color: var(--line);
    box-shadow: 0 14px 34px rgba(18, 27, 62, .07);
}

.jump-grid a {
    border-color: var(--line);
    background: rgba(255, 255, 255, .96);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.jump-grid a:hover {
    background: linear-gradient(145deg, #101d46, #1d3470);
    transform: translateY(-2px);
}

.jump-grid a:hover small {
    color: rgba(223, 239, 255, .72);
}

.jump-grid svg {
    color: var(--violet);
}

.jump-grid a:hover svg {
    color: var(--cyan);
}

.resource-sections {
    gap: 26px;
}

.resource-section {
    overflow: hidden;
    border-color: var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(18, 27, 62, .06);
}

.resource-section > header {
    border-color: var(--line);
    background:
        radial-gradient(circle at 94% 0%, rgba(98, 220, 255, .13), transparent 26%),
        linear-gradient(135deg, #edf1fb, #f7f9fd);
}

.section-number {
    color: var(--red);
}

.resource-section h2 {
    letter-spacing: -1px;
}

.link-list li {
    border-color: #e6eaf3;
}

.link-list li:nth-child(odd) {
    border-color: #e6eaf3;
}

.link-list a {
    color: #304779;
}

.link-list a:hover {
    background: #f1f4fb;
    color: var(--red);
}

.empty-state > svg {
    color: var(--red);
}

.site-footer {
    border-top: 1px solid rgba(98, 220, 255, .24);
    background:
        radial-gradient(circle at 18% 0%, rgba(52, 78, 156, .28), transparent 31%),
        #050816;
    color: rgba(226, 235, 252, .74);
}

.site-footer small {
    border-color: rgba(255, 255, 255, .12);
    color: rgba(203, 215, 240, .5);
}

.footer-brand {
    color: #fff;
}

.floating-top {
    border: 1px solid rgba(98, 220, 255, .45);
    border-radius: 50%;
    background: rgba(12, 23, 57, .94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
}

.floating-top:hover {
    background: var(--red-dark);
}

@media (max-width: 960px) {
    .masthead-layout {
        width: calc(100% - 38px);
    }

    .site-nav {
        gap: 15px;
    }

    .page-shell {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 28px;
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 760px) {
    body {
        background-image: url("../images/orbital-nexus-space-mobile.webp");
        background-attachment: scroll;
    }

    .masthead {
        min-height: 680px;
    }

    .masthead-layout {
        width: calc(100% - 28px);
    }

    .masthead-inner {
        width: 100%;
        min-height: 78px;
    }

    .masthead-poster img,
    .masthead-video {
        object-position: center;
    }

    .menu-button {
        display: grid;
    }

    .site-nav {
        display: none;
        top: 72px;
        right: 0;
        left: 0;
        gap: 2px;
        padding: 13px;
        border: 1px solid rgba(98, 220, 255, .24);
        border-radius: 14px;
        background: rgba(6, 12, 32, .96);
        backdrop-filter: blur(18px);
    }

    .site-nav.open {
        display: grid;
    }

    .hero-message {
        margin: auto 0 75px;
    }

    .hero-message h1 {
        font-size: clamp(48px, 14vw, 66px);
        line-height: .98;
        letter-spacing: -3px;
    }

    .hero-message > p:not(.hero-eyebrow) {
        max-width: 500px;
        margin: 23px 0 26px;
        font-size: 15px;
    }

    .hero-status {
        right: auto;
        bottom: 22px;
        left: 0;
    }

    .page-shell {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        padding: 34px 18px 72px;
        border-radius: 0 0 18px 18px;
    }

    .welcome h2 {
        font-size: clamp(40px, 11vw, 56px);
        letter-spacing: -2px;
    }

    .jump-grid,
    .link-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .masthead {
        min-height: 640px;
    }

    .brand {
        font-size: 21px;
        letter-spacing: -.5px;
    }

    .brand small {
        display: none;
    }

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

    .hero-message {
        margin-bottom: 66px;
    }

    .hero-message h1 {
        font-size: 46px;
        letter-spacing: -2.5px;
    }

    .hero-message > p:not(.hero-eyebrow) {
        font-size: 14px;
    }

    .hero-status {
        font-size: 9px;
        letter-spacing: .09em;
    }

    .section-title-row h2 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body {
        background-attachment: scroll;
    }

    .masthead-video {
        display: none;
    }

    .masthead-poster img,
    .hero-cta,
    .jump-grid a {
        transform: none;
        transition: none;
    }
}
