/* ===== fonty: self-hosted, subset na češtinu + typografii (fontTools), jeden soubor na řez ===== */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono-500.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSans-400i.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSans-400.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/InstrumentSans-500.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/InstrumentSans-600.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Unbounded-400.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Unbounded-600.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/Unbounded-700.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/Unbounded-900.woff2) format('woff2'); }

/* ===== Kreatix — dark futuristic ===== */
:root {
  /* 1 % výšky okna změřený skriptem jednou (px). Brave/Chrome na iOS mění vh
     při schování lišty a sekce v vh by skákaly o stovky px — Safari ne. */
  --vh: 1vh;
  --bg: #070908;
  --bg-lift: #0d110e;
  --acid: #c8ff3d;
  --acid-dim: #9ac72f;
  --ink: #ecf2e8;
  --ink-dim: #8b948a;
  --line: rgba(236, 242, 232, 0.12);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* scroll anchoring se pere se scroll-driven transformacemi (orbit, služby)
   a způsobuje skoky zpět do sekcí — vypnout */
html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  overflow-anchor: none;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}
/* overflow-x: hidden na <body> dělá ve WebKitu z body scroll kontejner (bug 153852)
   a WKWebView pak při změnách výšky okna posouvá offset — clip nevytváří scroller */
html, body { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== grain ===== */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 2.5rem; mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  letter-spacing: 0.06em; color: #fff;
}
.nav__logo span { color: var(--acid); font-weight: 400; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; }
.nav__cta { border: 1px solid #fff; padding: 0.55em 1.2em; border-radius: 100px; }

/* ===== hero (pinned zoom-through) ===== */
.hero { position: relative; height: calc(200 * var(--vh)); }
.hero__sticky {
  position: sticky; top: 0; height: calc(100 * var(--vh)); min-height: 640px;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content {
  position: relative; z-index: 2; text-align: center; padding-bottom: calc(16 * var(--vh));
}
.hero__label { color: var(--acid); margin-bottom: 1.2rem; }
.hero__tag {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1.35; color: var(--ink);
}
.hero__tag em { font-style: normal; color: var(--acid); }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; translate: -50%;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--ink-dim); z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 42px; background: var(--line); overflow: hidden; position: relative;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--acid); animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { to { top: 110%; } }

/* ===== manifest ===== */
.manifest {
  min-height: calc(130 * var(--vh)); display: flex; align-items: center;
  padding: calc(20 * var(--vh)) 8vw;
}
.manifest__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.3; max-width: 20ch;
}
.manifest__text .w { color: rgba(236,242,232,0.16); transition: color 0.35s; }
.manifest__text .w.lit { color: var(--ink); }
.manifest__text .w.lit.accent { color: var(--acid); }

/* ===== services (fly-through) ===== */
.services { height: calc(420 * var(--vh)); position: relative; background: var(--bg); }
.services__sticky {
  position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden;
  display: grid; place-items: center;
}
#warpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.services__progress {
  position: absolute; left: 8vw; top: 50%; translate: 0 -50%;
  width: 2px; height: calc(40 * var(--vh)); background: var(--line); z-index: 3;
}
.services__progress-fill { width: 100%; height: 0%; background: var(--acid); }
.service {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; opacity: 0; visibility: hidden;
  will-change: opacity;
}
.service.is-active { opacity: 1; visibility: visible; } /* reduced-motion fallback */
.service[data-service="0"] { --svc: #c8ff3d; }
.service[data-service="1"] { --svc: #5ad1ff; }
.service[data-service="2"] { --svc: #ff5fa8; }
.service__inner {
  position: relative; z-index: 2; padding: 0 8vw; max-width: 980px;
  will-change: transform, filter;
}
.service__index { color: var(--svc); margin-bottom: 1rem; }
.service__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: 0.95; margin-bottom: 1.6rem;
  color: var(--svc);
  text-shadow: 0 0 90px color-mix(in srgb, var(--svc) 45%, transparent);
}
.service__desc { max-width: 44ch; margin: 0 auto 1.8rem; color: var(--ink-dim); font-size: 1.12rem; }
.service__tags { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.service__tags li {
  border: 1px solid color-mix(in srgb, var(--svc) 35%, transparent);
  border-radius: 100px; padding: 0.5em 1.1em; color: var(--ink);
}

/* ===== work (desktop: orbit · mobil: swipe pás, viz media dole) ===== */
.work { height: calc(440 * var(--vh)); position: relative; }
.work__sticky {
  position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden;
}
.work__head { position: absolute; top: calc(9 * var(--vh)); left: 8vw; z-index: 5; }
.work__label { color: var(--ink-dim); font-weight: 400; margin: 0; }
.work__counter, .work__dots, .work__hint { display: none; }
.orbit { position: absolute; inset: 0; }
.orbit__core {
  position: absolute; top: 26%; left: 50%; translate: -50% -50%;
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(200, 255, 61, 0.16), transparent 68%);
  font-family: var(--font-display); font-weight: 400; font-size: 3rem; color: var(--acid);
  text-shadow: 0 0 40px rgba(200, 255, 61, 0.8);
  will-change: transform, opacity;
}
.orbit__core span { display: block; animation: corespin 16s linear infinite; }
@keyframes corespin { to { transform: rotate(360deg); } }
.orbit-card {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: min(42vw, 500px); display: block;
  will-change: transform, opacity, filter;
}
.orbit-card picture { display: block; position: relative; aspect-ratio: 16 / 10; }
.orbit-card img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.orbit-card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem;
  margin-top: 1.1rem; opacity: 0;
}
.orbit-card__meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.orbit-card__meta p { flex-shrink: 0; }
.orbit-card__meta p { color: var(--ink-dim); }

/* ===== videa nemovitostí ===== */
.reels {
  padding: calc(16 * var(--vh)) 8vw calc(14 * var(--vh)); border-top: 1px solid var(--line); position: relative;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(200, 255, 61, 0.06), transparent 70%);
}
.reels__head { max-width: 760px; margin-bottom: 5rem; }
.reels__label { color: var(--acid); margin-bottom: 1.2rem; }
.reels__title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  font-size: clamp(2rem, 4.6vw, 4.2rem); letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.reels__title em { font-style: normal; color: var(--acid); }
.reels__desc { color: var(--ink-dim); max-width: 560px; font-size: 1.1rem; margin-bottom: 1.6rem; }
.reels__tags { list-style: none; display: flex; gap: 0.7rem; flex-wrap: wrap; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.reels__tags li { border: 1px solid rgba(200, 255, 61, 0.35); border-radius: 100px; padding: 0.5em 1.1em; }
.reels__strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw; align-items: start;
}
.reel { display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.reel:hover { transform: translateY(-6px); }
.reel:nth-child(even) { margin-top: 3.5rem; }
.reel__phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, #1a201a, #0b0e0b);
  border: 1px solid rgba(236, 242, 232, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}
.reel:hover .reel__phone { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 255, 61, 0.25); }
.reel__phone video, .reel__poster {
  position: absolute; top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
  display: block; object-fit: cover; border-radius: 25px; background: #000;
}
.reel__poster[hidden] { display: none; }
.reel__play {
  position: absolute; inset: 5px; border-radius: 25px; border: none;
  background: linear-gradient(to top, rgba(7, 9, 8, 0.75), transparent 45%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 0.6rem; padding-bottom: 1.4rem; color: var(--ink);
  opacity: 1; transition: opacity 0.4s;
}
.reel__play-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--acid);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 0 30px rgba(200, 255, 61, 0.45);
}
.reel__play-icon::after {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #0a0c09;
}
.reel__play-text { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel.is-playing .reel__phone { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 255, 61, 0.6), 0 0 50px rgba(200, 255, 61, 0.2); }
.reel__meta { margin-top: 1.1rem; }
.reel__meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.reel__meta p { color: var(--ink-dim); font-size: 0.72rem; margin-top: 0.2rem; }
.reels__dots { display: none; }
.reels__note { color: var(--ink-dim); font-size: 0.75rem; margin-top: 3rem; letter-spacing: 0.06em; }
.reels__cta .service__cta { --svc: var(--acid); margin-top: 1.4rem; }

/* ===== social (výsledky ze sítí) — tři panely ===== */
.social { padding: calc(10 * var(--vh)) 8vw calc(11 * var(--vh)); border-top: 1px solid var(--line); }
.social__head { display: flex; align-items: baseline; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.social__label { color: var(--acid); }
.social__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.2; }
.social__title em { font-style: normal; color: var(--acid); }
.social__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.social__card {
  display: flex; flex-direction: column; padding: 2rem 1.8rem 1.6rem; border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 32, 26, 0.9), rgba(11, 14, 11, 0.9));
  border: 1px solid rgba(236, 242, 232, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}
.social__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(200, 255, 61, 0.25); }
.social__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.social__big span { color: var(--acid); }
.social__sub { color: var(--acid); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.6rem; }
.social__text { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.55; margin: 1.3rem 0 2rem; flex: 1; }
.social__who { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.social__who h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.social__who p { color: var(--ink-dim); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; }
.social__ig { color: var(--ink); font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(200, 255, 61, 0.4); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.social__ig:hover { color: var(--acid); border-color: var(--acid); }

/* ===== stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  padding: calc(18 * var(--vh)) 8vw; border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 7vw, 5.8rem); line-height: 1; color: var(--ink);
}
.stat__suffix { color: var(--acid); font-size: 0.5em; vertical-align: super; }
.stat__label { color: var(--ink-dim); margin-top: 1rem; }

/* ===== contact (acid zone) ===== */
.contact {
  background: var(--acid); color: #0a0c09;
  padding: calc(20 * var(--vh)) 8vw; text-align: center;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: 4vw;
}
.contact__label { color: rgba(10,12,9,0.55); margin-bottom: 2rem; }
.contact__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 13vw, 11rem); line-height: 0.92;
  letter-spacing: -0.01em; margin-bottom: 4rem;
}
.contact__btn {
  display: inline-block; font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 2px solid #0a0c09; border-radius: 100px; padding: 1.2em 2.6em;
  transition: background 0.3s, color 0.3s;
  will-change: transform;
}
.contact__btn:hover { background: #0a0c09; color: var(--acid); }

/* ===== service CTA ===== */
.service__cta {
  margin-top: 2.2rem; display: inline-block;
  background: var(--svc); color: #0a0c09;
  border: none; border-radius: 100px; padding: 0.95em 2em;
  font-size: 0.78rem; letter-spacing: 0.16em;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.service__cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--svc) 40%, transparent);
}

/* ===== contact alt ===== */
.contact__alt { margin-top: 2rem; color: rgba(10, 12, 9, 0.55); }
.contact__alt a { text-decoration: underline; text-underline-offset: 3px; }
.contact__btn { background: #0a0c09; color: var(--acid); font-family: var(--font-mono); }
.contact__btn:hover { background: transparent; color: #0a0c09; }

/* ===== quiz overlay ===== */
.quiz {
  position: fixed; inset: 0; z-index: 9500;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--q, var(--acid)) 9%, transparent), transparent 60%),
    var(--bg);
  transform: translateX(103%);
  transition: transform 0.75s cubic-bezier(0.7, 0, 0.2, 1);
  visibility: hidden;
}
.quiz.open { transform: translateX(0); visibility: visible; }
.quiz__inner {
  height: 100%; max-width: 1180px; margin: 0 auto; padding: 5.5rem 6vw 2rem;
  display: flex; flex-direction: column;
}
.quiz__close {
  position: absolute; top: 1.6rem; right: 2rem;
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink); padding: 0.6em 1.3em;
  font-size: 0.72rem; letter-spacing: 0.15em;
  transition: border-color 0.3s, color 0.3s;
}
.quiz__close:hover { border-color: var(--q, var(--acid)); color: var(--q, var(--acid)); }
.quiz__progress {
  height: 2px; background: var(--line); border-radius: 2px; margin-bottom: calc(4 * var(--vh));
}
.quiz__progress-fill {
  height: 100%; width: 25%; background: var(--q, var(--acid));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}
.quiz__viewport { position: relative; flex: 1; overflow: hidden; }
.quiz-step {
  position: absolute; inset: 0; display: none; overflow-y: auto; padding-bottom: 1rem;
}
.quiz-step.is-active { display: block; }
.quiz-step__label { color: var(--q, var(--acid)); margin-bottom: 1.2rem; }
.quiz-step__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.08; margin-bottom: 1.4rem;
}
.quiz-step__note { color: var(--ink-dim); max-width: 52ch; margin-bottom: 2rem; }

.quiz-cats { display: grid; gap: clamp(0.8rem, calc(1.6 * var(--vh)), 1.2rem); margin-top: 1rem; }
.quiz-cat {
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 1.3rem;
  text-align: left; background: none;
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.2rem, calc(2.6 * var(--vh)), 2rem) 2.2rem;
  color: var(--ink); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.quiz-cat:hover, .quiz-cat.sel {
  border-color: var(--q); background: color-mix(in srgb, var(--q) 7%, transparent);
  box-shadow: inset 4px 0 0 var(--q);
}
.quiz-cat__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--q); box-shadow: 0 0 16px var(--q); }
.quiz-cat__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.quiz-cat__desc { color: var(--ink-dim); font-size: 1.02rem; justify-self: end; text-align: right; }

.quiz-chips {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem;
}
.quiz-chip {
  display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start;
  background: none; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.6rem; color: var(--ink); text-align: left;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.quiz-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--q) 55%, transparent); }
.quiz-chip.sel { border-color: var(--q); background: color-mix(in srgb, var(--q) 10%, transparent); }
.quiz-chip__name { font-weight: 600; font-size: 1.12rem; }
.quiz-chip__price { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--q, var(--acid)); text-transform: uppercase; }

.quiz-form { display: grid; gap: 1.4rem; max-width: 680px; }
.quiz-field { display: grid; gap: 0.5rem; }
.quiz-field .mono { color: var(--ink-dim); }
.quiz-field input, .quiz-field textarea {
  background: rgba(236, 242, 232, 0.04); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: var(--font-body); font-size: 1.05rem;
  padding: 0.85em 1em; outline: none; resize: vertical;
  transition: border-color 0.3s;
}
.quiz-field input:focus, .quiz-field textarea:focus { border-color: var(--q, var(--acid)); }
#quizHoney { position: absolute; left: -9999px; opacity: 0; height: 0; }
.quiz-error { color: #ff6b6b; min-height: 1.2em; }

.quiz-done { text-align: center; padding-top: calc(8 * var(--vh)); }
.quiz-done__mark {
  font-size: 4rem; color: var(--q, var(--acid));
  text-shadow: 0 0 50px var(--q, var(--acid)); margin-bottom: 1.5rem;
  animation: donepulse 2.4s ease-in-out infinite;
}
@keyframes donepulse { 50% { transform: scale(1.12) rotate(180deg); } }
.quiz-done .quiz-step__note { margin: 0 auto; }

.quiz__nav { display: flex; justify-content: space-between; padding-top: 1.4rem; }
.quiz__back, .quiz__next {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink); padding: 0.9em 1.8em;
  font-size: 0.75rem; letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.quiz__next { background: var(--q, var(--acid)); border-color: transparent; color: #0a0c09; font-weight: 500; }
.quiz__next:hover { filter: brightness(1.1); }
.quiz__back:hover { border-color: var(--ink); }
.quiz__back[disabled], .quiz__next[disabled] { opacity: 0.25; pointer-events: none; }

@media (max-width: 720px) {
  .quiz__inner { padding: 4.5rem 6vw 1.4rem; }
  .quiz-cat { grid-template-columns: auto 1fr; }
  .quiz-cat__desc { grid-column: 2; justify-self: start; text-align: left; }
}

/* ===== footer ===== */
.footer {
  display: flex; justify-content: space-between; padding: 2rem 2.5rem;
  color: var(--ink-dim); background: var(--acid);
}
.footer .mono { color: rgba(10,12,9,0.6); }

/* ===== cookies ===== */
.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 900; width: min(380px, calc(100vw - 40px));
  background: rgba(13, 17, 14, 0.96); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); backdrop-filter: blur(12px);
  transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  pointer-events: none;
}
.cookies.open { transform: none; opacity: 1; pointer-events: auto; }
.cookies__label { color: var(--acid); margin-bottom: 0.5rem; }
.cookies__text { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.5; }
.cookies__btns { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.cookies__accept { background: var(--acid); color: #070908; border: none; border-radius: 100px; padding: 0.7em 1.3em; font: inherit; font-weight: 600; cursor: pointer; }
.cookies__reject { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 0.75em 1.1em; cursor: pointer; }
.cookies__reject:hover { border-color: rgba(236, 242, 232, 0.4); }
.footer__cookies { background: none; border: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ===== entrances (JS adds .in) ===== */
[data-reveal] { opacity: 0; }
[data-reveal].in { opacity: 1; }

/* ===== responsive ===== */
@media (pointer: coarse) {
  /* mobilní GPU: bez zrna (fixed vrstva 200 % okna se při animaci lišty
     WKWebView přepočítává každý snímek) a bez blend módu */
  .grain { display: none; }
  .nav { mix-blend-mode: normal; }
  /* smooth scroll-behavior se na iOS pere se scroll-snap pásy a přichytávání
     přeskakuje na náhodná místa stránky — na dotyku nativní scroll bez animace */
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .nav { padding: 1.1rem 1.3rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .manifest { padding: calc(16 * var(--vh)) 7vw; }
  .services__progress { left: auto; right: 5vw; }
  .hero { height: calc(165 * var(--vh)); }     /* kratší průlet = méně černé mezi herem a službami */
  .services { height: calc(360 * var(--vh)); }
  .social { padding: calc(9 * var(--vh)) 6vw; }
  .social__head { gap: 0.6rem; margin-bottom: 1.8rem; padding: 0 2vw; }
  .social__grid { grid-template-columns: 1fr; gap: 1rem; }
  .social__card { padding: 1.6rem 1.4rem 1.3rem; }
  .social__text { margin: 1rem 0 1.4rem; }
  .stats { grid-template-columns: 1fr; gap: 4rem; padding: calc(14 * var(--vh)) 8vw; }
  .footer { flex-direction: column; gap: 0.5rem; }
}

/* ===== work na dotyku / úzkém displeji: swipe pás s telefonními rámečky =====
   Pinovaná orbita na mobilu nefungovala (skoky při změně výšky okna, karty
   se překrývaly). Tady jede nativní horizontální scroll-snap a JS jen dobarvuje. */
@media (pointer: coarse), (max-width: 720px) {
  .work {
    height: auto; padding: calc(11 * var(--vh)) 0 calc(8 * var(--vh));
    background: radial-gradient(ellipse 70% 45% at 50% 55%, rgba(200, 255, 61, 0.07), transparent 70%);
  }
  .work__sticky { position: static; height: auto; overflow: visible; }
  .work__head {
    position: static; display: flex; justify-content: space-between; align-items: center;
    padding: 0 8vw 1.4rem;
  }
  .work__counter {
    display: flex; gap: 0.25em; align-items: baseline; color: var(--acid); font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
  }
  .work__counter i { color: var(--ink-dim); font-style: normal; }
  .orbit {
    position: relative; inset: auto;
    display: flex; gap: 5vw; align-items: flex-start;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    padding: 0.5rem 21.5vw 0.6rem;
    scrollbar-width: none;
  }
  .orbit::-webkit-scrollbar { display: none; }
  .orbit__core { display: none; }
  .orbit-card {
    position: relative; top: auto; left: auto; translate: none;
    flex: 0 0 57vw; width: 57vw;
    will-change: transform, opacity; transform-origin: 50% 40%;
  }
  .orbit-card picture {
    aspect-ratio: 390 / 740; padding: 5px; border-radius: 28px;
    background: linear-gradient(160deg, #1a201a, #0b0e0b);
    border: 1px solid rgba(236, 242, 232, 0.16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  }
  .orbit-card img {
    inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
    border-radius: 23px; border: none; box-shadow: none;
  }
  .orbit-card__meta {
    flex-direction: column; align-items: flex-start; gap: 0.15rem; margin-top: 0.9rem;
  }
  .orbit-card__meta h3 { font-size: 0.95rem; line-height: 1.25; }
  .orbit-card__meta p { font-size: 0.72rem; }
  .work__dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 1.2rem; }
  .work__dots span {
    width: 6px; height: 6px; border-radius: 3px; background: rgba(236, 242, 232, 0.2);
    transition: background 0.3s, width 0.3s;
  }
  .work__dots span.is-active { width: 22px; background: var(--acid); }
  .work__hint {
    display: block; text-align: center; color: var(--ink-dim); font-size: 0.78rem;
    margin-top: 0.9rem; letter-spacing: 0.08em; transition: opacity 0.6s;
  }
  .work__hint.is-hidden { opacity: 0; }
}

/* ===== videa na dotyku / úzkém displeji: stejný swipe pás jako Práce ===== */
@media (pointer: coarse), (max-width: 720px) {
  .reels { padding: calc(12 * var(--vh)) 0 calc(10 * var(--vh)); }
  .reels__head { padding: 0 8vw; margin-bottom: 2.4rem; }
  .reels__desc { font-size: 1rem; }
  .reels__strip {
    display: flex; gap: 5vw; align-items: flex-start;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    padding: 0.5rem 21.5vw 0.6rem; scrollbar-width: none;
  }
  .reels__strip::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 57vw; width: 57vw; will-change: transform, opacity; transform-origin: 50% 40%; }
  .reel:nth-child(even) { margin-top: 0; }
  .reel { transition: none; }
  .reels__dots { display: flex; }
  .reels__note { text-align: center; margin-top: 1.4rem; padding: 0 8vw; }
  .reels__cta { text-align: center; }
}

/* ===== dotyk / úzký displej: ŽÁDNÉ připnuté scény =====
   Brave a Chrome na iOS (WKWebView) při animaci lišty prohlížeče přeskládávají
   prvky position: sticky/fixed — celoobrazovkové sticky scény pak poskakují
   (Safari je animuje plynule). Na dotyku proto hero i služby jedou v normálním
   toku stránky, efekty řídí JS podle pozice prvků. Blok musí být až za
   ostatními media dotazy, aby přebil výšky ze sekce responsive. */
@media (pointer: coarse), (max-width: 720px) {
  .hero { height: auto; }
  .hero__sticky { position: relative; height: calc(100 * var(--vh)); min-height: 560px; }
  .services { height: auto; }
  .services__sticky {
    position: relative; height: auto; overflow: visible; display: block;
  }
  #warpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .services__progress { display: none; }
  .service {
    position: relative; inset: auto; height: calc(100 * var(--vh)); min-height: 0;
    padding: 0; overflow: visible; opacity: 1; visibility: visible;
  }
  .service__inner { filter: none !important; }
  /* Střídání panelů na jednom místě bez připnutí: obsah panelu se během
     průchodu obrazovkou posouvá proti scrollu (translateY = výška·(2t−1)),
     takže drží střed obrazovky, zatímco jeho rodič normálně odjíždí.
     Jede v kompozitoru (scroll-driven animation), layout se nemění.
     Starší WebKit bez view() dostane JS variantu bez posunu. */
  @supports (animation-timeline: view()) {
    .service { view-timeline: --svc block; }   /* subjekt osy = celý panel (výška = 100·--vh) */
    .service__inner {
      animation: svc-fly linear both;
      animation-timeline: --svc;
      will-change: transform, opacity;
    }
  }
  @keyframes svc-fly {
    0%   { transform: translateY(calc(-100 * var(--vh))) scale(0.55); opacity: 0; }
    18%  { transform: translateY(calc(-64 * var(--vh))) scale(0.55); opacity: 0; }
    34%  { transform: translateY(calc(-32 * var(--vh))) scale(1); opacity: 1; }
    62%  { transform: translateY(calc(24 * var(--vh))) scale(1.04); opacity: 1; }
    80%  { transform: translateY(calc(60 * var(--vh))) scale(1.8); opacity: 0; }
    100% { transform: translateY(calc(100 * var(--vh))) scale(2.2); opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}
