/* ==========================================================================
   MineEngineer — site styles
   The design system is lifted from the game's own HUD: cyan-bordered panels,
   amber structural accents, green/red status readouts on a deep-space void.
   Fonts are the same two the game ships with.
   ========================================================================== */

@font-face {
  font-family: 'Bruceforever';
  src: url('../fonts/bruceforever.otf?v=459adc8959') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrainsmono-regular.ttf?v=b6b1ff4dde') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrainsmono-bold.ttf?v=a2349098b9') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --void:       #05070e;
  --void-2:     #080d17;
  --panel:      #0c1826;
  --panel-2:    #112438;
  --panel-3:    #16304a;
  --line:       #1d3d57;
  --line-soft:  #14293c;

  --cyan:        #46c8e8;
  --cyan-bright: #8fe9fa;
  --cyan-dim:    #2a7690;
  --amber:       #ff9b21;
  --amber-dim:   #a85c0e;
  --green:       #46dd7a;
  --red:         #e5484d;

  --text:   #c6d9ea;
  --muted:  #7d95ad;
  --faint:  #4f6076;

  --display: 'Bruceforever', 'Courier New', monospace;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --bar-h: 52px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-bright); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.pixel { image-rendering: pixelated; image-rendering: -moz-crisp-edges; }

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
}
.eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: .9rem;
}
.lede { font-size: 1.05rem; color: var(--muted); }
.hl-amber { color: var(--amber); }
.hl-cyan { color: var(--cyan); }
.hl-green { color: var(--green); }

/* ==========================================================================
   Panel — the core component, modelled on the in-game GRID CONTROL PANEL
   ========================================================================== */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(70, 200, 232, .05), 0 8px 34px rgba(0, 0, 0, .5);
}
/* amber corner brackets — the structural-beam motif from the ship art */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(70, 200, 232, .05);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.panel__body { padding: 1.1rem; }
/* panel titles are real headings on the press kit; keep them visually identical */
.panel__head h2 { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }

/* small caps label used all over the game HUD */
.label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

/* ---------- status chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .7rem;
  border: 1px solid currentColor;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(70, 221, 122, .08);
}
.chip--amber { color: var(--amber); background: rgba(255, 155, 33, .08); }
.chip--dim   { color: var(--faint); background: transparent; }
.chip__dot {
  width: 7px; height: 7px;
  background: currentColor;
  flex: none;
}
.chip--live .chip__dot { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--panel-3); border-color: var(--cyan-dim); color: var(--cyan-bright); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #14100a;
  box-shadow: 0 0 0 1px rgba(255, 155, 33, .25), 0 6px 22px rgba(255, 155, 33, .18);
}
.btn--primary:hover { background: #ffb14f; border-color: #ffb14f; color: #14100a; }

.btn--ghost { background: transparent; }
.btn--sm { padding: .55rem 1rem; font-size: .68rem; }

.btn__ico { width: 14px; height: 14px; flex: none; }

/* ==========================================================================
   Top bar — mirrors the game's fixed HUD strip
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 18, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}
/* matches the logo, where ENGINEER is cyan — and stops the wordmark competing
   with the amber "Play the demo" button sitting beside it in the bar */
.brand span { color: var(--cyan); }
.topnav { display: flex; gap: 1.4rem; margin-left: auto; }
.topnav a {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topnav a:hover { color: var(--cyan); }
.topbar .btn { margin-left: auto; }
.topnav + .btn { margin-left: 0; }

/* Below 860px the nav wraps to its own scrollable strip rather than vanishing —
   the links stay reachable without a JS menu. */
@media (max-width: 860px) {
  .topbar { height: auto; }
  .topbar__inner { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .5rem; }
  .topnav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .15rem;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; }
  .hero { padding-top: 7.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  padding-top: calc(var(--bar-h) + 3rem);
  padding-bottom: 5.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(105% 75% at 72% 22%, rgba(96, 48, 170, .5) 0%, transparent 62%),
    radial-gradient(70% 55% at 18% 88%, rgba(24, 84, 122, .32) 0%, transparent 65%),
    url('../img/nebula.jpg?v=72a3e4ee19') 60% 35% / cover no-repeat,
    var(--void);
}
/* the copy sits over the left third, so the veil is heaviest there */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 14, .92) 0%, rgba(5, 7, 14, .72) 38%, rgba(5, 7, 14, .3) 78%, rgba(5, 7, 14, .55) 100%),
    linear-gradient(180deg, rgba(5, 7, 14, .55) 0%, transparent 30%, rgba(5, 7, 14, .55) 78%, var(--void) 100%);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.hero__copy { max-width: 46rem; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 7.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 1rem 0 1.1rem;
  color: #eaf4ff;
  text-shadow: 0 0 26px rgba(70, 200, 232, .28), 0 4px 0 rgba(0, 0, 0, .5);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
  text-shadow: 0 0 26px rgba(255, 155, 33, .35), 0 4px 0 rgba(0, 0, 0, .5);
}
.hero__tag {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.hero__lede { font-size: 1.02rem; color: var(--muted); max-width: 38rem; }
.hero__lede strong { color: var(--text); font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero__meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- the player, drifting on jetpack ----------
   Six 32x32 frames composed from the game's layered character art, kept at
   native resolution and upscaled by the browser with nearest-neighbour so it
   stays pixel-crisp at any size. */
.astro {
  position: relative;
  width: 320px;
  height: 320px;
  flex: none;
  display: grid;
  place-items: center;
}
.astro__drift { animation: drift 6s ease-in-out infinite; }
.astro__sprite {
  width: 256px;
  height: 256px;
  background-image: url('../img/astronaut-fly.png?v=587f73c1f6');
  background-repeat: no-repeat;
  background-size: 600% 100%;      /* 6 frames wide */
  background-position: 0 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  /* A percentage background-position resolves against (containerW - imageW),
     which is negative here, so 0%..100% walks the whole strip. jump-none is
     required: it samples BOTH endpoints (0,20,40,60,80,100%), landing each of
     the six steps exactly on a frame boundary. Plain steps(6) would sample
     0..83.3% and show two half-frames at once. */
  animation: fly .72s steps(6, jump-none) infinite;
  filter: drop-shadow(0 0 26px rgba(70, 200, 232, .3));
}
/* thruster wash on the floor of the frame */
.astro__glow {
  position: absolute;
  bottom: 16%;
  width: 240px;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(255, 155, 33, .3) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: flicker 1.9s ease-in-out infinite;
}
@keyframes fly { to { background-position: 100% 0; } }
@keyframes drift {
  0%, 100% { transform: translateY(-10px); }
  50%      { transform: translateY(10px); }
}
@keyframes flicker {
  0%, 100% { opacity: .75; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .astro__sprite { animation: none; background-position: 0 0; }
  .astro__drift, .astro__glow { animation: none; }
}
@media (max-width: 1080px) {
  .astro { display: none; }
  /* collapse the track too, or the hidden sprite leaves a 2rem gap column */
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- hero logo ---------- */
/* Note: the logo cannot be lifted above .scanlines with z-index — .hero__inner
   sets z-index:2 and so creates a stacking context the logo cannot escape, and
   raising THAT would push hero content over the fixed topbar on scroll. The
   striping was solved by softening .scanlines instead (see that rule). */
.hero__logo { margin: 1.1rem 0 1.4rem; line-height: 0; }
.hero__logo img {
  width: min(100%, 33rem);
  height: auto;
  /* Deliberately NOT image-rendering: pixelated — the mark is displayed smaller
     than its native 824px, and nearest-neighbour downscaling drops pixel rows
     unevenly, chewing the 1px outline. Smooth downscaling is correct here. */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

/* hotbar pinned to the bottom of the hero, exactly like the in-game one */
.hotbar {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(8, 14, 24, .82);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.hotbar__slot {
  position: relative;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: rgba(17, 36, 56, .8);
  border: 1px solid var(--line-soft);
  transition: border-color .15s, background .15s;
}
.hotbar__slot:hover { border-color: var(--amber); background: rgba(255, 155, 33, .1); }
.hotbar__slot img { width: 30px; height: 30px; object-fit: contain; }
.hotbar__slot::after {
  content: attr(data-key);
  position: absolute;
  top: 1px; left: 3px;
  font-size: .55rem;
  color: var(--faint);
}
.hotbar__slot:hover::before {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .25rem .5rem;
  background: var(--panel);
  border: 1px solid var(--cyan-dim);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}
@media (max-width: 720px) { .hotbar { display: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section__head { margin-bottom: 2.6rem; max-width: 46rem; }
.section__head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  color: #e6f2ff;
  margin-bottom: .9rem;
}
.section__head p { color: var(--muted); margin: 0; }
.rule { height: 1px; background: linear-gradient(90deg, var(--line) 0%, transparent 100%); }

/* ---------- stat strip ----------
   Separators are drawn by the grid's own background showing through a 1px gap,
   so they stay correct however the auto-fit tracks wrap. Per-cell borders would
   double up and lose the row divider on wrap. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
.stat { padding: 1.1rem 1.2rem; background: var(--panel); }
.stat__num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--amber);
  line-height: 1.1;
}
.stat__lbl {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: .45rem;
}

/* ---------- systems grid ---------- */
.systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
.sys {
  background: var(--panel);
  padding: 1.4rem;
  transition: background .2s;
}
.sys:hover { background: var(--panel-2); }
.sys__icons { display: flex; gap: .5rem; align-items: flex-end; height: 54px; margin-bottom: 1rem; }
.sys__icons img { height: 46px; width: auto; max-width: 62px; object-fit: contain; }
.sys h3 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.sys p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Block library — every block in the game, grouped as the game groups them
   ========================================================================== */
.blocks { display: grid; gap: 2rem; }
.blocks__cat-name {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-soft);
}
.blocks__cat-name span {
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: .1rem .4rem;
}
/* Tiles carry their own border rather than relying on a shared background
   showing through gaps: most categories leave a ragged final row, and empty
   grid cells in a filled container read as broken tiles. */
.blocks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.blk {
  margin: 0;
  padding: .7rem .5rem .6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .45rem;
  transition: background .15s, border-color .15s;
}
.blk:hover { background: var(--panel-2); border-color: var(--cyan-dim); }

/* Fixed art box so a 1x1 conveyor and a 4x2 drill share a baseline.
   object-fit does the scaling: max-height alone does not reliably constrain an
   <img> that carries intrinsic width/height attributes, and the tall 1x2 blocks
   (piston, solar panel, oxygen tank) then overflow into the row below.
   The lighter inset also keeps the near-black structural blocks visible. */
.blk__art {
  width: 100%;
  height: 62px;
  background: rgba(70, 200, 232, .055);
  border: 1px solid var(--line-soft);
}
.blk__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.blk__name {
  font-size: .67rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}
.blk__size {
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--faint);
}
.blk:hover .blk__size { color: var(--amber); }

@media (max-width: 560px) {
  .blocks__grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
  .blk__art { height: 52px; }
}

/* ---------- screenshot band ---------- */
.shots { display: grid; gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line); }
.shot { position: relative; background: var(--void-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__cap {
  position: absolute;
  left: 0; bottom: 0;
  max-width: min(30rem, 88%);
  padding: .7rem 1rem;
  background: linear-gradient(90deg, rgba(6, 12, 20, .94) 0%, rgba(6, 12, 20, .74) 100%);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.shot__cap b {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 400;
  margin-bottom: .15rem;
}
.shot__cap span { font-size: .8rem; color: var(--muted); }

.shots--feature { grid-template-columns: 1fr; }
.shots--pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .shots--pair { grid-template-columns: 1fr; } }

/* ---------- trailer ---------- */
.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--void-2);
  overflow: hidden;
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--void-2);
}
.trailer__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: opacity .2s; }
.trailer__poster:hover img { opacity: .55; }
/* .trailer clips overflow, so an outward focus ring would be invisible */
.trailer__poster:focus-visible { outline: 2px solid var(--amber); outline-offset: -6px; }
.trailer__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .8rem;
  justify-items: center;
}
.trailer__play svg { width: 62px; height: 62px; filter: drop-shadow(0 0 18px rgba(255, 155, 33, .5)); }
.trailer__play span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ==========================================================================
   Roadmap — styled as a systems readout, not a generic timeline
   ========================================================================== */
.roadmap { display: grid; gap: 1.1rem; }
.phase { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.phase__side {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  background: rgba(70, 200, 232, .04);
}
.phase__when {
  font-family: var(--display);
  font-size: .85rem;
  color: var(--text);
  margin-bottom: .7rem;
}
.phase__body { padding: 1.1rem 1.3rem; }
.phase__title {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .9rem;
}
.phase ul { display: grid; gap: .42rem; }
.phase li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .87rem;
  color: var(--muted);
}
.phase li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  background: var(--faint);
}
.phase--done li::before { background: var(--green); }
.phase--active li::before { background: var(--amber); }
.phase--done .phase__side { background: rgba(70, 221, 122, .05); }
.phase--active .phase__side { background: rgba(255, 155, 33, .05); }

/* segmented bar, same idiom as the in-game battery gauges */
.bar { display: flex; gap: 2px; margin-top: .8rem; }
.bar i { flex: 1; height: 7px; background: var(--line-soft); }
.bar i.on { background: var(--green); }
.phase--active .bar i.on { background: var(--amber); }

@media (max-width: 720px) {
  .phase { grid-template-columns: 1fr; }
  .phase__side { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Split / dev note
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.quote { font-size: 1.02rem; color: var(--text); }
.quote p:last-child { margin-bottom: 0; }
.sig {
  margin-top: 1.2rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- community ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); }
.link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem;
  background: var(--panel);
  color: var(--text);
  transition: background .15s, color .15s;
}
.link:hover { background: var(--panel-2); color: var(--cyan-bright); }
.link svg { width: 18px; height: 18px; flex: none; color: var(--cyan-dim); }
.link:hover svg { color: var(--amber); }
.link b { font-weight: 400; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.link small { display: block; font-size: .68rem; color: var(--faint); letter-spacing: .04em; text-transform: none; }

/* ---------- final CTA ---------- */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(255, 155, 33, .09) 0%, transparent 60%),
    var(--void-2);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-band h2 { font-family: var(--display); font-size: clamp(1.2rem, 3.6vw, 2.1rem); margin-bottom: 1rem; color: #eaf4ff; }
.cta-band p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- press kit strip ---------- */
.presskit__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: center;
}
.presskit__title {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.presskit__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 860px) {
  .presskit__body { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line-soft);
  font-size: .74rem;
  color: var(--faint);
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.footer__social a:hover { color: var(--amber); border-color: var(--amber); background: var(--panel-2); }
.footer__social svg { width: 19px; height: 19px; }
.footer__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--cyan); }

/* ---------- subtle CRT scanlines, matching the game's cutscene overlay ----
   Kept deliberately faint. The logo has large flat white areas, and anything
   stronger than roughly a 2% per-row variation stripes across them and reads as
   a rendering fault rather than an effect. Measured: rgba(0,0,0,.10) at opacity
   .38 gives a 5/255 spread; the previous .17 at .5 gave 11/255 and was visible. */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, .10) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: .38;
  mix-blend-mode: multiply;
}
@media (max-width: 720px) { .scanlines { display: none; } }

/* ---------- press kit page bits ---------- */
.pk-body { padding-top: calc(var(--bar-h) + 3rem); }
.pk-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.pk-table th, .pk-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pk-table th { color: var(--cyan-dim); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; width: 190px; }
/* long unbroken values (URLs, emails) must not push the table past the panel */
.pk-table td { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* a 190px label column plus a URL does not fit a phone — stack them */
  .pk-table th, .pk-table td { display: block; width: auto; }
  .pk-table th { border-bottom: 0; padding-bottom: 0; }
}
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pk-grid figure { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.pk-grid figcaption { padding: .5rem .7rem; font-size: .68rem; color: var(--faint); letter-spacing: .08em; border-top: 1px solid var(--line-soft); }
.prose p { color: var(--muted); }
.prose h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 2rem 0 .8rem; }
.prose ul { display: grid; gap: .4rem; margin-bottom: 1rem; }
.prose li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: .9rem; }
.prose li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--amber); }

/* ---------- download list (press kit) ---------- */
.dl { border: 1px solid var(--line); background: var(--panel); }
.dl__row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  transition: background .15s;
}
.dl__row:last-child { border-bottom: 0; }
.dl__row:hover { background: var(--panel-2); }
.dl__name { font-size: .84rem; color: var(--cyan); word-break: break-all; }
.dl__desc { font-size: .82rem; color: var(--muted); }
.dl__go {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.dl__row:hover .dl__go { color: var(--amber); }
.dl__row--primary { background: rgba(255, 155, 33, .07); }
.dl__row--primary .dl__name { color: var(--amber); }
.dl__row--primary .dl__go { color: var(--amber); }
@media (max-width: 720px) {
  .dl__row { grid-template-columns: 1fr; gap: .25rem; }
  .dl__go { justify-self: start; }
}

/* ---------- reveal on scroll ----------
   Scoped to .js so the page is fully readable when scripting is off or fails.
   Never hide content behind JS that has to run first. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
