/* =========================================================
   mdp.graphics — střih & motion grafika
   Úvod: text vlevo, ruka s telefonem vpravo → zoom do displeje.
   Obsah: editorial mřížka, jedna akcentová barva, kondenzované verzállky + mono.
   ========================================================= */
:root {
  --ink: #08090a;
  --ink2: #101112;
  --ink3: #17181a;
  --slab: rgba(16, 17, 18, .9);        /* tmavá destička štítků */
  --paper: #f6f2e9;                     /* teplá bílá */
  --mute: rgba(246, 242, 233, .64);
  --dim: rgba(246, 242, 233, .40);
  --line: rgba(246, 242, 233, .16);
  --line2: rgba(246, 242, 233, .09);
  --accent: #ff3d2e;                    /* červená „REC“ */
  --accent-d: #d92b1e;
  --teal: #b9bdc4; --teal-d: #8a8f97; --orange: #ff3d2e; --amber: #ff6a4d; --mint: #f6f2e9;
  --coat: linear-gradient(100deg, #ff7565 0%, #ff3d2e 46%, #d92b1e 100%);
  --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --label: var(--mono);
  --pad: clamp(18px, 3.4vw, 56px);
  --gap: clamp(12px, 1.2vw, 20px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --over: cubic-bezier(.34, 1.56, .64, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  --wa: 40, 44, 52; --wb: 60, 22, 18; --tone: 0; --plate-sat: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.55; font-weight: 400;
  background: var(--ink); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-kerning: normal;
}
img, video, canvas { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
mark { color: inherit; background: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- typografické prvky ---------- */
.label {
  font-family: var(--label); font-weight: 500; font-size: 11px; line-height: 1.35;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.coat-text { background: var(--coat); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: 9px 16px 10px; border-radius: 3px;
  background: var(--slab); border-left: 4px solid var(--accent); box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  font-weight: 650; font-size: 14px; letter-spacing: -.01em; color: var(--paper); line-height: 1.25;
}

/* ---------- zrno ---------- */
.grain {
  position: absolute; inset: -50%; z-index: 6; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- tlačítka ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 46px; padding: 0 20px; border-radius: 3px; white-space: nowrap;
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  transition: background .25s, color .25s, box-shadow .25s, transform .4s var(--ease);
}
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; transform: translateY(-1px); }
.btn-slab { background: var(--slab); color: var(--paper); border-left: 4px solid var(--accent); box-shadow: 0 12px 34px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); }
.btn-slab:hover { background: rgba(30, 30, 30, .96); }
.btn-line { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .28); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--paper); transform: translateY(-1px); }
.btn-small { height: 36px; padding: 0 14px; font-size: 11px; border-radius: 3px; }

/* ---------- navigace ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px var(--pad);
  opacity: 0; transition: transform .6s var(--ease), opacity .8s .5s;
}
.is-ready .nav { opacity: 1; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: rgba(8, 9, 10, .92); border-bottom: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.solid::before { opacity: 1; }
.nav.hide { transform: translateY(-110%); }
.logo { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: -.02em; color: var(--paper); }
.logo b { font-weight: 600; }
.nav-links { display: flex; gap: 26px; transition: opacity .3s, transform .6s var(--ease); }
.nav-links a { position: relative; padding: 6px 0; font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--mute); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 1px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav.in-zoom .nav-links { opacity: 0; transform: translate3d(0, -8px, 0); pointer-events: none; }

/* =========================================================
   ÚVOD (stage)
   ========================================================= */
.stage { position: relative; height: 320vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; contain: layout paint; }

/* pozadí: rozmazaný záběr + závoje, vinětace */
.bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); overflow: hidden; }
.plate { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; object-fit: cover; will-change: transform; }
.bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 9, 10, .34) 0%, rgba(8, 9, 10, .1) 42%, rgba(8, 9, 10, .55) 100%); }
/* levý sloupec s textem: tmavý přechod, aby byl nadpis vždy čitelný */
.bg::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(96deg, rgba(8, 9, 10, .92) 0%, rgba(8, 9, 10, .78) 30%, rgba(8, 9, 10, .28) 48%, rgba(8, 9, 10, 0) 62%); }
.wash { position: absolute; z-index: 2; border-radius: 50%; will-change: transform; pointer-events: none; }
.wash-a { left: -22%; top: -34%; width: 92%; height: 124%; background: radial-gradient(closest-side, rgba(var(--wa), .95), rgba(var(--wa), 0)); opacity: .3; }
.wash-b { right: -28%; bottom: -44%; width: 96%; height: 132%; background: radial-gradient(closest-side, rgba(var(--wb), .95), rgba(var(--wb), 0)); opacity: .3; }
.tone { position: absolute; inset: 0; z-index: 3; background: linear-gradient(118deg, rgba(20, 150, 140, 1) 0%, rgba(20, 150, 140, 0) 46%, rgba(255, 140, 60, 0) 58%, rgba(255, 140, 60, 1) 100%); mix-blend-mode: soft-light; opacity: var(--tone); }
.vignette { position: absolute; inset: 0; z-index: 4; background: radial-gradient(ellipse 78% 78% at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .55) 100%); }

.intro-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }

/* ---------- úvodní text (vlevo, hned čitelný) ---------- */
.hero {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(45vw, 660px); pointer-events: auto;
}
.hero > * { animation: introUp 1s var(--ease) both; }
.hero-kicker { animation-delay: .05s; }
.hero-title { animation-delay: .1s; }
.hero-sub { animation-delay: .18s; }
.hero-nums { animation-delay: .26s; }
.hero-actions { animation-delay: .34s; }
@keyframes introUp { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

.hero-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 61, 46, .18); flex: none; }
.hero-title {
  margin-top: clamp(16px, 2vw, 26px);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(46px, 7.1vw, 102px); line-height: .85; letter-spacing: .008em;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: clamp(14px, 1.6vw, 22px); max-width: 42ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(246, 242, 233, .82); }
.hero-nums { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: clamp(20px, 2.4vw, 34px); list-style: none; }
.hero-nums li { padding-top: 9px; border-top: 1px solid var(--line); min-width: 96px; }
.hero-nums b { display: block; font-family: var(--display); font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hero-nums small { font-size: .52em; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.hero-nums span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--mute); max-width: 22ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2.4vw, 32px); }

.scroll-hint { position: absolute; right: var(--pad); bottom: clamp(22px, 5vh, 46px); z-index: 8; display: flex; align-items: center; gap: 12px; animation: introUp 1s var(--ease) both .5s; }
.scroll-hint i { position: relative; width: 2px; height: 46px; border-radius: 1px; background: var(--line); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--orange); animation: drip 1.8s var(--io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- ruka a telefon ---------- */
.hand, .hand-front, .player-hand, .player-front {
  position: absolute; left: 0; top: 0; width: 1723px; height: 2355px;
  transform-origin: 0 0; will-change: transform; pointer-events: none; user-select: none; -webkit-user-select: none;
}
.hand, .hand-front { transform: translate3d(-9999px, 0, 0); }

.hand-light {
  --glow: 200, 220, 255; --lx: 21%; --ly: 24%;
  position: absolute; left: 0; top: 0; width: 1723px; height: 2355px; transform-origin: 0 0; transform: translate3d(-9999px, 0, 0);
  pointer-events: none; will-change: transform, opacity; opacity: 0; mix-blend-mode: screen;
  -webkit-mask: url(../assets/img/hand-skin.webp) 0 0 / 100% 100% no-repeat; mask: url(../assets/img/hand-skin.webp) 0 0 / 100% 100% no-repeat;
  background: radial-gradient(ellipse 30% 26% at var(--lx) var(--ly), rgba(var(--glow), .9) 0%, rgba(var(--glow), .42) 38%, rgba(var(--glow), 0) 100%);
}

.device {
  --r: 38px; --f: 4px;
  position: absolute; left: 0; top: 0; width: 260px; height: 550px;
  transform-origin: 0 0; transform: translate3d(-9999px, 0, 0); will-change: transform; backface-visibility: hidden;
  border-radius: var(--r);
  background: linear-gradient(90deg, #121316 0%, #5b5f66 1.4%, #2c2e33 3.2%, #141518 8%, #141518 92%, #2c2e33 96.8%, #62666d 98.6%, #121316 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .28), inset 0 -1.5px 0 rgba(0, 0, 0, .7), 0 22px 50px rgba(0, 0, 0, .38);
}
.device::before { content: ""; position: absolute; inset: var(--f); border-radius: calc(var(--r) - var(--f)); background: #020303; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.dev-btn { position: absolute; width: 1.3%; border-radius: 2px; background: linear-gradient(90deg, #4a4d53, #1b1c1f); }
.dev-btn.b1 { left: -.9%; top: 16.5%; height: 4.2%; }
.dev-btn.b2 { left: -.9%; top: 23.5%; height: 7.8%; }
.dev-btn.b3 { left: -.9%; top: 32.8%; height: 7.8%; }
.dev-btn.b4 { right: -.9%; top: 27%; height: 11.5%; background: linear-gradient(270deg, #4a4d53, #1b1c1f); }

.screen {
  position: absolute; left: 0; top: 0; width: 240px; height: 520px;
  transform-origin: 0 0; transform: translate3d(-9999px, 0, 0); overflow: hidden; container-type: size;
  will-change: transform; backface-visibility: hidden; outline: 1px solid transparent;
}
.screen-inner { position: absolute; inset: 0; background: var(--ink2); opacity: 0; transition: opacity 1.1s var(--ease); }
.screen-inner.on { opacity: 1; }
.screen-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); opacity: .25; }
.screen-video { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fe, 0%), #000 calc(100% - var(--fe, 0%)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fe, 0%), #000 calc(100% - var(--fe, 0%)), transparent 100%); }
.screen-shade {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .66) 26%, rgba(8, 9, 10, .12) 40%, rgba(8, 9, 10, 0) 43%, rgba(8, 9, 10, 0) 57%, rgba(8, 9, 10, .12) 60%, rgba(8, 9, 10, .66) 74%, rgba(8, 9, 10, .94) 100%),
    linear-gradient(0deg, rgba(8, 9, 10, .74) 0%, rgba(8, 9, 10, 0) 35%),
    linear-gradient(180deg, rgba(8, 9, 10, .6) 0, rgba(8, 9, 10, 0) 14%);
}
.screen-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .03) 28%, rgba(255, 255, 255, 0) 42%); }

/* UI Instagramu na displeji (měřítko podle šířky displeje) */
.ig { position: absolute; inset: 0; color: #fff; font-size: 3.6cqw; line-height: 1.3; text-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .35); pointer-events: none; font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; }
.ig svg { display: block; }
.ig-status { position: absolute; top: 4.6cqw; left: 10cqw; right: 7cqw; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 4.6cqw; letter-spacing: -.02em; }
.ig-sys { display: flex; gap: 1.6cqw; align-items: center; }
.ig-sys svg { height: 3.4cqw; width: auto; fill: currentColor; }
.ig-island, .player-island { position: absolute; top: 3.2cqw; left: 50%; width: 31cqw; height: 9.2cqw; margin-left: -15.5cqw; border-radius: 99px; background: #000; }
.ig-head { position: absolute; top: 17cqw; left: 5.5cqw; right: 5.5cqw; display: flex; justify-content: space-between; align-items: center; font-size: 6.6cqw; letter-spacing: -.03em; }
.ig-head svg { width: 7cqw; height: 7cqw; }
.ig-side { position: absolute; right: 4cqw; bottom: 30cqw; display: flex; flex-direction: column; gap: 7cqw; align-items: center; }
.ig-side svg { width: 7.6cqw; height: 7.6cqw; }
.ig-bottom { position: absolute; left: 5.5cqw; right: 18cqw; bottom: 10cqw; }
.ig-user { display: flex; align-items: center; gap: 2.4cqw; font-size: 3.8cqw; }
.ig-avatar { width: 8.4cqw; height: 8.4cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 3.8cqw; background: #1b1d20; color: #d9dde2; box-shadow: 0 0 0 .5cqw rgba(255, 255, 255, .9); text-shadow: none; }
.ig-follow { border: .3cqw solid rgba(255, 255, 255, .7); border-radius: 1.8cqw; padding: .5cqw 2.4cqw; font-size: 3.3cqw; font-weight: 600; }
.ig-cap { margin-top: 2.6cqw; font-size: 3.7cqw; }
.ig-audio { margin-top: 1.6cqw; font-size: 3.3cqw; opacity: .85; }
.ig-home { position: absolute; bottom: 2.4cqw; left: 50%; width: 36cqw; height: 1.4cqw; margin-left: -18cqw; border-radius: 9px; background: rgba(255, 255, 255, .92); }

/* stav po přiblížení: showreel přes celou obrazovku, jen titulek */
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad) clamp(24px, 5vh, 46px);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.caption.on { opacity: 1; }
.caption::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -1; background: linear-gradient(0deg, rgba(6, 7, 8, .78) 0%, rgba(6, 7, 8, 0) 100%); }
.caption .label { color: rgba(246, 242, 233, .62); }
.caption-l b { display: block; margin-top: 7px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; letter-spacing: -.01em; }
.caption-r { display: flex; align-items: center; gap: 12px; }
.cap-line { position: relative; width: 84px; height: 2px; background: rgba(246, 242, 233, .22); overflow: hidden; }
.cap-line::after { content: ""; position: absolute; inset: 0; width: 38%; background: var(--paper); animation: capRun 2.2s var(--io) infinite; }
@keyframes capRun { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* dotyková zařízení: bez efektů, které Safari na iPhonu při zoomu brzdí */
html.lite .grain, html.lite .hand-light { display: none; }
html.lite .screen-video { -webkit-mask-image: none; mask-image: none; }
html.lite .bg::after { opacity: .82; }

/* =========================================================
   OBSAH
   ========================================================= */
.content { position: relative; z-index: 1; background: var(--ink); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.note { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.note a, .sec-d a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(246, 242, 233, .3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.note a:hover, .sec-d a:hover { text-decoration-color: var(--accent); }

[data-reveal] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .6s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* čísla */
.kpis-sec { padding-top: clamp(48px, 6vw, 90px); }
.kpis { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px var(--gap); }
.kpis li { padding-top: 14px; border-top: 1px solid var(--line); }
.kpis b { display: block; font-family: var(--display); font-size: clamp(40px, 4.2vw, 66px); font-weight: 700; line-height: .9; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis small { margin-left: .08em; font-size: .34em; font-weight: 600; letter-spacing: .01em; color: var(--accent); }
.kpis span { display: block; margin-top: 9px; font-size: 13.5px; line-height: 1.35; color: var(--mute); max-width: 24ch; }

/* ---------- vypíchnutá sekce: Automatizace ---------- */
.auto { padding-top: clamp(44px, 5.6vw, 84px); }
.auto-panel {
  position: relative; overflow: hidden; border-radius: 8px;
  padding: clamp(24px, 3.2vw, 54px);
  background:
    radial-gradient(120% 130% at 4% 0%, rgba(255, 61, 46, .15) 0%, rgba(255, 61, 46, 0) 58%),
    linear-gradient(180deg, #131415 0%, #0b0c0d 100%);
  box-shadow: inset 0 0 0 1px var(--line2), 0 40px 90px -50px #000;
}
.auto-top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 56px); align-items: end; }
.auto-head .label { color: var(--accent); }
.auto-title { margin-top: 16px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 88px); line-height: .87; letter-spacing: .008em; text-wrap: balance; }
.auto-title em { font-style: normal; color: var(--accent); }
.auto-lead { color: rgba(246, 242, 233, .8); font-size: clamp(15px, 1.2vw, 18px); max-width: 48ch; }
.auto-facts { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 40px); margin-top: 22px; list-style: none; }
.auto-facts li { padding-top: 10px; border-top: 1px solid var(--line); min-width: 84px; }
.auto-facts b { display: block; font-family: var(--display); font-size: clamp(30px, 2.8vw, 44px); font-weight: 700; line-height: .9; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.auto-facts span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--mute); }

.pipe { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(30px, 3.6vw, 52px); padding-top: 28px; list-style: none; }
.pipe::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: linear-gradient(90deg, rgba(255, 61, 46, .5), rgba(246, 242, 233, .16)); }
.pipe li { position: relative; }
.pipe li::before { content: ""; position: absolute; left: 0; top: -28px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 61, 46, .16); }
.pipe-i { display: block; font-family: var(--mono); font-size: 11.5px; line-height: 1; letter-spacing: .06em; color: var(--accent); }
.pipe b { display: block; margin-top: 6px; font-size: clamp(15px, 1.15vw, 17px); font-weight: 700; letter-spacing: -.02em; }
.pipe-tool { display: inline-block; margin-top: 7px; padding: 3px 7px 4px; border-radius: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--mute); background: rgba(246, 242, 233, .06); box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; }
.pipe p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--mute); max-width: 24ch; }

.auto-out { margin-top: clamp(30px, 3.6vw, 54px); padding-top: 20px; border-top: 1px solid var(--line); }
.auto-out-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.auto-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--line); }
.auto-cta p { font-size: clamp(16px, 1.4vw, 21px); font-weight: 650; letter-spacing: -.025em; max-width: 34ch; }

/* hlavička bloku: číslo | nadpis | popis | odkaz */
.block { padding-top: clamp(64px, 8vw, 120px); }
.sec { display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.5fr) auto; gap: 8px var(--gap); align-items: start; padding-top: 15px; border-top: 1px solid var(--line); margin-bottom: clamp(24px, 2.6vw, 40px); }
.sec-i { font-family: var(--mono); font-size: 12px; line-height: 1.1; letter-spacing: .08em; color: var(--accent); padding-top: 6px; }
.sec h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 50px); letter-spacing: .008em; line-height: .92; }
.sec-d { color: var(--mute); max-width: 58ch; padding-top: 5px; font-size: 15.5px; }
.sec-more { justify-self: end; padding-top: 7px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.sec-more:hover { color: var(--accent); }

/* ---------- případové studie ---------- */
.cases { display: flex; flex-direction: column; gap: clamp(30px, 4.4vw, 72px); }
.case { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 64px); align-items: center; }
.case.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.case.flip .case-media { order: 2; }
.case.flip .case-body { order: 1; }
.case-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: var(--ink2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.case-media img, .case-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-media video { opacity: 0; transition: opacity .4s; }
.case-media video.playing { opacity: 1; }
.case-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .12); transition: box-shadow .25s; }
.case:hover .case-media::after { box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .5); }
.case-play { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 9px; border-radius: 3px; background: rgba(8, 9, 10, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 650; transition: background .25s; pointer-events: none; }
.case:hover .case-play { background: var(--accent); }
.case-play svg { width: 9px; height: 10px; }
.case-kicker { font-family: var(--label); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.case h3 { margin-top: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: .008em; line-height: .9; text-wrap: balance; }
.case-lead { margin-top: 14px; max-width: 46ch; color: rgba(246, 242, 233, .78); }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 22px; border-top: 1px solid var(--line); }
.case-facts div { padding: 11px 0; border-bottom: 1px solid var(--line2); }
.case-facts dt { font-family: var(--label); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.case-facts dd { margin-top: 4px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.case-actions { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- karty videí ---------- */
.reel, .yt-card { display: block; width: 100%; align-self: start; cursor: pointer; }
.reel-media, .yt-thumb { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--ink2); }
.reel-media { aspect-ratio: 9 / 16; }
.yt-thumb { aspect-ratio: 16 / 9; }
.reel-media img, .reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.reel-media video { opacity: 0; transition: opacity .35s; }
.reel-media video.playing { opacity: 1; }
.reel-media::after, .yt-thumb::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .1); transition: box-shadow .25s; }
.reel:hover .reel-media::after, .yt-card:hover .yt-thumb::after { box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .55); }
.yt-card:hover .yt-thumb img { transform: scale(1.03); }
.pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 2px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 12px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pill svg { width: 8px; height: 9px; }
.pill-tl { left: 8px; top: 8px; }
.pill-br { right: 8px; bottom: 8px; }
.card-title { display: block; margin-top: 11px; font-size: 15px; font-weight: 600; line-height: 1.28; letter-spacing: -.012em; text-wrap: balance; }
.yt-card .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); }
.history-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); }

/* dlaždice „celý Instagram“ na konci mřížky */
.reel-more {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  aspect-ratio: 9 / 16; padding: 22px; border-radius: 4px; background: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .25s, background .25s;
}
.reel-more:hover { background: var(--ink3); box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .42); }
.reel-more b { display: block; font-size: clamp(20px, 1.7vw, 27px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.reel-more span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); }
.reel-more em { display: block; font-style: normal; font-family: var(--mono); font-size: 26px; line-height: 1; color: var(--accent); }

/* služby */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px var(--gap); }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.svc-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: var(--ink2); }
.svc-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .1); pointer-events: none; }
.svc-media video { width: 100%; height: 100%; object-fit: cover; }
.svc-body { grid-column: 2 / span 2; padding-top: 12px; border-top: 1px solid var(--line); }
.svc h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
.svc-body > p { margin-top: 9px; color: var(--mute); max-width: 40ch; }
.svc-list { list-style: none; margin-top: 16px; }
.svc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 14px; font-weight: 500; }
.svc-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* třetí služba: AI automatizace přes celou šířku */
.svc-wide { display: block; grid-column: 1 / -1; }
.svc-wide .svc-body { grid-column: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px var(--gap); align-items: start; }
.svc-wide h3 { grid-column: 1; }
.svc-wide .svc-body > p { grid-column: 1; max-width: 44ch; }
.svc-wide .svc-link { grid-column: 1; justify-self: start; margin-top: 4px; }
.svc-list-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); }
.svc-wide .svc-list-3 { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr); margin-top: 2px; }

/* postup: časová osa ze střižny, playhead jede se scrollem (--p 0..1 nastavuje main.js) */
.flow { --p: 0; }
.flow-tl { position: relative; margin: 30px 0 26px; }
.flow-ruler {
  height: 12px; border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(246, 242, 233, .42) 0 1px, transparent 1px 12.5%) left bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(246, 242, 233, .2) 0 1px, transparent 1px 2.083%) left bottom / 100% 5px no-repeat;
}
.flow-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 8px; }
.flow-clip {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 6px; overflow: hidden; white-space: nowrap;
  background: rgba(246, 242, 233, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font-size: 13px; font-weight: 600;
  transition: background .35s, color .35s, box-shadow .35s;
}
.flow-clip b { font-variant-numeric: tabular-nums; opacity: .7; }
.flow-clip.on { background: var(--paper); color: var(--ink); box-shadow: none; }
.flow-audio { position: relative; height: 24px; margin-top: 6px; }
.flow-audio .wv { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.flow-audio .wv i { flex: 1 1 0; height: var(--h); border-radius: 1px; background: rgba(246, 242, 233, .14); }
.flow-audio .wv.played { clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.flow-audio .wv.played i { background: rgba(246, 242, 233, .62); }
.flow-head { position: absolute; top: -2px; bottom: -4px; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.flow-head::before { content: ""; position: absolute; top: -2px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 3px 3px 7px 7px; background: var(--accent); }
.flow-tc {
  position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(calc(var(--p) * -100%));
  padding: 3px 7px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap;
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px var(--gap); }
.steps li { transition: opacity .45s; }
.flow.armed .steps li:not(.on) { opacity: .38; }
.st { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.st > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--accent); }
.steps h3 { margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.steps p { margin-top: 6px; color: var(--mute); max-width: 34ch; }

/* malé animace kroků */
.art { position: relative; height: 138px; padding: 14px; overflow: hidden; border-radius: 4px; background: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-14px); } }

.art-files { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.file { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 30px; padding: 0 10px; overflow: hidden; border-radius: 6px; background: rgba(246, 242, 233, .05); font-size: 12px; }
.file .ic { width: 14px; height: 11px; border-radius: 2px; background: rgba(246, 242, 233, .34); clip-path: polygon(0 0, 70% 0, 70% 30%, 100% 12%, 100% 88%, 70% 70%, 70% 100%, 0 100%); }
.file .ic-img { height: 12px; clip-path: none; border-radius: 3px; background: linear-gradient(135deg, rgba(246, 242, 233, .5), rgba(246, 242, 233, .15)); }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper); }
.file em { font-style: normal; color: var(--dim); font-variant-numeric: tabular-nums; }
.file .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.steps li.on .file { animation: slidein .5s var(--ease) both calc(var(--k) * .18s); }
.steps li.on .file .bar { animation: grow 1s var(--io) both calc(.25s + var(--k) * .18s); }
.flow.armed li:not(.on) .file { opacity: 0; }
.flow.armed li:not(.on) .file .bar { transform: scaleX(0); }

.art-style { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ratios { display: flex; align-items: flex-end; gap: 8px; }
.ratios i { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(246, 242, 233, .3); }
.r916 { width: 42px; height: 75px; box-shadow: inset 0 0 0 2px var(--accent) !important; background: rgba(255, 61, 46, .14); }
.r11 { width: 50px; height: 50px; }
.r169 { width: 68px; height: 38px; }
.type { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.aa { font-size: 46px; line-height: .9; font-weight: 850; letter-spacing: -.04em; }
.sw { display: flex; gap: 6px; }
.sw i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .28); }
@keyframes sel { from { box-shadow: inset 0 0 0 1.5px rgba(246, 242, 233, .3); background: transparent; } }
@keyframes wt { from { font-weight: 300; } }
.steps li.on .ratios i { animation: pop .45s var(--over) both calc(var(--k) * .1s); }
.steps li.on .r916 { animation: pop .45s var(--over) both, sel .4s var(--ease) both 1s; }
.steps li.on .aa { animation: wt 1.3s var(--io) both .35s; }
.steps li.on .sw i { animation: pop .4s var(--over) both calc(.5s + var(--k) * .08s); }
.flow.armed li:not(.on) .ratios i, .flow.armed li:not(.on) .sw i { opacity: 0; }
.flow.armed li:not(.on) .aa { font-weight: 300; }

.art-edit { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.trk { position: relative; height: 15px; }
.trk i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 3px; transform-origin: 0 50%; }
.trk.g i { background: var(--accent); }
.trk.v i { background: rgba(246, 242, 233, .58); }
.trk.a i { background: repeating-linear-gradient(90deg, rgba(246, 242, 233, .3) 0 2px, transparent 2px 4px); }
.cap { position: absolute; top: 16px; left: 16px; padding: 4px 9px 5px; border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: -.01em; transform: rotate(-3deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.sweep { position: absolute; top: 58px; bottom: 10px; left: 14px; width: 2px; background: var(--paper); opacity: 0; }
@keyframes capIn { from { opacity: 0; transform: rotate(-9deg) scale(.6); } }
@keyframes sweep { 0% { left: 14px; opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { left: calc(100% - 16px); opacity: 0; } }
.steps li.on .trk i { animation: grow .55s var(--ease) both calc(var(--k) * .12s); }
.steps li.on .cap { animation: capIn .5s var(--over) both .85s; }
.steps li.on .sweep { animation: sweep 2.8s linear 1.2s infinite; }
.flow.armed li:not(.on) .trk i { transform: scaleX(0); }
.flow.armed li:not(.on) .cap { opacity: 0; }

.art-export { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.exp-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.exp-top b { color: var(--paper); font-variant-numeric: tabular-nums; }
.exp-bar { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(246, 242, 233, .1); }
.exp-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats span { padding: 4px 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.formats .ok { background: var(--paper); color: var(--ink); box-shadow: none; }
.steps li.on .exp-bar i { animation: grow 1.6s var(--io) both .2s; }
.steps li.on .formats span { animation: pop .4s var(--over) both calc(1.7s + var(--k) * .08s); }
.flow.armed li:not(.on) .exp-bar i { transform: scaleX(0); }
.flow.armed li:not(.on) .formats span { opacity: 0; }

/* kontakt */
.contact { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(56px, 7vw, 110px); padding: clamp(90px, 10vw, 150px) 0 clamp(90px, 11vw, 160px); }
.contact-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.contact-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink) 0%, rgba(8, 9, 10, .6) 32%, rgba(8, 9, 10, .55) 70%, rgba(8, 9, 10, .92) 100%); }
.contact-kicker { margin-bottom: 18px; }
.contact-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); letter-spacing: .008em; line-height: .87; max-width: 15ch; text-wrap: balance; }
.contact-title::first-line { color: var(--paper); }
.contact-lead { margin-top: 20px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(246, 242, 233, .78); max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact-actions .btn-line { background: rgba(8, 9, 10, .35); }
/* e-mail nemá smysl verzálkovat */
.contact-actions [data-email] { text-transform: none; letter-spacing: .01em; font-size: 12.5px; }

.foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot a:hover { color: var(--paper); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 12px 18px 13px; border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transition: transform .6s var(--ease), visibility 0s .6s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- YouTube přehrávač ---------- */
.ytp { position: fixed; inset: 0; z-index: 105; display: grid; place-items: center; }
.ytp[hidden] { display: none; }
.ytp-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 8, .93); opacity: 0; transition: opacity .45s var(--ease); }
.ytp.open .ytp-backdrop { opacity: 1; }
.ytp-frame { position: relative; width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); transition: transform .7s var(--ease), opacity .4s; }
.ytp.open .ytp-frame { opacity: 1; transform: none; }
.ytp-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ytp-close { top: 22px; right: 22px; }

/* =========================================================
   Přehrávač
   ========================================================= */
.player { position: fixed; inset: 0; z-index: 100; }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 10, .86); backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2); opacity: 0; transition: opacity .6s var(--ease); }
.player.open .player-backdrop { opacity: 1; }
.player-rig { position: absolute; inset: 0; pointer-events: none; transform: translate3d(0, 85vh, 0) rotate(4deg); transform-origin: 70% 100%; transition: transform 1s var(--ease); }
.player.open .player-rig { transform: none; }
.player.closing .player-rig { transition: transform .5s cubic-bezier(.7, 0, .84, 0); }
.player.closing .player-ui { transition: opacity .15s; }
.player.closing .player-backdrop { transition: opacity .4s cubic-bezier(.4, 0, 1, 1) .12s; }
.player-screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; container-type: size; pointer-events: auto; cursor: pointer; backface-visibility: hidden; outline: 1px solid transparent; }
.player-video { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .45s var(--ease); }
.player-screen.swapping .player-video { opacity: 0; transform: scale(.94); }
.player-paused { position: absolute; left: 50%; top: 50%; width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw; border-radius: 4cqw; display: grid; place-items: center; background: var(--slab); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--over); pointer-events: none; color: var(--paper); }
.player-paused svg { width: 42%; height: 42%; margin-left: 6%; }
.player-screen.paused .player-paused { opacity: 1; transform: none; }
.player-mute { position: absolute; top: 15cqw; right: 5cqw; width: 11cqw; height: 11cqw; border-radius: 3cqw; display: grid; place-items: center; background: var(--slab); color: #fff; }
.player-mute svg { width: 55%; height: 55%; }
.player-mute .i-off, .player.muted .player-mute .i-on { display: none; }
.player.muted .player-mute .i-off { display: block; }
.player-meta { position: absolute; left: 5.5cqw; right: 5.5cqw; bottom: 7cqw; color: #fff; pointer-events: none; }
.player-meta > * { transition: opacity .2s, transform .5s var(--ease); }
.player-screen.swapping .player-meta > * { opacity: 0; transform: translate3d(0, 3cqw, 0); }
.player-meta::before { content: ""; position: absolute; left: -6cqw; right: -6cqw; bottom: -7cqw; height: 64cqw; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .66), transparent); }
.player-tag { display: block; font-family: var(--label); font-weight: 600; font-size: 3.2cqw; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.player-title { display: block; font-size: 6.4cqw; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin-top: 1cqw; }
.player-stats { display: flex; gap: 3.5cqw; margin-top: 1.6cqw; font-size: 3.4cqw; font-weight: 650; font-variant-numeric: tabular-nums; }
.player-stats span { display: inline-flex; align-items: center; gap: 1.2cqw; }
.player-stats svg { width: 3.6cqw; height: 3.6cqw; color: var(--amber); }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: rgba(255, 255, 255, .22); }
.player-bar i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.player-front { z-index: 2; }

.player-ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s .25s; }
.player.open .player-ui { opacity: 1; }
.pbtn { position: absolute; pointer-events: auto; width: 54px; height: 54px; border-radius: 6px; display: grid; place-items: center; background: var(--slab); box-shadow: inset 0 0 0 1px var(--line), 0 12px 34px rgba(0, 0, 0, .4); transition: background .3s, color .3s, transform .5s var(--ease); }
.pbtn:hover { background: var(--paper); color: var(--ink); }
.pbtn svg { width: 22px; height: 22px; }
.player-close { top: 22px; right: 22px; }
.player-prev, .player-next { right: var(--pad); top: 50%; }
.player-prev { margin-top: -62px; }
.player-next { margin-top: 8px; }
.player-prev svg, .player-next svg { transform: rotate(90deg); }
.player-count { position: absolute; left: var(--pad); bottom: 30px; color: var(--mute); }
.player-count b { color: var(--paper); font-weight: 600; }
.player-ig { position: absolute; left: var(--pad); bottom: 62px; pointer-events: auto; font-size: 14px; transition: background .3s; }
.player-ig:hover { background: rgba(24, 16, 15, .96); }
.player-ig[hidden] { display: none; }
.player-keys { position: absolute; right: var(--pad); bottom: 30px; font-size: 10.5px; color: var(--mute); }

.player.full .player-hand, .player.full .player-front, .player.full .player-device, .player.full .player-keys, .player.full .player-prev, .player.full .player-next, .player.full .player-island { display: none; }
.player.full .player-screen { border-radius: 0; }
.player.full .player-video { object-fit: contain; object-position: 50% 100%; }
.player.full .player-ig { height: 46px; padding-block: 0; }
.player.full .player-close { top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; }
.player.full .player-count { left: auto; bottom: auto; top: max(14px, env(safe-area-inset-top)); line-height: 46px; right: 74px; color: #fff; }
.player.full .player-mute { top: auto; bottom: 34cqw; }
.player.full .player-ig { left: 14px; bottom: auto; top: max(14px, env(safe-area-inset-top)); font-size: 13px; }

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1280px) {
  .sec { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .hero { width: min(48vw, 520px); }
  .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-body { grid-column: 2 / span 3; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .hero { position: static; transform: none; width: auto; padding: calc(72px + env(safe-area-inset-top)) var(--pad) 0; }
  .scroll-hint { display: none; }
  .bg::after { background: linear-gradient(180deg, rgba(8, 9, 10, .95) 0%, rgba(8, 9, 10, .72) 34%, rgba(8, 9, 10, .2) 55%, rgba(8, 9, 10, .06) 100%); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 10px; }
  .sec-d { grid-column: 2 / -1; grid-row: 2; }
  .sec-more { grid-column: 3; grid-row: 1; }
  .case { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .case.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }

  .auto-panel { border-radius: 18px; }
  .auto-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 26px; padding-top: 0; padding-left: 22px; }
  .pipe::before { top: 7px; bottom: 8px; left: 4px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(255, 61, 46, .55), rgba(246, 242, 233, .14)); }
  .pipe li { padding-bottom: 18px; }
  .pipe li:last-child { padding-bottom: 0; }
  .pipe li::before { top: 5px; left: -22px; }
  .pipe p { max-width: none; }
  .auto-out { margin-top: 26px; }
  .auto-cta .btn { width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero-kicker { font-size: 10.5px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 46px); margin-top: 12px; }
  .hero-sub { margin-top: 12px; font-size: 15px; max-width: 34ch; }
  .hero-nums { display: none; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .caption { padding-bottom: 26px; }
  .caption-l b { font-size: 14px; }
  .cap-line { width: 46px; }

  .kpis { row-gap: 16px; }
  .kpis b { font-size: 34px; }
  .kpis span { font-size: 13px; }
  .block { padding-top: 58px; }
  .sec { grid-template-columns: minmax(0, 1fr) auto; }
  .sec-i { grid-column: 1; grid-row: 1; padding-top: 0; font-size: 17px; }
  .sec h2 { grid-column: 1; grid-row: 2; }
  .sec-d { grid-column: 1 / -1; grid-row: 3; }
  .sec-more { grid-column: 2; grid-row: 1; }

  .case, .case.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-media, .case.flip .case-media { order: 0; max-width: 300px; margin-inline: auto; }
  .case-body, .case.flip .case-body { order: 1; }
  .case h3 { font-size: 26px; }
  .case-facts { grid-template-columns: 1fr 1fr; }

  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 14.5px; }
  .yt-grid { grid-template-columns: 1fr; row-gap: 14px; }
  .yt-card { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); column-gap: 12px; align-content: start; }
  .yt-thumb { grid-row: span 2; }
  .yt-card .card-title { margin-top: 0; font-size: 14px; -webkit-line-clamp: 3; }
  .svc { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .svc-body { grid-column: 2; }
  .svc-list li { font-size: 13.5px; padding: 6px 0; }
  .flow-clip { padding: 0 8px; justify-content: center; }
  .flow-clip span { display: none; }
  .svc-list-3 { grid-template-columns: minmax(0, 1fr); }
  .svc-wide .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-wide .svc-list-3 { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .contact { padding: 84px 0 76px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint i::after, .cap-line::after { animation: none !important; }
  .hero > *, .scroll-hint { animation: none !important; }
  [data-reveal], .player-rig { transition-duration: .01s !important; transition-delay: 0s !important; }
  .flow *, .flow *::before { animation: none !important; }
}
