/* ══════════════════════════════════════════
   FREEMASON.CZ — HP v3 „Konstrukce obrazu"
   Jen pro body.fm-v3; hlavička a patička zůstávají ze styles.css.
   Třída .fx (nastavuje <head>, když jsou animace povolené) přidává výšku
   sticky scénám. Bez ní je vše běžný statický dokument.
   ══════════════════════════════════════════ */

@font-face {
  font-family: 'Montserrat FM';
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat FM';
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.fm-v3 {
  --fd: 'Montserrat FM', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ink: #0a0a0a;
  --paper: #F0EDE8;
  --gut: clamp(20px, 4vw, 64px);
  --x-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--ink);
}
html.fx { scroll-behavior: auto; }
.x { background: var(--ink); color: var(--text); }
.x section[id] { scroll-margin-top: 0; }
.x img { display: block; max-width: 100%; }
.x picture { display: contents; }
.x-wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ── Typografický systém ── */
.x h1, .x h2, .x h3 { font-family: var(--fd); }
.x-eye {
  font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px; display: block;
}
.x-h2 {
  font-size: clamp(36px, 5.2vw, 88px); font-weight: 600; letter-spacing: -.045em; line-height: .98; margin: 0;
  font-family: var(--fd); color: #fff;
}
.x-h2--xl { font-size: clamp(40px, 6.6vw, 118px); }
.x-h2 em, .x-router-h em, .b-title em { font-style: normal; color: var(--accent); }
.x-sub { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(240,237,232,.72); max-width: 46ch; margin: 0; }
.x-note { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 22px 0 0; }
.x-line { will-change: transform; }
.x-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }

.x-btn {
  display: inline-flex; align-items: center; gap: 16px; padding: 16px 24px; border: 1px solid rgba(255,255,255,.34); color: #fff;
  font-family: var(--fd); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none; position: relative; overflow: hidden;
  transition: color .45s var(--x-ease), border-color .45s var(--x-ease); isolation: isolate;
}
.x-btn::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .55s var(--x-ease); z-index: -1; }
.x-btn:hover { color: #0a0a0a; border-color: var(--accent); }
.x-btn:hover::before { transform: none; }
.x-arrow { width: 20px; height: 20px; flex: none; transition: transform .5s var(--x-ease); }
a:hover > .x-arrow, .x-btn:hover .x-arrow { transform: translateX(5px); }
.x-link {
  display: inline-block; font-family: var(--fd); font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; padding-bottom: 5px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; transition: background-size .55s var(--x-ease), color .3s;
}
.x-link:hover { color: var(--accent); background-size: 34% 1px; }

/* Ořezové značky — motiv hledáčku */
.x-crop { position: absolute; inset: clamp(14px, 2.2vw, 34px); pointer-events: none; z-index: 3; }
.x-crop i { position: absolute; width: clamp(16px, 2vw, 30px); height: clamp(16px, 2vw, 30px); border: 0 solid rgba(255,255,255,.72); }
.x-crop i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.x-crop i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.x-crop i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.x-crop i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

/* ═══════════ 01 HERO ═══════════ */
.x-hero-wrap { position: relative; background: var(--ink); }
.fx .x-hero-wrap { height: 175vh; }
.x-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.fx .x-hero { position: sticky; top: 0; }
.x-hero-media { position: absolute; inset: 0; background: #000; }
.x-slide { position: absolute; inset: 0; margin: 0; opacity: 0; overflow: hidden; }
.x-slide.is-on { opacity: 1; }
.x-slide.is-top { z-index: 2; }
.x-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 45%; }
.x-hero-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,8,8,.55) 0, rgba(8,8,8,0) 20%),
    linear-gradient(0deg, rgba(8,8,8,.92) 0, rgba(8,8,8,.62) 30%, rgba(8,8,8,0) 62%),
    linear-gradient(90deg, rgba(8,8,8,.58) 0, rgba(8,8,8,0) 58%),
    linear-gradient(270deg, rgba(8,8,8,.62) 0, rgba(8,8,8,0) 36%);
}
.x-hero-media > .x-crop { top: 78px; }
/* Spodek nechává místo cookie liště, která při první návštěvě překrývá 70 px */
.x-hero-copy {
  position: absolute; z-index: 4; left: var(--gut); bottom: clamp(30px, 10.5vh, 104px); width: min(68vw, 1080px);
}
.x-h1 { margin: 0; font-weight: 600; color: #fff; }
.x-h1-kick { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.x-h1-claim { display: block; font-size: clamp(34px, min(5.3vw, 9vh), 92px); letter-spacing: -.045em; line-height: .99; }
.x-hero-leads { display: grid; margin-top: 24px; max-width: 54ch; }
.x-hero-lead { grid-area: 1 / 1; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.55; color: rgba(255,255,255,.82); opacity: 0; transition: opacity .3s; }
.x-hero-lead.is-on { opacity: 1; }
.x-hero-foot { display: flex; align-items: center; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.x-hero-seo { margin: 0; font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .01em; }

.x-hero-side { position: absolute; z-index: 4; right: var(--gut); bottom: clamp(30px, 10.5vh, 104px); width: clamp(230px, 20vw, 320px); }
.x-hero-nav { display: flex; flex-direction: column; }
.x-hn { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 13px 0; color: rgba(255,255,255,.56); text-decoration: none; font-family: var(--fd); border-top: 1px solid rgba(255,255,255,.18); transition: color .35s, padding-left .55s var(--x-ease); }
.x-hn:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.x-hn-n { font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.x-hn-t { font-size: clamp(14px, 1.15vw, 18px); font-weight: 600; letter-spacing: -.015em; }
.x-hn.is-on, .x-hn:hover, .x-hn:focus-visible { color: #fff; padding-left: 8px; }
.x-hn.is-on .x-hn-n { color: var(--accent); }
.x-hn-bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 0; }
.x-hero-ctrl { display: flex; gap: 6px; margin-top: 16px; }
.x-hero-ctrl button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid rgba(255,255,255,.26); color: #fff; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.x-hero-ctrl button:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.x-hero-ctrl svg { width: 18px; height: 18px; }
.x-hero-ctrl .i-play { display: none; }
.x-hero-ctrl .is-paused .i-play { display: block; }
.x-hero-ctrl .is-paused .i-pause { display: none; }

/* ═══════════ 02 OBRAZ SE STAVÍ ═══════════ */
.x-build { position: relative; background: #050505; }
.fx .x-build { height: 520vh; }
.x-build-stage { position: relative; overflow: hidden; }
.fx .x-build-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.b-grid {
  position: absolute; inset: 0; opacity: .8;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
}
.b-persp { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; }
.b-stack {
  position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform;
  -webkit-mask-image: radial-gradient(circle at 92% 7%, #000 calc(var(--r, 150%) * .6), transparent var(--r, 150%));
          mask-image: radial-gradient(circle at 92% 7%, #000 calc(var(--r, 150%) * .6), transparent var(--r, 150%));
}
.b-l { position: absolute; inset: 0; will-change: transform; }
.b-l img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
/* Stejný snímek třikrát: pozadí, postava, popředí. Na konci scény leží přesně na sobě. */
.b-l2 { -webkit-mask-image: radial-gradient(ellipse 21% 78% at 53% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 21% 78% at 53% 50%, #000 70%, transparent 100%); }
.b-l3 { -webkit-mask-image: radial-gradient(ellipse 13% 42% at 86% 66%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 13% 42% at 86% 66%, #000 68%, transparent 100%); }
.b-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,5,.84) 0, rgba(5,5,5,.3) 42%, rgba(5,5,5,0) 66%), linear-gradient(0deg, rgba(5,5,5,.6) 0, rgba(5,5,5,0) 40%); }
.b-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.b-lines path, .b-lines circle { stroke: rgba(255,255,255,.34); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-lines .is-y { stroke: var(--accent); }
.b-lines .is-d { stroke-dasharray: .01 .01; }
.b-tags span, .b-ltags span {
  position: absolute; font-family: var(--fd); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.66);
}
.b-tags .is-y { color: var(--accent); }
.b-ltags { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; text-align: right; }
.b-ltags span { position: static; padding-right: 26px; background: linear-gradient(var(--accent), var(--accent)) 100% 50% / 18px 1px no-repeat; color: #fff; }
.b-title {
  position: absolute; z-index: 4; left: var(--gut); right: var(--gut); top: 50%; transform: translateY(-50%); margin: 0;
  font-size: clamp(44px, 9vw, 168px); font-weight: 600; letter-spacing: -.055em; line-height: .94; color: #fff;
}
.b-steps { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 5; left: var(--gut); bottom: clamp(32px, 8vh, 84px); width: min(520px, calc(100vw - 2 * var(--gut))); display: grid; }
.b-step { grid-area: 1 / 1; }
.b-step-n { display: block; font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--accent); margin-bottom: 14px; }
.b-step h3 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: #fff; }
.b-step p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(255,255,255,.84); }
.x-build-stage .x-crop { z-index: 3; }

/* Statická varianta (bez animací) */
html:not(.fx) .x-build { padding: clamp(60px, 9vw, 120px) 0; }
html:not(.fx) .x-build-stage { display: grid; gap: 40px; }
html:not(.fx) .b-grid, html:not(.fx) .b-lines, html:not(.fx) .b-tags, html:not(.fx) .b-ltags, html:not(.fx) .b-shade, html:not(.fx) .b-l2, html:not(.fx) .b-l3, html:not(.fx) .x-build-stage .x-crop { display: none; }
html:not(.fx) .b-title { position: static; transform: none; padding: 0 var(--gut); order: -1; }
html:not(.fx) .b-persp { position: relative; height: 70vh; }
html:not(.fx) .b-steps { position: static; width: auto; padding: 0 var(--gut); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
html:not(.fx) .b-step { grid-area: auto; }

/* ═══════════ 03 ROZCESTNÍK ═══════════ */
.x-services { padding: clamp(90px, 13vw, 200px) 0 0; }
.x-bands { display: flex; gap: 2px; height: min(88vh, 900px); min-height: 560px; margin-top: clamp(40px, 6vw, 84px); padding: 0 2px; }
.x-band {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; background: #111;
  transition: flex-grow 1s var(--x-ease);
}
.x-band.is-open { flex-grow: 5.4; }
.x-band img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 30%; filter: saturate(.55) brightness(.5); transition: filter 1s var(--x-ease); }
.x-band.is-open img { filter: none; }
.x-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,6,.92) 0, rgba(6,6,6,.4) 34%, rgba(6,6,6,0) 62%); pointer-events: none; }
.x-band-n { position: absolute; z-index: 2; left: 18px; top: 18px; font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.x-band.is-open .x-band-n { color: var(--accent); }
.x-band-v {
  position: absolute; z-index: 2; left: 16px; bottom: 22px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--fd); font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: opacity .4s;
}
.x-band.is-open .x-band-v { opacity: 0; }
.x-band-b {
  position: absolute; z-index: 2; left: clamp(20px, 2.6vw, 42px); bottom: clamp(20px, 2.6vw, 42px); width: min(44vw, 620px); display: block;
  opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s; pointer-events: none;
}
.x-band.is-open .x-band-b { opacity: 1; transform: none; transition: opacity .7s .28s, transform 1s .28s var(--x-ease); }
.x-band-m { display: block; font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.x-band h3 { margin: 0 0 16px; font-size: clamp(30px, 3.9vw, 66px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.x-band-p { display: block; max-width: 52ch; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.55; color: rgba(255,255,255,.86); }
.x-band-note { display: block; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.58); }
.x-band-go { position: absolute; right: 0; bottom: 0; }

html:not(.js) .x-bands { flex-wrap: wrap; height: auto; }
html:not(.js) .x-band { flex: 1 1 30%; height: 70vh; }
html:not(.js) .x-band img { filter: none; }
html:not(.js) .x-band-v { display: none; }
html:not(.js) .x-band-b { opacity: 1; transform: none; width: calc(100% - 40px); }

.x-router { padding-top: clamp(90px, 12vw, 180px); padding-bottom: clamp(90px, 12vw, 180px); }
.x-router-h { font-family: var(--fd); font-size: clamp(30px, 4.2vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; max-width: 20ch; margin: 0 0 clamp(40px, 5vw, 76px); color: #fff; }
.x-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.x-row {
  display: grid; grid-template-columns: minmax(280px, 1.1fr) 1.4fr 24px; gap: 32px; align-items: center; padding: clamp(18px, 1.9vw, 30px) 0; border-top: 1px solid var(--line);
  color: #fff; text-decoration: none; transition: padding-left .7s var(--x-ease), color .3s;
}
.x .x-row-t { display: none; }
.x-row strong { font-family: var(--fd); font-size: clamp(21px, 2.3vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.x-row span { font-size: 14px; line-height: 1.55; color: rgba(240,237,232,.62); max-width: 56ch; transition: color .3s; }
.x-row:hover, .x-row:focus-visible { padding-left: 22px; }
.x-row:hover strong { color: var(--accent); }
.x-row:hover span { color: #fff; }
.x-float { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(240px, 22vw, 360px); aspect-ratio: 4/3; pointer-events: none; overflow: hidden; visibility: hidden; }
.x-float img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════ 04 STUDIO ═══════════ */
.x-about { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 170px); }
.x-statement { margin: 0; font-size: clamp(30px, 5vw, 86px); font-weight: 600; letter-spacing: -.042em; line-height: 1.04; color: #fff; max-width: 21ch; }
.x-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 7vw, 120px); margin-top: clamp(50px, 7vw, 110px); }
.x-about-text p { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.62; color: rgba(240,237,232,.82); margin: 0 0 20px; max-width: 58ch; }
.x-about-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.x-about-help .about-help-lead { font-family: var(--fd); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.x-about-help ul { list-style: none; margin: 0; padding: 0; }
.x-about-help li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--text); }
.x-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(56px, 7vw, 110px) 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.x-stats > div { display: flex; flex-direction: column; padding: 20px 0 0; }
.x-stats dd { order: -1; margin: 0; font-family: var(--fd); font-size: clamp(46px, 7.4vw, 130px); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.x-stats dt { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.x-strip { margin-top: clamp(64px, 8vw, 120px); overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; }
.x-strip.is-drag { cursor: grabbing; }
html:not(.fx) .x-strip { overflow-x: auto; cursor: auto; }
.x-strip-track { display: flex; width: max-content; gap: 10px; will-change: transform; }
.x-strip figure { flex: none; margin: 0; width: clamp(210px, 23vw, 400px); aspect-ratio: 2/3; overflow: hidden; background: #111; }
.x-strip img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--x-ease); }
.x-strip figure:hover img { transform: scale(1.05); }

/* ═══════════ 05 PROJEKTY ═══════════ */
.x-work { position: relative; background: #0d0d0c; }
.x-work-stage { position: relative; overflow: hidden; }
.x-work-track { display: flex; width: max-content; align-items: stretch; will-change: transform; }
.x-panel { flex: none; position: relative; }
.x-panel-intro { width: 48vw; padding: 0 5vw 0 var(--gut); display: flex; flex-direction: column; justify-content: center; }
.x-panel-intro .x-sub { margin: 28px 0 24px; }
.x-panel-intro .x-link { align-self: flex-start; }
.x-project { width: 68vw; padding: 0 2.4vw; display: flex; flex-direction: column; justify-content: center; }
.x-project-img { position: relative; overflow: hidden; width: 100%; height: 60vh; background: #151515; }
.x-project-img img { position: absolute; left: -8%; top: 0; width: 116%; max-width: none; height: 100%; object-fit: cover; }
.x-project-body { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px 36px; padding-top: 2.2vh; }
.x-project h3 {
  grid-column: 1 / -1; order: -1; position: absolute; left: 0; bottom: 100%; margin: 0 0 -.1em; pointer-events: none; white-space: nowrap;
  font-size: clamp(44px, 5.8vw, 112px); font-weight: 600; letter-spacing: -.055em; line-height: .9; color: #fff; text-shadow: 0 2px 34px rgba(0,0,0,.45);
}
.x-project-cat { margin: 0; font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.x-project-cat span { color: #fff; margin-right: 10px; }
.x-project-desc { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 14px; line-height: 1.55; color: rgba(240,237,232,.84); }
.x-project-meta { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); grid-column: 1; }
.x-project .x-link { grid-column: 1; justify-self: start; margin-top: 4px; }
.x-panel-end { width: 44vw; padding: 0 var(--gut) 0 5vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.x-cats { list-style: none; margin: 0 0 34px; padding: 0; width: 100%; }
.x-cats a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); color: #fff; text-decoration: none; font-family: var(--fd); font-size: clamp(20px, 2.2vw, 36px); font-weight: 600; letter-spacing: -.03em; transition: color .3s, padding-left .6s var(--x-ease); }
.x-cats a:hover { color: var(--accent); padding-left: 14px; }
.x-work-hud { display: none; }

/* Desktop: sticky scéna s vodorovným pohybem */
@media (min-width: 901px) {
  /* výška = dráha tracku × 0,58 + výška okna; nepotřebuje měřit v JS, takže nevzniká layout shift */
  .fx .x-work { height: calc((48vw + 10 * 68vw + 44vw - 100vw) * .58 + 100vh); }
  .fx .x-work-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
  .fx .x-work-track { height: 100%; }
  .x-work-hud {
    display: flex; position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: 22px; align-items: center; gap: 20px;
    font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.72); text-transform: uppercase;
  }
  html:not(.fx) .x-work-hud { display: none; }
  html:not(.fx) .x-work-stage { overflow-x: auto; padding: 90px 0; }
  .x-work-count b { color: var(--accent); font-weight: 600; }
  .x-work-name { min-width: 180px; }
  .x-work-bar { flex: 1; height: 1px; background: rgba(255,255,255,.18); display: block; }
  .x-work-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 0; }
}

/* ═══════════ 06 MANIFEST ═══════════ */
.x-iris { position: relative; background: #050505; }
.fx .x-iris { height: 340vh; }
.x-iris-stage { position: relative; overflow: hidden; min-height: 100vh; }
.fx .x-iris-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.x-iris-img { position: absolute; inset: 0; }
.x-iris-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.86) 0, rgba(5,5,5,.5) 54%, rgba(5,5,5,.24) 100%); }
.x-iris-img img { width: 100%; height: 100%; object-fit: cover; }
.x-iris-sym { position: absolute; left: 50%; top: 50%; width: min(58vh, 72vw); aspect-ratio: 1; margin-left: calc(min(58vh, 72vw) / -2); margin-top: calc(min(58vh, 72vw) / -2); color: #d9d6cf; }
html:not(.fx) .x-iris-sym { display: none; }
.x-sym { width: 100%; height: 100%; display: block; overflow: visible; }
.x-sym .sym-pupil { color: var(--accent); fill: var(--accent); }
.x-iris-copy { position: relative; z-index: 3; padding: 0 var(--gut); height: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 1400px; }
.x-iris-copy .x-h2 em { color: var(--accent); }
.x-iris-copy .x-sub { margin-top: 30px; max-width: 58ch; color: rgba(255,255,255,.86); }

.x-ind { padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.x-ind > .x-eye { margin-bottom: 26px; font-weight: 600; }
.x-marquee { display: flex; width: max-content; }
.x-marquee-track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; will-change: transform; }
.x-marquee li { font-family: var(--fd); font-size: clamp(40px, 7.4vw, 130px); font-weight: 600; letter-spacing: -.05em; line-height: 1.08; padding: 0 .36em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(240,237,232,.5); position: relative; transition: color .35s; }
.x-marquee li:nth-child(3n+1) { color: var(--paper); -webkit-text-stroke: 0; }
.x-logos { margin-top: clamp(70px, 8vw, 120px); }
.x-logos-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 34px; align-items: center; }
.x-logos-grid .brand-logo { width: 100%; max-width: 110px; height: 40px; object-fit: contain; opacity: .62; transition: opacity .3s; margin: 0 auto; }
.x-logos-grid .brand-logo:hover { opacity: 1; }

/* ═══════════ 07 PROCES ═══════════ */
.x-process { padding: clamp(90px, 12vw, 170px) 0; border-top: 1px solid var(--line); }
.x-process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.x-process-left { position: sticky; top: 110px; }
.x-process-left .x-sub { margin-top: 26px; }
.x-process-num { margin-top: clamp(30px, 5vh, 60px); height: clamp(90px, 19vw, 300px); overflow: hidden; }
.x-process-num > div { font-family: var(--fd); font-size: clamp(90px, 19vw, 300px); font-weight: 600; letter-spacing: -.07em; line-height: 1; color: var(--accent); }
.x-process-num span { display: block; height: clamp(90px, 19vw, 300px); }
.x-steps { list-style: none; margin: 0; padding: 0 0 0 clamp(24px, 3vw, 48px); position: relative; }
.x-steps-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); display: block; }
.x-steps-line i { display: block; height: 100%; background: var(--accent); transform-origin: 0 0; }
.x-stepi { padding: clamp(36px, 8vh, 90px) 0; }
.x-stepi:first-of-type { padding-top: 0; }
.x-stepi h3 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 62px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.x-stepi p { margin: 0; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.6; color: rgba(240,237,232,.78); max-width: 50ch; }

/* ═══════════ 08 VÝSLEDEK ═══════════ */
.x-case { position: relative; }
.x-case-stage { position: relative; min-height: 112vh; display: flex; align-items: flex-end; overflow: hidden; }
.x-case-img { position: absolute; inset: 0; overflow: hidden; }
.x-case-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform-origin: 50% 20%; }
.x-case-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,6,.96) 0, rgba(6,6,6,.66) 46%, rgba(6,6,6,.08) 82%), linear-gradient(90deg, rgba(6,6,6,.72), rgba(6,6,6,0) 66%); }
.x-case-copy { position: relative; z-index: 2; width: 100%; padding: clamp(60px, 9vw, 110px) var(--gut) clamp(40px, 5vw, 80px); }
.x-stats--case { width: max-content; max-width: 100%; grid-template-columns: repeat(3, auto); column-gap: clamp(30px, 6vw, 100px); margin: 34px 0 30px; }
.x-stats--case dd { font-size: clamp(38px, 5vw, 80px); }

/* ═══════════ 09 FOCENÍ × PRODUKCE ═══════════ */
.x-wf { position: relative; }
.x-wf-panel { padding: clamp(70px, 9vw, 120px) 0; }
.x-wf-panel h3 { margin: 38px 0 16px; font-family: var(--fd); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.x-wf-panel ul { list-style: none; margin: 0; padding: 0; }
.x-wf-panel li { padding: clamp(12px, 1.6vh, 18px) 0; border-top: 1px solid; font-family: var(--fd); font-size: clamp(16px, 1.75vw, 29px); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; }
.x-wf-bad { background: #101010; color: rgba(240,237,232,.62); }
.x-wf-bad li { border-color: rgba(255,255,255,.1); }
.x-wf-bad .x-h2 { color: #fff; }
.x-wf-bad h3 { color: #d0634a; }
.x-wf-good { background: var(--paper); color: #0a0a0a; }
.x-wf-good .x-h2 { color: #0a0a0a; }
.x-wf-good .x-eye { color: #0a0a0a; }
.x-wf-good li { border-color: rgba(0,0,0,.14); }
.x-wf-edge { display: none; }
@media (min-width: 901px) {
  .fx .x-wf { height: 260vh; }
  .fx .x-wf-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .fx .x-wf-panel { position: absolute; inset: 0; display: flex; align-items: center; padding: 60px 0 30px; }
  .fx .x-wf-edge { display: block; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 4; }
}

/* ═══════════ 10 CENY ═══════════ */
.x-pricing { padding: clamp(90px, 12vw, 170px) 0; }
.x-pricing .x-head { margin-bottom: clamp(40px, 5vw, 76px); }
.x-tier {
  position: relative; display: grid; grid-template-columns: 50px 1.2fr 1.2fr auto; gap: 26px; align-items: center; padding: clamp(24px, 2.8vw, 44px) 0;
  border-top: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; isolation: isolate; transition: color .4s, padding .7s var(--x-ease);
}
.x-tier:last-of-type { border-bottom: 1px solid rgba(255,255,255,.18); }
.x-tier::before { content: ''; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--paper); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s var(--x-ease); z-index: -1; }
.x-tier:hover::before, .x-tier:focus-visible::before { transform: none; }
.x-tier:hover, .x-tier:focus-visible { color: #0a0a0a; }
.x-tier-n { font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.x-tier-m h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 32px); font-weight: 600; letter-spacing: -.03em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.x-tier-m em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a0a0a; background: var(--accent); padding: 4px 8px; }
.x-tier-m > span { font-size: 14px; line-height: 1.55; opacity: .72; display: block; max-width: 54ch; }
.x-tier-p strong { display: block; font-family: var(--fd); font-size: clamp(24px, 2.9vw, 50px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; white-space: nowrap; }
.x-tier-p strong small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; opacity: .75; }
.x-tier-p > span { display: block; margin-top: 8px; font-size: 12.5px; opacity: .62; }
.x-tier-go { display: inline-flex; align-items: center; gap: 12px; font-family: var(--fd); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ═══════════ 11 FAQ ═══════════ */
.x-faq { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); background: #0d0d0c; }
.x-faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.x-faq-left { position: sticky; top: 110px; }
.x-faq-left .x-sub { margin-top: 22px; }
.x .faq-q { font-family: var(--fd); font-size: clamp(16px, 1.35vw, 21px); font-weight: 600; letter-spacing: -.02em; padding: 22px 0; }
.x .faq-a-inner p { font-size: 15px; line-height: 1.65; max-width: 66ch; }
html:not(.js) .x .faq-a { grid-template-rows: 1fr; }

/* ═══════════ BLOG (partial) ═══════════ */
.x .blogreel h2 { font-family: var(--fd); font-weight: 600; letter-spacing: -.04em; }

/* ═══════════ 13 ZÁVĚR + KONTAKT ═══════════ */
.x-closing { overflow: hidden; padding: clamp(70px, 9vw, 130px) 0; background: var(--ink); }
.fx .z-wall-grid { transform: scale(3.06); }
.x-closing > p { margin: 0; white-space: nowrap; font-family: var(--fd); font-size: clamp(56px, 13.5vw, 260px); font-weight: 600; letter-spacing: -.065em; line-height: 1; color: var(--paper); will-change: transform; }
.x-closing > p + p { color: var(--accent); }
.x-contact { background: var(--ink); }
.x-contact h2 { font-family: var(--fd); font-weight: 600; letter-spacing: -.04em; }

/* ═══════════ Tablet + mobil ═══════════ */
@media (max-width: 1100px) {
  .x-hero-copy { width: calc(100vw - 2 * var(--gut)); bottom: auto; top: clamp(90px, 14vh, 140px); }
  .x-hero-side { left: var(--gut); right: var(--gut); width: auto; bottom: 20px; }
  .x-hero-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .x-hn { padding: 10px 0; grid-template-columns: 26px 1fr; }
  .x-hn:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .x-hero-shade { background: linear-gradient(180deg, rgba(8,8,8,.74) 0, rgba(8,8,8,.42) 52%, rgba(8,8,8,.92) 100%); }
  .x-logos-grid { grid-template-columns: repeat(5, 1fr); }
  .x-tier { grid-template-columns: 34px 1fr; }
  .x-tier-p { grid-column: 2; }
  .x-tier-go { grid-column: 2; }
}
@media (max-width: 900px) {
  .x-head, .x-about-grid, .x-process-grid, .x-faq-grid { grid-template-columns: 1fr; }
  .x-process-left, .x-faq-left { position: static; }
  .x-process-num { display: none; }
  .x-hero-foot { display: none; }
  .x-hero-seo { display: none; }
  .fx .x-hero-wrap { height: 145vh; }
  .fx .x-build { height: 430vh; }
  .fx .x-iris { height: 280vh; }

  .x-bands { flex-direction: column; height: auto; min-height: 0; padding: 0; gap: 2px; }
  .x-band { flex: none; height: 74vw; min-height: 340px; }
  .x-band img { filter: none; }
  .x-band-v { display: none; }
  .x-band-b { opacity: 1; transform: none; width: calc(100% - 40px); }

  .x-row { grid-template-columns: 72px 1fr 22px; gap: 4px 16px; padding: 16px 0; }
  .x .x-row-t { display: block; grid-row: 1 / span 2; width: 72px; height: 72px; object-fit: cover; }
  .x-row strong { grid-column: 2; }
  .x-row span { grid-column: 2; font-size: 13px; }
  .x-row .x-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .x-float { display: none; }

  .x-stats { grid-template-columns: 1fr 1fr; }
  .x-strip figure { width: 58vw; }

  .x-work { padding: 70px 0; }
  .x-work-stage { overflow: visible; }
  .x-work-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 var(--gut); gap: 14px; scrollbar-width: none; }
  .x-work-track::-webkit-scrollbar { display: none; }
  .x-panel-intro { width: 78vw; padding: 0; scroll-snap-align: start; }
  .x-project { width: 84vw; padding: 0; justify-content: flex-start; scroll-snap-align: start; scroll-margin-left: var(--gut); }
  .x-project-img { height: 58vw; }
  .x-project-img img { left: 0; width: 100%; }
  .x-project-body { display: block; padding-top: 16px; }
  .x-project h3 { position: static; font-size: clamp(30px, 9vw, 52px); white-space: normal; margin: 10px 0 12px; text-shadow: none; }
  .x-project-cat { margin: 0; }
  .x-project-meta { margin: 10px 0 14px; }
  .x-panel-end { width: 80vw; padding: 0; scroll-snap-align: start; }

  .x-logos-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .x-tier-m h3 { font-size: 22px; }
  .x-closing p { font-size: 17vw; }
  .b-step h3 { font-size: 36px; }
  .b-ltags { right: 16px; top: 14%; transform: none; }
  .b-tags { display: none; }
}
@media (max-width: 480px) {
  .x-hn-t { font-size: 13px; letter-spacing: -.02em; }
  .x-h1-kick { font-size: 10px; margin-bottom: 14px; letter-spacing: .16em; }
  .x-hero-ctrl button { width: 36px; height: 36px; }
  .x-hero-ctrl { margin-top: 10px; }
}
