/* =========================================================================
   Jan Saška — Phase 2 monochrome morph theme
   1) Reset  2) Tokens  3) @font-face  4) Base/Type  5) Grain+Mask
   6) Layout  7) Header/Nav  8) Footer  9) Forms/Buttons 10) Utilities
   11) Hero 12) Page-bg 13) Audio player 14) Video rows 15) Nav smoke
   16) Responsive
   ========================================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* scrollbar-gutter: stable — reserve the scrollbar space on EVERY page, so a
   short page (no scrollbar) and a tall page (scrollbar present) have the same
   content width. Without it, switching pages shifts the whole layout sideways. */
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scrollbar-gutter: stable; overflow-x: hidden; }
body { min-height: 100vh; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Monochrome palette */
  --c-black: #0b0b0b;
  --c-ink:   #141414;
  --c-smoke: #6e6e6e;
  --c-ash:   #9a9a9a;
  --c-fog:   #cfcfcf;
  --c-white: #f2f2f2;

  /* Neumorphism / Soft UI base (dark) — surfaces share this color; form comes from shadows */
  --c-base:  #1b1c1f;
  --c-deep:  #101012;   /* dark shadow tone (bottom-right) */
  --c-hi:    #27282d;   /* light highlight tone (top-left) */
  --nm-out:    7px 7px 16px var(--c-deep), -7px -7px 16px var(--c-hi);
  --nm-out-sm: 4px 4px 9px var(--c-deep), -4px -4px 9px var(--c-hi);
  --nm-in:     inset 5px 5px 11px var(--c-deep), inset -5px -5px 11px var(--c-hi);
  --nm-in-sm:  inset 3px 3px 7px var(--c-deep), inset -3px -3px 7px var(--c-hi);

  --color-bg: var(--c-base);
  --color-text: var(--c-fog);
  --color-heading: var(--c-white);
  --color-muted: var(--c-ash);
  --color-border: rgba(242, 242, 242, 0.10);

  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-base: 1rem;
  --fs-h1: clamp(2.5rem, 8vw, 6rem);
  --fs-h2: clamp(2rem, 5vw, 4rem);
  --fs-h3: clamp(1.4rem, 3vw, 2.2rem);
  --fs-small: 0.85rem;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem;
  --sp-24: 6rem; --sp-32: 8rem;

  --container: 1290px;
  --container-narrow: 820px;
  --radius: 16px;
  --transition: 300ms cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. @font-face ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-v24-latin_latin-ext-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-v24-latin_latin-ext-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-v24-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-v24-latin_latin-ext-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-v24-latin_latin-ext-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-v44-latin_latin-ext-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-v44-latin_latin-ext-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-v44-latin_latin-ext-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-v44-latin_latin-ext-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- 4. Base / Typography ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--c-base);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: main grows, footer always at the very bottom of the page */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-white); transition: color var(--transition); }
::selection { background: var(--c-white); color: var(--c-black); }

/* ---------- 5. Grain + edge masks ---------- */
/* Film grain — plain alpha composite (no mix-blend-mode: blending the whole
   page every frame was a measurable compositing cost on weak GPUs) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: .05; filter: grayscale(1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Pre-paint hiding of JS-animated elements. <html> gets .js from an inline
   <head> script BEFORE first paint, so reveal targets never flash visible and
   then re-hide (the "load glitch"). main.js removes .js again if GSAP failed
   to load, so content can never be trapped hidden. */
.js [data-reveal], .js [data-reveal-lines], .js [data-stagger] > *, .js [data-brutal] > *,
.js .page--home [data-hero-lines], .js .page--home .home-hero__sub,
.js .page--home2 [data-hero-lines], .js .page--home2 .home-hero__sub { opacity: 0; }

/* ---------- 6. Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--sp-6); padding-right: var(--sp-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-24) 0; }
/* overflow-x: clip — the "brutal" row entrance slides rows in from ±28% off
   their own width; without clipping here that pushes the document wider than the
   viewport and lets the whole page scroll sideways (very visible on iOS). */
.site-main { display: block; flex: 1 0 auto; width: 100%; overflow-x: clip; }

/* ---------- 7. Header / Nav ---------- */
/* Static overlay header — sits at the top, scrolls away with the page (not sticky) */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp-6) 0;
  background: transparent;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); position: relative; }
.site-header__logo { display: inline-flex; }
.site-header__logo img { width: auto; max-width: 130px; filter: brightness(0) invert(1); }
@media (min-width: 1025px) { .site-header__logo img { max-width: 200px; } }

/* Nav is always inline (no hamburger dropdown). On mobile/tablet the current
   page's own link is hidden (see responsive) so only the other pages appear. */
.nav { display: block; }
.nav__list { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--sp-6); }
/* No underline — hover/active state is the canvas smoke (js/smoke.js);
   the active item smokes continuously */
.nav__link {
  position: relative; display: inline-block; isolation: isolate;
  font-family: var(--font-heading); font-weight: 600; letter-spacing: .14em;
  text-transform: lowercase; color: var(--c-fog); padding: var(--sp-2) 0;
  transition: color var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--c-white); }

/* Header social */
.site-header__social { display: none; gap: var(--sp-4); align-items: center; }
.site-header__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-fog); border: 1px solid var(--color-border); transition: var(--transition); }
.site-header__social a:hover { color: var(--c-black); background: var(--c-white); border-color: var(--c-white); }
@media (min-width: 1025px) { .site-header__social { display: flex; } }

/* ---------- 8. Footer ---------- */
/* Minimal footer — plain centered copyright line, no card/background */
.site-footer {
  position: relative; z-index: 1;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  color: var(--color-muted);
  font-size: .8rem;
  text-align: center;
}
.site-footer__copy { opacity: .85; }

/* ---------- 9. Forms / Buttons ---------- */
/* Outline aesthetic (the neumorphic surfaces read as broken on a pure-black page) */
.btn { display: inline-block; padding: var(--sp-4) var(--sp-8); border-radius: 999px; font-weight: 600; font-family: var(--font-heading); letter-spacing: .08em; text-transform: uppercase; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.btn--primary { background: transparent; color: var(--c-white); border: 1px solid var(--color-border); box-shadow: none; }
.btn--primary:hover, .btn--primary:focus { color: var(--c-black); background: var(--c-white); border-color: var(--c-white); box-shadow: none; }
.btn--primary:active { transform: translateY(1px); box-shadow: none; }
.form { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-6); margin: var(--sp-12) 0; }
.form__row { display: flex; flex-direction: column; gap: var(--sp-2); }
.form__label { font-weight: 600; font-size: var(--fs-small); letter-spacing: .06em; color: var(--c-ash); text-transform: uppercase; }
.form__input { padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: 12px; background: transparent; color: var(--c-white); width: 100%; box-shadow: none; transition: border-color var(--transition); }
.form__input::placeholder { color: var(--c-smoke); }
.form__input:focus { outline: none; border-color: var(--c-white); box-shadow: none; }
.form__input--invalid, .form__input--invalid:focus { border-color: #d05a5a; box-shadow: none; }
.form__input--textarea { resize: vertical; min-height: 9rem; }
.form .btn--primary { align-self: flex-start; }   /* content-width button, not a full-width bar */
.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--sp-4); border-radius: var(--radius); margin: var(--sp-6) 0; border: 1px solid var(--color-border); }
.alert--success { background: rgba(242,242,242,.08); color: var(--c-white); }
.alert--error { background: rgba(242,242,242,.04); color: var(--c-fog); }

/* Fakturační údaje (Ozvěte se) — plain text block, no box */
.ico { margin-top: var(--sp-16); }
.ico__title { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.page-content .ico p { margin: 0 0 var(--sp-1); font-size: .95rem; line-height: 1.7; color: var(--c-ash); max-width: none; }
.ico a { color: var(--c-fog); }
.ico a:hover { color: var(--c-white); }

/* ---------- 10. Utilities ---------- */
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Generic page content */
.page-content { padding-top: clamp(13rem, 22vh, 19rem); padding-bottom: var(--sp-24); position: relative; z-index: 1; }
.page-content h1 { margin-bottom: var(--sp-8); }
.page-content p { font-size: 1.05rem; line-height: 1.8; color: var(--c-fog); margin-top: var(--sp-6); max-width: 62ch; }

/* ---------- 16. Responsive ---------- */
/* Mobile + tablet (< 1025px): links shown inline, no hamburger; hide the current
   page's own link so only the other pages are offered. Nav drops to its own line
   under the logo so the long labels never crowd it. */
@media (max-width: 1024px) {
  /* Centered header: logo on top, the (three) nav links centered below it */
  .site-header__inner { flex-wrap: wrap; row-gap: var(--sp-4); justify-content: center; }
  .nav { flex-basis: 100%; }
  .nav__list { justify-content: center; }
  /* Inner pages: header in normal flow (not an absolute overlay) so its full
     height — logo + the nav wrapped onto its own line — pushes the content down
     instead of overlapping it. (Home keeps an absolute overlay header — see the
     .page--home rules.) */
  .site-header { position: static; }
  .page-content { padding-top: var(--sp-8); }
  /* Perf: film grain je fixed full-screen vrstva s `filter` nad měnícím se
     obsahem — na mobilu se přeblenduje každý frame při scrollu (znatelný jank).
     Při opacity .05 je stejně sotva vidět, na mobilu ji vypneme. */
  body::after { display: none; }
}
@media (min-width: 1025px) {
  .nav__list { gap: var(--sp-8); }
}
/* Phones: shrink the nav so all three links fit comfortably on one centered
   line (the set can include the long "hlavní stránka") */
@media (max-width: 560px) {
  .nav__list { gap: var(--sp-3); }
  .nav__link { font-size: .78rem; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body::after { display: none; }
}

/* ======== page modules appended below (hero, player, video, smoke) ======== */

/* ---------- 11. Home hero — one full screen, never scrolls ---------- */
/* A cinematic video BAND at the top dissolves into pure black; below it the
   statement sits in the black area, vertically centred and left-aligned in the
   site container (comfortable margin, natural line length); the menu is a clean
   bar overlaid on the band and the simple footer stays visible at the bottom.
   The page is exactly one viewport tall and never scrolls. */
.page--home { --c-base: #000; height: 100vh; height: 100svh; overflow: hidden; }
.page--home .site-header { position: absolute; top: 34svh; }   /* sits low on the band, at the video→black transition */
.page--home .site-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Contact + simple pages (privacy/disclaimer/404): unified black background */
.page--contact, .page--default { background: #000; }

.home-hero { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Video band — cover-cropped, dissolves into black at its lower edge */
.home-hero__video { position: relative; flex: none; height: 48svh; overflow: hidden; background: #000; }
.home-hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.62);
}
/* "Fade into nothing" — the bottom of the band dissolves to pure black */
.home-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, #000 88%); }
/* The statement — in the black area under the band, vertically centred, and
   left-aligned to the same container edge as the Vidět/Slyšet intro lines.
   (width:100% stops the flexbox auto-margins from shrink-centring the container.) */
.home-hero__content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.home-hero__content > .container { width: 100%; }
.home-hero__headline { margin: 0; max-width: 20ch; color: var(--c-white);
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: 1.0; }
.home-hero__sub { margin: var(--sp-8) 0 0; max-width: 50ch; color: var(--c-fog);
  font-family: var(--font-body); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.55; }
@media (max-width: 640px) {
  .home-hero__video { height: 40svh; }
  .page--home .site-header { top: 24svh; }   /* keep the menu inside the (shorter) band, clear of the statement */
  .home-hero__headline { font-size: clamp(2.3rem, 9vw, 3.4rem); max-width: 16ch; }
  .home-hero__sub { margin-top: var(--sp-6); font-size: clamp(1.05rem, 4.3vw, 1.3rem); }
}

/* ---------- 11b. Home v2 — menu → video → statement ----------
   Menu je NAHOŘE v běžném toku (ne překryté nízko na bandu jako ve v1). Chování
   výšky je responzivní:
   • DESKTOP (≥1025px): JEDNA obrazovka bez scrollu — header (auto) + site-main
     (vyplní zbytek) + footer (auto) = přesně 100svh; statement vyplní a vycentruje
     prostor pod videem.
   • MOBIL/TABLET (≤1024px): přirozený tok se scrollem — na malých zařízeních se
     výška viewportu mění podle chromu prohlížeče (svh), takže cpát vše do jedné
     obrazovky nespolehlivě přetéká a statement se překrýval s videem. Radši scroll.
   Původní v1 (.page--home) zůstává pro index-v1.php. */
/* NEPOUŽÍVAT pevné height:100svh + overflow:hidden — na nízkém notebooku
   (např. 1366×768) se video + menu + statement + footer nevejdou, ořez je
   schová a justify-center vytlačí statement pod video. Místo toho single-screen
   vzniká přirozeně: body má min-height:100svh + display:flex (sticky footer),
   site-main vyplní zbytek a statement se vycentruje. Když se obsah nevejde,
   stránka se prostě odroluje (žádný ořez, žádný text pod videem). */
.page--home2 { --c-base: #000; }
.page--home2 .site-header { position: static; }   /* menu nahoře v toku — nikdy přes video */
.page--home2 .site-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.page--home2 .home-hero__video { height: 40svh; }  /* menší než v1 (48svh), protože menu teď bere místo nad videem */
/* Horní hrana bandu se vynořuje z černého pásu s menu — zrcadlí spodní fade
   (.home-hero__fade), takže video nemá tvrdý střih ani nahoře, ani dole. */
.page--home2 .home-hero__video::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #000 0%, transparent 100%);
}
@media (max-width: 1024px) {
  /* Odemkni výšku → přirozený tok, ať se nic necpe ani nepřekrývá. */
  .page--home2 { height: auto; overflow: visible; }
  .page--home2 .site-main { display: block; }
  .page--home2 .home-hero { display: block; }
  .page--home2 .home-hero__video { height: 44svh; }
  .page--home2 .home-hero__content { padding: var(--sp-10) 0 var(--sp-12); }
}

/* ---------- 12. Fixed background (Slyšet / Vidět) ---------- */
/* Portrait artwork shown whole (contain), left-aligned, on a black page. Its
   right edge is feathered into the black so the photo→background seam is
   invisible. Static (no animation). */
.page--about, .page--services { background: #000; }
.page-bg {
  position: fixed; inset: 0; z-index: -3;
  background-size: auto 120%; background-position: left center; background-repeat: no-repeat;
  /* Feather the photo's right edge into the black page so the photo→background
     seam disappears. Black itself now comes from the body (above), so masking
     the image away can't reveal any non-black fill.
     CRITICAL: mask-size width must be an explicit length, NOT `auto`. A gradient
     has no intrinsic size, so `mask-size: auto` resolves to the full element
     (viewport) width instead of the image width — the fade then tracks the
     viewport, not the photo, and the seam reappears at some resolutions. The
     image is shown at `background-size: auto 120%` (height = 120vh), and both
     photos have aspect ≈0.563, so their displayed width is 120vh × 0.563 ≈
     67.6vh. Sizing the mask box to exactly that makes the 90deg fade span the
     photo's real width, so its right edge lands deep in the transparent zone on
     every viewport. */
  -webkit-mask-image: linear-gradient(90deg, #000 28%, transparent 78%);
          mask-image: linear-gradient(90deg, #000 28%, transparent 78%);
  -webkit-mask-size: calc(120vh * 0.563) 120%; mask-size: calc(120vh * 0.563) 120%;
  -webkit-mask-position: left center; mask-position: left center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Darken for legibility with a cheap overlay instead of a CSS `filter` on the
   fixed layer. A filtered fixed full-screen layer forces the compositor to
   re-blend it over the scrolling content every frame → major scroll jank on
   mobile (even on an iPhone 14 Pro). A flat alpha overlay is essentially free. */
.page-bg::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .30; }

/* ---------- 15. Nav smoke ---------- */
/* Shared header smoke canvas — behind the nav text, never clipped per item */
.nav-smoke { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; }

/* ---------- 13. Audio player (Slyšet) ---------- */
/* Each mount is one group inside a zigzag .video-row (no own top margin) */
.player { display: flex; flex-direction: column; gap: var(--sp-4); }
.player__group { color: var(--c-smoke); font-size: .85rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; margin: var(--sp-12) 0 var(--sp-2); }
.player__group:first-child { margin-top: 0; }

/* Outline style — same language as the "více info" chips on Vidět:
   transparent background, 1px hairline border, pill shape; border lights up
   on hover, full white while playing. No neumorphic shadows. */
.track {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6); color: var(--c-fog);
  background: transparent; border: 1px solid var(--color-border); border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}
.track:hover { color: var(--c-white); border-color: rgba(242, 242, 242, .28); }
.track.is-playing { color: var(--c-white); border-color: var(--c-white); }

.track__toggle { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--color-border); color: var(--c-white); transition: border-color var(--transition); }
.track__toggle:hover { border-color: var(--c-white); }
.track.is-playing .track__toggle { border-color: var(--c-white); }
.track__play { width: 0; height: 0; margin-left: 3px; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.track.is-playing .track__play { margin: 0; border: 0; width: 11px; height: 13px; background: linear-gradient(currentColor 0 0) 0 / 3px 100% no-repeat, linear-gradient(currentColor 0 0) 8px / 3px 100% no-repeat; }

.track__title { flex: none; width: clamp(7rem, 15vw, 12rem); font-family: var(--font-heading); font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track__seek { flex: 1; min-width: 70px; height: 20px; position: relative; cursor: pointer; touch-action: none; }
.track__seek::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 3px; border: 1px solid var(--color-border); background: transparent; }
.track__seek-fill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 6px; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--c-ash), var(--c-white)); }
.track__seek-fill::after { content: ""; position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: var(--c-white); }

.track__time { flex: none; width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--c-ash); }

.track__viz { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 20px; width: 27px; opacity: 0; transition: opacity var(--transition); }
.track.is-playing .track__viz { opacity: 1; }
.track__viz i { width: 3px; height: 100%; background: var(--c-white); transform-origin: bottom; transform: scaleY(.15); }

.track__more { flex: none; font-family: var(--font-heading); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ash); padding: var(--sp-2) var(--sp-4); border-radius: 999px; background: transparent; border: 1px solid var(--color-border); transition: border-color var(--transition), color var(--transition); }
.track__more:hover { color: var(--c-white); border-color: var(--c-white); }

@media (max-width: 760px) {
  .track { flex-wrap: wrap; border-radius: 24px; }   /* wrapped 2-line rows: softer corners than a pill */
  .track__title { flex: 1; width: auto; }
  .track__seek { flex-basis: 100%; order: 6; }
  .track__time { width: auto; }
}

/* ---------- 14. Video rows (Vidět) — zigzag video/text layout ---------- */
/* Intro lead — the page's first sentence promoted to a standalone opener above the zigzag */
.rows-intro { margin-bottom: var(--sp-16); }
.page-content .rows-intro p { max-width: 20ch; margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; color: var(--c-white); }
@media (min-width: 768px) { .rows-intro { margin-bottom: var(--sp-24); } }
.video-rows { display: flex; flex-direction: column; gap: var(--sp-16); counter-reset: vrow; }
.video-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; counter-increment: vrow; }
/* Row text — airy editorial caption: numbered eyebrow, light weight, open leading */
.video-row__text::before {
  content: counter(vrow, decimal-leading-zero);
  display: block; font-family: var(--font-heading); font-weight: 600;
  font-size: .72rem; letter-spacing: .34em; color: var(--c-smoke);
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border); width: 72px;
}
.page-content .video-row__text p { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.15rem, 1.65vw, 1.55rem); line-height: 1.65; letter-spacing: 0; color: var(--c-fog); max-width: 34ch; }
@media (min-width: 768px) {
  .video-rows { gap: var(--sp-24); }
  .video-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-16); }
  .video-row .video-card, .video-row .player { grid-column: 1; grid-row: 1; }
  .video-row .video-row__text { grid-column: 2; grid-row: 1; }
  /* zigzag: flipped rows mirror the template — media right (7fr), text left (5fr).
     Explicit placement (not `order`) so rows without text still alternate sides.
     `.player` = the Slyšet audio-group blocks, which share this row layout. */
  .video-row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .video-row--flip .video-card, .video-row--flip .player { grid-column: 2; }
  .video-row--flip .video-row__text { grid-column: 1; }
}

.video-card { margin: 0; }
/* The frame's own pixels feather to full transparency at all four edges
   (mask intersect of a horizontal + vertical gradient), so the video melts
   into whatever is behind it — the smoke artwork included. No box outline
   can survive this, unlike a dark inset shadow. */
.video-card__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}
/* Plus an inner shadow for depth on top of the feather (clicks pass through) */
.video-card__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 60px 25px rgba(0, 0, 0, .9), inset 0 0 130px 55px rgba(0, 0, 0, .55);
}
/* While playing, soften the inner shadow so the actual video stays watchable
   (the edge feather — the melt — remains) */
.video-card__frame.is-playing::after { box-shadow: inset 0 0 45px 15px rgba(0, 0, 0, .6); }
/* Small frames: pixel-based shadows sized for desktop would swallow a phone-
   sized thumbnail almost entirely — scale them down */
@media (max-width: 760px) {
  .video-card__frame::after { box-shadow: inset 0 0 28px 10px rgba(0, 0, 0, .9), inset 0 0 60px 22px rgba(0, 0, 0, .5); }
  .video-card__frame.is-playing::after { box-shadow: inset 0 0 26px 8px rgba(0, 0, 0, .5); }
}
.video-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-smoke); font-family: var(--font-heading); letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; }
.video-card__title { margin-top: var(--sp-4); font-family: var(--font-heading); font-weight: 600; color: var(--c-fog); font-size: 1.15rem; }
.video-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* YouTube facade — clean full-colour thumbnail (no filters, no scrim) */
.video-card__frame[data-yt] { cursor: pointer; background-size: cover; background-position: center; }
.video-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: var(--c-base); box-shadow: var(--nm-out); display: grid; place-items: center; z-index: 1; transition: transform var(--transition), box-shadow var(--transition); }
.video-card__play::after { content: ""; width: 0; height: 0; margin-left: 4px; border-left: 18px solid var(--c-white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-card__frame[data-yt]:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--nm-out-sm); }
.video-card__more { margin-top: var(--sp-4); font-family: var(--font-heading); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ash); padding: var(--sp-3) var(--sp-6); border-radius: 999px; background: transparent; border: 1px solid var(--color-border); transition: border-color var(--transition), color var(--transition); }
.video-card__more:hover { color: var(--c-white); border-color: var(--c-white); }
/* "více info" / "info" buttons hidden for now — kept in the DOM to re-enable later */
.video-card__more, .track__more { display: none; }
.video-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- Modal ("více info") ---------- */
.modal { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: var(--sp-6);
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
  background: rgba(8, 8, 8, .6); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel { position: relative; max-width: 580px; width: 100%; max-height: 85vh; overflow-y: auto;
  background: var(--c-base); border-radius: 28px; box-shadow: var(--nm-out); padding: var(--sp-12) var(--sp-8);
  transform: translateY(24px) scale(.97); transition: transform var(--transition); }
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--c-fog);
  background: var(--c-base); box-shadow: var(--nm-out-sm); transition: box-shadow var(--transition), color var(--transition); }
.modal__close:hover { color: var(--c-white); box-shadow: var(--nm-in-sm); }
.modal__eyebrow { font-family: var(--font-heading); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--c-smoke); margin-bottom: var(--sp-3); }
.modal__title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: var(--sp-6); color: var(--c-white); }
.modal__body { color: var(--c-fog); line-height: 1.8; }
.modal__body p + p { margin-top: var(--sp-4); }

/* ---------- Footer legal line ---------- */
.site-footer__legal { margin-top: var(--sp-3); display: flex; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap; font-size: .78rem; }
.site-footer__legal a, .site-footer__cookies { color: var(--color-muted); transition: color var(--transition); }
.site-footer__legal a:hover, .site-footer__cookies:hover { color: var(--c-fog); }
.site-footer__cookies { font: inherit; letter-spacing: inherit; }

/* ---------- Legal pages (privacy) — readable long-form ---------- */
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; margin-top: var(--sp-12); margin-bottom: var(--sp-3); }
.page-content .legal p { margin-top: var(--sp-4); max-width: 70ch; }
.legal ul { list-style: disc; margin: 0 0 var(--sp-4) var(--sp-6); max-width: 70ch; }
.legal li { margin-bottom: var(--sp-2); color: var(--c-fog); line-height: 1.7; }
.legal a { color: var(--c-white); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cookie consent — themed dark to match the site ---------- */
#cc-main {
  --cc-bg: #0b0b0b;
  --cc-primary-color: var(--c-white);
  --cc-secondary-color: var(--c-ash);
  --cc-btn-primary-bg: var(--c-white);
  --cc-btn-primary-color: var(--c-black);
  --cc-btn-primary-border-color: var(--c-white);
  --cc-btn-primary-hover-bg: var(--c-fog);
  --cc-btn-primary-hover-color: var(--c-black);
  --cc-btn-primary-hover-border-color: var(--c-fog);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--c-fog);
  --cc-btn-secondary-border-color: var(--color-border);
  --cc-btn-secondary-hover-bg: rgba(242, 242, 242, .08);
  --cc-btn-secondary-hover-color: var(--c-white);
  --cc-btn-secondary-hover-border-color: var(--c-white);
  --cc-separator-border-color: var(--color-border);
  --cc-toggle-on-bg: var(--c-white);
  --cc-toggle-off-bg: #555;
  --cc-cookie-category-block-bg: rgba(242, 242, 242, .04);
  --cc-cookie-category-block-border: var(--color-border);
  --cc-font-family: var(--font-body);
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 999px;
  --cc-z-index: 9600;
}
