/* ============================================================
   THE MOVE :: Feldenkraisova metoda
   Design system podle šablony Erikk (Webflow)
   Fonty: General Sans (nadpisy) + Roboto Mono (texty)
   Akcent: žlutá #F2AF0E
   ============================================================ */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --grey: #999999;
  --line: #e6e6e6;
  --line-dark: rgba(255, 255, 255, 0.15);
  --yellow: #f2af0e;
  --font-head: "General Sans", sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --gutter: 2.5rem;
  --section-pad: 8rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 160%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Typografie (škála dle šablony: vw + stropy) ---------- */

h1, h2, h3, h4, h5, h6, .h-style {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.h-xlarge { font-size: 11vw;   line-height: 90%;  }
.h-large  { font-size: 8.5vw;  line-height: 100%; }
.h-medium { font-size: 6.5vw;  line-height: 100%; }
.h1       { font-size: 4.5vw;  line-height: 110%; }
.h2       { font-size: 3.25vw; line-height: 110%; }
.h3       { font-size: 2.25vw; line-height: 120%; }
.h4       { font-size: 1.75vw; line-height: 120%; }
.h5       { font-size: 1.5vw;  line-height: 130%; }
.h6       { font-size: 1.25vw; line-height: 130%; }

@media screen and (min-width: 1440px) {
  .h-xlarge { font-size: 10rem; }
  .h-large  { font-size: 8rem; }
  .h-medium { font-size: 6rem; }
  .h1 { font-size: 4rem; }
  .h2 { font-size: 3rem; }
  .h3 { font-size: 2rem; }
  .h4 { font-size: 1.5rem; }
  .h5 { font-size: 1.25rem; }
  .h6 { font-size: 1.125rem; }
}

@media screen and (max-width: 991px) {
  .h-xlarge { font-size: 5.5rem; }
  .h-large  { font-size: 5rem; }
  .h-medium { font-size: 4.5rem; }
  .h1 { font-size: 3.5rem; }
  .h2 { font-size: 2.75rem; }
  .h3 { font-size: 2rem; }
  .h4 { font-size: 1.5rem; }
  .h5 { font-size: 1.25rem; }
  .h6 { font-size: 1.125rem; }
}

@media screen and (max-width: 767px) {
  .h-xlarge { font-size: 3.6rem; }
  .h-large  { font-size: 3.25rem; }
  .h-medium { font-size: 3rem; }
  .h1 { font-size: 2.75rem; }
  .h2 { font-size: 2.25rem; }
  .h3 { font-size: 1.75rem; }
  .h4 { font-size: 1.375rem; }
}

@media screen and (max-width: 479px) {
  .h-xlarge { font-size: 2.75rem; }
  .h-large  { font-size: 2.5rem; }
  .h-medium { font-size: 2.25rem; }
  .h1 { font-size: 2.25rem; }
  .h2 { font-size: 1.875rem; }
  .h3 { font-size: 1.5rem; }
}

.text-large   { font-size: 1.25rem;  line-height: 160%; }
.text-regular { font-size: 1rem;     line-height: 160%; }
.text-small   { font-size: 0.875rem; line-height: 160%; }
.text-tiny    { font-size: 0.75rem;  line-height: 160%; }

@media screen and (max-width: 767px) {
  .text-large { font-size: 1.125rem; }
}

.text-grey { color: var(--grey); }
.text-yellow { color: var(--yellow); }

/* Mono štítek sekce */
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 120%;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Žlutá linka u štítku */
.label::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.label--plain::before { display: none; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--top { padding-bottom: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-head--split {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.section-head--split > p { max-width: 34rem; }

@media screen and (max-width: 991px) {
  :root { --section-pad: 6rem; --gutter: 2rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 767px) {
  :root { --section-pad: 4.5rem; --gutter: 1.25rem; }
  .section-head { margin-bottom: 3rem; }
}

.bg-dark {
  background: var(--ink);
  color: var(--paper);
}

.bg-dark .text-grey { color: rgba(255, 255, 255, 0.55); }
.bg-soft { background: var(--paper-soft); }

/* ---------- Tlačítka ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 500px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--solid {
  background: var(--ink);
  color: var(--paper);
}

.button--solid:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.button--light {
  border-color: var(--paper);
  color: var(--paper);
}

.button--light:hover {
  background: var(--paper);
  color: var(--ink);
}

.button--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.button--yellow:hover {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

/* Textový odkaz se šipkou a žlutým podtržením */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.35rem;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow:hover::after { transform: scaleX(1); }

.link-arrow .arrow { transition: transform 0.3s; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Navigace ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.nav-logo img { height: 26px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

@media screen and (max-width: 991px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu .nav-link { font-size: 1.25rem; }
  .nav-burger { display: flex; }

  .nav-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media screen and (max-width: 479px) {
  .nav-cta { display: none; }
  .nav-menu .nav-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 11rem;
  padding-bottom: 5rem;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* na úzkých displejích se štítky srovnají pod sebe, ať se nelámou */
@media screen and (max-width: 560px) {
  .hero-topline {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.hero h1 { position: relative; z-index: 2; }

.hero-sub {
  max-width: 36rem;
  margin-top: 2.5rem;
  color: var(--grey);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-media {
  position: relative;
  margin-top: 5rem;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: min(80vh, 44rem);
  object-fit: cover;
  filter: grayscale(1);
}

/* Žlutá křivka přes hero */
.hero-curve {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: 46%;
  pointer-events: none;
  z-index: 3;
}

.hero-curve path,
.curve-svg path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 10;
  stroke-linecap: round;
}

@media screen and (max-width: 767px) {
  .hero { padding-top: 8rem; }
  .hero-topline { margin-bottom: 2.5rem; }
  .hero-media video, .hero-media img { height: 60vh; }
}

/* ---------- Termíny (rozvrh) ---------- */

.schedule { border-top: 1px solid var(--line); }

.schedule-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  width: 2rem;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-row:hover { padding-left: 3rem; }
.schedule-row:hover::before { transform: translateY(-50%) scaleX(1); }

.schedule-time { font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }

.schedule-place {
  font-family: var(--font-head);
  font-size: 1.375rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 120%;
}

.schedule-free {
  font-size: 13px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-free--low { color: var(--yellow); }

.schedule-free--full { color: var(--grey); text-decoration: line-through; }

.schedule-loading { padding: 2rem 0; }

.schedule-place small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: none;
}

.schedule-more { margin-top: 3rem; display: flex; justify-content: center; }

@media screen and (max-width: 767px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }
  .schedule-row:hover { padding-left: 0; }
  .schedule-row .button { margin-top: 0.75rem; justify-self: start; }
}

/* ---------- Benefity ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.benefit { display: flex; flex-direction: column; gap: 1.25rem; }

.benefit-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.5px;
}

.benefit h3 { position: relative; padding-top: 1.25rem; }

.benefit h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--yellow);
}

.benefit p { color: var(--grey); font-size: 0.875rem; }

@media screen and (max-width: 991px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 479px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---------- Foto pás ---------- */

/* Video na celou šířku nad fotopásem */
.band-video {
  position: relative;
  margin-top: 5rem;
  background: var(--ink);
  overflow: hidden;
}

.band-video video {
  width: 100%;
  height: auto;
  display: block;
}

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.photo-band figure { overflow: hidden; aspect-ratio: 3 / 2; }

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-band figure:hover img { transform: scale(1.04); }

@media screen and (max-width: 767px) {
  .photo-band { grid-template-columns: 1fr; }
}

/* ---------- Dva směry (karty) ---------- */

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 8.5rem 3rem 3.5rem;
  overflow: hidden;
}

.path-card .curve-svg {
  position: absolute;
  right: -6%;
  top: -8%;
  width: 100%;
  opacity: 0.9;
  pointer-events: none;
}

/* varianta přes celou šířku karty: oba konce vybíhají do stran */
.path-card .curve-svg--full {
  left: -6%;
  right: auto;
  width: 112%;
}

.path-card-label {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.path-card h3 { position: relative; z-index: 2; }

.path-card .path-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  width: fit-content;
}

.path-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  max-width: 30rem;
  position: relative;
  z-index: 2;
}

.path-card .link-arrow { color: var(--paper); margin-top: auto; }

@media screen and (max-width: 991px) {
  .paths-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 479px) {
  .path-card { padding: 6rem 1.5rem 2.5rem; }
}

/* ---------- O lektorce ---------- */

.trainer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.trainer-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 3rem 9rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

.trainer-card .curve-svg {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 78%;
  opacity: 0.85;
  pointer-events: none;
}

.trainer-card blockquote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  border-left: 2px solid var(--yellow);
  padding-left: 1.25rem;
  font-size: 0.9375rem;
}

.trainer-card p { color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; position: relative; z-index: 2; }
.trainer-card .link-arrow { color: var(--paper); margin-top: auto; position: relative; z-index: 2; }

.trainer-photo { overflow: hidden; }

.trainer-photo img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.trainer-photo:hover img { transform: scale(1.04); }

/* Varianta s videem: čistě vizuální prvek, běží samo a bez zvuku.
   Bez přiblížení při najetí, obraz se hýbe sám. */
.trainer-photo--video video {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
  background: var(--ink);
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .trainer-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 479px) {
  .trainer-card { padding: 2.5rem 1.5rem 6.5rem; }
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.contact-direct a {
  width: fit-content;
  position: relative;
  padding-bottom: 0.2rem;
}

.contact-direct a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.contact-direct a:hover::after { transform: scaleX(1); }

.form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-field label {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  border-radius: 0;
  transition: border-color 0.3s;
}

.form-field textarea { min-height: 7rem; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--yellow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.form-check { max-width: 10rem; }

.form-note { font-size: 0.75rem; color: var(--grey); }

@media screen and (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 479px) {
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Rezervační okno ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  padding: 2.5rem;
  animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.modal-close:hover { background: var(--yellow); border-color: var(--yellow); }

.modal-lesson {
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.booking-form .button { align-self: flex-start; }

.booking-error {
  color: #d0342c;
  font-size: 0.8125rem;
}

.booking-success {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-success[hidden],
.booking-form[hidden] { display: none; }

.booking-success p {
  border-left: 3px solid var(--yellow);
  padding-left: 1.25rem;
}

.booking-success .button { align-self: flex-start; }

@media screen and (max-width: 479px) {
  .modal-box { padding: 2rem 1.5rem; }
}

/* ---------- Reference (slider) ---------- */

.refs-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.refs-band .curve-svg {
  position: absolute;
  right: -5%;
  bottom: -8%;
  width: 55%;
  opacity: 0.9;
  pointer-events: none;
}

.refs {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}

.refs-track {
  display: grid;
  cursor: grab;
}

.refs-track:active { cursor: grabbing; }

.ref-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ref-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ref-slide blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0;
}

.ref-slide blockquote::before { content: "„"; color: var(--yellow); }
.ref-slide blockquote::after  { content: "“"; color: var(--yellow); }

.ref-slide figcaption {
  margin-top: 1.75rem;
  color: var(--grey);
}

.refs-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.refs-btn {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.refs-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.refs-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--grey);
  white-space: nowrap;
}

/* tenká linka ukazující čas do dalšího snímku */
.refs-progress {
  flex: 0 1 6rem;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.refs-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

.refs.is-auto .refs-progress > span {
  animation: refs-progress var(--refs-interval, 7s) linear;
}

@keyframes refs-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media screen and (max-width: 479px) {
  .refs-nav { gap: 1rem; }
  .refs-progress { flex-basis: 3.5rem; }
}

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.75rem 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 130%;
  color: var(--ink);
}

.faq-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: background-color 0.3s, color 0.3s, transform 0.4s, border-color 0.3s;
}

.faq-item.is-open .faq-icon {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
  padding: 0 0 1.75rem;
  color: var(--grey);
  max-width: 46rem;
}

@media screen and (max-width: 479px) {
  .faq-question { font-size: 1rem; }
}

/* ---------- Mezistránkové CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-bottom: 14rem;
}

.cta-band .curve-svg {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 64%;
  pointer-events: none;
  opacity: 0.9;
}

@media screen and (max-width: 767px) {
  .cta-band { padding-bottom: 10rem; }
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* ---------- Video sekce ---------- */

.video-figure {
  position: relative;
  overflow: hidden;
}

/* Tlačítko přehrání přes video, stejné jako u karet s příběhy.
   Vkládá ho JS ke každému videu s ovládáním; po prvním spuštění zmizí
   a dál se ovládá běžnými prvky přehrávače. */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 4.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.4s, transform 0.4s;
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--paper);
  margin-left: 5px;
  transition: border-color 0.3s;
}

.play-badge:hover { background: var(--yellow); }
.play-badge:hover::before { border-left-color: var(--ink); }

.play-badge.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

@media screen and (max-width: 479px) {
  .play-badge { width: 3.5rem; height: 3.5rem; }
  .play-badge::before { border-width: 9px 0 9px 14px; }
}

.video-figure video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--ink);
}

/* Hero mřížka: video vlevo, černý box vpravo */
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 4rem;
}

.hero-grid .video-figure { align-self: start; }

.promo-box {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

.promo-box p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

.promo-box .curve-svg {
  position: absolute;
  left: -8%;
  bottom: -10%;
  width: 118%;
  pointer-events: none;
}

.promo-box .button { margin-top: auto; position: relative; z-index: 2; align-self: flex-start; }

.button--white {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--white:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

@media screen and (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .promo-box { min-height: 24rem; }
}

/* ---------- Fotorastr ---------- */

/* Zděný rastr: každá fotka si drží svůj poměr stran, nic se neořezává.
   Fotky na výšku zůstanou na výšku, širokoúhlé na šířku. */
.gallery-grid {
  column-count: 3;
  column-gap: 1.25rem;
}

.gallery-item,
.gallery-tile-curve {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  width: 100%;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: var(--ink);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); opacity: 0.85; }

.gallery-item:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ikonka lupy v rohu, ať je poznat, že jde o klikatelnou fotku */
.gallery-item::after {
  content: "+";
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; transform: none; }

@media screen and (max-width: 991px) {
  .gallery-grid { column-count: 2; }
}

@media screen and (max-width: 479px) {
  .gallery-grid { column-count: 1; }
}

/* ---------- Prohlížeč fotek ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.25rem 5.5rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  animation: lightbox-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  text-align: center;
}

.lightbox-counter { color: var(--yellow); }

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.5);
  color: var(--paper);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
}

.lightbox-arrow--prev { left: 1.25rem; }
.lightbox-arrow--next { right: 1.25rem; }

@media screen and (max-width: 767px) {
  .lightbox { padding: 4rem 0.75rem 6.5rem; }
  .lightbox-arrow { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox-arrow--prev { left: calc(50% - 4rem); }
  .lightbox-arrow--next { right: calc(50% - 4rem); }
}

/* Tmavá dlaždice s nekonečnou smyčkou žluté linky */
.gallery-tile-curve {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  /* v zděném rastru nemá dlaždice obrázek, výšku jí dá poměr stran
     shodný s širokoúhlými fotkami */
  aspect-ratio: 16 / 9;
}

.gallery-tile-curve .curve-svg {
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 120%;
}

.gallery-tile-curve .tile-logo {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  height: 22px;
  width: auto;
}

@media screen and (max-width: 991px) {
  .gallery-grid { grid-auto-rows: 12rem; }
}

@media screen and (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; gap: 0.75rem; }
}

/* ---------- Příběhy (roztahovací video karty) ---------- */

.stories {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.story {
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  transition: flex 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-media {
  position: relative;
  height: 30rem;
  overflow: hidden;
  background: var(--ink);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}

.story:not(.is-open):hover .story-media img { transform: scale(1.04); }

.story-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, opacity 0.35s;
  pointer-events: none;
}

.story-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--paper);
  margin-left: 4px;
  transition: border-color 0.3s;
}

.story:not(.is-open):hover .story-play { background: var(--yellow); }
.story:not(.is-open):hover .story-play::before { border-left-color: var(--ink); }

.story-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.35s;
}

.story-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s 0.4s, background-color 0.25s;
}

.story-close:hover { background: var(--yellow); }

.story.is-open { flex: 3 1 0; cursor: default; }

.story.is-open .story-media img,
.story.is-open .story-play { opacity: 0; }

.story.is-open .story-media video { opacity: 1; pointer-events: auto; }
.story.is-open .story-close { opacity: 1; pointer-events: auto; }

.stories.has-open .story:not(.is-open) { flex: 0.55 1 0; }

.story-caption { padding-top: 1.25rem; }

.story-caption h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-caption p {
  margin-top: 0.35rem;
  transition: opacity 0.4s;
}

.story-quote {
  font-size: 0.875rem;
  line-height: 160%;
  font-style: italic;
  color: var(--grey);
  border-left: 2px solid var(--yellow);
  padding-left: 0.85rem;
  margin-top: 0.6rem !important;
}

.stories.has-open .story:not(.is-open) .story-caption p { opacity: 0; }

@media screen and (max-width: 767px) {
  .stories { flex-direction: column; }
  .story-media { height: 15rem; }
  .story.is-open .story-media { height: auto; aspect-ratio: 16 / 9; }
  .stories.has-open .story:not(.is-open) .story-caption p { opacity: 1; }
}

/* ---------- Obsahové bloky podstránek ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--reverse .split-media { order: 2; }

.split-media { overflow: hidden; }

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-media:hover img { transform: scale(1.04); }

.split-body { display: flex; flex-direction: column; gap: 1.5rem; }
.split-body p { color: var(--grey); }

@media screen and (max-width: 991px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split-media { order: 0; }
}

/* Problémové otázky (podstránky) */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

.pain { display: flex; flex-direction: column; gap: 1rem; }

.pain h3 { position: relative; padding-top: 1.25rem; }

.pain h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--yellow);
}

.pain p { color: var(--grey); font-size: 0.875rem; }

@media screen and (max-width: 991px) {
  .pains { grid-template-columns: 1fr; }
}

/* Číslované přínosy (Artists) */
.numbered { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.numbered-item {
  display: grid;
  grid-template-columns: 6rem 1fr 1.4fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.numbered-item .num {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--yellow);
  line-height: 100%;
}

.numbered-item p { color: var(--grey); font-size: 0.9375rem; }

@media screen and (max-width: 991px) {
  .numbered-item { grid-template-columns: 4rem 1fr; }
  .numbered-item p { grid-column: 2; }
}

@media screen and (max-width: 479px) {
  .numbered-item { grid-template-columns: 1fr; gap: 1rem; }
  .numbered-item p { grid-column: 1; }
}

/* ---------- Právní stránky ---------- */

.legal { display: flex; flex-direction: column; }

.legal-block {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.legal-block:last-child { border-bottom: 1px solid var(--line); }

.legal-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.5px;
}

.legal-body { max-width: 46rem; }

.legal-body h2 { margin-bottom: 1.5rem; }

.legal-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-top: 1.25rem;
}

.legal-body h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--yellow);
}

.legal-body p { color: var(--grey); margin-bottom: 1rem; }
.legal-body p strong { color: var(--ink); font-weight: 400; }

.legal-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--yellow);
  transition: background-color 0.25s;
}

.legal-body a:hover { background: var(--yellow); }

.legal-list {
  list-style: none;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-list li {
  color: var(--grey);
  padding-left: 1.5rem;
  position: relative;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.75rem;
  height: 2px;
  background: var(--yellow);
}

.legal-list li strong { color: var(--ink); font-weight: 400; }

.legal-highlight {
  border-left: 2px solid var(--yellow);
  padding-left: 1.25rem;
  color: var(--ink) !important;
  line-height: 180%;
}

/* dočasné zvýraznění míst, kam se doplní firemní údaje */
[data-doplnit] {
  background: rgba(242, 175, 14, 0.18);
  outline: 1px dashed var(--yellow);
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .legal-block { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 6rem;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer h4 { margin-bottom: 1.25rem; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col a {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
  position: relative;
}

.footer-col a:hover { color: var(--yellow); }

.footer-tagline { color: rgba(255, 255, 255, 0.55); max-width: 24rem; font-size: 0.875rem; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}

.footer-bottom a:hover { color: var(--yellow); }

/* Obří rolující nápis */
.footer-marquee {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding: 2rem 0 1rem;
  white-space: nowrap;
  overflow: hidden;
}

.footer-marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 28s linear infinite;
}

.footer-marquee span {
  font-family: var(--font-head);
  font-size: 11vw;
  line-height: 90%;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
}

.footer-marquee span em {
  font-style: normal;
  color: var(--yellow);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media screen and (max-width: 991px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 479px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Animace při scrollu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Maskované odkrytí nadpisu po řádcích */
.mask-line { display: block; overflow: hidden; }

.mask-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.is-visible .mask-line > span,
.mask-line.is-visible > span { transform: translateY(0); }

/* Postupné nadpisy: JS rozdělí text na písmena (.ltr) a nadpis dostane
   .ltr-heading, původní řádkové odkrývání se pak vypne a animují se
   jednotlivá písmena: zespodu, z rozostření, se zpožděním zleva doprava. */
.ltr-heading .mask-line { overflow: visible; }

.ltr-heading .mask-line > span {
  transform: none;
  transition: none;
}

.ltr {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.22em);
  transition:
    opacity 0.45s ease,
    filter 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ltr-i, 0) * 0.03s);
}

.mask-line.is-visible .ltr {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ---------- Žluté linky: všechny putují jako had ----------
   Linka se vykresluje odpředu („hlava"), chvíli zůstane celá a pak ji
   stejným směrem dožene „ocas", odteče za konec cesty a začne znovu.
   Konstantní rychlost (linear), aby šlo o plynulý pohyb, ne o mizení.

   Zápornou délku bere z --curve-len-neg, kterou nastavuje JS. Zápis
   calc(var(--curve-len) * -1) se v keyframes NEinterpoluje a linka by
   místo odtečení skokem zhasla.

   Třídy curve-anim-* už neurčují druh animace, ale jen její tempo,
   aby dvě sousední linky nešly v zákrytu.                              */

.curve-svg path {
  stroke-dasharray: var(--curve-len, 1600);
  stroke-dashoffset: var(--curve-len, 1600);
}

@keyframes curve-snake {
  0%   { stroke-dashoffset: var(--curve-len, 1600); }       /* před začátkem cesty */
  47%  { stroke-dashoffset: 0; }                            /* celá vykreslená */
  53%  { stroke-dashoffset: 0; }                            /* krátký nádech */
  100% { stroke-dashoffset: var(--curve-len-neg, -1600); }  /* odtekla za konec */
}

.curve-svg.is-visible path {
  animation: curve-snake var(--snake-dur, 6.5s) linear var(--snake-delay, 0s) infinite;
}

/* tempa: každá skupina jinak rychle a s jiným náběhem */
.curve-anim-draw  { --snake-dur: 8s;   --snake-delay: 0.2s; }  /* hero fotky */
.curve-anim-quick { --snake-dur: 5.5s; --snake-delay: 0s;   }  /* karta Návrat k lehkosti */
.curve-anim-loop  { --snake-dur: 6.5s; --snake-delay: 0.9s; }  /* karta Artists, galerie */
.curve-anim-rise  { --snake-dur: 7.5s; --snake-delay: 0.5s; }  /* karty lektorky */
.curve-anim-float { --snake-dur: 9s;   --snake-delay: 1.2s; }  /* CTA pásy, promo box */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mask-line > span { opacity: 1; transform: none; transition: none; }
  .ltr { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  .curve-svg path { stroke-dashoffset: 0 !important; transition: none !important; }
  .curve-svg, .curve-svg.is-visible { animation: none !important; }
  .footer-marquee-track { animation: none; }
}
