/* misha.in — one-page. Design: iOS/Apple styl, světlý i tmavý režim, scroll animace. */

/* ---------------------------------------------------------------- tokeny */

:root {
	color-scheme: light;
	--bg: #f2f2f7;
	--card: #fff;
	--ink: #000;
	--ink2: rgba(60, 60, 67, .72);
	--ink3: rgba(60, 60, 67, .55);
	--sep: rgba(60, 60, 67, .14);
	--tint: #8c2140;
	--on-tint: #fff;
	--green: #34c759;
	--fill: rgba(118, 118, 128, .12);
	--seg-on: var(--card);
	--seg-light: var(--seg-on);
	--seg-dark: transparent;
	--seg-light-ink: var(--ink);
	--seg-dark-ink: var(--ink3);

	--wrap: 900px;
	--gutter: 40px;
	--ease: cubic-bezier(.2, .75, .15, 1);
	--font: -apple-system, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
	--font-display: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
	--font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* tmavý režim — vlastní volba uživatele (cookie) */
:root[data-theme='dark'] {
	color-scheme: dark;
	--bg: #000;
	--card: #1c1c1e;
	--ink: #fff;
	--ink2: rgba(235, 235, 245, .66);
	--ink3: rgba(235, 235, 245, .45);
	--sep: rgba(255, 255, 255, .1);
	--tint: #e05a7d;
	--green: #30d158;
	--fill: rgba(118, 118, 128, .24);
	--seg-on: #636366;
	--seg-light: transparent;
	--seg-dark: var(--seg-on);
	--seg-light-ink: var(--ink3);
	--seg-dark-ink: var(--ink);
}

/* tmavý režim — podle systému, dokud si uživatel nevybere jinak */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		color-scheme: dark;
		--bg: #000;
		--card: #1c1c1e;
		--ink: #fff;
		--ink2: rgba(235, 235, 245, .66);
		--ink3: rgba(235, 235, 245, .45);
		--sep: rgba(255, 255, 255, .1);
		--tint: #e05a7d;
		--green: #30d158;
		--fill: rgba(118, 118, 128, .24);
		--seg-on: #636366;
		--seg-light: transparent;
		--seg-dark: var(--seg-on);
		--seg-light-ink: var(--ink3);
		--seg-dark-ink: var(--ink);
	}
}

/* ----------------------------------------------------------------- základ */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -.026em;
	margin: 0;
}

p { margin: 0; }

a { color: var(--tint); }

img { display: block; max-width: 100%; }

:focus-visible {
	outline: 2px solid var(--tint);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 60;
	background: var(--card);
	color: var(--ink);
	padding: 10px 16px;
	border-radius: 10px;
}

.skip:focus { left: 12px; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.sect {
	padding-bottom: 48px;
	scroll-margin-top: 80px;
}

.rule {
	height: 1px;
	background: var(--sep);
	transform-origin: left;
	margin-bottom: 24px;
}

.title {
	font-size: clamp(28px, 4.6vw, 38px);
	line-height: 1.1;
}

/* samostatné chybové stránky */
.errpage {
	padding-top: 96px;
	padding-bottom: 96px;
}

.errpage p {
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink2);
	max-width: 46ch;
	margin-top: 16px;
}

.errpage .btn { margin-top: 28px; }

.errpage small { color: var(--ink3); }

/* -------------------------------------------------------------- progress */

.progress {
	position: fixed;
	inset: 0 0 auto;
	height: 3px;
	z-index: 40;
	pointer-events: none;
}

.progress__bar {
	height: 100%;
	background: var(--tint);
	transform: scaleX(0);
	transform-origin: left;
}

/* ------------------------------------------------------------------- nav */

.nav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 74%, transparent);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: .5px solid var(--sep);
}

.nav__in {
	max-width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 12px var(--gutter);
}

.nav__brand {
	display: flex;
	align-items: center;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
	margin-right: auto;
}

.nav__brand .logo {
	display: block;
	height: 40px;
	width: auto;
}

.nav__links {
	display: flex;
	gap: 22px;
}

.nav__links a {
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.nav__links a:hover { text-decoration: underline; }

.seg {
	display: flex;
	padding: 2px;
	background: var(--fill);
	border-radius: 9px;
}

.seg__btn {
	display: flex;
	align-items: center;
	font: 600 13px/1.35 var(--font);
	color: var(--ink);
	padding: 5px 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

/* ikona slunce a měsíce v přepínači režimu */
.seg__btn .ico {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.seg__btn--light {
	background: var(--seg-light);
	color: var(--seg-light-ink);
}

.seg__btn--dark {
	background: var(--seg-dark);
	color: var(--seg-dark-ink);
}

/* přepínač jazyka: zvolený jazyk je zvýrazněný, druhý je odkaz */
.seg--lang .seg__btn {
	color: var(--ink3);
	letter-spacing: .02em;
}

.seg--lang .seg__btn:hover { color: var(--ink); }

.seg--lang .seg__btn[aria-current] {
	background: var(--seg-on);
	color: var(--ink);
}

/* ------------------------------------------------------------------- btn */

.btn {
	display: inline-block;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	padding: 13px 24px;
	border-radius: 14px;
	border: 0;
	cursor: pointer;
	transition: transform .25s ease, filter .25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
	color: var(--on-tint);
	background: var(--tint);
}

.btn--ghost {
	color: var(--tint);
	background: color-mix(in srgb, var(--tint) 12%, transparent);
}

.btn--sm {
	font-size: 15px;
	padding: 8px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ hero */

.hero {
	position: relative;
	padding: 64px 0 48px;
	overflow: hidden;
}

.hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: center;
}

.hero__eyebrow {
	font-size: 15px;
	font-weight: 600;
	color: var(--tint);
	margin-bottom: 12px;
}

.hero h1 {
	font-size: clamp(38px, 7.2vw, 60px);
	line-height: 1.04;
}

.hero h1 .line {
	display: block;
	overflow: hidden;
}

.hero h1 .line > span { display: inline-block; }

.hero__lead {
	font-size: clamp(17px, 2.2vw, 19.5px);
	line-height: 1.5;
	color: var(--ink2);
	max-width: 40ch;
	margin-top: 22px;
}

.hero__cta {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.hero__media {
	display: grid;
	gap: 14px;
}

.hero__media > div {
	border-radius: 22px;
	overflow: hidden;
}

.hero__media > div:first-child { height: 230px; }

.hero__media > div:last-child { height: 150px; }

/* --------------------------------------------------------------- marquee */

.marquee {
	overflow: hidden;
	padding: 6px 0 34px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
}

.marquee__group {
	display: flex;
	gap: 34px;
	padding-right: 34px;
	font: 600 15px/1 var(--font-mono);
	color: var(--ink3);
	white-space: nowrap;
}

/* ----------------------------------------------------------------- stats */

.stats {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding-bottom: 40px;
}

.stats__numbox {
	height: 340px;
	display: flex;
	align-items: flex-start;
}

.stats__num {
	position: sticky;
	top: 120px;
	font-size: clamp(88px, 14vw, 132px);
	line-height: .9;
	font-weight: 700;
	letter-spacing: -.05em;
	transform-origin: left top;
}

.stats__list {
	display: grid;
	gap: 14px;
	padding-top: 22px;
}

.card {
	background: var(--card);
	border-radius: 18px;
	padding: 22px 24px;
}

.card__title {
	font-size: 17px;
	font-weight: 600;
}

.card__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink2);
	margin-top: 6px;
}

/* ----------------------------------------------------------------- about */

.about { padding-top: 24px; }

.about__card {
	background: var(--card);
	border-radius: 22px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	margin-top: 22px;
}

.about__photo { overflow: hidden; }

.about__photo > div { height: 100%; }

.about__photo .slot,
.about__photo img {
	height: 100%;
	min-height: 300px;
}

.about__body { padding: 30px; }

.about__body p {
	font-size: 16.5px;
	line-height: 1.62;
	color: var(--ink2);
}

.about__body p + p { margin-top: 14px; }

.pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.pills li {
	font-size: 13px;
	color: var(--ink2);
	background: var(--fill);
	padding: 6px 12px;
	border-radius: 999px;
}

/* ------------------------------------------------------------------ band */

.band { padding: 8px 0 48px; }

.band__in {
	position: relative;
	height: 360px;
	overflow: hidden;
}

.band__media {
	position: absolute;
	inset: -12% 0;
}

.band__media .slot,
.band__media img { height: 100%; }

.band__caption {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	font: 600 13px/1 var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, .42);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 9px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- offers */

.offers__list {
	background: var(--card);
	border-radius: 22px;
	overflow: hidden;
	margin-top: 22px;
}

.offer {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	transition: background .25s ease;
}

.offer + .offer { border-top: .5px solid var(--sep); }

.offer:hover { background: var(--fill); }

.offer__no {
	flex: none;
	width: 34px;
	font: 600 13px/1 var(--font-mono);
	color: var(--ink2);
	letter-spacing: .04em;
}

.offer__body { flex: 1; }

.offer__title {
	font-size: 18px;
	font-weight: 600;
}

.offer__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink2);
	margin-top: 4px;
}

.offer__chev {
	color: var(--ink3);
	font-size: 22px;
	line-height: 1;
}

/* ----------------------------------------------------------------- quote */

.quote { padding: 16px 0 56px; }

.quote p {
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.28;
	font-weight: 600;
	letter-spacing: -.02em;
	max-width: 30ch;
}

/* ------------------------------------------------------------------ work */

.work__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.project {
	background: var(--card);
	border-radius: 20px;
	overflow: hidden;
}

.project__media { overflow: hidden; }

.project__media .slot,
.project__media img {
	aspect-ratio: 16 / 10;
	width: 100%;
	height: auto;
	min-height: 0;
}

.project__body { padding: 16px 18px 22px; }

.project__kicker {
	font: 600 11.5px/1 var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink2);
}

.project__title {
	font-size: 17.5px;
	font-weight: 600;
	margin-top: 6px;
}

.project__text {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink2);
	margin-top: 6px;
}

.project__link {
	display: inline-block;
	font: 600 12.5px/1 var(--font-mono);
	color: var(--tint);
	text-decoration: none;
	margin-top: 10px;
}

.project__link:hover { text-decoration: underline; }

/* náhled aplikace na kartě — kliknutím se zvětší */

.shot {
	display: block;
	position: relative;
	line-height: 0;
}

.shot__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--card) 76%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
	color: var(--ink2);
	font: 600 11px/1 var(--font-mono);
	letter-spacing: .04em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.shot__zoom::before {
	content: '⤢';
	font-size: 13px;
}

.shot:hover .shot__zoom,
.shot:focus-visible .shot__zoom {
	opacity: 1;
	transform: none;
}

/* rámeček ostření musí dovnitř, .project__media ho zvenku ořízne */
.shot:focus-visible { outline-offset: -3px; }

/* bez myši se není čeho chytit, tak je popisek vidět rovnou */
@media (hover: none) {
	.shot__zoom {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------- gallery */

.gallery {
	overflow: hidden;
	padding-bottom: 56px;
}

.gallery__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 20px;
}

.gallery__hint {
	font: 600 12px/1 var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink3);
	white-space: nowrap;
}

.gallery__track {
	display: flex;
	gap: 16px;
	padding-left: var(--gutter);
	width: max-content;
}

.gallery__item {
	height: 250px;
	border-radius: 22px;
	overflow: hidden;
	flex: none;
}

.gallery__item .slot,
.gallery__item img { height: 100%; }

.gallery__item:nth-child(1) { width: 360px; }
.gallery__item:nth-child(2) { width: 300px; }
.gallery__item:nth-child(3) { width: 400px; }
.gallery__item:nth-child(4) { width: 280px; }
.gallery__item:nth-child(5) { width: 340px; }

/* --------------------------------------------------------------- kontakt */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
	gap: 36px;
	align-items: start;
}

.contact h2 {
	font-size: clamp(28px, 4.4vw, 36px);
	line-height: 1.1;
}

.contact__lead {
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink2);
	margin-top: 14px;
	max-width: 38ch;
}

.list {
	background: var(--card);
	border-radius: 18px;
	overflow: hidden;
	margin-top: 20px;
}

.list__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 18px;
	font-size: 16px;
	color: var(--ink);
	text-decoration: none;
}

.list__row + .list__row { border-top: .5px solid var(--sep); }

.list__row span:last-child { color: var(--tint); }

.list__row--plain span:last-child { color: var(--ink3); }

a.list__row:hover { background: var(--fill); }

/* -------------------------------------------------------------- formulář */

.form {
	background: var(--card);
	border-radius: 18px;
	overflow: hidden;
}

.form__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 13px 18px;
	border-bottom: .5px solid var(--sep);
	flex-wrap: wrap;
}

.form__label {
	font-size: 16px;
	width: 70px;
	flex: none;
	color: var(--ink3);
}

.form__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 16px;
	background: transparent;
	color: var(--ink);
	padding: 0;
}

.form__input::placeholder { color: var(--ink3); }

.form__row--area {
	display: block;
	padding: 13px 18px;
}

.form__area {
	width: 100%;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 16px;
	background: transparent;
	color: var(--ink);
	resize: vertical;
	min-height: 110px;
	padding: 0;
}

.form__area::placeholder { color: var(--ink3); }

.form__foot { padding: 0 18px 18px; }

.form__submit {
	width: 100%;
	font: 600 17px/1.4 var(--font);
	color: var(--on-tint);
	background: var(--tint);
	border: 0;
	padding: 14px;
	border-radius: 14px;
	cursor: pointer;
	transition: filter .2s ease;
}

.form__submit:hover { filter: brightness(1.08); }

.form__err {
	display: block;
	width: 100%;
	font-size: 13.5px;
	line-height: 1.4;
	color: #c62828;
	padding-top: 4px;
}

:root[data-theme='dark'] .form__err { color: #ff8a8a; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .form__err { color: #ff8a8a; }
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.flash {
	border-radius: 18px;
	padding: 16px 18px;
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 16px;
	background: color-mix(in srgb, var(--green) 18%, var(--card));
	color: var(--ink);
}

.flash.error { background: color-mix(in srgb, #c62828 16%, var(--card)); }

/* ---------------------------------------------------------------- footer */

.foot {
	font-size: 13px;
	color: var(--ink3);
	text-align: center;
	margin-top: clamp(48px, 8vw, 88px);
	padding: 0 var(--gutter) 40px;
}

/* --------------------------------------------------- zástupné obrázky */

.slot {
	width: 100%;
	height: 100%;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 14px;
	background:
		repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 4%, transparent) 10px 20px),
		var(--fill);
	color: var(--ink3);
	font: 500 12.5px/1.4 var(--font-mono);
}

img.slot-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ze dvojice {jméno}-light a {jméno}-dark je vidět vždy jen ta pro zvolený režim */
.slot-img--dark { display: none; }

:root[data-theme='dark'] .slot-img--light { display: none; }
:root[data-theme='dark'] .slot-img--dark { display: block; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .slot-img--light { display: none; }
	:root:not([data-theme='light']) .slot-img--dark { display: block; }
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: clamp(16px, 4vw, 44px);
	border: 0;
	background: transparent;
	overflow: hidden;
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* dokud je náhled otevřený, stránka pod ním nikam neujíždí */
html:has(.lightbox[open]) { overflow: hidden; }

.lightbox::backdrop {
	background: rgba(0, 0, 0, .74);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.lightbox__figure {
	margin: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.lightbox__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - clamp(96px, 12vw, 140px));
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

/* popisek i křížek leží na tmavém pozadí, ať je režim jakýkoli */
.lightbox__caption {
	font: 500 12.5px/1.4 var(--font-mono);
	color: rgba(255, 255, 255, .68);
	text-align: center;
}

.lightbox__close {
	position: absolute;
	top: clamp(12px, 2.4vw, 26px);
	right: clamp(12px, 2.4vw, 26px);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #fff;
	font: 400 24px/1 var(--font);
	cursor: pointer;
	transition: background .25s var(--ease);
}

.lightbox__close:hover { background: rgba(255, 255, 255, .28); }

/* růžová linka by se na tmavém pozadí prala s obrázkem */
.lightbox__close:focus-visible { outline-color: #fff; }

.lightbox[open] { animation: omPop .34s var(--ease) both; }

.lightbox[open]::backdrop { animation: omFade .34s var(--ease) both; }

/* --------------------------------------------------------------- animace */

@keyframes omRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes omFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes omPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes omBlurIn { from { opacity: 0; filter: blur(14px); transform: translateY(26px) scale(.97); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes omTilt { from { opacity: 0; transform: translateX(70px) rotate(2.5deg); } to { opacity: 1; transform: none; } }
@keyframes omClip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes omLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes omWord { from { opacity: .12; } to { opacity: 1; } }
@keyframes omLineUp { from { opacity: 0; transform: translateY(110%); } to { opacity: 1; transform: none; } }
@keyframes omSway { 0% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-8px); } 100% { transform: rotate(-1.2deg) translateY(0); } }
@keyframes omMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes omParallaxUp { from { transform: translateY(70px); } to { transform: translateY(-70px); } }
@keyframes omZoomOut { from { transform: scale(1.22); } to { transform: scale(1); } }
@keyframes omBandParallax { from { transform: scale(1.08) translateY(-10%); } to { transform: scale(1.08) translateY(10%); } }
@keyframes omTrackX { from { transform: translateX(2%); } to { transform: translateX(-42%); } }
@keyframes omShrink { from { transform: scale(1.35); opacity: 1; } to { transform: scale(.62); opacity: .35; } }
@keyframes omHeroOut { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-70px) scale(.94); filter: blur(6px); } }
@keyframes omRiseOut { 0% { opacity: 0; transform: translateY(40px); } 22% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes omProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* nekonečné animace běží nezávisle na JS */
.marquee__track { animation: omMarquee 26s linear infinite; }

.hero__media > div:last-child { animation: omSway 9s ease-in-out infinite; }

/* vstupní animace hera — bez JS se nic neskrývá */
.js .hero__eyebrow { animation: omRise .8s var(--ease) .05s both; }
.js .hero h1 .line > span { animation: omLineUp .9s var(--ease) var(--d, .12s) both; }
.js .hero__lead { animation: omBlurIn .9s var(--ease) .42s both; }
.js .hero__cta > * { animation: omRise .8s var(--ease) var(--d, .56s) both; }
.js .hero__media { animation: omFade 1s .3s both; }

/* odkrývání při scrollu — třídu .in doplní IntersectionObserver */
.js .rv { will-change: opacity, transform; }
.js .rv-rise, .js .rv-fade, .js .rv-blur, .js .rv-tilt { opacity: 0; }
.js .rv-clip { clip-path: inset(0 100% 0 0); }
.js .rv-line { transform: scaleX(0); }
.js .rv-word { opacity: .12; }

.js .rv-rise.in { animation: omRise .76s var(--ease) var(--d, 0s) both; }
.js .rv-fade.in { animation: omFade .76s var(--ease) var(--d, 0s) both; }
.js .rv-blur.in { animation: omBlurIn .76s var(--ease) var(--d, 0s) both; }
.js .rv-tilt.in { animation: omTilt .76s var(--ease) var(--d, 0s) both; }
.js .rv-clip.in { animation: omClip .76s var(--ease) var(--d, 0s) both; }
.js .rv-line.in { animation: omLine .76s var(--ease) var(--d, 0s) both; }
.js .rv-word.in { animation: omWord .45s linear var(--d, 0s) both; }

/* animace vázané na průběh scrollu */
.js .sc {
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-fill-mode: both;
	animation-play-state: paused;
}

.js .sc-parallax { animation-name: omParallaxUp; }
.js .sc-zoom { animation-name: omZoomOut; }
.js .sc-band { animation-name: omBandParallax; }
.js .sc-track { animation-name: omTrackX; }
.js .sc-shrink { animation-name: omShrink; }
.js .sc-heroout { animation-name: omHeroOut; }
.js .sc-riseout { animation-name: omRiseOut; }

.js .progress__bar { animation: omProgress 1s linear both paused; }

/* nativní scroll-driven animace (Chrome, Edge, Safari 26+) */
@supports (animation-timeline: view()) {
	.js .sc {
		animation-duration: auto;
		animation-play-state: running;
		animation-timeline: view();
	}

	.js .sc-parallax,
	.js .sc-zoom,
	.js .sc-band,
	.js .sc-track { animation-range: cover 0% cover 100%; }

	.js .sc-heroout { animation-range: exit 0% exit 100%; }

	.js .sc-riseout { animation-range: entry 6% exit 100%; }

	/* lepivý prvek potřebuje časovou osu od nelepivého rodiče */
	.js .stats__numbox { view-timeline: --numbox block; }

	.js .sc-shrink {
		animation-timeline: --numbox;
		animation-range: cover 12% cover 78%;
	}

	/*
		view() se váže na nejbližšího předka se scrollem a overflow: hidden
		takový předek vytváří. Prvky uvnitř klipujících boxů by proto měly osu
		uvnitř něčeho, co se nikdy neposune, a animace by stála na jednom místě.
		Osu jim musí dát box, který sám v žádném klipu neleží.
	*/
	.js .hero { view-timeline: --hero block; }
	.js .about__card { view-timeline: --aboutcard block; }
	.js .project { view-timeline: --project block; }
	.js .band__in { view-timeline: --band block; }
	.js .gallery { view-timeline: --gallery block; }

	.js .hero .sc-parallax,
	.js .sc-heroout { animation-timeline: --hero; }

	.js .about__photo .sc-zoom { animation-timeline: --aboutcard; }
	.js .project__media .sc-zoom { animation-timeline: --project; }
	.js .sc-band { animation-timeline: --band; }
	.js .sc-track { animation-timeline: --gallery; }

	.js .progress__bar {
		animation-duration: auto;
		animation-play-state: running;
		animation-timeline: scroll(root block);
	}
}

/* ----------------------------------------------------------- responzivně */

@media (max-width: 900px) {
	:root { --gutter: 24px; }

	.nav__links { display: none; }

	.nav__in { gap: 12px; }

	.nav__brand .logo { height: 32px; }

	.hero { padding-top: 44px; }

	.hero__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.hero__media { grid-template-columns: 1fr 1fr; }

	.hero__media > div:first-child,
	.hero__media > div:last-child { height: 190px; }

	.stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.stats__numbox { height: auto; }

	.stats__num { position: static; }

	.stats__list { padding-top: 4px; }

	.about__card { grid-template-columns: minmax(0, 1fr); }

	.about__photo .slot,
	.about__photo img {
		height: 280px;
		min-height: 0;
	}

	.about__body { padding: 24px; }

	.band__in { height: 260px; }

	.work__grid { grid-template-columns: minmax(0, 1fr); }

	.gallery__track {
		overflow-x: auto;
		width: auto;
		padding-right: var(--gutter);
		scroll-snap-type: x mandatory;
	}

	.gallery__item { scroll-snap-align: start; }

	.contact__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* na mobilu se galerie posouvá prstem, ne scrollem stránky */
	.js .sc-track { animation: none; }

	.js .sc-shrink {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 560px) {
	/* na tlačítko už vedle obou přepínačů není místo; poptávka je hned v heru */
	.nav__cta { display: none; }

	/* na wordmark v liště taky ne — preserveAspectRatio=slice ořízne logo na samotný znak */
	.nav__brand .logo { width: 48px; }
}

@media (max-width: 480px) {
	.hero__media { grid-template-columns: minmax(0, 1fr); }

	.form__label { width: 100%; }
}

/* ---------------------------------------------------------- klidný režim */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	.js .rv,
	.js .sc,
	.marquee__track,
	.hero__media > div:last-child,
	.js .hero__eyebrow,
	.js .hero h1 .line > span,
	.js .hero__lead,
	.js .hero__cta > *,
	.js .hero__media {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		clip-path: none !important;
		filter: none !important;
	}

	.btn:hover { transform: none; }

	.lightbox[open],
	.lightbox[open]::backdrop { animation: none; }

	.shot__zoom {
		opacity: 1;
		transform: none;
	}
}
