@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--index: calc(1vw + 1vh);
	--color-header: #f4efec;
	--color-text: #cdc6c3;
	--color-accent: #ff2f4f;
	--color-accent-cool: #35e0ff;
	--gallery-gap: calc(var(--index) * 7.5);
	--edge: 1px solid rgba(244, 239, 236, .14);

	--font-display: unbounded, sans-serif; /* заголовки */
	--font-text: jost, sans-serif; /* текст */

	/* геометрия заголовка hero — вынесена в переменные, чтобы eyebrow
	   считался ОТ неё (top + высота строки "lady"), а не подбирался
	   отдельным vh на глаз. Так eyebrow остаётся над "waks" на любом
	   экране: шире/уже, выше/ниже — он всегда пересчитывается вместе
	   с заголовком, а не плывёт отдельно от него. */
	--hero-title-top: 32vh;
	--hero-title-size: calc(var(--index) * 6.4);
	--hero-title-line: .95;

	/* подстройка под асимметрию самого файла hero3.png: лицо на фото
	   не по центру кадра, поэтому обычное left:50% тянет картинку
	   визуально вправо. Отрицательное значение — сдвиг влево.
	   Если на телефоне портрет всё ещё съезжает — просто меняйте
	   это число (шаг ~2vw), ничего больше трогать не нужно. */
	--hero-shift-mobile: 0vw;
}

/* font-display: swap — текст виден сразу, шрифт подменяется, когда загрузится.
Оба шрифта вариативные (один файл на все начертания), с кириллицей.
Нет .woff2 — подхватится .ttf с тем же именем */
@font-face {
	font-family: unbounded;
	src: url(../fonts/unbounded-variable.woff2) format('woff2'),
		url(../fonts/unbounded-variable.ttf) format('truetype');
	font-weight: 200 900;
	font-display: swap;
}
@font-face {
	font-family: jost;
	src: url(../fonts/jost-variable.woff2) format('woff2'),
		url(../fonts/jost-variable.ttf) format('truetype');
	font-weight: 100 900;
	font-display: swap;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
}

/* ---- a11y: выделение и фокус ---- */
::selection {
	background: var(--color-accent);
	color: #0a0a0c;
}
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
	border-radius: 2px;
}
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* will-change */
.content, .hero, .main-header, .gallery > * {
	will-change: transform;
}
body {
	background-image: url(../img/bg.jpg);
	background-size: 50px;
	background-color: #0a0a0c;
	color: #fafafa;
	font-family: var(--font-text);
	overflow-x: hidden;
}
.hero {
	width: calc(var(--index) * 36);
	position: absolute;
	left: 37vw;
	top: 22vh;
	z-index: -1;
}
.main-header {
	height: 100vh;
	position: relative;
}
.container {
	padding: 0 7vw;
}
.eyebrow {
	position: absolute;
	/* ровно верхняя граница второй строки ("waks") —
	   top заголовка + высота первой строки ("lady") */
	top: calc(var(--hero-title-top) + var(--hero-title-size) * var(--hero-title-line));
	color: var(--color-text);
	letter-spacing: .04em;
	font-size: smaller;
}
.main-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--hero-title-size);
	letter-spacing: -.03em;
	position: absolute;
	width: min-content;
	top: var(--hero-title-top);
	line-height: var(--hero-title-line);
	text-transform: lowercase;
}

/* glitch title — one deliberate motion moment, tied to the broken-beat genre */
.glitch {
	position: relative;
	color: var(--color-header);
}
.glitch::before,
.glitch::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	overflow: hidden;
}
.glitch::before {
	color: var(--color-accent);
	animation: glitch-shift 4.5s infinite steps(1);
	clip-path: inset(0 0 55% 0);
}
.glitch::after {
	color: var(--color-accent-cool);
	animation: glitch-shift 4.5s infinite steps(1) reverse;
	clip-path: inset(60% 0 0 0);
}
@keyframes glitch-shift {
	0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
	93% { transform: translate(-.09em, .04em); opacity: .8; }
	95% { transform: translate(.07em, -.03em); opacity: .8; }
	97% { transform: translate(-.04em, 0); opacity: .6; }
	98% { opacity: 0; }
}

/* scroll hint — правый нижний угол hero */
.scroll-hint {
	position: absolute;
	left: 0;
	bottom: 12vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .8rem;
	padding: .5rem;
	background: none;
	border: 0;
	color: var(--color-text);
	font: inherit;
	font-size: .75rem;
	letter-spacing: .24em;
	cursor: pointer;
	transition: color .2s ease;
}
.scroll-hint:hover {
	color: var(--color-header);
}
.scroll-hint__text {
	margin-right: -.24em; /* компенсируем хвостовой letter-spacing, чтобы текст стоял по центру линии */
}
.scroll-hint__line {
	position: relative;
	display: block;
	width: 1px;
	height: calc(var(--index) * 2.6);
	background: rgba(244, 239, 236, .2);
	overflow: hidden;
}
.scroll-hint__line::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 45%;
	background: var(--color-accent);
	animation: scroll-run 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-run {
	0% { transform: translateY(-100%); }
	100% { transform: translateY(230%); }
}
.scroll-hint__arrow {
	display: block;
	margin-top: -.4rem;
}

/* marquee — тихая строка-разделитель между hero и галереей */
.marquee {
	overflow: hidden;
	padding: calc(var(--index) * 1.3) 0;
	border-top: var(--edge);
	border-bottom: var(--edge);
	user-select: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 60s linear infinite;
}
.marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}
.marquee__item {
	display: flex;
	align-items: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: calc(var(--index) * 2.5);
	line-height: 1;
	text-transform: lowercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(244, 239, 236, .55);
}
.marquee__item--solid {
	color: var(--color-header);
	-webkit-text-stroke: 0;
}
.marquee__item::after {
	content: '';
	flex-shrink: 0;
	width: .22em;
	height: .22em;
	margin: 0 .8em;
	border-radius: 50%;
	background: var(--color-accent);
}
@keyframes marquee {
	to { transform: translateX(-50%); }
}

.gallery {
	display: flex;
	padding: calc(var(--index) * 8) 0;
}
.gallery > * {
	flex: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
}
.gallery__item {
	max-width: calc(var(--index) * 21);
	margin-bottom: var(--gallery-gap);
	max-height: 180vh;
	border-radius: 8px;
}
.gallery__left {
	margin-top: calc(var(--gallery-gap) * 1.75);
}
.gallery__right .gallery__item {
	margin: 0;
	margin-top: var(--gallery-gap);
}
.text-block {
	color: var(--color-text);
	position: relative;
}
.text-block__h {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.1rem, calc(var(--index) * .95), 1.6rem);
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--color-header);
	margin-bottom: 1.5rem;
}
.text-block__p {
	font-size: 1.1rem;
	line-height: 1.65;
}

/* ---- new sections ---- */

.section {
	padding: calc(var(--index) * 6) 0;
	position: relative;
}
.section__h {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: calc(var(--index) * 2.4);
	color: var(--color-header);
	text-transform: lowercase;
	margin-bottom: calc(var(--index) * 3);
}

/* statement — крупная фраза между галереей и цифрами.
   Тонкая акцентная линия слева повторяет вертикальную рельсу прокрутки */
.statement {
	padding: calc(var(--index) * 7) 0 calc(var(--index) * 5);
}
.statement__text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: calc(var(--index) * 3.1);
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--color-header);
	padding-left: calc(var(--index) * 2);
	border-left: 2px solid var(--color-accent);
	overflow-wrap: break-word;
}

/* stats — та же система линий (--edge), что и в списках ниже */
.stats {
	padding: 0 0 calc(var(--index) * 3);
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: var(--edge);
	border-bottom: var(--edge);
}
.stats__item {
	display: flex;
	flex-direction: column-reverse; /* в разметке терм идёт первым, визуально число сверху */
	gap: .7rem;
	padding: calc(var(--index) * 1.6) calc(var(--index) * 1.2);
}
.stats__item:first-child {
	padding-left: 0;
}
.stats__item + .stats__item {
	border-left: var(--edge);
}
.stats__num {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: calc(var(--index) * 2.6);
	letter-spacing: -.02em;
	line-height: 1;
	color: var(--color-header);
	font-variant-numeric: tabular-nums;
}
.stats__label {
	color: var(--color-text);
	font-size: 1rem;
	line-height: 1.4;
	max-width: 18ch;
}

/* sets */
.sets__list {
	list-style: none;
}
.sets__row {
	display: grid;
	grid-template-columns: calc(var(--index) * 5) 1fr auto;
	align-items: center;
	gap: calc(var(--index) * 2);
	padding: 1.4rem 0;
	border-top: var(--edge);
}
.sets__row:last-child {
	border-bottom: var(--edge);
}
.waveform {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 1.6rem;
}
.waveform span {
	display: block;
	width: 3px;
	background: var(--color-accent);
	border-radius: 2px;
	animation: bar-pulse 1.6s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 40%; animation-delay: -1.1s; }
.waveform span:nth-child(2) { height: 90%; animation-delay: -.4s; }
.waveform span:nth-child(3) { height: 60%; animation-delay: -1.4s; }
.waveform span:nth-child(4) { height: 100%; animation-delay: -.7s; }
.waveform span:nth-child(5) { height: 50%; animation-delay: -1.6s; }
.waveform span:nth-child(6) { height: 80%; animation-delay: -.2s; }
.waveform span:nth-child(7) { height: 35%; animation-delay: -1.2s; }
.waveform span:nth-child(8) { height: 65%; animation-delay: -.9s; }
@keyframes bar-pulse {
	0%, 100% { transform: scaleY(.35); }
	50% { transform: scaleY(1); }
}
.sets__meta {
	display: flex;
	flex-direction: column;
	gap: .3rem;
}
.sets__title {
	color: var(--color-header);
	font-size: 1.1rem;
}
.sets__date {
	color: var(--color-text);
	font-size: .95rem;
}
.sets__link {
	color: var(--color-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
	white-space: nowrap;
}
.sets__link:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
}

/* tour — a real sequence, so a plain ordered list earns its place */
.tour__list {
	list-style: none;
}
.tour__row {
	display: grid;
	grid-template-columns: calc(var(--index) * 4) 1fr auto;
	align-items: baseline;
	gap: calc(var(--index) * 2);
	padding: 1.1rem 0;
	border-top: var(--edge);
}
.tour__row:last-child {
	border-bottom: var(--edge);
}
.tour__date {
	color: var(--color-accent);
	font-variant-numeric: tabular-nums;
}
.tour__place {
	color: var(--color-header);
}
.tour__link {
	color: var(--color-text);
	text-decoration: none;
	transition: color .2s ease;
}
.tour__link:hover {
	color: var(--color-accent-cool);
}

/* booking */
.booking {
	padding: calc(var(--index) * 9) 0;
}
.booking__line {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: calc(var(--index) * 3);
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--color-header);
	max-width: 14ch;
	margin-bottom: calc(var(--index) * 2);
}
.booking__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.2rem calc(var(--index) * 1.6);
}
.booking__mail {
	display: inline-block;
	font-size: calc(var(--index) * 1.6);
	color: var(--color-accent);
	text-decoration: none;
	/* border-bottom: 2px solid currentColor; */
}
.booking__copywrap {
	position: relative;
	display: inline-block;
}
.booking__copy {
	padding: .7rem 1.3rem;
	background: transparent;
	border: 1px solid rgba(244, 239, 236, .3);
	border-radius: 999px;
	color: var(--color-header);
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}
.booking__copy:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
}
.booking__toast {
	position: absolute;
	left: 50%;
	bottom: calc(100% + .7rem);
	transform: translate(-50%, 6px);
	padding: .35rem .8rem;
	border-radius: 999px;
	background: var(--color-accent);
	color: #0a0a0c;
	font-size: .8rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.booking__toast::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: var(--color-accent);
}
.booking__toast.is-shown {
	opacity: 1;
	transform: translate(-50%, 0);
}
.booking__docs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .8rem 2rem;
	margin-top: calc(var(--index) * 2.4);
}
.booking__docs a {
	color: var(--color-text);
	text-decoration: none;
	padding-bottom: .15rem;
	border-bottom: 1px solid rgba(205, 198, 195, .35);
	transition: color .2s ease, border-color .2s ease;
}
.booking__docs a:hover {
	color: var(--color-header);
	border-color: var(--color-header);
}
.booking__docs span {
	margin-left: .5rem;
	font-size: .75rem;
	color: rgba(205, 198, 195, .75);
}

/* footer */
.site-footer {
	padding: calc(var(--index) * 3) 0 calc(var(--index) * 4);
}
.site-footer__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.5rem;
	border-top: var(--edge);
	padding-top: 1.5rem;
}
.site-footer__social a {
	color: var(--color-text);
	text-decoration: none;
	margin-right: 1.4rem;
	transition: color .2s ease;
}
.site-footer__social a:hover {
	color: var(--color-header);
}
.site-footer__note {
	color: rgba(205, 198, 195, .75); /* было .55 — ниже нормы контраста для мелкого текста */
	font-size: .85rem;
	max-width: 32ch;
	text-align: right;
}

/* scroll rail — sits outside the smoothed wrapper, fixed to the viewport */
.scroll-rail {
	position: fixed;
	right: 2.6vw;
	top: 50%;
	transform: translateY(-50%);
	height: 38vh;
	z-index: 50;
}
.scroll-rail__track {
	position: absolute;
	left: 3px;
	top: 0;
	width: 1px;
	height: 100%;
	background: rgba(244, 239, 236, .16);
}
.scroll-rail__fill {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: var(--color-accent);
	transform: scaleY(0);
	transform-origin: top;
}
.scroll-rail__ticks {
	list-style: none;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.scroll-rail__tick {
	position: relative;
	display: flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
}
.scroll-rail__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 1px solid rgba(244, 239, 236, .5);
	background: transparent;
	transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
	flex-shrink: 0;
}
.scroll-rail__num {
	font-size: .75rem;
	font-variant-numeric: tabular-nums;
	color: rgba(205, 198, 195, .72);
	transition: color .25s ease;
}
/* подпись вынута из потока: её появление не меняет ширину рельсы,
   поэтому точки и линия не сдвигаются при смене активной секции */
.scroll-rail__label {
	position: absolute;
	right: calc(100% + .9rem);
	top: 50%;
	font-size: .75rem;
	color: var(--color-header);
	white-space: nowrap;
	opacity: 0;
	transform: translate(6px, -50%);
	pointer-events: none;
	transition: opacity .2s ease, transform .3s ease;
}
.scroll-rail__tick:hover .scroll-rail__label,
.scroll-rail__tick.is-active .scroll-rail__label {
	opacity: 1;
	transform: translate(0, -50%);
}
.scroll-rail__tick.is-active .scroll-rail__dot {
	background: var(--color-accent);
	border-color: var(--color-accent);
	transform: scale(1.3);
}
.scroll-rail__tick.is-active .scroll-rail__num {
	color: var(--color-header);
}

/* custom cursor — включается из JS только для устройств с мышью (класс .has-cursor) */
.cursor {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	z-index: 9999;
	pointer-events: none;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity .2s ease;
}
html.has-cursor .cursor {
	display: block;
}
html.has-cursor .cursor.is-visible {
	opacity: 1;
}
html.has-cursor,
html.has-cursor * {
	cursor: none;
}
.cursor__dot {
	position: absolute;
	left: -7px;
	top: -7px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.cursor.is-link .cursor__dot {
	transform: scale(2.6);
}
.cursor.is-media .cursor__dot {
	transform: scale(5);
}

@media (max-width: 900px) {
	.scroll-rail { display: none; }
}

@media (max-width: 720px) {
	.sets__row,
	.tour__row {
		grid-template-columns: 1fr;
		gap: .5rem;
	}
	.waveform { display: none; }
	.booking__line { font-size: calc(var(--index) * 3.1); max-width: none; }
	.site-footer__note { text-align: left; }

	.statement__text { font-size: calc(var(--index) * 3.4); }
	.text-block__p { font-size: 1rem; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stats__item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
	.stats__item:nth-child(n + 3) {
		border-top: var(--edge);
	}
	.stats__num { font-size: calc(var(--index) * 3); }

	/* ---- hero: портретный кадр во всю ширину, заголовок поверх.
	       top/font-size не повторяем — переопределяем только переменные,
	       а .main-title и .eyebrow (из базовых правил) пересчитаются сами ---- */
	:root {
		--hero-title-top: 30vh;
		/* проверено без шрифта Unbounded (он тут не грузится) — калибровал
		   с системным фолбэком и оставил запас по ширине на случай, если
		   реальный шрифт окажется шире. Если с настоящим Unbounded "waks"
		   всё ещё впритык к краю или наоборот слишком мелко — крутите
		   только это число */
		--hero-title-size: calc(var(--index) * 8);
	}

	.hero-section {
		overflow: hidden;
	}
	.hero {
		/* 50% + компенсация в --hero-shift-mobile вместо чистого центра:
		   кадр в самом файле смещён, иначе портрет уезжает вправо */
		left: calc(50% + var(--hero-shift-mobile));
		top: 8vh;
		width: 112vw;
		transform: translateX(-50%);
	}
	.scroll-hint {
		bottom: 6vh;
	}

	/* ---- gallery: одна колонка, фото шире текстовой колонки и
	       отцентрованы — вылет получается симметричный с обеих сторон
	       (ширина фото 100vw при колонке ýже контейнера сама даёт
	       равный напуск слева и справа, без ручных align-self) ---- */
	.gallery {
		flex-direction: column;
		padding: calc(var(--index) * 4) 0;
	}
	.gallery__left,
	.gallery__right .gallery__item {
		margin-top: 0;
	}
	.gallery__item {
		max-width: none;
		max-height: none;
		margin-bottom: calc(var(--index) * 2.4);
	}
	img.gallery__item {
		width: 100vw;
		max-height: 62vh;
		object-fit: cover;
		border-radius: 0;
	}
	.text-block.gallery__item {
		width: 86vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.glitch::before, .glitch::after, .waveform span,
	.marquee__track, .scroll-hint__line::after {
		animation: none;
	}
	.cursor__dot, .booking__toast, .scroll-rail__label {
		transition: none;
	}
}
