:root {
  --bg: #d2d0cb;
  --ink: #141414;
  --ink-soft: #3d3d3a;
  --line: rgba(255, 255, 255, .5);
  --rec: #e5483d;
  /* stejna cervena, ale ztmavena pro TEXT na svetlem podkladu: --rec ma na --bg
     kontrast jen 2.56:1 (WCAG chce 4.5). Body, linky a prvky na videu zustavaji --rec. */
  --rec-text: #9c2f22;
  --paper: #fbfbfa;
  --font-display: 'Clash Display', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-serif: 'Sentient', Georgia, serif;
}
* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  overflow-x: hidden;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.serif-line { font-family: var(--font-serif); font-style: italic; }

.grain {
  position: fixed; inset: -120px; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(9) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-4%, -6%); }
  25% { transform: translate(3%, -3%); }
  37% { transform: translate(-2%, 5%); }
  50% { transform: translate(5%, 2%); }
  62% { transform: translate(-5%, -2%); }
  75% { transform: translate(2%, 6%); }
  87% { transform: translate(-3%, 3%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.cursor {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; z-index: 70;
  border: 1px solid var(--ink-soft); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width .25s ease, height .25s ease, border-color .25s ease, opacity .3s ease;
}
.cursor::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; translate: -50% -50%;
  border-radius: 50%; background: var(--rec);
}
.cursor.aktiv { width: 52px; height: 52px; border-color: var(--rec); }
@media (pointer: coarse) { .cursor { display: none; } }

.playhead {
  position: fixed; left: 0; bottom: 0; width: 100%; height: 3px; z-index: 65;
  background: var(--rec); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

.grid-overlay { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.gline { position: absolute; background: var(--line); }
.gline.v { top: 0; bottom: 0; width: 1px; }
.gline.h { left: 0; right: 0; height: 1px; }
.v1 { left: 33.333%; } .v2 { left: 66.666%; }
.h1 { top: 33.333%; } .h2 { top: 66.666%; }
.gmark { position: absolute; width: 7px; height: 7px; background: #fff; translate: -50% -50%; }
.m11 { left: 33.333%; top: 33.333%; } .m21 { left: 66.666%; top: 33.333%; }
.m12 { left: 33.333%; top: 66.666%; } .m22 { left: 66.666%; top: 66.666%; }

.site-nav {
  position: fixed; top: 18px; left: 50%; translate: -50% 0; z-index: 20;
  display: flex; align-items: center; gap: 34px;
  background: rgba(251, 251, 250, .55); backdrop-filter: blur(8px);
  border-radius: 8px; padding: 10px 22px;
}
/* MENU tlacitko + celoobrazovkovy panel: jen na uzkych displejich (viz responsive vrstva dole) */
.nav-menu {
  display: none; align-items: center; gap: 9px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--ink); font-family: var(--font-mono); letter-spacing: .18em;
}
.nm-ikona { display: grid; gap: 4px; width: 17px; }
.nm-ikona i { display: block; height: 1.5px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease; }
body.menu-otevrene .nm-ikona i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-otevrene .nm-ikona i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  background: #141413; color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8vh;
  padding: 16vh 8vw 8vh;
  opacity: 0; transition: opacity .28s ease;
}
.nav-panel[hidden] { display: none; }
.nav-panel.otevreny { opacity: 1; }
.np-links { display: flex; flex-direction: column; }
.np-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(251, 251, 250, .13);
  color: var(--paper); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(28px, 8.5vw, 42px); line-height: 1;
}
.np-links a .mono-label { color: var(--rec); font-size: 11px; line-height: 1; }
.np-links a:active { color: var(--rec); }
.np-pata { display: flex; flex-direction: column; gap: 12px; }
.np-pata a { color: #cdccc6; text-decoration: none; text-underline-offset: 5px; }
body.menu-otevrene { overflow: hidden; }
body.menu-otevrene .site-nav { z-index: 46; background: none; backdrop-filter: none; }
body.menu-otevrene .nav-name, body.menu-otevrene .nav-menu { color: var(--paper); }
.nav-name { font-weight: 600; letter-spacing: .24em; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { position: relative; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.rec-badge { position: fixed; top: 26px; right: 22px; z-index: 20; display: flex; align-items: center; gap: 8px; transition: opacity .35s ease; }
/* !important: intro timeline necha na odznaku inline opacity (autoAlpha) */
.rec-badge.schovana { opacity: 0 !important; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.rec-badge .rec-dot { animation: rec-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .rec-badge .rec-dot { animation: none; } }

main section { min-height: 60vh; position: relative; }

#hero { min-height: 100vh; overflow: hidden; }
.hero-stage { position: relative; height: 100vh; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transform: scale(1.04); will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(210, 208, 203, .68); }
/* .hero-grid je pryc: byla to presna kopie .grid-overlay uvnitr hero sekce. Pri
   scrollu se pevna a rolujici mrizka rozjely a bylo videt 8 stredovych bodu misto
   4. Intro ted kresli rovnou .grid-overlay (a ta animace je konecne videt — pod
   hero mrizkou lezela ta pevna uz v plne kryci). */
.hero-video {
  position: absolute; left: 50%; top: 47%; margin: -11.8vw 0 0 -21vw;
  width: 42vw; aspect-ratio: 16 / 9; z-index: 1;
  border-radius: 12px; overflow: hidden; will-change: transform;
}
.hero-video img,
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* stin je nutny: svetla obloha v prvnim snimku jinak bily popisek uplne spolkne */
.hero-video-tag { position: absolute; left: 16px; bottom: 14px; margin: 0; color: var(--paper); display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 10px rgba(20, 20, 19, .75); }
.hero-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 112px; height: 112px; border: 0; cursor: pointer;
  background: none; color: var(--paper);
  display: grid; place-items: center; opacity: 0;
  transition: color .3s ease;
}
/* zadne visibility: hidden — to vyradi tlacitko z poradi tabulatoru a klavesnici
   by uvodni video na desktopu neslo spustit vubec. Proto jen opacity (i v GSAP). */
.hero-play:focus-visible { opacity: 1 !important; }
.hero-play svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hp-tocit 18s linear infinite; }
.hero-play text { font-family: var(--font-mono); font-size: 8px; letter-spacing: .3em; fill: currentColor; }
.hero-play::after {
  content: ''; display: block; margin-left: 4px;
  border-left: 15px solid currentColor;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
/* pri prehravani se trojuhelnik promeni v pauzu */
.hero-video.hraje .hero-play::after {
  margin-left: 0; width: 13px; height: 18px;
  border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor;
}
/* ...a cele tlacitko zmizi, at neprekryva obraz. Zpatky ho vrati najeti mysi nebo
   fokus z klavesnice; na dotyku video pauzne klepnuti kamkoliv do ramu (viz main.js).
   !important, protoze GSAP nechava na .hero-play inline opacity (autoAlpha). */
.hero-video.hraje .hero-play {
  opacity: 0 !important; pointer-events: none;
  transition: opacity .35s ease;
}
.hero-video.hraje .hero-play:focus-visible { opacity: 1 !important; pointer-events: auto; }
/* hover jen tam, kde opravdu je — na dotyku nechava klepnuti "sticky hover" a
   tlacitko by se po spusteni hned vratilo */
@media (hover: hover) {
  .hero-video.hraje:hover .hero-play { opacity: 1 !important; pointer-events: auto; }
}
.hero-play:hover { color: var(--rec); }
.hero-play:hover::after { transform: scale(1.15); }
@keyframes hp-tocit { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .hero-play svg { animation: none; } }
.hero-copy { position: absolute; right: 5vw; top: 37vh; width: 300px; z-index: 3; }
.hero-serif { font-size: 26px; line-height: 1.3; color: var(--ink); }
.hero-bio { margin-top: 14px; font-size: 11px; line-height: 1.9; text-transform: none; }
/* zadny overflow:hidden ani pevna vyska: line-height 1 na 15vw rezal horni dotahy
   (S, b, t) o ~15 px. Vodorovne odhaleni resi clip-path v .ww, svisle nic rezat nema. */
.hero-title {
  position: absolute; bottom: 3vh; left: 3vw; z-index: 2;
  color: var(--paper); user-select: none;
}
.ht-roll { display: block; }
.ht-roll span {
  display: block; line-height: 1.1;
  font-size: 15vw; font-weight: 700; letter-spacing: -.04em; white-space: nowrap;
}
/* wipe-write: text se vypisuje za jedoucim playheadem (linka s hlavickou jako ve strihacim programu)
   width: fit-content — linka konci presne na konci textu, ne na kraji kontejneru */
.ww { position: relative; width: fit-content; max-width: 100%; clip-path: inset(-18% calc(100% - var(--ww, 100.5%)) -12% -2%); }
.ww::after {
  content: ''; position: absolute; top: 2%; bottom: 2%; width: 1.5px;
  left: clamp(0%, calc(var(--ww, 200%) - 2px), calc(100% - 2px));
  background: var(--rec); opacity: var(--wwl, 0); pointer-events: none;
}
.ww::before {
  content: ''; position: absolute; top: -2%; width: 7px; height: 11px; border-radius: 1.5px;
  left: clamp(-3px, calc(var(--ww, 200%) - 4.5px), calc(100% - 5px));
  background: var(--rec); opacity: var(--wwl, 0); pointer-events: none;
}

#projekty { padding: 4vh 0 8vh; }
#projekty .section-head { padding: 2vh 6vw 2vh; }
/* serazena fotogalerie projektu */
/* minmax(0,...) misto 1fr: nowrap mono-stitek v .pgal-meta jinak roztahne track
   pres sirku viewportu a stranka dostane horizontalni scroll */
.pgalerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 34px 22px; padding: 0 6vw; align-items: start; }
.pgal-item { margin: 0; cursor: pointer; text-align: left; display: block; grid-column: span 4; transition: opacity .45s ease; }
.pgal-media { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; font: inherit; text-align: left; }
.pgal-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #8f8d86;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.pgal-item:hover .pgal-media img { transform: scale(1.045); }
/* portretove video/foto se do dlazdice VEJDE cele misto orezu — pillarbox v barve inkoustu */
.pgal-item.portret .pgal-media { background: var(--ink); }
.pgal-item.portret .pgal-media img,
.pgal-item.portret .pk-video { object-fit: contain; background: var(--ink); }
.pgal-item.portret:hover .pgal-media img { transform: none; }
.pgal-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(251,251,250,.14); border-radius: 10px; pointer-events: none; }
.pgal-tag { position: absolute; top: 12px; left: 14px; display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--paper); text-shadow: 0 1px 10px rgba(20,20,19,.7); pointer-events: none; }
.pgal-rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.pgal-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 11px; }
.pgal-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pgal-titul { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* radeji zalomit na dva radky nez uriznout vypustkou: "REPORTÁŽE · TESTIMONIALY ·
   YOUTUBE · FACEBOOK · LI…" nikomu nic nerekne. Vyska dlazdic zustava srovnana,
   protoze .pgal-meta ma pevny min-height na dva radky stitku. */
.pgal-meta .mono-label { font-size: 9px; line-height: 1.6; }
.pgal-text .mono-label { min-height: 2.4em; }
.pgal-plus {
  flex: none; width: 32px; height: 32px; border-radius: 50%; position: relative;
  border: 1px solid rgba(20, 20, 19, .22);
  transition: border-color .3s ease, background .3s ease, rotate .45s cubic-bezier(.2, .7, .2, 1);
}
.pgal-item:hover .pgal-plus { border-color: var(--ink); background: rgba(20, 20, 19, .04); rotate: 90deg; }

/* rozbaleny projekt: zvetsi se UVNITR sveho radku, sousedi v radku se zmensi — layout 3+2 zustava */
@media (min-width: 761px) {
  .pgalerie:has(> .pgal-item:nth-child(-n+3).otevreny) > .pgal-item:nth-child(-n+3):not(.otevreny) { grid-column: span 3; }
  .pgalerie:has(> .pgal-item:nth-child(n+4).otevreny) > .pgal-item:nth-child(n+4):not(.otevreny) { grid-column: span 3; }
  .pgalerie > .pgal-item.otevreny { grid-column: span 6; }
}
.pgalerie.ma-otevreny .pgal-item:not(.otevreny) { opacity: .45; }
.pgalerie.ma-otevreny .pgal-item:not(.otevreny):hover { opacity: .85; }
.pgalerie .pgal-item.otevreny .pgal-plus { rotate: 45deg; border-color: var(--ink); }
/* otevrena karta dostane svetly podklad, at je videt, ze je aktivni */
.pgalerie .pgal-item.otevreny {
  background: rgba(251, 251, 250, .72);
  border-radius: 14px; padding: 12px 12px 20px;
  box-shadow: 0 20px 55px rgba(20, 20, 19, .1);
}
.pgal-detail { display: flex; flex-direction: column; gap: 0; padding: 18px 4px 2px; }
.pgal-detail[hidden] { display: none; }
.pgal-detail-titul {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; margin-bottom: 12px;
}
.pgal-detail .ec-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.pgal-detail .dlg-exif { margin-top: 18px; }

/* audio waveform dole */
.pk-wave { position: relative; width: max-content; margin: 8vh auto 0; display: flex; align-items: center; gap: 3px; height: 34px; }
.pk-wave b { display: block; width: 2px; background: var(--ink-soft); opacity: .45; border-radius: 2px; }
.pk-wave-head { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--rec); left: 0; }

.marquee { --ml-mezera: 6.5vw; --logo-h: 34px; overflow: hidden; padding: 4.5vh 0; margin-top: 6vh; background: linear-gradient(90deg, transparent, rgba(95, 93, 88, .13) 18%, rgba(95, 93, 88, .13) 82%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 39s linear infinite; will-change: transform; }
/* klientska loga: mezera i za poslednim logem kvuli navaznosti smycky */
.ml-grupa { display: flex; align-items: center; gap: var(--ml-mezera); padding-right: var(--ml-mezera); flex: none; }
/* opticke vyvazeni: jednotna vyska sama nestaci — siroke wordmarky (Attendu 8:1,
   Decoland 5.7:1, Pneu revue 5.3:1) prebijely uzka loga sirkou. Dostavaji proto
   nizsi vysku, aby mela vsechna loga podobnou plochu. */
.ml-logo {
  display: block; height: var(--logo-h); width: auto; flex: none;
  opacity: .68;
  transition: opacity .3s ease;
}
.ml-logo[src$="attendu.png"] { height: calc(var(--logo-h) * .6); }
.ml-logo[src$="decoland.png"] { height: calc(var(--logo-h) * .76); }
.ml-logo[src$="pneurevue.png"] { height: calc(var(--logo-h) * .8); }
/* opacne: uzke a svetle znacky (Mr. Kriss je tenky podpis 1.16:1, KVIFF ma
   drobny text pod ikonou) v jednotne vysce optiky mizely, dostavaji vic */
.ml-logo[src$="mrkriss.png"] { height: calc(var(--logo-h) * 1.35); }
.ml-logo[src$="kviff.png"] { height: calc(var(--logo-h) * 1.12); }
.marquee:hover .ml-logo { opacity: .4; }
.marquee .ml-logo:hover { opacity: 1; }
/* tri skupiny, ne dve: jedna skupina je ~1245 px, takze na sirsim displeji byl
   videt dvakrat stejny logotyp naraz. Posun o tretinu drzi smycku bezesvou. */
@keyframes marquee { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
/* opacity: 0 patri do CSS, ne jen do GSAP: pri prefers-reduced-motion se initMotion
   vraci driv a overlay by zustal natrvalo viset pres hero */
.zoom-overlay {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end;
  gap: 12px; padding: 0 13vw 16vh 0; text-align: right;
}
.zoom-tag { color: var(--paper); opacity: .85; }
.zoom-line { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: clamp(26px, 4.4vw, 76px); line-height: .96; letter-spacing: -.02em; text-shadow: 0 1px 6px rgba(20,20,19,.3); }

.section-head { padding: 9vh 6vw 5vh; position: relative; }
.section-title { font-size: clamp(34px, 5vw, 72px); font-weight: 600; letter-spacing: -.02em; margin-top: 12px; overflow: hidden; }
.ec-plus { position: absolute; left: 50%; top: 50%; width: 15px; height: 1.5px; translate: -50% -50%; }
.ec-plus, .ec-plus::before { background: var(--ink); }
.ec-plus::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; rotate: 90deg; }
.dlg-exif { margin-top: 22px; border-top: 1px solid #b8b6b0; padding-top: 12px; }
.dlg-exif div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.dlg-exif dd { margin: 0; text-align: right; }
#sluzby { position: relative; }
.pilire { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; min-height: 84vh; padding: 0 6vw; }
.pilire-vizual {
  --kruh-d: clamp(220px, 36vh, 340px);
  --kruh-off: calc(var(--kruh-d) * 0.36);
  position: relative; height: 76vh;
}
.kruh {
  position: absolute; top: 50%; left: 50%;
  width: var(--kruh-d); height: var(--kruh-d);
  border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: rgba(95, 93, 88, .16); will-change: transform;
}
.kruh span { font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 24px); }
/* Popisek nesedi ve stredu kruhu, ale v jeho vlastnim srpku. Ve stredu ho prekryval
   sousedni kruh ("Koncept" se orezaval na "Koncep") a z-indexem to nejde spravit:
   GSAP na .kruh animuje transform, takze kazdy kruh je vlastni stacking context
   a z-index potomka z nej neutece. */
.kruh.k-1 span { translate: -1.2em -.55em; }
.kruh.k-2 span { translate: 1.2em -.55em; }
.kruh.k-3 span { translate: 0 .9em; }
.kruh.k-1 { transform: translate(calc(-50% - var(--kruh-off) * .866), calc(-50% - var(--kruh-off) * .5)); }
.kruh.k-2 { transform: translate(calc(-50% + var(--kruh-off) * .866), calc(-50% - var(--kruh-off) * .5)); }
.kruh.k-3 { transform: translate(-50%, calc(-50% + var(--kruh-off))); }
.disk-text {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: calc(var(--kruh-d) * .82); margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: var(--paper);
  font-size: clamp(20px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -.01em;
  opacity: 0; z-index: 3;
}
.pilire-fokus { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); translate: -50% -50%; opacity: 0; z-index: 4; }
.pilire-title { font-size: clamp(30px, 4vw, 60px); }
.pilire-p { margin-top: 22px; max-width: 460px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.pilire-cta { display: inline-block; margin-top: 26px; text-decoration: underline; }

#cena { min-height: 62vh; display: flex; align-items: center; }
.cena-figure { margin-top: 34px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cena-cislo { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.03em; color: var(--ink); }
.cena-jednotka { color: var(--ink-soft); }
#cena .cena-text { margin-top: 22px; font-size: 20px; max-width: 520px; color: var(--ink-soft); }
#kontakt { padding: 11vh 6vw 12vh; text-align: center; }
#projekty, #sluzby, #cena, #faq, #kontakt { scroll-margin-top: 96px; }

#faq { padding: 0 6vw 7vh; }
.faq-list { max-width: 940px; margin: 0 auto; border-top: 1px solid rgba(20,20,19,.14); }
.faq-item { border-bottom: 1px solid rgba(20,20,19,.14); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 30px); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 26px; color: var(--ink-soft); }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { padding: 0 0 26px; max-width: 660px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.kontakt-cta {
  display: block; font-size: clamp(48px, 12vw, 160px); font-weight: 700;
  letter-spacing: -.03em; color: var(--ink); text-decoration: none; margin: 4vh 0 3vh;
}
.kontakt-cta:hover { color: var(--rec); }
.kc-text, .kc-sipka { display: inline-block; will-change: transform; }
.kontakt-mail { font-size: 13px; }
.kontakt-socialy { display: flex; justify-content: center; gap: 18px 44px; margin-top: 34px; flex-wrap: wrap; }
.kontakt-ig { text-decoration: underline; text-underline-offset: 5px; transition: color .25s ease; }
.kontakt-ig:hover { color: var(--rec); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 6vw; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-dot { display: inline-block; }

#intro { position: fixed; inset: 0; z-index: 50; background: #141413; overflow: hidden; }
.intro-okno {
  position: absolute; inset: 0; z-index: 1; will-change: clip-path;
  clip-path: inset(32% 31% 32% 31% round 12px);
}
.intro-okno img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transform: scale(1.04); }
.intro-veil { position: absolute; inset: 0; background: rgba(210, 208, 203, .68); opacity: 0; pointer-events: none; }
.intro-card { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; gap: 10px; pointer-events: none; }
.intro-name { font-size: 30px; font-weight: 600; color: var(--paper); }
#intro .mono-label { color: #cdccc6; }
body.no-intro #intro { display: none; }


.mini-cta {
  position: fixed; right: 22px; bottom: 26px; z-index: 40;
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity .35s ease, translate .35s ease;
}
.mini-cta.viditelna { opacity: 1; translate: 0 0; pointer-events: auto; }
.mini-cta .rec-dot { animation: rec-pulse 1.6s ease-in-out infinite; }

/* kamerove detaily: frame stitky, fokusove rohy, bocni OSD */
.fr-tag { float: right; opacity: .85; color: var(--rec-text); }
.zoom-tag { color: var(--rec) !important; opacity: 1; }
.rec-badge { color: var(--rec-text); }
#kontakt > .mono-label:first-child { color: var(--rec-text); }

/* ruzky hledacku pres cely viewport */
.vf-frame i { position: fixed; width: 20px; height: 20px; z-index: 21; pointer-events: none; }
.vf-frame i:nth-child(1) { top: 12px; left: 12px; border-top: 1.5px solid rgba(20,20,19,.5); border-left: 1.5px solid rgba(20,20,19,.5); }
.vf-frame i:nth-child(2) { top: 12px; right: 12px; border-top: 1.5px solid rgba(20,20,19,.5); border-right: 1.5px solid rgba(20,20,19,.5); }
.vf-frame i:nth-child(3) { bottom: 12px; left: 12px; border-bottom: 1.5px solid rgba(20,20,19,.5); border-left: 1.5px solid rgba(20,20,19,.5); }
.vf-frame i:nth-child(4) { bottom: 12px; right: 12px; border-bottom: 1.5px solid rgba(20,20,19,.5); border-right: 1.5px solid rgba(20,20,19,.5); }

/* spodni OSD lista (AF-C, zebra, baterie) */
.osd-dole {
  position: fixed; left: 44px; bottom: 16px; z-index: 21;
  display: flex; gap: 34px; font-size: 10px; opacity: .6; pointer-events: none;
  transition: opacity .35s ease;
}
.osd-dole.schovana { opacity: 0; }

/* zivy SLATE/TAKE/LENS radek v hero */
.hero-osd { position: absolute; right: 5vw; bottom: 5vh; z-index: 2; color: var(--paper); font-size: 11px; opacity: .9; }
.hero-osd #osd-f { color: var(--rec); }

@media (max-width: 760px) { .osd-dole, .vf-frame, .hero-osd { display: none; } }

/* 1) filmovy pas na okraji: perforace + policka se zabery, jede parallaxem */
.filmpas {
  position: absolute; right: 4vw; top: 14vh; width: 96px; z-index: 0;
  background: #141414; border-radius: 4px; padding: 20px 16px;
  display: flex; flex-direction: column; gap: 16px; pointer-events: none;
}
.filmpas::before, .filmpas::after {
  content: ''; position: absolute; top: 8px; bottom: 8px; width: 5px;
  background: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(251,251,250,.8) 9px 15px);
}
.filmpas::before { left: 5px; }
.filmpas::after { right: 5px; }
.fp-okno img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; filter: grayscale(1); opacity: .85; border-radius: 2px; }
@media (max-width: 760px) { .filmpas { display: none; } }

/* 2) scenove vodoznaky za sekcemi */
.sc-znak {
  /* right/left na 0 — pri -1vw pretekal dokument a stranka mela horizontalni scroll */
  position: absolute; z-index: -1; right: 0; bottom: -2vw; line-height: 1;
  font-size: clamp(90px, 16vw, 260px); font-weight: 700; letter-spacing: -.05em;
  color: rgba(20, 20, 19, .028); pointer-events: none; user-select: none; white-space: nowrap;
}
.sc-znak.vlevo { right: auto; left: 0; }
.pilire { position: relative; }

/* 3) AF ramecek na hero videu (rack focus) */
.af-ram {
  position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; translate: -50% -50%;
  border: 1.5px solid var(--rec); border-radius: 8px; opacity: 0; visibility: hidden;
  pointer-events: none; z-index: 2;
}

/* 4) light leak: obcasny teply pruh svetla */
.lightleak {
  position: fixed; top: -30vh; left: 0; width: 16vw; height: 160vh; z-index: 55; pointer-events: none;
  background: linear-gradient(90deg, rgba(229, 120, 61, 0), rgba(229, 120, 61, .09) 40%, rgba(251, 200, 120, .13) 55%, rgba(229, 120, 61, 0));
  transform: translateX(-40vw) rotate(14deg); will-change: transform;
}

/* 5) SMPTE testovaci pruhy pri otevreni projektu */
.smpte { position: absolute; inset: 0; z-index: 3; display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.smpte i { flex: 1; }
.smpte i:nth-child(1) { background: #b4b4b4; } .smpte i:nth-child(2) { background: #c8c832; }
.smpte i:nth-child(3) { background: #32c8c8; } .smpte i:nth-child(4) { background: #32c832; }
.smpte i:nth-child(5) { background: #c832c8; } .smpte i:nth-child(6) { background: #c83232; }
.smpte i:nth-child(7) { background: #3232c8; }

/* 6) strih mezi sekcemi */
.cut-linka {
  position: fixed; left: 0; right: 0; top: 50%; height: 2px; z-index: 64;
  background: var(--ink); transform: scaleX(0); pointer-events: none;
}
.cut-label { position: fixed; right: 24px; top: calc(50% - 24px); z-index: 64; color: var(--rec); opacity: 0; pointer-events: none; font-size: 10px; }
.rohy { position: relative; padding: 30px 36px; }
.rohy::before, .rohy::after { content: ''; position: absolute; width: 24px; height: 24px; pointer-events: none; }
.rohy::before { top: 0; left: 0; border-top: 1px solid rgba(20,20,19,.45); border-left: 1px solid rgba(20,20,19,.45); }
.rohy::after { bottom: 0; right: 0; border-bottom: 1px solid rgba(20,20,19,.45); border-right: 1px solid rgba(20,20,19,.45); }
.osd-bok {
  position: fixed; left: 14px; top: 50%; z-index: 20;
  rotate: 180deg; writing-mode: vertical-rl; translate: 0 -50%;
  font-size: 10px; opacity: .55; pointer-events: none;
}
@media (max-width: 760px) { .osd-bok { display: none; } }

#citace { padding: 9vh 6vw 8vh; display: grid; place-items: center; text-align: center; }
.citace-in { max-width: 800px; margin: 0; }
.citace-in blockquote { margin: 0; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.35; color: var(--ink); }
.citace-in blockquote::before { content: '„'; display: block; font-family: var(--font-display); font-weight: 700; font-size: 68px; line-height: .5; color: var(--rec); margin-bottom: 14px; }
.citace-in figcaption { margin-top: 24px; }



.pk-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.pgal-item.hraje .pk-video { opacity: 1; }

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

/* ==========================================================================
   RESPONSIVE VRSTVA
   1100px = uzky laptop · 900px = tablet · 760px = telefon · 400px = maly telefon
   + zvlast telefon na sirku (nizky viewport) a dotykova zarizeni
   ========================================================================== */

/* --- tablet a uzky laptop: hero-copy uz koliduje s videem, galerie na 2 sloupce --- */
@media (max-width: 1100px) {
  .site-nav { gap: 22px; padding: 9px 18px; }
  .nav-links { gap: 16px; }
  .hero-video { width: 58vw; margin: -16.3vw 0 0 -29vw; top: 54%; }
  .hero-copy { right: auto; left: 6vw; top: 13vh; width: min(58vw, 400px); }
  .hero-osd { right: 6vw; }
  .pgalerie > .pgal-item { grid-column: span 6; }
  .pilire { gap: 3vw; }
  .pilire-vizual { --kruh-d: clamp(180px, 26vw, 260px); }
  .pilire-p { font-size: 17px; }
  .sc-znak { right: 0; }
  .sc-znak.vlevo { left: 0; }
}

/* --- tablet: radek odkazu se uz do listy nevejde (zalamoval se pres REC odznak),
       tri kruhy vedle textu take nemaji sirku --- */
@media (max-width: 900px) {
  .site-nav {
    top: 0; left: 0; right: 0; translate: none;
    border-radius: 0; padding: 12px 6vw; gap: 12px;
    justify-content: space-between;
    background: rgba(251, 251, 250, .72);
  }
  .nav-name { display: block; font-size: 11px; letter-spacing: .2em; }
  .nav-links { display: none; }
  .nav-menu { display: flex; font-size: 11px; }
  .rec-badge { top: 62px; }
  /* scroll-zoom hero videa je desktopova vec — na dotyku je video rovnou hratelne
     a scroll pokracuje na dalsi sekci, takze overlay k te animaci nema co delat */
  .zoom-overlay { display: none; }
  .hero-play { opacity: 1; }
  .pilire { grid-template-columns: 1fr; gap: 4vh; padding: 12vh 6vw; min-height: 0; }
  .pilire-vizual { --kruh-d: clamp(170px, 30vw, 250px); height: 46vh; order: -1; }
  .pilire-text { max-width: 620px; }
  .citace-in blockquote { font-size: clamp(22px, 3.4vw, 34px); }
}

/* --- telefon --- */
@media (max-width: 760px) {
  /* jeden token na svisly rytmus: kazda sekce ma nad i pod sebou stejnou mezeru */
  :root { --sekce-y: 72px; }

  /* REC odznak dolu k playheadu — nahore uz nema misto a prekryval by hero;
     u paticky se schova (trida .schovana), at neleze pres copyright */
  .rec-badge { top: auto; bottom: 24px; left: 6vw; right: auto; font-size: 10px; opacity: .65; transition: opacity .35s ease; }
  /* !important: intro timeline necha na .rec-badge inline opacity:1 (autoAlpha),
     ktera by tuhle tridu jinak prebila a odznak by lezel pres copyright */
  .rec-badge.schovana { opacity: 0 !important; }
  .mini-cta { right: 6vw; bottom: 18px; padding: 11px 16px; font-size: 10px; }

  /* hero: svh, protoze 100vh skace pri schovani adresniho radku */
  #hero { min-height: 100svh; }
  .hero-stage { height: 100svh; min-height: 520px; }
  .hero-video { width: 88vw; top: 50%; margin: -24.75vw 0 0 -44vw; border-radius: 10px; }
  .hero-video-tag { left: 11px; bottom: 10px; font-size: 10px; }
  .hero-play { width: 84px; height: 84px; }
  .hero-copy { top: 13vh; left: 6vw; right: 6vw; width: auto; }
  .hero-serif { font-size: clamp(23px, 7vw, 30px); }
  .hero-bio { margin-top: 14px; font-size: 10.5px; line-height: 1.8; }
  /* 16.5vw drzi "Sebastian" uvnitr 92vw i na 360px displeji;
     bottom 8vh uvolnuje spodni levy roh REC odznaku */
  .hero-title { bottom: 8vh; left: 6vw; }
  .ht-roll span { font-size: 16.5vw; }

  /* galerie: jeden sloupec, mono popisek se radeji zalomi nez orizne;
     texty o stupen mensi, jinak dlazdici prebiji */
  .pgalerie { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pgalerie > .pgal-item, .pgal-item { grid-column: auto; }
  .pgal-meta { gap: 14px; margin-top: 9px; }
  .pgal-plus { width: 34px; height: 34px; }
  /* 8.5px byl pod hranici citelnosti, zvlast v kapitalkach s prostrkanim */
  .pgal-meta .mono-label { font-size: 9.5px; letter-spacing: .1em; }
  .pgal-titul { font-size: 15px; }
  .pgalerie .pgal-item.otevreny { padding: 10px 10px 16px; }
  .pgal-detail { padding: 16px 2px 0; }
  .pgal-detail .ec-lead { font-size: 15px; }
  .pgal-detail-titul { font-size: 21px; }
  .dlg-exif div { gap: 12px; }
  .dlg-exif .mono-label { font-size: 9px; letter-spacing: .09em; }
  .pk-wave { margin-top: 4vh; }

  .marquee { --ml-mezera: 12vw; --logo-h: 24px; margin-top: var(--sekce-y); padding: 26px 0; }

  .rohy { padding: 22px 20px; }
  .rohy::before, .rohy::after { width: 18px; height: 18px; }
  .citace-in blockquote { font-size: 22px; line-height: 1.4; }
  .citace-in blockquote::before { font-size: 52px; }

  .fr-tag { float: none; display: block; margin-top: 4px; }
  .section-title { font-size: clamp(30px, 8.5vw, 42px); }

  /* jednotny rytmus: kazda sekce zacina --sekce-y pod predchozi a stejne konci */
  .section-head { padding: var(--sekce-y) 6vw 24px; }
  #projekty { padding: 0 0 var(--sekce-y); }
  #citace { padding: var(--sekce-y) 6vw; }
  /* cela sekce vys: nad kruhy bylo vic vzduchu nez pod textem */
  .pilire { padding: 80px 6vw var(--sekce-y); gap: 2vh; align-content: start; }
  .pilire-vizual { height: 40vh; }
  .pilire-p { margin-top: 16px; }
  .pilire-cta { margin-top: 20px; }
  #cena { min-height: 0; padding: 0 0 var(--sekce-y); }
  #faq { padding: 0 6vw var(--sekce-y); }
  #kontakt { padding: var(--sekce-y) 6vw calc(var(--sekce-y) * 1.3); }

  .cena-figure { margin-top: 26px; gap: 12px; }
  .cena-cislo { font-size: clamp(32px, 9.5vw, 46px); }
  .cena-jednotka { font-size: 10px; }
  #cena .cena-text { font-size: 17px; line-height: 1.55; }

  .faq-item summary { gap: 16px; padding: 20px 0; font-size: 19px; }
  .faq-item p { font-size: 15.5px; padding-bottom: 22px; }

  .kontakt-cta { font-size: clamp(42px, 15vw, 68px); margin: 3vh 0 2vh; }
  .kontakt-socialy { gap: 14px; }
  .kontakt-ig { font-size: 10px; }

  /* paticka: tri radky pod sebou, mensi a vycentrovane jako zbytek kontaktni casti */
  .site-footer {
    flex-direction: column; align-items: center; text-align: center;
    gap: 10px; padding: 24px 6vw 36px;
  }
  .site-footer .mono-label { font-size: 9px; letter-spacing: .12em; }

  /* vodoznak SC.xx nesmi tlacit dokument do sirky */
  .sc-znak { right: 0; font-size: clamp(80px, 26vw, 130px); }
  .sc-znak.vlevo { left: 0; }
  #projekty, #sluzby, #cena, #faq, #kontakt { scroll-margin-top: 76px; }
  main section { min-height: 0; }

  /* intro okno na sirku, at navazuje na hero misto uzkeho prouzku */
  .intro-okno { clip-path: inset(36% 8% 36% 8% round 12px); }
  .intro-name { font-size: 24px; }
}

/* --- maly telefon (SE, mini) --- */
@media (max-width: 400px) {
  .nav-name { font-size: 10px; letter-spacing: .16em; }
  .hero-bio { font-size: 10px; }
  .mono-label { letter-spacing: .14em; }
  .cena-cislo { font-size: 30px; }
}

/* --- nizky viewport (telefon na sirku): kamerove OSD nema kam a hero se musi
       rozlozit do sloupce, protoze 100svh je tu jen par set pixelu --- */
@media (max-height: 560px) and (orientation: landscape) {
  .osd-dole, .osd-bok, .vf-frame, .hero-osd, .filmpas { display: none; }
  #hero { min-height: 0; }
  .hero-stage { height: auto; min-height: 0; padding: 96px 0 8vh; }
  .hero-video { position: relative; left: auto; top: auto; margin: 0 auto; width: min(52vw, 460px); }
  .hero-copy { position: static; margin: 26px 6vw 0; width: auto; max-width: 640px; }
  .hero-title { position: static; margin: 18px 0 0 6vw; }
  .ht-roll span { font-size: 11vw; }
  .zoom-overlay { padding: 0 6vw 6vh; }
  .rec-badge { top: 58px; bottom: auto; left: auto; right: 6vw; }
  .mini-cta { bottom: 14px; }
  .pilire { padding: 12vh 6vw 8vh; }
  .pilire-vizual { height: 78vh; --kruh-d: clamp(110px, 34vh, 200px); }
  #cena, #citace { padding-top: 6vh; }
}

/* --- dotyk: play tlacitko nesmi cekat na scroll-animaci a vsechny cile
       potrebuji aspon ~44px na vysku --- */
@media (hover: none) {
  .hero-play { opacity: 1; }
  .zoom-overlay { display: none; }
  .pgal-plus { border-color: rgba(20, 20, 19, .35); }
  .site-nav { padding-top: 0; padding-bottom: 0; }
  .nav-name { padding: 16px 0; }
  .nav-menu { padding: 16px 0; }
  .pilire-cta { padding: 14px 0; }
  .kontakt-ig { display: inline-block; padding: 12px 0; }
  .kontakt-mail { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-play { opacity: 1; }
}
