/* SEME - koncepcja C "Cinematic Tech", prototyp Hero v0.1 */

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

html {
  background: var(--ct-bg);
  color: var(--ct-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ct-surface-hl) var(--ct-bg);
}

body {
  margin: 0;
  font-family: var(--ct-font-ui);
  font-size: var(--ct-body);
  line-height: 1.55;
  background: var(--ct-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ct-cobalt); color: var(--ct-white); }

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

a { color: inherit; }

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

[tabindex="-1"]:focus { outline: none; }

.todo { color: var(--ct-text-3); }

/* Skip link */
.skip-link {
  position: fixed;
  left: var(--ct-gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ct-white);
  color: var(--ct-bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--ct-radius);
  transform: translateY(-160%);
  transition: transform var(--ct-fast) var(--ct-ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--ct-header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--ct-mid) var(--ct-ease-out), border-color var(--ct-mid) var(--ct-ease-out);
}
.site-header.is-solid {
  background: var(--ct-header-solid);
  border-bottom-color: var(--ct-line-soft);
}
.site-header__inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--ct-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 1;
  padding: 0.5rem 0;
}
.wordmark__name {
  font-family: var(--ct-font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
}
.wordmark__desc {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ct-text-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}
.site-nav__list {
  display: flex;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
  transition: color var(--ct-fast) var(--ct-ease-out);
}
.site-nav__list a:hover {
  color: var(--ct-accent-text);
  text-decoration-line: underline;
}

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--ct-radius);
  font-family: var(--ct-font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ct-fast) var(--ct-ease-out), border-color var(--ct-fast) var(--ct-ease-out), color var(--ct-fast) var(--ct-ease-out);
}
.btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; }
.btn--cta { background: var(--ct-cta); color: var(--ct-on-cta); }
.btn--cta:hover { background: var(--ct-cta-hover); }
.btn--cta:active { background: #AE1828; }
.btn--ghost {
  color: var(--ct-text);
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(13 17 26 / 0.35);
}
.btn--ghost:hover { border-color: var(--ct-white); }
.btn__icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--ghost:hover .btn__icon { transform: translateY(2px); }
.btn__icon { transition: transform var(--ct-fast) var(--ct-ease-out); }

/* ---------- Scene ---------- */
.scene {
  position: relative;
  background: var(--ct-bg);
  /* Bez JS / reduced motion: zwykły pierwszy ekran */
  --sh: 100svh;              /* wysokość sceny źródłowej 1376x768 */
  /* środek postaci: tak daleko w prawo, żeby 1. linia H1 kończyła się ~40 px przed sylwetką
     (szer. linii „Zawsze w kontakcie.” ≈ 9.95 × rozmiar H1 w Poppins 600; od środka postaci do lewego łokcia 259/768 wysokości sceny) */
  --copy-left: max(var(--ct-gutter), (100vw - 1600px) / 2 + var(--ct-gutter));
  --ax: max(57vw, calc(var(--copy-left) + var(--ct-h1) * 9.95 + 2.5rem + var(--sh) * 0.337));
  --sy: clamp(0px, 4.5svh, 44px);
}
.scene__sticky {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
/* długość sceny = wysokość ekranu + dystans przewijania (desktop domyślnie 2200 px, telefon 1300 px) */
.has-scene .scene { height: calc(100svh + var(--scene-scroll-desktop, 1600px)); }
@media (max-width: 767px) { .has-scene .scene { height: calc(100svh + var(--scene-scroll-phone, 1000px)); } }
.has-scene .scene__sticky { position: sticky; top: 0; }

.stage {
  position: absolute;
  margin: 0;
  z-index: 1;
  height: var(--sh);
  width: calc(var(--sh) * 1.791667);
  /* 0.548 = 754 / 1376: środek postaci na pierwszym zdjęciu */
  left: calc(var(--ax) - var(--sh) * 1.791667 * 0.548);
  top: var(--sy);
  /* środek ekranu laptopa na ostatniej klatce: 691.65 / 1376, 446.2 / 768 */
  transform-origin: 50.265% 58.099%;
}
.stage__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.stage__photo { object-fit: fill; }
.stage__photo--end,
.stage__video { object-fit: fill; opacity: 0; }
.stage__word { overflow: visible; pointer-events: none; }
.stage__word text {
  font-family: var(--ct-font-display);
  font-weight: 800;
  font-size: 404px;
  letter-spacing: 0;          /* odstępy między literami liczy script.js */
  fill: var(--ct-word);
}
.stage__word .word-narrow { display: none; font-size: 214px; }
/* Warianty do oceny (T1 = domyślny) */
[data-word-style="t2"] .stage__word text { fill: #E8EDF6; }
[data-word-style="t3"] .stage__word .word-wide { fill: url(#seme-t3-wide); }
[data-word-style="t3"] .stage__word .word-narrow { fill: url(#seme-t3-narrow); }
[data-word-style="t4"] .stage__word .word-wide { fill: url(#seme-t4-wide); }
[data-word-style="t4"] .stage__word .word-narrow { fill: url(#seme-t4-narrow); }
.stage__person { pointer-events: none; }

/* Krawędzie zdjęcia przechodzą w tło strony, gdy scena jest węższa niż ekran */
/* Kolejność warstw: zdjęcie/wideo -> wygaszenie krawędzi -> napis SEME -> postać.
   Wygaszenie dotyczy tylko fotografii, napis może wychodzić poza krawędź zdjęcia. */
.stage__photo, .stage__video { z-index: 0; }
.stage__word { z-index: 2; }
.stage__person { z-index: 3; }
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.stage::before {
  inset: 0;
  background: linear-gradient(90deg, var(--ct-bg) 0, rgb(13 17 26 / 0) 7%, rgb(13 17 26 / 0) 93%, var(--ct-bg) 100%);
}
.stage::after {
  inset: 0 0 auto 0;
  height: 14%;
  background: linear-gradient(180deg, var(--ct-bg), rgb(13 17 26 / 0));
  opacity: var(--top-fade, 0);
}

/* Ekran laptopa: pozycja liczona w JS z tej samej geometrii co scena */
.screen {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  transform-origin: 0 0;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  container-type: size;
  background: var(--ct-screen-black);
}
.screen__content { position: absolute; inset: 0; }
.screen__content > img,
.screen__content > video { width: 100%; height: 100%; object-fit: contain; background: var(--ct-screen-black); }

/* Placeholder HomeKoncept (do zastąpienia zrzutem ekranu lub wideo przez data-screen-src) */
.hk-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1cqh;
  /* Na końcu wejścia ekran wypełnia viewport ("cover"). --safe-w to widoczna szerokość
     w pikselach końcowych (ustawia JS); treść trzyma się tego obszaru. */
  --pad-x: calc((100cqw - var(--safe-w, 100cqw)) / 2 + clamp(20px, calc(var(--safe-w, 100cqw) * 0.045), 64px));
  padding: 0 var(--pad-x);
  background: var(--ct-bg);
  color: var(--ct-text);
}
.hk-placeholder__title {
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 600;
  font-size: clamp(30px, calc(var(--safe-w, 100cqw) * 0.072), 116px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hk-placeholder__note {
  margin: 0;
  font-size: clamp(14px, calc(var(--safe-w, 100cqw) * 0.016), 22px);
  color: var(--ct-text-2);
}

/* Copy pierwszego ekranu */
.hero-copy {
  position: absolute;
  z-index: 4;
  left: max(var(--ct-gutter), (100vw - 1600px) / 2 + var(--ct-gutter));
  bottom: clamp(2rem, 7svh, 4.5rem);
  width: min(44rem, 50vw);
}
.hero-copy__title {
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 600;
  font-size: var(--ct-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero-copy__line { display: block; }
.hero-copy__line--accent { color: var(--ct-accent-text); }
.hero-copy__lead {
  max-width: 36ch;
  margin: 1.25rem 0 0;
  font-size: var(--ct-lead);
  line-height: 1.5;
  color: var(--ct-text-lead);
  text-wrap: pretty;
}
.hero-copy__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

/* Wtórne działanie: link tekstowy ze strzałką (zarazem wskazówka przewijania) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  transition: text-decoration-color var(--ct-fast) var(--ct-ease-out);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .btn__icon { transition: transform var(--ct-fast) var(--ct-ease-out); }
.text-link:hover .btn__icon { transform: translateY(2px); }

/* Pominięcie sceny: dyskretny odnośnik tekstowy */
.skip-scene {
  position: fixed;
  right: var(--ct-gutter);
  bottom: clamp(0.75rem, 2.5svh, 1.5rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0 0.25rem;
  color: var(--ct-text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-underline-offset: 0.3em;
  opacity: 0;
  transition: opacity var(--ct-mid) var(--ct-ease-out), color var(--ct-fast) var(--ct-ease-out);
}
.skip-scene .btn__icon { width: 0.75rem; height: 0.75rem; }
.skip-scene.is-visible { opacity: 1; }
.skip-scene:hover { color: var(--ct-text); text-decoration-color: currentColor; }
.skip-scene[hidden] { display: none; }

/* ---------- Opis realizacji (HomeKoncept) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.project {
  position: relative;
  background: var(--ct-bg);
  padding: clamp(3.5rem, 9svh, 6rem) var(--ct-gutter) clamp(2.5rem, 6svh, 4rem);
  scroll-margin-top: 0;
}
/* Podczas sceny blok realizacji leży na końcu sekcji sceny i wjeżdża od dołu, gdy laptop jest jeszcze przypięty.
   Górna część to łagodne przejście z tła w kolor strony (bez ostrej krawędzi). */
.has-scene .project {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding-top: clamp(6.5rem, 17svh, 10rem);
  background: linear-gradient(180deg, rgb(13 17 26 / 0) 0, rgb(13 17 26 / 0.82) 24%, var(--ct-bg) 46%);
}
/* Szeroki desktop (JS dodaje .ct-side): opis jest częścią kadru końcowego, przypięty po prawej obok laptopa */
.ct-side.has-scene .project {
  position: sticky;
  top: 0;
  bottom: auto;
  left: auto;
  right: auto;
  height: 100svh;
  margin-top: -100svh;
  padding: var(--ct-header-h) var(--ct-gutter) 0;
  background: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}
.ct-side.has-scene .project__inner {
  display: block;
  width: var(--side-w, 400px);
  margin: 0;
  pointer-events: auto;
}
.ct-side.has-scene .project__title { font-size: clamp(2rem, 2.9vw, 2.75rem); }
.ct-side.has-scene .project__desc { margin: 1.25rem 0 1.5rem; font-size: clamp(1.0625rem, 0.6vw + 0.6rem, 1.3125rem); max-width: none; }
.scene__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--ct-bg);
  opacity: 0;
  pointer-events: none;
}
.project__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: end;
}
.project__eyebrow {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ct-text-2);
}
.project__title {
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.project__desc {
  max-width: 44ch;
  margin: 0 0 1.75rem;
  font-size: var(--ct-lead);
  line-height: 1.55;
  color: var(--ct-text-lead);
  text-wrap: pretty;
}
@media (max-width: 899px) {
  .project__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Usługi (Digital Capabilities) ---------- */
.svc {
  position: relative;
  background: var(--ct-bg);
  padding: clamp(2.75rem, 7svh, 4.5rem) var(--ct-gutter) clamp(2.75rem, 7svh, 4.5rem);
  border-top: 1px solid var(--ct-line-soft);
  scroll-margin-top: 0;
}
.svc__inner { max-width: 1600px; margin: 0 auto; }
.svc__intro { max-width: 60rem; margin-bottom: clamp(1.25rem, 3.5svh, 2rem); }
.svc__title {
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.svc__lead { margin: 0.875rem 0 0; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); color: var(--ct-text-lead); max-width: 46ch; text-wrap: balance; }

.svc-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ct-line); }

/* Domyślnie (mobile, bez JS): redakcyjne wiersze - numer, nazwa, opis, mały schemat, linia */
.svc-item { border-top: 1px solid var(--ct-line); padding: 0.875rem 0 1rem; }
.svc-item__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 4.4vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.svc-item__num { flex: none; width: 1.9rem; font-size: 0.8125rem; font-weight: 500; color: var(--ct-accent-text); font-variant-numeric: tabular-nums; }
.svc-item__panel { margin: 0.5rem 0 0 2.65rem; display: grid; gap: 0.75rem; }
.svc-item__desc { margin: 0; color: var(--ct-text-2); max-width: 52ch; font-size: 0.9375rem; line-height: 1.5; }
.svc-item__visual {
  width: min(100%, 11.5rem);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  overflow: hidden;
  background: var(--ct-bg-alt);
}
.svc-item__visual img, .svc-item__visual video { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 600px) and (max-width: 899px) {
  .svc-item { padding: 1.125rem 0 1.25rem; }
  .svc-item__head { font-size: 1.5rem; }
  .svc-item__desc { font-size: 1rem; }
  .svc-item__panel { grid-template-columns: minmax(0, 1fr) 14rem; align-items: start; gap: 1.5rem; }
  .svc-item__visual { width: 100%; }
}

/* Desktop z JS: dwie kolumny. Lewa: H2, lead, 5 usług. Prawa: schemat i opis aktywnej usługi, od poziomu H2.
   Wszystkie panele leżą w jednej komórce siatki = stała wysokość. */
.svc--tabs .svc__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.svc--tabs .svc__intro { grid-column: 1; grid-row: 1; margin-bottom: clamp(1rem, 3svh, 1.75rem); }
.svc--tabs .svc-list { display: contents; }
.svc--tabs .svc-item { display: contents; }
.svc--tabs .svc-item__head { grid-column: 1; margin: 0; border-top: 1px solid var(--ct-line); }
.svc--tabs .svc-item:last-child .svc-item__head { border-bottom: 1px solid var(--ct-line); }
.svc--tabs .svc-item__tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: clamp(3.75rem, 8svh, 4.75rem);
  padding: 0.625rem 0;
  border: 0;
  background: none;
  color: var(--ct-text-3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--ct-mid) var(--ct-ease-out);
}
.svc--tabs .svc-item__name { font-size: clamp(1.375rem, 1.9vw, 1.875rem); line-height: 1.1; }
.svc--tabs .svc-item__num { font-size: 0.875rem; width: 1.75rem; color: var(--ct-text-3); transition: color var(--ct-mid) var(--ct-ease-out); }
.svc--tabs .svc-item__tab:hover { color: var(--ct-text-2); }
.svc--tabs .svc-item.is-active .svc-item__tab { color: var(--ct-text); }
.svc--tabs .svc-item.is-active .svc-item__num { color: var(--ct-accent-text); }
.svc--tabs .svc-item__tab::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--ct-mid) var(--ct-ease-out);
}
.svc--tabs .svc-item.is-active .svc-item__tab::after { opacity: 1; color: var(--ct-accent-text); }
.svc--tabs .svc-item__panel {
  grid-column: 2;
  grid-row: 1 / span 6;
  margin: 0;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ct-mid) var(--ct-ease-out), transform var(--ct-mid) var(--ct-ease-out), visibility 0s linear var(--ct-mid);
}
.svc--tabs .svc-item.is-active .svc-item__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.svc--tabs .svc-item__visual { width: min(100%, 34rem); }
.svc--tabs .svc-item__desc { font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem); color: var(--ct-text-lead); max-width: 44ch; }
.svc--tabs .svc-item__tab:focus-visible { outline-offset: -2px; }
.svc--tabs .svc__cta { grid-column: 1; margin-top: clamp(1.25rem, 3svh, 1.75rem); }

.svc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.svc__cta-note { margin: 0; color: var(--ct-text-2); }

@media (prefers-reduced-motion: reduce) {
  .svc--tabs .svc-item__panel { transform: none; }
}

/* ---------- Wybrane realizacje (Cinematic Project Reel) ---------- */
.pf {
  --pf-pad: max(var(--ct-gutter), (100vw - 1600px) / 2 + var(--ct-gutter));
  position: relative;
  background: var(--ct-bg);
  padding: clamp(2.5rem, 6svh, 4rem) 0 clamp(2.5rem, 6svh, 4rem);
  border-top: 1px solid var(--ct-line-soft);
  scroll-margin-top: 0;
}
.pf__inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--ct-gutter); }
.pf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.25rem, 3.5svh, 2rem); }
.pf__title {
  margin: 0;
  font-family: var(--ct-font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 3.5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pf__lead { margin: 0.75rem 0 0; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); color: var(--ct-text-lead); }
.pf__nav { display: flex; gap: 0.5rem; flex: none; }
.pf__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ct-line);
  border-radius: 50%;
  background: none;
  color: var(--ct-text);
  cursor: pointer;
  transition: border-color var(--ct-fast) var(--ct-ease-out), opacity var(--ct-fast) var(--ct-ease-out), background-color var(--ct-fast) var(--ct-ease-out);
}
.pf__arrow svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf__arrow:hover:not(:disabled) { border-color: var(--ct-text-2); background: var(--ct-surface); }
.pf__arrow:disabled { opacity: 0.35; cursor: default; }

/* Pasek poziomo przewijany natywnie, z przyciąganiem do elementów; wychodzi poza kontener po prawej */
.pf__track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0 var(--pf-pad) 0.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pf-pad);
  scrollbar-width: none;
  cursor: grab;
}
.pf__track::-webkit-scrollbar { display: none; }
.pf__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pf__track:focus-visible { outline-offset: -2px; }
.pr-item { flex: 0 0 clamp(17rem, 31vw, 30rem); scroll-snap-align: start; min-width: 0; }
.pr-item__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ct-bg-alt);
  outline: 1px solid var(--ct-line-soft);
  outline-offset: -1px;
}
.pr-item__media img { -webkit-user-drag: none; user-select: none; }
.pr-item__static { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pr-item__scroll {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform;
  transition: transform 700ms var(--ct-ease-out);
}
.pr-item.is-scroll-ready .pr-item__scroll { opacity: 1; }
.pr-item__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--ct-line); }
.pr-item__name { margin: 0; font-family: var(--ct-font-display); font-weight: 600; font-size: clamp(1.1875rem, 1.5vw, 1.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.pr-item__link {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  color: var(--ct-text-2);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color var(--ct-fast) var(--ct-ease-out), transform var(--ct-fast) var(--ct-ease-out);
}
.pr-item__link:hover, .pr-item:hover .pr-item__link { color: var(--ct-accent-text); }
.pr-item__link:hover { transform: translate(2px, -2px); }
.pr-item__type { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--ct-text-2); }

.pf__progress { position: relative; height: 1px; margin-top: clamp(1.25rem, 3svh, 1.75rem); background: var(--ct-line); }
.pf__progress-thumb { position: absolute; left: 0; top: -1px; height: 3px; width: 30%; border-radius: 2px; background: var(--ct-accent-text); transition: width var(--ct-mid) var(--ct-ease-out); }
.pf__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: clamp(1.25rem, 3svh, 1.75rem); }
.pf__cta-note { margin: 0; color: var(--ct-text-2); }

@media (max-width: 767px) {
  .pf__head { align-items: flex-start; }
  .pr-item { flex-basis: 78vw; }
  .pf__arrow { width: 2.5rem; height: 2.5rem; }
}
@media (min-width: 768px) and (max-width: 1099px) { .pr-item { flex-basis: 46vw; } }
@media (prefers-reduced-motion: reduce) {
  .pr-item__scroll, .pf__arrow, .pf__progress-thumb { transition: none; }
  .pf__track { scroll-behavior: auto; }
}

/* ---------- Zaufali nam (Client Trust Wall, L2 Dual Marquee) ---------- */
.lw {
  --lw-u: 4.4rem;
  position: relative;
  background: var(--ct-bg);
  padding: clamp(2.25rem, 5svh, 3.5rem) 0 3.5rem;
  border-top: 1px solid var(--ct-line-soft);
  overflow: hidden;
}
.lw__inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--ct-gutter); }
.lw__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.25rem, 3.5svh, 2rem); }
.lw__title { margin: 0; font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(1.875rem, 3.5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.lw__lead { margin: 0.75rem 0 0; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); color: var(--ct-text-lead); }
.lw__toggle {
  position: absolute;
  right: max(0.5rem, calc(var(--ct-gutter) - 0.875rem));
  bottom: 0.375rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ct-text-3);
  cursor: pointer;
  transition: color var(--ct-fast) var(--ct-ease-out);
}
.lw__toggle:hover { color: var(--ct-text); }
.lw__toggle:focus-visible { outline-offset: 0; border-radius: 50%; }
.lw__toggle[hidden] { display: none; }
.lw__toggle-icon { width: 0.5625rem; height: 0.75rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: content-box; }
.lw__toggle[aria-pressed="true"] .lw__toggle-icon { width: 0; height: 0; border: 0; border-left: 0.6875rem solid currentColor; border-top: 0.4375rem solid transparent; border-bottom: 0.4375rem solid transparent; margin-left: 0.125rem; }

.lw__rows { display: grid; gap: clamp(1.25rem, 3svh, 2rem); }
.lw__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem clamp(2.5rem, 5vw, 4.5rem); margin: 0; padding: 0 var(--ct-gutter); list-style: none; }
.lw__item { flex: none; display: flex; align-items: center; justify-content: center; }
.lw__item img {
  display: block;
  width: calc(var(--lw-u) * var(--k));
  height: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: 0.58;
  transition: opacity 400ms var(--ct-ease-out), filter 400ms var(--ct-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lw__item:hover img { opacity: 1; }
  .lw__item.is-color:hover img { filter: none; }
}

/* Ruch: JS dodaje .is-marquee (dwie taśmy w przeciwnych kierunkach, bez duplikatów dla czytników ekranu) */
.lw.is-marquee .lw__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.lw.is-marquee .lw__list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  gap: 0;
  animation: lw-move var(--lw-dur, 60s) linear infinite;
  animation-play-state: var(--lw-state, running);
  will-change: transform;
}
.lw.is-marquee .lw__row--b .lw__list { animation-direction: reverse; }
.lw.is-marquee .lw__item { padding-right: clamp(2.5rem, 5vw, 4.5rem); }
@keyframes lw-move { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--lw-shift, -50%), 0, 0); } }

@media (max-width: 767px) {
  .lw { --lw-u: 3.4rem; }
  .lw__head { align-items: flex-start; }
  .lw__list { gap: 1.25rem 2rem; }
  .lw.is-marquee .lw__item { padding-right: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lw.is-marquee .lw__list { animation: none; }
}

/* ---------- Dlaczego SEME? (Human & Expertise, V1 Client Meeting) ---------- */
.dw {
  background: var(--ct-surface);
  padding: clamp(3.25rem, 7.5svh, 5rem) 0 clamp(3rem, 7svh, 5rem);
  border-top: 1px solid var(--ct-line);
}
.dw__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--ct-gutter);
  display: grid;
  grid-template-columns: minmax(0, clamp(26rem, 33vw, 32.5rem)) minmax(0, 52rem);
  justify-content: space-between;
  column-gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.dw__photo { margin: 0; }
.dw__photo img { width: 100%; height: auto; aspect-ratio: 928 / 1152; object-fit: cover; border-radius: 2px; }
.dw__note { margin-top: 1.75rem; }
.dw__quote { margin: 0; font-family: var(--ct-font-display); font-weight: 600; font-size: clamp(1.375rem, 0.9vw + 1.05rem, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; }
.dw__quote span { display: block; }
.dw__quote span:first-child { color: var(--ct-text-2); }
.dw__lead { margin: 1rem 0 0; max-width: 32em; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); line-height: 1.6; color: var(--ct-text-lead); text-wrap: pretty; }
.dw__eyebrow { margin: 0 0 1.25rem; font: 600 0.875rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-accent-text); }
.dw__title { margin: 0; font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(2.5rem, 3.6vw, 3.75rem); line-height: 1.06; letter-spacing: -0.025em; word-spacing: 0.04em; }
.dw__title span { display: block; }
.dw__accent { color: var(--ct-accent-text); }

/* Accordion: natywne details/summary (cała treść w HTML, działa bez JS); wysokość zawsze naturalna, bez przycinania */
.dw__list { margin: clamp(1.75rem, 4svh, 2.5rem) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ct-line); }
.dw__item { border-top: 1px solid var(--ct-line); }
.dw__sum {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1rem;
  align-items: baseline;
  column-gap: 0.5rem;
  min-height: 3.5rem;
  padding: 1.125rem 0;
  list-style: none;
  cursor: pointer;
}
.dw__sum::-webkit-details-marker { display: none; }
.dw__sum:focus-visible { outline-offset: 2px; }
.dw__num { font: 600 0.8125rem/1 var(--ct-font-ui); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ct-accent-text); }
.dw__name { font-family: var(--ct-font-display); font-weight: 600; font-size: clamp(1.375rem, 0.9vw + 1.05rem, 1.625rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ct-text-2); transition: color var(--ct-fast) var(--ct-ease-out); }
.dw__det[open] .dw__name, .dw__sum:hover .dw__name { color: var(--ct-text); }
.dw__icon { position: relative; align-self: center; justify-self: end; width: 0.875rem; height: 0.875rem; color: var(--ct-text-3); transition: color var(--ct-fast) var(--ct-ease-out); }
.dw__icon::before, .dw__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 260ms var(--ct-ease-out); }
.dw__icon::after { transform: rotate(90deg); }
.dw__det[open] .dw__icon::after { transform: rotate(0deg); }
.dw__det[open] .dw__icon, .dw__sum:hover .dw__icon { color: var(--ct-text); }
.dw__body { padding: 0 2rem 1.625rem 3rem; font-size: clamp(1rem, 0.2vw + 0.95rem, 1.0625rem); line-height: 1.65; color: var(--ct-text-2); }
.dw__body > :first-child { margin-top: 0; }
.dw__body > :last-child { margin-bottom: 0; }
.dw__body p { margin: 0 0 1em; max-width: 40em; }
.dw__body ul, .dw__body ol { margin: 0 0 1em; padding-left: 1.25rem; max-width: 40em; }
.dw__body li { margin: 0 0 0.4em; }
.dw__body li::marker { color: var(--ct-accent-text); }
.dw__body strong { font-weight: 600; color: var(--ct-text); }
.dw__det { interpolate-size: allow-keywords; }
.dw__det::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ct-ease-out), content-visibility 320ms allow-discrete; }
.dw__det[open]::details-content { block-size: auto; }
.dw__det[open] .dw__body { animation: dw-in 320ms var(--ct-ease-out) both; }
@keyframes dw-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Tablet i mobile: kolejność eyebrow, H2, zdjęcie, hasło, lead, accordion */
@media (max-width: 1099px) {
  .dw__title { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
  .dw__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "head head" "photo note" "acc acc"; column-gap: clamp(1.5rem, 4vw, 2.5rem); row-gap: 2rem; justify-content: stretch; align-items: center; }
  .dw__side, .dw__main { display: contents; }
  .dw__head { grid-area: head; align-self: start; }
  .dw__photo { grid-area: photo; }
  .dw__note { grid-area: note; margin: 0; }
  .dw__list { grid-area: acc; margin-top: 0; align-self: start; }
}
@media (max-width: 767px) {
  .dw__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "note" "acc"; row-gap: 1.5rem; }
  .dw__photo img { aspect-ratio: 1 / 1; object-position: 50% 50%; }
  .dw__body { padding: 0 0 1.375rem 2.75rem; }
  .dw__sum { column-gap: 0.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dw__det::details-content, .dw__icon::before, .dw__icon::after, .dw__name, .dw__icon { transition: none; }
  .dw__det[open] .dw__body { animation: none; }
}

/* ---------- Opinie i referencje (Voice Focus) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ow {
  background: var(--ct-bg);
  padding: clamp(3rem, 6.5svh, 4.5rem) 0 clamp(2rem, 4.5svh, 3rem);
}
.ow__inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--ct-gutter); }
.ow__eyebrow { margin: 0 0 1.25rem; font: 600 0.875rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-accent-text); }
.ow__title { margin: 0; font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(1.875rem, 3.5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.ow__title span { display: block; }
.ow__accent { color: var(--ct-accent-text); }

.ow__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(2rem, 5vw, 6rem); align-items: stretch; }
.ow__side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }

/* Sterowanie: widoczne tylko z JS (atrybut hidden zdejmuje ow.js) */
.ow__ctrl { display: flex; align-items: center; gap: 1.25rem; }
.ow__ctrl[hidden] { display: none; }
.ow__count { margin: 0; min-width: 3.75rem; font: 500 0.9375rem/1 var(--ct-font-ui); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ct-text-2); white-space: nowrap; }
.ow__count span { color: var(--ct-text); }
.ow__segs { display: flex; gap: 0.25rem; }
.ow__seg { position: relative; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.ow__seg::before { content: ""; position: absolute; left: 0.125rem; right: 0.125rem; top: 50%; height: 2px; margin-top: -1px; background: var(--ct-line); transition: background-color var(--ct-mid) var(--ct-ease-out); }
.ow__seg:hover::before { background: var(--ct-text-3); }
.ow__seg[aria-current="true"]::before { background: var(--ct-accent-text); }
.ow__seg:focus-visible { outline-offset: -2px; }
.ow__arrows { display: flex; gap: 0.5rem; margin-left: auto; }
.ow__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--ct-line); border-radius: 50%; background: none; color: var(--ct-text); cursor: pointer; transition: border-color var(--ct-fast) var(--ct-ease-out), background-color var(--ct-fast) var(--ct-ease-out); }
.ow__arrow svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ow__arrow:hover { border-color: var(--ct-text-2); background: var(--ct-surface); }

/* Scena: wszystkie opinie w HTML; z JS jedna aktywna, pozostałe w tej samej komórce siatki (wysokość = najwyższa, stała) */
.ow__item { margin: 0; }
.ow__item + .ow__item { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ct-line); }
.ow__mark { display: block; height: 2.25rem; font-family: var(--ct-font-display); font-weight: 800; font-size: 4.5rem; line-height: 1.05; color: var(--ct-accent-text); user-select: none; }
.ow__quote { margin: 0; }
.ow__quote p { margin: 0; max-width: 38em; font-family: var(--ct-font-ui); font-weight: 400; font-size: clamp(1.0625rem, 0.35vw + 0.95rem, 1.3125rem); line-height: 1.58; color: var(--ct-text); text-wrap: pretty; }
.ow__by { display: grid; justify-items: start; gap: 0.1875rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ct-line); max-width: 38em; }
.ow__name { font-family: var(--ct-font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ct-text); }
.ow__meta { font-size: 0.875rem; line-height: 1.45; color: var(--ct-text-2); }
.ow__link { font-size: 0.875rem; line-height: 1.45; color: var(--ct-accent-text); text-decoration: underline; text-decoration-color: rgb(110 158 247 / 0.4); text-underline-offset: 0.2em; transition: color var(--ct-fast) var(--ct-ease-out), text-decoration-color var(--ct-fast) var(--ct-ease-out); }
.ow__link:hover { color: var(--ct-text); text-decoration-color: currentColor; }
.ow__note { margin: clamp(1.5rem, 4svh, 2.25rem) 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ct-text-3); }

.ow.is-js .ow__stage { display: grid; }
.ow.is-js .ow__item, .ow.is-js .ow__item + .ow__item { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ct-ease-out), visibility 0s linear 240ms; }
.ow.is-js .ow__item.is-active { opacity: 1; visibility: visible; transition: opacity 240ms var(--ct-ease-out) 40ms, visibility 0s; }

@media (max-width: 899px) {
  .ow__grid { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
  .ow__side { display: contents; }
  .ow__head { order: 1; }
  .ow__ctrl { order: 2; }
  .ow__stage { order: 3; }
  .ow__mark { height: 1.75rem; font-size: 3.75rem; }
  .ow__quote p { max-width: 40em; }
  /* Mobile: wysokość wyznacza aktywna opinia (bez rezerwowania najwyższej); nawigacja jest nad opinią i stoi w miejscu */
  .ow.is-js .ow__item { display: none; }
  .ow.is-js .ow__item.is-active { display: block; animation: ow-in 240ms var(--ct-ease-out) both; }
}
@keyframes ow-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ow.is-js .ow__item, .ow.is-js .ow__item.is-active, .ow__seg::before, .ow__arrow { transition: none; animation: none; }
}

/* ---------- Jak pracujemy (Interactive Process Map) ---------- */
.pm {
  --pm-y: 2.5rem;
  --pm-draw: #3B4868;
  --pm-accent: var(--ct-accent-text);
  background: var(--ct-surface);
  padding: clamp(3rem, 6.5svh, 4.5rem) 0 clamp(2.75rem, 6svh, 4rem);
}
.pm__inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--ct-gutter); }
.pm__eyebrow { margin: 0 0 1.25rem; font: 600 0.875rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-accent-text); }
.pm__title { margin: 0; font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(1.875rem, 3.5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.pm__title span { display: block; }
.pm__accent { color: var(--ct-accent-text); }

/* Linia procesu: pięć etapów, znacznik na linii, podświetlenie od 1. do wybranego etapu (nawigacja, nie postęp projektu) */
.pm__nav { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(1.75rem, 4svh, 2.5rem); }
.pm__nav[hidden] { display: none; }
.pm__rail { position: absolute; left: 10%; right: 10%; top: var(--pm-y); height: 2px; margin-top: -1px; background: #2A3552; }
.pm__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--pm-p, 0) * 100%); background: var(--pm-accent); transition: width 400ms var(--ct-ease-out); }
.pm__step {
  position: relative;
  display: grid;
  grid-template-rows: var(--pm-y) auto;
  justify-items: center;
  align-items: end;
  min-height: 4rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--ct-text-2);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.pm__num { padding-bottom: 0.875rem; font: 600 0.8125rem/1 var(--ct-font-ui); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ct-text-3); transition: color var(--ct-fast) var(--ct-ease-out); }
.pm__label { align-self: start; padding-top: 1.125rem; font-family: var(--ct-font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; transition: color var(--ct-fast) var(--ct-ease-out); text-wrap: balance; }
.pm__step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--pm-y);
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--pm-draw);
  border-radius: 50%;
  background: var(--ct-surface);
  transform: translate(-50%, -50%);
  transition: border-color var(--ct-mid) var(--ct-ease-out), background-color var(--ct-mid) var(--ct-ease-out), width var(--ct-mid) var(--ct-ease-out), height var(--ct-mid) var(--ct-ease-out);
}
.pm__step.is-reached::before { border-color: var(--pm-accent); }
.pm__step[aria-selected="true"]::before { width: 1.25rem; height: 1.25rem; border-color: var(--pm-accent); background: var(--pm-accent); box-shadow: 0 0 0 4px var(--ct-surface); }
.pm__step:hover .pm__label, .pm__step:hover .pm__num { color: var(--ct-text); }
.pm__step[aria-selected="true"] .pm__num { color: var(--pm-accent); }
.pm__step[aria-selected="true"] .pm__label { color: var(--ct-text); }
.pm__step:focus-visible { outline-offset: -2px; }

/* Scena: wszystkie etapy w HTML; z JS jeden aktywny, pozostałe w tej samej komórce (rezerwacja wysokości ustawia process.js) */
.pm__stage { margin-top: clamp(1.5rem, 4svh, 2.5rem); }
.pm__panel { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); column-gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.pm__panel + .pm__panel { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ct-line); }
.pm__kicker { margin: 0 0 0.75rem; font: 600 0.8125rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-accent-text); }
.pm__name { margin: 0; font-family: var(--ct-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.3vw + 1rem, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ct-text); }
.pm__body { margin-top: 1rem; max-width: 40em; font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem); line-height: 1.65; color: var(--ct-text-2); }
.pm__body > :first-child { margin-top: 0; }
.pm__body > :last-child { margin-bottom: 0; }
.pm__body p { margin: 0 0 1em; }
.pm__body ul, .pm__body ol { margin: 0 0 1em; padding-left: 1.25rem; }
.pm__body li { margin: 0 0 0.4em; }
.pm__body li::marker { color: var(--ct-accent-text); }
.pm__body strong { font-weight: 600; color: var(--ct-text); }
.pm__arrows { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.pm__arrows[hidden] { display: none; }
.pm__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--ct-line); border-radius: 50%; background: none; color: var(--ct-text); cursor: pointer; transition: border-color var(--ct-fast) var(--ct-ease-out), background-color var(--ct-fast) var(--ct-ease-out), opacity var(--ct-fast) var(--ct-ease-out); }
.pm__arrow svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pm__arrow:hover:not(:disabled) { border-color: var(--ct-text-2); background: var(--ct-bg); }
.pm__arrow:disabled { opacity: 0.35; cursor: default; }

/* Ilustracje tymczasowe (SVG); kontener .pm__visual można podmienić na dowolny obraz o proporcjach 3:2 */
.pm__visual { justify-self: end; align-self: start; margin-top: 0.5rem; width: 100%; max-width: 25rem; aspect-ratio: 3 / 2; }
.pm__visual svg, .pm__visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pm__visual .d { stroke: var(--pm-draw); stroke-width: 1.5; }
.pm__visual .a { stroke: var(--pm-accent); stroke-width: 1.75; }
.pm__visual .f { fill: var(--ct-surface); }
.pm__visual .af { fill: var(--pm-accent); stroke: none; }

.pm.is-js .pm__nav { display: grid; }
.pm.is-js .pm__stage { display: grid; position: relative; transition: height 260ms var(--ct-ease-out); }
.pm.is-js .pm__panel, .pm.is-js .pm__panel + .pm__panel { grid-area: 1 / 1; align-self: start; margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ct-ease-out), visibility 0s linear 240ms; }
.pm.is-js .pm__panel.is-active { opacity: 1; visibility: visible; transition: opacity 240ms var(--ct-ease-out) 40ms, visibility 0s; }

@media (max-width: 1099px) { .pm__label { font-size: 0.875rem; } }
@media (max-width: 767px) {
  .pm__panel { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .pm__copy { display: contents; }
  .pm__kicker { order: 1; margin: 0 0 -0.75rem; }
  .pm__name { order: 2; }
  .pm__body { order: 3; margin-top: 0; }
  .pm__visual { order: 4; justify-self: start; max-width: 16rem; }
  .pm__arrows { order: 5; margin-top: 0; }
  .pm__label { display: none; }
  .pm__step { min-height: 3.75rem; grid-template-rows: var(--pm-y) 0; }
  .pm.is-js .pm__stage { display: block; height: auto !important; }
  .pm.is-js .pm__panel, .pm.is-js .pm__panel + .pm__panel { display: none; }
  .pm.is-js .pm__panel.is-active { display: grid; opacity: 1; visibility: visible; animation: pm-in 240ms var(--ct-ease-out) both; }
}
@keyframes pm-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pm__fill, .pm__step::before, .pm__label, .pm__num, .pm.is-js .pm__stage, .pm.is-js .pm__panel, .pm.is-js .pm__panel.is-active { transition: none; animation: none; }
}

/* ---------- v0.16: Independent Design Critique - korekty systemu ---------- */
/* Kotwice: nagłówek strony nie zasłania tytułu sekcji po przejściu z nawigacji */
.svc, .pf, .lw, .dw, .ow, .pm, .cx { scroll-margin-top: calc(var(--ct-header-h) - 1px); }
/* Nagłówki H2: luźniejszy tracking i interlinia (polskie znaki diakrytyczne) */
.svc__title, .pf__title, .lw__title, .dw__title, .ow__title, .pm__title, .cx__title { letter-spacing: -0.018em; line-height: 1.08; }
/* Numery tylko tam, gdzie jest kolejność (proces); w usługach i powodach - bez numeracji */
.svc-item__num { display: none; }
.dw__num { display: none; }
.dw__sum { grid-template-columns: minmax(0, 1fr) 1rem; column-gap: 1rem; }
.dw__body { padding-left: 0; }
@media (max-width: 767px) { .dw__body { padding-left: 0; } }
/* Proces bez etykiety ETAP: nazwa etapu od razu */
.pm__name { margin-top: 0; }
/* Ikona linku zewnętrznego */
.ct-out { display: inline-block; width: 0.875em; height: 0.875em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.05em; transition: transform var(--ct-fast) var(--ct-ease-out); }
a:hover > .ct-out { transform: translate(2px, -2px); }
.pr-item__link .ct-out { width: 1.125rem; height: 1.125rem; }
.pr-item__link:hover { transform: none; }
/* Link tekstowy prowadzący dalej */
.text-link--fwd { font-weight: 600; }
.text-link--fwd:hover .btn__icon { transform: translateX(3px); }
/* Mobile: strzałki procesu bezpośrednio pod opisem, ilustracja na końcu */
@media (max-width: 767px) {
  .pm__arrows { order: 4; }
  .pm__visual { order: 5; }
}
/* Mobile: koniec sceny Hero - zasłona tylko pod opisem, ekran z HOMEKONCEPT pozostaje widoczny */
.has-scene:not(.ct-side) .scene__veil { background: linear-gradient(180deg, rgb(13 17 26 / 0) 0%, rgb(13 17 26 / 0.12) 34%, rgb(13 17 26 / 0.9) 55%, var(--ct-bg) 64%); }
/* Menu mobilne: po otwarciu ikona zamknięcia */
.menu-toggle[aria-expanded="true"] .menu-toggle__icon path { d: path("M5 5l10 10M15 5 5 15"); }

/* ---------- v0.20: Cinematic Digital Objects (wizualizacje usług) ---------- */
/* Zdjęcie obiektu żyje w przestrzeni strony: bez ramki karty, krawędzie wtapiają się w tło */
.svc-item__visual--photo { border: 0; border-radius: 0; background: none; overflow: visible; }
.svc-item__visual--photo img {
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

/* Mobile: bez wcięcia po usuniętych numerach (v0.16), większe zdjęcia obiektów */
.svc-item__panel { margin-left: 0; }
@media (max-width: 599px) { .svc-item__visual--photo { width: min(100%, 22rem); } }

/* ---------- v0.20: Jak pracujemy - jeden stół, pięć momentów (Human Process) ---------- */
.pm__visual--photo { position: relative; overflow: hidden; border-radius: 6px; background: #0B0F17; max-width: 27rem; }
.pm__visual--photo .pm__shot { position: absolute; left: 0; top: 0; width: 333.334%; max-width: none; height: auto; object-fit: initial; transform: translate(calc(-1 * var(--x)), calc(-1 * var(--y))); }
.pm__visual--photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 48px rgb(5 8 14 / 0.55); pointer-events: none; }
/* Desktop z JS: wspólna "kamera" przesuwa się po stole między etapami zamiast przenikania obrazów */
.pm__camera { position: absolute; z-index: 2; margin: 0; max-width: none; }
.pm__camera .pm__shot { transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.pm.has-camera .pm__panel .pm__visual { visibility: hidden; }
@media (max-width: 767px) { .pm__camera { display: none; } .pm__visual--photo { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .pm__camera .pm__shot { transition: none; } }

/* ---------- Kontakt (zamknięcie strony, v0.17) ---------- */
.cx {
  position: relative;
  overflow: hidden;
  background: var(--ct-bg);
  padding: clamp(3.5rem, 8svh, 5.5rem) 0 0;
  border-top: 1px solid var(--ct-line-soft);
}
.cx__inner { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 0 var(--ct-gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.cx__title { margin: 0; font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(1.875rem, 3.5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
.cx__title span { display: block; }
.cx__accent { color: var(--ct-accent-text); }
.cx__lead { margin: 1.25rem 0 0; max-width: 34em; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); line-height: 1.6; color: var(--ct-text-lead); }
.cx__subtitle { margin: 2.25rem 0 0; font: 600 0.8125rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-text-3); }
.cx__next { margin: 0.75rem 0 0; padding: 0; list-style: none; max-width: 30rem; }
.cx__next li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; padding: 0.75rem 0; border-top: 1px solid var(--ct-line); color: var(--ct-text-2); line-height: 1.5; }
.cx__next li:last-child { border-bottom: 1px solid var(--ct-line); }
.cx__n { font: 600 0.8125rem/1 var(--ct-font-ui); letter-spacing: 0.08em; color: var(--ct-accent-text); font-variant-numeric: tabular-nums; }
.cx__direct { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2rem 0 0; }
.cx__direct dt { font: 600 0.8125rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-text-3); }
.cx__direct dd { margin: 0.375rem 0 0; font-family: var(--ct-font-display); font-weight: 600; font-size: 1.125rem; }

/* Formularz: otwarta kompozycja bez karty, pola z kontrastowymi krawędziami (3.4:1) */
.cx-form { --cx-field: #0A0E16; --cx-edge: #5B6A90; padding-top: 0.25rem; }
.cx-form__title { margin: 0; font-family: var(--ct-font-display); font-weight: 600; font-size: 1.25rem; }
.cx-form__req { margin: 0.375rem 0 1.25rem; font-size: 0.875rem; color: var(--ct-text-3); }
.cx-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1.25rem; }
.cx-field { display: grid; gap: 0.4rem; margin: 0; min-width: 0; }
.cx-field--wide { grid-column: 1 / -1; }
.cx-field > label, .cx-topics legend { font-size: 0.9375rem; font-weight: 500; color: var(--ct-text); }
.cx-req { color: var(--ct-accent-text); }
.cx-field input[type="text"], .cx-field input[type="email"], .cx-field input[type="tel"], .cx-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--cx-edge);
  border-radius: 6px;
  background: var(--cx-field);
  color: var(--ct-text);
  font: 400 1rem/1.4 var(--ct-font-ui);
  transition: border-color var(--ct-fast) var(--ct-ease-out);
}
.cx-field textarea { min-height: 8.5rem; resize: vertical; }
.cx-field input:hover, .cx-field textarea:hover { border-color: #7C8BB0; }
.cx-field input:focus-visible, .cx-field textarea:focus-visible { outline: 2px solid var(--ct-focus); outline-offset: 1px; border-color: var(--ct-focus); }
.cx-field [aria-invalid="true"] { border-color: #FF8A95; }
.cx-hint { margin: 0; font-size: 0.875rem; color: var(--ct-text-3); }
.cx-err { margin: 0; font-size: 0.875rem; font-weight: 500; color: #FF8A95; }
.cx-topics { padding: 0; border: 0; }
.cx-topics legend { padding: 0; margin-bottom: 0.5rem; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cx-chip { position: relative; display: inline-flex; }
.cx-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cx-chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--cx-edge); border-radius: 999px; font-size: 0.9375rem; color: var(--ct-text-2); transition: border-color var(--ct-fast) var(--ct-ease-out), background-color var(--ct-fast) var(--ct-ease-out), color var(--ct-fast) var(--ct-ease-out); }
.cx-chip:hover span { border-color: #7C8BB0; color: var(--ct-text); }
.cx-chip input:checked + span { border-color: var(--ct-accent-text); background: rgb(110 158 247 / 0.14); color: var(--ct-text); }
.cx-chip input:checked + span::before { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--ct-accent-text); }
.cx-chip input:focus-visible + span { outline: 2px solid var(--ct-focus); outline-offset: 2px; }
.cx-field > .cx-consent { font-weight: 400; color: var(--ct-text-2); }
.cx-consent { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 0.9375rem; line-height: 1.5; color: var(--ct-text-2); cursor: pointer; }
.cx-consent input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; accent-color: var(--ct-accent-text); cursor: pointer; }
.cx-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.cx-form__actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cx-form__proto { margin: 0; max-width: 26rem; font-size: 0.875rem; line-height: 1.45; color: var(--ct-text-3); }
.cx-form__status { margin: 1rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ct-text-lead); }
.cx-form__status:empty { display: none; }

/* Wielki znak SEME - klamra z Hero (ta sama typografia i gradient), tu przygaszony, jako podstawa strony */
.cx__word {
  margin: clamp(2.5rem, 7svh, 5rem) auto 0;
  max-width: 1600px;
  padding: 0 var(--ct-gutter);
  font-family: var(--ct-font-display);
  font-weight: 800;
  font-size: clamp(6rem, 23vw, 22rem);
  line-height: 0.74;
  letter-spacing: -0.04em;
  text-align: center;
  color: #151D2E;
  user-select: none;
  pointer-events: none;
}

/* ---------- The Connection / Human x Technology (v0.21) ---------- */
/* Prawdziwa przezroczystość (WebGL z wideo packed alpha); ramiona wyłaniają się z ciemności przy krawędziach */
.cn {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 676;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.cn__still, .cn__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cn__still { object-fit: cover; transition: opacity 300ms var(--ct-ease-out); }
.cn__canvas { opacity: 0; transition: opacity 300ms var(--ct-ease-out); }
.cn.is-live .cn__canvas { opacity: 1; }
.cn.is-live .cn__still { opacity: 0; }
/* Delikatny akcent światła w chwili styku (bez błysków i cząsteczek) */
.cn__spark {
  position: absolute; left: 50.2%; top: 47%; width: 5%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(214 228 255 / 0.55), rgb(110 158 247 / 0.18) 45%, transparent 100%);
  opacity: 0; transition: opacity 600ms var(--ct-ease-out);
}
.cn.is-touch .cn__spark, .cn:not(.is-live) .cn__spark { opacity: 1; }

/* H3 (domyślny): dłonie nad wielkim słowem SEME na końcu strony, styk między SE i ME - rym z Hero */
.cx__finale { position: relative; }
.cn--h3 { position: absolute; left: 50%; top: 50%; width: min(100%, 1760px); translate: -50% -56%; z-index: 1; }

/* H1 (prototyp): osobny pas na styku sekcji Jak pracujemy i Kontakt */
.cn-slot--h1:empty { display: none; }
.cn-slot--h1 { position: relative; height: clamp(14rem, 26vw, 26rem); background: linear-gradient(180deg, var(--ct-surface) 50%, var(--ct-bg) 50%); }
.cn--h1 { position: absolute; left: 50%; top: 50%; width: min(100%, 1760px); translate: -50% -47%; }

/* H2 (prototyp): dłonie w tle górnej części Kontaktu, za nagłówkiem */
.cn-slot--h2 { position: absolute; left: 0; right: 0; top: 0; z-index: 0; }
.cn-slot--h2:empty { display: none; }
.cn--h2 { position: absolute; left: 50%; top: -2vw; width: min(100%, 1760px); translate: -50% 0; opacity: 0.6; }

@media (max-width: 767px) {
  .cn { aspect-ratio: 1088 / 676; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .cn--h3, .cn--h1, .cn--h2 { width: 100%; }
  .cn__spark { left: 50.3%; width: 9%; }
}
@media (prefers-reduced-motion: reduce) {
  .cn__still, .cn__canvas, .cn__spark { transition: none; }
}

/* Stopka */
.site-footer { padding: 0; border-top: 1px solid var(--ct-line-soft); background: var(--ct-bg); color: var(--ct-text-2); font-size: 0.9375rem; }
.sf__inner { max-width: 1600px; margin: 0 auto; padding: clamp(2.5rem, 6svh, 3.5rem) var(--ct-gutter) 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.sf__claim { margin: 1rem 0 0; max-width: 22rem; line-height: 1.5; }
.sf__brands { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--ct-text-3); }
.sf__h { margin: 0 0 0.875rem; font: 600 0.8125rem/1.2 var(--ct-font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ct-text-3); }
.sf__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.sf__col a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--ct-text-2); text-decoration: none; transition: color var(--ct-fast) var(--ct-ease-out); }
.sf__col a:hover { color: var(--ct-text); text-decoration: underline; text-underline-offset: 0.25em; }
.sf__plain li { padding: 0.375rem 0; line-height: 1.4; }
.sf__bottom { max-width: 1600px; margin: 0 auto; padding: 1.25rem var(--ct-gutter) 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; border-top: 1px solid var(--ct-line-soft); font-size: var(--ct-small); color: var(--ct-text-3); }
.sf__bottom p { margin: 0; }
.sf__top { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2rem; color: var(--ct-text-2); text-decoration: none; }
.sf__top:hover { color: var(--ct-text); }

@media (max-width: 1099px) {
  .cx__inner { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
  .cx__next, .cx__lead { max-width: 40rem; }
  .sf__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .cx-form__grid { grid-template-columns: minmax(0, 1fr); }
  .sf__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf__col:last-child { grid-column: 1 / -1; }
}


/* ---------- Tablet / niższe szerokości ---------- */
@media (max-width: 1099px) {
  .hero-copy { width: min(40rem, 62vw); }
}

/* Tablet w pionie: postać na całą wysokość, tekst na ciemnym dole kadru */
@media (max-width: 1099px) and (orientation: portrait) {
  .scene {
    --sh: min(100svh, 100vw * 1.26);
    --ax: 50vw;
    --sy: calc(100svh - var(--sh) + 2svh);
  }
  .hero-copy {
    left: var(--ct-gutter);
    right: var(--ct-gutter);
    width: auto;
    bottom: clamp(1.5rem, 4svh, 3rem);
  }
  .hero-copy__lead { max-width: 30ch; }
  .stage__word .word-wide { display: none; }
  .stage__word .word-narrow { display: inline; }
}

/* ---------- Tablet 768-1023: menu w panelu jak na telefonie (od v0.16 nawigacja ma 5 pozycji i nie mieści się w jednym rzędzie) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.875rem; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: rgb(13 17 26 / 0.6); color: var(--ct-text); font: 500 0.9375rem/1 var(--ct-font-ui); cursor: pointer; }
  .menu-toggle__icon { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .js .site-nav { position: fixed; inset: var(--ct-header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 0.5rem var(--ct-gutter) 1.5rem; background: var(--ct-bg); border-bottom: 1px solid var(--ct-line); display: none; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a { width: 100%; min-height: 52px; padding: 0; font-size: 1.125rem; border-bottom: 1px solid var(--ct-line-soft); }
  .js .site-nav .btn { min-height: 3rem; align-self: flex-start; }
  html:not(.js) .site-header { height: auto; position: absolute; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }
}

/* ---------- Telefon ---------- */
@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.875rem;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    background: rgb(13 17 26 / 0.6);
    color: var(--ct-text);
    font: 500 0.9375rem/1 var(--ct-font-ui);
    cursor: pointer;
  }
  .menu-toggle__icon {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .js .site-nav {
    position: fixed;
    inset: var(--ct-header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem var(--ct-gutter) 1.5rem;
    background: var(--ct-bg);
    border-bottom: 1px solid var(--ct-line);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a {
    width: 100%;
    min-height: 52px;
    padding: 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--ct-line-soft);
  }
  .js .site-nav .btn { min-height: 3rem; }
  /* bez JS: linki w drugim rzędzie nagłówka */
  html:not(.js) .site-header { height: auto; position: absolute; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav .btn { display: none; }

  .wordmark__desc { display: none; }
  /* Telefon: tekst i przyciski na górze, scena zaczyna się tuż pod nimi (JS ustawia --sy-js) */
  .scene {
    --sh: calc(100vw * 1.30);
    --ax: 50vw;
    --sy: var(--sy-js, max(calc(100svh - var(--sh)), 20rem));
  }
  /* dolna i górna krawędź kadru przechodzą w tło */
  .stage {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 88%, transparent 100%);
  }
  .scene__sticky { min-height: 600px; }
  .hero-copy {
    top: calc(var(--ct-header-h) + 0.75rem);
    left: var(--ct-gutter);
    right: var(--ct-gutter);
    bottom: auto;
    width: auto;
  }
  .hero-copy__title { font-size: clamp(1.75rem, 8.6vw, 2.5rem); }
  .hero-copy__lead { margin-top: 0.75rem; font-size: 1rem; max-width: 34ch; }
  .hero-copy__actions { margin-top: 1.125rem; gap: 0.25rem 1.25rem; }
  .hero-copy__actions .btn { flex: 1 1 100%; }
  .hero-copy__actions .text-link { min-height: 2.75rem; }
  .skip-scene { right: 50%; transform: translateX(50%); bottom: 0.75rem; }
}

/* Niskie ekrany laptopów */
@media (min-width: 1100px) and (max-height: 760px) {
  .hero-copy__lead { margin-top: 0.875rem; }
  .hero-copy__actions { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
