/* FeelMedia. – statický web
   Barvy a písma podle původní šablony (Archivo + Roboto, červená #d90a2c, tmavé pozadí). */

:root {
  --red: #d90a2c;
  --red-dark: #b8001f;
  --bg: #1a191d;
  --bg-2: #222126;
  --bg-3: #2b2a30;
  --line: rgba(255, 255, 255, .12);
  --text: rgba(255, 255, 255, .72);
  --white: #fff;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white); font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 9vw, 128px); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(32px, 4.6vw, 58px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- popisky sekcí ---------- */
.eyebrow {
  display: block;
  font: 600 14px/1.4 var(--head);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .85;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: rgba(255,255,255,.85); }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--head);
  color: var(--white);
  background: var(--red);
  padding: 17px 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); }
.btn--dark { background: #111013; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; padding-left: 0; padding-right: 0; }
.btn--ghost:hover { background: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover svg { transform: translateX(5px); }

/* ---------- hlavička ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 3vw, 46px);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s, height .3s, transform .5s cubic-bezier(.2,.7,.2,1);
  view-transition-name: header;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid { background: #fff; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.06); --header-h: 76px; }
.header.is-solid .nav a[aria-current="page"] { color: var(--red); }

.burger {
  justify-self: start;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: inherit; border: 0; cursor: pointer;
  transition: background .2s;
}
.header.is-solid .burger { background: #f3f3f3; }
.burger span, .burger span::before { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.burger span::before { content: ""; position: absolute; top: 8px; }
.burger span { transform: translateY(-4px); }

.nav { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 52px); }
.nav a {
  position: relative;
  font: 500 19px/1 var(--head);
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav a:not(.nav-logo)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header.is-solid .nav a:hover, .header.is-solid .nav a[aria-current="page"] { color: var(--red); }
.nav a sup { position: absolute; top: -14px; right: -2px; font: 600 10px/1 var(--head); }
.nav .nav-logo { display: block; padding: 0 6px; }
.nav .nav-logo img { height: 30px; width: auto; }
.logo-dark { display: none !important; }
.header.is-solid .logo-light { display: none !important; }
.header.is-solid .logo-dark { display: block !important; }

.header .cta { justify-self: end; gap: 0; font-size: 16px; padding: 14px 20px; background: #111013; }
.header .cta:hover { background: var(--red); }
.header .cta .cta-short { display: none; }

/* ---------- celoobrazovkové menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px clamp(24px, 4vw, 76px) 48px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu-close { align-self: flex-start; width: 56px; height: 56px; border: 0; background: rgba(255,255,255,.06); border-radius: 50%; color: #fff; cursor: pointer; font-size: 28px; line-height: 1; }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; }
.menu li a {
  display: inline-flex; align-items: flex-start; gap: 12px;
  font: 700 clamp(40px, 7vw, 72px)/1.15 var(--head); color: #fff; letter-spacing: -.03em;
  transition: color .2s, transform .3s;
}
.menu li a::before { content: "0" counter(m); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.5); margin-top: 1em; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--red); }
.menu-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 16px; }
.menu-foot strong { display: block; margin-bottom: 4px; }

/* ---------- sociální ikony ---------- */
.socials { display: flex; gap: 10px; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: #fff;
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- úvodní hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 clamp(120px, 16vw, 220px);
}
.hero-words {
  position: absolute; inset: -10% -5%;
  pointer-events: none; user-select: none;
  font: italic 700 clamp(220px, 34vw, 560px)/.85 "Playfair Display", Georgia, serif;
  color: rgba(0,0,0,.07);
  transform: rotate(-12deg);
  display: flex; flex-direction: column; justify-content: center;
  white-space: nowrap;
}
.hero-words span { display: block; animation: drift 40s linear infinite alternate; }
.hero-words span:nth-child(2) { margin-left: 30%; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-12%); } }

.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.hero .eyebrow { border: 0; padding: 0; margin-bottom: 18px; font-size: 14px; opacity: .95; }
.hero h1 { margin: 0 0 40px; }
.hero h1 .typed { display: inline; }
.hero h1 .caret { display: inline-block; width: .06em; height: .8em; background: rgba(255,255,255,.75); margin-left: .05em; vertical-align: -.02em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.play {
  width: 84px; height: 84px; border-radius: 50%;
  background: #111013; color: #fff;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 0 rgba(17,16,19,.45);
  animation: pulse 2.4s infinite;
  transition: transform .2s;
}
.play:hover { transform: scale(1.08); }
.play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(17,16,19,0); } 100% { box-shadow: 0 0 0 0 rgba(17,16,19,0); } }

/* ---------- karty služeb ---------- */
.services { position: relative; margin-top: clamp(-200px, -14vw, -100px); z-index: 2; }
.services .grid { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); overflow: hidden; }
.service {
  position: relative; aspect-ratio: 2 / 3; min-height: 420px;
  padding: clamp(28px, 3vw, 46px);
  color: #fff; overflow: hidden; isolation: isolate;
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.35) 100%); }
.service:hover img { transform: scale(1.06); }
.service small { display: block; font: 700 14px/1.3 var(--head); text-transform: uppercase; margin-bottom: 12px; }
.service h3 { font-size: clamp(26px, 2.6vw, 40px); }

/* ---------- dvousloupcový text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.split h2 { margin: 0; }
.brand-mark { margin-top: 48px; width: min(300px, 70%); }

/* ---------- foto + červený panel s akordeonem ---------- */
.feature { display: grid; grid-template-columns: 1.33fr 1fr; align-items: stretch; }
.feature-media { position: relative; min-height: 560px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-panel { background: var(--red); color: rgba(255,255,255,.88); padding: clamp(48px, 7vw, 110px) clamp(28px, 6vw, 110px); margin-top: -110px; position: relative; z-index: 1; }
.feature-panel h2 { margin-bottom: 40px; }

.acc { border-top: 0; }
.acc details { padding: 14px 0; }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; gap: 18px; align-items: baseline;
  font: 700 clamp(18px, 1.5vw, 21px)/1.35 var(--head); color: #fff;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: "+"; font-weight: 400; font-size: 1.4em; line-height: .8; width: 16px; flex: none; }
.acc details[open] summary::before { content: "–"; }
.acc details p { margin: 14px 0 4px 34px; }

.video-link { display: inline-flex; align-items: center; gap: 16px; font: 700 19px/1 var(--head); color: #fff; margin-bottom: 40px; }
.video-link .play { width: 70px; height: 70px; animation: none; }

/* ---------- portfolio ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 46px); }
.projects--three { grid-template-columns: repeat(3, 1fr); }
.project-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.project-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.05); }
.project-card .info { position: absolute; inset: auto 0 0 0; padding: 28px 32px; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.project-card h3 { margin: 0 0 6px; font-size: clamp(20px, 2vw, 28px); }
.project-card .cats { font: 600 15px/1.3 var(--head); color: rgba(255,255,255,.85); }
.project-card .more { position: absolute; top: 22px; right: 22px; background: #fff; color: #111; font: 700 14px/1 var(--head); padding: 12px 16px; border-radius: 4px; opacity: 0; transform: translateY(-6px); transition: .3s; }
.project-card:hover .more, .project-card:focus-visible .more { opacity: 1; transform: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filters a { font: 600 15px/1 var(--head); color: #fff; padding: 12px 18px; border-radius: 40px; border: 1px solid var(--line); transition: .2s; }
.filters a:hover { border-color: #fff; }
.filters a[aria-current="page"] { background: var(--red); border-color: var(--red); }

/* ---------- klienti ---------- */
.clients { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.clients h2 { position: sticky; top: 120px; font-size: clamp(30px, 3.6vw, 48px); }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 30px); align-items: center; }
.logos img { width: 100%; max-width: 200px; margin: 0 auto; opacity: .55; filter: grayscale(1); transition: opacity .3s; }
.logos img:hover { opacity: 1; }

/* ---------- logo pás ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.studio img { width: min(560px, 100%); justify-self: end; }

/* ---------- formulář ---------- */
.contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(40px, 8vw, 140px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form--3 { grid-template-columns: repeat(3, 1fr); }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 17px/1.3 var(--head); color: #fff; margin-bottom: 12px; }
.field label small { font: inherit; font-weight: 400; color: rgba(255,255,255,.6); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: #fff;
  background: var(--bg-3); border: 1px solid transparent; border-radius: 4px;
  padding: 17px 18px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 48px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.4); background: #323137; }
.form .consent { font-size: 14px; color: rgba(255,255,255,.55); }
.hidden { position: absolute !important; left: -9999px !important; }

.contact-info dl { margin: 0; display: grid; gap: 26px; }
.contact-info dt { color: rgba(255,255,255,.7); margin-bottom: 4px; }
.contact-info dd { margin: 0; font: 700 18px/1.4 var(--head); color: #fff; }
.contact-info dd a:hover { color: var(--red); }
.contact-info h2 { font-size: clamp(34px, 3.4vw, 46px); }

/* ---------- podstránky – hero ---------- */
.page-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: #000; }
.page-hero .text { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 60px) var(--pad) 70px max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
.page-hero .text h1 { font-size: clamp(54px, 8vw, 110px); margin-bottom: 18px; }
.page-hero .text p { font-size: 20px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.page-hero .media { position: relative; min-height: 360px; }
.page-hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; z-index: 1; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.page-hero--full { grid-template-columns: 1fr; }
.page-hero--full .media { position: absolute; inset: 0; }
.page-hero--full .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.15)); }
.page-hero--full .text { position: relative; z-index: 1; }

.crumbs { font-size: 17px; padding: 34px 0 0; color: rgba(255,255,255,.7); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 10px; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }

.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info-cols h2 { font-size: clamp(26px, 2.4vw, 36px); }

.map { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3); }

/* ---------- stránka projektu ---------- */
.project-head { padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.project-head .meta-top { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 16px/1.3 var(--head); margin-bottom: 22px; }
.project-head .meta-top a { color: var(--red); }
.project-head .meta-top time { color: rgba(255,255,255,.6); }
.project-head h1 { font-size: clamp(44px, 7vw, 96px); max-width: 15ch; }
.project-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 120px); margin-top: 40px; }
.project-intro .text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.project-intro .text a:hover { color: var(--red); }
.facts { margin: 0; display: grid; gap: 22px; align-content: start; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font: 600 13px/1.3 var(--head); text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.facts dd { margin: 0; color: #fff; font-size: 17px; }

.cover { margin: 0; }
.cover img { width: 100%; max-height: 88vh; object-fit: cover; }

.gallery { columns: 2; column-gap: clamp(14px, 2vw, 28px); }
.gallery a { display: block; margin: 0 0 clamp(14px, 2vw, 28px); break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .6s, opacity .3s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery--three { columns: 3; }

.next-project { display: block; border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 110px) 0; transition: background .3s; }
.next-project:hover { background: var(--red); }
.next-project small { display: block; font: 600 15px/1 var(--head); text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.next-project strong { font: 700 clamp(32px, 5vw, 70px)/1.05 var(--head); letter-spacing: -.03em; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.next-project svg { width: clamp(32px, 4vw, 56px); height: auto; flex: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,12,.95); display: flex; align-items: center; justify-content: center; padding: 60px 20px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; opacity: 0; scale: .96; transition: opacity .4s, scale .6s cubic-bezier(.2,.7,.2,1); }
.lightbox img.is-loaded { opacity: 1; scale: 1; }
.lightbox .video-frame { scale: .94; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.lightbox.is-open .video-frame { scale: 1; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.video-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA pruh ---------- */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 30px; }
.cta-band h2 { margin: 0; }

/* ---------- patička ---------- */
.footer { padding: clamp(60px, 8vw, 100px) 0 40px; font-size: 17px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer h3 { font-size: 18px; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .links a { color: var(--red); }
.footer .links a:hover { color: #fff; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 34px; color: rgba(255,255,255,.75); }
.footer address { font-style: normal; }
.footer address a:hover { color: #fff; }

/* ---------- 404 / děkujeme ---------- */
.notice { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notice .big { font: 700 clamp(120px, 24vw, 300px)/.85 var(--head); color: var(--red); letter-spacing: -.05em; margin-bottom: 30px; }

/* ---------- animace při scrollu ---------- */
.reveal { opacity: 0; translate: 0 36px; transition: opacity 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; translate: none; }
.no-js .reveal { opacity: 1; translate: none; }

/* nadpisy po slovech */
.motion .split-text .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .12em; margin: -.14em -.02em -.12em; }
.motion .split-text .w > span { display: inline-block; translate: 0 110%; rotate: 4deg; transform-origin: 0 100%; transition: translate 1.1s cubic-bezier(.16,1,.3,1), rotate 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.motion .split-text.is-in .w > span { translate: none; rotate: none; }

/* odkrytí fotek */
.motion .img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1) var(--d, 0ms); }
.motion .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.motion .img-reveal img { scale: 1.25; transition: scale 1.8s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1); }
.motion .img-reveal.is-in img { scale: 1; }
.motion .img-reveal.is-in img[data-px] { scale: 1.15; }
.motion .project-card.reveal, .motion .service.reveal { transition-duration: 1.2s; }
.motion .service.img-reveal { clip-path: none; }
.motion .project-card .thumb { clip-path: inset(0 0 100% 0); }
.motion .project-card .thumb.is-in { clip-path: inset(0); }

/* hero – úvodní nájezd */
.motion .hero-words span { opacity: 0; transition: opacity 2s ease .3s; }
.motion .hero-words span:nth-child(2) { transition-delay: .6s; }
.motion.loaded .hero-words span { opacity: 1; }
@keyframes header-in { from { opacity: 0; translate: 0 -30px; } }
.motion .header { animation: header-in 1s cubic-bezier(.16,1,.3,1) .15s both; }

/* magnetická tlačítka */
.magnetic { transition: translate .5s cubic-bezier(.2,.7,.2,1), background .2s, scale .3s; }

/* menu – položky vyjíždějí postupně */
.menu li { overflow: hidden; }
.motion .menu li a { translate: 0 105%; transition: translate .8s cubic-bezier(.16,1,.3,1), color .2s; }
.motion .menu.is-open li a { translate: none; }
.motion .menu li:nth-child(1) a { transition-delay: .1s; }
.motion .menu li:nth-child(2) a { transition-delay: .16s; }
.motion .menu li:nth-child(3) a { transition-delay: .22s; }
.motion .menu li:nth-child(4) a { transition-delay: .28s; }
.motion .menu .menu-foot { opacity: 0; translate: 0 20px; transition: opacity .6s .35s, translate .8s cubic-bezier(.16,1,.3,1) .35s; }
.motion .menu.is-open .menu-foot { opacity: 1; translate: none; }
.menu li a:hover { transform: translateX(10px); }

/* plynulý akordeon */
:root { interpolate-size: allow-keywords; }
.acc details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s cubic-bezier(.2,.7,.2,1), content-visibility .5s allow-discrete; }
.acc details[open]::details-content { block-size: auto; }
.acc summary::before { transition: rotate .4s cubic-bezier(.2,.7,.2,1); }
.acc details[open] summary::before { rotate: 180deg; }

/* běžící pás */
.marquee { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; user-select: none; pointer-events: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font: 700 clamp(64px, 10vw, 150px)/1 var(--head); letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); padding-right: .35em;
}
.marquee-track span:nth-child(odd) { color: var(--red); -webkit-text-stroke: 0; }
.marquee-track span::after { content: "•"; color: rgba(255,255,255,.25); -webkit-text-stroke: 0; margin-left: .35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* vlastní kurzor */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-off .cursor-dot, .cursor-off .cursor-ring { opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--red); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red);
  transition: scale .45s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s;
}
.cursor-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 13px/1 var(--head); color: #fff; opacity: 0; scale: .6; transition: opacity .3s, scale .45s cubic-bezier(.2,.7,.2,1); }
.cursor-link .cursor-ring::before { scale: 1.5; background: rgba(217,10,44,.12); }
.cursor-view .cursor-ring::before { scale: 2.3; background: var(--red); border-color: var(--red); }
.cursor-view .cursor-ring span { opacity: 1; scale: 1; }
.cursor-view .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring::before { scale: .8; }
.cursor-light .cursor-ring::before { border-color: #fff; }
.cursor-light .cursor-dot { background: #fff; }
.cursor-light.cursor-link .cursor-ring::before { background: rgba(255,255,255,.15); }
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select, .has-cursor iframe { cursor: auto; }

/* přechody mezi stránkami (prohlížeče s View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-old .7s cubic-bezier(.77,0,.18,1) both; }
::view-transition-new(root) { animation: vt-new .7s cubic-bezier(.77,0,.18,1) both; }
@keyframes vt-old { to { opacity: .4; scale: .97; } }
@keyframes vt-new { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- responzivita ---------- */
@media (max-width: 1100px) {
  .nav a:not(.nav-logo) { display: none; }
  .projects--three { grid-template-columns: repeat(2, 1fr); }
  .form--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .header .cta { padding: 12px 14px; font-size: 14px; }
  .burger { width: 48px; height: 48px; }
  .services .grid { grid-template-columns: 1fr; }
  .service { aspect-ratio: auto; min-height: 380px; }
  .split, .clients, .studio, .contact-grid, .project-intro, .feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 380px; }
  .feature-panel { margin-top: 0; }
  .clients h2 { position: static; }
  .studio img { justify-self: start; }
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero .text { padding: calc(var(--header-h) + 50px) var(--pad) 50px; }
  .info-cols { grid-template-columns: 1fr; gap: 30px; }
  .footer .cols { grid-template-columns: 1fr; }
  .gallery--three { columns: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .play { width: 68px; height: 68px; }
  .projects, .projects--three { grid-template-columns: 1fr; }
  .form, .form--3 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .gallery, .gallery--three { columns: 1; }
  .project-card .info { padding: 20px; }
  .header .cta .cta-long { display: none; }
  .header .cta .cta-short { display: inline; }
}
