/* ============================================================
   VOIDBLOCK — landing styles
   Aesthetic: void-black + неон-циан/фиолет (под лого-куб), holographic island,
   huge Clash Display type, Martian Mono technical labels.
   ============================================================ */

:root {
  --bg: #070512;
  --bg-deep: #040309;
  --ink: #e8e6f2;
  --ink-dim: #9b96b4;
  --ink-faint: #565170;
  --mint: #7dd8ff; /* неон-циан под лого (имя переменной историческое) */
  --mint-dim: rgba(125, 216, 255, 0.35);
  --violet: #8b7bff;
  --ghost: #cfc4ff;
  --line: rgba(155, 150, 180, 0.16);
  --font-display: "Clash Display", sans-serif;
  --font-body: "General Sans", sans-serif;
  --font-mono: "Martian Mono", monospace;
  --nav-h: 72px;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (pointer: coarse), (max-width: 820px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

::selection { background: var(--mint); color: var(--bg-deep); }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.accent { color: var(--mint); }

img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
@media (pointer: coarse), (max-width: 820px) { button { cursor: pointer; } }

/* ============ PRELOADER ============ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner { text-align: center; }

.preloader__label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.35em;
  margin-bottom: 22px;
}

.preloader__count {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preloader__pct { font-size: 0.35em; color: var(--mint); margin-left: 6px; }

.preloader__bar {
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line);
  margin: 28px auto 0;
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 100%;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============ FIXED ATMOSPHERE LAYERS ============ */

.void-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(4, 3, 9, 0.55) 100%);
}

/* ============ CURSOR ============ */

.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; }

.cursor__dot {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--mint);
  border-radius: 50%;
}

.cursor__ring {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--mint-dim);
  border-radius: 50%;
  transition: border-color 0.25s ease; /* transform не трогаем — им владеет GSAP */
}

.cursor.is-hover .cursor__ring {
  border-color: var(--mint);
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  opacity: 0; /* revealed after preloader */
}

.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 5, 18, 0.85), transparent);
  pointer-events: none;
}

.nav__logo { display: flex; align-items: center; gap: 12px; }

.nav__logo-mark {
  display: block;
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 8px rgba(125, 216, 255, 0.35));
}

.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 11px; }

.nav__links a {
  color: var(--ink-dim);
  letter-spacing: 0.2em;
  transition: color 0.25s ease;
}

.nav__links a:hover { color: var(--mint); }

/* вход в кабинет — рядом с PLAY NOW */
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__cabinet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav__cabinet:hover {
  color: var(--mint);
  border-color: var(--mint-dim);
  background: rgba(125, 216, 255, 0.05);
}

.nav__cabinet-icon { color: var(--mint); font-size: 12px; }

.nav__cta {
  position: relative;
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bg-deep);
  background: var(--mint);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s ease;
}

.nav__cta:hover { background: #a5e6ff; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  /* текст "CABINET" прячем, оставляем компактную иконку рядом с Play Now */
  .nav__cabinet { padding: 10px 13px; gap: 0; }
  .nav__cabinet span:not(.nav__cabinet-icon) { display: none; }
  .nav__cabinet-icon { font-size: 14px; }
}

/* ============ LAYOUT BASICS ============ */

#smooth-content { position: relative; z-index: 1; }

section { position: relative; }

.chapter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: clamp(24px, 4vh, 48px);
}

.chapter__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
}

.chapter__name::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin-right: 16px;
}

.chapter--ghost .chapter__num { color: var(--ghost); }

/* ============ HERO ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) 20px 80px;
  overflow: hidden;
}

.hero__vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* плавное затухание к низу секции — иначе свечение дыры
     обрывается жёсткой линией на границе со следующей главой */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

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

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin-bottom: clamp(20px, 3vh, 36px);
}

.hero__topline-dot {
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 16.5vw, 240px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__title-row { display: block; }

.hero__title-row--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--mint);
  /* drop-shadow вместо text-shadow: повторяет форму букв,
     не режется масками SplitText в прямоугольники */
  filter: drop-shadow(0 0 26px rgba(125, 216, 255, 0.3));
}

.hero__tagline {
  margin-top: clamp(24px, 4vh, 44px);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  color: var(--ink-dim);
}

.hero__tagline em {
  font-style: normal;
  color: var(--ink);
  border-bottom: 1px solid var(--mint-dim);
}

.hero__actions {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ip-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  background: rgba(125, 216, 255, 0.05);
  border: 1px solid var(--mint-dim);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ip-pill:hover {
  background: rgba(125, 216, 255, 0.12);
  border-color: var(--mint);
  transform: translateY(-2px);
}

.ip-pill__dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}

.ip-pill__ip { font-size: 17px; font-weight: 700; color: var(--ink); }

.ip-pill__hint {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.hero__platforms { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-faint); }

/* узкие телефоны: убираем лишнее, ужимаем отступы */
@media (max-width: 420px) {
  .ip-pill { padding: 14px 20px; gap: 12px; }
  .ip-pill__hint { display: none; }
  .ip-pill__ip { font-size: 15px; }
  .hero__topline { font-size: 10px; letter-spacing: 0.2em; flex-wrap: wrap; }
  .nav__cta { padding: 10px 16px; }
  .join__ip { padding: 22px 20px; }
  .chapter { flex-wrap: wrap; letter-spacing: 0.2em; }
  .chapter__name::before { width: 20px; margin-right: 10px; }
}

.hero__scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
}

.hero__scrollcue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--mint), transparent);
  animation: cue-drop 1.8s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.hero__edge {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

@media (max-width: 820px) {
  .hero__edge { display: none; }
}

/* ============ CH 01 — STATEMENT ============ */

.statement { height: 250vh; }

.statement__pin {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 140px);
}

.statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 1200px;
}

.statement__text .st-word { opacity: 0.1; }

/* ============ CH 02 — LEAGUES ============ */

.leagues { overflow: hidden; }

.leagues__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) 0 60px clamp(24px, 6vw, 100px);
}

.leagues__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 110px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.leagues__sub {
  margin-top: 18px;
  max-width: 420px;
  color: var(--ink-dim);
}

.leagues__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(36px, 6vh, 70px);
  width: max-content;
  padding-right: 10vw;
}

.league-card {
  width: clamp(280px, 26vw, 380px);
  flex-shrink: 0;
  padding: clamp(24px, 2.5vw, 38px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.05), rgba(7, 5, 18, 0.6));
  backdrop-filter: blur(4px);
  position: relative;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.league-card:hover {
  border-color: var(--mint-dim);
  transform: translateY(-8px);
}

.league-card::after {
  content: attr(data-tier);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 5vw, 84px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(155, 150, 180, 0.25);
  pointer-events: none;
}

.league-card__num {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mint);
  margin-bottom: 40px;
}

.league-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.league-card__desc { color: var(--ink-dim); font-size: 15px; min-height: 72px; }

.league-card__perks {
  list-style: none;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

.league-card__perks li::before {
  content: "▸ ";
  color: var(--mint);
}

.league-card--sov {
  border-color: var(--mint-dim);
  background: linear-gradient(160deg, rgba(125, 216, 255, 0.09), rgba(7, 5, 18, 0.7));
  box-shadow: 0 0 80px rgba(125, 216, 255, 0.07);
}

.league-card--sov .league-card__name { color: var(--mint); }

.league-card--sov::after { -webkit-text-stroke-color: var(--mint-dim); }

/* мобайл: вместо пина — нативный горизонтальный свайп */
@media (max-width: 820px) {
  .leagues__pin {
    min-height: auto;
    padding: 100px 0 60px 24px;
  }
  .leagues__track {
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mint-dim) transparent;
    padding: 4px 24px 24px 0;
  }
}

/* ============ CH 03 — ECONOMY ============ */

.economy {
  padding: clamp(100px, 16vh, 200px) clamp(24px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
}

.reveal-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.economy__grid {
  margin-top: clamp(48px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 1080px) { .economy__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .economy__grid { grid-template-columns: 1fr; } }

.eco-card {
  background: var(--bg);
  padding: clamp(26px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.eco-card:hover { background: #0b0820; }

.eco-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.eco-card:hover::before { transform: scaleX(1); }

.eco-card__icon {
  font-size: 22px;
  color: var(--mint);
  margin-bottom: 26px;
}

.eco-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
}

.eco-card p { color: var(--ink-dim); font-size: 15px; }

/* ============ MARQUEE ============ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(125, 216, 255, 0.02);
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ CH 04 — GHOST-RUN ============ */

.ghostrun { height: 220vh; }

.ghostrun__pin {
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(207, 196, 255, 0.06), transparent),
    var(--bg-deep);
}

.ghostrun__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ghost);
  text-shadow: 0 0 80px rgba(207, 196, 255, 0.2);
}

.ghostrun__desc {
  margin-top: clamp(24px, 4vh, 44px);
  max-width: 560px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-dim);
}

.ghostrun__haunt {
  display: block;
  margin-top: 12px;
  color: var(--ghost);
  font-weight: 500;
}

.ghostrun__strip {
  position: absolute;
  bottom: 10vh;
  left: 0;
  right: 0;
  overflow: hidden;
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: 0.2em;
  color: rgba(207, 196, 255, 0.12);
  font-weight: 700;
}

.ghostrun__strip-track { display: flex; width: max-content; white-space: nowrap; }

/* ============ JOIN ============ */

.join {
  padding: clamp(110px, 18vh, 220px) clamp(24px, 6vw, 100px);
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}

.join .chapter { justify-content: center; }

.join__ip {
  margin: clamp(40px, 7vh, 80px) auto 0;
  display: block;
  padding: clamp(24px, 4vw, 48px) clamp(32px, 6vw, 90px);
  border: 1px solid var(--mint-dim);
  background: rgba(125, 216, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.join__ip:hover {
  background: rgba(125, 216, 255, 0.1);
  border-color: var(--mint);
  box-shadow: 0 0 100px rgba(125, 216, 255, 0.12);
}

.join__ip-text {
  display: block;
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.join__ip-sub {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--ink-faint);
}

.join__bedrock {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.join__bedrock:hover {
  color: var(--mint);
  border-color: var(--mint-dim);
}

.join__bedrock-hint {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

@media (max-width: 420px) {
  .join__bedrock { flex-direction: column; gap: 8px; padding: 12px 16px; }
  .join__bedrock-hint { border-left: none; padding-left: 0; }
}

.join__steps {
  margin-top: clamp(56px, 10vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  text-align: left;
}

@media (max-width: 820px) { .join__steps { grid-template-columns: 1fr; } }

.join-step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.join-step__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.3em;
}

.join-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 16px 0 10px;
}

.join-step p { color: var(--ink-dim); font-size: 15px; }

.join-step .mono { color: var(--mint); font-size: 0.85em; }

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vh, 70px) clamp(24px, 6vw, 100px) 40px;
}

.footer__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.02em;
}

.footer__ip { color: var(--mint); font-size: 14px; }

.footer__bottom {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

/* ============ МОБАЙЛ: пины отключены (см. main.js) ============
   ВАЖНО: блок должен стоять НИЖЕ правил .statement/.ghostrun,
   иначе их vh-высоты перебьют сброс (одинаковая специфичность) */
@media (max-width: 820px) {
  /* секции обычной высоты — десктопные 250vh/220vh нужны только пинам */
  .statement, .ghostrun { height: auto; }

  /* зерно — слой 2× экрана с анимацией поверх всего, телефонам дорого */
  .grain { display: none; }

  /* центр контента чуть ниже фиксированной шапки */
  .statement__pin, .ghostrun__pin { padding-top: var(--nav-h); }

  /* строка-маркиза держится за экран секции, а не за низ 220vh-прогона */
  .ghostrun__pin { position: relative; }
}

/* ============ MOTION SAFETY ============ */

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scrollcue-line, .hero__topline-dot, .ip-pill__dot { animation: none; }
  .marquee__track { animation: none; }
  .statement__text .st-word { opacity: 1; }
  /* без пинов секции не должны оставлять пустой прогон */
  .statement, .ghostrun { height: auto; }
}

body.is-loading { overflow: hidden; height: 100vh; }
