/* Александр Амосенко: общие стили для /, /en/ и 404.html */
:root {
  --bg-rgb: 11 11 12;      /* каналы для полупрозрачных оттенков: rgb(var(--ink-rgb) / .16) */
  --ink-rgb: 236 235 231;  /* stars.js читает этот токен для частиц и орбит */
  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --dim: #a7a5a0;
  --faint: #5d5c59;
  --line: rgb(var(--ink-rgb) / .16);
  --glow: rgba(255, 255, 255, .55);
  --display: 'Roboto Flex', 'Arial Narrow', sans-serif;
  --text: 'Commissioner', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--text);
  overflow-x: hidden; overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* плёночное зерно поверх всего */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 50;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mo body::after { animation: grain 1.2s 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%, 2%); } 100% { transform: translate(0, 0); }
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }

/* переходы между потоками (View Transitions): как будто кадр снят с длинной выдержкой */
::view-transition-old(root) { animation: vt-out .55s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .75s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(16px); transform: scale(1.03); } }
@keyframes vt-in { from { opacity: 0; filter: blur(16px); } }

/* ---------- фото с «длинной выдержкой» ---------- */
.expo { position: relative; overflow: hidden; background: #000; }
figure.expo { margin: 0; }
.expo img { width: 100%; height: 100%; object-fit: cover; }
.expo .ghost {
  position: absolute; inset: 0;
  mix-blend-mode: screen; opacity: .32;
  filter: blur(5px);
  transform: translateX(-2.5%) scale(1.02);
  pointer-events: none;
}
.mo .expo .ghost { transition: transform 2.4s var(--ease), opacity 2.4s; }
.mo .expo:not(.in) .ghost { transform: translateX(-9%) scale(1.04); opacity: .5; }

/* ---------- I. первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom));
  isolation: isolate;
  touch-action: pan-y;
}
.hero .expo { position: absolute; inset: 0; z-index: -1; }
.hero .expo picture { position: absolute; inset: 0; }
.hero .expo img { object-position: 64% 30%; }
.mo .hero .ghost { animation: drift 3.2s var(--ease) both; }
@keyframes drift { from { transform: translateX(-10%) scale(1.04); opacity: .55; } to { transform: translateX(-2.5%) scale(1.02); opacity: .32; } }
#expoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.hero.gl #expoCanvas { opacity: 1; }
.hero.gl .ghost { display: none; }
.hero .expo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .35) 34%, rgb(var(--bg-rgb) / 0) 60%),
    linear-gradient(to right, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / 0) 46%);
}
.name {
  margin: 0;
  font: 400 clamp(84px, 13vw, 240px)/.8 var(--display);
  font-stretch: 28%;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.name > span { display: block; white-space: nowrap; }
.name i { font-style: normal; display: inline-block; font-weight: var(--w); }
.name .w2 { margin-left: .42em; }
/* вес букв имени: «Александр» тяжелеет к концу, «Амосенко» легчает; --d — очередь проявления */
.name .w1 i:nth-child(1) { --w: 100; --d: 0; } .name .w1 i:nth-child(2) { --w: 150; --d: 1; } .name .w1 i:nth-child(3) { --w: 200; --d: 2; }
.name .w1 i:nth-child(4) { --w: 250; --d: 3; } .name .w1 i:nth-child(5) { --w: 300; --d: 4; } .name .w1 i:nth-child(6) { --w: 350; --d: 5; }
.name .w1 i:nth-child(7) { --w: 400; --d: 6; } .name .w1 i:nth-child(8) { --w: 450; --d: 7; } .name .w1 i:nth-child(9) { --w: 500; --d: 8; }
.name .w2 i:nth-child(1) { --w: 1000; --d: 9; } .name .w2 i:nth-child(2) { --w: 930; --d: 10; } .name .w2 i:nth-child(3) { --w: 860; --d: 11; }
.name .w2 i:nth-child(4) { --w: 790; --d: 12; } .name .w2 i:nth-child(5) { --w: 720; --d: 13; } .name .w2 i:nth-child(6) { --w: 650; --d: 14; }
.name .w2 i:nth-child(7) { --w: 580; --d: 15; } .name .w2 i:nth-child(8) { --w: 510; --d: 16; }
.mo .name i { animation: focus 1.6s var(--ease) both; animation-delay: calc(var(--d) * 60ms + 200ms); }
@keyframes focus {
  from { opacity: 0; filter: blur(18px); transform: translateX(-.25em); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.role {
  margin: clamp(18px, 3vh, 30px) 0 0 .2em;
  font: 400 clamp(19px, 1.7vw, 24px)/1.35 var(--text);
  max-width: 30ch;
}
.mo .role { animation: focus 1.6s 1.1s var(--ease) both; }
.hint {
  position: absolute; right: var(--pad); bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom));
  margin: 0; font: 400 14px/1.4 var(--mono); color: var(--dim); text-align: right;
  opacity: 0; transition: opacity 1s;
}
.hero.gl .hint { opacity: .85; }
.hero.touched .hint { opacity: 0; }
.hint .t { display: none; }
@media (hover: none) { .hint .m { display: none; } .hint .t { display: inline; } }

/* ---------- общие разделы ---------- */
main > section { position: relative; padding: clamp(96px, 16vh, 180px) var(--pad); }
.sh { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 32px); margin-bottom: clamp(36px, 6vh, 72px); }
.num {
  flex: none;
  font: 100 clamp(56px, 8vw, 128px)/.8 var(--display);
  font-stretch: 40%;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  user-select: none;
}
h2 {
  margin: 0;
  font: 800 clamp(52px, 8.4vw, 150px)/.86 var(--display);
  font-stretch: 30%;
  text-transform: uppercase;
  text-wrap: balance;
}
h2 .t { font-weight: 200; }
h2 .sw { white-space: nowrap; } /* слова SplitText: перенос только между словами */
.sh h2, .ma .body > *, .about > div, .works li > div { min-width: 0; }
h2 .brand { text-transform: none; }
p { margin: 0 0 1em; max-width: 60ch; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; }
.dim { color: var(--dim); }
figcaption, .cap { font: 400 14px/1.5 var(--mono); color: var(--dim); margin-top: 12px; }

/* проявление из размытия */
.mo .rv { opacity: 0; filter: blur(14px); transform: translateY(18px); transition: opacity 1.2s var(--ease), filter 1.4s var(--ease), transform 1.2s var(--ease); }
.mo .rv.in { opacity: 1; filter: none; transform: none; }

/* ссылки-строки */
.go {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 6px 0;
  font: 500 19px/1.3 var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--faint);
  transition: text-decoration-color .3s, text-shadow .3s;
}
.go:hover { text-decoration-color: var(--ink); text-shadow: 0 0 18px var(--glow); }

/* ---------- вступление: хайку ---------- */
.intro { display: grid; gap: clamp(40px, 6vw, 96px); }
.haiku {
  margin: 0;
  font: 300 clamp(44px, 6.4vw, 108px)/.98 var(--display);
  font-stretch: 34%;
}
.haiku span { display: block; }
.haiku span:nth-child(2) { padding-left: 1.4em; font-weight: 700; }
.haiku span:nth-child(3) { padding-left: .6em; }
.haiku em { font-style: normal; text-shadow: .22em 0 .16em rgb(var(--ink-rgb) / .28), .5em 0 .3em rgb(var(--ink-rgb) / .1); }
.intro .lead { justify-self: end; max-width: 34ch; }
.intro .lead + p { justify-self: end; max-width: 34ch; margin-top: -1em; }
.intro .who { order: 1; max-width: 34ch; } /* plain who-line: first in the source for bots, after the lead on screen */
.fin .invite { margin: 0 0 12px; }

/* ---------- «Семь потоков»: оглавление из бегущих строк ---------- */
.streams { position: relative; padding: clamp(40px, 8vh, 96px) 0 clamp(64px, 12vh, 140px); overflow: hidden; overflow: clip; }
.streams .cap { padding: 0 var(--pad); margin: 0 0 clamp(20px, 4vh, 40px); }
.streams ol { list-style: none; margin: 0; padding: 0; }
.streams li { position: relative; margin: .06em 0 0; transform: rotate(var(--r)); font-size: clamp(44px, 7vw, 116px); }
.streams li:first-child { margin-top: 0; }
/* у каждого потока свой наклон (--r), вес (--wg) и ширина букв (--st) */
.streams li:nth-child(1) { --r: -3deg; --wg: 200; --st: 30%; }
.streams li:nth-child(2) { --r: 2.5deg; --wg: 300; --st: 60%; }
.streams li:nth-child(3) { --r: -1.5deg; --wg: 900; --st: 28%; }
.streams li:nth-child(4) { --r: 4deg; --wg: 800; --st: 34%; }
.streams li:nth-child(5) { --r: -4.5deg; --wg: 500; --st: 80%; }
.streams li:nth-child(6) { --r: 1.5deg; --wg: 150; --st: 45%; }
.streams li:nth-child(7) { --r: -2deg; --wg: 1000; --st: 25%; }
@media (min-width: 1300px) { .streams li { transform: rotate(calc(var(--r) * .55)); } }
.stream {
  display: block; position: relative;
  width: max-content; min-height: 56px;
  text-decoration: none; white-space: nowrap;
  font: var(--wg, 600) 1em/1.04 var(--display);
  font-stretch: var(--st, 40%);
  text-transform: uppercase;
  transition: opacity .5s, text-shadow .5s, filter .5s;
  will-change: transform;
}
.stream.ol { color: transparent; -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .62); }
.stream .seg { display: inline-block; padding-right: .5em; }
.stream i, .menu a i { font-style: normal; }
.stream.nc, .menu a.nc { text-transform: none; }
.stream b { font-weight: 100; color: transparent; -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .7); margin-right: .25em; }
.stream.ol b { -webkit-text-stroke-color: var(--ink); }
.streams.has-pick .stream:not(.picked) { opacity: .12; filter: blur(3px); }
.stream.picked, .stream:hover, .stream:focus-visible { color: var(--ink); -webkit-text-stroke-color: transparent; text-shadow: 0 0 .35em var(--glow); }
.stream:focus-visible { outline-offset: -4px; }

/* ---------- IV. Хор Русской Армии ---------- */
.choir { display: grid; gap: clamp(36px, 5vw, 80px); }
.choir .pair { display: grid; grid-template-columns: 1fr .72fr; gap: 14px; align-items: end; }
.choir .expo { aspect-ratio: 13 / 15.5; }
.choir .expo img { object-position: 30% 20%; }
.choir .pair .expo + .expo { aspect-ratio: 1; }
.choir h2 span { display: inline-block; }
.choir h2 span:nth-child(2) { padding-left: .9em; }

/* видеоплеер с «видимым голосом» */
.vp { display: grid; gap: 18px; }
.vp-screen { position: relative; background: #000; overflow: hidden; isolation: isolate; }
.vp-screen::before { content: ""; position: absolute; inset: -48px; z-index: -1; background: var(--poster, none) center / cover no-repeat; filter: blur(32px) brightness(.42); }
.vp-screen video { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.vp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px 0 20px;
  border: 1px solid rgb(var(--ink-rgb) / .45); border-radius: 28px;
  background: rgb(var(--bg-rgb) / .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 17px/1 var(--mono); cursor: pointer; white-space: nowrap;
  transition: background .3s, box-shadow .3s, opacity .4s;
}
.vp-play::before { content: ""; width: 0; height: 0; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vp-play:hover { background: rgb(var(--ink-rgb) / .14); box-shadow: 0 0 30px rgba(255, 255, 255, .18); }
.vp.on .vp-play { opacity: 0; pointer-events: none; }
.vp-word {
  margin: 0; white-space: nowrap; overflow: hidden;
  font: 400 clamp(56px, 9vw, 170px)/.9 var(--display); font-stretch: 40%;
  text-transform: uppercase; user-select: none;
}
.vp-word i { font-style: normal; display: inline-block; font-weight: var(--w, 300); font-stretch: var(--s, 40%); }
.vp-eq { display: flex; align-items: flex-end; justify-content: space-between; height: clamp(64px, 10vh, 110px); user-select: none; overflow: hidden; }
.vp-eq i {
  font: normal var(--w, 200) clamp(64px, 10vh, 110px)/1 var(--display); font-stretch: 60%;
  transform-origin: 50% 100%; transform: scaleY(var(--h, .2));
  color: var(--faint); transition: color .4s;
}
.vp-eq i.past { color: var(--ink); }
.vp.on .vp-eq i { color: var(--ink); }

/* интерлюдии на весь экран */
.wide { height: min(86vh, 900px); }
.wide img { object-position: 40% 40%; }

/* ---------- II. musicAeterna ---------- */
.ma { overflow: hidden; overflow: clip; }
.ma .big {
  margin: 0 0 clamp(28px, 5vh, 56px) calc(var(--pad) * -1);
  font: 100 clamp(84px, 17vw, 300px)/.8 var(--display); font-stretch: 40%;
  white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .5);
  user-select: none; will-change: transform;
}
.ma .body { display: grid; gap: 24px; max-width: 980px; margin-left: auto; }

/* ---------- III. Attaque de panique ---------- */
.adp-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 24px); margin: clamp(36px, 6vh, 72px) 0; align-items: start; }
.adp-gal figure { margin: 0; }
.adp-gal figure:nth-child(2) { margin-top: 18%; }
.adp-gal figure:nth-child(3) { margin-top: 6%; }
.adp-gal .expo { aspect-ratio: 3 / 4; }
.adp-gal img { will-change: transform; }

/* фуга: одна тема, четыре голоса */
.voices { position: relative; margin: clamp(40px, 8vh, 96px) calc(var(--pad) * -1); }
.mo .voices { height: 320vh; }
.voices-pin {
  position: relative; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); overflow: hidden;
}
.mo .voices-pin { position: sticky; top: 0; }
.voices .cap { max-width: none; margin: 0 0 3vh; display: flex; justify-content: space-between; gap: 16px; }
.vstack { position: relative; --fs: min(8.6vw, 11vh); display: grid; gap: calc(var(--fs) * .12); }
.vl { display: flex; align-items: center; gap: .4em; height: calc(var(--fs) * 1.08); }
.vl .vlab { flex: none; width: 2em; font: 400 14px/1 var(--mono); color: var(--dim); font-size: max(14px, calc(var(--fs) * .16)); }
.vl .lane { position: relative; flex: 1; height: 100%; border-bottom: 1px solid var(--line); clip-path: inset(-40% 0 -40% 0); }
.vl .vtx {
  position: absolute; left: 0; top: 50%;
  font: var(--w, 400) var(--fs)/1 var(--display);
  font-stretch: var(--s, 100%);
  white-space: nowrap; text-transform: lowercase;
  transform: translate3d(var(--x, 0px), -50%, 0) scaleY(var(--fy, 1));
  opacity: var(--o, 1); will-change: transform;
}
.vl[data-v="S"] { --w: 150; --s: 60%; }
.vl[data-v="A"] { --w: 380; --s: 80%; }
.vl[data-v="T"] { --w: 620; --s: 100%; }
.vl[data-v="B"] { --w: 950; --s: 125%; }
/* статичный вариант без JS: вступления лесенкой, как в партитуре */
.voices:not(.live) .vl .vtx { position: relative; top: auto; display: inline-block; transform: scaleY(var(--fy, 1)); }
.voices:not(.live) .vl .lane { display: flex; align-items: center; }
.voices:not(.live) .vl[data-v="A"] .lane { padding-left: 6%; }
.voices:not(.live) .vl[data-v="T"] .lane { padding-left: 12%; }
.voices:not(.live) .vl[data-v="B"] .lane { padding-left: 18%; }
.voices:not(.live) .vl[data-v="T"] .vtx { --fy: -1; --o: .8; }
.voices .foot { margin: 3vh 0 0; max-width: 52ch; }
.voices.live .lane { transition: border-color 1.2s var(--ease); }
.voices.tied .lane { border-color: rgb(var(--ink-rgb) / .42); }
@media (min-width: 761px) { .voices .vstack { margin-right: 52px; } }

.songs { list-style: none; margin: clamp(32px, 6vh, 64px) 0; padding: 0; border-top: 1px solid var(--line); }
.songs li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  padding: clamp(14px, 2.4vh, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.songs b {
  font: 700 clamp(48px, 7vw, 120px)/.9 var(--display); font-stretch: 32%;
  text-transform: uppercase;
  transition: text-shadow .6s, font-weight .6s, font-stretch .6s;
}
.songs li:hover b { font-weight: 300; font-stretch: 60%; text-shadow: .12em 0 .14em rgb(var(--ink-rgb) / .3); }
.songs span { font-size: 19px; color: var(--dim); }

/* ---------- V. Сочинения: звёздная карта ---------- */
.sky { position: relative; margin: 0 calc(var(--pad) * -1); display: none; }
.js .sky { display: block; }
.mo .sky { height: 420vh; }
.sky-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.mo .sky-pin { position: sticky; top: 0; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-title {
  position: absolute; left: var(--pad); right: var(--pad); top: clamp(64px, 12vh, 120px); margin: 0;
  font: 400 15px/1.5 var(--mono); color: var(--dim);
  transition: opacity .8s;
}
.sky-aside {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(clamp(32px, 8vh, 80px) + env(safe-area-inset-bottom)); margin: 0;
  max-width: 34ch;
  font: 300 clamp(22px, 2.2vw, 32px)/1.25 var(--display); font-stretch: 60%;
  transition: opacity .8s, filter .8s;
}
.sky-hint { position: absolute; left: var(--pad); bottom: calc(clamp(32px, 8vh, 80px) + env(safe-area-inset-bottom)); margin: 0; font: 400 15px/1.5 var(--mono); color: var(--dim); opacity: 0; transition: opacity .8s; }
.sky.late .sky-aside { opacity: 0; filter: blur(8px); }
.sky.late .sky-hint { opacity: 1; }
.no-mo-sky .sky-aside { opacity: 1 !important; filter: none !important; top: clamp(100px, 16vh, 150px); bottom: auto; }
.no-mo-sky .sky-hint { opacity: 1; }
.star {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .6s;
  will-change: transform;
}
.sky.late .star, .no-mo-sky .star { opacity: 1; pointer-events: auto; }
.star::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: var(--sz, 10px); height: var(--sz, 10px); margin: calc(var(--sz, 10px) / -2) 0 0 calc(var(--sz, 10px) / -2);
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, .7), 0 0 40px 10px rgba(255, 255, 255, .18);
  transition: transform .3s;
}
.star:hover::before, .star:focus-visible::before, .star[aria-expanded="true"]::before { transform: scale(1.6); }
.star span {
  position: absolute; left: 38px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font: 400 14px/1.3 var(--mono); color: var(--ink); text-align: left;
  padding: 3px 7px; border-radius: 3px; background: rgb(var(--bg-rgb) / .72);
  text-shadow: 0 0 8px #000, 0 0 2px #000;
}
.star span small { display: block; font-size: 1em; color: rgb(var(--ink-rgb) / .78); }
.star.l span { left: auto; right: 38px; text-align: right; }
.card {
  position: absolute; z-index: 5;
  left: var(--pad); right: var(--pad); bottom: calc(clamp(20px, 5vh, 56px) + env(safe-area-inset-bottom));
  max-width: 560px; margin-left: auto;
  padding: 26px 26px 22px;
  background: rgb(var(--bg-rgb) / .78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgb(var(--ink-rgb) / .22);
  box-shadow: 0 0 80px rgba(255, 255, 255, .06);
}
.card[hidden] { display: none; }
.mo .card:not([hidden]) { animation: focus .7s var(--ease) both; }
.card .x {
  position: absolute; right: 8px; top: 8px; width: 48px; height: 48px;
  border: 0; background: transparent; cursor: pointer; font: 400 26px/1 var(--mono); color: var(--dim);
}
.card .x:hover { color: var(--ink); }
.card .y, .works .y, .gigs .when { font: 400 15px/1.4 var(--mono); color: var(--dim); }
.card h3 { margin: 6px 48px 12px 0; font: 600 clamp(32px, 3.4vw, 48px)/.95 var(--display); font-stretch: 34%; text-transform: uppercase; }
.card h3 b { font-weight: 900; }
.card p, .works p { color: var(--dim); }
.card p { margin: 0; }
.card p strong, .works p strong { color: var(--ink); font-weight: 500; }
.card .streams7 { margin: 0 0 12px; }

.works { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vh, 80px); }
.works li { display: grid; grid-template-columns: 7ch 1fr; gap: 8px 24px; align-items: baseline; }
.works h3 { margin: 0 0 12px; font: 600 clamp(32px, 4vw, 60px)/.95 var(--display); font-stretch: 34%; text-transform: uppercase; }
.works .main h3 { font-size: clamp(54px, 9vw, 160px); font-weight: 200; line-height: .84; }
.works .main h3 b { font-weight: 900; }
.streams7 { display: flex; gap: clamp(10px, 2vw, 28px); margin: 16px 0 20px; font: 400 15px/1 var(--mono); color: var(--faint); }
.streams7 span:nth-child(1) { filter: blur(3px); } .streams7 span:nth-child(2) { filter: blur(2px); }
.streams7 span:nth-child(3) { filter: blur(1px); } .streams7 span:nth-child(7) { color: var(--ink); }
/* при живой карте список становится указателем: год и название, описание — в карточке звезды */
.works.idx { gap: 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 8vh, 80px); }
.works.idx li { display: block; border-bottom: 1px solid var(--line); }
.works.idx li > div > p, .works.idx .streams7 { display: none; }
.works.idx .open {
  display: grid; grid-template-columns: 7ch 1fr; gap: 24px; align-items: baseline; width: 100%;
  min-height: 56px; padding: 14px 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.works.idx h3, .works.idx .main h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 500; line-height: 1; }
.works.idx .main h3 b { font-weight: 800; }
.works.idx .open:hover h3 { text-shadow: 0 0 .4em var(--glow); }

/* ---------- VI. Голос и клавиши ---------- */
.vv { display: grid; gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(64px, 12vh, 140px); }
/* рамка одна для вертикальных и горизонтальных записей (видео вписано): при смене записи ничего не прыгает */
.vv .vp-screen { aspect-ratio: 9 / 16; max-height: 78vh; max-height: 78svh; margin: 0 auto; width: 100%; }
.vv .vp-type { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.tracks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tracks button {
  min-height: 48px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 24px; background: transparent; cursor: pointer;
  font: 400 15px/1.2 var(--mono); color: var(--dim);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.tracks button:hover { color: var(--ink); border-color: rgb(var(--ink-rgb) / .5); }
.tracks button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); box-shadow: 0 0 20px rgba(255, 255, 255, .12); }
.vv .cap { margin: 0; font-size: 15px; max-width: 46ch; }
.about { display: grid; gap: clamp(36px, 5vw, 80px); }
.about .expo { aspect-ratio: 3 / 4; max-width: 520px; }
.about .expo img { object-position: 50% 30%; }
h3.sub { margin: clamp(40px, 6vh, 64px) 0 16px; font: 600 clamp(30px, 3vw, 44px)/1 var(--display); font-stretch: 34%; text-transform: uppercase; }
.skills { list-style: none; margin: 0; padding: 0; counter-reset: s; max-width: 640px; }
.skills li {
  counter-increment: s;
  display: grid; grid-template-columns: 3ch 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.skills li::before { content: counter(s, upper-roman); font: 400 14px/1.9 var(--mono); color: var(--faint); }

/* ---------- VII. Финал ---------- */
.fin {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  isolation: isolate; overflow: hidden; overflow: clip;
}
.fin .blurlight { position: absolute; inset: -60px; z-index: -1; background: #000; }
.fin .blurlight video { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 40%; filter: blur(18px) brightness(.42) contrast(1.2); transform: scale(1.1); }
.fin .blurlight::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 45%, rgb(var(--bg-rgb) / .1), rgb(var(--bg-rgb) / .88) 80%); }
.fin .haiku { font-size: clamp(46px, 6.6vw, 112px); margin-bottom: clamp(28px, 5vh, 56px); }
.fin .wr { max-width: none; margin: 0; }

/* афиша: ближайшие концерты над финальным хайку, строки как список аранжировок */
.afisha { margin: 0 0 clamp(56px, 10vh, 120px); max-width: 980px; }
.afisha h3.sub { margin-top: 0; }
.gigs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gigs li { display: grid; gap: 4px 24px; padding: clamp(14px, 2.4vh, 22px) 0; border-bottom: 1px solid var(--line); }
.gigs b { font: 600 clamp(30px, 3vw, 44px)/1 var(--display); font-stretch: 40%; }
.gigs .note { color: var(--dim); }
.gigs .go { justify-self: start; min-height: 44px; }
.write {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
  min-height: 56px; padding: 8px 0;
  font: 800 clamp(48px, 7.4vw, 128px)/.95 var(--display); font-stretch: 30%;
  text-transform: uppercase; text-decoration: none;
  transition: text-shadow .5s, font-weight .5s;
}
.write small { font: 400 18px/1.4 var(--text); text-transform: none; color: var(--dim); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--faint); }
.write:hover { text-shadow: 0 0 .4em var(--glow); font-weight: 1000; }
.write:hover small { text-decoration-color: var(--ink); }
.fin .also { margin-top: clamp(24px, 4vh, 48px); display: flex; flex-wrap: wrap; gap: 0 32px; }

footer { padding: 32px var(--pad) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; display: grid; gap: 10px; }
footer p { max-width: 80ch; margin: 0; }

/* ---------- навигация: рейка потоков (десктоп) ---------- */
.rail { position: fixed; z-index: 40; right: clamp(10px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before, .rail ol::after { content: ""; position: absolute; right: 21.5px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.rail ol::after { background: var(--ink); bottom: auto; height: calc((100% - 44px) * var(--p, 0)); box-shadow: 0 0 10px var(--glow); }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 44px; height: 44px; text-decoration: none; }
.rail .dot { position: relative; z-index: 1; width: 7px; height: 7px; margin-right: 18.5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--faint); transition: background .4s, box-shadow .4s, transform .4s, border-color .4s; }
.rail .lbl { position: absolute; right: 44px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; font: 400 14px/1 var(--mono); color: var(--dim); opacity: 0; filter: blur(4px); pointer-events: none; transition: opacity .35s, filter .35s, transform .35s; }
.rail .lbl b { font-weight: 400; color: var(--ink); }
.rail .lbl em { font-style: normal; margin-left: 10px; }
.rail a[aria-current]:not(:hover):not(:focus-visible) .lbl em { display: none; }
.rail a:hover .lbl, .rail a:focus-visible .lbl, .rail a[aria-current] .lbl { opacity: 1; filter: none; transform: translate(0, -50%); }
.rail a[aria-current] .dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 14px 3px var(--glow); transform: scale(1.3); }
.rail.on-hero .lbl { opacity: 0 !important; }
.rail.on-hero a:hover .lbl, .rail.on-hero a:focus-visible .lbl { opacity: 1 !important; }
.fab, .menu { display: none; }
/* js/app.js не загрузился (страховка в <head>): кнопки, которым нужен скрипт, убраны, у видео родные controls */
.noapp .vp-play, .noapp .tracks, .noapp .fab, .noapp .sky { display: none !important; }

/* ---------- язык: RU / EN, выбранный горит, другой не в фокусе ---------- */
.lang { display: flex; font: 400 15px/1 var(--mono); }
body > .lang { position: fixed; z-index: 40; top: calc(10px + env(safe-area-inset-top)); right: clamp(10px, 1.6vw, 24px); }
.lang a { display: grid; place-items: center; min-width: 44px; height: 44px; text-decoration: none; color: var(--dim); filter: blur(1.2px); transition: color .35s, filter .35s, text-shadow .35s; }
.lang a:hover, .lang a:focus-visible { color: var(--ink); filter: none; }
.lang a[aria-current] { color: var(--ink); filter: none; text-shadow: 0 0 12px var(--glow); }

@media (min-width: 761px) {
  .intro { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .intro .lead, .intro .lead + p { grid-column: 2; }
  .intro .haiku { grid-row: 1 / span 2; }
  .intro .who { grid-column: 2; justify-self: end; margin-top: -1em; }
  .choir { grid-template-columns: minmax(300px, 5fr) 7fr; align-items: start; }
  .choir .pair { position: sticky; top: 10vh; }
  .about { grid-template-columns: 7fr minmax(280px, 5fr); align-items: start; }
  .about .expo { order: 2; position: sticky; top: 10vh; }
  .works li { grid-template-columns: 10ch 1fr; }
  .works.idx .open { grid-template-columns: 10ch 1fr; }
  .gigs li { grid-template-columns: 24ch 1fr; }
  .gigs li > * { grid-column: 2; }
  .gigs .when { grid-column: 1; grid-row: 1 / span 4; padding-top: .7em; }
  .vv { grid-template-columns: minmax(280px, 4fr) 7fr; align-items: center; }
  .vv .vp { display: contents; }
  .vv .vp-screen { grid-row: 1; grid-column: 1; }
  .vv .vp-type { grid-row: 1; grid-column: 2; }
  .star span { font-size: 15px; }
  body > .lang { background: rgb(var(--bg-rgb) / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 22px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .name { font-size: 15.5vw; }
}

/* ---------- мобильный ---------- */
@media (max-width: 760px) {
  .rail { display: none; }
  .hero .expo img { object-position: 50% 20%; }
  .hero .expo::after { background: linear-gradient(to top, rgb(var(--bg-rgb) / .95) 0%, rgb(var(--bg-rgb) / .55) 30%, rgb(var(--bg-rgb) / 0) 52%); }
  .name { font-size: 16.4vw; }
  .name .w2 { margin-left: .3em; }
  .hint { position: static; text-align: left; margin: 14px 0 0 .2em; font-size: 17px; padding-right: 84px; }
  .sh { align-items: flex-end; gap: 12px; }
  .num { font-size: 52px; }
  .role { padding-right: 84px; }
  h2 { font-size: clamp(36px, 12.4vw, 76px); } /* «СОЧИНЕНИЯ», «musicAeterna» целиком и на 320 px */
  .haiku { font-size: clamp(44px, 13vw, 64px); }
  .haiku span:nth-child(2) { padding-left: .9em; }
  .streams li { font-size: clamp(40px, 12.5vw, 60px); }
  .wide { height: 72svh; }
  .songs b { font-size: clamp(44px, 13vw, 64px); }
  .works li { grid-template-columns: minmax(0, 1fr); }
  .works .main h3 { font-size: clamp(34px, 11.4vw, 72px); } /* «CONSCIOUSNESS» в строку */
  h3.sub { font-size: clamp(24px, 8.4vw, 30px); } /* «ПРОФЕССИОНАЛЬНЫЕ» на 320 px */
  .works.idx .open { grid-template-columns: 5.5ch minmax(0, 1fr); gap: 14px; }
  .works.idx h3, .works.idx .main h3 { font-size: min(28px, 8.4vw); overflow-wrap: break-word; } /* «CONSCIOUSNESS» в колонку и на 320 px */
  .write { font-size: clamp(46px, 13.5vw, 64px); }
  .works .y, .streams7, figcaption, .cap, .vv .cap, .sky-title, .sky-hint, .card .y, .tracks button, .vl .vlab, .gigs .when { font-size: 17px; }
  .vstack { --fs: min(11.5vw, 7.4vh); gap: calc(var(--fs) * .5); }
  .vl { position: relative; height: calc(var(--fs) * 1.25); }
  .vl .vlab { position: absolute; left: 0; top: -20px; width: auto; line-height: 17px; }
  .voices:not(.live) .vl .vtx { font-size: calc(var(--fs) * .78); }
  .voices .cap { flex-direction: column; gap: 4px; margin-bottom: calc(3vh + 22px); }
  .adp-gal { grid-template-columns: 1fr 1fr; }
  .adp-gal figure:nth-child(3) { grid-column: 1 / -1; width: 64%; margin: -8% 0 0 auto; }
  .star span { font-size: 17px; }
  .vv .vp-screen { aspect-ratio: auto; height: 64vh; height: 64svh; max-height: none; }
  .vv .vp-word { font-size: 17vw; }
  .card { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 22px 20px 20px;
    display: flex; flex-direction: column; max-height: calc(100vh - 100px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); max-height: calc(100svh - 100px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); }
  .card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; } /* длинная карточка на невысоком экране: крестик остаётся виден */
  .sky-hint, .voices .foot { padding-right: 84px; }
  footer { font-size: 17px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .fab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; z-index: 45;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    min-width: 64px; height: 56px; padding: 0 18px;
    border: 1px solid rgb(var(--ink-rgb) / .3); border-radius: 28px;
    background: rgb(var(--bg-rgb) / .62);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    font: 400 17px/1 var(--mono); cursor: pointer;
  }
  .fab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px 2px var(--glow); }
  .menu {
    overflow-x: hidden;
    display: block; position: fixed; inset: 0; z-index: 60;
    width: 100%; max-width: none; height: 100%; max-height: none;
    margin: 0; border: 0;
    padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    background: rgb(var(--bg-rgb) / .94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    color: var(--ink); overscroll-behavior: contain;
  }
  .menu:not([open]) { display: none; }
  .menu::backdrop { background: transparent; }
  .menu ol { list-style: none; margin: 48px 0 0; padding: 0; }
  .menu a { display: flex; align-items: baseline; gap: 14px; min-height: 56px; padding: 6px 0; text-decoration: none; font: 600 clamp(32px, 10.5vw, 52px)/1 var(--display); font-stretch: 34%; text-transform: uppercase; }
  .menu a span { font: 400 17px/1 var(--mono); color: var(--dim); min-width: 3.4ch; }
  .menu a[aria-current] { text-shadow: 0 0 .35em var(--glow); }
  .menu li:nth-child(even) a { padding-left: 1.2em; }
  .menu .x { position: absolute; right: 16px; top: calc(16px + env(safe-area-inset-top)); width: 56px; height: 56px; border: 1px solid rgb(var(--ink-rgb) / .3); border-radius: 28px; background: transparent; font: 400 17px/1 var(--mono); cursor: pointer; }
  .menu .cap { margin: 0; font: 400 17px/56px var(--mono); color: var(--dim); }
  .menu .lang { margin: 28px 0 0 -12px; }
  .menu .lang a { display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0; font: 400 17px/1 var(--mono); text-transform: none; }
  body > .lang { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; font-size: 17px; }
  .mo .menu[open] li { animation: focus .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms); }
  .menu li:nth-child(2) { --d: 1; } .menu li:nth-child(3) { --d: 2; } .menu li:nth-child(4) { --d: 3; }
  .menu li:nth-child(5) { --d: 4; } .menu li:nth-child(6) { --d: 5; } .menu li:nth-child(7) { --d: 6; }
}

/* ---------- 404 ---------- */
.e404 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 40px); padding: var(--pad); }
.e404 .num { font-size: clamp(96px, 16vw, 220px); }
.e404 .haiku { font-size: clamp(40px, 6vw, 96px); }
.e404 .links { display: flex; flex-wrap: wrap; gap: 0 32px; }
