/* ============================================================
   MelTechMedia · UNIFIED — cinematic particle hero (pinned scroll
   scenes + Three.js morph engine) + calm conversion content-floor
   grafted from conversion v2. Brand: Unbounded/Onest, graphite
   #07080f + electric blue-violet. (filename kept: cinema.css)
   ============================================================ */

:root {
  --bg-0: #07080f;
  --bg-1: #0b0d17;
  --surface: #121525;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-0: #f5f6fb;
  --text-1: #c6cad8;
  --text-2: #888ea3;
  --accent-blue: #5b7cff;
  --accent-violet: #a36bff;
  --accent: #7d7cff;
  --grad-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  --glow-violet: rgba(163, 107, 255, 0.42);
  --data-green: #4ade80;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-0); color: var(--text-1);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(91, 124, 255, 0.08), transparent 60%),
    radial-gradient(900px 540px at 5% 30%, rgba(163, 107, 255, 0.06), transparent 55%);
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text-0); line-height: 1.1; font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
.grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
::selection { background: rgba(125, 124, 255, 0.32); color: #fff; }

/* ---------- SIGNAL particle layer + film grain ---------- */
#signal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (max-width: 899px) { #signal { display: none; } }
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- persistent UI ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: rgba(255, 255, 255, 0.06); }
.progress i { display: block; height: 100%; background: var(--grad-accent); transform-origin: left; transform: scaleX(0); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.1rem, 4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(7, 8, 15, 0.85), transparent);
}
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text-0); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.94rem; border: 1px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--grad-accent); color: #fff; box-shadow: 0 14px 34px -14px var(--glow-violet); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

.scene-counter {
  position: fixed; right: clamp(0.9rem, 2.5vw, 2rem); bottom: 1.4rem; z-index: 80;
  font-family: var(--font-display); color: var(--text-2); font-size: 0.8rem; letter-spacing: 0.1em;
}
.scene-counter b { color: var(--text-0); font-size: 1rem; }

/* ---------- scenes base ---------- */
.sc { position: relative; min-height: 100vh; display: grid; place-items: center; padding: clamp(4.5rem, 8vh, 6rem) clamp(1.1rem, 4vw, 2.4rem); z-index: 1; }

/* ---------- SCENE 1 · crystal ---------- */
.sc1 { overflow: hidden; }
.webgl { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .webgl { display: none; } .sc1 { background: radial-gradient(640px 420px at 70% 20%, rgba(125, 124, 255, 0.14), transparent 65%); } }
.sc1__inner { position: relative; z-index: 2; text-align: center; max-width: 1000px; padding: clamp(2rem, 5vw, 4rem); background: radial-gradient(58% 58% at 50% 50%, rgba(7, 8, 15, 0.74), transparent 78%); }
.sc1__eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; }
.sc1__swap { position: relative; min-height: 7em; display: grid; place-items: center; }
.sc1__a, .sc1__b { grid-area: 1 / 1; font-size: clamp(2.2rem, 6.5vw, 5rem); font-weight: 800; font-family: var(--font-display); line-height: 1.12; color: var(--text-0); }
.sc1__b { opacity: 0; }
.scrollhint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 0.5rem; color: var(--text-2); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; z-index: 2; }
.scrollhint i { width: 1px; height: 38px; background: linear-gradient(180deg, var(--accent), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- SCENE 2 · pain ---------- */
.sc2__inner { max-width: 880px; width: 100%; }
.sc2__kicker { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--text-0); margin-bottom: clamp(1.6rem, 4vh, 3rem); }
.painlist li {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 2.4rem); line-height: 1.35;
  padding: clamp(0.5rem, 1.6vh, 1rem) 0;
  color: var(--text-2); opacity: 0.28; filter: blur(1px);
  transition: opacity 0.3s ease, color 0.3s ease, filter 0.3s ease;
}
.painlist li.lit { opacity: 1; color: var(--text-0); filter: none; }
.painlist em { font-style: normal; color: var(--accent-violet); }
/* copy-audit 2026-07-03: PAS punch line closing the pain scene */
.sc2__punch { margin-top: clamp(1.3rem, 3.4vh, 2.4rem); font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); color: var(--accent-violet); }
/* copy-audit 2026-07-03: trust line under the audit-form lead (skin-in-the-game) */
.sc7__trust { margin-top: 1rem; font-size: 0.95rem; line-height: 1.5; color: var(--text-2); max-width: 48ch; }

/* ---------- SCENE 3 · flow (horizontal) ---------- */
.sc3 { display: block; padding: 0; }
.sc3__head { position: absolute; top: clamp(4.5rem, 10vh, 7rem); left: 0; right: 0; text-align: center; z-index: 3; padding-inline: 1.2rem; }
.sc3__head h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.sc3__head p { color: var(--text-1); margin-top: 0.6rem; }
.sc3__viewport { width: 100vw; max-width: 100vw; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.sc3__track { display: flex; align-items: center; gap: clamp(3rem, 8vw, 7rem); padding-inline: max(8vw, 3rem); position: relative; width: max-content; }
.sc3__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(125, 124, 255, 0.4) 6%, rgba(125, 124, 255, 0.4) 94%, transparent); }
.orb { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px 6px var(--glow-violet), 0 0 60px 18px rgba(91, 124, 255, 0.35); z-index: 2; }
/* comet trail — streams behind the rightward-travelling orb */
.orb::after { content: ""; position: absolute; right: 50%; top: 50%; width: 190px; height: 7px; transform: translateY(-50%); background: linear-gradient(to left, rgba(255, 255, 255, 0.9), var(--glow-violet) 22%, rgba(91, 124, 255, 0.35) 55%, rgba(91, 124, 255, 0) 100%); border-radius: 7px; filter: blur(2.5px); pointer-events: none; }
.station { position: relative; z-index: 1; flex: 0 0 auto; width: clamp(220px, 24vw, 300px); text-align: center; padding: 1.6rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease; }
.station b { display: block; font-family: var(--font-display); font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.18em; margin-bottom: 0.5rem; }
.station h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.station p { color: var(--text-2); font-size: 0.9rem; }
.station.lit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -24px var(--glow-violet); transform: translateY(-6px); }
.station.lit b { color: var(--accent); }

/* ---------- SCENE 4 · pillars deck ---------- */
.sc4__stage { position: relative; width: min(860px, 100%); height: min(560px, 78vh); }
.panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
  padding: clamp(1.6rem, 4vw, 3rem); border-radius: 22px;
  background: linear-gradient(165deg, #161930, #0e1020);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.panel__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--text-2); opacity: 0.4; position: absolute; top: 1.2rem; right: 1.6rem; }
.panel h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
.panel > p { color: var(--text-1); max-width: 46ch; }
.panel ul { display: grid; gap: 0.45rem; }
.panel ul li { color: var(--text-2); font-size: 0.95rem; padding-left: 1.1rem; position: relative; }
.panel ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.minibars { display: flex; gap: 6px; align-items: flex-end; height: 64px; max-width: 320px; margin-top: 0.6rem; }
.minibars i { flex: 1; height: var(--h); background: rgba(125, 124, 255, 0.5); border-radius: 4px 4px 0 0; }
.minibars i.is-green { background: var(--data-green); }
.fan { position: relative; height: 86px; max-width: 320px; margin-top: 0.6rem; }
.fan i { position: absolute; left: 50%; top: 0; width: 52px; height: 78px; margin-left: -26px; border-radius: 7px; border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgba(91, 124, 255, 0.4), rgba(163, 107, 255, 0.25)); }
.fan i:nth-child(1) { transform: rotate(-12deg) translateX(-30px); }
.fan i:nth-child(3) { transform: rotate(12deg) translateX(30px); }
.feed { display: grid; gap: 6px; max-width: 340px; margin-top: 0.6rem; }
.notif { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 8px; padding: 6px 10px; }
.notif b { display: block; font-size: 0.78rem; color: var(--text-0); }
.notif span { font-size: 0.7rem; color: var(--text-2); }
.notif--green { border-left-color: var(--data-green); }
.statgrid { display: flex; gap: 1.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.statgrid b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--text-0); }
.statgrid span { font-size: 0.8rem; color: var(--text-2); }

/* panel content "comes alive" when the panel reaches the front (.is-active,
   set by cinema.js). Hidden state is gated on BOTH .cinema-on (JS live) and
   no-preference motion → no-JS / reduced-motion keep every visual fully shown. */
@media (prefers-reduced-motion: no-preference) {
  .cinema-on .panel ul li,
  .cinema-on .panel .minibars i,
  .cinema-on .panel .fan i,
  .cinema-on .panel .notif,
  .cinema-on .panel .statgrid div {
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* bullets — fade + rise, staggered */
  .cinema-on .panel ul li { opacity: 0; transform: translateY(10px); }
  .cinema-on .panel.is-active ul li { opacity: 1; transform: none; }
  .cinema-on .panel.is-active ul li:nth-child(2) { transition-delay: 0.09s; }
  .cinema-on .panel.is-active ul li:nth-child(3) { transition-delay: 0.18s; }
  /* minibars — grow up from the baseline, left → right */
  .cinema-on .panel .minibars i { transform: scaleY(0); transform-origin: bottom; }
  .cinema-on .panel.is-active .minibars i { transform: scaleY(1); }
  .cinema-on .panel.is-active .minibars i:nth-child(1) { transition-delay: 0.05s; }
  .cinema-on .panel.is-active .minibars i:nth-child(2) { transition-delay: 0.11s; }
  .cinema-on .panel.is-active .minibars i:nth-child(3) { transition-delay: 0.17s; }
  .cinema-on .panel.is-active .minibars i:nth-child(4) { transition-delay: 0.23s; }
  .cinema-on .panel.is-active .minibars i:nth-child(5) { transition-delay: 0.29s; }
  .cinema-on .panel.is-active .minibars i:nth-child(6) { transition-delay: 0.35s; }
  .cinema-on .panel.is-active .minibars i:nth-child(7) { transition-delay: 0.41s; }
  /* fan — cards "deal out": start stacked + faded + small, then spread to final */
  .cinema-on .panel .fan i { opacity: 0; transform: translateY(12px) scale(0.9); }
  .cinema-on .panel.is-active .fan i:nth-child(1) { opacity: 1; transform: rotate(-12deg) translateX(-30px); transition-delay: 0.05s; }
  .cinema-on .panel.is-active .fan i:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.13s; }
  .cinema-on .panel.is-active .fan i:nth-child(3) { opacity: 1; transform: rotate(12deg) translateX(30px); transition-delay: 0.21s; }
  /* feed — notifications slide in from the left, one after another */
  .cinema-on .panel .notif { opacity: 0; transform: translateX(-18px); }
  .cinema-on .panel.is-active .notif { opacity: 1; transform: none; }
  .cinema-on .panel.is-active .notif:nth-child(1) { transition-delay: 0.04s; }
  .cinema-on .panel.is-active .notif:nth-child(2) { transition-delay: 0.16s; }
  .cinema-on .panel.is-active .notif:nth-child(3) { transition-delay: 0.28s; }
  /* statgrid — stats fade up */
  .cinema-on .panel .statgrid div { opacity: 0; transform: translateY(10px); }
  .cinema-on .panel.is-active .statgrid div { opacity: 1; transform: none; }
  .cinema-on .panel.is-active .statgrid div:nth-child(2) { transition-delay: 0.1s; }
  .cinema-on .panel.is-active .statgrid div:nth-child(3) { transition-delay: 0.2s; }
}

/* ---------- SCENE 5 · manifesto ---------- */
.sc5 { text-align: center; }
.mani { display: grid; gap: 0.1em; font-family: var(--font-display); font-weight: 800; line-height: 1.02; font-size: clamp(2.6rem, 9vw, 7.5rem); }
.mani__a { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.32); }
.mani__sub { margin-top: 2rem; color: var(--text-2); max-width: 52ch; margin-inline: auto; }

/* ---------- SCENE 6 · cases ---------- */
.sc6__inner { width: min(1100px, 100%); }
.sc6__inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.cases { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { padding: 1.7rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease; }
.case:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.case__tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case h3 { font-size: 1.2rem; margin: 0.6rem 0; }
.case p { color: var(--text-2); font-size: 0.94rem; }

/* ---------- SCENE 7 · CTA ---------- */
.sc7 { display: block; padding-top: clamp(5rem, 12vh, 8rem); }
.sc7__inner { width: min(1100px, 100%); margin-inline: auto; display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 980px) { .sc7__inner { grid-template-columns: 1fr 1fr; } }
.sc7__inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.sc7__lead { color: var(--text-2); margin-top: 1rem; max-width: 50ch; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.86rem; color: var(--text-2); margin-bottom: 0.4rem; }
.field input, .field textarea { width: 100%; padding: 0.8rem 1rem; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border); color: var(--text-0); font-family: inherit; font-size: 0.96rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; color: var(--text-2); margin-bottom: 1rem; cursor: pointer; }
.consent input { width: auto; margin-top: 0.2rem; accent-color: var(--accent-violet); }
.consent a { color: var(--text-1); text-decoration: underline; }
.form__note { font-size: 0.8rem; color: var(--text-2); margin-top: 0.8rem; }
.form__err { font-size: 0.85rem; color: #ff8a8a; margin-top: 0.8rem; }
.form__success { display: none; text-align: center; padding: 2rem 1rem; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__success { display: block; }
/* honeypot: kept in the DOM for bots, removed from view and a11y tree for humans */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { width: min(1100px, 100%); margin: clamp(3rem, 8vh, 5rem) auto 0; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.84rem; color: var(--text-2); }
.foot a { text-decoration: underline; }

/* --- cookie consent (ported from v2 §cookie, 2026-09-11; consent.js shows it after ENTER) --- */
.cookie { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 300; width: min(680px, calc(100% - 2rem)); display: none; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; padding: 1rem 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 18px 50px rgba(7, 8, 15, 0.6); }
.cookie.is-shown { display: flex; }
.cookie p { font-size: 0.85rem; color: var(--text-2); flex: 1 1 320px; margin: 0; }
.cookie a { color: var(--text-1); text-decoration: underline; }
.cookie__btn { padding: 0.6rem 1.3rem; border-radius: 999px; background: var(--grad-accent); color: var(--text-0); font-weight: 600; font-size: 0.88rem; border: none; cursor: pointer; font-family: inherit; }
/* Отказ должен быть виден так же ясно, как согласие, иначе это не выбор. */
.cookie__btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-1); }
.cookie__btn--ghost:hover { border-color: var(--accent); color: var(--text-0); }
@media (prefers-reduced-motion: no-preference) { .cookie.is-shown { animation: cookie-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; } }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ph { color: var(--accent-violet); }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(125, 124, 255, 0.65); pointer-events: none; z-index: 9999; opacity: 0; transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease; }
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; border-color: var(--accent-violet); }
.cursor-dot { position: fixed; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 10000; opacity: 0; transition: opacity 0.3s ease; }
.cursor-dot.is-active { opacity: 1; }
@media (max-width: 900px), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
body.has-cursor, body.has-cursor * { cursor: none; }
body.has-cursor input, body.has-cursor textarea { cursor: text; }

/* ---------- mobile adaptation ---------- */
@media (max-width: 899px) {
  .sc3 { padding: clamp(4.5rem, 8vh, 6rem) 0; }
  .sc3__head { position: static; margin-bottom: 1.6rem; text-align: left; padding-inline: 1.2rem; }
  .sc3__viewport { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .sc3__track { padding-inline: 1.2rem; }
  .station { scroll-snap-align: center; width: 78vw; }
  .orb { display: none; }
  .sc4__stage { height: auto; display: grid; gap: 1rem; }
  .panel { position: relative; inset: auto; }
  .scene-counter { display: none; }
}

/* ============================================================
   CONTENT FLOOR — calm conversion sections below the cinematic
   hero (grafted from conversion v2, remapped to signal tokens).
   Sit AFTER .sc6 in the resting-graph zone; each block carries a
   radial scrim so RU text reads over the resting particle field.
   NOTE: floor sections are NOT .sc (auto-height, stacked).
   ============================================================ */
.floor { position: relative; z-index: 2; padding: clamp(4.5rem, 10vh, 8rem) clamp(1.1rem, 4vw, 2.4rem); }
.floor::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(91, 124, 255, 0.05), transparent 60%), rgba(7, 8, 15, 0.9); }
.floor__inner { width: min(1100px, 100%); margin: 0 auto; text-align: center; }
.floor__eyebrow { display: inline-block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-blue); font-weight: 600; }
.floor__title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.12; margin-top: 0.8rem; }
.section--band { background: rgba(255, 255, 255, 0.014); }

/* scroll-reveal (IntersectionObserver in floor.js adds .is-visible) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--wipe { clip-path: inset(0 0 100% 0); transition: opacity 0.7s ease, clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal--wipe.is-visible { clip-path: inset(0 0 -4% 0); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal--wipe { opacity: 1; transform: none; clip-path: none; transition: none; } }

/* tiltable card base (floor.js adds a subtle 3D tilt on pointer:fine) */
.floor .card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color 0.3s ease, box-shadow 0.3s ease; transform-style: preserve-3d; }
.floor .card:hover { border-color: var(--border-strong); box-shadow: 0 26px 64px -30px var(--glow-violet); }
/* on fine pointers JS owns the transform — drop CSS hover-transforms that would fight GSAP */
body.has-cursor .btn--primary { transition: box-shadow 0.25s ease, background 0.25s ease; }
body.has-cursor .btn--primary:hover { transform: none; }
body.has-cursor .case:hover, body.has-cursor .floor .card:hover { transform: none; }

/* ---- block: difference (them-vs-us ledger) ---- */
.floor--difference .ledger{ margin-top:2.8rem; display:grid; grid-template-columns:1fr 1fr; column-gap:clamp(1rem,4vw,3rem); row-gap:0; align-items:stretch; position:relative; }
.floor--difference .ledger::before{ content:""; position:absolute; top:0;bottom:0;left:50%; width:1px; background:linear-gradient(180deg,transparent,var(--border-strong) 12%,var(--border-strong) 88%,transparent); transform:translateX(-50%); }
.floor--difference .ledger__head{ font-family:var(--font-display); font-weight:600; font-size:1.05rem; letter-spacing:-.01em; padding:0 0 1.2rem; margin-bottom:.4rem; border-bottom:1px solid var(--border); }
.floor--difference .ledger__head--them{color:var(--text-2);}
.floor--difference .ledger__head--us{ color:var(--text-0); position:relative; }
.floor--difference .ledger__head--us::after{ content:""; position:absolute; left:0;bottom:-1px; width:46px;height:2px; border-radius:2px; background:var(--grad-accent); }
.floor--difference .ledger__row{ display:contents; }
.floor--difference .ledger__cell{ display:flex; align-items:flex-start; gap:.7rem; padding:1.05rem .2rem; font-size:.97rem; line-height:1.45; border-bottom:1px solid var(--border); text-align:left; }
.floor--difference .ledger__row:last-child .ledger__cell{border-bottom:0;}
.floor--difference .ledger__cell--them{ color:var(--text-2); }
.floor--difference .ledger__cell--us{ color:var(--text-0); }
.floor--difference .ledger__mark{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:1.45rem;height:1.45rem; margin-top:.05rem; border-radius:50%; font-size:.8rem; font-weight:700; line-height:1; }
.floor--difference .ledger__mark--them{ color:var(--text-2); border:1px solid var(--border-strong); background:transparent; }
.floor--difference .ledger__mark--us{ color:var(--text-0); background:var(--grad-accent); box-shadow:0 0 18px -4px var(--glow-violet); }
@media (max-width:720px){
  .floor--difference .ledger{ grid-template-columns:1fr; row-gap:.4rem; }
  .floor--difference .ledger::before{display:none;}
  .floor--difference .ledger__head{ padding-top:1.4rem; margin-bottom:0; }
  .floor--difference .ledger__head--them{order:1;}
  .floor--difference .ledger__head--us{order:2;}
  .floor--difference .ledger__row{display:block;}
  .floor--difference .ledger__cell{ padding:.85rem .2rem; }
  .floor--difference .ledger__cell--them{ order:1; opacity:.72; }
  .floor--difference .ledger__cell--us{ order:2; border-bottom:1px solid var(--border-strong); }
}

/* ---- block: process (5 steps + guarantees) ---- */
.floor--process .proc-steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:2.4rem 1.4rem; margin-top:3.6rem; text-align:left; }
.floor--process .proc-step{ position:relative; padding:.6rem .9rem .6rem 1.2rem; border-left:2px solid rgba(125,124,255,.45); overflow:visible; }
.floor--process .proc-step__n{ position:absolute; right:.3rem; top:-1.7rem; line-height:1; pointer-events:none; font-family:var(--font-display); font-size:clamp(2.8rem,4.6vw,4rem); font-weight:800; color:transparent; -webkit-text-stroke:1px var(--text-2); opacity:.22; }
.floor--process .proc-step__title{ font-family:var(--font-display); font-size:1.02rem; font-weight:600; color:var(--text-0); margin:0 0 .4rem; }
.floor--process .proc-step__desc{ font-size:.86rem; line-height:1.5; color:var(--text-2); margin:0; }
.floor--process .proc-trust{ margin-top:3.2rem; display:flex; flex-wrap:wrap; align-items:center; gap:1rem 2rem; padding:1.4rem 1.7rem; border:1px solid var(--border); border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0)),var(--surface); text-align:left; }
.floor--process .proc-trust__head{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-weight:600; font-size:1rem; color:var(--text-0); white-space:nowrap; }
.floor--process .proc-trust__head svg{ color:var(--accent-violet); flex:none; }
.floor--process .proc-trust__list{ display:flex; flex-wrap:wrap; gap:.6rem 1.8rem; list-style:none; margin:0; padding:0; }
.floor--process .proc-trust__list li{ display:flex; align-items:center; gap:.5rem; font-size:.92rem; color:var(--text-1); }
.floor--process .proc-trust__list li::before{ content:""; width:14px; height:14px; flex:none; background:linear-gradient(135deg,var(--accent-blue),var(--accent-violet)); -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>") center/contain no-repeat; mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>") center/contain no-repeat; }
@media (max-width:880px){ .floor--process .proc-steps{ grid-template-columns:repeat(2,1fr); gap:2.6rem 1.4rem; } }
@media (max-width:520px){ .floor--process .proc-steps{ grid-template-columns:1fr; } .floor--process .proc-trust{ flex-direction:column; align-items:flex-start; gap:1rem; } }

/* ---- block: industries (typographic scan-list) ---- */
.floor--industries .ind__lead{max-width:60ch;margin:1.1rem auto 0;color:var(--text-1);font-size:1.02rem;line-height:1.6;text-align:center}
.floor--industries .ind__list{list-style:none;margin:3rem 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 3.4rem;text-align:left}
@media (max-width:760px){.floor--industries .ind__list{grid-template-columns:1fr;gap:0}}
.floor--industries .ind__row{display:flex;align-items:center;gap:1.1rem;padding:1.05rem .25rem;border-bottom:1px solid var(--border);position:relative;transition:border-color .25s ease}
.floor--industries .ind__row::before{content:"";position:absolute;left:-.25rem;bottom:-1px;height:1px;width:0;background:var(--grad-accent);transition:width .35s cubic-bezier(.22,1,.36,1)}
.floor--industries .ind__row:hover::before{width:calc(100% + .5rem)}
.floor--industries .ind__row:hover{border-color:transparent}
.floor--industries .ind__num{flex:0 0 auto;font-family:var(--font-display);font-size:.74rem;letter-spacing:.04em;color:var(--text-2);font-variant-numeric:tabular-nums;width:1.7rem;transition:color .25s ease}
.floor--industries .ind__row:hover .ind__num{color:var(--accent-violet)}
.floor--industries .ind__body{display:flex;flex-direction:column;gap:.16rem;min-width:0}
.floor--industries .ind__body b{font-weight:600;color:var(--text-0);font-size:1.04rem;line-height:1.25}
.floor--industries .ind__body span{color:var(--text-2);font-size:.86rem;line-height:1.45}
.floor--industries .ind__row--key .ind__body b::after{content:"●";color:var(--accent);font-size:.5em;margin-left:.55rem;vertical-align:middle}
.floor--industries .ind__arrow{margin-left:auto;flex:0 0 auto;color:var(--text-2);font-size:1.05rem;transition:color .25s ease,transform .25s ease}
.floor--industries .ind__row:hover .ind__arrow{color:var(--accent);transform:translateX(5px)}
@media (prefers-reduced-motion:reduce){.floor--industries .ind__row::before,.floor--industries .ind__arrow{transition:none}}

/* ---- block: platforms (chips marquee) ---- */
.floor--platforms .chips{ margin-top:2.4rem; display:flex; flex-wrap:wrap; justify-content:center; gap:.7rem; }
.floor--platforms .chip{ flex:0 0 auto; padding:.6rem 1.05rem; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.02); color:var(--text-1); font-family:var(--font-body); font-size:.92rem; font-weight:500; white-space:nowrap; transition:border-color .25s ease,color .25s ease,background .25s ease,box-shadow .25s ease; }
.floor--platforms .chip:hover{ border-color:var(--border-strong); color:var(--text-0); background:linear-gradient(135deg,rgba(91,124,255,.10),rgba(163,107,255,.10)); box-shadow:0 12px 34px -20px var(--glow-violet); }
.floor--platforms .chips.is-marquee{ flex-wrap:nowrap; justify-content:flex-start; overflow:hidden; gap:0; width:100%; -webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.floor--platforms .chips.is-marquee .chips__track{ display:flex; flex-wrap:nowrap; width:max-content; gap:.7rem; padding-right:.7rem; animation:platformsMarquee 50s linear infinite; will-change:transform; }
.floor--platforms .chips.is-marquee:hover .chips__track{ animation-play-state:paused; }
@keyframes platformsMarquee{ to{ transform:translateX(-50%); } }
.floor--platforms .chips:not(.is-marquee) .chips__track{ display:contents; }
@media (prefers-reduced-motion:reduce){
  .floor--platforms .chips.is-marquee{ flex-wrap:wrap; justify-content:center; overflow:visible; gap:.7rem; -webkit-mask:none; mask:none; }
  .floor--platforms .chips.is-marquee .chips__track{ flex-wrap:wrap; justify-content:center; width:auto; padding-right:0; animation:none; transform:none; }
}

/* ---- block: pricing (plans «от») ---- */
.floor--pricing .plan__lead{ max-width:60ch;margin:1rem auto 0; font-family:var(--font-body);font-size:clamp(.98rem,1.4vw,1.12rem); line-height:1.6;color:var(--text-1);text-align:center; }
.floor--pricing .plan__grid{ display:grid;grid-template-columns:repeat(3,1fr); gap:1.25rem;margin-top:3rem;align-items:stretch; }
.floor--pricing .plan{ display:flex;flex-direction:column; padding:2rem 1.75rem;text-align:left; background:var(--surface); border:1px solid var(--border);border-radius:18px; }
.floor--pricing .plan--featured{ border-color:var(--accent-violet); box-shadow:0 0 0 1px rgba(163,107,255,.4),0 24px 60px -28px var(--glow-violet); }
.floor--pricing .plan__flag{ display:inline-block;align-self:flex-start; margin-bottom:1rem;padding:.34rem .8rem; font-family:var(--font-body);font-size:.7rem;font-weight:600; letter-spacing:.08em;text-transform:uppercase; color:var(--text-0);background:var(--grad-accent); border-radius:999px; }
.floor--pricing .plan__name{ font-family:var(--font-display);font-size:1.32rem;font-weight:600; line-height:1.15;margin:0;color:var(--text-0); }
.floor--pricing .plan__sub{ margin:.6rem 0 0;font-family:var(--font-body);font-size:.92rem; line-height:1.5;color:var(--text-2); }
.floor--pricing .plan__price{ margin:1.4rem 0 .25rem; font-family:var(--font-display);font-size:1.85rem;font-weight:600; color:var(--text-0);letter-spacing:-.01em; }
.floor--pricing .plan__price small{ font-family:var(--font-body);font-size:.92rem;font-weight:400; color:var(--text-2);letter-spacing:0; }
.floor--pricing .plan__list{ list-style:none;margin:1.4rem 0 0;padding:1.4rem 0 0; border-top:1px solid var(--border); display:flex;flex-direction:column;gap:.7rem;flex:1; }
.floor--pricing .plan__list li{ position:relative;padding-left:1.55rem; font-family:var(--font-body);font-size:.95rem;line-height:1.45; color:var(--text-1); }
.floor--pricing .plan__list li::before{ content:"";position:absolute;left:0;top:.42em; width:9px;height:9px;border-radius:50%; background:var(--grad-accent); box-shadow:0 0 10px -1px var(--glow-violet); }
.floor--pricing .plan__cta{margin-top:1.75rem;width:100%;}
.floor--pricing .plan__note{ margin:2.25rem auto 0;max-width:54ch;text-align:center; font-family:var(--font-body);font-size:.9rem;line-height:1.55; color:var(--text-2); }
@media(max-width:880px){ .floor--pricing .plan__grid{grid-template-columns:1fr;max-width:460px;margin-inline:auto;} .floor--pricing .plan--featured{order:-1;} }

/* ---- block: faq (native details accordion) ---- */
.floor--faq .faq__list{ max-width:760px; margin:48px auto 0; display:flex; flex-direction:column; gap:12px; text-align:left; }
.floor--faq .faq__item{ position:relative; background:var(--surface); border:1px solid var(--border); border-left:2px solid transparent; border-radius:14px; overflow:hidden; transition:border-color .35s ease, background .35s ease; }
.floor--faq .faq__item:hover{ border-color:var(--border-strong); }
.floor--faq .faq__item[open]{ border-left-color:var(--accent-violet); background:linear-gradient(180deg, rgba(163,107,255,.06), var(--surface) 40%); }
.floor--faq .faq__q{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; cursor:pointer; list-style:none; font-family:var(--font-display); font-size:1.02rem; font-weight:500; line-height:1.35; color:var(--text-0); user-select:none; transition:color .25s ease; }
.floor--faq .faq__q::-webkit-details-marker{display:none;}
.floor--faq .faq__item:hover .faq__q{color:#fff;}
.floor--faq .faq__caret{ position:relative; flex:0 0 auto; width:20px; height:20px; border-radius:50%; border:1px solid var(--border-strong); transition:transform .35s cubic-bezier(.22,1,.36,1), border-color .25s ease; }
.floor--faq .faq__caret::before, .floor--faq .faq__caret::after{ content:""; position:absolute; top:50%; left:50%; background:var(--text-1); transform:translate(-50%,-50%); transition:background .25s ease, opacity .3s ease; }
.floor--faq .faq__caret::before{width:9px;height:1.5px;}
.floor--faq .faq__caret::after{width:1.5px;height:9px;}
.floor--faq .faq__item[open] .faq__caret{ transform:rotate(135deg); border-color:var(--accent-violet); }
.floor--faq .faq__item[open] .faq__caret::before, .floor--faq .faq__item[open] .faq__caret::after{ background:var(--accent-violet); }
.floor--faq .faq__a{ padding:0 24px 22px; }
.floor--faq .faq__a p{ margin:0; max-width:62ch; font-family:var(--font-body); font-size:.97rem; line-height:1.62; color:var(--text-1); }
@media (max-width:560px){ .floor--faq .faq__list{margin-top:34px;} .floor--faq .faq__q{padding:17px 18px;font-size:.96rem;gap:14px;} .floor--faq .faq__a{padding:0 18px 18px;} .floor--faq .faq__a p{font-size:.93rem;} }

/* ---- block: works gallery (scaffold — empty media slots, fill with real <img>/<video>) ---- */
.floor--gallery .gallery__lead{ max-width:60ch; margin:1rem auto 0; color:var(--text-1); font-size:1.02rem; line-height:1.6; text-align:center; }
.floor--gallery .gallery{ margin-top:3rem; display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.floor--gallery .gallery__slot{ position:relative; margin:0; aspect-ratio:4/3; border-radius:18px; overflow:hidden; display:flex; align-items:flex-end; padding:1rem; background:linear-gradient(135deg,rgba(91,124,255,.06),rgba(163,107,255,.05)),var(--surface); border:1px solid var(--border); }
.floor--gallery .gallery__slot--wide{ grid-column:span 2; aspect-ratio:16/9; }
.floor--gallery .gallery__ph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:.45; }
.floor--gallery .gallery__ph::before{ content:""; width:48px; height:38px; border:2px solid var(--text-2); border-radius:8px; box-shadow:inset 0 -12px 0 -7px var(--text-2); }
.floor--gallery .gallery__ph::after{ content:""; position:absolute; top:13px; left:calc(50% - 13px); width:8px; height:8px; border-radius:50%; background:var(--text-2); }
.floor--gallery .gallery__tag{ position:relative; z-index:1; font-family:var(--font-body); font-size:.78rem; letter-spacing:.03em; color:var(--text-1); background:rgba(7,8,15,.55); border:1px solid var(--border); border-radius:999px; padding:.32rem .8rem; }
.floor--gallery .gallery__slot > img, .floor--gallery .gallery__slot > video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@media (max-width:760px){ .floor--gallery .gallery{ grid-template-columns:1fr 1fr; } .floor--gallery .gallery__slot--wide{ grid-column:span 2; aspect-ratio:16/9; } }
@media (max-width:480px){ .floor--gallery .gallery{ grid-template-columns:1fr; } .floor--gallery .gallery__slot, .floor--gallery .gallery__slot--wide{ grid-column:auto; aspect-ratio:4/3; } }

/* ============================================================
   MOBILE LITE HERO — particles are off <900px, so a CSS-only
   drifting brand aurora gives the hero (and page) ambient life.
   GPU-cheap: animates transform/opacity on one fixed layer.
   ============================================================ */
@media (max-width: 899px) {
  body::after {
    content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
    background:
      radial-gradient(52% 38% at 22% 16%, rgba(91, 124, 255, 0.20), transparent 60%),
      radial-gradient(50% 36% at 84% 26%, rgba(163, 107, 255, 0.18), transparent 62%),
      radial-gradient(68% 48% at 50% 88%, rgba(125, 124, 255, 0.11), transparent 66%);
    animation: mobileAura 20s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }
  @keyframes mobileAura {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate3d(0, -2.5%, 0) scale(1.07); opacity: 1; }
    100% { transform: translate3d(0, 1.5%, 0) scale(1.03); opacity: 0.8; }
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ============================================================
   SIGNAL · Phase B/C/D — cinematic typography, scenography, glue
   ============================================================ */

/* --- intro loader --- */
#loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg-0); clip-path: inset(0 0 0 0); transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1); }
#loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__wm { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--text-0); letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(7, 8, 15, 0.95), 0 0 14px rgba(7, 8, 15, 0.9), 0 1px 3px rgba(7, 8, 15, 0.85); }
.loader__bar { width: min(280px, 60vw); height: 2px; margin-top: 1.4rem; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--grad-accent); }
.loader__pct { margin-top: 0.7rem; font-family: var(--font-display); font-size: 0.74rem; color: var(--text-2); letter-spacing: 0.22em; }
#loader-galaxy { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#loader .loader__panel { position: relative; z-index: 1; }
/* readability: a WIDE, very soft pool strictly in the bg color rgba(7,8,15) — deliberately weak
   at the centre (max 0.32) so the additive galactic core glows THROUGH instead of turning into a
   gray smudge; legibility is carried by the text-shadows on the wordmark/tag, not by this disk. */
#loader .loader__panel::before { content: ""; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  width: min(1300px, 140vw); height: min(820px, 110vh);
  background: radial-gradient(ellipse at center, rgba(7, 8, 15, 0.32) 0%, rgba(7, 8, 15, 0.14) 40%, rgba(7, 8, 15, 0) 76%); }
/* operator asset override (GALAXY_MEDIA in signalfx.js): fullscreen image/video behind the wordmark */
.loader__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.loader__media-shade { position: absolute; inset: 0; z-index: 0; background: rgba(7, 8, 15, 0.25); pointer-events: none; }

/* --- vignette (cinematic framing) --- */
.vignette { position: fixed; inset: 0; z-index: 60; pointer-events: none; box-shadow: inset 0 0 240px 50px rgba(0, 0, 0, 0.72); }

/* --- per-scene ghost watermark (depth layer) --- */
.sc2, .sc3, .sc6, .sc7 { overflow: hidden; }
.wm { position: absolute; z-index: 0; pointer-events: none; user-select: none; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800; line-height: 0.82; white-space: nowrap; letter-spacing: -0.03em;
  font-size: clamp(3rem, 13vw, 12rem); max-width: 94vw; overflow: hidden; text-overflow: clip; color: transparent; -webkit-text-stroke: 1px rgba(167, 156, 255, 0.11); }
.sc2__inner, .sc6__inner, .sc7__inner { position: relative; z-index: 2; }
.sc3__viewport, .sc3__head { position: relative; z-index: 2; }
/* nudge «ПОТОК»/«КЕЙСЫ» up so they peek past the content + a touch more visible (БОЛЬ kept as-is) */
.sc3 .wm { top: 30%; -webkit-text-stroke-color: rgba(167, 156, 255, 0.2); }
/* «ПРОЕКТЫ» is longer than «КЕЙСЫ» — shrink so the whole word fits (no left clip) */
.sc6 .wm { top: 28%; font-size: clamp(2.3rem, 7.5vw, 7rem); -webkit-text-stroke-color: rgba(167, 156, 255, 0.2); }
/* «АУДИТ» (sc7): signalfx parallax keeps xPercent:-50, so position the CENTRE in the left half
   (left:30%) to clear the form on the right; smaller font so it never clips. Hidden where the form stacks. */
.sc7 .wm { left: 30%; top: 30%; max-width: 52vw; font-size: clamp(2.2rem, 6.5vw, 6rem); -webkit-text-stroke-color: rgba(167, 156, 255, 0.2); }
@media (max-width: 979px) { .sc7 .wm { display: none; } }

/* --- tech readout (persistent bottom-left) --- */
.readout { position: fixed; left: clamp(0.9rem, 2.5vw, 2rem); bottom: 1.45rem; z-index: 80; display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--text-2); text-transform: uppercase; }
.readout i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 899px) { .readout { display: none; } }

/* --- scene counter + chapter name --- */
.scene-counter { display: flex; align-items: baseline; gap: 0.5rem; }
.scene-counter [data-chapter] { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-2); }

/* --- glyph-split reveal --- */
.gl-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.gl { display: inline-block; transform: translateY(115%); }
.gl-rdy .gl { transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--g, 0) * 26ms); }
.gl-in .gl { transform: translateY(0); }

/* --- blur-roll counter (JS sets filter inline) --- */
.statgrid b { will-change: filter; }

/* --- legibility scrim for small text sitting over the particle field --- */
.sc1__eyebrow, .sc2__kicker { text-shadow: 0 2px 22px rgba(7, 8, 15, 0.92), 0 0 6px rgba(7, 8, 15, 0.7); }

/* ---------- reduced motion: everything static & visible ---------- */
/* ---------- HERO REBUILD (2026-07-02): enter gate + sound toggle + GL headline ---------- */
/* gate: the loader resolves into a full-screen entry choice */
#loader.gate .loader__bar, #loader.gate .loader__pct { opacity: 0; transition: opacity 0.35s ease; }
.loader__gate { margin-top: 2rem; display: grid; gap: 1.1rem; justify-items: center; opacity: 0; transform: translateY(10px); animation: gatein 0.7s ease 0.1s forwards; }
@keyframes gatein { to { opacity: 1; transform: none; } }
/* operator 2026-07-13: bright text — grey text-2 drowned in the galaxy stars */
.loader__tag { color: var(--text-0); font-size: 0.98rem; font-weight: 500; max-width: 460px; text-align: center; line-height: 1.5; text-shadow: 0 2px 22px rgba(7, 8, 15, 1), 0 1px 6px rgba(7, 8, 15, 0.95), 0 0 2px rgba(7, 8, 15, 0.9); }
.loader__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
/* the ghost button sits over live galaxy arms — give it a bg-colored fill so «Тихо» stays readable */
.loader__gate .btn--ghost { background: rgba(7, 8, 15, 0.55); }
.btn--ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-1); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text-0); }
/* topbar sound toggle */
.topbar__right { display: flex; align-items: center; gap: 0.7rem; }
.sndbtn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--text-2); font: inherit; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: border-color 0.25s ease, color 0.25s ease; }
.sndbtn:hover { border-color: var(--accent); color: var(--text-0); }
.sndbtn i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow-violet); animation: sndpulse 2.2s ease-in-out infinite; }
.sndbtn.is-off i { background: var(--text-2); box-shadow: none; animation: none; opacity: 0.5; }
.sndbtn.is-off span { text-decoration: line-through; opacity: 0.6; }
@keyframes sndpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* Шапка на телефоне. Замер 2026-09-18 при 375px: логотип 165 + звук 79 + призыв 135
   + отступы и зазор = 425px, и правый край призыва уходил за экран. Медиазапроса
   для .topbar не существовало вовсе. Уменьшаем логотип и уплотняем обе кнопки —
   ничего не скрываем, призыв остаётся кликабельным. */
@media (max-width: 480px) {
  .topbar { padding-inline: 0.9rem; }
  .wordmark { font-size: 0.95rem; }
  .topbar__right { gap: 0.45rem; }
  .topbar__right .btn { padding: 0.62rem 0.95rem; font-size: 0.84rem; }
  .sndbtn { padding: 0.4rem 0.7rem; font-size: 0.72rem; letter-spacing: 0.06em; }
}

/* Очень узкие экраны (320-380px, старые iPhone SE и бюджетные Android): даже после
   уплотнения призыв не помещался — замер показал вылет 32px при 320px. У кнопки звука
   остаётся только индикатор: подпись скрыта, но доступное имя даёт aria-label="Звук"
   на самой кнопке, поэтому для скринридера она не безымянная. Ничего не выключается. */
@media (max-width: 380px) {
  .sndbtn span { display: none; }
  .sndbtn { gap: 0; padding: 0.4rem 0.55rem; }
  .wordmark { font-size: 0.88rem; }
}
/* GL headline owns the hero: hide the DOM h1 visually (kept in DOM for SEO/fallback);
   only set once the FIRST GL frame actually rendered (signal.js adds .gl-hero) */
.gl-hero .sc1__a { visibility: hidden; }
/* the GL orb-comet in the tube replaces the flat DOM orb (same story beat) */
.gl-hero .orb { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .sc1__b { opacity: 1; position: static; }
  .sc1__a { display: none; }
  .painlist li { opacity: 1; color: var(--text-0); filter: none; }
  .station { border-color: var(--border-strong); }
  .orb, .scrollhint { display: none; }
  .sc4__stage { height: auto; display: grid; gap: 1rem; }
  .panel { position: relative; inset: auto; }
  #loader { display: none; }
  .gl { transform: none; }
  .sndbtn { display: none; }
}

/* --- legal pages (privacy.html): nav / article / footer — tokens only (2026-09-17). The page loads
   cinema.css without the scene JS, so nothing here may depend on #signal, Lenis or the loader. --- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg-0); border-bottom: 1px solid var(--border); }
.nav__inner { width: min(1100px, 100% - 2.4rem); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.legal-back { font-size: 0.9rem; color: var(--text-1); text-decoration: underline; }
.legal-doc { width: min(820px, 100% - 2.4rem); margin: 0 auto; padding-block: clamp(2.5rem, 6vw, 5rem); position: relative; z-index: 2; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.legal-doc h2 { font-size: 1.18rem; margin: 2rem 0 0.7rem; color: var(--text-0); }
.legal-doc p, .legal-doc li { color: var(--text-1); font-size: 0.98rem; line-height: 1.7; }
.legal-doc ul { list-style: disc; padding-left: 1.4rem; margin: 0.5rem 0; }
.legal-doc .ph { font-weight: 600; }
.footer__bottom { width: min(1100px, 100% - 2.4rem); margin: 0 auto; padding: 1.4rem 0 2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.84rem; color: var(--text-2); }
.footer__bottom a { text-decoration: underline; }
