/* ============================================================
   TRACKBORNE — website
   Aesthetic: dark asphalt street-racing poster.
   Type: Saira Condensed (display) / Saira (body) / IBM Plex Mono (telemetry)
   ============================================================ */

:root {
  --asphalt: #0b0b0e;
  --asphalt-2: #121218;
  --panel: #16161d;
  --line: #26262f;
  --ink: #e8e8ee;
  --ink-dim: #9a9aa8;
  --red: #ff3d2e;
  --red-hot: #ff6b35;
  --gold: #e8b64c;
  --silver: #b9bec9;
  --bronze: #c98a54;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--asphalt);
  color: var(--ink);
  font-family: "Saira", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* asphalt grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }

h1, h2, h3, .display {
  font-family: "Saira Condensed", "Saira", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.mono { font-family: "IBM Plex Mono", Consolas, monospace; }

a { color: var(--red-hot); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo .slash { color: var(--red); margin-right: 6px; }
.logo .rush { color: var(--red); }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }

/* ---------------- checkered strip ---------------- */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(#1c1c24 0% 25%, #0b0b0e 0% 50%) 0 0 / 14px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
/* speed lines */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 140px,
    rgba(255, 61, 46, 0.055) 140px 146px,
    transparent 146px 300px,
    rgba(255, 255, 255, 0.025) 300px 303px
  );
  transform: translateX(0);
  animation: lines-drift 26s linear infinite;
}
@keyframes lines-drift {
  to { transform: translateX(-420px); }
}
.hero .kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--red-hot);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: rise 0.7s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 {
  font-size: clamp(64px, 11vw, 148px);
  margin-left: -4px;
  animation: rise 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 .ghost {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 61, 46, 0.55);
  margin-top: -0.14em;
}
.hero .tagline {
  max-width: 520px;
  margin-top: 26px;
  font-size: 19px;
  color: var(--ink-dim);
  animation: rise 0.7s 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  animation: rise 0.7s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: #3a3a46; }
.btn.primary {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-hot) 100%);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn .sub { display: block; font-size: 11px; letter-spacing: 0.2em; opacity: 0.75; font-style: normal; font-family: "IBM Plex Mono", monospace; }

/* ---------------- store badges ---------------- */
.stores {
  margin-top: 44px;
  animation: rise 0.7s 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stores-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 196px;
  padding: 11px 20px 11px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: default;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: #3a3a46; background: #1b1b23; }
.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
  color: var(--ink-dim);
  transition: color 0.18s ease;
}
/* Brand tint only on hover, so the hero keeps its two-colour poster palette at rest. */
.store-btn.play:hover  svg { color: #3ddc84; }
.store-btn.apple:hover svg { color: #f5f5f7; }
.store-btn.steam:hover svg { color: #66c0f4; }
.store-btn.ms:hover    svg { color: #4cc2ff; }
.store-btn .top {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-hot);
}
.store-btn .name {
  display: block;
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* telemetry card floating in hero */
.telemetry {
  position: relative;
  margin-top: 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  animation: rise 0.7s 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.telemetry .track-name {
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 20px;
}
.telemetry .track-name small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  margin-top: 3px;
}
.medal-times { display: flex; gap: 26px; flex-wrap: wrap; }
.medal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
}
.medal b {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}
.medal.gold b { color: var(--gold); }
.medal.silver b { color: var(--silver); }
.medal.bronze b { color: var(--bronze); }
.medal .flux { color: var(--red-hot); font-size: 12px; margin-left: 6px; }

/* ---------------- marquee ---------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  background: var(--asphalt-2);
}
.marquee-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--ink-dim);
  animation: marquee 30s linear infinite;
}
.marquee-inner .dot { color: var(--red); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------------- sections ---------------- */
section.block { padding: 96px 0; position: relative; }
.section-kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--red-hot);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
section.block h2 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 18px; }
.section-lede { max-width: 560px; color: var(--ink-dim); margin-bottom: 52px; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.feature:hover { transform: translateY(-5px); border-color: #3a3a46; }
.feature::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.feature:hover::after { opacity: 1; }
.feature .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feature p { color: var(--ink-dim); font-size: 15.5px; }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.track-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.track-card:hover { transform: translateY(-5px); border-color: #3a3a46; }
.track-art {
  height: 150px;
  position: relative;
  overflow: hidden;
}
.track-art.city   { background: linear-gradient(160deg, #16202e 0%, #0d1119 70%); }
.track-art.loop   { background: linear-gradient(160deg, #1d1626 0%, #100d17 70%); }
.track-art.desert { background: linear-gradient(160deg, #2b1d12 0%, #171009 70%); }
.track-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,0.05) 34px 37px);
}
.track-art .badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--ink-dim);
  background: rgba(11,11,14,0.5);
}
.track-art .road {
  position: absolute;
  bottom: -30px; left: -10%;
  width: 120%; height: 90px;
  background: #08080b;
  transform: rotate(-4deg);
  border-top: 3px dashed rgba(255, 61, 46, 0.5);
}
.track-meta { padding: 20px 22px 24px; }
.track-meta h3 { font-size: 24px; }
.track-meta .stats {
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}
.track-meta .stats b { color: var(--gold); font-weight: 600; }
.track-meta .locked {
  display: inline-block;
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red-hot);
  border: 1px dashed rgba(255, 107, 53, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
}

/* diagonal fair-play banner */
.fairplay {
  margin: 0 auto 96px;
  position: relative;
}
.fairplay .inner {
  background: linear-gradient(120deg, #1c0f0d 0%, #16161d 60%);
  border: 1px solid rgba(255, 61, 46, 0.28);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.fairplay h2 { font-size: clamp(30px, 4vw, 44px); }
.fairplay p { color: var(--ink-dim); max-width: 520px; margin: 8px auto 0; }
.fairplay .stamp {
  font-family: "IBM Plex Mono", monospace;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.3em;
  transform: rotate(-3deg);
  white-space: nowrap;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- legal pages ---------------- */
.legal-hero { padding: 84px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.legal-hero::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: repeating-linear-gradient(115deg, transparent 0 180px, rgba(255,61,46,0.04) 180px 186px);
}
.legal-hero h1 { font-size: clamp(44px, 7vw, 84px); }
.legal-hero .meta {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.translate-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.translate-btn:hover { text-decoration: none; border-color: var(--red-hot); transform: translateY(-2px); }
.translate-btn .globe { color: var(--red-hot); }
.legal-body { max-width: 760px; padding-top: 56px; padding-bottom: 110px; }
.legal-body section { margin-bottom: 44px; }
.legal-body h2 {
  font-size: 26px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2 .n { color: var(--red); margin-right: 10px; font-family: "IBM Plex Mono", monospace; font-size: 15px; font-style: normal; vertical-align: 3px; }
.legal-body p, .legal-body li { color: #c6c6d2; font-size: 16px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-dim);
}

/* ---------------- leaderboard page ---------------- */
.lb-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 48px 0 110px;
}
/* Sidebar scrolls on its own so dozens of tracks stay manageable. */
.lb-side {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #2c2c36 transparent;
}
.lb-side::-webkit-scrollbar { width: 8px; }
.lb-side::-webkit-scrollbar-thumb { background: #2c2c36; border-radius: 4px; }
.lb-side::-webkit-scrollbar-track { background: transparent; }
.lb-hidden { display: none !important; }
.lb-filter {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "Saira", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.lb-filter::placeholder { color: #6d6d7a; }
.lb-filter:focus { outline: none; border-color: rgba(255, 61, 46, 0.55); }
.lb-select {
  display: none;
  width: 100%;
  font-family: "Saira", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.lb-cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8c94a0;
  margin: 18px 0 8px 4px;
}
.lb-cat:first-child { margin-top: 0; }
.lb-track-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Saira", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lb-track-btn:hover { background: rgba(255, 255, 255, 0.07); }
.lb-track-btn.active {
  background: rgba(230, 77, 31, 0.25);
  border-color: rgba(255, 61, 46, 0.45);
}
.lb-track-btn small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-top: 1px;
}
.lb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lb-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.lb-head .sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 4px;
}
.lb-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-tab {
  font-family: "Saira Condensed", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 20px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: color 0.15s ease, background 0.15s ease;
}
.lb-tab:hover { color: var(--ink); }
/* LIVE / ENDED marker on the per-season tabs. */
.lb-tab small {
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-left: 7px;
}
.lb-tab.active {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-hot) 100%);
  border-color: transparent;
  color: #fff;
}
.lb-medals { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lb-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.lb-row:last-child { border-bottom: none; }
.lb-row .rank { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--ink-dim); }
.lb-row .name { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .time { font-family: "IBM Plex Mono", monospace; font-size: 14.5px; }
.lb-row.p1 .rank, .lb-row.p1 .time { color: var(--gold); }
.lb-row.p2 .rank, .lb-row.p2 .time { color: var(--silver); }
.lb-row.p3 .rank, .lb-row.p3 .time { color: var(--bronze); }
.lb-status {
  padding: 44px 24px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.lb-meta {
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #63636f;
}

@media (max-width: 820px) {
  .lb-layout { grid-template-columns: 1fr; gap: 20px; }
  /* On mobile the sidebar collapses to a native dropdown, which stays
     compact no matter how many tracks exist. */
  .lb-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .lb-filter, .lb-list { display: none; }
  .lb-select { display: block; }
  .lb-row { grid-template-columns: 48px 1fr auto; padding: 12px 14px; }
  .lb-head { align-items: flex-start; flex-direction: column; }
  /* Four tabs (all-time + three seasons) need to wrap on narrow screens. */
  .lb-tab { padding: 8px 14px; font-size: 14px; }
}

/* ---------------- footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--asphalt-2);
  padding: 46px 0 40px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer .foot-logo { font-size: 19px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a {
  color: var(--ink-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.site-footer nav a:hover { color: var(--ink); text-decoration: none; }
.site-footer .fine {
  width: 100%;
  margin-top: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #63636f;
}

@media (max-width: 640px) {
  .site-header .wrap {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 2px;
  }
  .nav { gap: 12px 16px; flex-wrap: wrap; }
  .nav a { font-size: 12px; letter-spacing: 0.09em; }
  .hero { padding: 72px 0 64px; }
  /* Badges become a fluid grid so four stores never overflow a narrow screen. */
  .store-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .store-btn { min-width: 0; padding: 10px 14px; gap: 10px; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn .name { font-size: 17px; }
  section.block { padding: 64px 0; }
  .fairplay .inner { padding: 32px 24px; }
  .legal-hero { padding: 56px 0 32px; }
  .lb-layout { padding: 32px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .marquee-inner { animation: none; }
  .hero .kicker, .hero h1, .hero .tagline, .hero .cta-row, .stores, .telemetry { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
