/* Jakub Hofhanzl — the one stylesheet (front end + editor canvas).
   Type and chrome use the live site's fixed sizes (they don't grow with the screen); only the hero's
   art scales, capped. Viewport heights: svh / lvh only (some mobile browsers misreport vh). */

/* ---------- Fonts (Poppins, self-hosted) ---------- */
@font-face { font-family: Poppins; font-weight: 200; font-display: swap; src: url(../fonts/poppins-latin-ext-200-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 200; font-display: swap; src: url(../fonts/poppins-latin-200-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(../fonts/poppins-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(../fonts/poppins-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 300; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-ext-300-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 300; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-ext-600-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-600-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-ext-700-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/poppins-latin-700-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--ink: #000;
	--paper: #fff;
	--muted: #8a8a8a;
	--rainbow: linear-gradient(110deg, #ffa473 0%, #ff8c60 10%, #ff6a52 19%, #ff4b5a 28%, #ff3f7e 33%, #fe36d7 41%, #ec40f7 46%, #a367ff 53%, #8d83fe 57%, #94b1ff 67%, #a2c8fe 72%, #cfe6ff 100%);
	--head: 113px;                        /* header band (live) */
	--side: 19.35vw;                      /* side margin of the hero claim frame (61.3vw wide, centred) */
	--gutter: 24px;
	--radius: clamp(18px, 2vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-color: #000 transparent; }
/* The site's scrollbar: a black pill in a transparent 20 px track. */
::-webkit-scrollbar { width: 20px; height: 20px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #000 content-box; border: 6px solid transparent; border-radius: 20px; }
body { margin: 0; background: var(--page-bg, var(--paper)); color: var(--page-ink, var(--ink)); font: 300 16px/1.5 Poppins, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #8d83fe; outline-offset: 3px; }

/* Grain over everything (the site's signature texture). */
body::after {
	content: ""; position: fixed; z-index: 100002; top: -40px; left: 0; width: 200%; height: 200%; pointer-events: none;
	background: url(../img/grain.png); opacity: .028; animation: jh-grain 10s steps(10) infinite;
}
@keyframes jh-grain {
	0%, 100% { transform: translate(0, 0); }
	10%, 30%, 50%, 70%, 90% { transform: translate(-5%, -10%); }
	20%, 40%, 60%, 80% { transform: translate(-15%, -20%); }
}

/* ---------- Header ---------- */
.jh-header {
	position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--head); padding: 0 var(--gutter);
	display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.jh-header > * { pointer-events: auto; }
.jh-header.is-solid, .nav-compact .jh-header { pointer-events: auto; } /* over content the band catches clicks (nothing under it is clickable through it) */
/* Over content (past the hero sequence, or scrolled on other pages) the band gets a frosted backdrop. */
.jh-header::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s, background-color .7s ease; }
.jh-header.is-solid::before { opacity: 1; }
.jh-logo { position: relative; display: block; overflow: hidden; padding: .6em 0; font-size: 41.6px; } /* the line is clipped to this box, like the old background */
.jh-logo__text { position: relative; z-index: 1; display: block; font-weight: 700; letter-spacing: -.0216em; line-height: 1; white-space: nowrap; }
.jh-logo__line { position: absolute; left: -17.5%; top: 45%; width: 135%; max-width: none; height: auto; overflow: visible; transform: translateY(-45%); pointer-events: none; }
.jh-logo__line path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } /* 4 = the drawings' pen at 600 px */
.jh-socials { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.jh-socials a { display: block; width: 50px; transition: transform .3s; }
.jh-socials a:hover { transform: scale(1.08); }
.jh-socials img { width: 100%; height: auto; }

/* ---------- Top menu (thin, letter-spaced; centred between the logo and the icons) ---------- */
.jh-nav { flex: 1; display: flex; justify-content: center; }
.jh-nav__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; font-weight: 200; font-size: 14px; letter-spacing: .32em; text-transform: lowercase; }
.jh-nav__list li + li::before { content: "-"; margin: 0 .7em 0 .38em; letter-spacing: 0; } /* the word's trailing letter-spacing (.32em) evens the gaps */
.jh-nav__list a { display: inline-block; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
/* hover / current: italic as a skew, so it can glide (Poppins' italic is a slanted roman) */
.jh-nav__list a:hover, .jh-nav__list .current-menu-item > a, .jh-nav__list .current-menu-ancestor > a { transform: skewX(-12deg); }

/* ---------- Page ---------- */
.jh-main { position: relative; z-index: 1; min-height: 100svh; }
.jh-page { padding: var(--head) var(--gutter) 20svh; }
.jh-page:has(> .jh-hero:first-child) { padding-top: 0; padding-left: 0; padding-right: 0; } /* full-bleed hero */

/* ---------- Signature (bottom-right corner, cropped by the viewport; live: 300 px, rotated 14°, tilts with the mouse) ---------- */
.jh-signature { position: fixed; z-index: 100001; right: -20px; bottom: -51px; width: 300px; pointer-events: none; perspective: 800px; }
.jh-signature__img { width: 100%; height: auto; rotate: 14deg; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .4s ease-out; filter: invert(var(--inv)); }

/* ---------- Interstitial curtain (first load + every swup visit) ---------- */
.jh-curtain { position: fixed; z-index: 2147483000; inset: 0; display: none; place-items: center; }
/* the surface is a layer of its own, so it can fade out while the signature flies to the corner */
.jh-curtain::before {
	/* clean white edges, the colours only in the middle, faded and soft */
	content: ""; position: absolute; inset: 0; opacity: var(--bg-o, 1);
	background: radial-gradient(ellipse 42% 40% at 50% 50%, rgba(255, 255, 255, .45), #fff 100%), url(../img/hero-gradient.webp) center / cover, #fff;
	/* the iris: a feathered circle (--r radius, --f feather) around --cx / --cy, animated by app.js */
	-webkit-mask: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 calc(var(--r, 300vmax) - var(--f, 0px)), transparent var(--r, 300vmax));
	mask: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 calc(var(--r, 300vmax) - var(--f, 0px)), transparent var(--r, 300vmax));
}
.jh-js .jh-curtain { display: grid; visibility: hidden; }
.jh-loading .jh-curtain { visibility: visible; }
.jh-curtain__sig { position: relative; width: clamp(180px, 22vw, 340px); height: auto;
	/* reveal: a soft-edged wipe in the writing direction (--rev 0 → 1, app.js) */
	--rev: 0; -webkit-mask: linear-gradient(100deg, #000 calc(var(--rev) * 130% - 30%), transparent calc(var(--rev) * 130%));
	mask: linear-gradient(100deg, #000 calc(var(--rev) * 130% - 30%), transparent calc(var(--rev) * 130%)); }
.jh-curtain__glow {
	position: absolute; left: 50%; top: 50%; width: clamp(260px, 34vw, 560px); aspect-ratio: 2.4; translate: -50% -50%;
	border-radius: 50%; background: var(--rainbow); filter: blur(120px); opacity: 0; scale: .6;
}

/* ---------- Custom cursor (fine pointers) ---------- */
.jh-cursor {
	position: fixed; z-index: 2147483001; left: 0; top: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
	background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; scale: .3; transition: scale .35s ease, opacity .3s;
}
.jh-cursor.is-link { scale: .7; }
.jh-cursor-on, .jh-cursor-on *, .jh-cursor-on .pswp * { cursor: none !important; }

/* ---------- The button (core/button "duha"; "sklo" = the glass alone) — the design's PNGs in CSS:
   a wide glass pill (grey, darker towards the ends, a bright upper rim = the "jewel") over a blurred
   rainbow glow that shows through the glass and spills out; rest = the 60 % glow, hover = 100 %.
   The glass never changes: only the glow does. ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }
.wp-block-button .wp-block-button__link,
.jh-button {
	position: relative; isolation: isolate; display: inline-block; min-width: 7.6em; padding: .34em 1.9em .38em; border-radius: 999px;
	font-weight: 200; font-size: clamp(18px, 1.75vw, 29px); line-height: 1.25; letter-spacing: .01em; text-align: center; color: rgba(255, 255, 255, .95);
	background: none; border: 0;
	text-shadow: 0 0 8px rgba(80, 60, 120, .3);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.wp-block-button .wp-block-button__link::before,
.jh-button::before {
	content: ""; position: absolute; z-index: -2; inset: -30% -3%; border-radius: 999px;
	background: linear-gradient(90deg, #ff8a52 2%, #ff4d5e 22%, #ff3fb0 38%, #ec40f7 48%, #8f6bff 62%, #6fa6ff 78%, #c3e2ff 98%);
	filter: blur(clamp(12px, 1.3vw, 20px)); opacity: .6; transition: opacity .6s ease, inset .6s cubic-bezier(.2, .7, .2, 1);
}
/* the glass: its own layer above the glow — thin, mostly transparent, blurring what's behind; the bevel is
   light from the top edge and a faint shade at the bottom edge (no hard white rim) */
.wp-block-button .wp-block-button__link::after,
.jh-button::after {
	content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit;
	background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .12));
	border: 1px solid rgba(255, 255, 255, .38);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, .55),   /* upper bevel */
		inset 0 -1px 2px rgba(60, 50, 90, .12),     /* lower bevel */
		inset 0 0 12px rgba(255, 255, 255, .12),    /* glass body */
		0 1px 6px rgba(40, 30, 60, .06);
	-webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
}
.wp-block-button .wp-block-button__link:hover::before, .wp-block-button .wp-block-button__link:focus-visible::before,
.jh-button:hover::before, .jh-button:focus-visible::before { opacity: 1; inset: -36% -5%; }
.wp-block-button .wp-block-button__link:hover, .jh-button:hover { transform: translateY(-1px); }
.wp-block-button.is-style-sklo .wp-block-button__link { color: #666; text-shadow: none; }
.wp-block-button.is-style-sklo .wp-block-button__link::before { display: none; }

/* ---------- Masked text ---------- */
.jh-mask-graphite, .is-style-grafit {
	color: transparent; background: url(../img/mask-graphite.webp) 58% 50% / 140%; -webkit-background-clip: text; background-clip: text;
}
.jh-mask-rainbow, .is-style-duha:not(.wp-block-button) {
	color: transparent; background: url(../img/mask-rainbow.webp) center / 190%; -webkit-background-clip: text; background-clip: text;
	animation: jh-orbit 6s ease-in-out infinite;
}
@keyframes jh-orbit { 50% { background-size: 128%; } }

/* ---------- Hero (jh/hero) ---------- */
.jh-hero { --em: min(36svh, clamp(220px, 20vw, 340px)); --card-top: var(--head); --card-h: min(73svh, 46vw); position: relative; }
.jh-hero__track { position: relative; height: calc(100svh + 90svh + 70svh); } /* scroll: 90svh the sequence, 70svh revealing the text */
.jh-hero__stage { position: sticky; top: 0; height: 100svh; }
.jh-hero__bg { position: absolute; inset: 0; overflow: hidden; background: #fff; } /* stays put (sticky stage) and fades to white on scroll */
/* legibility: the claim, tagline and chrome follow the tone of the photo behind them (app.js measures each
   slide; .is-on-dark on the hero, html.is-dark for the chrome) — no veils, no halos */
/* shades under the chrome in the tone of the photo there (app.js): one band across the top whose colour
   glides between the header's three zones, a soft corner under the signature; the middle stays clean.
   The zone colours are registered properties, so a change of photo cross-fades them. */
@property --z-logo { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .42); }
@property --z-nav { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .26); }
@property --z-icons { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .42); }
@property --z-sig { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .5); }
.jh-hero__shade { position: absolute; z-index: 1; inset: 0; pointer-events: none;
	--z-logo: rgba(255, 255, 255, .42); --z-nav: rgba(255, 255, 255, .26); --z-icons: rgba(255, 255, 255, .42); --z-sig: rgba(255, 255, 255, .4);
	transition: --z-logo .9s ease, --z-nav .9s ease, --z-icons .9s ease, --z-sig .9s ease; }
.jh-hero__shade.dark-logo { --z-logo: rgba(0, 0, 0, .42); }
.jh-hero__shade.dark-nav { --z-nav: rgba(0, 0, 0, .26); }
.jh-hero__shade.dark-icons { --z-icons: rgba(0, 0, 0, .42); }
.jh-hero__shade.dark-sig { --z-sig: rgba(0, 0, 0, .5); }
.jh-hero__shade-top { position: absolute; inset: 0 0 auto; height: calc(var(--head) + 90px);
	background: linear-gradient(90deg, var(--z-logo) 10%, var(--z-nav) 50%, var(--z-icons) 90%);
	-webkit-mask: linear-gradient(#000, rgba(0, 0, 0, .6) 40%, transparent); mask: linear-gradient(#000, rgba(0, 0, 0, .6) 40%, transparent); }
.jh-hero__shade-sig { position: absolute; right: 0; bottom: 0; width: 50%; height: 55%; background: radial-gradient(ellipse at 100% 100%, var(--z-sig), transparent 70%); }
.jh-hero .jh-claim__part--a { transition: filter .7s ease; filter: invert(0) brightness(.55) contrast(1.3); } /* graphite → near black; the same function list both ways, so it interpolates */
.jh-hero.is-on-dark .jh-claim__part--a { filter: invert(1) brightness(1.6) contrast(1.4); } /* graphite → near white, in step with the chrome (.7s) */
.jh-hero__tagline { transition: background .9s, color .9s, border-color .9s; }
.jh-hero.is-on-dark .jh-hero__tagline { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); color: #ddd; }
.jh-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.jh-hero__slide.is-active { opacity: 1; }
.jh-hero__anchor { position: absolute; left: 0; top: calc(100% - 100svh); } /* "o mně" = the end of the pin: emblem done, text fully revealed */
/* The veil: the pastel gradient over the video, so the footage reads as light texture behind the claim. */
.jh-hero__frame { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; }
/* as on jhnew: the two parts side by side, the second a step lower; the pair centred, a little below the middle */
.jh-claim { display: flex; align-items: flex-start; gap: .42em; margin: 14svh 0 0; font-weight: 600; font-size: clamp(48px, 6.6vw, 95px); line-height: .9; letter-spacing: -.05em; }
.jh-claim__part { display: block; white-space: nowrap; }
.jh-claim__part--b { margin-top: .63em; font-style: italic; }
.jh-claim__num, .jh-claim__word { display: inline-block; padding: .08em .04em .26em; } /* room for the masked descenders (g) */
.jh-claim__num { transform-origin: 0 0; will-change: transform; }
.jh-hero__tagline {
	position: absolute; left: 50%; bottom: 12%; translate: -50% 0; margin: 0; padding: .12em 1em .16em; white-space: nowrap; border-radius: 999px;
	font-weight: 200; font-size: clamp(14px, 1.46vw, 22px); color: var(--muted);
	background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 14px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #555;
}
.jh-hero__tagline strong { font-weight: 400; }
.jh-emblem { position: absolute; z-index: 1; left: 50%; top: calc(var(--head) + 2svh); width: var(--em); aspect-ratio: 1; translate: -50% 0; pointer-events: none; }
/* Medhajloneck.png as it is: the photo (px 480–1810 of the 2300 canvas) sits on the emblem's box, the
   hand-drawn lines reach out of it */
.jh-emblem__portrait { position: absolute; left: -36.1%; top: -36.1%; width: 172.9%; max-width: none; height: auto; opacity: 0; }
.jh-emblem__slot { position: absolute; visibility: hidden; font-weight: 600; line-height: 1; letter-spacing: -.035em; white-space: nowrap; padding: .08em .02em .14em; }
.jh-emblem__slot--a { right: 76%; top: 4%; font-size: calc(var(--em) * .26); }
.jh-emblem__slot--b { left: 86%; top: 56%; font-size: calc(var(--em) * .24); font-style: italic; }
.jh-hero__line { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jh-hero__line path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jh-hero__content { /* in the pinned stage, under the emblem; revealed line by line with the scroll (app.js) */
	position: absolute; z-index: 2; left: 50%; top: calc(var(--head) + 2svh + var(--em) + 4svh); width: min(78vw, 1100px); translate: -50% 0;
	text-align: center; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; letter-spacing: -.005em;
}
.jh-hero__content p { margin: 0 0 1.35em; }


/* ---------- The main menu as a burger + full-screen overlay: whenever the menu doesn't fit on one line
   between the logo and the icons (app.js measures it and sets html.nav-compact) ---------- */
.jh-nav__list { flex-wrap: nowrap; white-space: nowrap; }
.jh-burger { --d: 50px; display: none; position: relative; z-index: 3; flex: none; order: 3; width: var(--d); height: var(--d); margin-left: 20px; border: calc(var(--d) / 15) solid currentColor; border-radius: 50%; } /* ring = 1/15 of the diameter, as the social pictograms */
.nav-compact .jh-burger { display: block; }
.nav-compact .jh-socials { order: 2; margin-left: auto; }
.jh-burger span { position: absolute; left: 25%; right: 25%; height: calc(var(--d) / 15); background: currentColor; border-radius: 2px; transition: transform .45s cubic-bezier(.2, .7, .2, 1), top .45s cubic-bezier(.2, .7, .2, 1); }
.jh-burger span:first-child { top: 34%; }
.jh-burger span:last-child { top: 56%; }
.menu-open .jh-burger span:first-child, .menu-open .jh-burger span:last-child { top: 45%; }
.menu-open .jh-burger span:first-child { transform: rotate(45deg); }
.menu-open .jh-burger span:last-child { transform: rotate(-45deg); }
.nav-compact .jh-nav { position: fixed; z-index: 2; inset: 0; display: grid !important; place-content: center; padding: var(--head) var(--gutter); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #000;
	opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.nav-compact.home .jh-nav--top, .nav-compact body:not(.home) .jh-nav--home, .home .jh-nav--top, body:not(.home) .jh-nav--home { display: none !important; }
.menu-open .jh-nav { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.nav-compact .jh-nav__list { flex-direction: column; align-items: center; gap: .35em; font-size: clamp(30px, 6vw, 48px); letter-spacing: .12em; }
.nav-compact .jh-nav__list li + li::before { display: none; }
.nav-compact .jh-nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.menu-open .jh-nav__list li { opacity: 1; transform: none; }
.menu-open .jh-nav__list li:nth-child(2) { transition-delay: .05s; } .menu-open .jh-nav__list li:nth-child(3) { transition-delay: .1s; }
.menu-open .jh-nav__list li:nth-child(4) { transition-delay: .15s; } .menu-open .jh-nav__list li:nth-child(5) { transition-delay: .2s; }
.menu-open .jh-header, .menu-open .jh-logo, .menu-open .jh-nav { color: #000 !important; }
.menu-open .jh-nav a { color: #000; }
.menu-open .jh-socials, .menu-open .jh-signature { --inv: 0 !important; }
.jh-logo, .jh-socials { position: relative; z-index: 3; } /* above the open menu */

/* while the layout switches (breakpoint crossing) nothing animates */
.jh-switching *, .jh-switching *::before, .jh-switching *::after,
.jh-resizing .jh-header, .jh-resizing .jh-header *, .jh-resizing .jh-header::before { transition: none !important; } /* the header may change layout mid-resize: the overlay menu must not fade through */

/* ---------- Back to top (bottom left; the signature owns the right corner) ---------- */
.jh-up { --d: 50px; position: fixed; z-index: 100001; left: var(--gutter); bottom: var(--gutter); display: grid; place-items: center; width: var(--d); height: var(--d); border: calc(var(--d) / 15) solid currentColor; border-radius: 50%;
	color: var(--page-ink, #000); background: color-mix(in srgb, var(--page-bg, #fff) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .5s; }
.jh-up.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.jh-up svg { width: 24px; height: 24px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.jh-up:hover svg { transform: translateY(-3px); }
@media (max-width: 991px) { .jh-up { --d: 34px; } .jh-up svg { width: 18px; height: 18px; } }

/* ---------- Header menus: the home page's anchors vs the site menu ---------- */
.jh-nav--home, .home .jh-nav--top { display: none; }
.home .jh-nav--home { display: flex; }

/* ---------- Home: portfolio strip (jh/portfolio + jh/karta) ---------- */
/* Over a dark photo / section (app.js sets html.is-dark) the chrome turns light — a smooth cross-over,
   --inv is registered so the inversion can transition too). */
@property --inv { syntax: '<number>'; inherits: true; initial-value: 0; }
html { --inv: 0; transition: --inv .7s ease; }
html.is-dark { --inv: 1; }
.dark-icons .jh-socials { --inv: 1; }
.dark-sig .jh-signature { --inv: 1; }
.jh-socials, .jh-signature { transition: --inv .7s ease; }
.jh-header, .jh-burger { transition: color .7s ease; }
.dark-icons .jh-burger, .is-dark .jh-burger { color: #fff; } /* the burger sits by the icons: their tone */
.menu-open .jh-burger { color: #000 !important; }
.is-dark .jh-header, .dark-logo .jh-logo, .dark-nav .jh-nav { color: #fff; }
.jh-logo, .jh-nav { transition: color .7s ease; }
.jh-socials img { filter: invert(var(--inv)); }
.is-dark .jh-header::before { background: rgba(10, 12, 16, .6); }
.jh-portfolio__title { transition: color .5s; }
.jh-portfolio { position: relative; z-index: 3; height: 200svh; }
.jh-portfolio__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--head) + 1svh) 0 4svh; }
.jh-portfolio .jh-portfolio__title { margin: 0 0 3svh max(var(--gutter), 4vw); font-weight: 600; font-style: italic; font-size: clamp(36px, 4.5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.jh-portfolio__strip { flex: 1; min-height: 0; display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; padding: 0 max(var(--gutter), 4vw); will-change: transform; }
.jh-karta { position: relative; display: block; width: min(80vw, 520px); height: 100%; overflow: hidden; border-radius: var(--radius); color: #fff; background: #000; text-decoration: none !important; } /* background: the card's own colour (inline) */
.jh-karta__media, .jh-karta__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jh-karta--contain .jh-karta__media > * { object-fit: contain; }
@media (min-width: 992px) { /* desktop: big landscape cards */
	.jh-karta { width: clamp(520px, 46vw, 900px); }
	.jh-karta__title { font-size: 52px; }
	.jh-karta__text { font-size: 17px; }
}
.jh-karta__media > * { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.jh-karta:hover .jh-karta__media > * { transform: scale(1.04); }
.jh-karta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .55)); }
.jh-karta__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: .5em; padding: clamp(20px, 2vw, 32px); }
.jh-karta__title { font-weight: 600; font-size: 36.8px; line-height: 1; letter-spacing: -.03em; text-transform: lowercase; }
.jh-karta__text { font-weight: 300; font-size: 15px; line-height: 1.35; opacity: .9; }
.jh-karta__more { margin-top: .6em; min-width: 0; font-size: 18px; padding: .25em 1.2em .3em; }
.jh-karta:hover .jh-karta__more::before { opacity: 1; inset: -55% -13%; }

/* ---------- Home: kontakt ---------- */
.jh-kontakt { max-width: 900px; margin: 0 auto; padding: 18svh var(--gutter) 26svh; text-align: center; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; }
.jh-page .jh-kontakt h2 { margin: 0 0 .6em; font-weight: 600; font-style: italic; font-size: clamp(36px, 4.5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.jh-kontakt .wp-block-buttons { margin-top: 2em; gap: 1.6em; }
.wp-block-button.is-style-sklo .wp-block-button__link { font-size: clamp(16px, 1.4vw, 22px); color: #555; background: rgba(255, 255, 255, .5); border-color: rgba(0, 0, 0, .08); }

/* ---------- Pages ---------- */
/* A page that starts with jh/uvod: the intro is a sticky left column, everything else runs on the right. */
.jh-page:has(> .jh-uvod) {
	--col: clamp(240px, 26vw, 400px); /* the intro column — the chain's fixed column uses the same width */
	display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: clamp(28px, 3.4vw, 64px); align-items: start;
	padding-top: calc(var(--head) + 3svh);
}
.jh-page:has(> .jh-uvod) > :not(.jh-uvod) { grid-column: 2; }
.jh-page > .jh-uvod { grid-column: 1; grid-row: 1 / span 999; position: sticky; top: calc(var(--head) + 3svh); }
/* Any other page (Kontakt, …): one centred column. */
.jh-page:not(:has(> .jh-uvod, > .jh-hero)) { max-width: 1100px; margin: 0 auto; padding-top: calc(var(--head) + 4svh); text-align: center; font-size: 18px; line-height: 1.5; }
.jh-page h2 { margin: 2.2em 0 .9em; font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.jh-page > h2:first-child, .jh-page > .jh-uvod + h2 { margin-top: 0; }
.jh-page p { margin: 0 0 1em; }
.jh-page a:not(.wp-block-button__link) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.jh-page .wp-block-buttons { margin: 2.2em 0; }
.is-style-nadpis { font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.is-style-drobne { font-size: .72em; color: var(--muted); }

/* 404 */
.jh-404__code { margin: 0 0 .1em; font-weight: 600; font-style: italic; font-size: clamp(110px, 18vw, 260px); line-height: 1; letter-spacing: -.05em; }

/* Page intro (jh/uvod) */
.jh-uvod { font-size: 18px; line-height: 1.5; }
.jh-uvod__section { display: flex; align-items: baseline; gap: .45em; margin: 0 0 .35em; font-weight: 700; font-style: italic; font-size: 36.8px; line-height: 1; letter-spacing: -.024em; text-transform: lowercase; }
.jh-uvod__back { flex: none; align-self: center; width: 2.4em; margin-right: .3em; }
.jh-uvod__back img { width: 100%; height: auto; }
.jh-uvod__back:hover { animation: jh-nudge 1.6s ease-in-out infinite; }
@keyframes jh-nudge { 50% { transform: translateX(-6px); } }
.jh-uvod a { text-decoration: none !important; }
.jh-uvod__pages { margin: 0; padding: 0; list-style: none; font-weight: 500; font-size: 36.8px; line-height: .95; letter-spacing: -.024em; text-transform: lowercase; }
.jh-uvod__pages a { display: inline-block; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.jh-uvod__pages a:hover { transform: skewX(-12deg); }
/* current: one text growing a stroke (optically bold) — glides, no second weight on top */
@property --stroke { syntax: '<length>'; inherits: false; initial-value: 0px; } /* registered: Chrome won't animate the stroke itself */
.jh-uvod__pages a { --stroke: 0px; -webkit-text-stroke: var(--stroke) currentColor; transition: --stroke .5s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.jh-uvod__pages .is-current > a { --stroke: 1.6px; }
.is-tabs .jh-uvod__pages .is-current > a { --stroke: 0px; font-weight: 700; } /* small tabs: the real bold (a stroke goes jagged there) */
.jh-uvod__text { /* the hand-drawn frame (live: 200 px image, text 62 px down / 48 px in, at 20.8 px type) */
	max-width: 19em; margin-top: 2.6em; padding: 3em 0 2.5em 2.3em; font-weight: 200; font-size: 20.8px; line-height: 1.25;
	background: url(../img/frame.png) 0 0 / 9.6em auto no-repeat;
}

/* The desktop chain of sections (app.js chain()): one left column — every section's intro sits fixed in the
   same place and the active one cross-fades in; only the right side scrolls */
@media (min-width: 992px) {
	.jh-chain .jh-page > .jh-uvod { position: fixed; top: calc(var(--head) + 3svh); left: var(--gutter); width: clamp(240px, 26vw, 400px); max-height: calc(100svh - var(--head) - 6svh); overflow: hidden;
		opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
	.jh-chain .jh-page > .jh-uvod.is-active { opacity: 1; visibility: visible; transition: opacity .18s ease .18s; } /* out, then in: the switch in the middle */
	.jh-chain #swup > .jh-page { padding-bottom: 0; }
	.jh-chain .jh-page.is-chained { padding-top: 6svh; } /* the seam between two sections = between two parts */
	.jh-chain #swup > .jh-page:last-child { padding-bottom: 20svh; }
	/* one title over the column, flipping (app.js); the sections' own titles keep their place, hidden */
	.jh-chain .jh-page > .jh-uvod .jh-uvod__section span { visibility: hidden; }
	.jh-chain-title { position: fixed; z-index: 20; top: calc(var(--head) + 3svh); left: var(--gutter); margin: 0; perspective: 400px; pointer-events: none; }
	.jh-flap { position: relative; display: inline-grid; perspective: 300px; }
	.jh-flap i { grid-area: 1 / 1; font-style: inherit; padding: .06em .02em .12em; background: var(--page-bg, #fff); transform-origin: 50% 50%; backface-visibility: hidden; }
	.jh-flap .t, .jh-flap .ft { clip-path: inset(0 0 50% 0); }
	.jh-flap .b, .jh-flap .fb { clip-path: inset(50% 0 0 0); }
	.jh-flap .ft, .jh-flap .fb { opacity: 0; }
}

/* Parts of a section page (jh/oddil): heading, its gallery; the description shows in the intro */
.jh-oddil { scroll-margin-top: calc(var(--head) + 3svh); }
.jh-oddil + .jh-oddil { margin-top: 6svh; } /* parts; the chain's sections use the same seam */
.jh-oddil__title { margin: 0 0 .7em !important; font-weight: 600; font-style: italic; font-size: 36.8px; letter-spacing: -.035em; line-height: 1; text-transform: lowercase; }
.jh-oddil__popis { display: none; }
.jh-oddil .jh-gallery { margin-bottom: 0; }

/* Gallery (jh/galerie): justified rows in CSS — items grow by their aspect ratio (--r) around --h. */
.jh-gallery { --h: clamp(150px, 16vw, 280px); display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.jh-gallery--s { --h: clamp(120px, 12.5vw, 220px); }
.jh-gallery--l { --h: clamp(190px, 22vw, 400px); }
.jh-gallery::after { content: ""; flex-grow: 1000000; } /* the last row keeps its natural size */
.jh-gallery__item { position: relative; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); overflow: hidden; border-radius: 6px; background: #eee; }
.jh-gallery__item img { width: 100%; height: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.jh-gallery__item:hover img { transform: scale(1.035); }
.pswp.jh-pswp { --pswp-bg: #fff; --pswp-placeholder-bg: #f1f1f1; z-index: 100000; } /* photoswipe.css loads later: out-specify it */
/* Lightbox chrome = the live site's: hand-drawn arrows and cross at half strength, bullets below. */
.jh-pswp .pswp__button--jh-prev, .jh-pswp .pswp__button--jh-next { position: absolute; z-index: 10; top: 50%; width: 78px; height: auto; margin-top: -16px; padding: 0; overflow: visible; opacity: .5; transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.jh-pswp .pswp__button--jh-prev { left: 92px; }
.jh-pswp .pswp__button--jh-next { right: 92px; }
.jh-pswp .pswp__button--jh-prev:hover { opacity: 1; transform: translateX(-6px); }
.jh-pswp .pswp__button--jh-next:hover { opacity: 1; transform: translateX(6px); }
/* the cross (Cross.png, 270×325) whole, turning on hover around its own centre */
.jh-pswp .pswp__button--jh-close { position: absolute; z-index: 10; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; overflow: visible; opacity: .5; transition: opacity .35s ease; }
.jh-pswp .pswp__button.pswp__button--jh-close img { width: auto; height: 40px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.jh-pswp .pswp__button--jh-close:hover { opacity: 1; }
.jh-pswp .pswp__button.pswp__button--jh-close:hover img { transform: rotate(90deg); }
.jh-pswp .pswp__button img { width: 100%; height: auto; }
.jh-pswp .pswp__jh-bullets { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 7px; padding: 16px 20px; overflow: hidden; }
.jh-pswp .pswp__jh-bullets button { flex: none; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #d9d9d9; transition: background .3s, scale .3s; }
.jh-pswp .pswp__jh-bullets button:hover { scale: 1.3; }
.jh-pswp .pswp__jh-bullets .is-current { background: #000; }
.jh-pswp .pswp__img { border-radius: 2px; }
.jh-pswp .pswp__jh-count { display: none; }
@media (max-width: 767px) {
	.jh-pswp .pswp__button--jh-prev, .jh-pswp .pswp__button--jh-next, .jh-pswp .pswp__jh-bullets button { display: none; } /* swipe */
	.jh-pswp .pswp__button--jh-close { top: 12px; right: 12px; opacity: .7; }
	.jh-pswp .pswp__button.pswp__button--jh-close img { height: 28px; }
	.jh-pswp .pswp__jh-count { display: block; padding: 4px 0 6px; font-weight: 200; font-size: 13px; letter-spacing: .32em; }
}

/* Videos (jh/videa + jh/video) */
.jh-videa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 3.5svh 2vw; margin: 0; }
.jh-videa > .block-editor-block-list__block { margin: 0 !important; } /* editor: the same grid */
.jh-video { margin: 0; }
.jh-video__poster, .jh-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; overflow: hidden; background: #111; }
.jh-video__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.jh-video__poster:hover img { transform: scale(1.04); }
/* the play mark: a freehand triangle, its stroke overshooting the last corner (never quite closed) */
.jh-video__play { position: absolute; left: 50%; top: 50%; width: clamp(48px, 5vw, 72px); height: auto; translate: -50% -50%; overflow: visible;
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); transition: scale .45s cubic-bezier(.2, .7, .2, 1); }
.jh-video__play path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.jh-video__poster:hover .jh-video__play { scale: 1.12; }
.jh-video__text { margin-top: .9em; font-size: .9em; line-height: 1.45; text-align: center; }

/* YouTube modal (app.js) */
.jh-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: clamp(56px, 8svh, 90px) clamp(12px, 8vw, 180px); background: rgba(255, 255, 255, .96); }
.jh-modal__frame { width: min(100%, calc((100svh - 2 * clamp(56px, 8svh, 90px)) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; box-shadow: 0 30px 80px rgba(40, 20, 80, .18); }
.jh-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.jh-modal__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; opacity: .5; transition: opacity .35s ease; }
.jh-modal__close img { width: auto; height: 40px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.jh-modal__close:hover { opacity: 1; }
.jh-modal__close:hover img { transform: rotate(90deg); }

@media (max-width: 991px) { .jh-modal { padding: 64px 0; } .jh-modal__frame { border-radius: 0; } } /* phones: the player edge to edge */

/* Embedded website (jh/web) */
.jh-web { margin: 0; }
.jh-web iframe { display: block; width: 100%; min-height: 360px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #eee; }
.jh-web figcaption { margin-top: 1.4em; text-align: center; }
.jh-web__open { min-width: 0; font-size: 18px; padding: .25em 1.2em .3em; }

@media (max-width: 991px) { /* phones / tablets: no embedded site, a card to open it (A6) */
	.jh-web iframe { display: none; }
	.jh-web { display: grid; place-items: center; min-height: 34svh; padding: 8svh var(--gutter); border-radius: 12px; background: #eee url(../img/hero-gradient.webp) center / cover; }
	.jh-web figcaption { margin: 0; }
}

/* Emblem on its own (jh/emblem) */
.jh-emblem--static { --em: clamp(220px, 21vw, 360px); position: relative; left: auto; top: auto; z-index: 0; translate: none; width: var(--em); margin: 0 auto 6svh; }
.jh-emblem--static .jh-emblem__portrait { opacity: 1; }
.jh-emblem__num { position: absolute; z-index: 2; font-weight: 600; line-height: 1; letter-spacing: -.035em; white-space: nowrap; padding: .08em .02em .14em; }
.jh-emblem__num--a { right: 76%; top: 4%; font-size: calc(var(--em) * .26); opacity: .4; }
.jh-emblem__num--b { left: 86%; top: 56%; font-size: calc(var(--em) * .24); font-style: italic; }
.jh-emblem__line { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jh-emblem__line path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Line archive (jh/linky) */
.jh-linky { text-align: left; }
.jh-linky__bar { position: sticky; top: calc(var(--head) + 1svh); z-index: 5; display: inline-block; padding: .3em .9em; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); font-size: 15px; }
.jh-linky__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.jh-linky__card { margin: 0; }
.jh-linky__card figcaption { margin-top: .4em; font-size: 13px; color: var(--muted); }
.jh-linky__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.jh-linky__pair > * { position: relative; width: 100%; aspect-ratio: 600 / 286; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #eee; object-fit: contain; }
.jh-linky__card--mono .jh-linky__pair > * { aspect-ratio: 1434 / 1101; }
.jh-linky__vec svg { width: 100%; height: 100%; overflow: visible; }
.jh-linky__vec path, .jh-linky__morph path { fill: none; stroke: #000; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.jh-linky__card--mono .jh-linky__vec path { stroke-width: 22; }
.jh-linky__note { display: grid; place-items: center; margin: 0; padding: 1em; font-size: 14px; color: var(--muted); }
/* overlay: the vector (red) on top of its original */
.jh-linky.is-overlay .jh-linky__pair { grid-template-columns: 1fr; }
.jh-linky.is-overlay .jh-linky__vec { grid-area: 1 / 1; }
.jh-linky.is-overlay .jh-linky__pair img { grid-area: 1 / 1; opacity: .35; }
.jh-linky.is-overlay .jh-linky__vec path { stroke: #e0245e; opacity: .75; }
.jh-linky__morph { max-width: 720px; }
.jh-linky__morph svg { width: 100%; height: auto; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px #eee; }
.jh-linky__morph .jh-video__play { position: relative; left: auto; top: auto; translate: none; }
.jh-linky .jh-emblem { margin-top: 4svh; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 991px) {
	/* header: logo + icons on one row, the menu as one scrollable line under them; it scrolls away */
	:root { --head: 64px; --side: var(--gutter); }
	.jh-header { position: fixed; display: grid; grid-template-columns: 1fr auto; align-items: center; height: var(--head); } /* sticky (A1) */
	.jh-logo { justify-self: start; font-size: 24px; padding: .45em 0; } /* its own width: the line is 135 % of it */
	.jh-socials { grid-row: 1; gap: 7px; }
	.jh-socials a { width: 30px; }
	.jh-header { grid-template-columns: 1fr auto auto; }
	.jh-socials { grid-column: 2; }
	.jh-burger { --d: 30px; grid-row: 1; grid-column: 3; margin-left: 7px; }
	/* parts as tabs: the intro's list is the tab bar, sticky; one part shown */
	.jh-page.is-tabs .jh-uvod__pages { position: sticky; top: var(--head); z-index: 4; display: flex; flex-wrap: wrap; gap: .15em .8em; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter); font-size: 20px; line-height: 1.1;
		background: transparent; }
	/* stuck under the header, the tab bar and the header are ONE frosted surface (two blurred layers seam) */
	.jh-page.is-tabs .jh-uvod__pages::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: 0; background: var(--page-bg, #fff); transition: none; }
	.tabs-stuck .jh-page.is-tabs .jh-uvod__pages::before { top: calc(-1 * var(--head)); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.tabs-stuck .jh-header::before { opacity: 0 !important; }
	.jh-page.is-tabs .jh-uvod__pages::-webkit-scrollbar { display: none; }
	.jh-page.is-tabs .jh-uvod__pages li { flex: none; }
	.jh-page.is-tabs > .jh-uvod { display: contents; } /* so the tab bar can stick across the whole page */
	.jh-page.is-tabs .jh-uvod__pages { margin-bottom: 2svh; }
	.jh-page:has([data-jh-parts]) .jh-oddil:not(.is-open) { display: none; } /* closed tabs: not rendered, images not loaded */
	.jh-page.is-tabs .jh-oddil + .jh-oddil { margin-top: 0; }
	.jh-page.is-tabs .jh-oddil__title { display: none; } /* the tab says it */
	.jh-page h2 { font-size: 24px; }
	.jh-uvod__section { font-size: 30px; }
	.jh-hero { --card-h: calc(100svh - var(--head) - 96px); --em: min(40vw, 21svh); }
	.jh-hero__frame { padding: 0 var(--gutter); }
	.jh-claim { flex-direction: column; gap: 0; width: 100%; margin: 6svh 0 0; padding: 0 9vw 0 2vw; font-size: clamp(30px, min(11.5vw, 13svh), 92px); } /* tvorba left, magie right — with room for the orbit; short screens cap it */
	.jh-claim__part--a { align-self: flex-start; }
	.jh-claim__part--b { align-self: flex-end; margin-top: -.05em; } /* the two rows close together */
	.jh-hero__tagline { font-size: clamp(12px, min(3.6vw, 3.6svh), 18px); }
	.jh-hero .jh-emblem { top: var(--head); }
	.jh-hero__content { width: calc(100vw - 2 * var(--gutter)); top: calc(var(--head) + var(--em) + 3svh); font-size: 15px; line-height: 1.42; }
	.jh-hero__content p { margin-bottom: .9em; }
	.jh-signature { width: 130px; right: -14px; bottom: -30px; }
	.jh-page:has(> .jh-uvod) { display: block; padding-top: calc(var(--head) + 2svh); }
	.jh-page > .jh-uvod { position: static; margin-bottom: 4svh; }
	.jh-uvod__pages { display: flex; flex-wrap: wrap; gap: 0 .5em; }
	.jh-uvod__text { max-width: none; margin-top: 1.2em; font-size: 17px; }
	.jh-uvod__text:has([data-jh-popis]) { display: none; } /* phones: each part shows its own description */
	.jh-oddil__popis { display: block; margin: -.2em 0 1.2em; font-weight: 200; font-size: 17px; line-height: 1.35; }
	.jh-gallery { --h: 105px; gap: 4px; }
	.jh-gallery--l { --h: 112px; }
	.jh-gallery__item { min-width: calc(50% - 2px); } /* at most two photos per row */
}
@media (min-width: 600px) and (max-width: 991px) { /* tablets: a bit larger */
	.jh-hero { --em: min(40vw, 30svh); }
	.jh-hero .jh-hero__content { width: min(640px, calc(100vw - 2 * var(--gutter))); font-size: 17px; line-height: 1.5; }
	:root { --head: 76px; }
	.jh-logo { font-size: 34px; }
	.jh-socials a { width: 42px; }
	.jh-burger { --d: 42px; }
	.jh-signature { width: 140px; right: -16px; bottom: -32px; }
}
@media (min-width: 992px) and (max-width: 1180px) { .jh-signature { width: 210px; right: -20px; bottom: -40px; } } /* tablet landscape */
@media (prefers-reduced-motion: reduce) {
	body::after, .jh-mask-rainbow, .is-style-duha { animation: none; }
}


