/* ==========================================================================
   Space Junk Industries — spacejunkindustries.com
   Single stylesheet. No external fonts, no network requests.

   Identity note. Astral Sovereignty's site reads as a naval command
   instrument: blue, precise, reticle brackets. This is the workshop the
   instrument was built in. Same engineering, different room — cut steel and
   rust under a cyan work-lamp, with the hexagon from the company mark as the
   recurring cut. Radii stay tight because a plate has edges, not corners.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Surfaces: near-black, a shade warmer than the game site's blue-black */
  --bg-0:      #05070c;
  --bg-1:      #080b12;
  --bg-2:      #0c1018;
  --panel:     #12161f;
  --panel-2:   #171c27;
  --panel-3:   #1f2531;

  /* Lines */
  --line:      #1f2733;
  --line-soft: #171e28;
  --line-lit:  #2d3746;
  --edge-ui:   #556478;   /* 3.1:1 on --bg-0: interactive boundaries (WCAG 1.4.11) */

  /* Brand — the neon edge of the company mark */
  --cyan:      #3fd2e6;
  --cyan-lit:  #6ee7f5;   /* text-safe cyan on dark: 9.6:1 on --bg-0 */
  --cyan-deep: #14515e;
  --cyan-dim:  rgba(63, 210, 230, .13);

  /* Support — the weathered plate the neon is bolted to */
  --rust:      #d1783f;   /* oxidised steel: warnings, "in progress" */
  --rust-lit:  #f0a370;   /* text-safe rust on dark: 7.4:1 on --bg-0 */
  --rust-dim:  rgba(209, 120, 63, .13);
  --steel:     #8e99a8;
  --live:      #6fdca0;   /* shipped / running */
  --live-dim:  rgba(111, 220, 160, .12);
  --danger:    #e46a63;
  --danger-dim: rgba(228, 106, 99, .12);

  /* Text — all verified >= 4.5:1 on --bg-0 and --panel */
  --text:      #e9eef7;
  --text-2:    #b7c2d2;   /* 9.4:1 on --bg-0 */
  --text-3:    #8d99aa;   /* 5.7:1 on --bg-0 */
  --text-4:    #78859a;   /* 4.6:1 on --panel, 5.2:1 on --bg-0 */

  /* Type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "Roboto Mono", monospace;

  /* Fluid scale */
  --t-hero: clamp(2.25rem, 1.3rem + 3.6vw, 4.1rem);
  --t-h1:   clamp(2rem,   1.25rem + 3.1vw, 3.4rem);
  --t-h2:   clamp(1.55rem, 1.15rem + 1.7vw, 2.35rem);
  --t-h3:   clamp(1.12rem, .99rem + .58vw, 1.4rem);
  --t-body: clamp(1rem, .965rem + .16vw, 1.09rem);
  --t-sm:   .875rem;
  --t-xs:   .765rem;

  /* Space */
  --gut: clamp(1.15rem, .55rem + 2.6vw, 2.5rem);
  --sec: clamp(4.25rem, 2.4rem + 7.4vw, 8.5rem);
  --max: 1200px;
  --measure: 68ch;

  --r-sm: 3px;
  --r:    4px;
  --r-lg: 6px;

  /* Elevation is a 1px top highlight, never a shadow smeared on near-black. */
  --lift: inset 0 1px 0 rgba(233, 238, 247, .055);

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* The company mark's silhouette, reused as a clip on plates and chips. */
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -.022em;
  font-weight: 650;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--cyan-lit);
  text-decoration-color: color-mix(in srgb, var(--cyan-lit) 40%, transparent);
  text-underline-offset: .22em;
  transition: color .18s var(--ease);
}
a:hover { color: #a4f2fb; }

:focus-visible {
  outline: 2px solid var(--cyan-lit);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(63, 210, 230, .30); color: #fff; }

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--tight { max-width: 900px; }

.section { padding-block: var(--sec); position: relative; }
.section--hair { border-top: 1px solid var(--line-soft); }
.section--tight { padding-block: clamp(2.75rem, 1.6rem + 4.6vw, 5rem); }

.stack   { display: grid; gap: 1.15rem; }
.stack-2 { display: grid; gap: 2rem; }
.measure { max-width: var(--measure); }

.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head p { color: var(--text-2); max-width: var(--measure); }

/* Eyebrow: mono telemetry label with a rule */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}
.eyebrow--r { color: var(--rust-lit); }
.eyebrow--r::before { background: var(--rust); }
.eyebrow--l { color: var(--live); }
.eyebrow--l::before { background: var(--live); }

/* ---------- 4. Ambient backdrop ------------------------------------------ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1050px 600px at 78% -10%, rgba(63,210,230,.13), transparent 62%),
    radial-gradient(820px 500px  at 6% 14%,   rgba(209,120,63,.06), transparent 60%),
    radial-gradient(980px 740px  at 48% 106%, rgba(20,81,94,.20),   transparent 66%),
    var(--bg-0);
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8; }

/* A faint technical grid, like a cutting-table overlay */
.grid-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 12%, transparent 76%);
  opacity: .5;
}

/* ---------- 5. Header ---------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-0) 76%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hdr[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg-0) 92%, transparent);
}
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; }

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 680;
  letter-spacing: -.012em;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.brand b { font-weight: 680; line-height: 1.15; }
.brand span { color: var(--cyan-lit); font-weight: 680; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 520;
  padding: .5rem .72rem;
  border-radius: var(--r-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav a[aria-current="page"] { color: var(--text); background: var(--cyan-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--edge-ui);
  border-radius: var(--r-sm);
  width: 42px; height: 38px;
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 19px; height: 19px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: .6rem var(--gut) 1.1rem;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100dvh - 4.4rem);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .78rem .7rem; font-size: 1rem; }
  .nav .btn { margin-top: .5rem; text-align: center; justify-content: center; }
}

/* ---------- 6. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .005em;
  padding: .78rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge-ui);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--panel-3); border-color: #3d4a5e; color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  /* Ink is near-black on purpose. The fill must therefore stay light enough
     that the DARKEST stop still clears 4.5:1 — #2ba7bd measures 6.5:1 against
     #04161a, #4fd8e8 measures 10.9:1. Darkening this gradient breaks AA. */
  background: linear-gradient(180deg, #4fd8e8, #2ba7bd);
  border-color: #6ee7f5;
  color: #04161a;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 0 0 1px rgba(63,210,230,.45);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #63e0ee, #34b8cf);
  border-color: #8df0ff;
  color: #04161a;
  box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 0 0 1px rgba(141,240,255,.7), 0 0 22px -6px rgba(63,210,230,.65);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.05); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .58rem 1rem; font-size: var(--t-xs); letter-spacing: .04em; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- 7. Icon masks ------------------------------------------------ */
/* icon-*.webp are white-on-transparent masks, so they tint to currentColor. */

.ico {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  background-color: currentColor;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
}

.ico-radar         { -webkit-mask-image: url("img/icons/icon-radar.webp");         mask-image: url("img/icons/icon-radar.webp"); }
.ico-planet        { -webkit-mask-image: url("img/icons/icon-planet.webp");        mask-image: url("img/icons/icon-planet.webp"); }
.ico-crown         { -webkit-mask-image: url("img/icons/icon-crown.webp");         mask-image: url("img/icons/icon-crown.webp"); }
.ico-crossedswords { -webkit-mask-image: url("img/icons/icon-crossedswords.webp"); mask-image: url("img/icons/icon-crossedswords.webp"); }
.ico-factory       { -webkit-mask-image: url("img/icons/icon-factory.webp");       mask-image: url("img/icons/icon-factory.webp"); }
.ico-star          { -webkit-mask-image: url("img/icons/icon-star.webp");          mask-image: url("img/icons/icon-star.webp"); }
.ico-visibility    { -webkit-mask-image: url("img/icons/icon-visibility.webp");    mask-image: url("img/icons/icon-visibility.webp"); }
.ico-rocket        { -webkit-mask-image: url("img/icons/icon-rocket.webp");        mask-image: url("img/icons/icon-rocket.webp"); }
.ico-solarsystem   { -webkit-mask-image: url("img/icons/icon-solarsystem.webp");   mask-image: url("img/icons/icon-solarsystem.webp"); }
.ico-spaceship     { -webkit-mask-image: url("img/icons/icon-spaceship.webp");     mask-image: url("img/icons/icon-spaceship.webp"); }
.ico-chest         { -webkit-mask-image: url("img/icons/icon-chest.webp");         mask-image: url("img/icons/icon-chest.webp"); }
.ico-wrench        { -webkit-mask-image: url("img/icons/icon-wrench.webp");        mask-image: url("img/icons/icon-wrench.webp"); }
.ico-emblemshield  { -webkit-mask-image: url("img/icons/icon-emblemshield.webp");  mask-image: url("img/icons/icon-emblemshield.webp"); }
.ico-paper         { -webkit-mask-image: url("img/icons/icon-paper.webp");         mask-image: url("img/icons/icon-paper.webp"); }
.ico-cogwheel      { -webkit-mask-image: url("img/icons/icon-cogwheel.webp");      mask-image: url("img/icons/icon-cogwheel.webp"); }
.ico-person        { -webkit-mask-image: url("img/icons/icon-person.webp");        mask-image: url("img/icons/icon-person.webp"); }
.ico-crosshairs    { -webkit-mask-image: url("img/icons/icon-crosshairs.webp");    mask-image: url("img/icons/icon-crosshairs.webp"); }
.ico-ball          { -webkit-mask-image: url("img/icons/icon-ball.webp");          mask-image: url("img/icons/icon-ball.webp"); }
.ico-greaterthan   { -webkit-mask-image: url("img/icons/icon-greaterthan.webp");   mask-image: url("img/icons/icon-greaterthan.webp"); }

/* Icon plinth: a hex tile cut from plate, echoing the company mark.
   The neon edge is the accent showing through a 1px inset gap, so the whole
   chip is one clipped element — a stroked clip-path is not a thing. */
.ico-chip {
  position: relative;
  width: 2.9rem; height: 3.2rem;
  display: grid; place-items: center;
  clip-path: var(--hex);
  background: currentColor;
  color: var(--cyan-lit);
  flex: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 32%, transparent));
}
.ico-chip::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  clip-path: var(--hex);
  background: linear-gradient(165deg, var(--panel-3), var(--panel));
}
.ico-chip .ico { position: relative; width: 1.5rem; height: 1.5rem; }
.ico-chip--r { color: var(--rust-lit); }
.ico-chip--l { color: var(--live); }
.ico-chip--s { color: var(--steel); }

/* ---------- 8. Hero ------------------------------------------------------ */

.hero { position: relative; padding-block: clamp(3.25rem, 2rem + 6.5vw, 6.5rem) clamp(2.75rem, 2rem + 4.5vw, 5.5rem); overflow: hidden; }
.hero__in { position: relative; z-index: 2; display: grid; gap: 2.5rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--line-lit);
  border-radius: 999px;
  padding: .42rem .95rem .42rem .62rem;
  width: fit-content;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(111,220,160,.55);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111,220,160,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(111,220,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,220,160,0); }
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -.034em;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(102deg, #9df3ff 4%, var(--cyan) 48%, #f0a370 98%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub { font-size: clamp(1.03rem, .95rem + .5vw, 1.26rem); color: var(--text-2); max-width: 56ch; }

/* The company mark, lit like a sign over the workshop door. */
.hero__mark { position: relative; display: grid; place-items: center; margin: 0; }
.hero__mark img {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(63,210,230,.28));
}
.hero__mark::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,210,230,.18), transparent 70%);
  z-index: -1;
  animation: breathe 7s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: .75; }
  50%      { transform: scale(1.09); opacity: 1; }
}

@media (min-width: 960px) {
  .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 3.5rem; }
}

/* Orbiting decorations */
.orbit { position: absolute; pointer-events: none; user-select: none; z-index: 1; opacity: .45; }
.orbit img { width: 100%; height: auto; }
.orbit--a { width: clamp(110px, 16vw, 210px); top: -3%;  right: -5%; animation: drift 26s ease-in-out infinite; }
.orbit--b { width: clamp(64px, 8vw, 110px);   bottom: 5%; left: -4%; animation: drift 34s ease-in-out infinite reverse; opacity: .3; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -18px, 0); }
}

/* ---------- 9. Stat strip ------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--lift);
  overflow: hidden;
}
.stats li { padding: 1.35rem 1.4rem; border-right: 1px solid var(--line-soft); }
.stats li:last-child { border-right: 0; }
.stats b {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  font-weight: 680;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: .5rem;
}
.stats b small { font-size: .5em; font-weight: 600; color: var(--cyan-lit); letter-spacing: 0; }
.stats span { font-size: var(--t-sm); color: var(--text-3); line-height: 1.5; display: block; }
@media (max-width: 640px) {
  .stats li { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stats li:last-child { border-bottom: 0; }
}

/* ---------- 10. Cards ---------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr));
}
/* Spare variants, kept deliberately so a new page has them ready:
   .cards--2, .ico-chip--l, .measure, .split--flip, .ticks--s. */
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* Fixed-count grids. auto-fit orphans a lone card on the last row, which reads
   as unfinished; these force clean rows for the counts the site actually uses. */
@media (min-width: 620px) {
  .cards--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .cards--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Seven items: three rows of three would strand the last one, so it spans the
   full width instead and reads as the closing statement it is. */
@media (min-width: 1040px) {
  .cards--seven > :last-child { grid-column: 1 / -1; }
  .cards--seven > :last-child p { max-width: var(--measure); }
}

.card {
  position: relative;
  display: grid;
  gap: .95rem;
  align-content: start;
  padding: 1.65rem 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--lift);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
/* A cut corner rather than a bracket: the plate was trimmed to fit. */
.card::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 15px; height: 15px;
  background: linear-gradient(225deg, var(--cyan) 50%, transparent 50%);
  opacity: 0;
  transition: opacity .22s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--line-lit); background: var(--panel-2); }
.card:hover::after { opacity: .7; }
.card h2, .card h3 { font-size: var(--t-h3); }
.card p  { color: var(--text-2); font-size: .965rem; }
.card--r:hover::after { background: linear-gradient(225deg, var(--rust) 50%, transparent 50%); }

/* ---------- 11. Game panels ---------------------------------------------- */

.game {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(680px 320px at var(--gx, 86%) 0%, var(--glow, rgba(63,210,230,.13)), transparent 68%),
    var(--panel);
  box-shadow: var(--lift);
  overflow: hidden;
}
.game + .game { margin-top: 1.5rem; }
.game__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.game__head h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }
.game__meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .15em;
  text-transform: uppercase;
  /* --text-4 drops under 4.5:1 where the panel glow lifts the backdrop here. */
  color: var(--text-3);
  margin-left: auto;
}
.game__lead { color: var(--text-2); max-width: var(--measure); font-size: 1.03rem; }
.game__media {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
}
.game__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

.game--live    { --glow: rgba(111,220,160,.12); border-color: rgba(111,220,160,.22); }
.game--soon    { --glow: rgba(209,120,63,.12);  border-color: rgba(209,120,63,.20); }

@media (min-width: 900px) {
  .game { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 2.75rem; align-items: start; }
  .game > .game__head, .game > .game__lead, .game > .game__body { grid-column: 1; }
  .game > .game__media { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
}

.game__body { display: grid; gap: 1.25rem; }

/* ---------- 12. Bullet ticks --------------------------------------------- */

.ticks { display: grid; gap: .72rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-2);
  font-size: .95rem;
}
/* Hex bullets, cut from the same plate as everything else. */
.ticks li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .55em;
  width: 8px; height: 9px;
  clip-path: var(--hex);
  background: var(--accent, var(--cyan));
}
.ticks--r li::before { background: var(--rust); }
.ticks--s li::before { background: var(--steel); }
.ticks li b { color: var(--text); font-weight: 620; }
.ticks--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

/* ---------- 13. Timeline / process rail ---------------------------------- */

.rail { display: grid; gap: 0; position: relative; }

.step {
  position: relative;
  display: grid;
  gap: .55rem;
  padding: 0 0 2.3rem 3.3rem;
  border-left: 1px solid var(--line);
  margin-left: .85rem;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step__dot {
  position: absolute;
  left: -.86rem; top: .1rem;
  width: 1.72rem; height: 1.72rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-1);
  border: 1px solid var(--line-lit);
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--cyan-lit);
  font-weight: 600;
}
.step__label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-lit);
}
.step h3 { font-size: var(--t-h3); }
.step p { color: var(--text-2); max-width: var(--measure); font-size: .965rem; }

.step--key .step__dot { border-color: var(--rust); color: var(--rust-lit); box-shadow: 0 0 0 4px var(--rust-dim); }
.step--key .step__label { color: var(--rust-lit); }

/* ---------- 14. Challenge ledger ----------------------------------------- */
/* The solo-dev section. Two columns: the problem, and what was actually done
   about it. Framing it as a ledger keeps it honest rather than boastful. */

.ledger { display: grid; gap: .7rem; }
.entry {
  display: grid;
  gap: .75rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--rust);
  border-radius: var(--r-sm);
  background: var(--panel);
  box-shadow: var(--lift);
}
.entry__problem { display: grid; gap: .45rem; }
.entry h3 { font-size: 1.06rem; font-weight: 640; }
.entry p { color: var(--text-2); font-size: .95rem; }
.entry__answer {
  display: grid;
  gap: .45rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
}
.entry__answer h4 {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-lit);
  font-weight: 500;
}
.entry__answer p { color: var(--text-2); }
@media (min-width: 860px) {
  .entry { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); column-gap: 2.5rem; align-items: start; }
  .entry__answer { padding-top: 0; border-top: 0; border-left: 1px solid var(--line-soft); padding-left: 2rem; margin-left: -.5rem; }
}

/* ---------- 15. Roadmap -------------------------------------------------- */

.road { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 860px) { .road--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.phase {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--lift);
}
.phase__top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.phase__n {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-4);
}
.phase h3 { font-size: 1.15rem; }
.phase ul { display: grid; gap: .6rem; }
.phase li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.55;
}
.phase li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-4);
}
.phase--live { border-color: rgba(111,220,160,.26); }
.phase--live li::before { background: var(--live); }

.tag {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 2px;
  border: 1px solid currentColor;
  font-weight: 600;
  white-space: nowrap;
}
.tag--live      { color: var(--live);     background: var(--live-dim); }
.tag--building  { color: var(--rust-lit); background: var(--rust-dim); }
.tag--planned   { color: var(--cyan-lit); background: var(--cyan-dim); }
.tag--exploring { color: var(--text-3);   background: rgba(141,153,170,.09); }

/* ---------- 16. FAQ / disclosure ----------------------------------------- */

.faq { display: grid; gap: .6rem; }
.qa {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--lift);
  overflow: hidden;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.qa[open] { border-color: var(--line-lit); background: var(--panel-2); }
/* .qa uses overflow:hidden, which clips the global outline-offset:3px ring off
   the summary entirely. Pull the indicator inside the clip instead of removing
   it. */
.qa summary:focus-visible { outline-offset: -4px; }
.qa summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  transition: color .18s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--cyan-lit); }
.qa summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: .55;
  transition: transform .24s var(--ease), opacity .2s var(--ease);
}
.qa[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); opacity: .95; }
.qa__a { padding: 0 1.35rem 1.3rem; color: var(--text-2); max-width: var(--measure); }
.qa__a p + p { margin-top: .8rem; }

/* ---------- 17. Split feature (media + text) ----------------------------- */

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
  .split--flip .split__media { order: 2; }
}
.split__media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--lift);
}
.split__media img { width: 100%; height: auto; }

/* Ship-render plates: feathered, frameless, bled into the void. */
.split__media--plate {
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ---------- 18. Spec list ------------------------------------------------ */

.specs { display: grid; gap: .55rem; }
.spec {
  display: grid;
  gap: .3rem .95rem;
  padding: .95rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--panel);
}
.spec dt { color: var(--text); font-size: .97rem; font-weight: 620; }
.spec dd { color: var(--text-2); font-size: .93rem; margin: 0; }
@media (min-width: 720px) {
  .spec { grid-template-columns: minmax(11rem, 16rem) 1fr; align-items: baseline; }
}

/* ---------- 19. Quote / principle ---------------------------------------- */

.principle {
  position: relative;
  padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem) clamp(1.4rem, 1rem + 2vw, 2.6rem);
  border: 1px solid var(--line-lit);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--panel-2), var(--bg-1));
  display: grid;
  gap: 1rem;
  box-shadow: var(--lift);
}
.principle p {
  font-size: clamp(1.08rem, 1rem + .6vw, 1.35rem);
  color: var(--text);
  line-height: 1.52;
  max-width: 46ch;
  text-wrap: balance;
}
.principle__src {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-4);
}

/* ---------- 20. Callout / CTA -------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-lit);
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 1.4rem + 4vw, 4.2rem) clamp(1.4rem, 1rem + 3vw, 3.4rem);
  background:
    radial-gradient(760px 380px at 82% -20%, rgba(63,210,230,.24), transparent 66%),
    radial-gradient(520px 320px at 6% 120%, rgba(209,120,63,.12), transparent 62%),
    linear-gradient(168deg, var(--panel-2), var(--bg-1));
  text-align: center;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.cta h2 { font-size: var(--t-h2); max-width: 22ch; }
.cta p { color: var(--text-2); max-width: 58ch; }
.cta__note { font-size: var(--t-sm); color: var(--text-4); }

/* ---------- 21. Footer --------------------------------------------------- */

.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 4rem) 2rem;
  margin-top: var(--sec);
}
.ftr__grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-bottom: 2.5rem;
}
.ftr__grid > div:first-child { grid-column: 1 / -1; max-width: 42ch; }
@media (min-width: 760px) { .ftr__grid > div:first-child { grid-column: auto; } }
.ftr .ftr-h {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 500;
  margin-bottom: 1rem;
}
.ftr ul { display: grid; gap: .62rem; }
.ftr a { color: var(--text-2); text-decoration: none; font-size: .93rem; }
.ftr a:hover { color: var(--cyan-lit); }
.ftr__tag { color: var(--text-3); font-size: .93rem; margin-top: .85rem; }
.ftr__base {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--text-4);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.ftr__base a { font-size: inherit; font-family: inherit; }
.ftr__brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.ftr__brand img { width: 34px; height: 34px; }
.ftr__brand b { font-weight: 660; color: var(--text); }

/* ---------- 22. Utility -------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cyan);
  color: #04161a;
  padding: .75rem 1.15rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hair { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.lede { font-size: clamp(1.05rem, .98rem + .45vw, 1.24rem); color: var(--text-2); max-width: 62ch; }

/* Scroll reveal */
.rise {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.rise.is-in { opacity: 1; transform: none; will-change: auto; }

/* ---------- 23. Page header (interior pages) ----------------------------- */

.phead {
  position: relative;
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.phead__in { position: relative; z-index: 2; display: grid; gap: 1.1rem; }
.phead h1 { font-size: var(--t-h1); letter-spacing: -.03em; max-width: 20ch; }
.phead p { color: var(--text-2); max-width: var(--measure); font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem); }

/* ---------- 24. Reduced motion ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  #stars { display: none; }
  .orbit, .hero__mark::after { animation: none; }
}

/* ---------- 25. Print ---------------------------------------------------- */

@media print {
  /* Every rule below reads a token, so inverting only `body` would leave pale
     grey text on white. Redefine the palette instead and the whole page follows. */
  :root {
    --text: #000; --text-2: #222; --text-3: #333; --text-4: #444;
    --cyan: #00606d; --cyan-lit: #00505c; --rust: #8a3d0c; --rust-lit: #7a350a;
    --live: #0a5c38; --steel: #444;
    --panel: #fff; --panel-2: #fff; --panel-3: #fff;
    --bg-0: #fff; --bg-1: #fff; --bg-2: #fff;
    --line: #ccc; --line-soft: #ddd; --line-lit: #bbb;
    --lift: none;
  }
  .sky, #stars, .hdr, .orbit, .cta, .nav-toggle, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .entry, .phase, .game, .principle, .qa, .spec, .stats { background: #fff; }
  .hero__mark::after, .grid-veil { display: none; }
  .qa__a { display: block !important; }
}
