/* ==========================================================================
   ORBIO — Mission Control / Deep Space HUD
   Vitrine design system (this file is NOT shared with other Orbio projects)
   ========================================================================== */

:root {
    color-scheme: dark;
    --bg: #05060a;
    --bg-2: #090b12;
    --panel: rgba(13, 16, 26, .72);
    --line: rgba(109, 120, 255, .22);
    --line-strong: rgba(109, 120, 255, .45);
    --violet: #6d78ff;
    --violet-2: #a25bff;
    --gold: #f0b232;
    --text: #e8eaf6;
    --muted: #9aa1c0;
    --mono: "Chakra Petch", "Segoe UI", -apple-system, "Malgun Gothic", "Hiragino Sans", "Microsoft YaHei", sans-serif;
    --body: "Exo 2", "Segoe UI", -apple-system, "Malgun Gothic", "Hiragino Sans", "Microsoft YaHei", sans-serif;
    --chamfer: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Deep space backdrop -------------------------------------------------- */
#space {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
}
/* static fallback painted below the canvas (visible when canvas is off) */
.space-fallback {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 60% 40% at 75% 10%, rgba(162, 91, 255, .10), transparent 60%),
        radial-gradient(ellipse 50% 35% at 15% 85%, rgba(109, 120, 255, .08), transparent 60%),
        radial-gradient(ellipse 30% 20% at 60% 60%, rgba(240, 178, 50, .04), transparent 60%),
        var(--bg);
}
/* faint scanline / grid overlay above the canvas, below content */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
        linear-gradient(rgba(109, 120, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 120, 255, .035) 1px, transparent 1px);
    background-size: auto, 90px 90px, 90px 90px;
    mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 90%);
}

::selection { background: rgba(109, 120, 255, .4); }

a { color: var(--violet); text-decoration: none; }
a:hover { color: #98a1ff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.grad {
    background: linear-gradient(92deg, var(--violet), var(--violet-2) 55%, var(--gold) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ks { color: var(--gold); }

/* --- HUD atoms ------------------------------------------------------------ */
.tele {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}
.tele .sep { color: var(--line-strong); margin: 0 .5em; }
.tele .ok { color: var(--gold); }

.led {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px 1px rgba(240, 178, 50, .8);
    vertical-align: 1px;
    animation: led-pulse 2.4s ease-in-out infinite;
}
.led.violet {
    background: var(--violet);
    box-shadow: 0 0 8px 1px rgba(109, 120, 255, .8);
}
@keyframes led-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* Chamfered HUD frame with corner ticks */
.hud-frame {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    clip-path: var(--chamfer);
}
.corner-ticks { position: relative; }
.corner-ticks::before, .corner-ticks::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    pointer-events: none;
    z-index: 3;
}
.corner-ticks::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--violet);
    border-left: 2px solid var(--violet);
}
.corner-ticks::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--mono);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #0b0d16;
    background: linear-gradient(120deg, var(--violet), var(--violet-2));
    padding: .82em 1.7em;
    border: 0;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform .18s ease, filter .18s ease;
}
.btn:hover { color: #05060a; filter: brightness(1.15); transform: translateY(-2px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }
.btn.ghost {
    background: rgba(109, 120, 255, .08);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover { background: rgba(109, 120, 255, .16); color: #fff; }
.btn.gold { background: linear-gradient(120deg, #f0b232, #ffd374); }
.btn.small { font-size: .78rem; padding: .6em 1.2em; }
.btn[aria-disabled="true"], .btn.disabled {
    pointer-events: none;
    opacity: .45;
    filter: grayscale(.4);
}

/* --- Nav ------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: .65rem clamp(1rem, 4vw, 2.4rem);
    background: rgba(5, 6, 10, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--gold) 70%, transparent);
    opacity: .5;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
}
.brand:hover { color: #fff; }
.brand .orb { filter: drop-shadow(0 0 6px rgba(162, 91, 255, .8)); }

/* Logo images (round crop: the source files carry their own dark backgrounds) */
.brand-logo {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 8px rgba(109, 120, 255, .55));
}
.site-footer .brand-logo { width: 26px; height: 26px; }
.sector-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: .35rem;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 16px rgba(109, 120, 255, .45);
}
.sector.alt .sector-logo { margin-right: 0; margin-left: .35rem; }
.nav-center {
    display: flex;
    gap: 1.6rem;
    margin: 0 auto;
}
.nav-center a {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    padding: .3rem 0;
}
.nav-center a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav-center a:hover { color: var(--text); }
.nav-center a:hover::after { transform: scaleX(1); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

/* Language HUD dropdown */
.dropdown { position: relative; }
.dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(13, 16, 26, .6);
    padding: .42rem .7rem;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    transition: border-color .18s ease, color .18s ease;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover { border-color: var(--line-strong); color: var(--text); }
.dropdown[open] summary { color: var(--text); border-color: var(--line-strong); }
.dropdown .caret { font-size: .6rem; color: var(--violet); transition: transform .18s ease; }
.dropdown[open] .caret { transform: rotate(180deg); }
.dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    min-width: 175px;
    padding: .4rem;
    background: rgba(9, 11, 18, .96);
    border: 1px solid var(--line-strong);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
    z-index: 60;
}
.dd-menu.right { right: 0; }
.dd-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .06em;
    color: var(--muted);
}
.dd-menu a:hover { background: rgba(109, 120, 255, .12); color: var(--text); }
.dd-menu a.active { color: var(--gold); }
.dd-menu a.active::after {
    content: "\25CF";
    margin-left: auto;
    font-size: .5rem;
    color: var(--gold);
}
.flag-svg { display: inline-flex; width: 20px; height: 13px; flex: 0 0 auto; }
.flag-svg svg { width: 100%; height: 100%; border-radius: 1px; outline: 1px solid rgba(255, 255, 255, .18); }

/* --- Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(3.2rem, 8vh, 6.5rem) clamp(1.2rem, 4vw, 2.4rem) clamp(2.5rem, 6vh, 4.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}
.hero-copy .tele { display: inline-flex; align-items: center; gap: .55em; margin-bottom: 1.4rem; }
.hero h1 {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(2.1rem, 5.2vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: .01em;
    margin: 0 0 1.2rem;
    text-wrap: balance;
}
.hero .lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 34em;
    margin: 0 0 2rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Orbital diagram */
.orbital {
    position: relative;
    width: min(420px, 88vw);
    aspect-ratio: 1;
    margin-inline: auto;
}
.orbital .ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(109, 120, 255, .35);
    border-radius: 50%;
    animation: orbit-spin 60s linear infinite;
}
.orbital .ring.r2 {
    inset: 17%;
    border-color: rgba(240, 178, 50, .3);
    animation-duration: 42s;
    animation-direction: reverse;
}
.orbital .ring.r3 {
    inset: 34%;
    border-style: solid;
    border-color: rgba(109, 120, 255, .14);
    animation: none;
}
@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}
.orbital .sun {
    position: absolute;
    top: 50%; left: 50%;
    width: 88px; height: 88px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(162, 91, 255, .5), rgba(109, 120, 255, .16) 60%, transparent 75%);
    box-shadow: 0 0 60px 8px rgba(109, 120, 255, .25), inset 0 0 24px rgba(162, 91, 255, .35);
}
.orbital .sun img {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.orbital .planet {
    position: absolute;
    top: 50%; left: 50%;
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    font-family: var(--mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(9, 11, 18, .92);
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 18px rgba(109, 120, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    z-index: 2;
    line-height: 1.25;
    padding: 4px;
}
.orbital .planet:hover {
    border-color: var(--gold);
    box-shadow: 0 0 26px rgba(240, 178, 50, .5);
    color: #fff;
}
.orbital .planet .dot {
    position: absolute;
    top: 2px; right: 5px;
    width: 7px; height: 7px;
    border-radius: 50%;
    z-index: 1;
}
.orbital .planet img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.orbital .planet.p-ks { transform: translate(116px, -150px); }
.orbital .planet.p-ks:hover { transform: translate(116px, -150px) scale(1.14); }
.orbital .planet.p-ks .dot { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.orbital .planet.p-sc { transform: translate(-158px, 64px); }
.orbital .planet.p-sc:hover { transform: translate(-158px, 64px) scale(1.14); }
.orbital .planet.p-sc .dot { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.orbital .planet.p-dg { transform: translate(-14px, 186px); }
.orbital .planet.p-dg:hover { transform: translate(-14px, 186px) scale(1.14); }
.orbital .planet.p-dg .dot { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

/* --- Sections shell -------------------------------------------------------- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 2.4rem) 4rem;
}
.section-head {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin: clamp(2.5rem, 7vh, 5rem) 0 .4rem;
}
.section-head .tele { flex: 0 0 auto; }
.section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
    transform: translateY(-4px);
}
.section-title {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    letter-spacing: .02em;
    margin: .2rem 0 .6rem;
}
.section-sub {
    color: var(--muted);
    max-width: 44em;
    margin: 0 0 2.2rem;
}

/* --- Sector panels ---------------------------------------------------------- */
.sector {
    position: relative;
    margin: 2.4rem 0;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
}
.sector .art {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}
.sector.s-ks .art { background-image: url("/images/projects/kingshot-56c709d9d97bcd89ec091b1189cdf9bf.jpg"); }
.sector.s-dg .art { background-image: url("/images/projects/dodge-c30ed4c47f776f5c7738620855d0530b.jpg"); }
.sector.s-sc .art { background-image: url("/images/projects/starcitizen-e12b55fb0888fb7fda236b49810b8030.jpg"); }
/* scrim: must work over ANY photo the user drops in later */
.sector::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 6, 10, .55), rgba(5, 6, 10, .25) 40%, rgba(5, 6, 10, .9)),
        linear-gradient(100deg, rgba(5, 6, 10, .85) 0%, rgba(9, 11, 18, .35) 55%, rgba(109, 120, 255, .10));
}
.sector.alt::before {
    background:
        linear-gradient(180deg, rgba(5, 6, 10, .55), rgba(5, 6, 10, .25) 40%, rgba(5, 6, 10, .9)),
        linear-gradient(-100deg, rgba(5, 6, 10, .85) 0%, rgba(9, 11, 18, .35) 55%, rgba(162, 91, 255, .10));
}
.sector .sector-tag {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 2;
}
.sector.alt .sector-tag { left: auto; right: 18px; }
.sector-body {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    margin-top: clamp(3.5rem, 8vw, 5rem);
}
.sector.alt { justify-content: flex-end; }
.sector.alt .sector-body { text-align: right; }
.sector.alt .sector-meta, .sector.alt .btn-row { justify-content: flex-end; }
.sector h3 {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: .5rem 0 .7rem;
    letter-spacing: .02em;
}
.sector p { color: #c6cbe4; margin: 0 0 1.4rem; text-shadow: 0 1px 8px rgba(5, 6, 10, .9); }
.sector-meta {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-bottom: .2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .35em 1em;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.badge.live {
    color: var(--gold);
    background: rgba(240, 178, 50, .1);
    box-shadow: inset 0 0 0 1px rgba(240, 178, 50, .45);
}
.badge.dev {
    color: #a9b2ff;
    background: rgba(109, 120, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(109, 120, 255, .45);
}

/* --- Console modules (about) ------------------------------------------------ */
.console-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: .6rem;
}
.module {
    padding: 1.3rem 1.4rem 1.8rem;
    position: relative;
}
.module .mod-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}
.module .mod-id {
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--violet);
    margin-left: auto;
}
.module .ico { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(109, 120, 255, .6)); }
.module h3 {
    font-family: var(--mono);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin: 0;
}
.module p { color: var(--muted); font-size: .93rem; margin: 0; }
.module::after {
    content: "";
    position: absolute;
    left: 1.4rem; right: 1.4rem; bottom: .7rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
    opacity: .5;
}

/* --- About: mission logbook (vertical timeline) ----------------------------- */
.logbook {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: .4rem 0 .4rem 30px;
    position: relative;
    max-width: 720px;
}
.logbook::before {
    content: "";
    position: absolute;
    left: 8px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--violet) 12%, var(--violet) 88%, transparent);
    opacity: .55;
}
.log {
    position: relative;
    padding: 1.1rem 1.4rem 1.2rem;
    margin-bottom: 1.1rem;
}
.log:last-child { margin-bottom: 0; }
.log::before {
    content: "";
    position: absolute;
    left: -26px; top: 1.5rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--violet);
    box-shadow: 0 0 10px rgba(109, 120, 255, .7);
}
.log:last-child::before { border-color: var(--gold); box-shadow: 0 0 10px rgba(240, 178, 50, .7); }
.log .log-id {
    position: absolute;
    top: .8rem; right: 1rem;
    font-size: .6rem;
    color: var(--violet);
    opacity: .9;
}
.log:last-child .log-id { color: var(--gold); }
.log h3 {
    font-family: var(--mono);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin: 0 0 .45rem;
}
.log p { color: var(--muted); font-size: .94rem; margin: 0; }

/* --- Contact: comm channel panel -------------------------------------------- */
.comm {
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    text-align: center;
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(109, 120, 255, .1), transparent 70%),
        rgba(9, 11, 18, .72);
}
.comm .tele { justify-content: center; }
.comm h3 {
    font-family: var(--mono);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: .03em;
    margin: .9rem 0 .5rem;
}
.comm p { color: var(--muted); max-width: 480px; margin: 0 auto 1.4rem; }
.comm .btn-row { justify-content: center; }

/* --- Reveal animations ------------------------------------------------------ */
/* Only hidden when JS confirmed it will reveal (html.js-reveal) — without JS
   the content stays visible. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .22s; }
.reveal.d3 { transition-delay: .34s; }

/* --- Footer: station status bar ---------------------------------------------- */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    background: rgba(7, 8, 14, .85);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--violet) 70%, transparent);
    opacity: .5;
}
.foot-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.4rem clamp(1.2rem, 4vw, 2.4rem) 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
}
.foot-brand .name {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.foot-brand .tag {
    display: block;
    margin-top: .5rem;
    color: var(--muted);
    font-size: .88rem;
    max-width: 28em;
}
.foot-links { display: flex; gap: 3.2rem; }
.foot-col { display: flex; flex-direction: column; gap: .45rem; }
.foot-col strong {
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}
.foot-col a { color: #b9bfdd; font-size: .92rem; }
.foot-col a:hover { color: var(--gold); }
.foot-bar {
    border-top: 1px solid var(--line);
    padding: .8rem clamp(1.2rem, 4vw, 2.4rem);
    max-width: 1240px;
    margin: 0 auto;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.foot-bar .divider { color: var(--line-strong); }

/* --- Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .orbital { width: min(340px, 80vw); }
    .orbital .planet.p-ks { transform: translate(94px, -122px); }
    .orbital .planet.p-ks:hover { transform: translate(94px, -122px) scale(1.14); }
    .orbital .planet.p-sc { transform: translate(-126px, 52px); }
    .orbital .planet.p-sc:hover { transform: translate(-126px, 52px) scale(1.14); }
    .orbital .planet.p-dg { transform: translate(-12px, 148px); }
    .orbital .planet.p-dg:hover { transform: translate(-12px, 148px) scale(1.14); }
    .console-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav { flex-wrap: wrap; gap: .7rem .9rem; padding-block: .6rem; }
    .nav-center { order: 3; width: 100%; justify-content: flex-start; gap: 1.1rem; margin: 0; }
    .nav-actions { margin-left: auto; }
    .sector, .sector.alt { justify-content: flex-start; }
    .sector.alt .sector-body { text-align: left; }
    .sector.alt .sector-meta, .sector.alt .btn-row { justify-content: flex-start; }
    .sector.alt .sector-tag { right: auto; left: 18px; }
    .orbital { display: none; }
    .hero { padding-top: 2.6rem; }
}

/* --- Reduced motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .orbital .ring, .led { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn, .orbital .planet, .nav-center a::after { transition: none !important; }
    #space { display: none; }
}
