/* ==========================================================================
   WASTELAND-Z  ·  Heavy Forge Inc.
   Hardcore PVP Arma Reforger experience
   ========================================================================== */

:root {
  --bg:           #0a0d12;
  --bg-2:         #0e131a;
  --surface:      #14181f;
  --surface-2:    #1b2129;
  --surface-3:    #232a34;
  --line:         #2a3340;
  --line-bright:  #3a4555;

  --text:         #e8eaed;
  --text-dim:     #b6bcc7;
  --text-muted:   #7a8494;

  --accent:       #ff6b1a;        /* rust orange */
  --accent-2:     #ffa84a;
  --tox:          #c8d420;        /* radiation lime */
  --steel:        #6b7a8e;

  --red:          #d4322f;
  --blue:         #2c6fc4;
  --green:        #4a8c3f;

  --good:         #4ade80;
  --warn:         #facc15;
  --bad:          #ef4444;

  --rule-w:       1px;
  --radius-s:     2px;
  --radius:       4px;
  --radius-l:     8px;

  --container:    1200px;

  --font-display: 'Rajdhani', 'Bebas Neue', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow:       0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.55);

  --t-fast:       120ms ease;
  --t:            220ms ease;
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
p { margin: 0; }

/* --- base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(255,107,26,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(44,111,196,0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* faint scanline texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

::selection { background: var(--accent); color: #000; }

/* --- layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}
.section--tight { padding: 64px 0; }
.section--alt {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.015), rgba(0,0,0,0.25));
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-lede {
  margin-top: 18px;
  max-width: 720px;
  font-size: 17px;
  color: var(--text-dim);
}

.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
}

/* --- nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,18,0.78);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.brand__mark { width: 32px; height: 32px; }
.brand__name span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--t-fast);
  position: relative;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--accent); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  transition: all var(--t-fast);
}
.nav__cta:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::before {
  /* skyline silhouette */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background:
    linear-gradient(to top, rgba(0,0,0,0.85), transparent),
    url("../img/skyline.svg") center bottom / cover no-repeat;
  opacity: 0.65;
}
.hero__bg::after {
  /* grid overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--line-bright);
  background: rgba(0,0,0,0.4);
}
.hero__tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px var(--good);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 60%, #fff7e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,107,26,0.35));
}

.hero__sub {
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
  color: var(--text-dim);
}

.hero__meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition: all var(--t-fast);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,26,0.08);
}
.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-2);
  color: #000;
  border-color: var(--accent-2);
}
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- stat strip ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.stats__item {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.stats__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- feature grid -------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--t);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.feature:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255,107,26,0.08);
  border: 1px solid rgba(255,107,26,0.25);
  color: var(--accent);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.feature__text { color: var(--text-dim); font-size: 15px; }
.feature__num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
}

/* --- pillars ------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pillar {
  padding: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  position: relative;
}
.pillar__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.pillar__title {
  margin-top: 18px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pillar__text {
  margin-top: 12px;
  color: var(--text-dim);
}

/* --- heritage tribute --------------------------------------------------- */
.heritage {
  margin-top: 56px;
  padding: 36px 40px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.heritage::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.heritage__top {
  margin-bottom: 14px;
}
.heritage__title {
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.heritage__lead {
  color: var(--text-dim);
  margin-bottom: 22px;
  font-size: 15px;
}
.heritage__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
  padding: 22px 26px;
  margin: 0 0 22px 0;
  background: rgba(0,0,0,0.28);
  border-left: 2px solid var(--accent);
  list-style: none;
}
.heritage__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.heritage__list li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
}
.heritage__list strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.heritage__home {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 107, 26, 0.07);
  border: 1px solid rgba(255, 107, 26, 0.32);
  border-left: 3px solid var(--accent);
  margin-top: 4px;
}
.heritage__home-label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 1px;
  white-space: nowrap;
}
.heritage__home p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.heritage__home p strong { color: var(--accent); }
@media (max-width: 900px) {
  .heritage__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .heritage { padding: 28px 22px; }
  .heritage__list { grid-template-columns: 1fr; padding: 18px 20px; }
  .heritage__home { flex-direction: column; gap: 10px; padding: 18px 20px; }
}

/* --- factions ------------------------------------------------------------ */
.factions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.faction {
  padding: 36px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform var(--t);
}
.faction:hover { transform: translateY(-4px); }
.faction::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--faction-color);
}
.faction__crest {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--faction-color);
  color: var(--faction-color);
  position: relative;
}
.faction__crest svg { width: 40px; height: 40px; }
.faction--red   { --faction-color: var(--red); }
.faction--blue  { --faction-color: var(--blue); }
.faction--green { --faction-color: var(--green); }
.faction__name {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faction-color);
}
.faction__role {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.faction__desc {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}

/* --- loop diagram -------------------------------------------------------- */
.loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
  position: relative;
}
.loop__node {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 18px;
  text-align: center;
  position: relative;
}
.loop__node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.loop__node span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.loop__node p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.loop__node:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  z-index: 2;
}

/* --- progress ------------------------------------------------------------ */
.progress-list {
  display: grid;
  gap: 12px;
}
.prog {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.prog__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prog__bar {
  height: 6px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.prog__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.prog__pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}
.prog--done   .prog__bar::after { background: linear-gradient(90deg, var(--good), #86efac); }
.prog--design .prog__bar::after { background: linear-gradient(90deg, var(--warn), #fde68a); }

/* --- timeline ------------------------------------------------------------ */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-bright);
}
.tl {
  position: relative;
  padding-bottom: 28px;
}
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: "";
  position: absolute;
  left: -23px; top: 6px;
  width: 11px; height: 11px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.tl--done::before    { background: var(--good); }
.tl--current::before { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.tl--future::before  { background: var(--surface-3); border: 1px solid var(--line-bright); }
.tl__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tl__title {
  margin-top: 4px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tl__text {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

/* --- callout / cta block ------------------------------------------------- */
.callout {
  padding: 56px 48px;
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(ellipse at top right, rgba(255,107,26,0.18), transparent 60%),
    var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.callout__inner { position: relative; }
.callout h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.callout p {
  margin-top: 14px;
  color: var(--text-dim);
  max-width: 600px;
  margin-inline: auto;
}
.callout .btn-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- footer -------------------------------------------------------------- */
.footer {
  margin-top: 80px;
  padding: 56px 0 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer__about p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 360px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer__bottom .built {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- terminal/code accents ---------------------------------------------- */
.terminal {
  background: #06080b;
  border: 1px solid var(--line-bright);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tox);
  position: relative;
  margin-top: 24px;
}
.terminal::before {
  content: "▎ SYS://wasteland-z/status";
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.terminal .ok { color: var(--good); }
.terminal .warn { color: var(--warn); }

/* --- generic prose ------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; font-size: 24px; }
.prose h3 { margin-top: 28px; font-size: 18px; color: var(--accent); }
.prose p { margin-top: 14px; color: var(--text-dim); }
.prose ul {
  margin-top: 14px;
  padding-left: 18px;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.prose ul li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
}
.prose strong { color: var(--text); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .factions { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; gap: 32px; }
  .loop__node:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: -28px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1),
  .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .prog { grid-template-columns: 1fr; }
  .prog__pct { text-align: left; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__open .nav__links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
  .nav__open .nav__link--active::after { display: none; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .callout { padding: 36px 22px; }
}

/* --- scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
