/* John Galactic Industries · Mission Control design system (JGHB 1430.1 Rev B).
 * Pure black surfaces, International Orange for the one primary action, Navy (#8FA8DA on black) for information. */
@font-face { font-family: "Righteous"; src: url("/assets/fonts/Righteous-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/assets/fonts/MartianMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
@font-face { font-family: "Doto"; src: url("/assets/fonts/Doto-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --orange: #E8501A; --orange-deep: #B23A10; --navy: #1F3260; --info: #8FA8DA;
  --mint: #D9EEE8; --ink: #101413; --ash: #5E6A66;
  --text: #E3F1EC; --sub: #B8C4C0; --dim: #86908D; --panel: #050606; --hover: #0C0F0F; --line: #2A2F2E; --line-2: #161A19;
  --cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC";
  --sans: "IBM Plex Sans", var(--cjk), system-ui, sans-serif;
  --mono: "Martian Mono", var(--cjk), ui-monospace, monospace;
  --dot: "Doto", ui-monospace, monospace;
  --wrap: min(1320px, 100% - 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #000; }
body { background: #000; color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.m { font: 400 11px/1.5 var(--mono); font-stretch: 87%; letter-spacing: .12em; text-transform: uppercase; }
.dot { font-family: var(--dot); font-weight: 800; font-variation-settings: 'ROND' 100; letter-spacing: .04em; }
.info { color: var(--info); } .dim { color: var(--dim); } .sub { color: var(--sub); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 12px; }
.skip-link:focus { left: 12px; }

/* Wordmark: hidden until Righteous loads (never shown in a fallback face). */
.wm { font-family: "Righteous", sans-serif; font-weight: 400; line-height: 1; white-space: nowrap; visibility: hidden; }
.brand-font-ready .wm { visibility: visible; }
.lockup { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.lockup .stack { font: 500 .22em/1.08 var(--mono); font-stretch: 92%; letter-spacing: .09em; text-transform: uppercase; margin-left: .45em; padding-left: .5em; border-left: 1px solid currentColor; opacity: .92; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }
.site-header .lockup { font-size: 26px; }
#site-nav { display: flex; gap: 2px; }
#site-nav a { text-decoration: none; font: 400 11px/1 var(--mono); font-stretch: 87%; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 9px 10px; border: 1px solid transparent; border-radius: 3px; }
#site-nav a:hover { color: var(--text); border-color: var(--line); }
#site-nav a[aria-current="page"] { color: var(--text); border-color: var(--line); }
.header-controls { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; align-items: center; gap: 2px; font: 400 11px var(--mono); color: var(--dim); }
.language-switch button { background: none; border: 0; padding: 6px 6px; color: var(--dim); letter-spacing: .08em; }
.language-switch button[aria-pressed="true"] { color: var(--text); }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; background: none; position: relative; }
.menu-button span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .2s; }
.menu-button span:first-child { top: 15px; } .menu-button span:last-child { top: 23px; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Status strip: every division at a glance */
.strip { border-bottom: 1px solid var(--line); color: var(--dim); }
.strip .wrap { display: flex; gap: 26px; padding: 9px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; align-items: center; }
.strip .wrap::-webkit-scrollbar { display: none; }
.strip a { text-decoration: none; }
.strip a:hover { color: var(--text); }
.strip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text); margin-right: 7px; vertical-align: 1px; }
.strip i.wip { background: transparent; border: 1px solid var(--dim); }
.strip .utc { margin-left: auto; color: var(--info); padding-left: 20px; }

/* ---------- Building blocks ---------- */
.panel { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); position: relative; }
.ph { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 14px var(--sans); padding: 12px 18px; border-radius: 3px; border: 1px solid #3a4140; color: var(--text); background: none; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: #d14412; }
.link { color: var(--info); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(143,168,218,.4); }
.link:hover { border-color: var(--info); }
.chip { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; border-radius: 2px; color: var(--info); white-space: nowrap; }
.chip.live { color: var(--orange); }
.sec { padding: 80px 0 0; }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; }
.sec-h .m { color: var(--dim); }
.figure { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #000; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--dim); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 32px 0 24px; }
.statement { padding: 40px 32px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 470px; }
.statement h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: .92; letter-spacing: -.045em; }
.statement p { color: var(--sub); max-width: 32em; font-size: 18px; margin-top: 22px; }
.acts { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.launch { display: flex; flex-direction: column; }
.launch .body { padding: 26px 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; border-bottom: 3px solid var(--orange); }
.launch .clock { font-size: clamp(38px, 5vw, 72px); line-height: 1; color: #fff; overflow-wrap: anywhere; }
.launch .name { font: 600 20px/1.25 var(--sans); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font: 400 11px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.kv dt { color: var(--dim); } .kv dd { color: var(--text); }
.band { height: clamp(160px, 22vw, 300px); background: #000 url(/assets/images/mars-orbit-hero.webp) center 40% / cover; border-radius: 4px; border: 1px solid var(--line); position: relative; }
.band span { position: absolute; left: 14px; bottom: 12px; color: #fff; }

/* Division board */
.board { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.board .row { display: grid; grid-template-columns: 130px 1.1fr 2fr 200px; gap: 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; transition: background .15s; }
.board a.row:hover { background: var(--hover); }
.board .row.head { border-top: 0; background: #0a0c0c; color: var(--dim); padding: 10px 18px; }
.board .code { font-size: 22px; }
.board .nm { font: 700 20px var(--sans); }
.board .ds { color: #a9b6b2; font-size: 14.5px; }
.board .stt { text-align: right; color: var(--info); }
.board .stt.live { color: var(--orange); }

/* Consoles (product cards) */
.consoles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.console { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); transition: border-color .15s; }
a.console:hover { border-color: #46504e; }
.console .shot { height: 210px; border-bottom: 1px solid var(--line); background: #000 center / cover no-repeat; position: relative; overflow: hidden; }
.console .shot.contain { background-size: contain; }
.console .shot.dotart { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, rgba(232,80,26,.28), #000 70%); }
.console .shot.dotart b { font-size: clamp(34px, 4vw, 52px); color: #fff; text-align: center; line-height: 1.05; }
.console .cb { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.console h3 { font-size: 19px; }
.console p { color: #a9b6b2; font-size: 14px; flex: 1; }

/* Log feed */
.feed { border: 1px solid var(--line); border-radius: 4px; padding: 6px 0; }
.feed .entry { display: grid; grid-template-columns: 120px 90px 1fr; gap: 16px; padding: 12px 18px; align-items: baseline; text-decoration: none; color: inherit; }
.feed a.entry:hover { background: var(--hover); }
.feed time, .feed .code { font: 400 12.5px var(--mono); }
.feed time { color: var(--dim); } .feed .code { color: var(--info); }
.feed b { font-weight: 600; }
.feed p { color: #a9b6b2; font-size: 14.5px; margin-top: 4px; }

/* Duo / panels with copy */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.pad { padding: 26px; }
.duo h3, .pad h3 { font-size: 24px; letter-spacing: -.02em; }
.duo p, .pad p { color: var(--sub); margin-top: 10px; }
.swatches { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.swatches i { width: 56px; height: 56px; border-radius: 3px; border: 1px solid var(--line); }

/* Sub-page head */
.page-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 32px 0 0; }
.page-head .title { padding: 34px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 320px; }
.page-head h1 { font-size: clamp(42px, 5.6vw, 84px); line-height: .94; letter-spacing: -.045em; }
.page-head .lede { color: var(--sub); font-size: 18px; max-width: 34em; margin-top: 18px; }
.page-head .spec { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-bottom: 3px solid var(--orange); }
.page-head .spec .big { font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: #fff; }
.crumbs { color: var(--dim); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap h3 { font-size: 20px; margin-top: 14px; }
.cap .n { color: var(--info); }
.media-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.media-row .figure img { aspect-ratio: 16 / 10; }
.note { color: var(--dim); font-size: 14px; border-left: 2px solid var(--line); padding-left: 14px; margin-top: 18px; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0a0c0c; }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table td:first-child { font-weight: 700; font-size: 17px; }
.table tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer .lockup { font-size: 30px; color: var(--text); }
.site-footer nav a { display: block; text-decoration: none; color: #c3cfcb; margin-top: 8px; font-size: 14px; }
.site-footer nav a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 20px; margin-top: 12px; }

/* Reveal motion (respects reduced motion via site.js) */
.motion-enabled .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.motion-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive (desktop → Fold inner → Fold cover / phones) ---------- */
@media (max-width: 1080px) {
  #site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 12px; }
  .menu-button { display: block; }
  .hero, .page-head, .duo, .media-row { grid-template-columns: 1fr; }
  .statement { min-height: 0; padding: 30px 24px; }
  .page-head .title { min-height: 0; padding: 28px 24px; }
  .consoles, .grid3 { grid-template-columns: 1fr 1fr; }
  .board .row { grid-template-columns: 110px 1fr auto; }
  .board .ds { grid-column: 2 / 3; grid-row: 2; }
  .board .row.head { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); }
  .site-header .lockup { font-size: 21px; }
  .strip .utc { display: none; }
  .consoles, .grid3, .grid2 { grid-template-columns: 1fr; }
  .board .row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; }
  .board .code { font-size: 18px; } .board .nm { grid-column: 1 / -1; } .board .ds { grid-column: 1 / -1; grid-row: auto; }
  .board .stt { grid-row: 1; grid-column: 2; }
  .feed .entry { grid-template-columns: auto 1fr; gap: 2px 12px; } .feed .entry > div { grid-column: 1 / -1; }
  .table thead { display: none; } .table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-bottom: 1px solid var(--line-2); } .table td { padding: 2px 0; border: 0; }
  .sec { padding-top: 60px; }
  .acts .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
/* Polish */
@media (min-width: 641px) { .launch .clock { white-space: nowrap; font-size: clamp(30px, 3.4vw, 58px); } }
@media (max-width: 640px) { .site-header .lockup .stack { display: none; } }
