/* Quiet Stars landing site. Dark only: the game is a light in the dark. The type is the game's own: Antonio is its
   console font, Exo 2 its reading font. */

:root {
  --void: #04060d;
  --ink: #0a0f1f;
  --ink-2: #10172d;
  --line: rgba(130, 170, 255, 0.13);
  --line-strong: rgba(130, 170, 255, 0.28);
  --text: #e6ecf7;
  --muted: #98a3bd;
  --faint: #66708a;

  --signal: #6fe3ff;      /* quiet: what you see */
  --signal-deep: #1b6f8c;
  --heat: #ffb547;        /* loud: what gives you away */
  --hunt: #ff5466;        /* what hunts you */
  --acid: #d6ef4a;        /* the swarms' glow */
  --console: #3f6fd8;     /* the game's console blue */

  --wayfarers: #5fd8ff;
  --weave: #8dff7a;
  --drifters: #ff9a3c;
  --chorus: #b98bff;

  --display: "Antonio", "Arial Narrow", sans-serif;
  --body: "Exo 2", "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--void); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* A fixed field of faint stars behind everything below the hero. */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 80%, #fff5 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 40% 60%, #a8dcff88 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 15%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 85%, #fff4 50%, transparent 51%);
  background-size: 360px 360px, 280px 280px, 430px 430px, 200px 200px, 240px 240px;
  opacity: 0.6;
}
.stars::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 40% at 90% 8%, rgba(60, 110, 220, 0.12), transparent 70%),
    radial-gradient(45% 35% at 0% 75%, rgba(255, 84, 102, 0.05), transparent 70%);
}

/* ---------- Mono labels ---------- */
.tag {
  font: 400 0.78rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.tag::before { content: "▮ "; color: var(--console); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 13, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__logo img { height: 18px; width: auto; }
.nav__logo { opacity: 0; transition: opacity 0.3s; }
.nav.scrolled .nav__logo { opacity: 1; }
.nav__links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a {
  color: var(--muted); text-decoration: none;
  font: 400 0.8rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.nav__links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 0; border-radius: 999px;
  background: var(--signal);
  color: #031621;
  font: 700 0.98rem/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(111, 227, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s cubic-bezier(.3, 1.5, .5, 1), box-shadow 0.3s;
}
.btn:hover { color: #031621; transform: translateY(-2px); box-shadow: 0 8px 30px -6px rgba(111, 227, 255, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: scale(0.97); }
.btn--small { padding: 10px 16px; font-size: 0.85rem; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--signal); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero: the galaxy, drawn live in js/site.js ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid; place-items: center;
  text-align: center;
  padding: 96px var(--gutter) 110px;
  isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 40%, #0b1330 0%, var(--void) 70%);
}
.hero__sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.hero::after {
  /* fades the sky into the page below */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--void));
}
.hero__inner { display: grid; justify-items: center; max-width: 900px; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__logo {
  width: min(720px, 88vw); height: auto;
  filter: drop-shadow(0 0 16px rgba(111, 227, 255, 0.45)) drop-shadow(0 0 60px rgba(111, 227, 255, 0.2));
  animation: fade-in 2.4s ease 0.2s both;
}
.hero h1 {
  margin: 28px auto 0; max-width: 30ch;
  font: 600 clamp(1.6rem, 3.2vw, 2.6rem)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
  animation: rise 1s ease 0.9s both;
}
.hero h1 em { display: block; margin-top: 0.3em; font-style: normal; color: var(--signal); }
.hero__sub {
  max-width: 56ch; margin: 14px 0 0; color: #c9d3ea; font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
  animation: rise 1s ease 1.05s both;
}
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 1s ease 1.2s both; }
.hero__hint {
  margin: 26px 0 0; font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  animation: rise 1s ease 1.6s both;
}
.hero__hint b { color: var(--signal); font-weight: 400; }
.hero__hint i { font-style: normal; color: var(--hunt); }
@keyframes fade-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(4, 6, 13, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 400 0.84rem/1 var(--mono); letter-spacing: 0.06em; color: var(--text);
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--heat); box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.7);
  animation: ping 2.2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }

/* ---------- Sections ---------- */
section { padding-block: clamp(60px, 8vw, 110px); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  margin: 14px 0 0;
  font: 700 clamp(2.4rem, 6vw, 4.4rem)/0.95 var(--display);
  text-transform: uppercase; letter-spacing: 0.01em;
  text-wrap: balance;
}
.section-head h2 span { color: var(--signal); }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.section-head p strong { color: var(--text); font-weight: 600; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.pillar {
  position: relative; padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  overflow: hidden;
}
.pillar::before {
  /* the console's coloured cap */
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--signal));
}
.pillar h3 { margin: 10px 0 10px; font: 700 1.6rem/1 var(--display); text-transform: uppercase; }
.pillar q { display: block; margin: 0 0 12px; color: var(--c, var(--signal)); font-style: italic; quotes: "“" "”"; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.pillar .tag { color: var(--c, var(--signal)); }
.pillar--loud { --c: var(--heat); }
.pillar--own { --c: var(--weave); }
.pillar--unknown { --c: var(--chorus); }
.pillar--people { --c: var(--signal); }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Signature: the awareness meter ---------- */
.signature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.signature .section-head { margin-bottom: 0; }
.panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 23, 45, 0.9), rgba(10, 15, 31, 0.9));
}
.meter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.meter__title { font: 700 1.5rem/1 var(--display); text-transform: uppercase; }
.meter__value { font: 400 0.95rem/1 var(--mono); color: var(--muted); }
.meter__value b { color: var(--text); font-weight: 400; }
/* The bar is the whole gradient; a dark cover hides what awareness hasn't reached yet. */
.meter__bar {
  position: relative; height: 14px; margin: 18px 0 8px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--signal) 0%, var(--acid) 30%, var(--heat) 55%, var(--hunt) 85%);
  box-shadow: 0 0 18px -4px rgba(255, 181, 71, 0.45);
}
.meter__cover {
  position: absolute; inset: 0 0 0 var(--a, 12%);
  background: #0c1328;
  transition: left 0.9s cubic-bezier(.3, .8, .3, 1);
}
.meter__marks { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(4, 6, 13, 0.9) 0 25%, transparent 0 calc(50% - 1px), rgba(4, 6, 13, 0.9) 0 50%, transparent 0 calc(75% - 1px), rgba(4, 6, 13, 0.9) 0 75%, transparent 0); }
.meter__ticks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.meter__ticks li { padding: 10px 10px 0 0; border-left: 1px dashed var(--line-strong); padding-left: 8px; }
.meter__ticks b { display: block; font: 700 1.05rem/1.1 var(--display); text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.meter__ticks span { display: block; font-size: 0.82rem; line-height: 1.4; color: var(--faint); transition: color 0.4s; }
.meter__ticks li.on b { color: var(--text); }
.meter__ticks li.on span { color: var(--muted); }
.meter__ticks li.now b { color: var(--phase, var(--signal)); }
@media (max-width: 520px) { .meter__ticks { grid-template-columns: repeat(2, 1fr); row-gap: 12px; } }

.toggles { margin-top: 26px; display: grid; gap: 10px; }
.toggles__label { font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.toggle {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(4, 6, 13, 0.4); color: var(--text);
  font: 400 0.95rem/1.3 var(--body); text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.toggle:hover { border-color: var(--line-strong); }
.toggle__box { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; }
.toggle[aria-pressed="true"] { border-color: color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 9%, transparent); }
.toggle[aria-pressed="true"] .toggle__box { background: var(--k); box-shadow: none; }
.toggle[aria-pressed="true"] .toggle__box::after { content: ""; width: 9px; height: 5px; border: 2px solid #04060d; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.toggle__effect { font: 400 0.8rem/1 var(--mono); color: var(--k); }
.toggle--loud { --k: var(--heat); }
.toggle--quiet { --k: var(--signal); }
.meter__note { margin: 18px 0 0; font-size: 0.85rem; color: var(--faint); }

.bands { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.bands li {
  padding: 8px 12px; border-radius: 999px;
  font: 400 0.8rem/1 var(--mono); letter-spacing: 0.05em;
  background: rgba(130, 170, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line);
}
.bands li b { font-weight: 400; color: var(--heat); }
@media (max-width: 900px) { .signature { grid-template-columns: 1fr; } }

/* ---------- Hideouts ---------- */
.hideouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.hideout {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.35s;
}
.hideout:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--h) 50%, transparent); }
.hideout__art { position: relative; aspect-ratio: 5 / 6; overflow: hidden; }
.hideout__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hideout:hover .hideout__art img { transform: scale(1.06); }
.hideout__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--ink-2)); }
.hideout__body { padding: 0 20px 22px; margin-top: -34px; position: relative; }
.hideout h3 { margin: 0 0 4px; font: 700 1.75rem/1 var(--display); text-transform: uppercase; color: var(--h); }
.hideout__world { margin: 0 0 12px; font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.hideout dl { margin: 0; display: grid; gap: 10px; font-size: 0.93rem; line-height: 1.5; }
.hideout dt { font: 400 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.hideout dd { margin: 0; color: var(--muted); }
.hideout dd.plus::before { content: "+ "; color: var(--weave); }
.hideout dd.minus::before { content: "− "; color: var(--hunt); }
.hideout--water { --h: #5cc8ff; }
.hideout--ice { --h: #cfe8ff; }
.hideout--hot { --h: #ff8a4a; }
.hideout--barren { --h: #c9c3b6; }
@media (max-width: 1000px) { .hideouts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hideouts { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .hideouts::-webkit-scrollbar { display: none; }
  .hideout { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---------- Species ---------- */
.species { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.sp {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: border-color 0.35s, box-shadow 0.35s;
}
.sp:hover { border-color: color-mix(in srgb, var(--s) 55%, transparent); box-shadow: 0 24px 60px -30px var(--s); }
.sp__art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.sp__art img { width: 100%; height: 100%; object-fit: cover; }
.sp__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--ink-2)), radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, var(--s) 22%, transparent), transparent);
}
.sp__body { position: relative; padding: 0 20px 22px; margin-top: -40px; }
.sp h3 { margin: 0; font: 700 2rem/1 var(--display); text-transform: uppercase; color: var(--s); text-shadow: 0 0 24px color-mix(in srgb, var(--s) 40%, transparent); }
.sp__kind { margin: 4px 0 14px; font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sp dl { margin: 0; display: grid; gap: 9px; font-size: 0.92rem; line-height: 1.45; }
.sp dt { font: 400 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.sp dd { margin: 0; color: var(--muted); }
.sp__plays { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--text); font-size: 0.95rem; }
.sp--wayfarers { --s: var(--wayfarers); }
.sp--weave { --s: var(--weave); }
.sp--drifters { --s: var(--drifters); }
.sp--chorus { --s: var(--chorus); }
@media (max-width: 1000px) { .species { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .species { grid-template-columns: 1fr; } .sp__art { aspect-ratio: 16 / 11; } .sp__art img { object-position: 50% 25%; } }

/* ---------- Colony ship band ---------- */
.band { position: relative; padding: 0; min-height: 600px; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
/* The ship sits on the right; the words have the dark space on the left. */
.band > img {
  position: absolute; inset: 0 0 0 40%; width: 60%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 6, 13, 0.94) 0%, rgba(4, 6, 13, 0.75) 32%, transparent 60%),
    linear-gradient(180deg, var(--void) 0%, rgba(4, 6, 13, 0.1) 22%, rgba(4, 6, 13, 0.1) 75%, var(--void) 100%);
}
.band .wrap { padding-block: 110px; }
.band__copy { max-width: min(46ch, 40%); }
@media (max-width: 1100px) { .band__copy { max-width: 46%; } }
.band h2 { margin: 14px 0 0; font: 700 clamp(2.4rem, 5vw, 4rem)/0.95 var(--display); text-transform: uppercase; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.band h2 span { color: var(--signal); }
.band p { margin: 16px 0 0; color: #d3dbee; text-shadow: 0 1px 12px #000; }
@media (max-width: 760px) {
  .band { min-height: 0; }
  .band > img {
    position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
  }
  .band::before { display: none; }
  .band .wrap { padding-block: 0 56px; margin-top: -30px; }
  .band__copy { max-width: none; }
}

/* ---------- The threat: a message log, kept vague on purpose ---------- */
.threat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.threat .section-head { margin-bottom: 0; }
.threat .section-head h2 span { color: var(--hunt); }
.threat .section-head .tag, .threat .section-head .tag::before { color: var(--hunt); }
.log { font: 400 0.92rem/1.5 var(--mono); border-color: rgba(255, 84, 102, 0.2); background: linear-gradient(170deg, #120c1a, #08070f); }
.log__head {
  display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line); color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.76rem;
}
.log__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--hunt); }
.log__rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hunt); animation: blink 1.6s steps(2, start) infinite; }
.log__lines { list-style: none; margin: 0; padding: 0; }
.log__lines li { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(130, 170, 255, 0.1); color: var(--muted); }
.log__lines li:last-child { border-bottom: 0; }
.log__lines time { color: var(--faint); }
.log__line--quiet span { color: var(--signal); }
.log__line--odd span { color: var(--acid); }
.log__line--warn span { color: var(--heat); }
.log__line--redacted i { font-style: normal; color: #2a1520; letter-spacing: -0.05em; }
.log__line--redacted b { font-weight: 400; color: var(--hunt); margin-left: 4px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 900px) { .threat__grid { grid-template-columns: 1fr; } }
/* ---------- Campaign ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: stage; list-style: none; padding: 0; margin: 0; }
.stage {
  position: relative; padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  overflow: hidden;
}
.stage::before {
  counter-increment: stage; content: "0" counter(stage);
  position: absolute; right: 14px; top: -16px;
  font: 700 8rem/1 var(--display); color: rgba(130, 170, 255, 0.07);
}
.stage h3 { margin: 12px 0 10px; font: 700 2.1rem/1 var(--display); text-transform: uppercase; }
.stage p { margin: 0 0 10px; color: var(--muted); }
.stage p:last-child { margin-bottom: 0; }
.stage strong { color: var(--text); font-weight: 600; }
.stage:nth-child(2) .tag { color: var(--hunt); }
.stage:nth-child(3) .tag { color: var(--heat); }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { margin: 0; }
.shot--lead { grid-column: 1 / -1; }
.shot a {
  display: block; position: relative;
  padding: 6px; border-radius: 14px;
  background: linear-gradient(160deg, #1d2a50, #0a0f22);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s;
  cursor: zoom-in;
}
.shot a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(111, 227, 255, 0.5), 0 30px 70px -24px rgba(111, 227, 255, 0.25); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: var(--ink); }
.shot figcaption { margin: 12px 4px 0; font: 400 0.8rem/1.5 var(--mono); color: var(--muted); }
@media (max-width: 900px) and (min-width: 621px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 88%; scroll-snap-align: center; }
}

.lightbox {
  width: min(1600px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 14px;
  background: #000; color: var(--text); overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 3, 8, 0.9); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 14px 14px 0 0; display: block; }
.lightbox__caption { margin: 0; padding: 12px 16px; font: 400 0.85rem/1.4 var(--mono); color: var(--muted); background: var(--void); border-radius: 0 0 14px 14px; }
.lightbox__close {
  position: absolute; right: -10px; top: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--signal); color: #031621; font: 700 1.5rem/1 var(--body); cursor: pointer;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feature {
  grid-column: span 4;
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 23, 45, 0.85), rgba(10, 15, 31, 0.85));
  overflow: hidden;
}
.feature--wide { grid-column: span 8; }
.feature h3 { margin: 12px 0 12px; font: 700 clamp(1.7rem, 2.8vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.feature p { margin: 0 0 12px; color: var(--muted); }
.feature p:last-child { margin-bottom: 0; }
.feature::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(111, 227, 255, 0.14)), transparent 70%);
  pointer-events: none;
}
.feature--heat { --glow: rgba(255, 181, 71, 0.15); }
.feature--violet { --glow: rgba(185, 139, 255, 0.18); }
.feature--blue { --glow: rgba(63, 111, 216, 0.25); }
@media (max-width: 1000px) { .feature, .feature--wide { grid-column: span 6; } }
@media (max-width: 700px) { .feature, .feature--wide { grid-column: 1 / -1; } }

/* A commander's line, as the game shows it */
.report {
  margin-top: 20px; padding: 16px 18px; border-radius: 10px;
  background: #0b1638; border: 1px solid rgba(63, 111, 216, 0.45);
  font: 400 0.86rem/1.55 var(--mono); color: #c3d2ff;
}
.report b { color: #fff; font-weight: 400; }
.report__who { display: block; margin-bottom: 6px; color: var(--heat); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; }
.layers { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.layers li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-strong); font-size: 0.93rem; color: var(--muted); }
.layers b { font: 400 0.76rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); }
@media (max-width: 420px) { .layers li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Status ---------- */
.launch { position: relative; isolation: isolate; text-align: center; padding-block: clamp(90px, 12vw, 160px); }
.launch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(63, 111, 216, 0.16), transparent 70%);
}
.launch__box {
  max-width: 780px; margin-inline: auto;
  padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(111, 227, 255, 0.12), transparent 60%),
    linear-gradient(170deg, rgba(16, 23, 45, 0.88), rgba(10, 15, 31, 0.92));
  border: 1px solid rgba(111, 227, 255, 0.25);
}
.launch__icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 12px 40px -8px rgba(111, 227, 255, 0.45); }
.launch h2 { margin: 12px 0 0; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; }
.launch p { color: var(--muted); max-width: 54ch; margin: 14px auto 0; }
.launch__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 12px; border-radius: 999px; font: 400 0.78rem/1 var(--mono); letter-spacing: 0.05em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Footer ---------- */
.footer { padding-block: 50px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer__logo { height: 16px; width: auto; opacity: 0.9; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer small { flex-basis: 100%; font: 400 0.76rem/1.6 var(--mono); letter-spacing: 0.04em; }
.footer__studio { flex-basis: 100%; display: flex; align-items: center; gap: 12px; color: var(--faint);
  font: 400 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.footer__studio-mark { height: 34px; width: auto; }
.footer__studio-name { height: 16px; width: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px var(--gutter); gap: 14px; }
.lost h1 { margin: 0; font: 700 clamp(5rem, 22vw, 11rem)/0.85 var(--display); color: var(--signal); text-shadow: 0 0 40px rgba(111, 227, 255, 0.45); }
.lost p { margin: 0 0 12px; color: var(--muted); max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
