/*
 * lausman.dev – prezentace, směr B „papír“ (docs/design.md, docs/design/web-mockup.html).
 * Barvy, písma a mezery z www/assets/shared/tokens.css. Žádné inline styly (CSP style-src 'self').
 */



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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.mono {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.label {
	display: block;
	color: var(--ink-muted);
	font-size: 12px;
	margin-bottom: var(--space-2);
}

.dot {
	display: inline-block;
	color: var(--accent);
}

.icon {
	display: inline-block;
	flex: none;
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: var(--space-2);
	z-index: 100;
	padding: 12px 16px;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}
.skip:focus { transform: none; color: var(--paper); }


/* ---------- tlačítka a odkazy ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 20px;
	border: var(--rule) solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: 600 15px/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn:hover .icon--arrow-down { transform: translateY(3px); }
.btn:hover .icon--arrow-up-right { transform: translate(2px, -2px); }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 500;
}
.text-link--back { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.text-link--back .icon { transition: transform var(--dur) var(--ease-out); }
.text-link--back:hover .icon { transform: translateX(-3px); }

.link-list { list-style: none; display: grid; gap: 2px; }
.link-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 500;
}
.link-list .icon { width: 16px; height: 16px; color: var(--ink-muted); }
.link-list a:hover .icon { color: currentColor; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
	padding: 5px 9px;
	border: 1px solid var(--line);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: none;
	color: var(--ink);
}

.group-title {
	color: var(--ink-muted);
	font-size: 12px;
	margin-bottom: var(--space-4);
}


/* ---------- hlavička ---------- */

.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: var(--space-5);
	min-height: 72px;
	border-bottom: var(--rule) solid var(--line-strong);
}

.logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: 700 20px/1 var(--font-display);
	letter-spacing: -0.02em;
	text-decoration: none;
}
.logo:hover { color: var(--ink); }

.site-nav__list { list-style: none; display: flex; gap: 32px; }
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font: 500 15px/1 var(--font-body);
	text-decoration: none;
}

/* Vpravo v hlavičce: přepínač vzhledu a jazyk. */
.site-header__tools { position: relative; display: flex; align-items: center; gap: 2px; }

.lang { display: flex; gap: 2px; font: 500 13px/1 var(--font-mono); letter-spacing: 0.06em; }
.lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--ink-muted);
	text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

@media (max-width: 860px) {
	.site-header__bar { padding-top: var(--space-2); }
	.site-nav {
		order: 3;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		width: calc(100% + 2 * var(--gutter));
		overflow-x: auto;
		scrollbar-width: none;
	}
	.site-nav::-webkit-scrollbar { display: none; }
	.site-nav__list { gap: 22px; padding-bottom: var(--space-1); }
	.site-nav a { font-size: 14px; white-space: nowrap; }
	.lang { margin-right: -10px; }
}
/* ---------- přepínač vzhledu (parts.latte themeSwitch, theme.js) ----------
 * Tlačítko s ikonou aktuální volby (podle data-theme na <html>), pod ním nabídka se čtyřmi rádii. Vybraná volba
 * má tečku v barvě akcentu, motiv Linkin Park pod názvem album, ze kterého jsou barvy. Nabídka se zarovná
 * k pravému okraji celé skupiny vpravo v hlavičce (i s jazykem), ať na telefonu nevyjede za okraj.
 */
.theme { position: static; }
.theme[hidden] { display: none; }
.theme__toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink-muted);
	cursor: pointer;
	transition: color var(--dur-fast) var(--ease-out);
}
.theme__toggle:hover,
.theme__toggle[aria-expanded="true"] { color: var(--ink); }
.theme__current { display: none; line-height: 0; }
.theme__current .icon { width: 20px; height: 20px; }
:root[data-theme="auto"] .theme__current--auto,
:root[data-theme="light"] .theme__current--light,
:root[data-theme="dark"] .theme__current--dark,
:root[data-theme="lp"] .theme__current--lp { display: inline-block; }
:root[data-theme="lp"] .theme__toggle { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
	/* Deska v ikoně se otočí jen při najetí, ne pořád (WCAG 2.2.2). */
	.theme__current .icon { transition: transform 0.6s var(--ease-out); }
	.theme__toggle:hover .theme__current--lp .icon { transform: rotate(180deg); }
}

.theme__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 60;
	width: min(320px, calc(100vw - 2 * var(--gutter)));
	padding: 14px 6px 8px;
	border: var(--rule) solid var(--line-strong);
	background: var(--paper-raised);
	box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.4);
}
.theme__menu[hidden] { display: none; }
.theme__options { min-width: 0; margin: 0; padding: 0; border: 0; }
.theme__legend { padding: 0 12px 8px; color: var(--ink-muted); font-size: 11px; }
.theme__option {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	min-height: 44px;
	padding: 6px 34px 6px 12px;
	cursor: pointer;
}
.theme__option:hover { background: var(--accent-soft); }
.theme__option .icon { width: 18px; height: 18px; color: var(--ink-muted); }
.theme__option--lp .icon { grid-row: span 2; }
/* Rádio je přes celý řádek (klik kamkoli, šipky mezi volbami), vidět je jen řádek a fokus na něm. */
.theme__radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.theme__option:has(.theme__radio:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.theme__option:has(.theme__radio:checked) .icon,
.theme__option:has(.theme__radio:checked) .theme__name { color: var(--accent); }
.theme__option:has(.theme__radio:checked)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	translate: 0 -50%;
}
.theme__name { font: 600 15px/1.25 var(--font-body); }
.theme__note { grid-column: 2; margin-top: 1px; color: var(--ink-muted); font-size: 10.5px; letter-spacing: 0.05em; }
/* Výběr alba: „Podle skladby dne“ přes celou šířku, pod ním osm alb ve dvou sloupcích. Vzorek = barvy alba
   (data-palette, lp-theme.css): podklad mezihry, dvě barvy přelivu a papír. */
.theme__albums {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 0;
	margin: 8px 0 0;
	padding: 12px 0 0;
	border: 0;
	border-top: 1px solid var(--line);
}
.theme__albums .theme__legend { grid-column: 1 / -1; float: left; width: 100%; }
.theme__album {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 40px;
	padding: 4px 8px 4px 12px;
	cursor: pointer;
}
.theme__album--day { grid-column: 1 / -1; min-height: 44px; }
.theme__album:hover { background: var(--accent-soft); }
.theme__album:has(.theme__radio:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.theme__swatch {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: conic-gradient(var(--lp-band) 0 25%, var(--fx-1) 0 50%, var(--fx-2) 0 75%, var(--paper) 0);
	box-shadow: 0 0 0 1px var(--line-strong);
	transition: transform var(--dur) var(--ease-out);
}
.theme__album:hover .theme__swatch { transform: rotate(-90deg); }
.theme__album-name { min-width: 0; font: 500 13px/1.25 var(--font-body); }
.theme__album-day { display: block; margin-top: 1px; color: var(--ink-muted); font-size: 10.5px; letter-spacing: 0.05em; }
.theme__album-day:empty { display: none; }
.theme__album:has(.theme__radio:checked) .theme__album-name { color: var(--accent); font-weight: 600; }
.theme__album:has(.theme__radio:checked) .theme__swatch { box-shadow: 0 0 0 2px var(--paper-raised), 0 0 0 4px var(--accent); }
.theme__album--day:has(.theme__radio:checked)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	translate: 0 -50%;
}
/* Album jde vybrat kdykoli, ale vybrané je vidět, jen když je zapnutý motiv Linkin Park. */
:root:not([data-theme="lp"]) .theme__album:has(.theme__radio:checked) .theme__album-name { color: inherit; font-weight: 500; }
:root:not([data-theme="lp"]) .theme__album:has(.theme__radio:checked) .theme__swatch { box-shadow: 0 0 0 1px var(--line-strong); }
:root:not([data-theme="lp"]) .theme__album--day:has(.theme__radio:checked)::after { content: none; }

.theme__key { margin: 8px 6px 0; padding: 10px 6px 2px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.theme__key kbd { min-width: 22px; height: 22px; margin-left: 4px; padding: 0 5px; font-size: 11px; }
/* Bez klávesnice (telefon) nápověda ke klávese nedává smysl. */
@media not (any-pointer: fine) {
	.theme__key { display: none; }
}

/* Nejužší telefony (320 px): ať se vejde celá navigace a poslední odkaz neuteče za okraj bez náznaku posunu. */
@media (max-width: 359px) {
	.site-nav__list { gap: 14px; }
	.site-nav a { font-size: 13px; }
}


/* ---------- úvod ---------- */

.hero {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	align-items: end;
	padding-top: 72px;
}

.hero__kicker {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-muted);
	letter-spacing: 0.12em;
}

.hero__name {
	grid-column: 1 / span 8;
	margin-top: 28px;
	font: 700 clamp(64px, 12.5vw, 196px)/0.86 var(--font-display);
	letter-spacing: -0.055em;
	font-kerning: normal;
}
.hero__line { display: block; }

.hero__side { grid-column: 9 / -1; padding-bottom: 14px; }
.hero__intro { color: var(--ink-muted); margin-bottom: 22px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.facts { position: relative; grid-column: 1 / -1; margin-top: 56px; padding-top: 20px; }
.facts__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
.facts__item { padding: 0 18px; border-left: 1px solid var(--line); }
.facts__item:first-child { padding-left: 0; border-left: 0; }
.facts__value { display: block; font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.facts__label { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }

@media (max-width: 1079px) {
	.hero__name { grid-column: 1 / -1; }
	.hero__side {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 24px 48px;
		align-items: end;
		margin-top: 40px;
		padding-bottom: 0;
	}
	.hero__intro { max-width: 60ch; margin-bottom: 0; }
}
/* Portrét v úvodu (fotka z profilu bez pozadí): modrý blok v barvě tečky, hlava vyčnívá nad jeho horní hranu.
   Černobílý „tisk na papír“, barvy při najetí myší. S portrétem jde text a tlačítka pod jméno. */
.portrait { position: relative; margin: 0; isolation: isolate; }
.portrait__block {
	position: absolute;
	inset: 24% 0 0;
	z-index: -1;
	background: var(--accent);
	transform-origin: 50% 100%;
}
.portrait__img {
	display: block;
	width: 100%;
	height: auto;
	filter: grayscale(1) contrast(1.08);
	transition: filter 0.5s ease;
}
.portrait:hover .portrait__img { filter: none; }

.hero--portrait .hero__name { grid-row: 2; }
.hero--portrait .portrait { grid-column: 9 / -1; grid-row: 2; align-self: end; }
.hero--portrait .hero__side {
	grid-column: 1 / -1;
	grid-row: 3;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	align-items: end;
	margin-top: 40px;
	padding-bottom: 0;
}
.hero--portrait .hero__intro { grid-column: 1 / span 7; max-width: 60ch; margin-bottom: 0; }
.hero--portrait .hero__actions { grid-column: 9 / -1; flex-direction: row; flex-wrap: wrap; }

@media (max-width: 860px) {
	.facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts__item:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1079px) {
	/* jméno je přes celou šířku jen bez portrétu; s ním má jméno 8 sloupců a portrét zbytek */
	.hero--portrait .hero__name { grid-column: 1 / span 8; }
	.hero--portrait .hero__side { grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
	.hero--portrait .hero__intro,
	.hero--portrait .hero__actions { grid-column: auto; }
	.hero--portrait .hero__actions { flex-direction: column; }
}
@media (max-width: 700px) {
	.hero { padding-top: 40px; }
	.hero__side { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
	.hero__actions { flex-direction: row; flex-wrap: wrap; }
	.facts { margin-top: 48px; }
	/* telefon: portrét pod jménem, menší a zarovnaný vlevo jako jméno */
	.hero--portrait .hero__name { grid-column: 1 / -1; }
	.hero--portrait .portrait { grid-column: 1 / span 8; grid-row: 3; justify-self: start; width: min(100%, 260px); margin-top: 32px; }
	.hero--portrait .hero__side { grid-row: 4; grid-template-columns: minmax(0, 1fr); }
	.hero--portrait .hero__actions { flex-direction: row; }
}
@media (max-width: 420px) {
	.facts__item { padding-right: 10px; }
	.facts__item:nth-child(even) { padding-left: 14px; }
	.facts__value { font-size: 20px; }
}


/* ---------- sekce ---------- */

.section { padding-top: 120px; }
.section--last { padding-bottom: 24px; }

.rule {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line);
	transform-origin: 0 50%;
}
.rule--strong { height: var(--rule); background: var(--line-strong); }

.section-head {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	padding-top: 22px;
	margin-bottom: 56px;
}
.section-head__no { grid-column: span 2; padding-top: 0.5em; color: var(--ink-muted); }
.section-head__title {
	grid-column: span 10;
	font: 700 clamp(36px, 5vw, 72px)/1 var(--font-display);
	letter-spacing: -0.04em;
}

.section-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.section-body > * { grid-column: 3 / -1; }

.lead {
	max-width: 46ch;
	margin-bottom: 64px;
	font: 400 clamp(20px, 2vw, 24px)/1.5 var(--font-body);
	color: var(--ink);
}

@media (max-width: 860px) {
	.section { padding-top: 88px; }
	.section-head { row-gap: 14px; margin-bottom: 40px; }
	.section-head__no, .section-head__title { grid-column: 1 / -1; }
	.section-head__no { padding-top: 0; }
	.section-body > * { grid-column: 1 / -1; }
	.lead { margin-bottom: 48px; }
}


/* ---------- projekty ---------- */

.feature {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	align-items: end;
	margin-bottom: 48px;
}
.feature__frame {
	grid-column: span 8;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: var(--rule) solid var(--line-strong);
	background: var(--paper-raised);
}
.feature__media { width: 100%; height: 100%; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature__text { grid-column: span 4; }
.feature__title {
	margin-bottom: 14px;
	font: 700 clamp(40px, 4.5vw, 56px)/0.95 var(--font-display);
	letter-spacing: -0.045em;
}
.feature__title a { text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.feature__meta { margin-bottom: 18px; color: var(--ink-muted); font-size: 12px; }
.feature__summary { margin-bottom: 24px; color: var(--ink-muted); }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }

.badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 7px 9px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.08em;
}

.projects { list-style: none; border-top: 1px solid var(--line); }

.project-row {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) 180px;
	gap: 24px;
	align-items: start;
	padding: 30px 0;
	border-bottom: 1px solid var(--line);
}
/* Podklad při najetí přesahuje text o kousek do stran, linky nechává být. */
.project-row::before {
	content: "";
	position: absolute;
	inset: 0 -12px 1px;
	z-index: -1;
	background: var(--paper-raised);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out);
}
.project-row:hover::before { opacity: 1; }

.project-row__no { padding-top: 0.45em; color: var(--ink-muted); font-size: 14px; letter-spacing: 0.04em; }
.project-row__title {
	font: 700 clamp(28px, 3.4vw, 44px)/1 var(--font-display);
	letter-spacing: -0.035em;
}
.project-row__link { text-decoration: none; }
.project-row__link::after { content: ""; position: absolute; inset: 0 -12px; }
.project-row__link:focus-visible { outline: none; }
.project-row__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.project-row:hover .project-row__link { color: var(--ink); }
.project-row__meta { margin-top: 12px; color: var(--ink-muted); font-size: 12px; }
.project-row__summary { color: var(--ink-muted); }
.project-row__stack {
	list-style: none;
	text-align: right;
	font-size: 12px;
	line-height: 1.9;
	letter-spacing: 0.04em;
	text-transform: none;
}

.project-row__more { color: var(--ink-muted); }

.project-group { margin-top: 72px; }

/* Archiv a starší projekty sbalené (Home/default.latte, project-more): tlačítko přes celou šířku seznamu. */
.project-more { margin-top: 64px; }
.project-more__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 0;
	border-top: var(--rule) solid var(--line-strong);
	border-bottom: 1px solid var(--line);
	font: 600 clamp(17px, 1.6vw, 20px)/1.2 var(--font-display);
	letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
}
.project-more__toggle::-webkit-details-marker { display: none; }
.project-more__toggle:hover { color: var(--accent); }
.project-more__toggle .icon { flex: none; transition: transform var(--dur) var(--ease-out); }
.project-more[open] > .project-more__toggle .icon { transform: rotate(180deg); }
.project-more > .project-group:first-of-type { margin-top: 40px; }
.project-group__title { margin-bottom: 14px; color: var(--ink-muted); font-size: 12px; }
.project-group__note { margin: -6px 0 18px; color: var(--ink-muted); font-size: 15px; }

.project-row--compact, .project-row--archive { padding: 22px 0; }
.project-row--compact .project-row__title { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.project-row--compact .project-row__meta, .project-row--archive .project-row__meta { margin-top: 8px; }
.project-row--archive .project-row__title { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.025em; color: var(--ink-muted); }
.project-row--archive .project-row__no,
.project-row--archive .project-row__stack { color: var(--ink-muted); }
.project-row--archive:hover .project-row__link { color: var(--ink); }

@media (max-width: 1023px) {
	.project-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
	.project-row__stack {
		grid-column: 2 / -1;
		display: flex;
		flex-wrap: wrap;
		gap: 2px 16px;
		text-align: left;
	}
}
@media (max-width: 860px) {
	.feature__frame, .feature__text { grid-column: 1 / -1; }
	.feature { margin-bottom: 40px; }
}
@media (max-width: 700px) {
	.project-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; }
	.project-row__no { padding-top: 0; }
	.project-row__stack { grid-column: 1; margin-top: 4px; }
	.project-row::before { inset: 0 calc(-1 * var(--gutter)) 1px; }
	.project-row__link::after { inset: 0; }
	.project-group { margin-top: 56px; }
}

/* Starší projekty: hustý seznam jako rejstřík – rok, název s větou, vpravo technologie a repo.
 * Odkaz na detail je roztažený přes řádek jako u projektů, odkaz na repo leží nad ním. */
.older { list-style: none; border-top: 1px solid var(--line); }
.older__row {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) minmax(0, 260px);
	gap: 4px 24px;
	align-items: baseline;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.older__row::before {
	content: "";
	position: absolute;
	inset: 0 -12px 1px;
	z-index: -1;
	background: var(--paper-raised);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out);
}
.older__row:hover::before { opacity: 1; }
.older__year { color: var(--ink-muted); font-size: 12px; letter-spacing: 0.06em; }
.older__title {
	font: 700 clamp(19px, 1.6vw, 22px)/1.15 var(--font-display);
	letter-spacing: -0.02em;
}
/* Jako archiv: tlumený název, při najetí inkoust. */
.older__link { color: var(--ink-muted); text-decoration: none; }
.older__link::after { content: ""; position: absolute; inset: 0 -12px; }
.older__link:focus-visible { outline: none; }
.older__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.older__row:hover .older__link { color: var(--ink); }
.older__text { margin-top: 4px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.older__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
.older__stack { color: var(--ink-muted); font-size: 12px; letter-spacing: 0.04em; text-transform: none; }
.older__tech { white-space: nowrap; }
.older__repo {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-bottom: -12px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: none;
}
.older__repo .icon { width: 14px; height: 14px; }

@media (max-width: 1023px) {
	.older__row { grid-template-columns: 56px minmax(0, 1fr); }
	.older__side {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 20px;
		text-align: left;
	}
	.older__repo { margin-block: -10px -14px; }
}
@media (max-width: 700px) {
	.older__row { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
	.older__side { grid-column: 1; }
	.older__row::before { inset: 0 calc(-1 * var(--gutter)) 1px; }
	.older__link::after { inset: 0; }
}

/* Typografická dlaždice místo chybějícího screenshotu. */
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	height: 100%;
	padding: clamp(18px, 3vw, 40px);
	overflow: hidden;
	background-color: var(--paper-raised);
	background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
	background-size: calc(100% / 12) 100%;
	color: var(--ink);
}
.tile__meta { color: var(--ink-muted); font-size: 12px; }
.tile__title {
	max-width: 12ch;
	font: 700 clamp(44px, 7vw, 112px)/0.88 var(--font-display);
	letter-spacing: -0.05em;
	overflow-wrap: anywhere;
}
.tile__stack { color: var(--ink-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: none; }
.tile--wide .tile__title { font-size: clamp(48px, 9vw, 150px); }

/* Náhled u kurzoru (vytváří web.js, jen myš na širokém displeji). */
.cursor-preview {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 40;
	width: min(340px, 28vw);
	border: var(--rule) solid var(--line-strong);
	background: var(--paper-raised);
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	will-change: transform, opacity;
}
.cursor-preview img { width: 100%; height: auto; }


/* ---------- praxe ---------- */

.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
	column-gap: 24px;
	padding: 32px 0;
	border-bottom: 1px solid var(--line);
}
.timeline__period { padding-top: 0.55em; color: var(--ink-muted); font-size: 13px; letter-spacing: 0.06em; }
.timeline__item--current .timeline__period { color: var(--ink); }
.timeline__badge { margin-bottom: 10px; color: var(--accent); font-size: 12px; }
.timeline__role { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.timeline__company { margin-top: 6px; font-weight: 500; }
.timeline__location { color: var(--ink-muted); font-weight: 400; }
.timeline__text { margin-top: 14px; max-width: 62ch; color: var(--ink-muted); }
.timeline__text p + p { margin-top: 0.8em; }
.timeline__highlights { margin-top: 14px; padding-left: 1.1em; max-width: 62ch; list-style: square; color: var(--ink-muted); }
.timeline__highlights li::marker { color: var(--accent); }
.timeline__body .tags { margin-top: 18px; }

@media (max-width: 700px) {
	.timeline__item { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
	.timeline__period { padding-top: 0; grid-row: auto; }
}


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

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.contact__info { grid-column: 1 / span 5; }
.contact__form { grid-column: 7 / -1; }
.contact__lead { max-width: 40ch; margin-bottom: 36px; color: var(--ink-muted); }
.contact__email-line { margin-bottom: 32px; }
.contact__email {
	display: inline-block;
	min-height: 44px;
	padding-block: 8px;
	font: 700 clamp(24px, 2.8vw, 36px)/1.15 var(--font-display);
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.16em;
}
.contact__phone { margin-bottom: 32px; }
.contact__phone a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact__availability { margin-bottom: 32px; padding-left: 14px; border-left: var(--rule) solid var(--accent); }

.form { position: relative; }
.field { margin-bottom: 22px; }
.field__label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.field__input {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--ink-muted);
	border-radius: 0;
	background: var(--paper-raised);
	color: var(--ink);
	font-size: 17px;
	line-height: 1.5;
	transition: border-color var(--dur-fast) var(--ease-out);
}
.field__input:hover { border-color: var(--ink); }
.field__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field__input--area { min-height: 190px; resize: vertical; }
.field--error .field__input { border: var(--rule) solid var(--danger); }
.field__error {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 8px;
	color: var(--danger);
	font-size: 15px;
	line-height: 1.45;
}
.field__error .icon { margin-top: 0.15em; }

.form__summary {
	margin-bottom: 28px;
	padding: 16px 18px;
	border: var(--rule) solid var(--danger);
	background: var(--paper-raised);
}
.form__summary-title { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--danger); font-weight: 600; }
.form__summary ul { padding-left: 1.2em; }
.form__summary li + li { margin-top: 4px; }
.form__summary:focus { outline: none; }
.form__summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 28px;
	padding: 16px 18px;
	border: var(--rule) solid var(--line-strong);
	background: var(--accent-soft);
	color: var(--ink);
}
.notice .icon { margin-top: 0.2em; color: var(--accent); }
.notice:focus { outline: none; }

/* Past na roboty: mimo obrazovku, ne display:none (to by robot poznal). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__actions { margin-top: 28px; }
.form__note { margin-top: 16px; max-width: 52ch; font-size: 14px; color: var(--ink-muted); }

@media (max-width: 860px) {
	.contact__info, .contact__form { grid-column: 1 / -1; }
}


/* ---------- patička ---------- */

.site-footer { margin-top: 128px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
	gap: 32px 24px;
	padding: 40px 0 48px;
	border-top: var(--rule) solid var(--line-strong);
}
.site-footer__name { font: 700 clamp(32px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.045em; }
.site-footer__email { font-weight: 600; overflow-wrap: anywhere; }
.site-footer__block p a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__block .link-list { gap: 0; }
/* Hustší seznam jen pro myš; na dotykových tabletech zůstávají cíle 44 px. */
@media (hover: hover) and (pointer: fine) {
	.site-footer__block .link-list a { min-height: 36px; }
}
.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding: 6px 0 32px;
	border-top: 1px solid var(--line);
	color: var(--ink-muted);
	font-size: 12px;
}
.site-footer__meta a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (max-width: 860px) {
	.site-footer { margin-top: 96px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__name { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__block .link-list a { min-height: 44px; }
}


/* ---------- efekty (www/assets/web/fx/) ----------
 * Prvky, které vytváří až skript (kurzor, mřížka „g“), nebo které bez JS jen stojí (pás technologií, časová osa).
 */

/* Klávesy v dialogu a v patičce. */
kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 7px;
	border: 1px solid var(--line-strong);
	border-bottom-width: 2px;
	background: var(--paper);
	color: var(--ink);
	font: 500 13px/1 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
}

/* Živé jméno: písmena mění tloušťku podle kurzoru (fx/home.js, jen myš). Tečku za jménem jde chytit a hodit. */
.hero__char { font-weight: inherit; }
.hero__name .dot.is-throwable { position: relative; cursor: grab; touch-action: none; }
.hero__name .dot.is-flying { z-index: 60; }
.facts__value .count { font-variant-numeric: tabular-nums; }

/* Sledovač kurzoru: modrá tečka (nit značky), nad odkazy popisek. Systémový kurzor zůstává. */
.cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 95;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	will-change: transform;
}
.cursor__dot {
	position: absolute;
	top: -5px;
	left: -5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
}
.cursor__label {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 9px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 500 11px/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
}

/* Navigace při najetí přeskládá písmena (ScrambleText); šířka odkazu se po dobu efektu drží. */
.is-scrambling { overflow: hidden; white-space: nowrap; }

/* Časová osa praxe: svislá linka mezi obdobím a textem, značka u každé pozice (modrá = současná). */
.timeline-wrap { --tl-gap: 48px; position: relative; }
.timeline-wrap .timeline__item { position: relative; column-gap: var(--tl-gap); }
.timeline__track {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc((100% - var(--tl-gap)) / 4 + var(--tl-gap) / 2 - 1px);
	width: 2px;
	background: var(--line);
}
.timeline__line {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--line-strong);
	transform-origin: 50% 0;
}
.timeline__mark {
	position: absolute;
	top: 41px;
	left: calc((100% - var(--tl-gap)) / 4 + var(--tl-gap) / 2 - 6px);
	width: 12px;
	height: 12px;
	border: var(--rule) solid var(--line-strong);
	border-radius: 50%;
	background: var(--paper);
}
.timeline__item--current .timeline__mark { border-color: var(--accent); background: var(--accent); }
/* Kariéra v kostce: jeden řádek na pozici (role, firma, případně „současná“), podrobnosti jsou v CV. */
.timeline-wrap--compact .timeline__item { padding: 18px 0; align-items: baseline; }
.timeline-wrap--compact .timeline__role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(20px, 2vw, 26px); }
.timeline-wrap--compact .timeline__company { margin: 0; font: 500 16px/1.4 var(--font-body); letter-spacing: 0; color: var(--ink-muted); }
.timeline-wrap--compact .timeline__badge { margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.timeline-wrap--compact .timeline__mark { top: 26px; }
.career__more { margin-top: 32px; }
/* Období zůstane u textu, dokud se dlouhý popis pozice čte. */
@media (min-width: 701px) {
	.timeline-wrap .timeline__period { position: sticky; top: 24px; align-self: start; }
}
@media (max-width: 700px) {
	.timeline-wrap .timeline__item { padding-left: 28px; }
	.timeline__track { left: 5px; }
	.timeline__mark { left: 0; top: 35px; }
}

/* Patička: tlačítko „Klávesové zkratky“ (ukáže ho až skript, bez JS nemá co otevřít). */
.site-footer__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-footer__keys {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.site-footer__keys:hover { color: var(--accent); }
.site-footer__keys kbd { min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; }
/* Jen dotyk bez myši a klávesnice: seznam klávesových zkratek nemá smysl. */
@media not (any-pointer: fine) {
	.site-footer__keys { display: none; }
}

/* Dialog „Pod kapotou“ (klávesa ?). Nativní <dialog>: Esc, past na fokus a neaktivní pozadí dělá prohlížeč.
   Dvě skupiny (web, Linkin Park) vedle sebe na širokém displeji, pod sebou na užším. */
.hood {
	width: min(1060px, calc(100% - 2 * var(--gutter)));
	max-height: calc(100% - 48px);
	padding: 28px;
	border: var(--rule) solid var(--line-strong);
	border-radius: 0;
	background: var(--paper-raised);
	color: var(--ink);
}
.hood::backdrop { background: rgba(18, 18, 18, 0.5); }
.hood__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.hood__title { font: 700 clamp(30px, 4vw, 40px)/1 var(--font-display); letter-spacing: -0.04em; }
.hood__close {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin: -10px -10px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.hood__close:hover { color: var(--accent); }
.hood__intro { margin-bottom: 20px; color: var(--ink-muted); }
.hood__groups { display: grid; gap: 28px 40px; }
.hood__group-title { margin-bottom: 8px; color: var(--ink-muted); font-size: 12px; }
.hood__keys { border-top: 1px solid var(--line); }
.hood__key {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.hood__key dt { display: flex; flex-wrap: wrap; gap: 6px; }
/* Linkin Park: slova jsou delší než klávesy, řádky hustší. */
.hood__group--lp .hood__key { grid-template-columns: 12rem minmax(0, 1fr); padding: 8px 0; }
.hood__group--lp dd { font-size: 15px; line-height: 1.45; }
.hood__group--lp kbd { min-width: 0; height: 26px; font-size: 12.5px; }
.hood__tip { margin-top: 18px; color: var(--ink-muted); font-size: 15px; }
.hood__tip + .hood__tip { margin-top: 8px; }
.hood__toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; font-size: 15px; cursor: pointer; }
.hood__toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
@media (min-width: 900px) {
	.hood__groups { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.hood__key { grid-template-columns: 6.5rem minmax(0, 1fr); }
	/* 13 řádků slov: s menšími mezerami se dialog na 1440 × 900 vejde celý bez posouvání. */
	.hood__group--lp .hood__key { grid-template-columns: 12.5rem minmax(0, 1fr); padding: 5px 0; }
}
@media (max-width: 480px) {
	.hood { padding: 22px 18px; }
	.hood__key,
	.hood__group--lp .hood__key { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Překryv „g“: 12 sloupců mřížky, obrysy komponent s názvem šablony a panel s měřením stránky. */
.grid-overlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.grid-overlay__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; height: 100%; }
.grid-overlay__cols span {
	background: rgba(36, 64, 214, 0.07);
	border-inline: 1px solid rgba(36, 64, 214, 0.28);
	transform-origin: 50% 0;
}
.grid-overlay__boxes { position: absolute; top: 0; left: 0; z-index: 89; width: 100%; pointer-events: none; }
.grid-box { position: absolute; top: 0; left: 0; outline: 1px dashed var(--accent); outline-offset: -1px; }
.grid-box__label {
	position: absolute;
	top: 0;
	left: 0;
	padding: 3px 6px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 500 11px/1.3 var(--font-mono);
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.grid-overlay__panel {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 91;
	max-width: calc(100% - 32px);
	padding: 14px 16px;
	background: var(--ink);
	color: var(--paper);
	font: 500 12px/1.5 var(--font-mono);
	pointer-events: none;
}
.grid-overlay__title { margin-bottom: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.grid-overlay__title .dot { color: var(--accent); }
.grid-overlay__metrics { display: grid; grid-template-columns: auto auto; gap: 2px 18px; }
.grid-overlay__metrics dt { opacity: 0.72; }
/* Mřížka je jen s JS, takže stačí data-scheme z early.js (tmavý vzhled i tmavá paleta motivu Linkin Park). */
:root[data-scheme="dark"] .grid-overlay__cols span { background: rgba(143, 162, 255, 0.08); border-color: rgba(143, 162, 255, 0.3); }

/* Kartička pro tisk z menu prohlížeče (na obrazovce není). */
.print-card { display: none; }


/* ---------- pohyb: výchozí stavy před animací ----------
 * Jen pod html.motion (early.js, bez prefers-reduced-motion) a jen dokud web.js nepřevezme řízení
 * (html.motion-ready). Bez JS, s omezeným pohybem nebo po pojistce je všechno vidět hned.
 */
html.motion:not(.motion-ready) [data-intro],
html.motion:not(.motion-ready) [data-reveal],
html.motion:not(.motion-ready) .section-head__no { opacity: 0; }
html.motion:not(.motion-ready) .rule { transform: scaleX(0); }
html.motion:not(.motion-ready) [data-cover] { clip-path: inset(0 0 100% 0); }
html.motion [data-split]:not(.is-split) { visibility: hidden; }
/* Portrét: skrytý, dokud fx/home.js nenastaví výchozí stav animace (html.portrait-ready). Kdyby skript nedoběhl,
   po 3 s se ukáže sám. */
html.motion:not(.portrait-ready) [data-portrait] { opacity: 0; animation: portrait-fallback 0.01s 3s forwards; }
@keyframes portrait-fallback { to { opacity: 1; } }

/* Masky SplitText: trochu místa navíc, ať háčky a dotahy při vyjíždění nejsou useknuté. */
.split-word-mask { padding: 0.12em 0.04em 0.08em; margin: -0.12em -0.04em -0.08em; }
.split-line-mask { padding-block: 0.1em 0.06em; margin-block: -0.1em -0.06em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ---------- přechody mezi stránkami (View Transitions) ----------
 * Titulní obrázek a název projektu se z úvodu plynule promění v detail a zpátky. Jména (view-transition-name)
 * dostávají prvky s data-vt až při odchodu/příchodu (early.js), jen ten jeden projekt a jen když je vidět.
 */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}
::view-transition-group(*) {
	animation-duration: 0.55s;
	animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }
/* Přepnutí vzhledu (theme.js): nový vzhled se rozlije kruhem od tlačítka přepínače, starý pod ním stojí. */
:root.theme-switching::view-transition-old(root) { animation: none; }
:root.theme-switching::view-transition-new(root) { animation: theme-reveal 0.7s cubic-bezier(0.6, 0, 0.2, 1) both; }
@keyframes theme-reveal {
	from { clip-path: circle(0 at var(--theme-x, 50%) var(--theme-y, 0)); }
	to { clip-path: circle(150vmax at var(--theme-x, 50%) var(--theme-y, 0)); }
}
/* Obrázek mezi různými výřezy (16:10 na úvodu, celý v detailu): ořez místo deformace. */
::view-transition-old(*.vt-media),
::view-transition-new(*.vt-media) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
/* Nadpis: zvětšuje se podle výšky a drží se vlevo, ať se písmo nedeformuje. */
::view-transition-old(*.vt-text),
::view-transition-new(*.vt-text) {
	width: auto;
	height: 100%;
	object-fit: fill;
}


/* ---------- tisk ----------
 * Prezentace se netiskne: Ctrl+P otevře CV k tisku (fx/hood.js), tisk z menu ukáže jen kartičku s adresou a QR.
 */
@media print {
	@page { size: A4; margin: 22mm; }
	html, body { background: #fff !important; color: #000 !important; }
	body > :not(.print-card) { display: none !important; }
	.print-card { display: block; color: #000; font: 12pt/1.45 var(--font-body); }
	.print-card__site {
		margin-bottom: 14mm;
		padding-bottom: 5mm;
		border-bottom: 1.5pt solid #000;
		font: 500 9pt/1 var(--font-mono);
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}
	.print-card__name { margin-bottom: 12mm; font: 700 40pt/0.95 var(--font-display); letter-spacing: -0.045em; }
	.print-card .dot { color: #2440d6; }
	.print-card__title { margin-bottom: 3mm; font: 700 16pt/1.2 var(--font-display); letter-spacing: -0.02em; }
	.print-card__text { max-width: 125mm; margin-bottom: 4mm; }
	.print-card__url { margin-bottom: 10mm; font: 500 15pt/1.2 var(--font-mono); }
	.print-card__qr { width: 40mm; color: #000; }
	.print-card__qr svg { display: block; width: 100%; height: auto; }
}

/* Kariéra v kostce: řádky jsou krátké, období nemusí být lepivé. */
.timeline-wrap--compact .timeline__period { position: static; align-self: baseline; }
