/* =====================================================
   lukykoutny.cz — styly (v3: paleta E8D6CB/D0ADA7/AD6A6C/5D2E46, bez gradientů)
   Pořadí: 1) Tokeny  2) Reset  3) Typo  4) Layout
            5) Komponenty  6) Sekce  7) Animace  8) Responzivita
   ===================================================== */

/* ============ 1) DESIGN TOKENY ============ */
:root {
  /* === PALETA (jednobarevná) === */
  --c-cream:   #E8D6CB;   /* světlá teplá béžová – pozadí */
  --c-rose:    #D0ADA7;   /* středně teplá růžová – doplněk */
  --c-clay:    #AD6A6C;   /* hlubší terakota – hlavní akcent */
  --c-plum:    #5D2E46;   /* tmavá vínovo-fialová – text / dark */

  /* === sémantické === */
  --bg:        var(--c-cream);
  --bg-2:      #F2E5DD;   /* světlejší tón cream pro karty */
  --bg-dark:   var(--c-plum);
  --ink:       var(--c-plum);
  --ink-soft:  #7A5667;   /* tlumený plum */
  --line:      #DABDB4;   /* světlá růžová linka */
  --on-dark:   var(--c-cream);
  --accent:    var(--c-clay);
  --accent-2:  var(--c-rose);

  /* fonty */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* prostor */
  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 140px);

  /* rádia */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  /* stíny v paletě */
  --shadow-sm: 0 1px 2px rgba(93,46,70,0.05), 0 2px 8px rgba(93,46,70,0.05);
  --shadow:    0 4px 20px rgba(93,46,70,0.10), 0 12px 40px rgba(93,46,70,0.08);
  --shadow-lg: 0 10px 30px rgba(93,46,70,0.15), 0 30px 80px rgba(93,46,70,0.12);

  /* timing */
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 200ms;
  --t:      320ms;
  --t-slow: 520ms;
}

/* ============ 2) RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:target { scroll-margin-top: 96px; }
section { scroll-margin-top: 80px; }

/* ============ 3) TYPOGRAFIE ============ */
.h2, h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  margin: 0 0 16px;
}
.h2--xl {
  font-size: clamp(40px, 7vw, 96px);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow--light { color: rgba(232,214,203,0.78); }
.mono { font-family: var(--f-mono); font-size: 0.85em; letter-spacing: 0.02em; }
.dim  { color: var(--ink-soft); }

/* AKCENTNÍ TEXT — solid clay barva (bývalý gradient) */
.grad-text {
  color: var(--accent);
}

/* ============ 4) LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* Dekorativní pozadí — bez mesh blobs (uklidili jsme) */
.bg-decor { display: none; }

/* ============ 5) KOMPONENTY ============ */

/* ----- LOGOTYP / BRAND ----- */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
}
.brand--short { font-size: 24px; }
.brand--full  { font-size: 38px; }

.brand__at {
  color: var(--c-clay);
  opacity: 0.65;
  margin-right: 1px;
  font-weight: 600;
  transition: color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.brand__hi { color: var(--accent); transition: color var(--t) var(--ease); }
.brand__lo { color: currentColor; opacity: 0.95; }
.brand__dot {
  /* dopisovaná tečka — viditelná jen v plné verzi (footer) */
  display: none;
  color: var(--accent);
  font-weight: 700;
  margin-left: 1px;
}
.brand--full .brand__dot {
  display: inline-block;
  animation: dotType 4.5s ease-in-out infinite;
}
.brand__cursor {
  display: inline-block;
  width: 0.5ch;
  margin-left: 2px;
  color: var(--accent);
  font-weight: 500;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes dotType {
  /* tečka se "naťuká", chvíli drží, pak zmizí; loop = pocit, že to brand zase a zase potvrzuje */
  0%, 18%  { opacity: 0; transform: translateY(0) scale(0.3); }
  22%      { opacity: 1; transform: translateY(0) scale(1.4); }
  28%, 78% { opacity: 1; transform: translateY(0) scale(1);   }
  86%, 100%{ opacity: 0; transform: translateY(0) scale(0.3); }
}
.brand:hover .brand__hi { color: var(--c-plum); }
.brand:hover .brand__at { opacity: 1; color: var(--accent); }
.brand:hover .brand__cursor { animation-duration: 0.4s; color: var(--c-plum); }

/* ----- TLAČÍTKA ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition:
    transform var(--t-fast) var(--ease),
    background-color var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform var(--t) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--lg { padding: 18px 28px; font-size: 1.05rem; }
.btn--sm { padding: 14px 34px; font-size: 0.95rem; }
/* nav CTA má vyšší specifičnost, ať nic nepřebije (i magnetic transform inline style) */
.nav .btn--sm { padding: 14px 34px; }

/* Plné (solid) tlačítko = clay → hover plum */
.btn--grad, .btn--solid {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(173,106,108,0.30);
}
.btn--grad:hover, .btn--solid:hover {
  background: var(--c-plum);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(93,46,70,0.32);
}

/* Outline na světlém */
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Ghost na tmavém/fotce */
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ----- LINK ----- */
.link {
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  transition: color var(--t-fast) var(--ease);
}
.link:hover { color: var(--c-plum); }

/* ----- CHIP ----- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.chip.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.chip--filter {
  cursor: pointer;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.chip--filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.chip--filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip--filter-ai {
  border-color: var(--accent);
  color: var(--accent);
}
.chip--filter-ai.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ----- AI BADGE (solid) ----- */
.ai-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(173,106,108,0.25);
  z-index: 2;
}
.ai-badge span { display: inline-block; }

/* ----- MEDIA / OBRÁZKY ----- */
.media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(93,46,70,0.06) 0 12px, transparent 12px 24px),
    var(--bg-2);
  border: 1px dashed rgba(93,46,70,0.25);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.media-placeholder--portrait { aspect-ratio: 4 / 5; }
.media-placeholder--square   { aspect-ratio: 1 / 1; }
.media-placeholder__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.media-placeholder--hover { cursor: pointer; }
.media-placeholder--hover:hover { transform: scale(1.01); box-shadow: var(--shadow-lg); }
.media-placeholder--ghost { opacity: 0.85; }

/* Fotorámeček (skutečné fotky v place placeholderech) */
.photo {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square   { aspect-ratio: 1 / 1; }
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
  filter: saturate(0.85);
}
.photo:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background-color var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              padding var(--t) var(--ease),
              color var(--t) var(--ease);
}
.nav:not(.is-scrolled) {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.nav.is-scrolled {
  background: rgba(232,214,203,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--ink);
  text-shadow: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu ul {
  display: flex;
  gap: 22px;
}
.nav__menu a {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav:not(.is-scrolled) .nav__menu a::after { background: #fff; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(120px + var(--gutter)) 0 calc(var(--section-y) * 0.6);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-dark);
}
.hero__bg {
  position: absolute;
  /* víc přesahu, ať parallax 0.35 neodhalí prázdný okraj při scrollu */
  inset: -25% 0 -25% 0;
  z-index: -2;
  will-change: transform;
  background: var(--c-plum);
}
/* Crossfade slider — všechny fotky leží přes sebe, .is-active je vidět */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 35% horizontálně = Luky je na fotce vlevo, ukotvíme blíž k němu */
  object-position: 35% center;
  opacity: 0;
  transform: scale(1.03);
  /* jemný darken aplikovaný globálně, aby text fungoval i na světlejší fotce */
  filter: brightness(0.82) saturate(0.95);
  transition: opacity 1400ms var(--ease), transform 9000ms linear;
  will-change: opacity, transform;
}
.hero__img.is-active {
  opacity: 1;
  transform: scale(1.0);
}
/* HLAVNÍ OVERLAY — kombinace tří vrstev:
   1) plum tint celé fotky (sjednotí ladění s paletou)
   2) silný gradient zprava (kde teď leží text)
   3) spodní fade pro hloubku */
.hero__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,8,14,0.25) 0%, rgba(20,8,14,0.35) 50%, rgba(20,8,14,0.80) 100%),
    linear-gradient(270deg, rgba(20,8,14,0.75) 0%, rgba(20,8,14,0.55) 25%, rgba(20,8,14,0.10) 60%, rgba(20,8,14,0.0) 100%),
    /* lehký jednotný plum tint */
    linear-gradient(0deg, rgba(93,46,70,0.18), rgba(93,46,70,0.18));
}
/* SPODNÍ OVERLAY — silnější tmavá zóna pod textem (radial v pravém dolním rohu) */
.hero__overlay--bottom {
  z-index: -1;
  background:
    radial-gradient(70% 65% at 78% 78%, rgba(20,8,14,0.85), rgba(20,8,14,0.0) 75%),
    linear-gradient(180deg, transparent 45%, rgba(20,8,14,0.55) 100%);
}

.hero__inner {
  /* širší blok pro 2-kolonový hero__row */
  max-width: 900px;
  /* Text odsazen od pravé hrany (ale tak, aby začátky řádků neprotínaly Lukyho tvář vlevo) */
  margin-left: auto;
  margin-right: clamp(40px, 16vw, 260px);
  position: relative;
  z-index: 2;
  text-align: left;
}
@media (max-width: 1280px) {
  .hero__inner { margin-right: clamp(20px, 6vw, 100px); max-width: 760px; }
}
@media (max-width: 1024px) {
  .hero__inner { margin-right: clamp(20px, 4vw, 40px); max-width: none; }
}

/* HERO ROW — subtitle vlevo, CTAs vpravo (vedle sebe) */
.hero__row {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero__row .hero__sub {
  flex: 1 1 280px;
  margin: 0;
  max-width: 38ch;
}
.hero__row .hero__ctas {
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
@media (max-width: 640px) {
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__row .hero__ctas { flex-direction: row; }
}
.hero__h1 {
  font-size: clamp(40px, 9vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 6px 0 28px;
  font-weight: 700;
  color: #fff;
  /* trojvrstvý stín: ostrý dark outline + měkký halo + dlouhý drop = čitelnost vždy */
  text-shadow:
    0 0 2px rgba(0,0,0,0.85),
    0 4px 18px rgba(0,0,0,0.75),
    0 14px 54px rgba(0,0,0,0.55);
  max-width: 17ch;
}
.hero__h1 .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(40%) translateZ(0);
  filter: blur(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
}
.hero__h1.is-in .word { opacity: 1; transform: translateY(0); filter: blur(0); }
.word--grad { color: var(--c-rose); }

.hero__sub {
  font-size: clamp(17px, 1.4vw, 21px);
  max-width: 56ch;
  color: #fff;
  margin: 0 0 32px;
  text-shadow:
    0 0 1px rgba(0,0,0,0.7),
    0 2px 14px rgba(0,0,0,0.75);
}
.eyebrow--light {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0,0,0,0.7),
    0 2px 12px rgba(0,0,0,0.7);
}
.hero__micro {
  color: rgba(255,255,255,0.92);
  text-shadow:
    0 0 1px rgba(0,0,0,0.7),
    0 2px 10px rgba(0,0,0,0.65);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.hero__micro { color: rgba(255,255,255,0.65); }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity var(--t) var(--ease);
  z-index: 2;
}
.hero__scroll-arrow {
  font-size: 16px;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}
body.is-scrolled .hero__scroll { opacity: 0; pointer-events: none; }

/* HERO SHAPES — funkční na světlou i tmavou fotku.
   Bez mix-blend; vlastní tmavý drop-shadow vytváří "auru" co je čitelná všude. */
.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;     /* nad overlay, pod textem hero__inner */
}
.shape {
  position: absolute;
  font-family: var(--f-mono);
  font-weight: 700;
  color: #fff;
  /* duální shadow: jasné světlé glow + tmavá aura pro kontrast na světlém pozadí */
  text-shadow:
    0 0 16px rgba(208,173,167,0.75),
    0 0 2px rgba(0,0,0,0.85),
    0 2px 18px rgba(0,0,0,0.65);
  will-change: transform;
}
.shape--circle {
  top: 18%; right: 12%;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.45),
    0 0 32px rgba(208,173,167,0.55),
    inset 0 0 28px rgba(208,173,167,0.22),
    0 4px 24px rgba(0,0,0,0.45);
  animation: floatY 9s var(--ease) infinite alternate;
}
.shape--cross {
  top: 30%; left: 8%;
  font-size: 46px;
  animation: floatY 7s var(--ease) infinite alternate-reverse;
}
.shape--spark {
  top: 58%; right: 8%; font-size: 42px;
  color: #fff;
  text-shadow:
    0 0 20px var(--c-rose),
    0 0 36px var(--c-clay),
    0 0 2px rgba(0,0,0,0.9),
    0 2px 20px rgba(0,0,0,0.55);
  animation: floatY 8s var(--ease) infinite alternate, twinkle 2.6s var(--ease) infinite;
}
.shape--brace { top: 16%; left: 40%; font-size: 34px; animation: floatY 11s var(--ease) infinite alternate; }
.shape--slash { bottom: 24%; left: 18%; font-size: 32px; animation: floatY 10s var(--ease) infinite alternate-reverse; }
@keyframes twinkle {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(0.92) rotate(8deg); }
}
@keyframes floatY {
  0%   { transform: translateY(-8px) rotate(0deg); }
  100% { transform: translateY(10px) rotate(8deg); }
}

/* ============ RYCHLÁ FAKTA ============ */
.facts {
  padding: clamp(60px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
}
.fact {
  /* obsahy CENTROVANÉ → mezery kolem všech čísel stejné */
  padding: 8px 16px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;          /* horizontální centrování */
  justify-content: center;
  text-align: center;
  min-height: 80px;
}
.fact:first-child { border-left: 0; }
.fact__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
  color: var(--accent);
  min-height: 1.05em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}
.fact__num .num { display: inline-block; min-width: 1.5ch; }
.fact__num .unit { color: var(--ink); font-weight: 600; padding-left: 0.35em; }
.fact__cap {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* REACH — Zlín → Česko → Evropa (animovaná šipka, dlouhý loop) */
.reach {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: -0.01em;
  justify-content: center;
}
.reach__city {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  opacity: 0.35;
  transition: opacity 600ms var(--ease), color 600ms var(--ease);
}
.reach__city--1 { opacity: 1; color: var(--accent); }
.reach__line {
  position: relative;
  flex: 0 0 auto;
  width: clamp(30px, 4vw, 60px);
  height: 2px;
  margin: 0 10px;
  background: var(--line);
  overflow: visible;
}
.reach__line::before {
  /* progresivní výplň */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
}
.reach__line::after {
  /* šipka na konci výplně */
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 0; height: 0;
  border-left: 7px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translate(0, -50%);
  opacity: 0;
}

/* Animace se spouští, když fact vstoupí do viewportu (.reveal.is-in) */
.fact.is-in .reach__line--1::before { animation: reachFill 1.6s var(--ease) 0.2s forwards; }
.fact.is-in .reach__line--1::after  { animation: reachHead 1.6s var(--ease) 0.2s forwards; }
.fact.is-in .reach__city--2         { animation: reachCity 0.4s var(--ease) 1.6s forwards; }

.fact.is-in .reach__line--2::before { animation: reachFill 1.6s var(--ease) 2.0s forwards; }
.fact.is-in .reach__line--2::after  { animation: reachHead 1.6s var(--ease) 2.0s forwards; }
.fact.is-in .reach__city--3         { animation: reachCity 0.4s var(--ease) 3.4s forwards; }

@keyframes reachFill {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes reachHead {
  0%   { left: 0; opacity: 1; }
  100% { left: 100%; opacity: 1; transform: translate(-100%, -50%); }
}
@keyframes reachCity {
  to { opacity: 1; color: var(--accent); }
}

/* ============ MIKROHLÁŠKY (strip) ============ */
.strip {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.strip__inner {
  display: flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: marquee 20s linear infinite;
  will-change: transform;
}
@media (max-width: 768px) {
  .strip__inner { animation-duration: 12s; }
}
.strip__sep { color: var(--accent); }
.strip--reverse .strip__inner { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about {
  padding: var(--section-y) 0;
  background: var(--bg);
  position: relative;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about__text p { margin: 0 0 14px; font-size: 1.05rem; max-width: 60ch; }
.signature {
  font-family: var(--f-display);
  color: var(--accent);
  font-size: 22px;
  margin-top: 20px;
  letter-spacing: -0.02em;
  font-style: italic;
}
.about__media {
  position: relative;
  margin: 0;
}
.about__media .photo,
.about__media .media-placeholder { max-width: 460px; margin-left: auto; position: relative; z-index: 1; }
.about__aura { display: none; } /* už nepotřebujeme gradient auru */

/* ============ SECTION HEAD ============ */
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ============ CARDS (služby) ============ */
.services {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  position: relative;
}
.cards { display: grid; gap: clamp(18px, 2vw, 24px); }
.services__grid { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
  overflow: hidden;
}
.card__num {
  position: absolute;
  top: 20px; right: 22px;
  color: var(--ink-soft);
}
.card--ai .card__num { right: 60px; }
.card__kicker {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.card__hook {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  transition: color var(--t) var(--ease);
}
.card__desc { color: var(--ink-soft); margin: 0; max-width: 50ch; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card:hover .card__hook { color: var(--accent); }
.card--ai { border-color: var(--c-rose); }

/* ============ TRAINING ============ */
.training {
  padding: var(--section-y) 0;
  background: var(--bg);
  border-block: 1px solid var(--line);
  position: relative;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.training__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.tcard {
  position: relative;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background-color var(--t) var(--ease);
}
.tcard--ai { border-color: var(--c-rose); background: var(--bg); }
.tcard__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  padding-right: 0;
  transition: color var(--t-fast) var(--ease);
  color: var(--ink);
}
.tcard--ai .tcard__title { padding-right: 50px; }
.tcard__desc { color: var(--ink-soft); margin: 0; font-size: 15px; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.tcard:hover .tcard__title { color: var(--accent); }
.tcard.is-hidden { display: none; }
.tcard .ai-badge { top: 14px; right: 14px; }

.training__cta {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ============ BEZ HRANIC (sekce s mapou) ============ */
.reach-section {
  padding: var(--section-y) 0;
  background: var(--bg);
  position: relative;
  border-block: 1px solid var(--line);
}
.reach-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.reach-section__copy { max-width: 60ch; }
.reach-section__text p { margin: 0 0 14px; font-size: 1.05rem; max-width: 60ch; }
.reach-section__text strong {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.reach-section__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 750;
  color: var(--c-clay);
}
.reach-map {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.reach-map__grid { color: var(--c-clay); }

/* MAP-VIEW wrapper: na něm běží zoom-out animace.
   Start: scale 8 (close-up ČR/Zlín) → end: scale 1 (celý svět). */
.map-view {
  transform-box: view-box;
  transform-origin: 55% 37.3%;  /* Zlín (660/1200=55%, 280/750=37.3%) */
  scale: 8;
  will-change: scale;
}
.reach-section.in-view .map-view {
  animation: mapZoomOut 11s var(--ease) 0.4s forwards;
}
@keyframes mapZoomOut {
  /* 0–3.6s: hold scale 8 (jen Zlín + plynulé kreslení ČR border) */
  0%, 32%  { scale: 8; }
  /* 5.5s: zoom out na EU core */
  50%      { scale: 4.5; }
  /* 7.7s: zoom out na EU wide */
  70%      { scale: 2.4; }
  /* 11s: full world */
  100%     { scale: 1; }
}

/* OBRYSY STÁTŮ: jemné, rose barva. vector-effect zaručí stejnou tloušťku při scale. */
.border {
  fill: none;
  stroke: var(--c-rose);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}
/* velké země mají delší obvod */
.border--us, .border--ca, .border--br { stroke-dasharray: 2200; stroke-dashoffset: 2200; }
.border--no, .border--fr, .border--it, .border--uk { stroke-dasharray: 900; stroke-dashoffset: 900; }

/* ČR je akcentní (clay), silnější. Stroke-dasharray = path length (90 px) pro plynulý jednotahový obkruh. */
.border--cz {
  stroke: var(--c-clay);
  stroke-width: 1.6;
  stroke-dasharray: 92;
  stroke-dashoffset: 92;
}

/* TIMING ANIMACÍ — sladěno se zoom-out (11s):
   0s     → jen tečka Zlín (hold scale 8)
   1.0s   → ČR border kreslí plynule (jednotahový obkruh, 2.4s)
   3.8s   → EU core (zoom 8→4.5 začíná)
   5.8s   → EU wide
   7.8s   → World */
.reach-section.in-view .border--cz {
  animation: drawBorderCZ 2.4s ease-out 1.0s forwards;
}
.reach-section.in-view .border--eu_core {
  animation: drawBorder 1.6s ease-out calc(3.8s + var(--i, 0) * 0.15s) forwards;
}
.reach-section.in-view .border--eu_wide {
  animation: drawBorder 1.6s ease-out calc(5.8s + var(--i, 0) * 0.08s) forwards;
}
.reach-section.in-view .border--world {
  animation: drawBorder 2.2s ease-out calc(7.8s + var(--i, 0) * 0.25s) forwards;
}

@keyframes drawBorder {
  0%   { stroke-dashoffset: 2200; opacity: 0; }
  10%  { opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0.5; }
}
/* ČR má vlastní keyframe s přesnou délkou (92 px) */
@keyframes drawBorderCZ {
  0%   { stroke-dashoffset: 92; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.9; }
}

/* DESTINACE: linka, bod, popisek — vše start hidden, kreslí se PO zoom-out */
.dest__line {
  stroke: var(--c-clay);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  opacity: 0;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dest__pt {
  fill: var(--c-clay);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
}
.dest__label {
  fill: var(--c-plum);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
}

/* ORIGIN: Zlín */
.origin__pt {
  fill: var(--c-plum);
}
.origin__label {
  fill: var(--c-plum);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.origin__pulse {
  fill: var(--c-clay);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
/* pulse na Zlíně — startuje po dokreslení ČR (~3.4s).
   Pulse je už malý (r=5), takže funguje i při zoom 8× */
.reach-section.in-view .origin__pulse {
  animation: originPulse 3.4s ease-out 3.4s infinite;
}
.reach-section.in-view .origin__pulse--2 {
  animation-delay: 5.1s;
}
@keyframes originPulse {
  0%   { opacity: 0.45; scale: 1; }
  100% { opacity: 0;    scale: 3.6; }
}

/* DESTINACE animace — linky vystřelují ze Zlína postupně jak se mapa odzoomuje.
   První (Helsinky/Varšava/Berlín) startují kolem 4s když začíná EU zoom-out,
   poslední (transatlantické São Paulo) přicházejí v 9-10s u plného zoom 1. */
.reach-section.in-view .dest__line {
  animation: drawLine 1.4s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.55s + 4.0s);
}
.reach-section.in-view .dest__pt {
  animation: popPoint 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.55s + 5.0s);
}
.reach-section.in-view .dest__label {
  animation: fadeLabel 0.45s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.55s + 5.3s);
}

/* labels: vyšší font-size aby se i při scale-down viděly */
.dest__label { font-size: 16px; font-weight: 600; }

@keyframes drawLine {
  0%   { stroke-dashoffset: 500; opacity: 0; }
  10%  { opacity: 0.9; }
  100% { stroke-dashoffset: 0;   opacity: 0.55; }
}
@keyframes popPoint {
  0%   { opacity: 0;   scale: 0; }
  60%  { opacity: 1;   scale: 1.4; }
  100% { opacity: 1;   scale: 1; }
}
@keyframes fadeLabel {
  to { opacity: 0.8; }
}

@media (max-width: 1024px) {
  .reach-section__grid { grid-template-columns: 1fr; }
  .reach-section__map { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .dest__label { font-size: 12px; }
  .origin__label { font-size: 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .map-view    { scale: 1; animation: none; }
  .border      { stroke-dashoffset: 0; opacity: 0.45; animation: none; }
  .border--cz  { opacity: 0.85; }
  .dest__line  { stroke-dashoffset: 0; opacity: 0.55; animation: none; }
  .dest__pt    { opacity: 1; scale: 1; animation: none; }
  .dest__label { opacity: 0.8; animation: none; }
  .origin__pulse { animation: none; opacity: 0; }
}

/* ============ REFERENCES ============ */
.refs {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  position: relative;
}
.refs__group { margin-bottom: clamp(28px, 3vw, 40px); }
.refs__group-title {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.refs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.refs__chips .chip {
  background: var(--bg);
  border-color: var(--line);
  font-weight: 500;
  transition:
    transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.refs__chips .chip:hover {
  border-color: var(--accent);
  background: var(--c-cream);
  color: var(--accent);
  transform: translateY(-2px);
}

/* volitelná logo mřížka */
.refs__logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.logo-cell {
  height: 60px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}

/* ============ KONTAKT (plum blok) ============ */
.contact {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
  background: var(--c-plum);
  color: #fff;
  isolation: isolate;
}
.contact__mesh {
  /* z gradientů zůstal jen jeden decentní radial v rohu */
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 12% 22%, rgba(208,173,167,0.25), transparent 70%),
    radial-gradient(40% 35% at 88% 78%, rgba(173,106,108,0.30), transparent 70%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.contact h2 { color: #fff; }
.contact .grad-text { color: var(--c-rose); }
.contact__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: rgba(255,255,255,0.84);
  max-width: 50ch;
  margin: 8px 0 28px;
}
.contact__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 28px;
}
.contact__meta {
  display: flex; flex-direction: column; gap: 6px;
}
.contact__meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.contact__meta a:hover { color: var(--c-rose); border-bottom-color: var(--c-rose); }
.contact__meta li span.dim { display: inline-block; min-width: 86px; color: rgba(255,255,255,0.6); }

/* form */
.contact__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* foto pod formulářem: kratší (3:4 místo 4:5) a ořezané zdola — zachová tváře,
   ale neprodlužuje sekci pod text vlevo */
.contact .photo--portrait {
  aspect-ratio: 4 / 5;
  max-height: 460px;
}
.contact .photo--portrait img {
  object-position: center 20%;
}
.contact__form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { color: rgba(255,255,255,0.7); }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.24);
  padding: 10px 0;
  color: #fff;
  font: inherit;
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus { border-color: var(--c-rose); outline: none; }
.field textarea { resize: vertical; }
.contact__form-note { margin: -4px 0 0; color: rgba(255,255,255,0.55); }
.contact__form-msg {
  margin: 0; padding: 10px 12px;
  background: rgba(208,173,167,0.18);
  border-radius: 10px;
  color: #f5dcd6;
}
.contact .btn--ghost-light { color: #fff; border-color: rgba(255,255,255,0.55); }

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer__closer {
  margin: 14px 0 0;
  color: var(--ink-soft);
  max-width: 36ch;
}
.footer h4 { font-size: 11px; margin: 0 0 12px; font-family: var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; }
.footer nav ul, .footer__contact ul { display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--accent); }
.footer__meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ============ SCROLL-DRIVEN DEKORACE (napříč sekcemi) ============
   Decentní plovoucí symboly v pozadí. Reagují na scroll (parallax)
   a při vstupu sekce do viewportu lehce "spadnou" / odhalí se. */
.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;        /* za obsahem (.container má z-index: 1) */
  overflow: hidden;
}
section { position: relative; }   /* aby section-deco mělo na co absolutně bind */

.deco {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--c-clay);
  /* CSS reveal používá scale/rotate/opacity (samostatné properties).
     Parallax JS nastavuje transform. Floating animace nastavuje translate.
     Tři vrstvy se ve výsledku composesujou. */
  opacity: 0;
  scale: 0.7;
  rotate: -10deg;
  transition: opacity 900ms var(--ease), scale 900ms var(--ease), rotate 900ms var(--ease);
  /* continuous plovoucí pohyb (jemný, samostatný od scroll-parallaxu) */
  animation: decoFloatA 11s ease-in-out infinite;
  will-change: transform, translate, opacity, scale, rotate;
}
/* varianty časování/směru — variabilita mezi prvky */
.deco:nth-child(2n) {
  animation: decoFloatB 13s ease-in-out infinite;
  animation-delay: -3s;
}
.deco:nth-child(3n) {
  animation: decoFloatC 17s ease-in-out infinite;
  animation-delay: -6s;
}
.deco:nth-child(4n) {
  animation: decoFloatA 15s ease-in-out infinite reverse;
  animation-delay: -2s;
}

/* tři varianty plovoucího pohybu — větší amplituda, ať je pohyb znatelný */
@keyframes decoFloatA {
  0%, 100% { translate:   0px   0px; }
  50%      { translate:  28px -34px; }
}
@keyframes decoFloatB {
  0%, 100% { translate:   0px   0px; }
  50%      { translate: -32px  26px; }
}
@keyframes decoFloatC {
  0%, 100% { translate:   0px   0px; }
  33%      { translate:  22px -20px; }
  66%      { translate: -18px  16px; }
}
.deco--lg { font-size: 42px; }

/* kroužek je samostatný tvar bez glyfu */
.deco--ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--c-clay);
  font-size: 0;
}
.deco--ring-sm { width: 54px; height: 54px; border-width: 1.5px; }

/* tmavé sekce (kontakt) → dekorace v rose */
.section--dark .deco,
.contact .deco { color: var(--c-rose); }
.section--dark .deco--ring,
.contact .deco--ring { border-color: var(--c-rose); }

/* odhalení po vstupu sekce */
section.in-view .deco {
  opacity: 0.22;
  scale: 1;
  rotate: 0deg;
}
section.in-view .deco:nth-child(2) { transition-delay: 120ms; }
section.in-view .deco:nth-child(3) { transition-delay: 240ms; }
section.in-view .deco:nth-child(4) { transition-delay: 360ms; }

/* dark sekce (kontakt) by měla mít světlé dekorace, ale kontakt už má mesh,
   takže tam .deco nepřidávám */

/* na velmi malých obrazovkách dekorace zbytečné — schovám */
@media (max-width: 640px) {
  .section-deco { display: none; }
}

/* respektovat reduced motion */
@media (prefers-reduced-motion: reduce) {
  .deco {
    opacity: 0.18;
    transform: none;
    translate: 0;
    transition: none;
    animation: none;
  }
}

/* ============ GALLERY (V akci — marquee) ============ */
.gallery {
  padding: var(--section-y) 0 calc(var(--section-y) * 0.7);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.gallery__track {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
  margin: clamp(20px, 3vw, 36px) 0 18px;
  /* okraje vyfadují fotky do pozadí */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery__row {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery__list {
  display: flex;
  flex-shrink: 0;
  gap: clamp(14px, 1.8vw, 22px);
  padding-right: clamp(14px, 1.8vw, 22px);
  animation: galleryMarquee 60s linear infinite;
  will-change: transform;
}
.gallery__row--rtl .gallery__list {
  animation: galleryMarquee 70s linear infinite reverse;
}
/* JS přepíná data-state na .gallery__row pro pauzu (hover + mimo viewport) */
.gallery__row[data-state="paused"] .gallery__list { animation-play-state: paused; }
.gallery__row[data-state="running"] .gallery__list { animation-play-state: running; }

.gallery__item {
  flex-shrink: 0;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 6px 20px rgba(93,46,70,0.10);
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
/* mírná rotace pro polaroid-like vibe */
.gallery__item:nth-child(2n)   { --rot: -1.2deg; }
.gallery__item:nth-child(3n)   { --rot:  1.5deg; }
.gallery__item:nth-child(4n+1) { --rot: -0.6deg; }
/* některé úmyslně širší/užší pro variabilitu */
.gallery__item:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.gallery__item:nth-child(5n)   { aspect-ratio: 1 / 1; }
.gallery__item:nth-child(7n)   { aspect-ratio: 4 / 3; width: clamp(220px, 26vw, 380px); }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% center;
  display: block;
  filter: saturate(0.9);
  transition: filter var(--t) var(--ease), transform 800ms var(--ease);
}
/* per-image object-position: pro každou fotku tak, aby Luky/lidé vždy zůstali ve výřezu */
.gallery__item img[src$="g12.jpg"] { object-position: 75% center; } /* Luky uprostřed-vpravo (čte knihu) */
.gallery__item img[src$="g3.jpg"]  { object-position: 30% center; }
.gallery__item img[src$="g4.jpg"]  { object-position: 70% center; }
.gallery__item img[src$="g6.jpg"]  { object-position: 40% center; }
.gallery__item img[src$="g7.jpg"]  { object-position: 35% center; }
.gallery__item img[src$="g8.jpg"]  { object-position: 22% center; } /* Ynovate fest, Luky úplně vlevo na pohovce */
.gallery__item img[src$="g11.jpg"] { object-position: 12% center; } /* UTB selfie, Luky vlevo dole */
.gallery__item img[src$="g12.jpg"] { object-position: 55% center; } /* čte knihu, víc kontextu vlevo (TV) */
.gallery__item img[src$="g13.jpg"] { object-position: 22% center; }
.gallery__item img[src$="g15.jpg"] { object-position: 30% center; }
.gallery__item img[src$="g16.jpg"] { object-position: 50% 35%; } /* skupina, focus nahoru */
.gallery__item img[src$="g17.jpg"] { object-position: 70% center; }
.gallery__item img[src$="g18.jpg"] { object-position: 50% 30%; } /* víc audience uprostřed, Luky na pravém okraji */
.gallery__item img[src$="g19.jpg"] { object-position: 50% center; } /* všichni tři ve výřezu */
.gallery__item img[src$="g20.jpg"] { object-position: 30% center; } /* Luky vlevo (TIC s mobilem) */
.gallery__item img[src$="g21.jpg"] { object-position: 65% center; } /* Luky 3. zprava (President/Kunín skupina) */
.gallery__item img[src$="g22.jpg"] { object-position: 40% center; } /* skupinová venku, víc lidí vlevo */
.gallery__item:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(93,46,70,0.20);
  z-index: 2;
}
.gallery__item:hover img { filter: saturate(1.05); }

@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.gallery__note {
  text-align: center;
  margin: 18px 0 0;
}

/* ============ 7) ANIMACE / REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* custom kurzor (solid clay) */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width var(--t) var(--ease), height var(--t) var(--ease),
              opacity var(--t) var(--ease);
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: multiply;
}
.cursor.is-ready { opacity: 0.7; }
.cursor.is-hover { width: 56px; height: 56px; opacity: 0.45; }

/* ============ 8) RESPONZIVITA ============ */
@media (max-width: 1024px) {
  .hero { padding-top: 140px; align-items: flex-end; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media .photo,
  .about__media .media-placeholder { margin: 0 auto; max-width: 420px; }
  .services__grid { grid-template-columns: 1fr; }
  .training__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__meta { align-items: flex-start; }
}

/* === HERO foto na mobile: zachovat cover, ale ukotvit Luky do středu viewportu ===
   Na portrait s 4:3 fotkou je foto silně zoomed-in. object-position dolaďuje,
   aby Luky tvář byla v centru, ne vyčnívala vpravo. */
@media (max-width: 768px) {
  .hero__img {
    object-fit: cover;
    object-position: 28% 35%;  /* posun fokusu vlevo + mírně nahoru, Luky tvář v centru viewportu */
  }
  /* spodní overlay zesílit, ať text dole vždy drží kontrast */
  .hero__overlay--bottom {
    background:
      radial-gradient(85% 55% at 30% 90%, rgba(20,8,14,0.92), rgba(20,8,14,0.0) 70%),
      linear-gradient(180deg, transparent 40%, rgba(20,8,14,0.78) 100%);
  }
  /* posun hero textu vlevo (na mobile není prostor pro right-aligned) */
  .hero__inner {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh; height: 100svh;
    background: var(--c-plum);
    color: var(--on-dark);
    flex-direction: column;
    gap: 32px;
    padding: 100px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform 420ms var(--ease);
    z-index: 90;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu ul { flex-direction: column; gap: 18px; width: 100%; }
  .nav__menu a {
    font-family: var(--f-display);
    font-size: 30px;
    letter-spacing: -0.02em;
    font-weight: 700;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
    text-shadow: none;
  }
  .nav__menu.is-open a { opacity: 1; transform: translateX(0); }
  .nav__menu.is-open a { transition-delay: calc(90ms * var(--i, 0)); }
  .nav__menu .btn { margin-top: 12px; }
  .nav__burger { display: inline-flex; position: relative; z-index: 110; color: var(--ink); }
  .nav:not(.is-scrolled) .nav__burger { color: #fff; }
  body.nav-open .nav__burger { color: #fff; }

  .facts__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }

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

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

  .cursor { display: none; }

  .shape--brace, .shape--cross { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 120px; }
  .hero__h1 { font-size: clamp(38px, 13vw, 64px); }
  .btn--lg { padding: 16px 22px; font-size: 1rem; }
  .brand--full { font-size: 30px; }
  .shapes { display: none; }
}

/* dotyková zařízení - vypnout custom kurzor */
@media (hover: none) { .cursor { display: none; } }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__h1 .word { opacity: 1; transform: none; filter: none; }
  .strip__inner { animation: none; transform: none; }
  .hero__scroll-arrow { animation: none; }
  .shape { animation: none; }
  .brand__cursor { animation: none; opacity: 1; }
}
