:root {
  --ink: #05060c;
  --ink-2: #0b0a16;
  --pink: #ff2d95;
  --pink-hot: #ff5fc4;
  --pink-deep: #b3005e;
  --cyan: #7df4ff;
  --amber: #ffb765;
  --text: #f4ecf3;
  --muted: rgba(244, 236, 243, .62);
  --line: rgba(255, 95, 196, .34);
  --glass: rgba(9, 6, 18, .66);
  --display: 'Tektur', 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 3vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px 2px var(--pink);
  animation: blink 2.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: .35; } }

/* ───────── Сцена ───────── */

.stage {
  position: fixed;
  /* left/top/width/height выставляет main.js: кадр 1280×532 всегда покрывает экран */
  overflow: hidden;
}
.stage-inner {
  position: absolute; inset: 0;
  /* --px/--py плавно ведёт main.js */
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0);
}
/* Фон «дышит»: медленно приближается и отдаляется. Анимируется только transform,
   поэтому всю работу делает видеокарта, без пересчёта стилей на каждом кадре. */
.stage-zoom {
  position: absolute; inset: 0;
  transform: scale(1.03);
  will-change: transform;
  animation: breathe-zoom 18s var(--ease-in-out) infinite alternate;
}
@keyframes breathe-zoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.075); }
}
.poster, .film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  user-select: none;
}
/* Пока видео не показано, слой выключен совсем — браузер его не компонует */
.film { opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease-in-out), visibility 0s linear 1.6s; }
.film-on .film { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Глухая заплатка поверх вотермарки видео. Живёт в координатах кадра и двигается вместе с ним.
   Размытие дока — только оформление: если браузер на кадр его сбросит, вотермарки всё равно не видно. */
.wm-patch {
  position: absolute;
  left: 79.2%; top: 79.6%; right: -2%; bottom: -2%;
  background: #0a0714;
  box-shadow: 0 0 14px 6px #0a0714;
}

/* Слой картин: 1280×532, масштабируется целиком */
.hotspots {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 532px;
  transform-origin: 0 0;
  transform: scale(var(--s, 1));
  transition: opacity 1.2s var(--ease-in-out);
}
.hotspot {
  position: absolute;
  transform-origin: 0 0;
  border: .6px solid rgba(255, 95, 196, .18);
  box-shadow: 0 0 2px rgba(255, 45, 149, .2), inset 0 0 4px rgba(255, 45, 149, .08);
  transition: border-color .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
/* Свечение лежит отдельным слоем, пульсирует только его прозрачность — это бесплатно для процессора */
.hotspot::before {
  content: '';
  position: absolute; inset: -.6px;
  border: .6px solid rgba(255, 95, 196, .5);
  box-shadow: 0 0 6px rgba(255, 45, 149, .4), inset 0 0 8px rgba(255, 45, 149, .2);
  pointer-events: none;
  animation: breathe 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s);
}
@keyframes breathe { 50% { opacity: 0; } }
.hotspot:hover::before, .hotspot:focus-visible::before, .hotspot.is-lit::before, .intro .hotspot::before, .cinema .hotspot::before { animation: none; opacity: 0; }
.hotspot:focus-visible { outline: .6px solid var(--cyan); outline-offset: 1.5px; }

.holo {
  position: absolute; inset: 0;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 .5px, transparent .5px 2px),
    linear-gradient(160deg, rgba(255, 45, 149, .75), rgba(125, 244, 255, .35) 60%, rgba(255, 183, 101, .4));
  background-size: cover;
  background-position: center;
  transition: opacity .7s var(--ease-out);
}
.holo.has-image::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 .5px, transparent .5px 2px),
    linear-gradient(160deg, rgba(255, 45, 149, .30), transparent 60%);
}
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-lit {
  border-color: var(--pink-hot);
  box-shadow: 0 0 14px 2px rgba(255, 45, 149, .75), 0 0 40px 6px rgba(255, 45, 149, .35), inset 0 0 10px rgba(255, 45, 149, .4);
}
.hotspot:hover .holo, .hotspot:focus-visible .holo, .hotspot.is-lit .holo { opacity: 1; }

/* Номерки картин — в экранных пикселях, чтобы текст не мылился */
.tags { position: absolute; inset: 0; pointer-events: none; transition: opacity 1.2s var(--ease-in-out); }
.tag {
  position: absolute;
  transform: translate(-2px, calc(-100% - 5px));
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--pink-hot);
  text-shadow: 0 0 8px var(--pink);
  white-space: nowrap;
  opacity: .85;
}

.cinema .hotspots, .cinema .tags { opacity: 0; pointer-events: none; }

/* ───────── Цветокор ───────── */

.grade, .grade > div { position: fixed; inset: 0; pointer-events: none; }

/* Розовое перекрытие: голограмма заливает комнату */
.grade-pink {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 45, 149, .85), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, rgba(179, 0, 94, .8), transparent 60%),
    linear-gradient(180deg, rgba(255, 45, 149, .30), rgba(120, 30, 200, .22));
  mix-blend-mode: soft-light;
  transition: opacity 1.8s var(--ease-in-out);
}
.grade-haze {
  background:
    radial-gradient(60% 45% at 78% 8%, rgba(255, 45, 149, .30), transparent 70%),
    radial-gradient(50% 40% at 8% 92%, rgba(255, 45, 149, .22), transparent 70%),
    linear-gradient(90deg, rgba(5, 6, 12, .72) 0%, transparent 42%),
    linear-gradient(180deg, rgba(5, 6, 12, .55) 0%, transparent 22%, transparent 55%, rgba(5, 6, 12, .78) 100%);
  mix-blend-mode: normal;
  transition: opacity 1.8s var(--ease-in-out);
}
.grade-grain {
  inset: -8% !important; /* запас ровно под сдвиги анимации, а не четыре экрана площади */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .11;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.grade-vignette {
  /* сканлайны и виньетка — одним слоем */
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .11) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(3, 2, 8, .72) 100%);
}
/* В кино перекрытие слабее, чтобы не спорить с картинкой */
/* Первый кадр: перекрытия ещё нет, картины подсвечены — видно, что они активные.
   Потом .intro снимается, и перекрытие плавно проявляется. */
.grade-pink, .grade-haze { transition: opacity 3.2s var(--ease-in-out); }
.intro .grade-pink, .intro .grade-haze { opacity: 0; }
.hotspot, .holo, .tag { transition-duration: 2.4s; }
.hotspot:hover, .hotspot:focus-visible, .hotspot.is-lit,
.hotspot:hover .holo, .hotspot:focus-visible .holo, .hotspot.is-lit .holo { transition-duration: .7s; }
.intro .hotspot {
  animation: intro-pulse 1.6s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 0.12s);
  border-color: #fff;
  box-shadow: 0 0 12px 2px rgba(255, 95, 196, .95), 0 0 36px 8px rgba(255, 45, 149, .55), inset 0 0 12px rgba(255, 45, 149, .5);
}
.intro .hotspot .holo { opacity: .5; }
.intro .tag { opacity: 1; color: #fff; text-shadow: 0 0 10px var(--pink), 0 0 2px #000; }
@keyframes intro-pulse {
  50% { box-shadow: 0 0 6px 1px rgba(255, 95, 196, .7), 0 0 18px 4px rgba(255, 45, 149, .3), inset 0 0 8px rgba(255, 45, 149, .3); }
}

.cinema .grade-pink { opacity: .55; }
.cinema .grade-haze { opacity: .35; }

/* ───────── Интерфейс ───────── */

.ui {
  position: fixed; inset: 0;
  pointer-events: none;
}
.ui > * { pointer-events: auto; }
.cinema .ui > *, .gated .ui > * { pointer-events: none; }

/* Появление по очереди: после заставки и при возвращении из кино */
.reveal {
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.5s var(--ease-out),
    filter 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.gated .reveal { transition-delay: 0s; opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(10px); }
/* В кино из шапки уходят пункты меню и языки. Логотип, контакты и кнопка звука остаются на месте. */
.cinema .nav > *:not(.sound) { opacity: 0; filter: blur(8px); }
/* Описание слева внизу в кино уходит целиком — центр экрана занят цитатами */
.cinema .hero .reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  filter: blur(8px);
  transition-duration: .9s;
  transition-timing-function: var(--ease-in-out);
  transition-delay: calc((5 - var(--d, 0)) * 50ms);
}
.cinema .nav > .sound { pointer-events: auto; }

.top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  padding: calc(var(--gutter) * .8) var(--gutter);
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 45, 149, .9);
}
.brand-sub { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap; justify-content: flex-end; }
.nav > * {
  position: relative;
  padding: 6px 0;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .5s var(--ease-out), text-shadow .5s var(--ease-out), opacity .9s var(--ease-in-out), filter .9s var(--ease-in-out);
}
.nav i { font-style: normal; color: var(--pink-hot); margin-right: 8px; font-size: 9px; }
.nav > *::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.nav > *:hover { color: #fff; text-shadow: 0 0 12px var(--pink); }
.nav > *:hover::after { transform: scaleX(1); }

/* Переключатель языка */
.nav > .lang { display: inline-flex; gap: 2px; padding: 0; }
.nav > .lang::after { display: none; }
.lang button {
  min-width: 30px; min-height: 28px;
  padding: 0 6px;
  font-size: 10px; letter-spacing: .16em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), background .5s var(--ease-out), text-shadow .5s var(--ease-out);
}
.lang button:hover { color: #fff; text-shadow: 0 0 12px var(--pink); }
.lang button[aria-pressed="true"] { color: var(--pink-hot); border-color: var(--line); background: rgba(255, 45, 149, .12); }

/* Смена языка: текст уходит в размытие и возвращается уже переведённым */
/* .lang-fade держится чуть дольше .lang-swap и на это время перебивает собственные переходы элементов */
.lang-fade [data-i18n], .lang-fade [data-i18n-html], .lang-fade .sheet-content {
  transition: opacity .38s var(--ease-in-out), filter .38s var(--ease-in-out) !important;
  transition-delay: 0s !important;
}
.lang-swap [data-i18n], .lang-swap [data-i18n-html], .lang-swap .sheet-content { opacity: 0; filter: blur(6px); }
.lang-swap .sheet-content > * { animation: none; }

.sound { display: inline-flex; align-items: center; gap: 10px; color: var(--muted) !important; }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars b { width: 2px; background: var(--pink-hot); animation: eq 1s ease-in-out infinite; }
.sound-bars b:nth-child(1) { height: 40%; animation-delay: -.2s; }
.sound-bars b:nth-child(2) { height: 100%; animation-delay: -.5s; }
.sound-bars b:nth-child(3) { height: 60%; animation-delay: -.8s; }
.sound-bars b:nth-child(4) { height: 80%; animation-delay: -.3s; }
@keyframes eq { 50% { transform: scaleY(.3); } }
.sound-bars b { transform-origin: bottom; }
.sound.is-locked { color: var(--pink-hot) !important; animation: blink 1.6s ease-in-out infinite; }
.sound[aria-pressed="false"] .sound-bars b { animation: none; height: 2px; background: var(--muted); }

.hero {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--gutter) * .9);
  width: min(440px, calc(100vw - var(--gutter) * 2));
}
.eyebrow { font-size: 10px; letter-spacing: .26em; color: var(--pink-hot); margin-bottom: 18px; }
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(5, 6, 12, .8);
}
h1 em {
  font-style: normal;
  color: var(--pink-hot);
  text-shadow: 0 0 22px rgba(255, 45, 149, .9), 0 0 60px rgba(255, 45, 149, .5);
}
/* Сбой сигнала: раз в несколько секунд акцентное слово на миг расслаивается на каналы */
h1 em { display: inline-block; }
h1 em.is-glitching { animation: glitch .42s steps(1) 1; }
@keyframes glitch {
  0% { transform: translate3d(-3px, 0, 0) skewX(-8deg); text-shadow: 3px 0 0 var(--cyan), -3px 0 0 var(--pink), 0 0 22px rgba(255, 45, 149, .9); clip-path: inset(0 0 42% 0); }
  25% { transform: translate3d(3px, 0, 0); text-shadow: -4px 0 0 var(--cyan), 4px 0 0 var(--pink); clip-path: inset(38% 0 0 0); }
  50% { transform: translate3d(-1px, 0, 0) skewX(4deg); text-shadow: 2px 0 0 var(--cyan), -2px 0 0 var(--pink), 0 0 22px rgba(255, 45, 149, .9); clip-path: none; }
  75% { transform: translate3d(2px, 0, 0); text-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--pink); clip-path: inset(60% 0 0 0); }
  100% { transform: none; }
}
.dock-title.is-glitching { animation: glitch-soft .3s steps(1) 1; }
@keyframes glitch-soft {
  0% { transform: translate3d(-2px, 0, 0); text-shadow: 3px 0 0 var(--cyan), -3px 0 0 var(--pink); }
  50% { transform: translate3d(2px, 0, 0) skewX(-6deg); text-shadow: -2px 0 0 var(--cyan), 2px 0 0 var(--pink); }
  100% { transform: none; }
}
/* Пока текст расшифровывается, он чуть холоднее по цвету */
.is-decoding { text-shadow: 0 0 14px rgba(125, 244, 255, .55); }

.lede { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(9, 6, 18, .66);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.btn:hover { border-color: var(--pink-hot); background: rgba(255, 45, 149, .18); transform: translate3d(0, -2px, 0); }
.btn:active { transform: translate3d(0, 0, 0); transition-duration: .1s; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #14000b; font-weight: 500; }
.btn-primary:hover { background: var(--pink-hot); color: #14000b; box-shadow: 0 10px 40px rgba(255, 45, 149, .45); }

/* Отсчёт до кино: по центру в строке шапки. Если там тесно из-за меню,
   main.js ставит body.idle-low и отсчёт опускается под шапку. */
.idle {
  position: absolute;
  left: 50%; top: calc(var(--gutter) * .8 + 6px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 9.5px; letter-spacing: .24em;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  transition: opacity .8s var(--ease-out), top .8s var(--ease-out);
  pointer-events: none !important;
}
.idle.is-on { opacity: 1; }
.idle-low .idle { top: var(--idle-low-top, 84px); }
.idle-track { display: block; width: 120px; height: 1px; background: rgba(255, 255, 255, .2); }
.idle-fill {
  display: block;
  height: 100%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.idle-time { min-width: 3ch; color: var(--pink-hot); font-variant-numeric: tabular-nums; }

/* ───────── Цитаты в режиме кино ───────── */

.quote {
  position: fixed; left: 50%; top: 40%;
  z-index: 4;
  width: min(980px, 84vw);
  display: grid; justify-items: center; gap: clamp(12px, 2vh, 22px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) translate3d(0, 14px, 0);
  transition: opacity 1.1s var(--ease-in-out), filter 1.1s var(--ease-in-out), transform 1.6s var(--ease-out);
}
.quote.is-on { opacity: 1; filter: none; transform: translate(-50%, -50%); }
/* мягкое затемнение под текстом, чтобы цитата читалась на светлых кадрах */
.quote::before {
  content: '';
  position: absolute; inset: -40% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 6, 12, .62), transparent);
}
.quote-no {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em;
  color: var(--pink-hot);
}
.quote-no::before, .quote-no::after { content: ''; width: 34px; height: 1px; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.quote-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 4.6vw, 70px);
  line-height: 1.06;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 26px rgba(255, 45, 149, .75), 0 0 80px rgba(255, 45, 149, .4), 0 2px 24px rgba(5, 6, 12, .9);
}
@media (max-width: 760px) {
  .quote { top: 34%; }
}

/* ───────── Док (закрывает вотермарку) ───────── */

.dock {
  position: fixed; right: 0; bottom: 0;
  z-index: 5;
  /* размеры считает main.js: док обязан накрыть вотермарку при любом окне */
  width: var(--dock-w, 420px);
  height: var(--dock-h, 170px);
  container-type: size; /* текст внутри растёт вместе с блоком */
  display: flex;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  transition:
    width 1.6s var(--ease-in-out),
    height 1.6s var(--ease-in-out),
    opacity 1.2s var(--ease-out) .5s,
    transform 1.5s var(--ease-out) .5s;
}
.dock::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 32px; height: 1px;
  background: var(--pink-hot);
  transform-origin: 0 0;
  transform: translate(0, 22px) rotate(-45deg);
}
/* Три пояса: статус сверху, главное по центру, служебная строка снизу —
   так блок выглядит собранным при любой высоте */
.dock-body {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: clamp(18px, 9cqh, 40px) var(--gutter) calc(var(--gutter) * .9) clamp(28px, 7cqw, 56px);
}
.dock-main { display: grid; gap: clamp(8px, 4cqh, 22px); }
.dock-status { font-size: 9.5px; letter-spacing: .24em; color: var(--pink-hot); }
.dock-title {
  font-family: var(--display);
  font-size: clamp(20px, 12cqh, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 45, 149, .35);
}
.dock-links { display: flex; gap: clamp(18px, 5cqw, 40px); flex-wrap: wrap; }
.dock-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: clamp(11px, 3.4cqh, 15px); letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), text-shadow .5s var(--ease-out);
}
.dock-links a:hover { color: var(--pink-hot); border-color: var(--pink-hot); text-shadow: 0 0 12px var(--pink); }
.dock-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 9.5px; letter-spacing: .2em; color: var(--muted); }
.gated .dock { opacity: 0; transform: translate3d(0, 28px, 0); transition-delay: 0s; }

/* ───────── Кнопка звука вверху по центру ───────── */

.unmute {
  position: fixed; left: 50%; top: clamp(88px, 12vh, 128px);
  margin-top: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 16px; row-gap: 2px;
  max-width: calc(100vw - 32px);
  padding: 16px 26px 16px 22px;
  transform: translateX(-50%);
  text-align: left;
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--pink-hot);
  box-shadow: 0 0 50px rgba(255, 45, 149, .45), inset 0 0 24px rgba(255, 45, 149, .12);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: unmute-in 1.4s var(--ease-out) .5s both;
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.unmute[hidden] { display: none; }
.idle-low .unmute { margin-top: 34px; } /* уступает место опущенному отсчёту */
.unmute:hover { background: rgba(255, 45, 149, .22); box-shadow: 0 0 80px rgba(255, 45, 149, .7), inset 0 0 24px rgba(255, 45, 149, .2); }
.unmute .sound-bars { grid-row: span 2; height: 24px; gap: 4px; }
.unmute .sound-bars b { width: 3px; }
.unmute strong { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 18px rgba(255, 45, 149, .9); }
.unmute small { font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.unmute-ring {
  position: absolute; inset: 0;
  border: 1px solid var(--pink-hot);
  opacity: 0;
  animation: unmute-pulse 2.6s var(--ease-out) infinite 1.5s;
  pointer-events: none;
}
.unmute.is-leaving { animation: unmute-out .6s var(--ease-in-out) forwards; pointer-events: none; }
@keyframes unmute-in { from { opacity: 0; transform: translate(-50%, -18px); filter: blur(10px); } }
@keyframes unmute-out { to { opacity: 0; transform: translate(-50%, -10px); filter: blur(10px); } }
@keyframes unmute-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1, 1.5); } }

/* ───────── Подсказка у картины ───────── */

.callout {
  position: fixed; left: 0; top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px; row-gap: 2px;
  min-width: 220px; max-width: 300px;
  padding: 12px 16px 12px 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 2px solid var(--pink);
  box-shadow: 0 0 30px rgba(255, 45, 149, .25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden; /* невидимая подсказка не должна размывать фон вхолостую */
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translateY(6px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), visibility 0s linear .5s;
}
.callout.is-on { opacity: 1; visibility: visible; transform: translate3d(var(--cx, 0), var(--cy, 0), 0); transition-delay: 0s; }
.callout-no { grid-row: span 3; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--pink-hot); text-shadow: 0 0 14px var(--pink); }
.callout strong { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.callout span:not(.callout-no) { font-size: 11px; color: var(--muted); }
.callout em { font-style: normal; font-size: 9.5px; letter-spacing: .22em; color: var(--cyan); margin-top: 6px; }

/* ───────── Боковая панель ───────── */

.scrim {
  position: fixed; inset: 0; z-index: 8;
  background: rgba(3, 2, 8, .66);
  animation: fade .7s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 9;
  width: min(520px, 100vw);
  padding: calc(var(--gutter) * .8) var(--gutter) var(--gutter);
  overflow-y: auto;
  background: rgba(9, 6, 18, .82);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(255, 45, 149, .18);
  animation: slide .9s var(--ease-out);
}
@keyframes slide { from { transform: translateX(64px); opacity: 0; } }
.sheet.is-closing { animation: slide-out .5s var(--ease-in-out) forwards; }
.scrim.is-closing { animation: fade-out .5s var(--ease-in-out) forwards; }
@keyframes slide-out { to { transform: translateX(48px); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-content > * { animation: rise 1s var(--ease-out) both; }
.sheet-content > :nth-child(1) { animation-delay: .10s; }
.sheet-content > :nth-child(2) { animation-delay: .16s; }
.sheet-content > :nth-child(3) { animation-delay: .22s; }
.sheet-content > :nth-child(4) { animation-delay: .28s; }
.sheet-content > :nth-child(5) { animation-delay: .34s; }
.sheet-content > :nth-child(6) { animation-delay: .40s; }
.sheet-content > :nth-child(n+7) { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px); } }
.sheet-close {
  display: block;
  margin-left: auto;
  min-height: 44px;
  padding: 0 4px;
  font-size: 10px; letter-spacing: .24em;
  color: var(--muted);
}
.sheet-close:hover { color: var(--pink-hot); }
.sheet-kicker { font-size: 10px; letter-spacing: .26em; color: var(--pink-hot); margin: 18px 0 12px; }
.sheet h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}
.sheet-tagline { margin-top: 10px; color: var(--muted); }
.sheet-shot {
  position: relative;
  margin: 26px 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, rgba(255, 45, 149, .45), rgba(125, 244, 255, .12) 55%, rgba(255, 183, 101, .2));
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  font-size: 10px; letter-spacing: .24em; color: var(--muted);
  overflow: hidden;
}
.sheet-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.sheet-facts div { background: rgba(9, 6, 18, .9); padding: 12px 14px; }
.sheet-facts dt, .label { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.sheet-facts dd { margin: 4px 0 0; font-size: 13px; }
dl { margin: 0; }
.sheet-desc { color: rgba(244, 236, 243, .82); font-size: 13.5px; line-height: 1.65; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.chips li { padding: 5px 10px; border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .12em; color: var(--pink-hot); }
.sheet-nav { display: flex; gap: 12px; flex-wrap: wrap; }

.index-list { margin-top: 26px; border-top: 1px solid var(--line); }
.index-list button {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease-out), padding .6s var(--ease-out);
}
.index-list button:hover, .index-list button:focus-visible { background: rgba(255, 45, 149, .10); padding-left: 10px; }
.index-list .n { font-size: 10px; letter-spacing: .2em; color: var(--pink-hot); }
.index-list .t { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.index-list .t small { display: block; font-family: var(--mono); font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.index-list .y { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; }

.about-facts { margin: 26px 0 0; }
.about-grid { display: grid; gap: 22px; margin-top: 26px; }
.about-grid h3 { font-size: 9.5px; font-weight: 400; letter-spacing: .24em; color: var(--pink-hot); text-transform: uppercase; margin-bottom: 8px; }
.about-grid p, .about-grid li { color: rgba(244, 236, 243, .82); font-size: 13.5px; line-height: 1.65; }

/* ───────── Вход ───────── */

.gate {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(255, 45, 149, .30), transparent 70%),
    rgba(5, 6, 12, .80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: opacity 1.4s var(--ease-in-out), visibility 0s linear 1.4s;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { display: flex; flex-direction: column; align-items: center; }
.gate-log { min-height: 5.2em; font-size: 10px; letter-spacing: .2em; color: var(--muted); white-space: pre-line; text-align: left; margin-bottom: 26px; }
.gate-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 132px);
  line-height: .9;
  letter-spacing: .14em;
  margin-right: -.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(255, 45, 149, .9), 0 0 120px rgba(255, 45, 149, .5);
}
.gate-sub { margin-top: 14px; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--pink-hot); }

/* ───────── Отладка рамок: ?debug ───────── */
.debug .hotspot { animation: none; border: 1px solid #0f0; background: rgba(0, 255, 0, .18); }
.debug .grade { display: none; }

/* ───────── Узкие экраны ───────── */
@media (max-width: 760px) {
  .brand-sub, .nav a[href="#dock"] { display: none; }
  .nav { gap: 14px; flex-wrap: nowrap; }
  .nav > * { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .nav i { display: none; }
  .nav > .lang { position: absolute; right: var(--gutter); top: calc(100% - 6px); }
  .unmute { top: 104px; }
  .unmute small { display: none; }
  .lang button { min-width: 36px; min-height: 36px; }
  .brand-mark { font-size: 15px; letter-spacing: .18em; }
  .sound span:last-child { display: none; }
  .hero { bottom: 190px; }
  .lede { font-size: 12.5px; }
  .dock { left: 0; width: auto; clip-path: none; border-left: 0; }
  .dock::before { display: none; }
  .dock-body { padding-left: var(--gutter); }
  .dock-meta span:last-child { display: none; }
  .callout { display: none; }
}
@media (max-height: 560px) {
  .lede { display: none; }
  .hero-actions { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stage-zoom { animation: none; }
  h1 em.is-glitching, .dock-title.is-glitching { animation: none; }
  .reveal, .gated .reveal, .cinema .hero .reveal { transform: none; filter: none; }
}
