@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #090b17;
    --surface: #111629;
    --surface2: #171e35;
    --text: #f8faff;
    --muted: #b9c5d7;
    --accent: #70ece6;
    --secondary: #79dcdb;
    --line: #ffffff22
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.wrap {
    width: min(1220px, calc(100% - 50px));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #090b17ee;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line)
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 82px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-right: auto
}

.brand-mark {
    font-size: 24px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent)
}

.brand strong {
    font-size: 26px;
    letter-spacing: -1px;
    font-family: 'Space Grotesk'
}

.brand small {
    font-size: 8px;
    letter-spacing: 1.5px;
    display: block;
    color: #cad5e3
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 19px
}

.site-nav a,
.dropdown-toggle {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.site-nav a:hover,
.nav-active {
    color: var(--accent) !important
}

.dropdown {
    position: relative
}

.dropdown-toggle {
    background: none;
    color: var(--text);
    border: 0;
    padding: 8px
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 240px;
    padding: 16px;
    background: #1a2036;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px #0008
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: grid;
    gap: 13px
}

.cta {
    background: var(--accent);
    color: #10151c;
    padding: 14px 19px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.cta:hover {
    background: #fff
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ffffff40;
    color: white;
    font-size: 23px;
    padding: 7px 12px
}

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
    background-position: center;
    background-size: cover
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #050917 0%, #050917d6 43%, #05091726 100%)
}

.hero .wrap {
    padding: 95px 0
}

.overline {
    display: block;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 18px
}

.hero h1 {
    font-family: 'Space Grotesk';
    font-size: clamp(54px, 7.3vw, 112px);
    line-height: 1.02;
    letter-spacing: -5px;
    margin: 0;
    max-width: 910px
}

.hero p {
    max-width: 590px;
    color: #d4dfef;
    font-size: 19px;
    line-height: 1.8
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.btn {
    display: inline-block;
    border: 1px solid #ffffff75;
    padding: 14px 22px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #16191d
}

.btn:hover {
    transform: translateY(-2px)
}

.section {
    padding: 88px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px
}

.section-head>p {
    max-width: 470px;
    color: var(--muted);
    line-height: 1.8
}

h2 {
    font-family: 'Space Grotesk';
    font-size: clamp(35px, 4vw, 58px);
    letter-spacing: -2px;
    line-height: 1.07;
    margin: 5px 0 15px
}

h3 {
    font-family: 'Space Grotesk'
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px
}

.topic-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: .2s
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: #dfec7070
}

.topic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover
}

.topic-card .inner {
    padding: 23px
}

.topic-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 8px 0 12px
}

.topic-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.76
}

.tag {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase
}

.topic-card a {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    margin-top: 22px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center
}

.split img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    border-radius: 12px
}

.split p,
.copy {
    color: var(--muted);
    line-height: 1.9
}

.alt {
    background: var(--surface)
}

.stats {
    display: flex;
    gap: 35px;
    margin-top: 28px
}

.stats strong {
    color: var(--accent);
    font-size: 31px;
    display: block
}

.sub-nav {
    background: #12192e;
    border-bottom: 1px solid var(--line)
}

.sub-nav .wrap {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 13px 0;
    scrollbar-width: thin
}

.sub-nav .wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 13px 0;

    /* Firefox */
    scrollbar-width: none;

    /* IE / Edge */
    -ms-overflow-style: none;
}

/* Chrome, Safari, Edge */
.sub-nav .wrap::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    flex: none;
    color: #dce5ee;
    border: 1px solid #ffffff24;
    padding: 10px 14px;
    border-radius: 30px;
    font-size: 11px
}

.sub-nav a:hover {
    color: #0e1220;
    background: var(--accent)
}

.directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.directory a {
    padding: 20px;
    background: #1b233b;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 700
}

.directory a:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
    padding: 65px 0;
    border-bottom: 1px solid var(--line)
}

.detail-row:nth-child(even) .detail-copy {
    order: 2
}

.detail-row:nth-child(even) .detail-visual {
    order: 1
}

.detail-visual img {
    height: 370px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px
}

.detail-row h2 {
    font-size: clamp(32px, 3.4vw, 50px)
}

.detail-row p {
    line-height: 1.9;
    color: var(--muted)
}

.number {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 800
}

.notice {
    padding: 17px 20px;
    border-left: 3px solid var(--accent);
    background: #ffffff0b;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 25px 0
}

.footer {
    background: #070912;
    border-top: 1px solid var(--line);
    padding: 65px 0 25px
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 38px
}

.footer a {
    display: block;
    margin-bottom: 12px;
    color: #d1d7e3;
    font-size: 13px
}

.footer p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 23px;
    margin-top: 42px;
    color: #8496ae;
    font-size: 12px
}

.search {
    padding: 14px;
    background: #1a2037;
    border: 1px solid #ffffff40;
    color: #fff;
    width: min(100%, 350px);
    border-radius: 6px
}

.contact-form {
    display: grid;
    gap: 15px
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 16px;
    background: #192034;
    border: 1px solid #ffffff38;
    color: #fff;
    border-radius: 6px
}

.contact-form textarea {
    min-height: 130px
}

.contact-form button {
    border: 0;
    text-align: left
}

.reveal {
    opacity: 1;
    transform: none
}

.page-back {
    background: #0c1121
}

.browser {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800
}

.observer {
    position: absolute;
    pointer-events: none
}

.feature-band {
    background: linear-gradient(120deg, #232044, #171a32);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.feature-band .content {
    padding: 55px
}

.feature-band img {
    height: 100%;
    min-height: 340px;
    width: 100%;
    object-fit: cover
}

.feature-band p {
    color: var(--muted);
    line-height: 1.8
}

.related-title {
    margin: 20px 0
}

.topic-card[hidden] {
    display: none !important
}

@media(max-width:1100px) {
    .site-nav {
        gap: 11px
    }

    .site-nav a {
        font-size: 11px
    }

    .header-inner {
        gap: 8px
    }

    .brand small {
        display: none
    }

    .brand strong {
        font-size: 20px
    }

    .header-inner .cta {
        padding: 12px
    }
}

@media(max-width:850px) {
    .menu-toggle {
        display: block
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #101729;
        padding: 18px 26px;
        flex-direction: column;
        align-items: stretch
    }

    .site-nav.open {
        display: flex
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none
    }

    .header-inner {
        justify-content: space-between
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .directory {
        grid-template-columns: repeat(2, 1fr)
    }

    .split,
    .detail-row,
    .feature-band {
        grid-template-columns: 1fr
    }

    .detail-row:nth-child(even) .detail-copy,
    .detail-row:nth-child(even) .detail-visual {
        order: initial
    }

    .hero {
        min-height: 550px
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr
    }

    .footer-cols>div:first-child {
        grid-column: 1/-1
    }
}

@media(max-width:560px) {
    .wrap {
        width: calc(100% - 30px)
    }

    .hero h1 {
        letter-spacing: -2px;
        font-size: 48px
    }

    .hero p {
        font-size: 16px
    }

    .section {
        padding: 60px 0
    }

    .card-grid,
    .directory {
        grid-template-columns: 1fr
    }

    .section-head {
        display: block
    }

    .detail-row {
        gap: 22px;
        padding: 43px 0
    }

    .detail-visual img,
    .split img {
        height: 260px
    }

    .footer-cols {
        grid-template-columns: 1fr
    }

    .footer-cols>div:first-child {
        grid-column: auto
    }

    .feature-band .content {
        padding: 27px
    }

    .brand small {
        display: none
    }

    .header-inner .cta {
        display: none
    }
}

/* SPACE1 animation enhancement */
@keyframes s1Rise {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes s1Zoom {
    from {
        transform: scale(1.055)
    }

    to {
        transform: scale(1)
    }
}

html {
    scroll-behavior: smooth
}

body {
    overflow-x: hidden
}

.hero {
    animation: s1Zoom 1.7s ease-out both;
    overflow: hidden
}

.hero .overline {
    display: inline-block;
    animation: s1Rise .8s .1s both
}

.hero h1 {
    animation: s1Rise .8s .22s both
}

.hero p {
    animation: s1Rise .85s .38s both
}

.hero .actions {
    animation: s1Rise .85s .55s both
}

.topic-card {
    transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease
}

.topic-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 22px 44px #0005
}

.topic-card img {
    transition: transform .65s ease, filter .5s
}

.topic-card:hover img {
    transform: scale(1.07);
    filter: saturate(1.14)
}

.btn,
.cta {
    transition: transform .28s ease, box-shadow .28s ease
}

.btn:hover,
.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #0004
}

.directory a {
    transition: transform .25s ease, color .25s ease
}

.directory a:hover {
    transform: translateX(6px)
}

.js-motion .reveal:not(.on) {
    opacity: 0;
    transform: translateY(28px)
}

.js-motion .reveal {
    transition: opacity .68s ease, transform .68s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms)
}

.js-motion .reveal.on {
    opacity: 1;
    transform: translateY(0)
}

.site-header {
    transition: box-shadow .3s, background-color .3s
}

.site-header.is-scrolled {
    box-shadow: 0 8px 26px #0005;
    background: #0a1122f5
}

.s1-progress {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    pointer-events: none
}

.s1-progress>div {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--accent, #d5ef80)
}

.s1-top {
    position: fixed;
    z-index: 88;
    right: 22px;
    bottom: 24px;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    background: #111a32ed;
    cursor: pointer;
    font-size: 23px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .25s
}

.s1-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .js-motion .reveal:not(.on) {
        opacity: 1;
        transform: none
    }
}
/* Page-specific bottom navigation */
.page-local-nav{padding:88px 0 82px;background:#10172a;border-top:1px solid rgba(255,255,255,.13);border-bottom:1px solid rgba(255,255,255,.12);color:#fff}
.page-local-nav .local-kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#8de3ef;font-weight:700}
.page-local-nav h2{font-size:clamp(34px,5vw,64px);letter-spacing:-.052em;line-height:1.03;margin:15px 0 20px;color:#fff}
.page-local-nav .local-intro{max-width:640px;line-height:1.75;color:#b4bed2;margin:0 0 31px}
.page-local-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.page-local-link{min-height:70px;display:flex;gap:16px;align-items:center;padding:17px 22px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.035);color:#fff!important;text-decoration:none!important;transition:background .3s,border-color .3s,transform .3s}
.page-local-link:hover,.page-local-link:focus-visible{transform:translateY(-3px);border-color:#8de3ef;background:rgba(141,227,239,.1)}
.page-local-link .local-number{font-size:11px;letter-spacing:.1em;color:#8de3ef;font-weight:800;flex:none}
.page-local-link .local-label{flex:1;font-weight:600;font-size:15px;line-height:1.35}
.page-local-link .local-arrow{font-size:22px;color:#8de3ef}
html{scroll-behavior:smooth}
article.detail-row[id]{scroll-margin-top:105px}
@media(max-width:700px){.page-local-nav{padding:58px 0}.page-local-grid{grid-template-columns:1fr}.page-local-link{min-height:62px;padding:14px 16px}.page-local-nav h2{font-size:36px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.page-local-link{transition:none}}
