/* BRS Orbit — v7. Deep-space mission control. No frameworks, no build step. */
:root {
  --bg: #05060f;
  --bg-2: #0a0d1f;
  --panel: rgba(16, 20, 42, .72);
  --panel-solid: #10142a;
  --line: rgba(140, 160, 255, .16);
  --line-2: rgba(140, 160, 255, .32);
  --ink: #e9ecff;
  --muted: #9aa3c7;
  --sun: #ff8a3d;
  --sun-2: #ffc46b;
  --ice: #4cc9f0;
  --violet: #b388ff;
  --ok: #5eead4;
  --bad: #ff6b81;
  --radius: 16px;
  --display: 'Orbitron', system-ui, sans-serif;
  --body: 'Exo 2', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(ellipse at 20% -10%, #1a1446 0%, transparent 55%), radial-gradient(ellipse at 110% 60%, #0b2a44 0%, transparent 50%), var(--bg);
  background-attachment: fixed;
  color: var(--ink); font: 300 17px/1.65 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--ice); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: .02em; margin: 0 0 .5em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.line-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* ---------- Space backdrop ---------- */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.nebula {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 70% 20%, rgba(179, 136, 255, .18), transparent 30%), radial-gradient(circle at 15% 80%, rgba(76, 201, 240, .12), transparent 30%);
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(4%, -3%) rotate(6deg); } }

/* ---------- Shared bits ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); margin: 0 0 .5rem; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 234, 212, .7); animation: pulse 2s infinite; vertical-align: middle; margin-right: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }

.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; margin: 0 .4rem .4rem 0; }
.btn-primary { background: linear-gradient(135deg, var(--sun), #ff5e62); color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 110, 70, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(255, 110, 70, .9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--ice); color: var(--ice); }
.chip { display: inline-block; padding: .3em .9em; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: .85rem var(--mono); cursor: pointer; }
.chip.is-active, .chip:hover { color: #000; background: var(--ice); border-color: var(--ice); }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(5, 6, 15, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 500 1.1rem var(--display); letter-spacing: .08em; }
.brand b { color: var(--sun); font-weight: 900; }
.brand-mark { position: relative; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--sun-2), var(--sun) 55%, #8a2b0a); box-shadow: 0 0 18px rgba(255, 138, 61, .6); }
.brand-mark::before { content: ''; position: absolute; inset: -6px -10px; border: 1.5px solid rgba(76, 201, 240, .7); border-radius: 50%; transform: rotate(-20deg); }
.brand-moon { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); top: 50%; left: 50%; margin: -3.5px; animation: moon 4s linear infinite; }
@keyframes moon { from { transform: rotate(0) translateX(20px) scaleY(.6); } to { transform: rotate(360deg) translateX(20px) scaleY(.6); } }
.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: .45em .8em; border-radius: 999px; font-size: .93rem; transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-here { color: var(--ink); background: rgba(76, 201, 240, .12); }
.topbar-tools { display: flex; align-items: center; gap: .8rem; }
.met { font-size: .78rem; color: var(--ok); border: 1px solid var(--line); border-radius: 999px; padding: .35em .8em; white-space: nowrap; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 66px); display: grid; align-items: center; padding: 3rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 900; margin: .2em 0 .3em; background: linear-gradient(120deg, #fff 20%, var(--sun-2) 60%, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(255, 160, 80, .25); }
.hero-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; }
.hero-roles span { font-size: .8rem; padding: .25em .8em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ice); }
.hero-intro { font-size: 1.15rem; color: #c9cff0; max-width: 34em; }
.hero-cta { margin: 1.6rem 0 2rem; }
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0; }
.telemetry div { border-left: 2px solid var(--sun); padding-left: .8rem; }
.telemetry dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.telemetry dd { margin: 0; font: 700 1.7rem var(--display); color: var(--ink); }
.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; text-decoration: none; letter-spacing: .15em; text-transform: uppercase; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* Orrery */
.orrery { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.planet { position: absolute; inset: 37%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255, 138, 61, .35), 0 0 60px 10px rgba(255, 138, 61, .35), inset 0 0 30px rgba(0, 0, 0, .6); animation: glow 5s ease-in-out infinite; z-index: 2; }
.planet img { width: 100%; height: 100%; object-fit: cover; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255, 138, 61, .5), 0 0 90px 18px rgba(255, 138, 61, .45), inset 0 0 30px rgba(0, 0, 0, .6); } }
.ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); max-width: 100%; max-height: 100%; translate: -50% -50%; border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); border-radius: 50%; animation: spin var(--t) linear infinite; rotate: var(--start); }
.moon { position: absolute; top: 0; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 50%, #000)); color: #0a0d1f; font-size: .85rem; box-shadow: 0 0 18px var(--c); animation: spin var(--t) linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orrery:hover .ring, .orrery:hover .moon { animation-play-state: paused; }

/* ---------- Sections ---------- */
.sec { padding: 6rem 0; position: relative; }
.page-top { padding-top: 4rem; }
.sec-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2.6rem; }
.sec-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--sun); font-size: 1.2rem; box-shadow: 0 0 24px rgba(255, 138, 61, .15) inset; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0; }
.sec-sub { color: var(--muted); margin: .5rem 0 0; max-width: 46em; }
.sub-head { margin: 3.5rem 0 1.2rem; font-size: 1.2rem; }
.sub-head i { color: var(--sun); margin-right: .4rem; }

/* Crew */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.about-copy { padding: 2rem; }
.lead { margin: 0 0 1rem; color: #d0d5f2; }
.radio { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--ok); background: rgba(94, 234, 212, .06); border-radius: 0 10px 10px 0; color: var(--ok); font-size: .92rem; }
.patches { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.patch { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; transition: border-color .25s, transform .25s; }
.patch:hover { border-color: var(--line-2); transform: translateX(4px); }
.patch h3 { font-size: .95rem; margin: 0 0 .2rem; }
.patch p { margin: 0; font-size: .92rem; }
.patch-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--c); border: 2px solid var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent), 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); }

/* Missions: milestones as planets on tilted orbits, with a console for the selected one */
.orbit-log { display: grid; grid-template-columns: 1.75fr 1fr; gap: 1.2rem; align-items: stretch; }
.orbit-stage { position: relative; padding: .5rem; overflow: hidden; background: radial-gradient(ellipse at center, rgba(40, 30, 80, .55), rgba(5, 6, 15, .9) 70%); }
.orbit-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.orbit-paths ellipse { fill: none; stroke: rgba(140, 170, 255, .18); stroke-width: 1; transition: stroke .3s; }
.orbit-paths ellipse.is-next { stroke-dasharray: 4 7; }
.orbit-paths ellipse.is-on { stroke: var(--c, var(--ice)); stroke-width: 1.6; filter: drop-shadow(0 0 4px var(--c, var(--ice))); }
.sun { fill: #fff3d6; filter: drop-shadow(0 0 14px #ffc46b); }
.sun-glow { animation: sunpulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sunpulse { 50% { transform: scale(1.15); opacity: .8; } }
.sun-label { fill: var(--sun-2); font: 700 11px var(--mono); letter-spacing: .15em; text-anchor: middle; }
.beam { stroke: var(--c, var(--ice)); stroke-width: 1.5; stroke-dasharray: 2 6; opacity: .8; animation: beam 1s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -16; } }
.mplanet { cursor: pointer; outline: none; }
.mplanet .body { fill: var(--c); filter: drop-shadow(0 0 6px var(--c)); transition: transform .3s; }
.mplanet .sel { fill: none; stroke: var(--c); stroke-width: 1.5; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s; }
.mplanet text { fill: var(--muted); font: 700 12px var(--mono); text-anchor: middle; transition: fill .3s; }
.mplanet:hover .body, .mplanet:focus-visible .body { transform: scale(1.35); }
.mplanet:hover text, .mplanet:focus-visible text { fill: var(--ink); }
.mplanet.is-active .sel { opacity: 1; transform: none; animation: selspin 6s linear infinite; stroke-dasharray: 6 4; }
.mplanet.is-active .body { transform: scale(1.4); }
.mplanet.is-active text { fill: var(--c); }
@keyframes selspin { to { transform: rotate(360deg); } }
.mplanet[data-i]:last-child .body { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 3; }
.stage-legend { position: absolute; left: 1rem; bottom: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; font-size: .7rem; color: var(--muted); }
.stage-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 4px; }

.console { display: flex; flex-direction: column; padding: 1.3rem 1.4rem; background: linear-gradient(180deg, rgba(16, 20, 42, .9), rgba(10, 13, 31, .9)); position: relative; overflow: hidden; }
.console::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.console-head { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--ok); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.console-nav { display: flex; gap: .4rem; }
.console-nav .icon-btn { width: 34px; height: 34px; font-size: .8rem; }
.m-file + .m-file { margin-top: 1.5rem; }
.js .m-file { display: none; margin: 0; }
.js .m-file.is-active { display: block; animation: decode .45s ease-out; }
@keyframes decode { from { opacity: 0; transform: translateX(14px); filter: blur(3px); } }
.m-code { font-size: .72rem; color: var(--muted); margin: 0; }
.m-year { font: 900 clamp(2.6rem, 5vw, 3.6rem) / 1 var(--display); margin: .3rem 0; color: var(--c); text-shadow: 0 0 30px color-mix(in srgb, var(--c) 50%, transparent); }
.m-type { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin: 0 0 .8rem; }
.m-file h3 { font-size: 1.15rem; }
.m-file p.muted { margin: 0 0 1rem; font-size: .95rem; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding-top: .9rem; border-top: 1px dashed var(--line-2); }
.m-stats dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.m-stats dd { margin: 0; font-size: .85rem; }
.m-stats .ok { color: var(--ok); }
.m-stats .wait { color: var(--sun-2); }
.m-dots { display: none; gap: 6px; margin-top: auto; padding-top: 1.2rem; }
.js .m-dots { display: flex; }
.m-dots span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.m-dots span.is-done { background: var(--muted); }
.m-dots span.is-active { background: var(--ice); box-shadow: 0 0 6px var(--ice); }

.year-strip { display: flex; gap: .6rem; margin-top: 1.2rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.year-strip button { flex: 1 0 120px; text-align: left; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); border-top: 2px solid var(--c); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; transition: background .25s, transform .25s; }
.year-strip button:hover { transform: translateY(-3px); }
.year-strip button.is-active { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 20px -6px var(--c); }
.year-strip b { display: block; font: 700 1rem var(--display); color: var(--c); }
.year-strip small { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Orbits: skills as satellite constellations on a ground-track screen */
.tracker { display: grid; grid-template-columns: 1.75fr 1fr; gap: 1.2rem; }
.track-screen { padding: .8rem; background: radial-gradient(ellipse at center, rgba(12, 40, 60, .6), rgba(5, 6, 15, .92) 75%); position: relative; overflow: hidden; }
.track-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(94, 234, 212, .03) 0 1px, transparent 1px 3px); }
.track-screen { display: flex; flex-direction: column; }
.track-screen svg { width: 100%; flex: 1; min-height: 320px; display: block; }
.screen-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ok); text-transform: uppercase; letter-spacing: .12em; margin: 0 .3rem .6rem; }
.grid line { stroke: rgba(94, 234, 212, .08); stroke-width: 1; }
.grid .equator { stroke: rgba(94, 234, 212, .25); stroke-dasharray: 6 6; }
.ground-tracks polyline { fill: none; stroke: var(--c); stroke-width: 1; opacity: .18; stroke-dasharray: 2 5; transition: opacity .3s, stroke-width .3s; }
.ground-tracks polyline.is-on { opacity: .85; stroke-width: 1.8; stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--c)); }
.tsat { transition: opacity .3s; opacity: .35; }
.tsat .core { fill: var(--c); }
.tsat .wing { fill: color-mix(in srgb, var(--c) 50%, #cfe3ff); }
.tsat .cone { fill: var(--c); opacity: 0; }
.tsat text { fill: var(--ink); font: 600 12px var(--body); opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: #05060f; stroke-width: 3px; }
.tsat.is-on { opacity: 1; }
.tsat.is-on .cone { opacity: .15; animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tsat.is-on text { opacity: 1; }
@keyframes ping { from { transform: scale(.4); opacity: .4; } to { transform: scale(1.6); opacity: 0; } }
.sweep-range { fill: none; stroke: rgba(94, 234, 212, .2); }
.sweep { fill: rgba(94, 234, 212, .14); animation: spin 5s linear infinite; transform-origin: 0 0; }
.dish { fill: var(--ok); filter: drop-shadow(0 0 6px var(--ok)); }

.track-table { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.groups { display: flex; flex-direction: column; gap: .35rem; }
.groups button { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 400 .92rem var(--body); text-align: left; cursor: pointer; transition: all .2s; }
.groups button i { width: 18px; color: var(--c); }
.groups button span { flex: 1; }
.groups button small { font-size: .72rem; }
.groups button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.groups button.is-active { color: var(--ink); border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 3px 0 0 var(--c); }
.sat-table h3 { font-size: .9rem; color: var(--c); margin: 0 0 .6rem; }
.sat-table + .sat-table { margin-top: 1rem; }
.js .sat-table { display: none; margin: 0; }
.js .sat-table.is-active { display: block; animation: decode .4s ease-out; }
.sat-head, .sat-table li { display: grid; grid-template-columns: 3.2rem 1fr 5.5rem 3.2rem; gap: .5rem; align-items: center; }
.sat-head { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0 .5rem .4rem; border-bottom: 1px solid var(--line); }
.sat-table ul { list-style: none; margin: 0; padding: 0; }
.sat-table li { padding: .45rem .5rem; font-size: .88rem; border-bottom: 1px dashed var(--line); }
.sat-table li span:first-child, .sat-table li span:nth-child(3) { font-size: .72rem; }
.sat-table b { font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 4px; background: var(--line-2); border-radius: 1px; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 45%; } .bars i:nth-child(3) { height: 60%; } .bars i:nth-child(4) { height: 80%; } .bars i:nth-child(5) { height: 100%; }
.bars i.on { background: var(--c); box-shadow: 0 0 4px var(--c); }

/* Landing sites: canvas scene of the Earth, satellites and a telescope */
.earth-view { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #010208; }
.earth-view canvas { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 400; }
.earth-view.is-pointer canvas { cursor: pointer; }
.earth-hud { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; font-size: .78rem; color: var(--muted); pointer-events: none; }
.earth-hud b { color: var(--ink); font: 600 1rem var(--body); }
.earth-hud .hint { color: var(--sun-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Vlogs */
.vlogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.vlog { overflow: hidden; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.yt-lite:hover img { opacity: 1; }
.yt-lite iframe { width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 138, 61, .9); color: #fff; box-shadow: 0 0 30px var(--sun); }
.vlog-body { padding: 1.1rem 1.3rem; }
.vlog-body h3 { font-size: 1rem; }
.vlog-body p { margin: 0; font-size: .92rem; }

/* Transmissions */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-grid > [hidden] { display: none; }
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .3s, border-color .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 20px 50px -20px rgba(76, 201, 240, .45); }
.post-img { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-img img { transform: scale(1.06); }
.post-img::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px); opacity: 0; transition: opacity .3s; }
.post-card:hover .post-img::after { opacity: 1; }
.freq { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; padding: .25em .7em; border-radius: 999px; background: rgba(5, 6, 15, .75); color: var(--ok); z-index: 1; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem; }
.post-body h3 { font-size: 1.05rem; }
.post-body p { margin: 0 0 1rem; font-size: .93rem; }
.post-foot { display: flex; justify-content: space-between; margin-top: auto; font-size: .75rem; }
.read { color: var(--sun-2); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

/* ---------- Comms (contact) ---------- */
.comms-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.comms-form { padding: 1.8rem; }
.comms-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ok); margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--muted); }
.field b { color: var(--sun); margin-left: 2px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: .8em 1em; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 6, 15, .6); color: var(--ink); font: 400 1rem var(--body); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(76, 201, 240, .2); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.comms-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; }
.comms-foot .btn { margin: 0; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .93rem; }
.alert-ok { background: rgba(94, 234, 212, .1); color: var(--ok); border: 1px solid rgba(94, 234, 212, .35); }
.alert-error { background: rgba(255, 107, 129, .1); color: var(--bad); border: 1px solid rgba(255, 107, 129, .35); }
.relays { display: flex; flex-direction: column; gap: .8rem; }
.relay { padding: 1rem 1.2rem; }
.relay h3 { font-size: .9rem; }
.relay-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.relay-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: all .2s; }
.relay-link:hover { color: #000; background: var(--sun-2); border-color: var(--sun-2); box-shadow: 0 0 16px var(--sun); }

/* Launch countdown overlay */
.countdown { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; text-align: center; background: rgba(5, 6, 15, .92); backdrop-filter: blur(6px); }
.countdown[hidden] { display: none; }
.count-num { font: 900 clamp(6rem, 22vw, 12rem) / 1 var(--display); margin: 0; color: var(--sun-2); text-shadow: 0 0 60px var(--sun); animation: tick .8s ease-out infinite; }
.countdown.liftoff .count-num { animation: none; }
@keyframes tick { from { transform: scale(1.3); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); } }
.count-rocket { font-size: 3rem; color: var(--ink); margin: 1.5rem auto 0; rotate: -45deg; }
.countdown.liftoff .count-rocket { animation: liftoff 1s ease-in forwards; }
@keyframes liftoff { to { transform: translate(60vw, -80vh); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: .78rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }

/* ---------- Blog post ---------- */
.story-head { max-width: 820px; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ice); text-decoration: none; }
.story-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .6rem; }
.story-dek { font-size: 1.2rem; color: #c9cff0; margin: 0 0 1.2rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .8rem; color: var(--muted); }
.story-meta i { color: var(--sun); margin-right: .3rem; }
.story-cover { max-width: 1000px; margin: 2rem auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.story-body { width: min(760px, 100% - 32px); margin: 0 auto; }
.prose { font-size: 1.08rem; color: #d6daf3; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose a { color: var(--sun-2); }
.prose img { border-radius: 12px; margin: 1.5em auto; }
.prose blockquote { margin: 1.5em 0; padding: .6em 1.2em; border-left: 3px solid var(--sun); background: rgba(255, 138, 61, .06); border-radius: 0 10px 10px 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: rgba(140, 160, 255, .12); padding: .1em .35em; border-radius: 5px; }
.prose pre { overflow-x: auto; padding: 1rem; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; }
.story-foot { width: min(760px, 100% - 32px); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags .chip { cursor: default; }
.tags .chip:hover { background: transparent; color: var(--muted); border-color: var(--line-2); }
.share { display: flex; align-items: center; gap: .5rem; }
.share .kicker { margin: 0 .3rem 0 0; }

/* Resume */
.paper-sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.resume-head { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1rem; }
.resume-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; margin: 0; }
.resume-h { font-size: 1rem; color: var(--sun-2); margin: 2rem 0 .7rem; text-transform: uppercase; letter-spacing: .12em; }
.resume-skills { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.resume-skills dt { font-weight: 600; }
.resume-skills dd { margin: 0; color: var(--muted); }

/* 404 */
.err-code { display: flex; justify-content: center; align-items: center; gap: .3em; font: 900 clamp(5rem, 18vw, 9rem) / 1 var(--display); color: var(--sun-2); margin: 0 0 1rem; text-shadow: 0 0 50px var(--sun); }
.drift { font-size: .6em; color: var(--ink); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(8px, -14px) rotate(20deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; padding: 1rem; background: rgba(5, 6, 15, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; margin: 0; }
  .nav.is-open { transform: none; }
  .nav a { padding: .8em 1em; }
  .menu-btn { display: inline-grid; }
  .topbar-tools { margin-left: auto; }
  .hero-grid, .about-grid, .comms-grid, .orbit-log, .tracker { grid-template-columns: 1fr; }
  .orrery { width: min(420px, 100%); }
}
@media (max-width: 720px) {
  .met { display: none; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .sec { padding: 4rem 0; }
  .moon { width: 30px; height: 30px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  #space, .nebula, .topbar, .footer, #comms, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .paper-sheet { border: 0; background: none; }
}
