/* Vibemoor — сайт-визитка.
   Концепция: ночная пустошь (moor) на закате. Тёмная «чернильная» основа, один градиент сумерек
   (сирень → тлеющий коралл), контурные линии холмов и знак «V с солнцем в долине».
   Тема одна, тёмная, — осознанно.
   Движение: только transform / opacity (и перелив фона в слове «moor»), бесконечные анимации
   ставятся на паузу вне экрана (класс .is-off), при prefers-reduced-motion: reduce всё стоит. */
:root {
  --ink: #0B0A12;          /* фон */
  --ink-2: #12101B;        /* поверхности */
  --ink-3: #1A1726;        /* приподнятые поверхности */
  --line: rgba(232, 226, 255, 0.09);
  --line-strong: rgba(232, 226, 255, 0.18);
  --text: #EEEBF7;
  --muted: #A7A2BA;        /* контраст на --ink ≈ 7.9:1 */
  --lilac: #C9B6FF;        /* акцент */
  --ember: #FF9B78;        /* вторая точка градиента */
  --dusk: linear-gradient(100deg, var(--lilac) 0%, #E7A9D6 48%, var(--ember) 100%);
  --live: #7BE0A5;

  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.9vw, 2.9rem);
  --step-hero: clamp(3.1rem, 0.9rem + 10.4vw, 10.5rem);

  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body::before { /* полоса под вырезом экрана телефона */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--ink); z-index: 30;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
main, .foot { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Фонарик за курсором (только мышь; включает скрипт) */
.torch {
  position: fixed; left: 0; top: 0; z-index: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(201, 182, 255, 0.075), rgba(201, 182, 255, 0.025) 55%, transparent);
  transition: opacity .6s;
}
.torch.is-on { opacity: 1; }

/* ── Шапка ─────────────────────────────────────────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11, 10, 18, 0.94);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .top { background: rgba(11, 10, 18, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.top__row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.top__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--dusk); transform-origin: 0 50%; transform: scaleX(0);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
}
.brand__logo { display: block; height: 28px; width: auto; flex: none; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
@media (min-width: 760px) { .nav { display: flex; } }

.lang {
  margin-left: auto; display: inline-flex; flex: none; padding: 3px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,0.03);
}
@media (min-width: 760px) { .nav + .lang { margin-left: 8px; } }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 0.76rem/1 var(--font-body); letter-spacing: 0.06em;
  padding: 8px 9px; min-width: 38px; min-height: 34px; border-radius: 999px; transition: color .2s, background-color .25s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

/* ── Герой ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { /* сумеречное свечение неба */
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto auto;
  width: min(900px, 120vw); aspect-ratio: 1; max-width: none;
  background: radial-gradient(closest-side, rgba(201, 182, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero__inner { padding-block: clamp(56px, 9vw, 120px) clamp(150px, 20vw, 250px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--dusk); }
.wordmark {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-hero); line-height: 0.92; letter-spacing: -0.045em;
  display: flex; align-items: center; gap: 0.2em; /* охранное поле знака — 1/4 его высоты */
}
.wordmark__mark { display: block; width: 0.78em; height: 0.78em; flex: none; }
@media (max-width: 559.98px) { /* на телефоне кот над словом */
  .wordmark { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wordmark__mark { width: 72px; height: 72px; }
}
/* Кот «Мур»: глаза из mark-animated.svg (моргает раз в цикл, иногда щурится) */
.cat-eye, .cat-wink { transform-box: fill-box; transform-origin: 50% 50%; }
.cat { -webkit-tap-highlight-color: transparent; }
.wordmark__moor {
  background: linear-gradient(100deg, var(--lilac) 0%, #E7A9D6 25%, var(--ember) 50%, #E7A9D6 75%, var(--lilac) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em;
}
.slogan {
  margin: clamp(18px, 2.4vw, 28px) 0 0; font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.lede { margin: 18px 0 0; max-width: 34ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.say { margin: 14px 0 0; color: var(--muted); font-size: var(--step--1); }
.say b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Кнопки: пружинящий отклик и рябь (скрипт) */
.btn, .store, .site {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.03);
  transition: transform .5s var(--spring), background-color .25s, border-color .25s, box-shadow .3s;
  cursor: pointer; font-family: var(--font-body); -webkit-tap-highlight-color: transparent;
}
.btn:hover, .site:hover { border-color: rgba(232, 226, 255, 0.35); background: rgba(255,255,255,0.07); }
.btn--primary, .store { background: var(--text); color: var(--ink); border-color: transparent; }
.btn--primary:hover, .store:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(201, 182, 255, 0.6); }
.btn:active, .store:active, .site:active { transform: scale(.96); transition-duration: .12s; }
.btn svg, .store svg, .site svg { width: 16px; height: 16px; flex: none; }
.store--chat svg, .site svg:first-child:not(:last-child) { width: 18px; height: 18px; margin-inline: 1px; }
.store--chat { background: var(--dusk); color: var(--ink); }
.store--chat:hover { background: var(--dusk); box-shadow: 0 10px 40px -8px rgba(255, 155, 120, 0.65); }
.store, .site { min-height: 44px; padding: 10px 18px; font-size: 0.94rem; }
.ripple {
  position: absolute; z-index: -1; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: currentColor; opacity: .22; pointer-events: none; transform: scale(0);
  animation: ripple .65s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(var(--r, 30)); opacity: 0; } }

/* Горизонт: три слоя волн и солнце. Волны — SVG шириной 200 %, едут на -50 % по кругу. */
.horizon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(170px, 24vw, 320px); pointer-events: none; }
.layer { position: absolute; inset: 0; }
.wave { position: absolute; left: 0; top: 0; width: 200%; height: 100%; display: block; }
.wave .c { fill: none; stroke: url(#wave-g); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wave .c1 { stroke-opacity: .16; }
.wave .c2 { stroke-opacity: .24; }
.wave .c3 { stroke-opacity: .34; }
.wave .c4 { stroke-opacity: .5; }
.wave .c5 { stroke-opacity: .78; }
.wave .front { fill: var(--ink); }
.sun { /* солнце над пустошью, как в знаке */
  position: absolute; right: 17%; bottom: 3%;
  width: clamp(84px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #FFD2BE 0%, #FF9B78 46%, #F07F86 100%);
  box-shadow: 0 0 60px 4px rgba(255, 155, 120, 0.26);
  opacity: .9;
}
.sun::after { /* дыхание ореола */
  content: ""; position: absolute; inset: -45%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 155, 120, 0.22), transparent 70%);
}

/* Бегущая строка */
.ticker {
  position: relative; overflow: hidden; padding-block: clamp(18px, 3vw, 30px);
  border-block: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; align-items: center; width: max-content; gap: clamp(22px, 3vw, 44px); padding-left: clamp(22px, 3vw, 44px); }
.ticker__item {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 0.9rem + 3vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; color: var(--text);
}
.ticker__item--line { color: transparent; -webkit-text-stroke: 1px rgba(232, 226, 255, 0.5); }
.ticker__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px rgba(255, 155, 120, .6); }

/* ── Секции ────────────────────────────────────────── */
section { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--line); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.head__note { margin: 0; color: var(--muted); font-size: var(--step--1); letter-spacing: 0.04em; }
.num { font-variant-numeric: tabular-nums; }
.head__note .num { color: var(--text); font-weight: 600; }
.plain { color: var(--muted); padding-left: 1.2em; }

/* ── Проекты ───────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.cell { min-width: 0; display: flex; }
@media (min-width: 680px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .cell--feature { grid-column: 1 / -1; }
}

.card {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius); isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--ink-2);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .5s;
  transform-style: flat;
}
.card.is-tilting { transition: transform .12s linear, border-color .4s, box-shadow .5s; }
/* рамка-градиент и пробегающий по ней блик */
.card__rim {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card__rim::before { content: ""; position: absolute; inset: 0; background: var(--dusk); opacity: 0; transition: opacity .45s; }
.card__rim::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  transform: translateX(-120%) skewX(-20deg); opacity: 0;
}
/* мягкий блик на поверхности: на компьютере идёт за курсором */
.card__glare {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1;
}
.card__glare::before {
  content: ""; position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 182, 255, 0.13), transparent 70%);
  transform: translate(var(--gx, 30%), var(--gy, 0px)); opacity: 0; transition: opacity .45s;
}
.card:hover, .card.is-active { border-color: transparent; box-shadow: 0 24px 60px -32px rgba(201, 182, 255, 0.5); }
.card:hover .card__rim::before, .card.is-active .card__rim::before, .card:focus-within .card__rim::before { opacity: .75; }
.card:hover .card__glare::before, .card.is-active .card__glare::before { opacity: 1; }
.card.is-pressed { transform: scale(.985); }

.card__body { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(20px, 2.4vw, 28px); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.icon {
  width: 72px; height: 72px; flex: none; border-radius: 22.5%; overflow: hidden;
  background: var(--ink-3); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -12px rgba(0,0,0,0.8);
}
.card--live .icon { width: 88px; height: 88px; }
.icon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .6s var(--spring); }
.card:hover .icon img, .card.is-active .icon img { transform: scale(1.1) rotate(-2deg); }
.icon--mono { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); background: var(--dusk); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(11, 10, 18, 0.5);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { color: #CFF5DD; border-color: rgba(120, 220, 160, 0.35); }
.pill--live::before { background: var(--live); box-shadow: 0 0 10px var(--live); }
.pill--beta { color: #FFD9C9; border-color: rgba(255, 155, 120, 0.4); }
.pill--beta::before { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.pill--soon::before { background: var(--lilac); }

.card__name { margin: 20px 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.card--live .card__name { font-size: var(--step-2); }
.card__genre { margin: 6px 0 0; color: var(--lilac); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; }
.card__desc { margin: 12px 0 0; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 22px; }
.card__actions:empty { display: none; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.94rem;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s;
}
.textlink:hover { color: var(--text); text-decoration-color: var(--lilac); }

/* Широкая карточка-анонс (VIBE Battle) */
.card--feature {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 155, 120, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--ink-2);
  overflow: hidden;
}
.card--feature .icon { width: 96px; height: 96px; }
.card--feature .card__name { font-size: var(--step-3); margin-top: 18px; }
.card__deco {
  position: absolute; z-index: -1; right: -0.04em; bottom: -0.16em; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 3rem + 14vw, 15rem); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 155, 120, 0.22);
}
@media (max-width: 679.98px) { .card__deco { display: none; } }
@media (min-width: 880px) {
  .card--feature .card__body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 36px; padding: 40px; }
  .card--feature .card__top { grid-row: span 5; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; }
  .card--feature .card__top ~ * { grid-column: 2; }
  .card--feature .card__name { margin-top: 0; }
  .card--feature .card__desc { max-width: 46ch; }
}

/* ── О Vibemoor ────────────────────────────────────── */
.about { display: grid; gap: 28px; }
@media (min-width: 880px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.about__text { margin: 0; font-size: var(--step-1); line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.about__text + .about__text { margin-top: 16px; color: var(--muted); font-size: var(--step-0); }
.about__author { margin: 16px 0 0; color: var(--muted); text-wrap: pretty; }
.about__author a { color: var(--text); text-decoration-color: var(--lilac); text-underline-offset: 4px; }
.about__author a:hover { color: var(--lilac); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 32px 0 0; padding: 0; }
.facts div { display: flex; align-items: baseline; gap: 10px; }
.facts dt { order: 2; color: var(--muted); font-size: var(--step--1); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }

/* ── Контакты ──────────────────────────────────────── */
.contact {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line); padding: clamp(22px, 5vw, 64px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 155, 120, 0.12), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(201, 182, 255, 0.12), transparent 55%),
    var(--ink-2);
}
.contact__lead { margin: 14px 0 0; color: var(--muted); max-width: 46ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.mail__addr {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 0.3rem + 3.3vw, 2.4rem);
  letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; min-width: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 4px;
}
.mail__addr:hover { background-size: 100% 1px; }
.toast { color: #CFF5DD; font-size: var(--step--1); min-height: 1.4em; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn--social svg { width: 20px; height: 20px; }
.social__handle { color: var(--muted); font-weight: 500; }

/* ── Подвал ────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: var(--step--1); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.foot p { margin: 0; }
.foot__note { flex-basis: 100%; font-size: 0.75rem; opacity: .75; }
.foot .brand { color: var(--text); }
.foot a.up { color: var(--muted); text-underline-offset: 4px; }
.foot a.up:hover { color: var(--text); }

/* ── 404 ───────────────────────────────────────────── */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding-block: 80px; }
.lost__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 14vw, 12rem); line-height: .9; letter-spacing: -0.05em; margin: 0; }
.lost__code span { background: var(--dusk); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost p { margin: 0; color: var(--muted); max-width: 40ch; }

/* Смена языка: перекрёстное затухание */
main, .nav { transition: opacity .2s ease; }
body.is-switching main, body.is-switching .nav { opacity: .15; }

/* ── Движение ──────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sunup { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.035); } }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes flow { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cat-blink { 0%, 44%, 50%, 93%, 99%, 100% { transform: scaleY(1); } 47%, 96% { transform: scaleY(.12); } }
@keyframes cat-wink { 0%, 18%, 26%, 100% { transform: none; } 21%, 23% { transform: translateY(-1.2px) scale(1.12); } }
@keyframes cat-poke { 0%, 100% { transform: none; } 30%, 70% { transform: translateY(-1.2px) scale(1.12); } }
@keyframes sweep { 0% { transform: translateX(-120%) skewX(-20deg); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(320%) skewX(-20deg); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero .wordmark, .hero .slogan, .hero .lede, .hero .say, .hero .cta { animation: rise .9s var(--ease) both; }
  .hero .wordmark { animation-delay: .06s; }
  .hero .slogan { animation-delay: .18s; }
  .hero .lede { animation-delay: .26s; }
  .hero .say { animation-delay: .32s; }
  .hero .cta { animation-delay: .38s; }
  .wordmark__moor { animation: flow 12s linear infinite; }
  .cat-eye { animation: cat-blink 9s ease-in-out infinite; }
  .cat-wink { animation: cat-wink 9s ease-in-out infinite; }
  .cat:hover .cat-wink, .cat.is-poked .cat-wink { animation: cat-poke .8s ease-in-out; }
  .hero.is-off .cat-eye, .hero.is-off .cat-wink { animation-play-state: paused; }
  .layer--sun { animation: sunup 1.8s .3s var(--ease) both; }
  .sun { animation: breathe 7s ease-in-out infinite; will-change: transform; }
  .sun::after { animation: halo 7s ease-in-out infinite; }
  .wave { will-change: transform; animation: drift 120s linear infinite; }
  .wave--mid { animation-duration: 80s; }
  .wave--front { animation-duration: 55s; }
  .js .ticker__track { animation: drift 38s linear infinite; will-change: transform; }
  .js .ticker.is-off .ticker__track, .hero.is-off .wave, .hero.is-off .sun, .hero.is-off .sun::after, .hero.is-off .wordmark__moor { animation-play-state: paused; }

  /* появление по прокрутке: прячем только когда работает скрипт */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .cell.reveal { transform: translateY(40px) scale(.98); }
  .js .cell.reveal.in { transform: none; }

  .icon { animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
  .cell:not(.in-view) .icon { animation-play-state: paused; }
  .card:hover .card__rim::after, .card.is-active .card__rim::after { animation: sweep 2.6s var(--ease) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .card.is-pressed, .btn:active, .store:active, .site:active { transform: none; }
  .ripple, .torch { display: none; }
}
