/* ==========================================================================
   TYGRAN — CINEMA LAYER (upgrade v2)
   Подключается ПОСЛЕ main.css и добавляет:
   16. Прелоадер
   17. Плёночное зерно и виньетка
   18. Полоса прогресса прокрутки
   19. Бегущая строка (marquee)
   20. Видео в карточках
   21. Showreel — широкая видео-полоса
   22. Цифры / статистика
   23. Свечение за курсором и «магнитные» кнопки
   24. Нижняя панель на телефоне
   25. Появление заголовков по словам
   ========================================================================== */

/* ============ 16. ПРЕЛОАДЕР ============ */
body.is-loading { overflow: hidden; }
.tyg-loader {
	position: fixed; inset: 0; z-index: 9999; background: #000;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
	transition: opacity .6s var(--ease), visibility .6s;
}
.tyg-loader.is-done { opacity: 0; visibility: hidden; }
.tyg-loader__bars { display: flex; align-items: flex-end; gap: 11px; height: 92px; }
.tyg-loader__bars i {
	display: block; width: 15px; border-radius: 40px; background: #fff;
	box-shadow: 0 0 22px rgba(255, 255, 255, .35);
	animation: loadBar 1.15s infinite cubic-bezier(.45, .05, .2, 1);
}
.tyg-loader__bars i:nth-child(1) { height: 46px; animation-delay: 0s; }
.tyg-loader__bars i:nth-child(2) {
	height: 92px; background: var(--gold);
	box-shadow: 0 0 34px rgba(255, 198, 43, .6), 0 0 70px rgba(255, 198, 43, .25);
	animation-delay: .18s;
}
.tyg-loader__bars i:nth-child(3) { height: 46px; animation-delay: .36s; }
@keyframes loadBar {
	0%   { transform: scaleY(.3); opacity: .6; }
	20%  { transform: scaleY(1); opacity: 1; }
	45%  { transform: scaleY(.45); opacity: .8; }
	70%  { transform: scaleY(.9); opacity: 1; }
	100% { transform: scaleY(.3); opacity: .6; }
}
.tyg-loader__bars i { transform-origin: bottom; }
.tyg-loader__word {
	font-family: var(--font-display); font-weight: 700; font-size: 12px;
	letter-spacing: .58em; text-transform: uppercase; color: var(--mut); text-indent: .58em;
}
.tyg-loader__bar {
	position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
	width: 180px; height: 1px; background: rgba(255, 255, 255, .16); overflow: hidden;
}
.tyg-loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }

/* ============ 17. ЗЕРНО И ВИНЬЕТКА ============ */
.tyg-grain {
	position: fixed; inset: -120px; z-index: 400; pointer-events: none; opacity: .32;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
	animation: grainShift 700ms steps(2) infinite; will-change: transform;
	mix-blend-mode: overlay;
}
@keyframes grainShift {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-14px, 8px); }
	50% { transform: translate(10px, -12px); }
	75% { transform: translate(-8px, -6px); }
	100% { transform: translate(6px, 10px); }
}
.tyg-vignette {
	position: fixed; inset: 0; z-index: 399; pointer-events: none;
	background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .55) 100%);
}

/* ============ 18. ПРОГРЕСС ПРОКРУТКИ ============ */
.tyg-progress {
	position: fixed; top: 0; left: 0; z-index: 500; height: 2px; width: 0;
	background: linear-gradient(90deg, rgba(255, 198, 43, .2), var(--gold));
	box-shadow: 0 0 14px rgba(255, 198, 43, .6);
}

/* ============ 19. БЕГУЩАЯ СТРОКА ============ */
.marquee {
	position: relative; overflow: hidden; padding: 20px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 198, 43, .03), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
	display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
	font-family: var(--font-body); font-weight: 400; text-transform: uppercase;
	font-size: clamp(11px, 1.15vw, 15px); line-height: 1; letter-spacing: .34em;
	color: rgba(255, 255, 255, .5); white-space: nowrap; cursor: default;
	transition: color .4s var(--ease), letter-spacing .5s var(--ease);
	position: relative;
}
.marquee__item:nth-child(even) { color: rgba(255, 198, 43, .75); }

/* Наведение: слово подсвечивается золотом, буквы слегка расходятся,
   снизу вырастает тонкая линия. Остальные слова приглушаются. */
.marquee:hover .marquee__item { color: rgba(255, 255, 255, .22); }
.marquee:hover .marquee__item:nth-child(even) { color: rgba(255, 198, 43, .3); }
.marquee .marquee__item:hover,
.marquee:hover .marquee__item:hover { color: var(--gold); letter-spacing: .42em; }
.marquee__item::after {
	content: ''; position: absolute; left: 0; right: 26px; bottom: -8px; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease);
}
.marquee__item:hover::after { transform: scaleX(1); }

.marquee__dot {
	width: 5px; height: 13px; border-radius: 4px; background: var(--gold);
	flex: 0 0 auto; opacity: .85; transition: transform .4s var(--ease);
}
.marquee__item:hover .marquee__dot { transform: scaleY(1.5); }

@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ============ 20. ВИДЕО В КАРТОЧКАХ ============ */
.card-media video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
.card.is-playing .card-media video { opacity: 1; }
.card.is-playing .card-media img { opacity: 0; }
.card-media img { transition: transform .8s var(--ease), filter .5s var(--ease), opacity .5s var(--ease); }
.card-live-tag {
	position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
	background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); border: 1px solid var(--gold-line);
	padding: 6px 10px; font-size: 9px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase;
}
.card-live-tag::before {
	content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
	animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ============ 21. SHOWREEL ============ */
.showreel { position: relative; height: clamp(360px, 62vh, 640px); overflow: hidden; border-block: 1px solid var(--line); }
.showreel video, .showreel img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(.3) contrast(1.06);
}
.showreel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .85)); }
.showreel__in {
	position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
	align-items: center; justify-content: center; text-align: center; padding: 0 24px;
}
.showreel__title {
	font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(34px, 7vw, 92px); line-height: .95; margin: 0;
	color: transparent; -webkit-text-stroke: 1.4px #fff;
}
.showreel__title em { font-style: normal; color: var(--gold); -webkit-text-stroke: 0; }
.showreel__sub { margin: 18px 0 28px; font-size: 11px; letter-spacing: .32em; color: #d6d6da; text-transform: uppercase; }

/* ============ 22. ЦИФРЫ ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.stat { padding: 40px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
	font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 66px);
	line-height: 1; color: var(--gold);
}
.stat__num sup { font-size: .45em; vertical-align: super; }
.stat__label { margin-top: 12px; font-size: 10px; letter-spacing: .26em; color: var(--mut); text-transform: uppercase; }

/* ============ 23. КУРСОР И МАГНИТНЫЕ КНОПКИ ============ */
.tyg-cursor {
	position: fixed; top: 0; left: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px;
	border-radius: 50%; pointer-events: none; z-index: 398; opacity: 0;
	background: radial-gradient(circle, rgba(255, 198, 43, .13) 0%, rgba(255, 198, 43, 0) 62%);
	transition: opacity .4s var(--ease); will-change: transform; mix-blend-mode: screen;
}
.tyg-cursor.is-on { opacity: 1; }
.btn.is-magnetic { will-change: transform; }

/* ============ 24. НИЖНЯЯ ПАНЕЛЬ НА ТЕЛЕФОНЕ ============ */
.mobile-bar { display: none; }
@media (max-width: 900px) {
	.mobile-bar {
		display: grid; grid-template-columns: 1fr 1fr; gap: 1px; position: fixed;
		left: 0; right: 0; bottom: 0; z-index: 120; background: var(--line);
		border-top: 1px solid var(--line); transform: translateY(110%);
		transition: transform .45s var(--ease);
	}
	.mobile-bar.is-on { transform: none; }
	.mobile-bar a {
		background: #050505; padding: 16px 10px; text-align: center;
		font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff;
	}
	.mobile-bar a.is-gold { background: var(--gold); color: #000; font-weight: 700; }
	body { padding-bottom: 52px; }
	.tyg-grain { opacity: .2; }
}

/* ============ 25. ЗАГОЛОВКИ ПО СЛОВАМ ============ */
.sec-title .w, .page-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.sec-title .w > span, .page-title .w > span {
	display: inline-block; transform: translateY(105%);
	transition: transform .85s var(--ease);
}
.is-in .sec-title .w > span, .title-in .w > span { transform: none; }
.sec-title .w > span { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---- Затемнение под видео мягче, чем под фото ---- */
.hero-media.has-video .hero-shade {
	background:
		radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .68) 72%),
		linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .2) 38%, rgba(0, 0, 0, .9) 100%);
}
.hero-media.has-video .hero-video { filter: grayscale(.15) contrast(1.04); }

/* ---- Подпись в конце биографии ---- */
.bio-sign {
	margin: 34px 0 0; font-family: var(--font-display); font-weight: 700;
	font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .12em;
	text-transform: uppercase; color: var(--gold);
}

/* ---- Кнопки внутри текстовых блоков не должны наследовать стиль ссылок ---- */
.prose .btn { border-bottom: 0; }
.prose .btn-gold { color: #000; }
.prose .btn-ghost { color: #fff; }
.prose .btn-ghost:hover { color: #000; }

/* ============ Доп. полировка ============ */
.hero-title { text-shadow: 0 24px 70px rgba(0, 0, 0, .75); }
.btn-gold::after {
	content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
	transition: left .75s var(--ease);
}
.btn-gold:hover::after { left: 130%; }

.card, .music-card, .press-card, .gal-item { position: relative; }
.card::after, .music-card::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	border: 1px solid transparent; transition: border-color .45s var(--ease);
}
.card:hover::after, .music-card:hover::after { border-color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation-duration: 90s !important; }
	.tyg-grain { display: none; }
	.tyg-loader__bars i {
		animation-name: yWaveCalm !important;
		animation-duration: 3.2s !important;
		animation-iteration-count: infinite !important;
	}
	.sec-title .w > span, .page-title .w > span { transform: none; }
}

@media (max-width: 900px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.tyg-cursor { display: none; }
}


/* ============ 26. ЛАЙТБОКС ДЛЯ ВИДЕО ============ */
.tyg-lightbox {
	position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .94); backdrop-filter: blur(10px); padding: 24px;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.tyg-lightbox.is-open { opacity: 1; visibility: visible; }
.tyg-lightbox__frame {
	position: relative; width: min(1180px, 100%); aspect-ratio: 16 / 9;
	border: 1px solid var(--gold-line); background: #000;
	transform: scale(.96); transition: transform .45s var(--ease);
}
.tyg-lightbox.is-open .tyg-lightbox__frame { transform: none; }
.tyg-lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tyg-lightbox__close {
	position: absolute; top: -52px; right: 0; width: 40px; height: 40px;
	background: none; border: 1px solid var(--line); color: #fff; font-size: 20px; line-height: 1;
	transition: all .3s var(--ease);
}
.tyg-lightbox__close:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.tyg-lightbox__title {
	position: absolute; top: -46px; left: 0; font-size: 10px; letter-spacing: .24em;
	text-transform: uppercase; color: var(--gold);
}
@media (max-width: 700px) {
	.tyg-lightbox { padding: 16px; }
	.tyg-lightbox__close { top: -46px; width: 34px; height: 34px; }
}


/* ============ 27. ФИРМЕННАЯ ВОЛНА «Y» ============ */
/* Три полосы из логотипа живут как звуковая волна:
   золотая по центру — это буква Y, белые по краям — ритм вокруг неё. */
.ysign {
	padding: clamp(70px, 10vw, 130px) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(ellipse at 50% 50%, rgba(255, 198, 43, .07) 0%, rgba(255, 198, 43, 0) 62%),
		#000;
}
.ysign__in { display: flex; flex-direction: column; align-items: center; gap: 34px; }

.ysign__bars {
	display: flex; align-items: flex-start; justify-content: center; gap: clamp(12px, 1.5vw, 20px);
	height: clamp(120px, 15vw, 200px);
}
.ysign__bars i {
	display: block; width: clamp(16px, 1.8vw, 26px); border-radius: 40px;
	background: #fff; transform-origin: top center;
	box-shadow: 0 0 26px rgba(255, 255, 255, .35);
	animation: yWave 2.6s infinite cubic-bezier(.45, .05, .2, 1);
}
.ysign__bars .b1 { height: 52%; animation-delay: 0s; }
.ysign__bars .b2 {
	/* золотая полоса — это буква Y: начинается ниже и уходит глубже, как в логотипе */
	height: 82%; margin-top: 18%; background: var(--gold);
	box-shadow: 0 0 40px rgba(255, 198, 43, .55), 0 0 90px rgba(255, 198, 43, .25);
	animation-duration: 2s; animation-delay: .22s;
}
.ysign__bars .b3 { height: 52%; animation-delay: .44s; }

@keyframes yWave {
	0%   { transform: scaleY(.28); opacity: .55; }
	18%  { transform: scaleY(1.05); opacity: 1; }
	38%  { transform: scaleY(.45); opacity: .75; }
	58%  { transform: scaleY(.92); opacity: 1; }
	78%  { transform: scaleY(.36); opacity: .65; }
	100% { transform: scaleY(.28); opacity: .55; }
}

/* При наведении волна оживает — как будто прибавили громкость */
.ysign:hover .ysign__bars i { animation-duration: 1s; }
.ysign:hover .ysign__bars .b2 { animation-duration: .8s; }

.ysign__text {
	margin: 0; font-family: var(--font-body); font-weight: 400;
	font-size: clamp(11px, 1.15vw, 14px); letter-spacing: .5em; text-indent: .5em;
	text-transform: uppercase; color: rgba(255, 255, 255, .55);
	transition: color .5s var(--ease), letter-spacing .6s var(--ease);
}
.ysign:hover .ysign__text { color: var(--gold); letter-spacing: .62em; }

.booking-line {
	margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--mut);
}

/* Система просит меньше движения (в Windows это «Эффекты анимации»).
   Раньше волна выключалась совсем. Теперь она живёт, но спокойнее:
   медленнее и с меньшим размахом. !important нужен, чтобы перебить
   общее правило в main.css, которое обнуляет длительность всех анимаций. */
@media (prefers-reduced-motion: reduce) {
	.ysign__bars i {
		animation-name: yWaveCalm !important;
		animation-duration: 5.2s !important;
		animation-iteration-count: infinite !important;
		animation-timing-function: ease-in-out !important;
	}
	.ysign__bars .b2 { animation-duration: 4.4s !important; }
	.ysign:hover .ysign__bars i { animation-duration: 3.4s !important; }
}

@keyframes yWaveCalm {
	0%   { transform: scaleY(.62); opacity: .7; }
	50%  { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(.62); opacity: .7; }
}


/* ============ 28. БЛОК PRESS / EPK ============ */
/* Вместо кнопок скачивания — звуковая дорожка из фирменных полос. */
.epk {
	position: relative; overflow: hidden;
	border: 1px solid var(--gold-line);
	background: linear-gradient(140deg, rgba(255, 198, 43, .06), transparent 55%), var(--panel);
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(120px, 14vw, 170px);
}
.epk__in { position: relative; z-index: 2; max-width: 620px; }
.epk__line { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--body); }

.epk__wave {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	display: flex; align-items: flex-end; gap: clamp(4px, .7vw, 9px);
	padding: 0 clamp(20px, 4vw, 56px) clamp(26px, 3.5vw, 44px);
	height: clamp(96px, 13vw, 150px); pointer-events: none;
}
.epk__wave i {
	flex: 1; border-radius: 40px; background: rgba(255, 255, 255, .16);
	transform-origin: bottom; height: 100%;
	animation: epkBar 2.8s infinite cubic-bezier(.45, .05, .2, 1);
	animation-delay: calc(var(--i) * 55ms);
}
/* Каждая шестая полоса — золотая: тот же ритм, что в знаке */
.epk__wave i:nth-child(6n + 3) {
	background: var(--gold); opacity: .8;
	box-shadow: 0 0 18px rgba(255, 198, 43, .45);
}
@keyframes epkBar {
	0%   { transform: scaleY(.10); }
	25%  { transform: scaleY(.62); }
	45%  { transform: scaleY(.22); }
	65%  { transform: scaleY(.85); }
	85%  { transform: scaleY(.30); }
	100% { transform: scaleY(.10); }
}
.epk:hover .epk__wave i { animation-duration: 1.3s; background: rgba(255, 255, 255, .26); }
.epk:hover .epk__wave i:nth-child(6n + 3) {
	background: var(--gold); opacity: 1;
	box-shadow: 0 0 26px rgba(255, 198, 43, .6);
}

@media (prefers-reduced-motion: reduce) {
	.epk__wave i {
		animation-name: epkBarCalm !important;
		animation-duration: 5.6s !important;
		animation-iteration-count: infinite !important;
		animation-timing-function: ease-in-out !important;
	}
	.epk:hover .epk__wave i { animation-duration: 3.6s !important; }
}

@keyframes epkBarCalm {
	0%   { transform: scaleY(.30); }
	50%  { transform: scaleY(.70); }
	100% { transform: scaleY(.30); }
}


/* ============ 29. ЗАПАСНОЙ ВАРИАНТ ЭФФЕКТА (без Canvas) ============ */
/* Включается классом .hero-fx-css, если браузер не дал контекст Canvas.
   Пользователь всё равно видит золотое оформление, а не пустой экран. */
.hero-fx-css .hero-content { position: relative; z-index: 3; }
.hero-fx-css::before,
.hero-fx-css::after {
	content: ''; position: absolute; top: 0; bottom: 0; width: 46%; z-index: 1;
	pointer-events: none; opacity: .85;
	background-image:
		repeating-linear-gradient(90deg,
			rgba(255, 198, 43, .55) 0 2px,
			transparent 2px 46px),
		repeating-linear-gradient(90deg,
			rgba(255, 255, 255, .22) 0 2px,
			transparent 2px 92px);
	-webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, #000 78%);
	mask-image: radial-gradient(ellipse at center, transparent 0%, #000 78%);
	animation: heroCssBars 7s linear infinite;
}
.hero-fx-css::before { left: 0; }
.hero-fx-css::after { right: 0; animation-direction: reverse; }

@keyframes heroCssBars {
	0%   { background-position: 0 0, 0 0; opacity: .5; }
	50%  { background-position: 24px 0, -18px 0; opacity: .9; }
	100% { background-position: 46px 0, -92px 0; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-fx-css::before, .hero-fx-css::after { animation: none; opacity: .6; }
}
