/* SpaceJump website. Cinematic sci-fi: deep space dark, cream type, condensed caps for display, thin instrument
   lines and bracket corners, teal for action, orange for warnings and "new". */

:root {
  --hull: #0a1013;
  --hull-dark: #070b0d;
  --panel: #111b20;
  --panel-2: #18262d;
  --line: #22343c;
  --line-light: #34505b;
  --text: #ece4d1;
  --dim: #9fb0b1;
  --faint: #66797c;
  --teal: #4fd1bf;
  --teal-dim: rgba(79, 209, 191, 0.35);
  --orange: #f0953d;
  --red: #e0675c;
  --focus: #f2c14e;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --cut: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* a faint starfield behind everything */
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 72% 9%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 38% 64%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 46%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 22% 82%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 58% 33%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 93% 88%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,.3), transparent 60%),
    var(--hull);
  background-size: 520px 520px, 610px 610px, 470px 470px, 700px 700px, 560px 560px, 430px 430px, 650px 650px, 590px 590px, auto;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 600; }
h1, h2, .section h3, .tile h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--faint); font-size: 14px; }

/* ---------------------------------------------------------------- navigation */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 30px;
  padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  height: 62px;
  background: linear-gradient(180deg, rgba(7, 11, 13, 0.92), rgba(7, 11, 13, 0.78));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { color: var(--text); font-family: var(--cond); font-weight: 600; font-size: 22px; letter-spacing: 0.22em; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--dim); font-family: var(--cond); font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-dl { margin-left: auto; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- buttons: angled corners */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-family: var(--cond); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  border: 0; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #061412; box-shadow: 0 0 24px rgba(79, 209, 191, 0.25); }
.btn-primary:hover { background: #7ce3d5; color: #061412; }
.btn-quiet { background: rgba(236, 228, 209, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(236, 228, 209, 0.3); }
.btn-quiet:hover { background: rgba(236, 228, 209, 0.16); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 15px; --cut: 7px; }

/* ---------------------------------------------------------------- image placeholders (in-game shots TBC) */
.ph {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 9; min-height: 160px;
  background:
    repeating-linear-gradient(135deg, rgba(236, 228, 209, 0.025) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #15232a, #0d161a);
  border: 1px dashed var(--line-light);
  display: flex; align-items: flex-end;
}
.ph figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--dim); }
.ph figcaption b { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-tall { aspect-ratio: 4 / 5; }

/* bracket corners: a thin instrument frame */
.frame, .tile, .news, .stats {
  --bc: var(--teal-dim);
  background-image:
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc));
  background-repeat: no-repeat;
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; }
.hero-3d { position: absolute; inset: 0; background: #020405 url("assets/sky-kessler.jpg") 62% 45% / cover no-repeat; }
.hero-3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-3d.live canvas { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.7) 0%, rgba(5, 8, 10, 0.25) 40%, rgba(5, 8, 10, 0) 60%),
    linear-gradient(180deg, rgba(10, 16, 19, 0) 45%, rgba(10, 16, 19, 0.9) 88%, var(--hull) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)) 96px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.kicker i { width: 28px; height: 1px; background: var(--teal-dim); }
.hero h1 { font-size: clamp(56px, 10vw, 128px); font-weight: 600; letter-spacing: 0.14em; margin: 0 0 18px -0.04em; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero-lede { font-size: clamp(18px, 2vw, 21px); max-width: 580px; margin: 0 0 32px; line-height: 1.5; color: #e7dfcd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 22px 0 0; font-size: 13.5px; color: var(--dim); letter-spacing: 0.02em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 1px solid rgba(236,228,209,.35); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--text); border-radius: 1px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- stats band */
.stats {
  max-width: var(--wrap); margin: 0 auto; padding: 34px 20px; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { padding: 4px 28px; border-left: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.stats > div:first-child { border-left: 0; }
.stats b { font-family: var(--cond); font-weight: 600; font-size: 56px; line-height: 1; color: var(--text); }
.stats span { color: var(--dim); font-size: 14px; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--cond); font-size: 15px; }

/* ---------------------------------------------------------------- sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 110px 20px 0; }
.section-head { margin-bottom: 44px; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--teal); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow span { color: var(--faint); }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--teal-dim); }
.section h2 { font-size: clamp(36px, 4.6vw, 58px); }
.section-sub { color: var(--dim); margin: 16px 0 0; font-size: 17.5px; max-width: 60ch; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile { background-color: rgba(17, 27, 32, 0.75); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.tile:hover { border-color: var(--line-light); transform: translateY(-3px); --bc: var(--teal); }
.tile .ph { border: 0; border-bottom: 1px solid var(--line); min-height: 0; }
.tile-body { padding: 22px 24px 26px; }
.tile h3 { font-size: 25px; margin-bottom: 10px; }
.tile p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* the Kessler Reach map (3D) */
.reach { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 1px solid var(--line); background: #020405; }
.reach-3d { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; outline: none; }
.reach-3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.reach-3d canvas:active { cursor: grabbing; }
.reach-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.r3l {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; white-space: nowrap;
  background: none; border: 0; padding: 2px 4px; color: var(--dim);
  font: 600 12.5px var(--cond); letter-spacing: 0.16em; text-shadow: 0 0 6px #000, 0 0 2px #000;
}
.r3l:hover, .r3l.sel { color: var(--text); }
.r3l.sel::before { content: ""; position: absolute; left: 50%; top: -6px; width: 22px; height: 1px; margin-left: -11px; background: var(--teal); }
.r3l.sub { font-size: 11px; color: #b9c4c4; }
.r3l.k-blackhole { color: var(--orange); }
.r3l.k-gate, .r3l.k-beacon { color: var(--teal); }
.r3l.k-belt { color: #c9a46a; font-size: 11.5px; }
.r3l.k-outpost { color: #f3b27a; }
.reach-ui { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 3; }
.reach-ui button {
  background: rgba(7, 11, 13, 0.7); color: var(--text); border: 1px solid var(--line-light); padding: 7px 14px; cursor: pointer;
  font: 600 13.5px var(--cond); letter-spacing: 0.12em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.reach-ui button:hover { border-color: var(--teal); color: var(--teal); }
.reach-help { position: absolute; left: 16px; bottom: 12px; margin: 0; color: var(--faint); font: 12px var(--font-mono); letter-spacing: 0.06em; pointer-events: none; }
.reach-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 18px; pointer-events: none;
  background: rgba(7, 11, 13, 0.82); border: 1px solid var(--line-light); color: var(--text); font-size: 15px; opacity: 0; transition: opacity .25s;
}
.reach-hint.show { opacity: 1; }
.reach-tap {
  position: absolute; inset: auto 16px 16px; z-index: 4; padding: 14px; cursor: pointer;
  background: var(--teal); color: #061412; border: 0; font: 600 16px var(--cond); letter-spacing: 0.12em; text-transform: uppercase;
}
.reach.no3d .reach-3d { display: none; }
.reach.no3d { grid-template-columns: minmax(0, 1fr); }
.reach.fs { grid-template-columns: minmax(0, 1fr) 380px; border: 0; width: 100vw; height: 100vh; }
.reach.fs .reach-3d { height: 100vh; }
.reach.fs .reach-panel { background: rgba(5, 8, 10, 0.88); }
.reach.fs .reach-tap { display: none; }
.reach.fs .reach-help { content: ""; }
.reach-panel { border-left: 1px solid var(--line); background: rgba(7, 11, 13, 0.92); }
.reach-panel { padding: 26px 26px 30px; overflow-y: auto; contain: size; }
.reach-panel h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.05em; font-size: 34px; margin: 4px 0 12px; }
.rp-top { margin-bottom: 14px; }
.rp-back { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }
.rp-kind { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.rp-blurb { color: var(--text); font-size: 16.5px; margin: 0 0 18px; }
.rp-facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 0 0 18px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.rp-facts dt { color: var(--faint); font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; padding-top: 1px; }
.rp-facts dd { margin: 0; text-transform: capitalize; }
.rp-sub { display: block; color: var(--faint); font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; margin: 0 0 8px; }
.rp-ores { margin: 0 0 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ore { display: grid; grid-template-columns: 82px 1fr 40px; gap: 10px; align-items: center; font-size: 14.5px; margin-bottom: 6px; text-transform: capitalize; }
.ore i { display: block; height: 5px; background: linear-gradient(90deg, #b99a66, #e8c27c); }
.ore b { font-weight: 500; color: var(--dim); text-align: right; font-size: 13.5px; }
.rp-warn { color: var(--orange); font-size: 14px; margin: 8px 0 0; }
.rp-trade { display: grid; gap: 8px; margin: 0 0 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rp-trade div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; font-size: 15px; }
.rp-trade span { color: var(--faint); font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }
.rp-trade b { font-weight: 500; text-transform: capitalize; }
.rp-here { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; margin-bottom: 14px; }
.rp-here button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid rgba(34, 52, 60, 0.6); padding: 8px 0; cursor: pointer; text-align: left;
}
.rp-here button b { font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; }
.rp-here button span { color: var(--faint); font-size: 13px; white-space: nowrap; }
.rp-here button:hover b { color: var(--teal); }
.reach-note { color: var(--faint); font-size: 13px; margin: 12px 0 0; font-family: var(--font-mono); letter-spacing: 0.04em; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.split-text h2 { margin-bottom: 22px; }
.split-text p:not(.eyebrow) { color: var(--dim); font-size: 17.5px; margin: 0 0 16px; max-width: 54ch; }
.split-text p:not(.eyebrow):first-of-type { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery .ph { min-height: 0; }

.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news { background-color: rgba(17, 27, 32, 0.75); border: 1px solid var(--line); padding: 24px 26px; }
.news header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; color: var(--faint); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.news-ver { color: var(--orange); }
.news h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; font-size: 23px; margin-bottom: 12px; }
.news ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.news li { margin-bottom: 6px; }
.news-more { margin: 20px 0 0; font-size: 15px; }

.community {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 110px; padding: 44px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(79, 209, 191, 0.08), rgba(17, 27, 32, 0.8) 60%);
  max-width: calc(var(--wrap) - 40px);
}
.community p:not(.eyebrow) { color: var(--dim); margin: 12px 0 0; }

.faq { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--dim); margin: 10px 0 0; }

/* ---------------------------------------------------------------- roadmap (public: read only) */
#roadmap-section .section-head { margin-bottom: 30px; }
.roadmap-container { border: 1px solid var(--line); overflow: hidden; background: rgba(10, 16, 19, 0.92); }
.rm .hd h2, .ms h2, .col h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.06em; }
.views button { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; }
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  flex-wrap: wrap;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.counts { color: var(--faint); font-size: 13.5px; }
.views {
  display: flex;
  gap: 2px;
  background: var(--hull);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
}
.views button {
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--dim);
  font-size: 15px;
  font-weight: 500;
  transition: all .15s ease;
}
.views button[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--teal);
}
.views button:hover { color: var(--text); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.savestate { font-size: 13px; color: var(--dim); font-family: var(--font-mono); }
.savestate.bad { color: var(--orange); }

button.primary {
  background: var(--teal);
  color: #0E1D20;
  border: 0;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s ease;
}
button.primary:hover { background: #5eead4; }
button.ghost, button.plain {
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--dim);
  font-size: 15px;
  font-weight: 600;
}
button.ghost:hover, button.plain:hover { color: var(--text); border-color: var(--dim); }
button.danger {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 5px;
  padding: 6px 11px;
  cursor: pointer;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  background: rgba(26, 42, 48, 0.4);
  border-bottom: 1px solid var(--line);
}
.filters input[type=search] {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  width: 270px;
  max-width: 100%;
}
.filters select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px 3px 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--dim);
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.banner {
  margin: 10px 20px 0;
  padding: 10px 14px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(242, 140, 40, 0.1);
}
main { padding: 18px 20px 60px; outline: none; }

/* cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--line));
  border-radius: 4px;
  padding: 8px 10px 9px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
  color: inherit;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover {
  border-color: var(--dim);
  border-left-color: var(--c);
  transform: translateY(-1px);
}
.card.dragging { opacity: .4; }
.card .t { font-size: 15px; font-weight: 600; line-height: 1.25; display: block; }
.card .m { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }
.card .id { color: var(--faint); font-size: 12px; font-family: var(--font-mono); }
.card.done .t { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--faint); }
.st { display: inline-flex; align-items: center; gap: 5px; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.st.s-idea { --sc: var(--faint); } .st.s-planned { --sc: #8FB3D9; } .st.s-in-progress { --sc: var(--orange); }
.st.s-review { --sc: var(--focus); } .st.s-done { --sc: var(--teal); } .st.s-parked { --sc: transparent; }
.st.s-parked::before { border: 1px solid var(--faint); }
.pill { border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; font-size: 11.5px; font-family: var(--font-mono); }
.blocked { color: var(--orange); }

/* roadmap grid */
.rm { display: grid; grid-template-columns: 170px repeat(4, minmax(200px, 1fr)); gap: 0; min-width: 980px; }
.rm-wrap { overflow-x: auto; }
.rm .hd { position: sticky; top: 0; z-index: 2; background: var(--hull); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.rm .hd h2 { font-size: 19px; }
.rm .hd p { margin: 0; color: var(--dim); font-size: 12.5px; }
.rm .hd.now { padding-top: 10px; }
.rm .hd.now h2 { color: var(--teal); }
.rm .lane { padding: 12px 10px 14px 0; border-bottom: 1px solid var(--line); }
.rm .lane h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.rm .lane h3 i { width: 4px; align-self: stretch; min-height: 18px; background: var(--c); border-radius: 2px; }
.rm .lane .n { color: var(--faint); font-size: 12.5px; margin-left: 12px; }
.cell { padding: 10px 8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 64px; }
.cell.nowcol { background: color-mix(in srgb, var(--teal) 4%, transparent); }
.cell.over, .col.over { background: color-mix(in srgb, var(--teal) 12%, transparent); outline: 1px dashed var(--teal); outline-offset: -3px; }

/* board */
.board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; min-width: 1300px; }
.col { background: color-mix(in srgb, var(--panel) 50%, transparent); border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 300px; }
.col h2 { font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.col h2 small { color: var(--faint); font-size: 13px; font-family: var(--font-mono); }

/* milestones */
.ms-list { display: grid; gap: 18px; max-width: 1100px; }
.ms { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: var(--panel); }
.ms header { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.ms h2 { font-size: 21px; }
.ms p { margin: 2px 0 10px; color: var(--dim); max-width: 70ch; }
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin: 6px 0 12px; }
.bar > i { display: block; height: 100%; background: var(--teal); }
.ms .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.ms .pct { color: var(--dim); font-size: 13px; margin-left: auto; font-family: var(--font-mono); }

/* focus */
.focus { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.focus svg { width: 100%; height: auto; max-height: 74vh; display: block; }
.focus .axis { fill: var(--dim); font: 13px var(--font); }
.focus .quad { fill: var(--faint); font: 600 18px var(--cond); }
.focus .gridl { stroke: var(--line); }
.focus circle { cursor: pointer; stroke: var(--hull); stroke-width: 1.5; }
.focus circle:hover, .focus circle:focus { stroke: var(--text); stroke-width: 2; outline: none; }
.focus aside h2 { font-size: 20px; margin-bottom: 6px; }
.focus aside p { color: var(--dim); font-size: 13.5px; margin: 0 0 10px; }
.focus aside .stack { display: flex; flex-direction: column; gap: 6px; }

/* list */
table.list { border-collapse: collapse; width: 100%; min-width: 900px; }
.list th { text-align: left; font-family: var(--cond); font-size: 15px; font-weight: 600; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.list th[aria-sort] { color: var(--text); }
.list td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.list tr:hover td { background: var(--panel); cursor: pointer; }
.list td.t { font-size: 15px; font-weight: 600; }
.list .sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(5, 12, 14, .65); z-index: 200; backdrop-filter: blur(4px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw);
  background: var(--panel); border-left: 1px solid var(--line);
  z-index: 201; transform: translateX(100%); transition: transform .18s ease-out; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.drawer.open { transform: none; }
.drawer-in { padding: 22px 24px 44px; display: flex; flex-direction: column; gap: 14px; }
.drawer .head { display: flex; gap: 10px; align-items: flex-start; }
.drawer .head .id { color: var(--faint); font-size: 14px; padding-top: 6px; font-family: var(--font-mono); }
.drawer textarea.title {
  font-size: 24px; font-weight: 600; line-height: 1.2;
  background: none; border: 1px solid transparent; border-radius: 4px; padding: 2px 4px; resize: none; width: 100%;
}
.drawer textarea.title:hover, .drawer textarea.title:focus { border-color: var(--line); }
.drawer label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--dim); }
.drawer input, .drawer select, .drawer textarea {
  background: var(--hull); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; color: var(--text); font-size: 14.5px;
}
.drawer textarea { resize: vertical; min-height: 60px; }
.drawer .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drawer .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drawer label > input, .drawer label > select, .drawer label > textarea { width: 100%; min-width: 0; }
.seg { display: flex; gap: 3px; }
.seg button {
  flex: 1; background: var(--hull); border: 1px solid var(--line); border-radius: 4px; padding: 6px 0; cursor: pointer; color: var(--dim);
  font-family: var(--font-mono); font-size: 13px;
}
.seg button[aria-pressed="true"] { border-color: var(--teal); color: var(--text); background: color-mix(in srgb, var(--teal) 16%, var(--hull)); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links button {
  background: var(--hull); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 13px; text-align: left;
}
.links button .st { margin-left: 6px; }
.drawer .foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.drawer .foot .spacer { flex: 1; }
.muted { color: var(--faint); font-size: 13px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--teal); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: var(--text); padding: 9px 18px; border-radius: 6px; z-index: 300; font-weight: 500;
}
.empty { color: var(--dim); padding: 40px 0; text-align: center; }

/* public (read-only) roadmap */
body.public [data-edit] { display: none !important; }
body.public .card { cursor: pointer; }
body.public .card.done .t { text-decoration: none; color: var(--text); }
.released { color: var(--teal); font-size: 12px; }
.drawer .ro-title { font-size: 24px; font-weight: 600; line-height: 1.2; flex: 1; }
.drawer .ro-sum { color: var(--text); font-size: 16px; margin: 0; }
.drawer .ro-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; margin: 0; }
.drawer .ro-meta dt { color: var(--faint); }
.drawer .ro-meta dd { margin: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 110px; border-top: 1px solid var(--line); background: var(--hull-dark); padding: 32px 20px; font-size: 14.5px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.footer-brand { font-family: var(--cond); font-weight: 600; letter-spacing: 0.22em; font-size: 18px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.footer-links a { color: var(--dim); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach { grid-template-columns: minmax(0, 1fr); }
  .reach-3d { height: 62vh; min-height: 360px; }
  .reach-panel { contain: none; border-left: 0; border-top: 1px solid var(--line); }
  .reach.fs { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .reach.fs .reach-3d { height: auto; }
  .reach.fs .reach-panel { max-height: 42vh; contain: none; }
  .reach-help { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .stats > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .site-nav { gap: 12px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; flex-shrink: 0; order: 3; background: none; border: 1px solid var(--line); cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--text); }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--hull-dark); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 18px; border-bottom: 1px solid rgba(34, 52, 60, 0.6); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ph-tall { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 80px; }
  .community { padding: 28px 22px; margin-left: 20px; margin-right: 20px; }
  .top { padding: 12px 14px; gap: 10px; }
  .filters, main { padding-left: 14px; padding-right: 14px; }
  .actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .views { overflow-x: auto; max-width: 100%; }
  .focus { grid-template-columns: 1fr; }
  .drawer .row, .drawer .row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .tiles, .gallery { grid-template-columns: minmax(0, 1fr); }
  .stats > div { padding: 4px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .stats b { font-size: 44px; }
  .hero h1 { font-size: 12.5vw; letter-spacing: 0.05em; }
  .nav-brand { font-size: 19px; letter-spacing: 0.16em; }
  .hero-content { padding-bottom: 84px; }
  .filters input[type=search] { width: 100%; }
  .nav-dl { padding: 7px 12px; }
}
