/* ==========================================================================
   Система 416 — кинематографичный WebGL-лендинг
   Монохром: чёрный фон, холодный свет данных, металл, редкий янтарь.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #f6f1e8;
  --ink-dim: rgba(246,241,232, .62);
  --ink-faint: rgba(246,241,232, .34);
  --line: rgba(246,232,208, .16);
  --ice: #f6e8d0;
  --blue: #a56d24;
  --steel: #3b3127;
  --steel-2: #78736c;
  --amber: #e8b12b;

  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, 'Cascadia Mono', monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--black); color-scheme: dark; }
/* Lenis: обязательные правила плавного скролла */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* Курсор — системный: свой, рисуемый каждым кадром, отставал на слабых ПК (14.10.2026) */

/* ── Холст и служебные слои ───────────────────────────────── */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.flash {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #f6e8d0 18%, rgba(165,109,36,.25) 45%, transparent 70%);
  opacity: 0; mix-blend-mode: screen;
}
/* Затемнение под текстом (main.js — scrims): слева/справа — под колонкой текста, целиком — где текст во всю ширину. */
.scrim { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.scrim--l { background: linear-gradient(90deg, rgba(8,6,4,.85) 0%, rgba(8,6,4,.62) 32%, rgba(8,6,4,0) 62%); }
.scrim--r { background: linear-gradient(270deg, rgba(8,6,4,.85) 0%, rgba(8,6,4,.62) 32%, rgba(8,6,4,0) 62%); }
.scrim--all { background: rgba(8,6,4,.6); }
.hero__title, .stage h2, .connected h2, .intel h2, .form h2, .final h2 { text-shadow: 0 2px 30px rgba(0,0,0,.55); }
@media (max-width: 720px) {
  .scrim--l, .scrim--r { background: linear-gradient(0deg, rgba(8,6,4,.88) 0%, rgba(8,6,4,.6) 42%, rgba(8,6,4,0) 72%); }
}
.fallback {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 55%, #16100a 0%, #000 60%);
}
.fallback__core {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f6e8d0 22%, rgba(165,109,36,.35) 45%, transparent 70%);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }

/* ── Прелоадер ────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 36px;
  background: #000;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__core { position: relative; width: 96px; height: 96px; }
.preloader__core b {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 3px var(--ice), 0 0 40px 8px rgba(165,109,36,.5);
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader__core i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(246,232,208,.35);
  border-top-color: var(--ice);
  animation: spin 2.4s linear infinite;
}
.preloader__core i:nth-child(2) { inset: 14px; animation-duration: 1.7s; animation-direction: reverse; border-color: rgba(246,232,208,.18); border-right-color: var(--blue); }
.preloader__core i:nth-child(3) { inset: 28px; animation-duration: 3.1s; border-color: rgba(232,177,43,.12); border-bottom-color: rgba(232,177,43,.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__meta { display: flex; justify-content: space-between; gap: 48px; width: min(320px, 70vw); color: var(--ink-dim); }
.preloader__pct { color: var(--ink); }
.preloader__bar { width: min(320px, 70vw); height: 1px; background: var(--line); }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--ice); box-shadow: 0 0 10px var(--blue); transition: width .3s var(--ease); }


/* ── Навигация ────────────────────────────────────────────── */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 1px; z-index: 30; background: rgba(246,232,208,.08); }
.progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--blue), var(--ice)); box-shadow: 0 0 8px var(--blue); }

.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgba(246,232,208,.5); border-radius: 50%;
  font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--ice);
  box-shadow: inset 0 0 12px rgba(165,109,36,.35);
}
.nav__name { display: grid; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.nav__name small { font-size: 9px; font-weight: 400; color: var(--ink-faint); letter-spacing: .14em; }
.nav__menu { display: flex; gap: 4px; }
.nav__menu a { padding: 8px 14px; font-size: 13px; color: var(--ink-dim); transition: color .4s var(--ease); }
.nav__menu a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__login {
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
  border: 1px solid rgba(246,232,208,.35); background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .4s, background .4s, color .4s;
}
.nav__login:hover { border-color: var(--ice); background: var(--ice); color: #000; }
.nav__sound { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); padding: 8px 0; transition: color .4s; }
.nav__sound:hover, .nav__sound[aria-pressed="true"] { color: var(--ink); }
.nav__eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.nav__eq i { width: 2px; height: 3px; background: currentColor; }
.nav__sound[aria-pressed="true"] .nav__eq i { animation: eq .9s ease-in-out infinite; background: var(--ice); }
.nav__eq i:nth-child(2) { animation-delay: -.3s !important; }
.nav__eq i:nth-child(3) { animation-delay: -.6s !important; }
.nav__eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 50% { height: 12px; } }

.modes {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 20;
  display: flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .6s var(--ease);
}
.modes button { padding: 7px 12px; border-radius: 999px; color: var(--ink-faint); font-size: 10px; transition: color .4s, background .4s; }
.modes button:hover { color: var(--ink); }
.modes button.is-active { color: #000; background: var(--ice); }
.modes.models { right: auto; left: var(--gutter); }

/* Подписи вокруг ядра */
.orbit-labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.orbit-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  color: var(--ice); font-size: 10px; opacity: 0;
  padding-left: 14px;
}
.orbit-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: currentColor; }

/* ── Курсор ───────────────────────────────────────────────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 5px; height: 5px; margin: -2.5px; background: #fff; box-shadow: 0 0 8px var(--ice); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px;
  border: 1px solid rgba(246,232,208,.55);
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-color .45s, background .45s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px; border-color: var(--ice); background: rgba(165,109,36,.08); }
.cursor.is-core .cursor__ring { border-color: var(--amber); }

/* ── Секции ───────────────────────────────────────────────── */
/* Высоты в vh фиксированы: на них завязан таймлайн сцены в main.js (SCROLL_VH и метки этапов). */
main { position: relative; z-index: 10; }
.sec { position: relative; padding: 0 var(--gutter); }
.sec--hero { height: 100vh; }
.sec--story { height: 640vh; }
.sec--connected { height: 100vh; }
.sec--intel { height: 140vh; }
.sec--form { height: 120vh; }
.sec--final { height: 160vh; }

.eyebrow { display: block; color: var(--ice); margin: 0 0 22px; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 1px; margin: 0 12px 3px 0; background: currentColor; vertical-align: middle; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
h2 em, .hero__lead em { font-style: normal; color: var(--ice); }

/* Hero */
.hero { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14vh; max-width: 980px; }
.hero__title { font-size: clamp(56px, 10.5vw, 160px); letter-spacing: -.055em; line-height: .9; }
.hero__lead { margin: 22px 0 0; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.025em; line-height: 1.15; color: var(--ink); }
.hero__sub { max-width: 440px; margin: 18px 0 0; color: var(--ink-dim); font-size: clamp(14px, 1.15vw, 17px); }
.hero__aside { position: absolute; right: var(--gutter); top: 18vh; display: grid; gap: 8px; text-align: right; color: var(--ink-faint); font-size: 10px; }
.hero__aside span:first-child { color: var(--ice); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 14vh; display: flex; align-items: center; gap: 14px; color: var(--ink-dim); }
.scroll-cue i { position: relative; width: 1px; height: 48px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ice); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* 3D-история */
.story { position: sticky; top: 0; height: 100vh; --acc: var(--ice); }
.story .stage .eyebrow { color: var(--acc); transition: color .6s; }
.story__top { position: absolute; left: 0; right: 0; top: 84px; display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 10px; }
.story__top a { color: var(--ink-dim); text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; transition: color .3s; }
.story__top a:hover { color: var(--ice); }
.story__path { position: absolute; left: 0; top: 108px; color: var(--ink-faint); font-size: 9px; letter-spacing: .1em; }
.story__stages { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(560px, 100%); height: 300px; }
.stage {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stage.is-active { opacity: 1; transform: none; }
.stage h2 { font-size: clamp(36px, 4.6vw, 68px); }
.stage p { max-width: 380px; margin: 24px 0 0; color: var(--ink-dim); font-size: 14px; }
.story__tag { position: absolute; right: 0; top: 34vh; display: grid; justify-items: end; gap: 8px; font-size: 10px; text-align: right; }
.story__tag b { font-weight: 500; color: var(--acc); padding-bottom: 8px; border-bottom: 1px solid var(--acc); }
.story__tag span { color: var(--ink-faint); font-size: 9px; }
.story__bottom { position: absolute; left: 0; right: 0; bottom: 74px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 24px; }
.story__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: var(--ink-faint); font-size: 10px; text-transform: none; letter-spacing: .02em; font-family: var(--font); font-size: 12px; }
.story__nav li { cursor: pointer; transition: color .4s; }
.story__nav li i { font-style: normal; margin-right: 8px; font-family: var(--mono); font-size: 10px; }
.story__nav li:hover { color: var(--ink); }
.story__nav li.is-active { color: var(--acc); }
.story__meter { grid-column: 1 / -1; display: grid; gap: 10px; }
.story__meter > span { font-size: 12px; color: var(--ink); }
.story__line { height: 1px; background: var(--line); }
.story__line span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.story__hint { grid-column: 2; grid-row: 1; color: var(--ink-faint); font-size: 9px; }

/* 01 / Всё связано */
.ticker { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ticker__track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: ticker 32s linear infinite; color: var(--ink-dim); font-size: 10px; }
.ticker__track i { font-style: normal; color: var(--ink-faint); }
.ticker__track .is-ai { color: var(--ice); }
@keyframes ticker { to { transform: translateX(-50%); } }
.connected {
  position: sticky; top: 0; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center;
  padding: 120px 0 80px;
}
.connected h2 { font-size: clamp(36px, 4.4vw, 66px); }
.connected__lines { margin: 30px 0 0; color: var(--ink-dim); font-size: 15px; line-height: 1.75; }
.acc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item button { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; width: 100%; padding: 22px 16px 22px 0; text-align: left; font-size: 19px; letter-spacing: -.015em; color: var(--ink-dim); transition: color .4s; }
.acc__item button i { font-style: normal; font-size: 10px; color: var(--ink-faint); }
.acc__item button b { font-weight: 400; color: var(--ink-faint); transition: color .4s, transform .5s var(--ease); }
.acc__item button:hover, .acc__item.is-open button { color: var(--ink); }
.acc__item.is-open button b { color: var(--ice); transform: rotate(-45deg); }
.acc__item p { display: grid; margin: 0; padding: 0 16px 0 42px; max-height: 0; overflow: hidden; color: var(--ink-dim); font-size: 14px; transition: max-height .6s var(--ease), padding .6s var(--ease); }
.acc__item.is-open p { max-height: 120px; padding-bottom: 22px; }

/* 02 / Интеллект в центре */
.intel {
  position: sticky; top: 0; min-height: 100vh; margin-left: auto; max-width: 520px;
  display: flex; flex-direction: column; justify-content: center; padding: 110px 0 80px;
}
.intel::before { content: ''; position: absolute; inset: 0 -12vw 0 -6vw; z-index: -1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,0,0,.55) 30%, rgba(0,0,0,.7)); }
.intel h2 { font-size: clamp(36px, 4.4vw, 66px); }
.intel__text { margin: 26px 0 0; color: var(--ink-dim); font-size: 15px; }
.features { display: grid; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.features i { font-style: normal; color: var(--ice); font-size: 16px; line-height: 1.3; }
.features b { display: block; font-weight: 500; font-size: 15px; }
.features span { color: var(--ink-dim); font-size: 13px; }
.intel__note { margin: 28px 0 0; color: var(--ink-faint); font-size: 11px; }

/* 03 / Проект обретает форму */
.form { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 110px 0 80px; }
.form h2 { font-size: clamp(36px, 4.6vw, 70px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(1180px, 100%); margin-top: 52px; background: var(--line); border: 1px solid var(--line); text-align: left; }
.step { padding: 26px 26px 30px; background: rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .5s var(--ease); }
.step:hover { background: rgba(22,15,7, .7); }
.step > span { color: var(--amber); font-size: 10px; }
.step__icon { display: block; margin: 34px 0 30px; font-style: normal; font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--ice); }
.step h3 { font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 12px 0 0; color: var(--ink-dim); font-size: 14px; }

/* Финал */
.final { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 17vh; }
.final::before { content: ''; position: absolute; left: 50%; bottom: 4vh; width: min(1200px, 130vw); height: 64vh; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 62%, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 42%, transparent 70%); }
.final__title { font-size: clamp(42px, 6.6vw, 104px); letter-spacing: -.05em; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.btn {
  position: relative; padding: 15px 26px; border-radius: 999px;
  border: 1px solid rgba(246,232,208,.35);
  font-size: 14px; font-weight: 500;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .4s, background .4s, color .4s, box-shadow .4s;
}
.btn:hover { border-color: var(--ice); box-shadow: 0 0 24px rgba(165,109,36,.25); }
.btn--primary { background: var(--ice); color: #000; border-color: var(--ice); }
.btn--primary:hover { background: #fff; }

.footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter) 76px;
  color: var(--ink-faint); font-size: 10px;
  border-top: 1px solid rgba(246,232,208,.08);
}
.footer a:hover { color: var(--ice); }

/* Окно входа */
.login {
  width: min(440px, calc(100vw - 32px)); padding: 0; margin: auto;
  border: 1px solid rgba(246,232,208,.25); border-radius: 18px;
  background: rgba(12,9,5, .82); color: var(--ink);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 0 40px rgba(165,109,36,.06);
}
/* окно живёт в top layer поверх своего курсора — внутри возвращаем системный */
.login form[hidden] { display: none; }
.login__switch { width: 100%; justify-content: center; text-align: center; }
.login__policy { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-dim); text-align: center; }
.login.is-register { width: min(600px, calc(100vw - 32px)); }
.login { max-height: calc(100vh - 32px); overflow-y: auto; }
.login__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .login__grid { grid-template-columns: 1fr; } }
.login__consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; }
.login__consent input { margin-top: 2px; accent-color: var(--ice); padding: 0; }
.login__consent a { color: var(--ice); }
.login__sent { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.login__sent a { color: var(--ice); }
.login, .login * { cursor: auto; }
.login input { cursor: text; }
.login button { cursor: pointer; }
.login::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.login[open] { animation: loginIn .6s var(--ease); }
@keyframes loginIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.login form { position: relative; display: grid; gap: 16px; padding: 34px 32px 30px; }
.login .eyebrow { margin: 0; font-size: 10px; }
.login h2 { margin: 4px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.login label { display: grid; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.login input {
  padding: 13px 14px; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid rgba(246,232,208,.2); background: rgba(255,255,255,.04);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.login input:focus { outline: none; border-color: var(--ice); background: rgba(246,232,208,.06); box-shadow: 0 0 0 3px rgba(165,109,36,.18); }
.login__error { min-height: 18px; margin: 0; color: var(--amber); font-size: 13px; }
.login__submit { width: 100%; margin-top: 2px; }
.login__submit:disabled { opacity: .6; }
.login__close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-dim); transition: color .3s, background .3s; }
.login__close:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav__login { font-family: var(--font); }
.footer button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.footer button:hover { color: var(--ice); }

/* Появление текста (IntersectionObserver ставит .is-in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }
[data-intro] { opacity: 0; }

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .connected { grid-template-columns: 1fr; gap: 36px; }
  .nav__sound { display: none; }
}
@media (max-width: 720px) {
  .nav { padding: 14px var(--gutter); }
  .nav__menu, .nav__name small { display: none; }
  .nav__login { padding: 8px 12px; font-size: 12px; }
  .modes { left: 50%; right: auto; transform: translateX(-50%); bottom: 16px; }
  .modes.models { bottom: 60px; }
  .hero { bottom: 18vh; }
  .hero__aside, .scroll-cue { display: none; }
  .story__top { top: 70px; }
  .story__path { display: none; }
  .story__stages { top: auto; bottom: 200px; transform: none; height: auto; min-height: 260px; }
  .stage h2 { font-size: 34px; }
  .stage p { margin-top: 14px; font-size: 13px; }
  .story__tag { top: 112px; }
  .story__bottom { bottom: 70px; grid-template-columns: 1fr; }
  .story__hint { display: none; }
  .story__nav { gap: 6px 14px; font-size: 11px; }
  .sec--connected, .sec--intel, .sec--form { height: auto; min-height: 100vh; }
  .connected, .intel, .form { position: relative; padding: 90px 0 60px; }
  .acc__item button { font-size: 16px; padding: 16px 8px 16px 0; grid-template-columns: 34px 1fr auto; }
  .acc__item p { padding-left: 34px; }
  .steps { grid-template-columns: 1fr; margin-top: 30px; }
  .step { padding: 18px; }
  .step__icon { margin: 14px 0; font-size: 22px; }
  .footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stage { transition: none; }
  .ticker__track { animation: none; }
}
