/* ============================================================
   SINTERA web · CSS portováno z Claude Design prototypu "Sintera - Live prototyp v5".
   Vizuální jazyk 1:1 dle designu. Fonty self-hostované (viz fonts.css).
   ============================================================ */
/* Sintera · Live prototyp */
:root {
  --accent: #c8704f;
  --bg: #0e1230;
  --panel: #161b3f;
  --ink: #f2efe7;
  --dim: #9298bd;
  --line: rgba(242, 239, 231, 0.14);
  --serif: "Libre Caslon Display", serif;
  --serif-text: "Libre Caslon Text", serif;
  --sans: "Archivo", sans-serif;
}
html[data-theme="svetly"] {
  --bg: #faf7f2;
  --panel: #ffffff;
  --ink: #1e2456;
  --dim: #707590;
  --line: rgba(30, 36, 86, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url%28%23n%29' opacity='0.7'/%3E%3C/svg%3E");
}

/* logo theme swap */
.logo-light { display: none; }
.logo-dark { display: block; }
html[data-theme="svetly"] .logo-light { display: block; }
html[data-theme="svetly"] .logo-dark { display: none; }

/* ---------- nav ---------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 56px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#nav.scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 56px;
}
.nav-logo img { height: 40px; display: block; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--dim); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 56px 80px;
  position: relative;
}
.hero-dashes i {
  position: absolute;
  height: 10px;
  background: var(--accent);
  opacity: 0.85;
  animation: dash-float 7s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-dashes i:nth-child(2n) { animation-duration: 9s; opacity: 0.5; }
.hero-dashes i:nth-child(3n) { animation-delay: -3s; }
@keyframes dash-float {
  from { margin-top: -14px; }
  to { margin-top: 14px; }
}
.hero-inner { max-width: 1240px; position: relative; }
.overline {
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}
.overline::before { content: ""; width: 44px; height: 6px; background: var(--accent); display: block; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 6.6vw, 104px);
  line-height: 1.02;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-family: var(--serif-text); }
.hl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hl-in { display: inline-block; }
.hero-sub { font-size: 21px; line-height: 1.6; color: var(--dim); max-width: 620px; margin: 0 0 48px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 20px; align-items: center; }
.btn { display: inline-block; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 19px 38px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.btn-primary:hover { box-shadow: 0 12px 36px color-mix(in oklab, var(--accent) 45%, transparent); }
.btn-line { color: var(--ink); border-bottom: 2px solid var(--accent); padding: 6px 2px; transition: color 0.25s; }
.btn-line:hover { color: var(--accent); }
.btn-big { font-size: 19px; padding: 24px 52px; }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-scroll span { display: block; width: 1px; height: 48px; background: var(--dim); position: relative; overflow: hidden; }
.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-hint 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes scroll-hint { to { top: 110%; } }

/* ---------- marquee ---------- */
.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; position: relative; }
.marquee-label {
  position: absolute;
  top: -11px;
  left: 56px;
  background: var(--bg);
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: background 0.4s ease;
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: mq 320s linear infinite; }
.mq-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.25s;
}
.marquee-track span:hover { color: var(--accent); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections shared ---------- */
.kicker { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 600; }
.sect-head { padding: 0 0 56px; }
.sect-head h2, .process-left h2, .cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 3.8vw, 58px);
  line-height: 1.1;
  margin: 0;
}
section { padding: 120px 56px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.process-left { position: sticky; top: 140px; align-self: start; }
.process-left p { font-size: 18.5px; line-height: 1.6; color: var(--dim); max-width: 460px; margin: 24px 0 40px; }
.process-progress { width: 2px; height: 180px; background: var(--line); position: relative; }
.process-progress i { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--accent); transition: height 0.4s ease; }
.process-steps { display: flex; flex-direction: column; }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 48px 0; opacity: 0.3; transform: translateX(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.step.active { opacity: 1; transform: none; }
.step .n { font-family: var(--serif); font-size: 52px; color: var(--accent); display: block; margin-bottom: 24px; }
.step h3 { font-size: 30px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.step p { font-size: 18px; line-height: 1.6; color: var(--dim); margin: 0; max-width: 480px; }

/* ---------- big quote ---------- */
.bigquote { text-align: center; padding: 140px 56px; position: relative; }
.bq-mark {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 220px;
  line-height: 1;
  color: color-mix(in oklab, var(--accent) 18%, transparent);
  pointer-events: none;
  z-index: 0;
}
.bigquote blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.3;
  margin: 0 auto 40px;
  max-width: 1060px;
  text-wrap: balance;
}
.bigquote blockquote em { font-family: var(--serif-text); }
.bq-who { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.bq-who strong { color: var(--ink); }

/* ---------- refs ---------- */
.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.ref-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}
.ref-card blockquote { margin: 0 0 28px; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.ref-card .who { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.ref-card .who strong { color: var(--accent); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.ref-card .who span { font-size: 13.5px; color: var(--dim); letter-spacing: 0.06em; }

/* ---------- positions ---------- */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.f-chip { position: relative; }
.f-chip summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 13px 22px;
  font-size: 14.5px;
  user-select: none;
  transition: border-color 0.25s;
}
.f-chip summary::-webkit-details-marker { display: none; }
.f-chip summary::after { content: "▾"; font-size: 10px; color: var(--accent); transition: transform 0.25s; }
.f-chip[open] summary::after { transform: rotate(180deg); }
.f-chip summary b { font-weight: 600; color: var(--accent); }
.f-chip[data-active="true"] summary { border-color: var(--accent); }
.f-chip:hover summary { border-color: var(--accent); }
.f-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.f-menu button {
  all: unset;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: var(--sans);
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.f-menu button:hover { background: color-mix(in oklab, var(--accent) 16%, transparent); }
.f-menu button.sel { color: var(--accent); font-weight: 600; }
.f-reset {
  all: unset;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dim);
  padding: 13px 10px;
  transition: color 0.2s;
}
.f-reset:hover { color: var(--accent); }
.f-count { margin-left: auto; font-size: 13.5px; color: var(--dim); letter-spacing: 0.06em; }
.f-search {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 13px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  transition: border-color 0.25s;
}
.f-search::placeholder { color: var(--dim); }
.f-search:focus { outline: none; border-color: var(--accent); }
@media (max-width: 640px) { .f-search { max-width: none; width: 100%; } }

.pos-list { border-top: 1px solid var(--line); }
.pos-row {
  display: grid;
  grid-template-columns: 1fr 220px 170px 220px 40px;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
  animation: pos-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes pos-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.pos-row:hover { background: color-mix(in oklab, var(--panel) 70%, transparent); padding-left: 24px; padding-right: 16px; }
.pos-row .t { font-size: 21px; font-weight: 500; letter-spacing: -0.005em; }
.pos-row .m { font-size: 14px; color: var(--dim); letter-spacing: 0.04em; }
.pos-row .m.loc { color: var(--accent); }
.pos-row .arr { color: var(--accent); font-size: 22px; text-align: right; transform: translateX(-8px); opacity: 0.4; transition: transform 0.3s, opacity 0.3s; }
.pos-row:hover .arr { transform: none; opacity: 1; }
.pos-empty { padding: 48px 8px; font-size: 18px; color: var(--dim); border-bottom: 1px solid var(--line); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { border: 1px dashed var(--line); padding: 32px; transition: border-color 0.3s; }
.news-card:hover { border-color: var(--accent); }
.news-card .tag { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 18px; }
.news-card h4 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.4; }

/* ---------- cta ---------- */
.cta { text-align: center; padding: 160px 56px; }
.cta h2 { font-size: clamp(48px, 5vw, 76px); margin: 0 0 20px; }
.cta h2 em { font-family: var(--serif-text); }
.cta p { font-size: 19px; color: var(--dim); margin: 0 0 48px; }

/* ---------- footer ---------- */
footer { padding: 64px 56px; border-top: 1px solid var(--line); display: flex; gap: 72px; align-items: flex-start; }
footer .nav-logo img { height: 38px; }
.foot-col { font-size: 14.5px; line-height: 2.1; color: var(--dim); }
.foot-col strong { color: var(--ink); display: block; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
footer .copy { margin-left: auto; align-self: flex-end; font-size: 13px; color: var(--dim); }

/* ---------- reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="plne"] .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  html[data-motion="plne"] .rv.in { opacity: 1; transform: none; }
  html[data-motion="plne"] .rv-load { opacity: 0; transform: translateY(20px); animation: rv-load 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--d) * 110ms); }
  html[data-motion="plne"] .hl-in { transform: translateY(115%); animation: hl-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--d) * 110ms); }
}
@keyframes rv-load { to { opacity: 1; transform: none; } }
@keyframes hl-up { to { transform: none; } }
html[data-motion="jemne"] .hero-dashes i,
html[data-motion="jemne"] .marquee-track,
html[data-motion="jemne"] .hero-scroll span::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-dashes i, .marquee-track, .hero-scroll span::after { animation: none; }
}

/* v4 · spojující nit: linka + body */
body { position: relative; }

#thread-svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}
.thread-base {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.thread-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.thread-node .dot {
  fill: var(--bg);
  stroke: var(--dim);
  stroke-width: 2;
  transition: fill 0.35s ease, stroke 0.35s ease;
}
.thread-node .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
}
.thread-node.on .dot { fill: var(--accent); stroke: var(--accent); }
.thread-node.on .ring { animation: ring-pop 0.7s ease-out both; }
@keyframes ring-pop {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.8); }
}
.thread-node { transform-box: fill-box; transform-origin: center; }
.thread-node .ring { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .thread-node.on .ring { animation: none; }
}

/* ---------- ticker CTA ---------- */
.ticker-cta {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
}
.ticker-cta .tk-track {
  display: inline-flex;
  width: max-content;
  animation: mq 26s linear infinite;
}
.ticker-cta:hover .tk-track { animation-play-state: paused; }
.ticker-cta span {
  font-family: "Libre Caslon Display", serif;
  font-size: 30px;
  color: var(--dim);
  transition: color 0.25s;
  padding-right: 18px;
}
.ticker-cta span i { font-style: normal; color: var(--accent); padding: 0 10px; }
.ticker-cta:hover span { color: var(--ink); }
html[data-motion="jemne"] .ticker-cta .tk-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticker-cta .tk-track { animation: none; } }

/* Sintera · Live prototyp v5
   Vrstva nad live.css: nové sekce, světlé čtecí pásy, důkazní systém,
   detail pozice + formulář, plná responzivita. Vizuální jazyk beze změny. */

/* ---------- hero headline: delší fráze v5 ---------- */
.hero h1 { font-size: clamp(40px, 5.5vw, 90px); }
.hero h1 .hl-in { white-space: nowrap; }
@media (max-width: 860px) {
  .hero h1 .hl { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .hero h1 .hl-in { white-space: normal; display: block; transform: none; animation: none; }
}

/* ---------- nav wordmark (místo loga) ---------- */
.nav-wordmark { font-family: var(--serif); font-size: 27px; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.nav-wordmark span { color: var(--accent); }

/* ---------- hero: síť uzlů a nití (metafora „najdeme toho jednoho") ---------- */
.hero-inner { position: relative; z-index: 1; }
.hero-net {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(48vw, 660px);
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(125% 115% at 50% 48%, #000 30%, rgba(0,0,0,0.55) 60%, transparent 82%);
  mask-image: radial-gradient(125% 115% at 50% 48%, #000 30%, rgba(0,0,0,0.55) 60%, transparent 82%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-net svg { width: 100%; height: 100%; display: block; }
.hero-net .net-canvas { width: 100%; height: 100%; display: block; }
.hero-net .net-lines path { stroke: color-mix(in oklab, var(--accent) 26%, transparent); stroke-width: 1; }
.hero-net .net-reach { stroke: color-mix(in oklab, var(--accent) 16%, transparent); stroke-width: 1; stroke-dasharray: 2 8; }
.hero-net .net-nodes circle { fill: var(--dim); opacity: 0.4; transition: fill 0.5s ease, opacity 0.5s ease; }
.hero-net .net-nodes circle.faint { opacity: 0.16; }
.hero-net .net-nodes circle.lit { fill: var(--accent); opacity: 1; }
/* hero: searchlight přes anonymní profilové karty (skrytý trh) */
.hero-net .search-field { position: absolute; inset: 0; }
.hero-net .searchlight { position: absolute; left: 0; top: 0; width: 340px; height: 340px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,246,235,0.12), rgba(255,246,235,0.04) 44%, transparent 70%); mix-blend-mode: screen; will-change: transform; z-index: 1; }
.hero-net .pcard { position: absolute; width: 212px; box-sizing: border-box; border: 1px solid rgba(242,239,231,0.12); background: rgba(14,18,48,0.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); border-radius: 20px; padding: 15px 17px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 34px rgba(0,0,0,0.32); opacity: var(--o, 0.5); transform: scale(var(--s, 1)); transform-origin: center; filter: blur(var(--b, 0px)); transition: opacity 0.6s ease, border-color 0.45s ease, box-shadow 0.45s ease, filter 0.5s ease; }
.hero-net .pcard .pc-name { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.05; }
.hero-net .pcard .pc-loc { font-size: 11.5px; letter-spacing: 0.04em; color: rgba(242,239,231,0.55); }
.hero-net .pcard .pc-role { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); }
.hero-net .pcard .pc-proof { font-size: 11.5px; line-height: 1.45; color: rgba(242,239,231,0.6); text-wrap: pretty; }
.hero-net .pcard .pc-status { align-self: flex-start; margin-top: 3px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,239,231,0.55); border: 1px solid rgba(242,239,231,0.14); border-radius: 999px; padding: 3px 10px; }
.hero-net .pcard .pc-dot { position: absolute; top: 14px; right: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 0.4s ease; }
.hero-net .pcard.focus { opacity: calc(var(--o, 0.5) + 0.16); }
.hero-net .pcard.match { opacity: 1 !important; filter: none !important; transform: scale(1.05) !important; border-color: color-mix(in oklab, var(--accent) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent), 0 16px 46px rgba(0,0,0,0.45), 0 0 32px color-mix(in oklab, var(--accent) 20%, transparent); z-index: 20 !important; }
.hero-net .pcard.match .pc-status { border-color: color-mix(in oklab, var(--accent) 55%, transparent); color: var(--accent); }
.hero-net .pcard.match .pc-dot { opacity: 1; }
.hero-net .net-nodes circle.lit { fill: var(--accent); opacity: 1; }
.hero-net .net-dot { fill: var(--dim); opacity: 0.4; transition: fill 0.45s ease, opacity 0.45s ease, filter 0.45s ease; }
.hero-net .net-dot.found { fill: var(--accent); opacity: 1; filter: drop-shadow(0 0 7px color-mix(in oklab, var(--accent) 65%, transparent)); }
.hero-net .net-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero-net .net-pulse.go { animation: net-ignite 0.95s ease-out; }
.hero-net .net-signal { fill: var(--accent); filter: drop-shadow(0 0 4px color-mix(in oklab, var(--accent) 45%, transparent)); }
.hero-net .net-ping { fill: none; stroke: var(--accent); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="plne"] .hero-net .net-float { animation: net-drift 18s ease-in-out infinite alternate; }
}
/* statický fallback: jeden uzel zvýrazněný (jemné / reduced-motion / bez JS) */
html[data-motion="jemne"] .hero-net .net-dot { fill: var(--accent); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-net .net-dot { fill: var(--accent); opacity: 1; } }
@keyframes net-drift { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@keyframes net-ignite { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- nit: zřetelná i přes světlé pásy ---------- */
#thread-svg { z-index: 0; }
.thread-base { stroke: color-mix(in oklab, var(--accent) 52%, transparent); }
.thread-line { stroke: var(--accent); stroke-width: 2.5; }
.hero, #problem, #kontakt { position: relative; z-index: 1; }

/* ---------- loga klientů (marquee + reference) ---------- */
.marquee-track .logo-slot { display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 40px; }
.marquee-track .logo-slot img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: 0.78; transition: opacity 0.25s, filter 0.25s; }
html[data-theme="svetly"] .marquee-track .logo-slot img { filter: grayscale(1); }
.marquee-track .logo-slot img:hover { opacity: 1; filter: none; }
/* reference: barevná loga, jednotná velikost + usazení (normalizovaný kanvas 400x160) */
.ref-logo { height: 60px; margin-bottom: 24px; display: flex; align-items: center; }
.ref-logo img { height: 60px; width: 150px; object-fit: contain; object-position: left center; opacity: 1; }
.ref-logo .ref-logo-name { font-family: var(--serif); font-size: 18px; line-height: 1.15; color: var(--ink); letter-spacing: 0.01em; max-width: 160px; }

/* ---------- globální rytmus ---------- */
.block { padding: clamp(84px, 11vw, 150px) 56px; position: relative; }
.block-inner { max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 980px; }
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.lead em { font-family: var(--serif-text); }
.body {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  color: var(--dim);
  max-width: 720px;
  margin: 28px 0 0;
  text-wrap: pretty;
}
.body + .body { margin-top: 20px; }

/* dvousloupcový "tell" layout: nadpis | text */
.tell { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.tell .lead { margin-top: -0.1em; }
.tell-body { display: flex; flex-direction: column; }

/* ---------- světlý čtecí pás (papír) ---------- */
.panel-light {
  --ink: #1c2150;
  --dim: #5c6285;
  --line: rgba(28, 33, 80, 0.14);
  --panel: #ffffff;
  background: #f3efe7;
  color: var(--ink);
}
html[data-theme="svetly"] .panel-light { background: #ffffff; }
/* tweak: "Celý web tmavý" · čtecí pásy zpět do tmavé palety */
html[data-reading="tmave"] .panel-light {
  --ink: #f2efe7;
  --dim: #9298bd;
  --line: rgba(242, 239, 231, 0.14);
  --panel: #161b3f;
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="svetly"][data-reading="tmave"] .panel-light {
  --ink: #1e2456;
  --dim: #707590;
  --line: rgba(30, 36, 86, 0.16);
  --panel: #ffffff;
  background: var(--bg);
}
html[data-reading="tmave"] .panel-light::before { opacity: 0.25; }
.panel-light .kicker,
.panel-light em { color: var(--accent); }
/* jemný předěl mezi tmou a papírem */
.panel-light::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ---------- důkazní pás (pod hero) ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-intro {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 1000px;
  margin: 0 0 clamp(48px, 6vw, 76px);
  text-wrap: balance;
}
.proof-intro b { color: var(--accent); font-weight: 400; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.proof-item {
  padding: 0 clamp(28px, 3vw, 48px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.proof-item:first-child { padding-left: 0; border-left: 0; }
.proof-pill {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.proof-pill::before { content: ""; width: 26px; height: 5px; background: var(--accent); display: block; }
.proof-quote {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.38;
  margin: 0 0 auto;
  text-wrap: pretty;
}
.proof-who { margin-top: 26px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

/* ---------- velká vytažená věta ---------- */
.pull { text-align: center; }
.pull p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 50px);
  line-height: 1.26;
  margin: 0 auto;
  max-width: 1080px;
  text-wrap: balance;
}
.pull p em { font-family: var(--serif-text); }

/* ---------- mikro-citace (editorial, ne karta) ---------- */
.mcite { max-width: 760px; margin: clamp(40px, 5vw, 60px) 0 0; }
.mcite blockquote {
  margin: 0;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.42;
  text-wrap: pretty;
}
.mcite .who {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mcite .who::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: block; }
.mcite .who strong { color: var(--accent); font-weight: 600; }

/* ---------- infrastruktura: metafora linky ---------- */
.infra-figure {
  margin-top: clamp(44px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.infra-cell {
  background: var(--bg);
  padding: 28px 26px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s;
}
.panel-light .infra-cell { background: #f3efe7; }
.infra-cell .n { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.infra-cell .lbl { font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.infra-cell .sub { font-size: 13px; color: var(--dim); margin-top: 6px; line-height: 1.4; }

/* ---------- case studies ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
}
.case-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.5;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.case-card dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.case-card dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.case-card dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.case-card dd.win { color: var(--accent); font-weight: 500; }

/* ---------- člověk / video sekce ---------- */
.person-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.person-copy .body { color: var(--dim); }
.person-sign { margin-top: 32px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.person-sign strong { color: var(--ink); }
.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 22%, var(--panel)), var(--panel));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.video-play {
  position: relative;
  z-index: 1;
  width: 84px; height: 84px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.video-slot:hover .video-play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); color: #fff; }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-cap {
  position: absolute;
  left: 22px; bottom: 18px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

/* ---------- pozice: detail + formulář ---------- */
.positions-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--dim); max-width: 640px; margin: 0 0 44px; }
.pos-row { cursor: pointer; }
.pos-row .arr { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.pos-row[aria-expanded="true"] .arr { transform: rotate(90deg); opacity: 1; }
.pos-row[aria-expanded="true"] { background: color-mix(in oklab, var(--panel) 70%, transparent); }
.pos-detail {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pos-detail.open { grid-template-rows: 1fr; }
.pos-detail-inner { overflow: hidden; }
.pos-detail-pad {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  padding: 8px 8px 44px;
}
.pos-desc h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 14px; }
.pos-desc p { font-size: 16px; line-height: 1.6; color: var(--dim); margin: 0 0 18px; max-width: 520px; }
.pos-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-tags span {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 7px 14px;
}
.apply-form { display: flex; flex-direction: column; gap: 14px; }
.apply-form .af-title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.apply-form input,
.apply-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: color-mix(in oklab, var(--panel) 60%, transparent);
  border: 1px solid var(--line);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.panel-light .apply-form input,
.panel-light .apply-form textarea { background: #ffffff; }
.apply-form input:focus,
.apply-form textarea:focus { outline: none; border-color: var(--accent); }
.apply-form input::placeholder,
.apply-form textarea::placeholder { color: var(--dim); }
.apply-form textarea { resize: vertical; min-height: 88px; }
.apply-form .btn-primary { border: none; cursor: pointer; align-self: flex-start; font-family: var(--sans); }
.apply-form .af-note { font-size: 12.5px; color: var(--dim); line-height: 1.5; }

/* ---------- patička: rozšířená ---------- */
.foot-legal { width: 100%; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- mobilní nav ---------- */
.nav-toggle { display: none; }
.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  width: 46px; height: 46px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.2s; }
.nav-open .nav-toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- CTA jiskra (hero animace → CTA se aktivuje) ---------- */
#hero-cta { position: relative; }
.cta-spark { position: absolute; top: 11px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(0.3); pointer-events: none; box-shadow: 0 0 9px rgba(255, 255, 255, 0.9); }
.cta-spark.spark { animation: cta-spark 1.7s ease-out; }
@keyframes cta-spark { 0% { opacity: 0; transform: scale(0.2); } 18% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .cta-spark.spark { animation: none; } }

/* ---------- ticker: argumentační pás ---------- */
.ticker-cta { position: relative; }
.tk-rail { position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform: translateY(9px); background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 38%, transparent) 12%, color-mix(in oklab, var(--accent) 38%, transparent) 88%, transparent); opacity: 0.5; pointer-events: none; }
.ticker-cta .tk-track { display: inline-flex; align-items: center; animation: tk-scroll 34s linear infinite; }
.ticker-cta:hover .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-33.333%); } }
html[data-motion="jemne"] .ticker-cta .tk-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticker-cta .tk-track { animation: none; } }
.ticker-cta .tk-seq { display: inline-flex; align-items: center; padding: 0; }
.ticker-cta .tk-thesis { font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); color: var(--dim); padding: 0 22px; white-space: nowrap; transition: color 0.25s; }
.ticker-cta .tk-arr { font-style: normal; color: color-mix(in oklab, var(--accent) 70%, transparent); font-size: 18px; padding: 0; }
.ticker-cta .tk-cta { color: var(--accent); }
.ticker-cta .tk-arr-strong { color: var(--accent); padding: 0 6px; }
.ticker-cta:hover .tk-thesis { color: var(--ink); }
.ticker-cta:hover .tk-cta { color: var(--accent); }

/* ---------- nav scroll-spy ---------- */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- case studies: klikací karty ---------- */
.case-card { cursor: pointer; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s; }
.case-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22); }
.case-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.case-hook { font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0 0 24px; text-wrap: pretty; }
.case-more { margin-top: auto; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.25s; }
.case-card:hover .case-more { gap: 14px; }

/* ---------- case modal ---------- */
.case-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 32px; }
.case-modal[hidden] { display: none; }
.case-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 28, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.case-modal.open .case-modal-backdrop { opacity: 1; }
.case-modal-card { position: relative; background: var(--panel); border: 1px solid var(--line); max-width: 680px; width: 100%; max-height: 86vh; overflow-y: auto; padding: clamp(32px, 4vw, 52px); transform: translateY(16px) scale(0.985); opacity: 0; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s; }
.case-modal.open .case-modal-card { transform: none; opacity: 1; }
.case-modal-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.case-modal-x:hover { border-color: var(--accent); color: var(--accent); }
.case-modal-meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); line-height: 1.5; margin-bottom: 28px; padding-right: 44px; }
.case-dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.case-dl dt { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.case-dl dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.case-dl dd.win { color: var(--accent); }
.case-modal .mcite { margin-top: 30px; }

/* ---------- klienti: statická řádka + pohyblivý logo-pás ---------- */
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px; }
.clients-row .client-name { font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.clients-row .logo-slot img { height: 24px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: 0.7; }
html[data-theme="svetly"] .clients-row .logo-slot img { filter: grayscale(1); }

.logo-band { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.logo-band-track { display: inline-flex; align-items: center; width: max-content; animation: lb-scroll 42s linear infinite; }
.logo-band:hover .logo-band-track { animation-play-state: paused; }
@keyframes lb-scroll { to { transform: translateX(-50%); } }
.logo-band .client-name { font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); white-space: nowrap; padding: 0 38px; }
.logo-band .logo-slot { padding: 0 38px; display: inline-flex; align-items: center; }
.logo-band .logo-slot img { height: 26px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: 0.68; }
html[data-theme="svetly"] .logo-band .logo-slot img { filter: grayscale(1); }
html[data-motion="jemne"] .logo-band-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .logo-band-track { animation: none; } }

/* ---------- rotující výroky o přesnosti ---------- */
.rotor { display: grid; margin-top: clamp(36px, 5vw, 52px); }
.rotor-item { grid-area: 1 / 1; opacity: 0; transform: translateX(70px); transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.33, 0, 0.2, 1); }
.rotor-item.active { opacity: 1; transform: translateX(0); }
.rotor-item.exit { opacity: 0; transform: translateX(-70px); }
.rotor-item blockquote { margin: 0; font-family: var(--serif-text); font-style: italic; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.42; text-wrap: pretty; }
.rotor-item figcaption { margin-top: 16px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.rotor-item figcaption::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: block; }

/* ---------- reference: klikačí + modal ---------- */
.ref-card { cursor: pointer; }
.ref-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ref-more { margin-top: 20px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.25s; }
.ref-card:hover .ref-more { gap: 14px; }
.ref-modal-quote { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.32; color: var(--ink); text-wrap: pretty; }
.ref-modal-who { margin-top: 24px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: flex; flex-direction: column; gap: 5px; }
.ref-modal-who span { color: var(--dim); font-weight: 400; letter-spacing: 0.04em; text-transform: none; font-size: 14px; }
.ref-modal-ctx { margin-top: 22px; font-size: 16px; line-height: 1.6; color: var(--dim); }

/* ---------- čistý hover (bez magnetického efektu) ---------- */
.btn-primary { transition: box-shadow 0.3s ease, transform 0.25s ease; }
.btn-primary:hover { transform: translateY(-2px); }

/* =========================================================
   RESPONZIVITA
   ========================================================= */
@media (max-width: 1080px) {
  .block { padding: clamp(72px, 10vw, 120px) 40px; }
  section { padding: 96px 40px; }
  .hero { padding: 130px 40px 72px; }
  #nav { padding: 18px 40px; gap: 24px; }
  #nav.scrolled { padding: 14px 40px; }
  .hero-scroll { left: 40px; }
  .marquee-label { left: 40px; }
  .tell { grid-template-columns: 1fr; gap: 28px; }
  .person-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr; gap: 8px; }
  .process-left { position: static; }
  .process-progress { display: none; }
  .step { min-height: auto; padding: 36px 0; opacity: 1; transform: none; }
  .pos-detail-pad { grid-template-columns: 1fr; }

  /* dekorativní nit se na úzkých displejích kříží s textem → na mobilu/tabletu skrýt */
  #thread-svg { display: none; }

  /* pozice: blokové rozložení místo pevných sloupců (oprava přetékání doprava) */
  .pos-row {
    display: block;
    grid-template-columns: none;
    position: relative;
    padding: 22px 42px 22px 8px;
  }
  .pos-row:hover { padding-left: 8px; padding-right: 42px; }
  .pos-row .t { display: block; margin-bottom: 6px; }
  .pos-row .m { display: inline; font-size: 14px; }
  .pos-row .m.field::after,
  .pos-row .m.level::after { content: " · "; color: var(--dim); }
  .pos-row .arr { position: absolute; right: 6px; top: 22px; transform: none; opacity: 1; text-align: right; }
  .pos-row[aria-expanded="true"] .arr { transform: rotate(90deg); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 96px 40px 36px;
    margin-left: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    z-index: -1;
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .hero-net { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { padding: 36px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { padding-top: 0; border-top: 0; }
  .proof-pill { margin-bottom: 16px; }
  .refs-grid, .cases-grid { grid-template-columns: 1fr; }
  .infra-figure { grid-template-columns: repeat(2, 1fr); }
  /* .pos-row řešeno výše v ≤1080 (blokové rozložení, bez přetékání) */
  .pos-row .m { font-size: 13px; }
}

@media (max-width: 640px) {
  .block { padding: 72px 22px; }
  section { padding: 76px 22px; }
  .hero { padding: 118px 22px 64px; min-height: 92vh; }
  #nav { padding: 16px 22px; }
  #nav.scrolled { padding: 12px 22px; }
  .hero-scroll { display: none; }
  .marquee-label { left: 22px; }
  .nav-links { padding: 90px 22px 32px; }
  .hero-net { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-sub { font-size: 18px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-ctas .btn { text-align: center; }
  .btn-primary { padding: 17px 30px; }
  .overline { flex-wrap: wrap; gap: 10px; font-size: 12px; margin-bottom: 28px; }
  .bigquote { padding: 88px 22px; }
  .infra-figure { grid-template-columns: 1fr; }
  .video-play { width: 64px; height: 64px; }
  footer { flex-direction: column; gap: 32px; padding: 56px 22px; }
  footer .copy { margin-left: 0; align-self: flex-start; }
  .cta { padding: 110px 22px; }

  /* pozice: jednosloupcový vertikální blok (název, obor, seniorita, lokace; šipka vpravo nahoře) */
  .pos-row { padding: 26px 20px 28px 10px; }
  .pos-row:hover { padding-left: 10px; padding-right: 20px; }
  .pos-row .t { display: block; max-width: calc(100% - 44px); margin-bottom: 12px; }
  .pos-row .m { display: block; margin-top: 5px; }
  .pos-row .m.field::after,
  .pos-row .m.level::after { content: none; }
  .pos-row .m.loc { color: var(--accent); white-space: normal; word-break: normal; overflow-wrap: break-word; }
  .pos-row .arr { top: 26px; right: 6px; }
}

/* ============================================================
   Produkční doplňky (mimo prototyp): skip-link, focus-visible, bonus chip.
   Nemění vizuální jazyk, jen klávesovou přístupnost.
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: #fff; font-weight: 600; padding: 12px 18px; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, .pos-row:focus-visible, .ref-card:focus-visible, .case-card:focus-visible, .nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.pos-bonus { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); border-radius: 999px; padding: 2px 10px; vertical-align: middle; text-transform: none; }

/* rotující klientské citace (.mcite-rotor): stejný vizuál jako .mcite, jen se prolínají */
.mcite-rotor { display: grid; max-width: 760px; margin: clamp(40px, 5vw, 60px) 0 0; }
.mcite-rotor .mcite { grid-area: 1 / 1; max-width: none; margin: 0; opacity: 0; transform: translateX(70px); transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.33, 0, 0.2, 1); }
.mcite-rotor .mcite.active { opacity: 1; transform: translateX(0); }
.mcite-rotor .mcite.exit { opacity: 0; transform: translateX(-70px); }
@media (prefers-reduced-motion: reduce) { .mcite-rotor .mcite { transition: none; } }

/* obsah popisu pozice (descHtml / strukturovaná pole na detailu pozice) */
.body h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin: 32px 0 12px; color: var(--ink); }
.body p { margin: 0 0 14px; }
.body ul { margin: 4px 0 18px; padding: 0; list-style: none; max-width: 720px; }
.body li { position: relative; padding-left: 22px; margin: 9px 0; line-height: 1.55; color: var(--dim); }
.body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.af-gdpr { color: var(--dim); opacity: 0.82; }

/* homepage: výrazný blok „Získat více referencí" na konci sekce Reference */
.ref-archive { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.ref-archive__text { display: flex; flex-direction: column; gap: 5px; max-width: 56ch; }
.ref-archive__text strong { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }
.ref-archive__text span { color: var(--dim); font-size: 15px; line-height: 1.55; }
.ref-archive .btn-primary { white-space: nowrap; }
@media (max-width: 640px) { .ref-archive { padding: 22px; gap: 18px; } .ref-archive .btn-primary { width: 100%; text-align: center; } }

/* homepage rozbalení pozice: jemnější typografie popisu (scopováno pod .pos-desc .body; detailové stránky beze změny) */
.pos-desc .body { max-width: 660px; margin: 0 0 28px; font-size: 16px; line-height: 1.7; } /* margin-top:0 → popis lícuje nahoře s formulářem */
.pos-desc .body > :first-child { margin-top: 0; }
.pos-desc .body p { max-width: inherit; line-height: 1.7; }
.pos-desc .body li { font-size: 16px; line-height: 1.7; margin: 11px 0; padding-left: 18px; }
.pos-desc .body h4 { font-size: 18px; margin: 30px 0 10px; }
.pos-tags .pos-tag-mzda { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.pos-detail-link { margin-top: 20px; }
.pos-detail-link a { font-size: 14px; }

/* rozbalený detail pozice = neprůhledná karta NAD dekorativní nití (#thread-svg má ve světlých sekcích z-index:0) */
.pos-detail { position: relative; z-index: 1; background: var(--panel); }
.panel-light .pos-detail .apply-form input,
.panel-light .pos-detail .apply-form textarea { background: color-mix(in oklab, var(--panel) 90%, var(--ink)); }
