/* belkovsky.eu — персональный медиасайт Станислава Белковского.
   Регистр взят НЕ из головы, а с его собственных обложек: «Параклет» — кремовая бумага,
   чернильно-синие капители с высоким контрастом, красные плашки, коллаж из вырезанных
   кадров; канал — чёрное поле с сеткой и белой словомаркой; «НаБелО» — рваная ч/б
   бумага. Первый экран — коридор по донору codepen jENEZZq (разбор в
   teardown/livingwords/РАЗБОР.md): чистый CSS, preserve-3d, грани лицом внутрь.
   Тональное событие на стыке: чернота коридора → кремовая бумага разделов. */

/* ---------- токены ---------- */
:root {
  --paper: #F2E6D2;          /* бумага «Параклета» */
  --paper-2: #E8D9C0;
  --ink: #16203F;            /* чернила капителей */
  --ink-2: #3C4668;
  --ink-3: #6D7592;
  --red: #E4352B;            /* красные плашки обложек */
  --red-deep: #B4241C;
  --night: #0A0A0C;          /* поле канала */
  --night-2: #141418;
  --chalk: #F5F2EC;

  --r-s: 4px;                /* радиусы мелкие: у него печать, а не приложение */
  --r-m: 10px;
  --r-l: 20px;

  /* три изинга по ролям — разные кривые, иначе всё механично */
  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);

  --f-display: "Oranienbaum", "Times New Roman", serif;
  --f-text: "Golos Text", system-ui, sans-serif;
  --f-label: "Oswald", "Golos Text", sans-serif;

  --page: min(1280px, 92vw);
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.62 var(--f-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }   /* иначе атрибут height= из разметки задаёт высоту */
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: var(--page); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 18px max(4vw, 24px);
  color: var(--chalk);
  transition: background-color .35s var(--e-ui), color .35s var(--e-ui),
              padding .35s var(--e-ui), box-shadow .35s var(--e-ui);
}
.top.is-paper {
  background: rgba(242, 230, 210, .94); color: var(--ink);
  padding-block: 11px; box-shadow: 0 1px 0 rgba(22, 32, 63, .14);
  backdrop-filter: saturate(1.4) blur(10px);
}
.mark {
  font: 700 19px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.mark b { font-weight: 700; }
.nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav a {
  font: 500 14px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; opacity: .82; position: relative; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); transition: right .32s var(--e-display);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }
.nav .live { display: inline-flex; align-items: center; gap: 7px; opacity: 1; }
.nav .live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 2.2s var(--e-body) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.burger { display: none; }

/* ---------- 1. КОРИДОР ----------
   Донор: .cube 870×190, perspective 480, perspective-origin 51% 70%, грани на ±435
   развёрнуты внутрь (scaleX(-1)), пол поднят до −245, передняя грань снята.
   Геометрия донора сохранена один в один, адаптив — масштабом всей сцены. */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  background: var(--night); overflow: hidden; color: var(--chalk);
  display: grid; place-items: center;
}
.scene {
  /* НЕ grid: колонка автогрида шире контейнера и на узких экранах уезжает вправо,
     центрируя сцену внутри колонки, а не внутри экрана. Позиционируем вручную. */
  position: absolute; inset: 0;
  /* cover, а не fit. ЧИСЛО ставит JS: calc(100vw/1000) — это длина, а scale() нужен множитель */
  --s: 1;
}
.stage {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 1000px; height: 562px;
  transform-origin: center; scale: var(--s);
  animation: dolly 64s var(--e-body) infinite alternate;
}
@keyframes dolly { from { scale: var(--s); } to { scale: calc(var(--s) * 1.42); } }

.corridor, .reflect { position: absolute; inset: 0; display: grid; place-items: center; }
.cube {
  position: relative; width: 870px; height: 190px;
  transform-style: preserve-3d; perspective: 480px; perspective-origin: 51% 70%;
}
.face {
  position: absolute; width: 870px; height: 190px; overflow: hidden;
  display: flex; align-items: center; opacity: .62;
}
/* Стены и скосы углов расставляет JS: ширина каждой грани и сдвиг её ленты считаются
   по длине пути вдоль коридора, иначе афиши не сходятся на повороте.
   ГРАБЛЯ: грань позиционируется от левого верхнего угла куба. Пока все грани были
   во всю ширину куба (как у донора), это не мешало; у короткой стены центр уезжает,
   поэтому стенам и скосам ставим left/top 50 % и гасим смещение translate(-50%,-50%). */
.face.wall, .face.cham { left: 50%; top: 50%; }
.face.wall::after {          /* сгиб виден: кромки грани затемнены */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 14%,
                                     rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, .55));
}
.face.cham { opacity: .72; }          /* скос угла чуть ярче стен — поворот читается */
.face.cham::after { background: linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .06), rgba(0, 0, 0, .3)); }
.face.floor {
  width: 870px; height: 870px; opacity: .3;
  transform: translateY(-245px) rotateX(-90deg) scaleY(-1);
}
.face.roof {
  width: 870px; height: 870px; opacity: .22;
  transform: translateY(-435px) rotateX(90deg) scaleY(-1);
}

/* лента кадров: плитка 290 = ровно треть грани, поэтому сдвиг соседней грани
   кратен плитке и стык не ловится глазом */
/* ЛЕНТА. Плитки стоят встык: любой зазор рвёт ряд на повороте.
   Длительность 46 с, сдвиг каждой грани JS считает как −46 × (путь до неё / длина цикла). */
.strip { display: flex; gap: 0; flex: none; animation: run 46s linear infinite; }
.strip img {
  width: 290px; height: 163px; object-fit: cover; flex: none;
  border-left: 1px solid rgba(255, 255, 255, .07);
}
@keyframes run { to { transform: translateX(-50%); } }

/* по полу — его собственные слова, а не наши */
.face.floor .words, .face.roof .words {
  display: flex; flex: none; white-space: nowrap;
  font: 400 86px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; animation: run 58s linear infinite;
}
.face.floor .words span, .face.roof .words span { padding-right: .5em; }
.face.floor .words em { font-style: normal; color: var(--red); }
.face.roof .words { animation-duration: 74s; opacity: .7; }

.reflect { transform: translateY(380px); filter: blur(10px); }
.reflect .cube { perspective-origin: 51% -30%; }
.reflect .strip img { height: 114px; }

.hero-bg, .hero-figure { position: absolute; left: 50%; translate: -50% 0; pointer-events: none; }
.hero-bg { top: 0; width: 1000px; opacity: .5; mix-blend-mode: screen; }
.hero-figure {
  top: 0; width: 1000px; z-index: 3;
  /* фигура снята при тёплом свете, комната тёмная: сажаем её в сцену, свет добавит .hero-spot */
  filter: brightness(.62) contrast(1.08) saturate(.86);
  animation: soften 64s var(--e-body) infinite alternate;
}
@keyframes soften { from { filter: blur(0); } to { filter: blur(3.5px); } }

/* цвет кладём умножением и overlay, а не глухой вуалью (ось 8 чек-листа) */
.hero-wash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 62%, rgba(228, 53, 43, .42), rgba(10, 10, 12, 0) 72%),
              radial-gradient(ellipse 120% 90% at 50% 10%, rgba(22, 32, 63, .55), rgba(10, 10, 12, 0) 70%);
  mix-blend-mode: screen;
}
.hero-vig {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 84% 74% at 50% 52%, rgba(10, 10, 12, 0) 44%, rgba(10, 10, 12, .74) 100%);
}
.hero-spot {                 /* световое пятно падает на фигуру, как у донора */
  position: absolute; inset: 0; z-index: 7; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 19% 26% at 50% 56%, rgba(255, 214, 190, .5), rgba(255, 150, 120, .16) 52%, transparent 78%),
    radial-gradient(ellipse 42% 30% at 50% 44%, rgba(255, 120, 95, .22), transparent 74%);
}
.grain {
  position: absolute; inset: -50%; z-index: 6; pointer-events: none; opacity: .09;
  background-image: var(--noise); background-size: 180px 180px;
  animation: shake 1.1s steps(3) infinite;
}
@keyframes shake {
  0% { translate: 0 0; } 33% { translate: -2% 1%; } 66% { translate: 1% -2%; } 100% { translate: 0 0; }
}

/* надпись поверх коридора */
.hero-copy {
  position: relative; z-index: 8; text-align: center; padding-inline: 5vw;
  display: grid; justify-items: center; gap: 22px;
  /* надпись уходит вверх: внизу стоит фигура, слово не должно резать ей голову */
  align-self: start; margin-top: clamp(84px, 15vh, 180px);
}
.hero-copy h1 {
  margin: 0; font: 400 clamp(54px, 11.2vw, 168px)/.88 var(--f-display);
  letter-spacing: -.012em; text-transform: uppercase;
  text-shadow: 0 10px 60px rgba(10, 10, 12, .75);
}
.hero-copy h1 .l { display: block; overflow: clip; clip-path: inset(-.4em -100vw 0 -100vw); }
.hero-copy h1 .l > span { display: block; translate: 0 102%; }
.is-ready .hero-copy h1 .l > span {
  translate: 0 0; transition: translate 1.05s var(--e-display) var(--d, 0s);
}
.hero-self {
  font: 500 clamp(12px, 1.5vw, 16px)/1.2 var(--f-label);
  letter-spacing: .3em; text-transform: uppercase; color: #CBC6BC;
  display: flex; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; justify-content: center;
  opacity: 0;
}
.is-ready .hero-self { opacity: 1; transition: opacity .9s var(--e-body) .75s; }
.hero-self b { color: var(--red); font-weight: 500; }
.hero-cue {
  position: absolute; z-index: 8; bottom: 26px; left: 50%; translate: -50% 0;
  font: 500 11px/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase;
  color: #9A958C; display: grid; justify-items: center; gap: 9px; opacity: 0;
}
.is-ready .hero-cue { opacity: 1; transition: opacity .8s var(--e-body) 1.3s; }
.hero-cue i { width: 1px; height: 34px; background: linear-gradient(#9A958C, transparent); }

/* ---------- общие заголовки разделов ---------- */
.sec { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.sec-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.kicker {
  font: 500 12px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase;
  color: var(--red); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
h2.big {
  margin: 0; font: 400 clamp(38px, 6.4vw, 92px)/.92 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em; max-width: 16ch;
}
.sec-note { margin-left: auto; max-width: 38ch; color: var(--ink-2); font-size: 16px; }

/* появление по прокрутке */
[data-r] { opacity: 0; translate: 0 26px; }
[data-r].on {
  opacity: 1; translate: 0 0;
  transition: opacity .72s var(--e-body) var(--d, 0s), translate .82s var(--e-display) var(--d, 0s);
}

/* ---------- 2. ЧТО СЕЙЧАС: живые проекты ---------- */
.now { background: var(--paper); }
.shows { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.show {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: stretch; overflow: hidden; border-radius: var(--r-l);
  background: var(--sh-bg, var(--ink)); color: var(--sh-ink, var(--chalk));
  text-decoration: none; isolation: isolate;
  transition: translate .5s var(--e-display);
}
.show:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
.show:nth-child(even) .show-body { order: 2; }
.show:hover { translate: 0 -4px; }
.show-body { padding: clamp(26px, 3.4vw, 54px); display: flex; flex-direction: column; gap: 16px; }
.show-no {
  font: 500 12px/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase;
  color: var(--sh-dim, rgba(245, 242, 236, .6));
}
.show h3 {
  margin: 0; font: 400 clamp(28px, 3.5vw, 54px)/.96 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.show p { margin: 0; color: var(--sh-dim, rgba(245, 242, 236, .76)); font-size: 16.5px; max-width: 42ch; }
.show-meta {
  margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font: 500 11.5px/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase;
}
.chip {
  padding: 7px 12px; border-radius: 999px; background: var(--sh-chip, rgba(245, 242, 236, .12));
  color: inherit;
}
.chip.hot { background: var(--red); color: #fff; }
.show-art { position: relative; overflow: hidden; min-height: 240px; }
.show-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* кадрирование объекта за края: картинка крупнее своего контейнера */
  scale: 1.08; transition: scale 1.1s var(--e-display), filter .6s var(--e-body);
}
.show:hover .show-art img { scale: 1.14; }
.show-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--sh-bg, var(--ink)) 2%, rgba(0, 0, 0, 0) 56%);
}
.show:nth-child(even) .show-art::after { background: linear-gradient(260deg, var(--sh-bg, var(--ink)) 2%, rgba(0, 0, 0, 0) 56%); }
.go {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font: 600 13px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
}
.go svg { width: 22px; height: 10px; transition: translate .4s var(--e-display); }
.show:hover .go svg { translate: 7px 0; }

/* миры проектов: у каждого свой регистр, как у него самого */
.show.dnm    { --sh-bg: #0A0A0C; --sh-ink: #F5F2EC; }
.show.nabelo { --sh-bg: #1A1A1A; --sh-ink: #F5F2EC; }
.show.para   { --sh-bg: var(--paper-2); --sh-ink: var(--ink); --sh-dim: var(--ink-2); --sh-chip: rgba(22, 32, 63, .1); }
.show.vpn    { --sh-bg: #15463C; --sh-ink: #EAF6EF; --sh-dim: rgba(234, 246, 239, .78); }
.show.nabelo .show-art img { filter: grayscale(1) contrast(1.08); }

/* ---------- 3. ПОЛОСА ЦИТАТЫ ---------- */
.say { background: var(--ink); color: var(--chalk); overflow: hidden; }
.say .wrap { position: relative; }
.say blockquote {
  margin: 0; font: 400 clamp(26px, 4.1vw, 62px)/1.04 var(--f-display);
  text-transform: uppercase; max-width: 22ch;
}
.say blockquote em { font-style: normal; color: var(--red); }
.say cite {
  display: block; margin-top: 26px; font: 500 12px/1.5 var(--f-label);
  letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 242, 236, .5); font-style: normal;
}
.say { padding-block: clamp(76px, 10vw, 150px); }
.say-ava {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: clamp(130px, 16vw, 210px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; filter: grayscale(1) contrast(1.14) brightness(1.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  outline: 1px solid rgba(245, 242, 236, .18); outline-offset: 10px;
}

/* ---------- 4. КАТАЛОГ ВСЕХ ПРОЕКТОВ ---------- */
.all { background: var(--paper); }
.rows { border-top: 3px solid currentColor; }
.row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2.4vw, 34px); align-items: center;
  padding: clamp(18px, 2.3vw, 30px) 10px; border-bottom: 1px solid rgba(22, 32, 63, .22);
  text-decoration: none; position: relative; overflow: hidden;
  transition: padding-left .4s var(--e-display);
}
.row::before {                        /* заливка цветом проекта наезжает слева */
  content: ""; position: absolute; inset: 0; background: var(--rc, var(--ink));
  scale: 0 1; transform-origin: left; opacity: .12;
  transition: scale .55s var(--e-display);
}
.row:hover { padding-left: 24px; }
.row:hover::before { scale: 1 1; }
.row > * { position: relative; }
.row-no {
  font: 600 15px/1 var(--f-label); letter-spacing: .1em; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.row-no::after {
  content: ""; display: block; width: 26px; height: 3px; margin-top: 9px;
  background: var(--rc, var(--ink)); border-radius: 2px;
}
.row-name { font: 400 clamp(26px, 3.1vw, 46px)/1 var(--f-display); text-transform: uppercase; }
.row-with { color: var(--ink-3); font-size: 15px; text-align: right; }

/* кадр проекта едет за курсором — масса вместо пустого поля справа */
.peek {
  position: fixed; z-index: 30; top: 0; left: 0; width: 290px; aspect-ratio: 16 / 9;
  margin: 26px 0 0 34px; border-radius: var(--r-m); overflow: hidden; pointer-events: none;
  opacity: 0; scale: .9; rotate: -3deg;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: opacity .3s var(--e-ui), scale .45s var(--e-display), rotate .45s var(--e-display);
}
.peek.on { opacity: 1; scale: 1; rotate: 2deg; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .peek { display: none; } }
.row-state {
  font: 500 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
}
.row-state.live { background: var(--red); color: #fff; }
.row-state.pause { background: rgba(22, 32, 63, .1); color: var(--ink-2); }

/* ---------- 5. БИОГРАФИЯ ---------- */
.bio { background: var(--ink); color: var(--chalk); }
.bio .kicker { color: #FF7A6E; }
.bio .kicker::before { background: #FF7A6E; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.bio-portrait { position: relative; }
.bio-portrait { position: sticky; top: 92px; }
.bio-shot { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; }
.bio-shot img { width: 100%; filter: grayscale(1) contrast(1.3) brightness(1.3); }
.bio-shot::after {            /* дуотония умножением, а не вуалью; подпись под ней не лежит */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(168deg, rgba(228, 53, 43, .62) 6%, rgba(22, 32, 63, .92) 82%);
  mix-blend-mode: multiply;
}
.bio-cap {
  margin-top: 12px; font: 500 11px/1.5 var(--f-label); letter-spacing: .18em;
  text-transform: uppercase; color: rgba(245, 242, 236, .62);
}
.bio-lead { font: 400 clamp(21px, 2.1vw, 29px)/1.38 var(--f-text); margin: 0 0 28px; }
.bio-lead b { font-weight: 600; }
.facts { display: grid; gap: 0; border-top: 1px solid rgba(245, 242, 236, .22); }
.fact {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px;
  padding: 15px 0; border-bottom: 1px solid rgba(245, 242, 236, .14);
}
.fact dt { font: 500 13px/1.4 var(--f-label); letter-spacing: .14em; color: #FF7A6E; }
.fact dd { margin: 0; color: rgba(245, 242, 236, .86); font-size: 16.5px; }

/* ---------- 6. КАНАЛЫ ---------- */
.where { background: var(--paper); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.link {
  display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-l);
  background: #fff; text-decoration: none; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 32, 63, .08), 0 14px 34px -22px rgba(22, 32, 63, .5);
  transition: translate .45s var(--e-display), box-shadow .45s var(--e-display);
}
.link:hover { translate: 0 -5px; box-shadow: 0 2px 4px rgba(22, 32, 63, .1), 0 26px 46px -22px rgba(22, 32, 63, .55); }
.link-n { font: 400 clamp(26px, 2.6vw, 36px)/1 var(--f-display); text-transform: uppercase; }
.link-m { font: 500 11.5px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.link-c { font-size: 15.5px; color: var(--ink-2); }
.link::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--red); opacity: .1;
  transition: scale .6s var(--e-display);
}
.link:hover::after { scale: 1.5; }

/* ---------- подвал ---------- */
.foot { background: var(--night); color: rgba(245, 242, 236, .66); padding-block: clamp(44px, 6vw, 78px); font-size: 15px; }
.foot-top { display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline; margin-bottom: 30px; }
.foot-top .mark { color: var(--chalk); font-size: 22px; }
.foot-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font: 500 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--chalk); }
.disclaimer {
  border-top: 1px solid rgba(245, 242, 236, .14); padding-top: 22px; margin-top: 22px;
  font-size: 12.5px; line-height: 1.7; color: rgba(245, 242, 236, .44);
}
.disclaimer b { color: rgba(245, 242, 236, .62); font-weight: 500; }

/* выпадающее меню существует только на узких экранах */
.menu { display: none; }

/* ---------- мобильный ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .burger {
    display: grid; margin-left: auto; width: 44px; height: 44px; place-items: center;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 2px; background: currentColor; }
  .burger span + span { margin-top: 6px; }
  .menu {
    display: grid; position: fixed; inset: 0; z-index: 50; background: var(--night); color: var(--chalk);
    display: grid; align-content: center; gap: 6px; padding: 8vw;
    translate: 0 -100%; transition: translate .5s var(--e-display);
  }
  .menu.open { translate: 0 0; }
  .menu a { font: 400 34px/1.14 var(--f-display); text-transform: uppercase; text-decoration: none; }
  .menu .close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; background: none; border: 0; color: inherit; font-size: 30px; }

  /* приём «объект за края» на узкие не переносится — сцену держим в рамке */
  .stage { animation-name: dollyM; }
  @keyframes dollyM { from { scale: var(--s); } to { scale: calc(var(--s) * 1.18); } }
  .reflect { display: none; }         /* отражение на телефоне съедает кадр и батарею */
  .face.floor .words, .face.roof .words { font-size: 64px; }

  .show, .show:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .show:nth-child(even) .show-body { order: 0; }
  .show-art { min-height: 200px; order: -1; }
  .show-art::after,
  .show:nth-child(even) .show-art::after { background: linear-gradient(0deg, var(--sh-bg, var(--ink)) 2%, rgba(0, 0, 0, 0) 62%); }
  .bio-grid { grid-template-columns: minmax(0, 1fr); }
  .say-ava { position: static; translate: 0 0; margin-top: 28px; width: 120px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 5px; align-items: start; }
  .row-name { grid-column: 2; grid-row: 1; }
  .row-state { grid-column: 3; grid-row: 1; }
  .row-with { grid-column: 2 / -1; grid-row: 2; text-align: left; }
  .bio-portrait { position: static; }
  .sec-note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stage, .strip, .words, .grain, .hero-figure, .nav .live i { animation: none !important; }
  [data-r] { opacity: 1; translate: 0 0; }
  .hero-copy h1 .l > span { translate: 0 0; }
  .hero-self, .hero-cue { opacity: 1; }
  * { transition-duration: .01ms !important; }
}

/* ---------- маркиза: единый жест сайта ---------- */
.marq { background: var(--ink); padding-block: clamp(14px, 2vw, 26px); overflow: hidden; display: grid; gap: clamp(6px, .9vw, 14px); }
.marq-line {
  white-space: nowrap; font: 400 clamp(30px, 5.6vw, 82px)/1.18 var(--f-display);
  text-transform: uppercase; color: var(--chalk); will-change: transform;
}
.marq-line.alt { color: transparent; -webkit-text-stroke: 1px rgba(245, 242, 236, .5); }
.marq-line span { padding-right: .4em; }

/* перекраска каталога под наведённый проект (приём profgalloway, .5 с) */
.all { transition: background-color .5s var(--e-body), color .5s var(--e-body); }
.all.is-dark { color: var(--chalk); }
.all.is-dark .rows { border-top-color: rgba(245, 242, 236, .5); }
.all.is-dark .row { border-bottom-color: rgba(245, 242, 236, .18); }
.all.is-dark .row:hover { background: rgba(245, 242, 236, .06); }
.all.is-dark .row-with { color: rgba(245, 242, 236, .55); }
.all.is-dark .row-state.pause { background: rgba(245, 242, 236, .14); color: rgba(245, 242, 236, .75); }
.all .row-name, .all .row-with, .all .row-state, .all .big, .all .sec-note { transition: color .5s var(--e-body); }
@media (hover: none) { .all { transition: none; } }
