/* =========================================================================
   AV MARKETING
   Paleta je záměrně jen tři barvy. Vše ostatní jsou průhlednosti černé
   a bílé, žádné další značkové odstíny.
   ========================================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --orange: #f6a528;

  /* odvozené tóny – pouze průhlednost, ne nové barvy */
  --on-dark-1: rgba(255, 255, 255, 0.72);
  --on-dark-2: rgba(255, 255, 255, 0.52);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-light-1: rgba(0, 0, 0, 0.68);
  --on-light-line: rgba(0, 0, 0, 0.12);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shell: 1440px;
  --gutter: clamp(20px, 5vw, 76px);
  --hdr-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

/* ------------------------------------------------------------------ base */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 18px);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* pojistka proti vodorovnému posunu */
}

/* Jemné filmové zrno – statické, aby nestálo výkon. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img { height: auto; }

button,
input,
textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------ typografie */

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.1rem + 5.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 em { font-style: normal; color: var(--orange); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.label span {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 220px;
  background: currentColor;
  opacity: 0.22;
}
.label--tight { margin-bottom: 10px; }

.outline {
  font-weight: inherit;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .outline { color: var(--white); }
}

/* ---------------------------------------------------------------- tlačítka */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--solid { color: var(--btn-fg); }
.btn--solid::before { transform: scaleY(1); }

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost::before { transform: scaleY(0); }
.btn--ghost:hover { color: var(--black); border-color: var(--orange); }
.btn--ghost:hover::before { transform: scaleY(1); }

.section--light .btn--ghost { color: var(--black); border-color: rgba(0, 0, 0, 0.3); }

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

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: var(--on-dark-line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* oranžová linka postupu čtení – pokračuje napříč celým webem */
.hdr__progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.hdr__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: var(--hdr-h);
}

.hdr__logo { color: var(--white); flex: none; }
.hdr__logo svg { width: clamp(112px, 12vw, 148px); height: auto; }

.hdr__nav { margin-inline-start: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  list-style: none;
  padding: 0;
}
.nav__list a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-1);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a[aria-current="true"] { color: var(--orange); }

.hdr__cta { min-height: 44px; padding-inline: 22px; font-size: 0.875rem; }

/* ------------------------------------------------------------ burger/menu */

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}
.burger__box { display: block; width: 26px; }
.burger__box i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.burger__box i:first-child { width: 26px; margin-bottom: 7px; }
.burger__box i:last-child { width: 17px; }
.burger:hover .burger__box i:last-child { width: 26px; }
.burger__txt {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr-h);
  flex: none;
}
.menu__logo { color: var(--white); width: 124px; height: auto; }
.menu__close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--on-dark-line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  position: relative;
  color: var(--white);
}
.menu__close span,
.menu__close span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2px;
  background: currentColor;
}
.menu__close span { transform: translate(-50%, -50%) rotate(45deg); }
.menu__close span::before { top: 0; left: 0; transform: rotate(-90deg); }
.menu__close:hover { border-color: var(--orange); color: var(--orange); }

.menu__nav { margin-block: auto; padding-block: 24px; }
.menu__nav ul { list-style: none; padding: 0; }
.menu__nav li + li { border-top: 1px solid var(--on-dark-line); }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(14px, 2.6vh, 22px) 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.menu__num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--orange);
}
.menu__nav a:hover { color: var(--orange); }
.menu__cta { width: 100%; flex: none; }

/* --------------------------------------------------------------- úvodní hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--hdr-h) + 26px) clamp(74px, 10vh, 124px);
  overflow: hidden;
}

/* diagonály odvozené ze sklonu tahů v logu (~35°) */
.hero__rule {
  position: absolute;
  z-index: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.hero__rule--a {
  height: 62vh;
  top: -8vh;
  left: 8%;
  transform: rotate(35deg);
  animation: drift 14s var(--ease) infinite alternate;
}
.hero__rule--b {
  height: 44vh;
  bottom: -6vh;
  left: 30%;
  transform: rotate(35deg);
  opacity: 0.3;
  animation: drift 18s var(--ease) infinite alternate-reverse;
}
@keyframes drift {
  from { transform: rotate(35deg) translateY(-26px); }
  to   { transform: rotate(35deg) translateY(26px); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.006fr) minmax(0, 0.994fr);
  align-items: center;
  gap: clamp(30px, 4vw, 56px);
}

.hero__copy { min-width: 0; }
.hero__h1 {
  font-family: var(--display);
  font-weight: 700;
  /* Řádky jsou zalomené ručně (span.ln), velikost je proto omezená tak,
     aby se nejdelší řádek vešel do sloupce na každé šířce a aby se celý
     hero i s tlačítky vešel na běžný notebook. */
  font-size: clamp(2.4rem, 0.2rem + 6.4vw, 6.75rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  margin-block: clamp(14px, 1.8vw, 24px) clamp(18px, 2.2vw, 28px);
  max-width: 100%;
}
.hero__h1 .ln { display: block; }
.hero__h1 .ln > span { display: block; }
.hero__h1 em { font-style: normal; color: var(--orange); }

.hero__lead {
  max-width: 46ch;
  color: var(--on-dark-1);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

/* vrstvená kompozice z náhledů Reels */
.hero__stack {
  position: relative;
  height: min(72vh, 640px);
  min-width: 0;
  /* Kompozice smí přetéct do pravého okraje, aby se tři karty vešly
     vedle sebe, aniž by se musely zmenšit. Bezpečný odstup od kraje
     obrazovky zůstává. */
  justify-self: start;
  width: calc(100% + clamp(0px, 2.1vw, 30px));
  /* Kompozice je čistě vizuální – nejde na ni kliknout ani ji označit. */
  pointer-events: none;
  user-select: none;
}
.hero__tile {
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--on-dark-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  transition: transform 0.6s var(--ease);
}
.hero__tile img,
.hero__tileVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
/* Přehrávač překryje náhled až ve chvíli, kdy se opravdu načte. */
.hero__tileVideo { opacity: 0; transition: opacity 0.6s var(--ease); }
.hero__tile.is-live .hero__tileVideo { opacity: 1; }

/* Karty stojí prakticky vedle sebe: boční sedí na krajích kompozice,
   prostřední je uprostřed a překrývá je jen úzkým pruhem (~30 px, tedy
   13 % šířky boční karty). Z každé boční karty tak zůstává vidět 87 %.
   Poměr boční/prostřední je 0.92, prostřední drží popředí. */
.hero__tile--1 {
  left: 0;
  width: 35.42%;
  transform: translateY(-46%) rotate(-2.5deg);
}
.hero__tile--2 {
  left: 50%;
  width: 38.5%;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.hero__tile--3 {
  right: 0;
  width: 35.42%;
  transform: translateY(-54%) rotate(2.5deg);
}
/* Sotva znatelné ztlumení, aby prostřední karta držela popředí. */
.hero__tile--1,
.hero__tile--3 { filter: brightness(0.96); }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(26px, 4vh, 46px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.hero__scrollLine {
  width: 54px;
  height: 1px;
  background: var(--on-dark-line);
  position: relative;
  overflow: hidden;
}
.hero__scrollLine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform-origin: left;
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.hero__scroll:hover { color: var(--white); }

/* ------------------------------------------------------------------- pás */

.strip {
  position: relative;
  border-block: 1px solid var(--on-dark-line);
  background: var(--black);
  padding-block: clamp(16px, 2.4vw, 26px);
}
.strip__mask { overflow: hidden; }
.strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.strip.is-paused .strip__track { animation-play-state: paused; }
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-inline: clamp(12px, 1.6vw, 24px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.375rem, 0.7rem + 2.6vw, 2.75rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip__sep {
  width: 3px;
  height: clamp(20px, 2.6vw, 34px);
  background: var(--orange);
  transform: skewX(-20deg);
  flex: none;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.strip__toggle,
.wall__toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--on-dark-line);
  color: var(--on-dark-1);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.strip:hover .strip__toggle,
.wall:hover .wall__toggle,
.strip__toggle:focus-visible,
.wall__toggle:focus-visible { opacity: 1; }
.strip__toggle:hover,
.wall__toggle:hover { color: var(--orange); border-color: var(--orange); }

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

.section { position: relative; padding-block: clamp(80px, 10vw, 168px); }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--black); }
.section--light .label { color: var(--black); }

/* Dvě sousední plochy stejného tónu by měly dvojitý odstup a mezi nimi by
   vznikla prázdná díra. Navazující sekci proto shora stáhneme. */
.section--dark + .section--dark,
.section--light + .section--light,
.about + .section--dark { padding-top: clamp(52px, 6vw, 96px); }

/* ---------------------------------------------------------------- o nás */

.about { padding-bottom: 0; }

/* --- A / úvodní statement ------------------------------------------- */

.statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 0.5rem + 4.4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 88%;
  margin-bottom: clamp(56px, 8vw, 132px);
}
.statement em { font-style: normal; color: var(--orange); }
.statement .ln { display: block; }
.statement .ln > span { display: block; }

/* --- B / dvousloupcové čtení ----------------------------------------- */

.story {
  display: grid;
  gap: clamp(34px, 4.6vw, 60px);
  padding-bottom: clamp(20px, 3vw, 40px);
}
.story__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-light-2);
}
.story__tag span { color: var(--orange); font-variant-numeric: tabular-nums; }
.story__text {
  color: var(--on-light-1);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.68;
  max-width: 44ch;
}

/* Jemná linka místo rámečků – sloupce zůstávají otevřené. */
.story__rule {
  display: block;
  background: var(--on-light-line);
  transform-origin: left;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: clamp(36px, 4.4vw, 76px);
    align-items: start;
  }
  .story__rule { align-self: stretch; width: 1px; transform-origin: top; }
  /* Druhý sloupec je o kus níž, ať dvojice nepůsobí jako tabulka. */
  .story__col--b { margin-top: clamp(40px, 6vw, 104px); }
}

/* --- C + D / partnerství a lidé, kteří ho tvoří ---------------------- */

/* Jeden celek: sdělení, označení spojení a portréty. Tmavá plocha končí
   až v dolní části kruhů – portréty tak přecházejí přes rozhraní
   do světlé části a obě věci vizuálně patří k sobě. */
.partner {
  position: relative;
  background: var(--black);
  margin-top: clamp(52px, 7vw, 96px);
  padding-block: clamp(48px, 6.5vw, 92px) clamp(62px, 7.5vw, 108px);
}
.partner__inner { position: relative; z-index: 1; }

.partner__line {
  display: block;
  width: clamp(56px, 12vw, 190px);
  height: 2px;
  background: var(--orange);
  margin-bottom: clamp(20px, 2.6vw, 34px);
  transform-origin: left;
}
.partner__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 0.5rem + 3.35vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 90%;               /* široké sdělení, ne úzký sloupec */
}
.partner__text em { font-style: normal; color: var(--orange); }

.partner__concept {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(0.8125rem, 0.72rem + 0.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-1);
}
.partner__concept span { color: var(--orange); }

/* --- dvojice Matěj × Martin ------------------------------------------ */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  row-gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3.2vw, 46px);
}

.duo__photo {
  grid-row: 1;
  width: min(100%, 270px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
}
.duo__photo::after {
  content: "";
  position: absolute;
  inset: clamp(-14px, -1.2vw, -8px);
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: 0.45;
}
.duo__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
}
.duo__photo--a { grid-column: 1; justify-self: end; }
.duo__photo--b { grid-column: 3; justify-self: start; }

/* Oranžová spojnice mezi portréty – vizuální „×“ nese označení nad nimi. */
.duo__x {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  width: clamp(56px, 16vw, 300px);
}
.duo__x::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--orange);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
}
.duo.is-in .duo__x::before {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease) 0.25s;
}

.duo__id {
  grid-row: 2;
  width: min(100%, 270px);
  text-align: center;
}
.duo__id--a { grid-column: 1; justify-self: end; }
.duo__id--b { grid-column: 3; justify-self: start; }
.duo__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.75rem);
  letter-spacing: -0.015em;
  color: var(--white);          /* celý blok leží na černé */
}
.duo__role {
  position: relative;
  margin-top: 10px;
  padding-top: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
}
.duo__role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
}

/* --- E / manifest ----------------------------------------------------- */

/* Samostatná světlá sekce, která začíná až po kompletní prezentaci
   dvojice. Jedno souvislé pozadí, žádný přechod barev přes text. */
.manifesto {
  background: var(--white);
  padding-block: clamp(60px, 8vw, 124px) clamp(64px, 8.5vw, 134px);
}
.manifesto__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 0.35rem + 4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--black);
}
.manifesto__text em { font-style: normal; color: var(--orange); }
/* Síla obrysu roste s velikostí písma – na mobilu by 2 px na 26px textu
   byly nečitelně těžké. */
.manifesto__text .outline { -webkit-text-stroke: clamp(1px, 0.32vw, 2px) var(--black); }
@supports not (-webkit-text-stroke: 1px #000) {
  .manifesto__text .outline { color: var(--black); }
}

/* -------------------------------------------------------------- služby */

.services__head,
.work__head,
.refs__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-bottom: clamp(44px, 6vw, 88px);
}
@media (min-width: 900px) {
  .services__head,
  .work__head,
  .refs__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: clamp(30px, 4vw, 80px);
  }
}
.services__intro,
.work__intro,
.refs__intro { color: var(--on-dark-1); max-width: 52ch; }
.section--light .refs__intro { color: var(--on-light-1); }

.svc { list-style: none; padding: 0; counter-reset: none; }
.svc__item {
  --svc-t: 420ms;
  --svc-e: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--on-dark-line);
  transition: border-color var(--svc-t) var(--svc-e);
}
.svc__item:last-child { border-bottom: 1px solid var(--on-dark-line); }
/* Prolnutí místo bílého švihu zleva: mění se jen opacita, takže hover
   nikam neposouvá layout a nepůsobí jako záblesk. */
.svc__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  opacity: 0;
  transition: opacity var(--svc-t) var(--svc-e);
}
.svc__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px clamp(14px, 2.2vw, 34px);
  align-items: start;
  padding-block: clamp(22px, 2.6vw, 34px);
  /* V klidu bez odsazení, ať čísla lícují s okrajem sekce. Posun při
     hoveru dělá transform, takže se nemění rozměry ani okolní obsah. */
  padding-inline: 0;
  transition: transform var(--svc-t) var(--svc-e), color var(--svc-t) var(--svc-e);
}
.svc__num {
  transition: color var(--svc-t) var(--svc-e);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  padding-top: 0.7em;
  font-variant-numeric: tabular-nums;
}
.svc__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5625rem, 0.9rem + 2.5vw, 2.875rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.svc__desc {
  grid-column: 2;
  color: var(--on-dark-2);
  max-width: 58ch;
  margin-top: 8px;
  transition: color var(--svc-t) var(--svc-e);
}

@media (min-width: 960px) {
  .svc__link {
    grid-template-columns: 88px minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
  }
  .svc__num { padding-top: 0; align-self: start; }
  .svc__desc { grid-column: 3; margin-top: 0; }
}

@media (hover: hover) {
  .svc__item:hover { border-color: rgba(255, 255, 255, 0.28); }
  .svc__item:hover::before { opacity: 1; }
  .svc__item:hover .svc__link { transform: translateX(clamp(6px, 0.9vw, 14px)); color: var(--black); }
  .svc__item:hover .svc__desc { color: var(--on-light-1); }
  .svc__item:hover .svc__num { color: var(--black); }
}
.svc__item:focus-within { border-color: rgba(255, 255, 255, 0.28); }
.svc__item:focus-within::before { opacity: 1; }
.svc__item:focus-within .svc__link { transform: translateX(clamp(6px, 0.9vw, 14px)); color: var(--black); }
.svc__item:focus-within .svc__desc { color: var(--on-light-1); }
.svc__item:focus-within .svc__num { color: var(--black); }

/* --------------------------------------------------------- naše práce */

.work { padding-bottom: clamp(60px, 8vw, 120px); }

.reels { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.reels__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 12px;
}
.reels__viewport::-webkit-scrollbar { display: none; }

.reels__track {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  list-style: none;
  margin: 0;
  padding-inline: var(--gutter);
  width: max-content;
}

.reel {
  scroll-snap-align: center;
  width: min(76vw, 320px);
  flex: none;
  transition: transform 0.6s var(--ease);
}
.reel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--on-dark-line);
}
.reel__frame img,
.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.reel__frame::after {          /* čitelnost popisku nad videem */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.reel.is-playing .reel__frame::after { opacity: 0; }

.reel__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel__playIcon {
  width: clamp(58px, 7vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform 0.45s var(--ease);
}
.reel__playIcon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-block: 9px solid transparent;
  border-left: 15px solid currentColor;
}
.reel__play:hover .reel__playIcon { transform: scale(1.12); }
/* Atribut hidden musí přebít display:flex, jinak by tlačítko zůstalo
   viset nad spuštěným přehrávačem. */
.reel__play[hidden] { display: none; }

.reel__meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 18px 20px;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.reel.is-playing .reel__meta { opacity: 0; }
.reel__tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.reel__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
}

.reel__stop {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-line);
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.reel__stop[hidden] { display: none; }
.reel__stop:hover { border-color: var(--orange); color: var(--orange); }

.reels__ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 34px);
}
.reels__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line);
  background: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.reels__arrow:hover { border-color: var(--orange); color: var(--orange); }
.reels__arrow[disabled] { opacity: 0.3; cursor: default; }
.reels__dots { display: flex; gap: 9px; }
.reels__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reels__dot[aria-current="true"] { background: var(--orange); border-color: var(--orange); }

/* na širokých displejích: statická kompozice, střední rám dominuje */
@media (min-width: 1000px) {
  .reels__viewport { overflow: visible; scroll-snap-type: none; }
  .reels__track {
    width: auto;
    justify-content: center;
    padding-inline: var(--gutter);
    align-items: center;
  }
  .reel { width: clamp(230px, 21vw, 320px); }
  .reel:nth-child(1) { transform: translateY(42px) rotate(-2deg); }
  .reel:nth-child(2) { transform: scale(1.07); z-index: 2; }
  .reel:nth-child(3) { transform: translateY(42px) rotate(2deg); }
  .reel:nth-child(1):hover { transform: translateY(30px) rotate(-2deg) scale(1.03); }
  .reel:nth-child(2):hover { transform: scale(1.11); }
  .reel:nth-child(3):hover { transform: translateY(30px) rotate(2deg) scale(1.03); }
  .reel.is-playing:nth-child(1) { transform: translateY(42px) rotate(-2deg) scale(1.04); }
  .reel.is-playing:nth-child(3) { transform: translateY(42px) rotate(2deg) scale(1.04); }
  .reels__ctrl { display: none; }
}

/* ------------------------------------------------------------ reference */

.refs { padding-bottom: clamp(52px, 6vw, 90px); }

.wall { position: relative; margin-top: clamp(38px, 5vw, 70px); }
.wall__row { overflow: hidden; padding-block: 7px; }
.wall__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 64s linear infinite;
}
.wall__row[data-dir="-1"] .wall__track { animation-direction: reverse; animation-duration: 74s; }
.wall.is-paused .wall__track { animation-play-state: paused; }

.wall__tile {
  flex: none;
  width: clamp(178px, 17vw, 236px);
  aspect-ratio: 560 / 260;
  border-radius: var(--r-md);
  border: 1px solid var(--on-light-line);
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}
.wall__tile[data-tone="dark"],
.wall__tile[data-tone="plate"] { border-color: rgba(0, 0, 0, 0.2); }
.wall__tile[data-tone="dark"] { background: #0d0d0d; }
.wall__tile img { width: 100%; height: 100%; object-fit: contain; }

.wall__toggle {
  bottom: auto;
  top: -46px;
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--on-light-line);
  color: var(--on-light-1);
}

/* ----------------------------------------------------- podpis + kariéra */

.sign {
  background: var(--black);
  display: grid;
  place-items: center;
  padding-block: clamp(24px, 3.4vw, 44px);
  overflow: hidden;
}
.sign__video {
  width: min(620px, 84%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

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

.contact { border-top: 1px solid var(--on-dark-line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
}
.contact__intro {
  color: var(--on-dark-1);
  max-width: 46ch;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.contact__mark {
  width: clamp(120px, 15vw, 190px);
  margin-top: clamp(34px, 5vw, 62px);
  color: var(--white);
  opacity: 0.9;
}

.form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-1);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-sm);
  color: var(--white);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; line-height: 1.55; }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(246, 165, 40, 0.22);
}
.field.is-bad input,
.field.is-bad textarea { border-color: var(--orange); }
.field__err {
  font-size: 0.875rem;
  color: var(--orange);
  line-height: 1.4;
}
.field__err[hidden] { display: none; }

.form__submit { width: 100%; margin-top: 6px; }
.form__status {
  min-height: 1.4em;
  font-size: 0.9375rem;
  color: var(--on-dark-1);
}
.form__status.is-bad { color: var(--orange); }

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

.foot {
  background: var(--black);
  border-top: 1px solid var(--on-dark-line);
  padding-block: clamp(38px, 5vw, 64px);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 48px);
}
.foot__logo { color: var(--white); }
.foot__logo svg { width: clamp(124px, 13vw, 158px); height: auto; }
.foot__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 2.2vw, 30px);
  list-style: none;
  padding: 0;
}
.foot__nav a { color: var(--on-dark-1); font-size: 0.9375rem; }
.foot__nav a:hover { color: var(--orange); }
.foot__copy {
  font-size: 0.875rem;
  color: var(--on-dark-2);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- kurzor */

/* V klidu jen drobná tečka, aby nepůsobila jako neaktivní tlačítko.
   Prstenec a popisek se objeví jen tam, kde na obsah opravdu reaguje. */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor i {
  display: grid;
  place-items: center;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--orange);
  background: var(--orange);
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              margin 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor b {
  font-family: var(--display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  white-space: nowrap;
}
.cursor.is-on { opacity: 1; }

.cursor.is-link i {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: rgba(246, 165, 40, 0.14);
}
.cursor.is-label i {
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  background: rgba(246, 165, 40, 0.16);
}
.cursor.is-label b { opacity: 1; }

/* --------------------------------------------------------------- úvodní */

.intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 0.45s var(--ease);
}
.intro[hidden] { display: none; }
.intro.is-out { opacity: 0; pointer-events: none; }
.intro__mark {
  width: min(280px, 52vw);
  color: var(--white);
  clip-path: inset(0 100% 0 0);
  animation: wipe 0.62s var(--ease) forwards;
}
@keyframes wipe {
  to { clip-path: inset(0 0 0 0); }
}

/* -------------------------------------------------------------- odhalení */

/* Skrytý výchozí stav se uplatní jen když běží JavaScript. Bez něj
   (nebo když skript spadne) zůstane obsah normálně viditelný. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Řádky nadpisu nastupují postupně. Bez maskování přetečením – kdyby se
   řádek na úzkém displeji přece jen zalomil, nic se neuřízne. */
.js .hero__h1 .ln > span,
.js .reveal-lines .ln > span {
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
.hero__h1.is-in .ln > span,
.reveal-lines.is-in .ln > span { opacity: 1; transform: none; }
.hero__h1 .ln:nth-child(2) > span,
.reveal-lines .ln:nth-child(2) > span { transition-delay: 0.08s; }
.hero__h1 .ln:nth-child(3) > span,
.reveal-lines .ln:nth-child(3) > span { transition-delay: 0.16s; }
.hero__h1 .ln:nth-child(4) > span,
.reveal-lines .ln:nth-child(4) > span { transition-delay: 0.24s; }

/* ============================================================ responzivita */

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); }
}

@media (max-width: 900px) {
  :root { --hdr-h: 66px; }

  .hdr__nav,
  .hdr__cta { display: none; }
  .burger { display: inline-flex; }

  .hero {
    min-height: auto;
    padding-block: calc(var(--hdr-h) + 40px) clamp(80px, 12vh, 110px);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(34px, 7vw, 54px);
  }
  .hero__copy { max-width: 100%; }
  .hero__h1 { max-width: 12ch; }
  .hero__lead { max-width: 40ch; }

  .hero__stack { height: min(56vh, 440px); width: 100%; }

  .hero__scroll { display: none; }

  .statement { max-width: 100%; }
}

@media (max-width: 620px) {
  /* Portréty pod sebou, oba bloky přesně stejně velké. */
  /* Dvojice pod sebou, spojnice se otočí na svislou. */
  .duo {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(14px, 3vw, 22px);
    justify-items: center;
  }
  .duo__photo,
  .duo__id { width: min(70%, 250px); }
  .duo__photo--a { grid-column: 1; grid-row: 1; justify-self: center; }
  .duo__id--a { grid-column: 1; grid-row: 2; justify-self: center; }
  .duo__x {
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    width: auto;
    height: clamp(28px, 8vw, 52px);
    margin-block: clamp(6px, 2vw, 14px);
  }
  .duo__x::before { width: 1px; height: auto; transform-origin: top; }
  .duo.is-in .duo__x::before { transform: scaleY(1); }
  .duo__photo--b { grid-column: 1; grid-row: 4; justify-self: center; }
  .duo__id--b { grid-column: 1; grid-row: 5; justify-self: center; }



  /* Na mobilu zůstávají tři karty – boční vykukují po stranách, aby bylo
     poznat, že jde o tři různá videa. */
  /* Na mobilu jsou karty užší, proto o něco vyšší kompozice. */
  .hero__stack { height: min(46vh, 330px); }
  .hero__tile--1 { transform: translateY(-47%) rotate(-2deg); }
  .hero__tile--3 { transform: translateY(-53%) rotate(2deg); }

  .btn { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }

  .foot__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .wall__tile { width: 168px; }
}

/* ======================================================= omezený pohyb === */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .js .hero__h1 .ln > span,
  .js .reveal-lines .ln > span { opacity: 1; transform: none; }
  .hero__rule { display: none; }
  .cursor { display: none; }

  /* pásy se zastaví a zobrazí se jako statická mřížka */
  .strip__track,
  .wall__track { animation: none !important; }
  .strip__track { width: 100%; flex-wrap: wrap; justify-content: center; }
  .strip__toggle,
  .wall__toggle { display: none; }

  .wall__row { overflow: visible; }
  .wall__row[data-dir="-1"] { display: none; }
  .wall__track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    /* statická mřížka musí respektovat okraje stránky, na rozdíl
       od pásu, který záměrně přetéká přes celou šířku */
    padding-inline: var(--gutter);
    max-width: var(--shell);
    margin-inline: auto;
  }
  .strip__track { padding-inline: var(--gutter); }
  .wall__tile { width: auto; }
  .wall__tile[data-clone="true"] { display: none; }

  .hero__tile,
  .reel { transition: none; }
}
