/* =========================================================
   karolg.montuje — styl "liquid glass"
   Paleta: Midnight Black #02070A · Electric Blue #0297DE · Cantaloupe Orange #FC734D
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #02070A;
  --bg-2: #07131b;
  --blue: #0297DE;
  --orange: #FC734D;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #F3F7FA;
  --muted: rgba(226, 237, 245, 0.66);
  --dim: rgba(226, 237, 245, 0.42);
  --accent: var(--blue);
  --accent-2: var(--orange);
  --accent-glow: rgba(2, 151, 222, 0.45);
  --grad: linear-gradient(100deg, var(--blue), var(--orange));

  /* liquid glass: ciemne, lekko przydymione szkło. Subtelne wypełnienie, cienka linia światła
     na górnej krawędzi i delikatny obrys, bez mlecznego połysku */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 45%, rgba(255, 255, 255, 0.018));
  --glass-tint: linear-gradient(rgba(5, 13, 19, 0.38), rgba(5, 13, 19, 0.38));
  --glass-rim: linear-gradient(170deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.07) 22%, rgba(255, 255, 255, 0.035) 70%, rgba(255, 255, 255, 0.09));
  --glass-blur: blur(18px) saturate(135%);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 70px -32px rgba(0, 0, 0, 0.85);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip zamiast hidden: nie tworzy kontenera przewijania, więc blokada
     przewijania przy otwartym odtwarzaczu nie przerzuca strony na górę */
  overflow-x: clip;
}
body.has-cursor, body.has-cursor * { cursor: none !important; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a, img, video { -webkit-user-drag: none; }
::selection { background: var(--blue); color: #fff; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
/* podpis sekcji: mono z pomarańczową kropką, jak "• Media Library" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 12px var(--orange);
}

/* wspólny wygląd szkła */
.glass,
.card, .panel, .btn--ghost, .chip, .ticker, .hero__badge, .reel__tag, .reel__client,
.guard__msg, .to-top, .player__nav, .player__close, .vp__big, .process li, .quote__note {
  border: 1px solid transparent;
  background: var(--glass-fill) padding-box, var(--glass-tint) padding-box, var(--glass-rim) border-box;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
/* szkło wewnątrz szkła (specjalizacje, kroki, notatka): prawie przezroczyste, żeby połysk się nie dublował */
.card .chip, .card .process li, .card .quote__note, .quote .quote__note {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)) padding-box,
    linear-gradient(170deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.05)) border-box;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---------- tło ---------- */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.6; }
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(110px);
}
/* stałe łuny w tle: dają kolor, który szklane karty rozmywają przy przewijaniu */
.glow--a { width: 55vw; height: 55vw; left: -24vw; top: 5vh; background: radial-gradient(circle, rgba(2, 151, 222, 0.34), transparent 65%); }
.glow--b { width: 50vw; height: 50vw; right: -22vw; top: 45vh; background: radial-gradient(circle, rgba(252, 115, 77, 0.26), transparent 65%); }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .footer { position: relative; z-index: 2; }

/* ---------- kursor ---------- */
.cursor { display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; will-change: transform;
}
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--text);
  mix-blend-mode: difference;
  transition: opacity 0.2s, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(243, 247, 250, 0.5);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
    background 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(2, 151, 222, 0.10); border-color: rgba(120, 205, 245, 0.8);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }

/* ---------- przyciski ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
/* biała pigułka jak "Get Started Free" */
.btn--primary {
  background: #fff; color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow), inset 0 -2px 0 rgba(2, 7, 10, 0.08);
}
.btn--primary:hover { box-shadow: 0 12px 40px -6px var(--accent-glow), 0 0 0 4px rgba(2, 151, 222, 0.15); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { box-shadow: var(--glass-shadow), 0 0 0 4px rgba(255, 255, 255, 0.06); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }


/* ---------- nawigacja: bez paska, jak na wzorze ---------- */
.nav {
  position: fixed; z-index: 50; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0;
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -160%); }
/* po przewinięciu: tylko miękkie przyciemnienie u góry ekranu, bez ramki, żeby tekst był czytelny */
body::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 110px; z-index: 49; pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 7, 10, 0.88), rgba(2, 7, 10, 0.5) 55%, transparent);
  opacity: 0; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.nav-solid::before { opacity: 1; }
body.nav-up::before { transform: translateY(-100%); }
.nav__logo { display: inline-flex; align-items: center; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; white-space: pre; }
.nav__logo span { color: var(--orange); }
/* obwódka znaku: równy 1 px narysowany przez CSS (tło w paddingu obrazka), jaśniejszy u góry jak szkło */
.nav__mark {
  box-sizing: border-box; width: 30px; height: 30px; padding: 1px; border-radius: 50%; margin-right: 10px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.16) 55%, rgba(255, 255, 255, 0.24));
}
/* linki na środku niezależnie od liczby przycisków po prawej */
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav__links a::before { /* pomarańczowa kropka aktywnej sekcji, jak "• Features" */
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  transform: scale(0); margin-right: -14px; transition: transform 0.35s var(--ease), margin 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::before { transform: scale(1); margin-right: 0; }
/* przyciski po prawej: cienki obrys jak "Sign In" i biała pigułka jak "Get Started Free" */
.nav__burger, .nav__sound {
  border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav__burger:hover, .nav__sound:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.nav__cta { background: #fff; color: var(--bg); font-weight: 600; }
.nav__cta:hover { box-shadow: 0 10px 34px -6px var(--accent-glow); }

/* przycisk dźwięków: mini equalizer, który "gra", gdy dźwięki są włączone */
.nav__sound {
  margin-left: auto; margin-right: -6px;
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--text);
}
.nav__sound:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq i {
  width: 2.5px; height: 100%; border-radius: 2px; background: currentColor;
  transform-origin: bottom; transform: scaleY(0.3);
  transition: transform 0.4s var(--ease);
}
.nav__sound[aria-pressed="true"] { color: #7fd0f7; }
.nav__sound[aria-pressed="true"] .eq i { animation: eq 1s ease-in-out infinite; }
.nav__sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.35s; animation-duration: 0.8s; color: var(--orange); background: var(--orange); }
.nav__sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.15s; }
.nav__sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.9s; background: var(--orange); }
.nav__sound[aria-pressed="false"] .eq i { transform: scaleY(0.2); }
@keyframes eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
/* na tabletach brakuje miejsca na linki + dźwięk + przycisk; "Kontakt" i tak jest w linkach */
@media (max-width: 960px) {
  .nav__cta { display: none; }
}
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 23px; }
body.menu-open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 24px;
  background: radial-gradient(80% 60% at 50% 100%, rgba(252, 115, 77, 0.25), transparent 70%), rgba(2, 7, 10, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu a { font-family: var(--serif); font-size: clamp(48px, 14vw, 72px); line-height: 1.05; transform: translateY(20px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open .menu a { transform: none; opacity: 1; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .menu a:nth-child(4) { transition-delay: 0.15s; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100svh; /* bez paneli: tytuł na środku pierwszego ekranu */
  padding: 150px var(--gutter) 90px;
  text-align: center;
  overflow: clip;
}
/* pionowe smugi światła */
.hero__beams {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* pomarańczowa łuna u dołu pierwszego ekranu, jak na wzorze */
    radial-gradient(42% 300px at 50% 960px, rgba(252, 115, 77, 0.55), rgba(252, 115, 77, 0.12) 55%, transparent 75%),
    radial-gradient(55% 38% at 50% 100%, rgba(252, 115, 77, 0.85), rgba(252, 115, 77, 0.25) 45%, transparent 75%),
    radial-gradient(70% 30% at 50% 78%, rgba(255, 140, 90, 0.35), transparent 70%),
    radial-gradient(38% 55% at 50% 55%, rgba(2, 151, 222, 0.55), rgba(2, 151, 222, 0.12) 55%, transparent 75%),
    radial-gradient(60% 50% at 50% 0%, rgba(2, 151, 222, 0.18), transparent 70%),
    var(--bg);
  -webkit-mask: linear-gradient(to bottom, #000 80%, transparent);
  mask: linear-gradient(to bottom, #000 80%, transparent);
}
.hero__beams::before, .hero__beams::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: radial-gradient(48% 72% at 50% 70%, #000 30%, transparent 78%);
  mask: radial-gradient(48% 72% at 50% 70%, #000 30%, transparent 78%);
}
.hero__beams::before { /* cienkie, jasne smugi */
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(190, 232, 255, 0.16) 9px 10px, transparent 10px 19px);
  animation: beams 14s linear infinite;
}
.hero__beams::after { /* szersze, miękkie smugi */
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(2, 151, 222, 0.22) 38px 46px, transparent 46px 84px);
  filter: blur(7px);
  animation: beams 22s linear infinite reverse;
}
@keyframes beams { to { background-position: 190px 0; } }

.hero__top { position: relative; width: 100%; max-width: 1360px; display: flex; justify-content: center; }
.hero__inner { position: relative; z-index: 2; max-width: 960px; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 8.6vw, 136px);
  line-height: 0.98; letter-spacing: -0.015em;
  text-shadow: 0 10px 60px rgba(2, 7, 10, 0.45);
}
/* okno animacji: szeryfowe ogonki (y, j) schodzą nisko, więc okno jest głębokie,
   a ujemny margines zostawia odstęp między linijkami bez zmian */
.hero__title .line { display: block; overflow: hidden; padding: 0 0.08em 0.3em; margin-bottom: -0.26em; }
.hero__title .word { display: inline-block; transform: translateY(120%); transition: transform 1.1s var(--ease); }
/* gradient wycięty do liter maluje się tylko w pudełku słowa; ogonki y/j schodzą niżej,
   więc pole gradientu jest rozszerzone w dół (padding) i cofnięte marginesem, żeby nie zmieniać odstępów */
.hero__title .serif {
  padding: 0 0.06em 0.32em 0.02em;
  background: linear-gradient(100deg, #8fd8ff 0%, #ffffff 30%, #ffc3ae 55%, #ffffff 78%, #8fd8ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* druga linijka jest wyższa o pole gradientu kursywy, więc cofamy ją o tyle samo */
.hero__title .line:nth-child(2) { margin-bottom: -0.58em; }
body.loaded .hero__title .word { transform: none; }
body.loaded .hero__title .line:nth-child(2) .word { transition-delay: 0.12s; }
/* "żywy" tytuł: każde słowo bardzo powoli dryfuje o 2–3 px i ułamek stopnia, każde w innym rytmie,
   a gradient kursywy przelewa się z niebieskiego w brzoskwiniowy. Właściwości translate/rotate
   składają się z transform od animacji wejścia, więc jedno drugiemu nie przeszkadza. */
body.loaded .hero__title .word { animation: titleDrift 9s ease-in-out 1.3s infinite; }
body.loaded .hero__title .line:nth-child(1) .word:nth-child(2) { animation-duration: 11s; animation-delay: 0.4s; animation-direction: reverse; }
body.loaded .hero__title .line:nth-child(2) .word:nth-child(1) { animation: titleDrift 12s ease-in-out 0.8s infinite reverse, titleShimmer 14s ease-in-out infinite alternate; }
body.loaded .hero__title .line:nth-child(2) .word:nth-child(2) { animation-duration: 10s; animation-delay: 2.1s; }
@keyframes titleDrift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: 1.5px -2.5px; rotate: -0.3deg; }
  65% { translate: -1.5px 1.5px; rotate: 0.25deg; }
}
@keyframes titleShimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero__lead { max-width: 560px; margin: 26px 0 0; font-family: var(--mono); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.7; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* statystyki po bokach */
.hero__side {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 34px;
}
.hero__side--l { left: 0; text-align: center; }
.hero__side--l .stat { align-items: center; }
.hero__side--r { right: 0; text-align: right; align-items: flex-end; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  font-size: 13px; color: var(--text);
}
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite; vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* trzy szklane panele u dołu */
.hero__panels {
  width: min(1320px, 100%); margin-top: 80px;
  display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 22px; align-items: end;
  perspective: 1600px;
}
.panel {
  position: relative; border-radius: var(--radius);
  padding: 46px 16px 16px; min-height: 380px; text-align: left;
  transition: transform 0.9s var(--ease), box-shadow 0.6s var(--ease);
}
.panel__label {
  position: absolute; left: 18px; top: 14px; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
}
.panel__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.panel--lib { transform: rotateY(14deg) rotateZ(-2deg) translateY(26px); transform-origin: right center; }
.panel--edit { transform: rotateY(-14deg) rotateZ(2deg) translateY(26px); transform-origin: left center; }
.panel--lib:hover, .panel--edit:hover { transform: translateY(6px); }
.panel--fan { min-height: 420px; padding-top: 40px; }

/* panel "Rolki": siatka miniaturek z długością */
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lib__item {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.lib__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.35s var(--ease); }
.lib__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(2, 7, 10, 0.75)); }
.lib__item:hover { transform: translateY(-4px); border-color: rgba(127, 208, 247, 0.7); box-shadow: 0 16px 40px -12px rgba(2, 151, 222, 0.6); }
.lib__item:hover img { transform: scale(1.06); }
.lib__dur {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 2px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums;
  background: rgba(2, 7, 10, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* panel "Oś montażu": interaktywna mini oś z twoimi rolkami */
.edit { position: relative; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); touch-action: none; }
.edit__ruler { display: flex; justify-content: space-between; padding: 0 0 6px 30px; border-bottom: 1px solid var(--line); }
.edit__row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; }
.edit__track { position: relative; display: flex; gap: 4px; height: 100%; }
.edit__row--t .edit__track { height: 26px; }
.edit__row--v .edit__track { height: 92px; }
.edit__row--a .edit__track { height: 54px; }
.edit__title {
  flex: 1; border-radius: 6px; padding: 5px 8px; text-align: left;
  font-family: var(--mono); font-size: 10px; color: #fff;
  background: linear-gradient(100deg, rgba(252, 115, 77, 0.9), rgba(252, 115, 77, 0.55));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s;
}
.edit__title:nth-child(2n) { background: linear-gradient(100deg, rgba(2, 151, 222, 0.9), rgba(2, 151, 222, 0.55)); }
.edit__title:hover { filter: brightness(1.15); transform: translateY(-1px); }
.edit__title.is-active { box-shadow: 0 0 0 2px #fff, 0 6px 18px -4px rgba(252, 115, 77, 0.7); transform: translateY(-2px); }
.edit__title:nth-child(2n).is-active { box-shadow: 0 0 0 2px #fff, 0 6px 18px -4px rgba(2, 151, 222, 0.8); }
.edit__clip {
  flex: 1; border-radius: 6px; background-size: auto 100%; background-repeat: repeat-x;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.edit__clip:hover { border-color: #7fd0f7; transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(2, 151, 222, 0.7); }
.edit__wave {
  flex: 1; display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 6px;
  background: rgba(252, 115, 77, 0.14); border: 1px solid rgba(252, 115, 77, 0.35);
  transition: background 0.3s, box-shadow 0.35s;
}
.edit__wave:hover { background: rgba(252, 115, 77, 0.22); }
.edit__wave i { flex: 1; border-radius: 2px; background: var(--orange); opacity: 0.85; transform-origin: center; }
/* kliknięty podkład: słupki skaczą w rytm bitu */
.edit__wave.is-playing { box-shadow: 0 0 24px -4px rgba(252, 115, 77, 0.8); }
.edit__wave.is-playing i { animation: waveJump 0.4s var(--d, 0s) ease-in-out 4; }
@keyframes waveJump {
  0%, 100% { transform: scaleY(1); }
  30% { transform: scaleY(0.35); }
  60% { transform: scaleY(1.35); background: #ffb59f; }
}
/* głowica: pozycję (od środka "00:00" do środka "00:10") ustawia skrypt przez transform,
   więc ani linia, ani licznik nie wychodzą poza oś */
.edit__playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 12px var(--blue);
  pointer-events: none; z-index: 3; will-change: transform;
}
.edit__playhead::before { content: ""; position: absolute; top: 14px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
.edit__tc { /* licznik czasu nad głowicą; przykrywa napis linijki, nad którym akurat jest */
  position: absolute; top: -2px; left: 1px; transform: translateX(-50%);
  padding: 1px 5px; border-radius: 4px;
  font-weight: 500; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.4;
  color: var(--bg); background: #fff;
}
.edit__hint {
  margin: 12px 0 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}
/* scenki po kliknięciu napisu: nakładka na klipach */
.edit__demo {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  border-radius: 6px; background: rgba(2, 7, 10, 0.55); opacity: 0; transition: opacity 0.35s var(--ease);
}
.edit__demo.is-on { opacity: 1; }
.edit__demo.is-cta.is-on { pointer-events: auto; }
.demo-hook { font-family: var(--sans); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; color: #fff; text-shadow: 0 0 22px rgba(252, 115, 77, 0.9); animation: hookPunch 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes hookPunch {
  0% { transform: scale(2.4); opacity: 0; filter: blur(8px); }
  55% { transform: scale(0.92); opacity: 1; filter: none; }
  70% { transform: scale(1.04) rotate(-2deg); }
  85% { transform: scale(1) rotate(1.5deg); }
  100% { transform: none; }
}
.demo-subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 10px; font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; text-transform: uppercase; }
.demo-subs span { display: inline-block; animation: wordPop 0.35s calc(var(--i) * 0.22s) cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.demo-subs .hl { padding: 0 4px; border-radius: 4px; background: var(--blue); }
@keyframes wordPop { from { transform: translateY(8px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-cta {
  padding: 9px 16px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 13px;
  color: var(--bg); background: #fff; box-shadow: 0 10px 28px -6px rgba(2, 151, 222, 0.8);
  animation: ctaUp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.demo-cta:hover { background: var(--orange); color: #fff; }
@keyframes ctaUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* wachlarz rolek w środkowym panelu */
.hero__visual {
  position: relative; width: 100%; height: 360px;
  perspective: 1200px;
  opacity: 0; transition: opacity 1.4s var(--ease) 0.4s;
}
body.loaded .hero__visual { opacity: 1; }
.fan { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.fan__card {
  --r: 0deg; --tx: 0px; --ty: 0px;
  position: absolute; left: 50%; top: 46%;
  width: 156px; aspect-ratio: 9 / 16;
  margin: -139px 0 0 -78px;
  border-radius: 18px; overflow: visible;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  transform: translate(var(--tx), var(--ty)) rotate(var(--r));
  transition: transform 0.95s cubic-bezier(0.65, 0, 0.2, 1), box-shadow 0.8s var(--ease);
  animation: float 7s ease-in-out infinite;
  cursor: pointer;
}
.fan__inner {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28); background: var(--bg-2);
}
.fan__card video, .fan__card img { width: 100%; height: 100%; object-fit: cover; }
/* mysz nigdy nie trafia w samo wideo, więc przeglądarka nie może pokazać menu "Zapisz film / Kopiuj adres" */
.fan__card video, .player__video { pointer-events: none; }
.fan__card--l { --r: -13deg; --tx: -100px; --ty: 22px; z-index: 1; }
.fan__card--c { --ty: -8px; z-index: 3; box-shadow: 0 40px 90px -20px rgba(2, 151, 222, 0.55); }
.fan__card--r { --r: 13deg; --tx: 100px; --ty: 22px; z-index: 1; }
.fan__card--l .fan__inner, .fan__card--r .fan__inner { filter: brightness(0.75) saturate(0.85); transition: filter 0.8s var(--ease); }
.fan__card--l:hover .fan__inner, .fan__card--r:hover .fan__inner { filter: none; }
.fan__card--c .fan__inner { transition: filter 0.8s var(--ease); }
.fan__hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  margin: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); pointer-events: none;
}
/* zamiana kart: wjazd na środek i odjazd na bok */
.fan__card.is-in .fan__inner { animation: fanIn 0.95s cubic-bezier(0.34, 1.3, 0.5, 1); }
.fan__card.is-in[data-from="r"] .fan__inner { --tilt: -14deg; }
.fan__card.is-in[data-from="l"] .fan__inner { --tilt: 14deg; }
.fan__card.is-out .fan__inner { animation: fanOut 0.95s var(--ease); }
.fan__card.is-in .fan__shine { animation: shine 0.9s 0.2s ease-out; }
.fan__shine {
  position: absolute; inset: -20%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-70%);
}
@keyframes fanIn {
  0% { transform: perspective(900px) rotateY(0) scale(1); }
  40% { transform: perspective(900px) rotateY(var(--tilt, 0deg)) scale(1.1); filter: brightness(1.25); }
  100% { transform: none; filter: none; }
}
@keyframes fanOut {
  0% { transform: none; }
  45% { transform: scale(0.88); filter: brightness(0.55) blur(1.5px); }
  100% { transform: none; }
}
@keyframes shine {
  0% { opacity: 1; transform: translateX(-70%); }
  100% { opacity: 1; transform: translateX(70%); }
}
.hero__visual:hover .fan__card--l { --tx: -124px; --r: -17deg; }
.hero__visual:hover .fan__card--r { --tx: 124px; --r: 17deg; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 2;
  width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 40px auto 0;
  border-radius: 999px; overflow: hidden; padding: 16px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: ticker 40s linear infinite;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1;
}
.ticker__track span:nth-of-type(even) { font-style: italic; color: var(--muted); }
.ticker__track b { color: var(--orange); font-size: 0.55em; text-shadow: 0 0 12px var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sekcje ---------- */
section { position: relative; }
.work, .about, .services { padding: clamp(100px, 13vw, 170px) 0 0; }
.section-head { max-width: 1280px; margin: 0 auto 56px; padding: 0 var(--gutter); }
.section-head h2 {
  margin: 0; max-width: 920px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 88px); line-height: 1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head h2 .serif, .quote__title .serif, .contact__title .serif, .card__big .hl {
  background: linear-gradient(100deg, #6fcbf7, #ffb59f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* to są elementy w linii tekstu: dolny padding poszerza pole gradientu pod ogonki (ę, ą, p),
     nie zmieniając wysokości linijki; "clone" powtarza to przy łamaniu na dwie linijki */
  padding: 0 0.06em 0.3em 0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section-head__sub { margin: 20px 0 0; color: var(--muted); max-width: 480px; font-family: var(--mono); font-size: 14px; line-height: 1.7; }

/* ---------- pasek rolek ---------- */
.strip {
  position: relative; overflow: hidden;
  /* duży padding, żeby poświata aktywnej rolki się nie ucinała */
  padding: 80px 0 130px;
  margin: -50px 0 -90px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  touch-action: pan-y;
  user-select: none;
}
.strip__track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.reel {
  --w: clamp(210px, 19vw, 290px);
  position: relative; flex: 0 0 var(--w); width: var(--w);
  aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--ease), opacity 0.5s, filter 0.5s, border-color 0.4s, box-shadow 0.6s;
  transform: translateZ(0);
}
.reel video, .reel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 10, 0.35) 0%, transparent 25%, transparent 55%, rgba(2, 7, 10, 0.9) 100%);
  pointer-events: none;
}
.reel__top, .reel__bottom { position: absolute; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.reel__top { top: 14px; }
.reel__bottom { bottom: 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
.reel__num { font-family: var(--mono); font-size: 12px; color: rgba(243, 247, 250, 0.85); }
.reel__tag { font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.reel__title { font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.reel__client, .player__client {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text);
  transition: background 0.3s, color 0.3s;
}
.reel__client { margin-bottom: 8px; padding: 5px 10px 5px 8px; border-radius: 999px; }
.reel__client:hover { background: #fff; color: var(--bg); }
.reel__client svg, .player__client svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
}
.reel__client svg .fill, .player__client svg .fill { fill: currentColor; stroke: none; }
.player__client { margin-left: 10px; color: #7fd0f7; font-size: 13px; }
.player__client:hover { color: var(--text); }
.reel__cta { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.reel__cta::before { content: ""; width: 0; height: 0; border-left: 7px solid var(--orange); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

.strip.is-hovering .reel { opacity: 0.4; filter: saturate(0.4); }
.strip.is-hovering .reel.is-active {
  opacity: 1; filter: none;
  transform: translateY(-10px) scale(1.035);
  border-color: rgba(127, 208, 247, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 70px -20px rgba(2, 151, 222, 0.6), 0 20px 80px -30px rgba(252, 115, 77, 0.5);
}
.strip.is-dragging .reel { transition: opacity 0.5s, filter 0.5s; }

/* ---------- bento ---------- */
.bento {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.card {
  position: relative; overflow: hidden;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius);
  isolation: isolate;
}
/* podświetlenie za kursorem: niebieskie światło pod szkłem */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(2, 151, 222, 0.16), transparent 60%);
  transition: opacity 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 208, 247, 0.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.4s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.card__label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex: none; }
.card__big { margin: 0; font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; }
.card__big .hl { font-style: italic; }
.card__text { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.card--intro { grid-column: span 4; }
.card--clock { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.card--tools { grid-column: span 2; }
.card--skills { grid-column: span 4; }
.card--process { grid-column: span 6; }

.clock { display: flex; flex-direction: column; }
.clock__time { font-family: var(--serif); font-size: clamp(64px, 6vw, 92px); line-height: 0.95; font-variant-numeric: tabular-nums; }
.clock__zone { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; }
.card--clock .card__text { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* ---------- oś czasu ---------- */
.card--timeline { grid-column: span 6; }
.timeline { position: relative; margin-top: 8px; }
.timeline__bar {
  position: absolute; left: 7px; right: 0; top: 7px; height: 2px;
  background: var(--line-2); border-radius: 2px;
}
.timeline__bar::after { /* grot na końcu osi */
  content: ""; position: absolute; right: -2px; top: -4px;
  border-left: 8px solid var(--line-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.timeline__fill {
  position: absolute; inset: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, var(--blue) 40%, var(--orange) 100%);
  box-shadow: 0 0 14px rgba(2, 151, 222, 0.6);
  transition: width 1.8s cubic-bezier(0.65, 0, 0.25, 1) 0.2s;
}
.card--timeline.in .timeline__fill { width: calc(100% - 4px); }
/* szerokości etapów odpowiadają czasowi: pół roku · rok · pół roku */
.timeline__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 2fr 1fr; }
.step { position: relative; padding: 38px 28px 0 0; }
.step__dot {
  position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue);
  transform: scale(0); transition: transform 0.6s cubic-bezier(0.34, 1.6, 0.5, 1) calc(0.3s + var(--i) * 0.55s);
}
.step--now .step__dot { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.step > :not(.step__dot) {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) calc(0.45s + var(--i) * 0.55s), transform 0.8s var(--ease) calc(0.45s + var(--i) * 0.55s);
}
.card--timeline.in .step__dot { transform: none; }
.card--timeline.in .step > :not(.step__dot) { opacity: 1; transform: none; }
.step__time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #7fd0f7; }
.step--now .step__time { color: var(--orange); }
.step__logos { display: flex; align-items: center; margin: 16px 0 16px; }
.step__logos img {
  position: relative;
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: margin 0.5s var(--ease), transform 0.5s var(--ease);
}
.step__logos img + img { margin-left: -18px; transform: rotate(8deg); } /* lekko nałożone */
.step__logos img:first-child { z-index: 2; } /* DaVinci na wierzchu */
.step:hover .step__logos img + img { margin-left: 6px; transform: none; }
.step:hover .step__logos img:first-child { transform: rotate(-6deg); }
.step h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.step p { margin: 0; color: var(--muted); font-size: 14px; max-width: 340px; }

.card--tools { display: flex; flex-direction: column; }
.tool { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.tool__logo {
  width: 84px; height: 84px;
  filter: drop-shadow(0 14px 26px rgba(252, 115, 77, 0.35));
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.card--tools:hover .tool__logo {
  transform: rotate(-8deg) scale(1.06);
  filter: drop-shadow(0 18px 32px rgba(2, 151, 222, 0.5));
}
.tool__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.tool__desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- specjalizacje: klikalne z definicją ---------- */
.card__hint { text-transform: none; letter-spacing: 0.04em; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.chip {
  position: relative; overflow: hidden; text-align: left; max-width: 100%;
  padding: 10px 14px 10px 18px; border-radius: 22px;
  font-size: 15px; color: var(--text);
  transition: box-shadow 0.5s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow), 0 0 0 3px rgba(255, 255, 255, 0.05); }
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.chip__head { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.chip__icon {
  position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
}
.chip__icon::before, .chip__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; margin: -0.75px 0 0 -4px;
  border-radius: 2px; background: currentColor;
}
.chip__icon::after { transform: rotate(90deg); }
.chip__def {
  display: none; width: min(300px, 64vw); margin: 10px 0 2px;
  font-size: 14px; line-height: 1.55; color: var(--muted); white-space: normal;
}
/* stan otwarty */
.chip.is-open {
  border-radius: 18px; transform: none;
  background: linear-gradient(150deg, rgba(2, 151, 222, 0.30), rgba(252, 115, 77, 0.10)) padding-box, var(--glass-rim) border-box;
  box-shadow: var(--glass-shadow), 0 14px 40px -14px rgba(2, 151, 222, 0.7);
}
.chip.is-open .chip__icon { transform: rotate(135deg); background: var(--orange); color: var(--bg); }
.chip.is-open .chip__def { display: block; animation: defIn 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
/* błysk przelatujący przez otwierany przycisk */
.chip.is-open::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%); animation: chipShine 0.9s 0.1s ease-out both;
}
@keyframes defIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes chipShine { to { transform: translateX(100%); } }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process li { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 18px; position: relative; }
.process li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -17px; width: 18px; height: 1px; background: var(--grad);
}
.process b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--orange); }
.process h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.process p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- cennik ---------- */
.pricing {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch;
}
.price { display: flex; flex-direction: column; }
.pricing__note {
  max-width: 1280px; margin: 14px auto 0; padding: 0 var(--gutter);
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}
.price__level { display: flex; gap: 5px; margin-bottom: 20px; }
.price__level i { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2); }
.price__level i.on { background: var(--grad); }
.price__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.05; }
.price__value { margin: 14px 0 0; font-size: 18px; color: var(--muted); display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.price__value strong { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 3.8vw, 56px); color: var(--text); line-height: 1; }
.price__value span { font-family: var(--mono); font-size: 12px; }
.price__desc { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.price__list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.price__list li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(2, 151, 222, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd0f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price__btn { margin-top: auto; justify-content: center; }
/* wyróżniona karta: szkło z niebiesko-pomarańczową krawędzią */
.price--featured {
  background:
    linear-gradient(160deg, rgba(2, 151, 222, 0.22), rgba(255, 255, 255, 0.04) 45%, rgba(252, 115, 77, 0.14)) padding-box,
    linear-gradient(150deg, rgba(127, 208, 247, 0.9), rgba(255, 255, 255, 0.1) 40%, rgba(252, 115, 77, 0.8)) border-box;
  box-shadow: var(--glass-shadow), 0 30px 80px -30px rgba(2, 151, 222, 0.6);
}
.price__badge {
  position: absolute; top: 22px; right: 22px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: var(--grad);
}

/* zasady: poprawki, stała współpraca, rolka testowa */
.terms {
  max-width: 1280px; margin: 16px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.term h3 { margin: 18px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.term p { margin: 0; color: var(--muted); font-size: 15px; }
.term p em { font-style: normal; color: var(--text); font-family: var(--mono); font-size: 13px; }
.term__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; color: #7fd0f7;
  background: rgba(2, 151, 222, 0.14); border: 1px solid rgba(2, 151, 222, 0.35);
  transition: transform 0.5s var(--ease);
}
.term:hover .term__icon { transform: rotate(-10deg) scale(1.08); }
.term__badge {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; vertical-align: 4px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--bg);
  background: #4ade80;
}

/* jak dostać wycenę */
.quote {
  max-width: calc(1280px - 2 * var(--gutter)); margin: 16px auto 0;
  width: calc(100% - 2 * var(--gutter));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end;
  background:
    linear-gradient(140deg, rgba(2, 151, 222, 0.18), rgba(255, 255, 255, 0.03) 50%, rgba(252, 115, 77, 0.14)) padding-box,
    var(--glass-rim) border-box;
}
.quote__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
.quote__list {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.quote__list li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.quote__list li::before { content: "→"; color: var(--orange); flex: none; }
.quote__side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.quote__note { margin: 0; padding: 18px 20px; border-radius: 16px; font-size: 14px; color: var(--muted); }
.quote__note b { color: var(--text); font-weight: 600; }

/* ---------- kontakt ---------- */
.contact {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact::before { /* pomarańczowo-niebieska łuna za nagłówkiem */
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(900px, 120vw); height: 520px;
  transform: translate(-50%, -50%); pointer-events: none; filter: blur(60px);
  background: radial-gradient(50% 50% at 35% 50%, rgba(2, 151, 222, 0.30), transparent 70%), radial-gradient(50% 50% at 65% 55%, rgba(252, 115, 77, 0.28), transparent 70%);
}
/* rozmiar zależy też od wysokości ekranu, żeby nagłówek i przycisk mieściły się razem */
.contact__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, min(8vw, 10vh), 124px); line-height: 1; letter-spacing: -0.01em; }
.contact__lead { margin: 22px 0 0; color: var(--muted); font-family: var(--mono); font-size: 14px; line-height: 1.7; max-width: 500px; }

/* ---------- przycisk: wiadomość na Instagramie ---------- */
@property --ig-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ig-cta-wrap { margin-top: 44px; width: min(100%, 560px); }
.ig-cta {
  --ig: #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75;
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 12px 12px 12px 14px; border-radius: 26px;
  text-align: left;
  border: 2px solid transparent;
  background:
    linear-gradient(150deg, rgba(20, 30, 38, 0.92), rgba(6, 14, 20, 0.92)) padding-box,
    conic-gradient(from var(--ig-angle), var(--ig)) border-box;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 60px -24px rgba(214, 41, 118, 0.45);
  transition: box-shadow 0.5s var(--ease);
  animation: igSpin 6s linear infinite paused;
}
.ig-cta:hover { animation-play-state: running; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 26px 70px -18px rgba(214, 41, 118, 0.6), 0 0 0 6px rgba(150, 47, 191, 0.12); }
@keyframes igSpin { to { --ig-angle: 360deg; } }
.ig-cta__logo {
  width: 56px; height: 56px; flex: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.ig-cta:hover .ig-cta__logo { transform: rotate(-10deg) scale(1.08); }
.ig-cta__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ig-cta__text small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ig-cta__text strong { font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-cta__dm {
  margin-left: auto; flex: none;
  display: grid; place-items: center;
  padding: 14px 20px; border-radius: 16px;
  background: linear-gradient(115deg, #962fbf, #d62976 55%, #fa7e1e);
  transition: transform 0.5s var(--ease), filter 0.3s;
}
.ig-cta__dm img { height: 20px; width: auto; }
.ig-cta:hover .ig-cta__dm { transform: translateX(3px); filter: brightness(1.1); }
@media (max-width: 520px) {
  .ig-cta { flex-wrap: wrap; }
  .ig-cta__dm { width: 100%; margin-left: 0; }
}

.footer {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}
.footer a:hover { color: var(--text); }

/* ---------- odtwarzacz ---------- */
.player {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 48px);
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.player.is-open { opacity: 1; visibility: visible; }
.player__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 100%, rgba(252, 115, 77, 0.22), transparent 70%), radial-gradient(50% 50% at 50% 40%, rgba(2, 151, 222, 0.18), transparent 70%), rgba(2, 7, 10, 0.86);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.player__frame {
  position: relative;
  height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px);
  transform: scale(0.92) translateY(20px); transition: transform 0.6s var(--ease);
}
.player.is-open .player__frame { transform: none; }
.player__video {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 22px; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 40px 120px -20px rgba(2, 151, 222, 0.45);
}

/* ---------- ochrona rolek: znak wodny na rolce ---------- */
/* kafelek ze znakiem wodnym nakładany na samą rolkę: każdy napis mieści się w całości w kafelku
   (obracany wokół własnego środka), więc nic nie jest ucięte w połowie */
.reel::before, .fan__inner::after, .vp::before, .lib__item::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background-color: rgba(2, 7, 10, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='160'%3E%3Cg font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='16' fill='white' fill-opacity='0.34' text-anchor='middle' dominant-baseline='middle'%3E%3Ctext x='72' y='42' transform='rotate(-24 72 42)'%3E@karolg.montuje%3C/text%3E%3Ctext x='212' y='122' transform='rotate(-24 212 122)'%3E@karolg.montuje%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 160px; background-position: center;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.reel::before { z-index: 3; }
.lib__item::before { z-index: 2; }
.fan__inner::after { z-index: 2; }
.reel.is-wm::before, .fan__card.is-wm .fan__inner::after, .player__frame.is-wm .vp::before, .lib__item.is-wm::before,
body.is-guarded .reel::before, body.is-guarded .fan__inner::after, body.is-guarded .vp::before, body.is-guarded .lib__item::before { opacity: 1; }
.reel video, .fan__card video { transition: filter 0.35s var(--ease), transform 0.35s var(--ease); }
/* rozmycie: wideo lekko powiększone, żeby miękkie brzegi blura zostały poza ramką (rodzic ma overflow: hidden) */
.reel.is-wm video, .fan__card.is-wm video, .lib__item.is-wm img,
body.is-guarded .reel video, body.is-guarded .fan__card video, body.is-guarded .lib__item img { filter: blur(16px) brightness(0.55); transform: scale(1.15); }
/* odtwarzacz: rozmywa nakładka (backdrop-filter) przycięta do zaokrąglonej ramki, a nie samo wideo,
   więc blur nie wylewa się poza ramkę i nie ma postrzępionych krawędzi */
.player__frame.is-wm .vp::before, body.is-guarded .vp::before {
  -webkit-backdrop-filter: blur(16px) brightness(0.55); backdrop-filter: blur(16px) brightness(0.55);
}

/* komunikat "Rolki są chronione" — wjeżdża z góry ze sprężystym odbiciem */
.guard {
  /* tuż pod paskiem nawigacji */
  position: fixed; left: 50%; top: calc(88px + env(safe-area-inset-top, 0px)); z-index: 10001;
  pointer-events: none; transform: translateX(-50%);
}
.guard__msg {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; color: var(--text);
  transform: translateY(calc(-100% - 40px)) scale(0.9); opacity: 0; filter: blur(6px);
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s, filter 0.3s;
}
body.guard-msg .guard__msg {
  transform: none; opacity: 1; filter: none;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s, filter 0.45s;
}
.guard__msg b { color: #7fd0f7; font-weight: 600; }
.guard__icon {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad);
}
.guard__icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.guard-msg .guard__icon svg { animation: lockShake 0.6s 0.55s ease-in-out; }
@keyframes lockShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(13deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}
@media (max-width: 480px) {
  .guard__msg { font-size: 13px; gap: 8px; }
}

/* ---------- własne sterowanie odtwarzaczem ---------- */
.vp { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; }
.player__frame:fullscreen { width: 100vw; height: 100vh; max-width: none; background: #000; transform: none; }
.player__frame:fullscreen .player__video, .player__frame:fullscreen .vp { border-radius: 0; border: 0; }

.vp__big {
  position: absolute; left: 50%; top: 50%;
  width: 82px; height: 82px; margin: -41px 0 0 -41px; border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.8); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.vp__big svg { width: 30px; height: 30px; fill: var(--text); margin-left: 4px; }
.vp.is-paused .vp__big { opacity: 1; transform: none; pointer-events: auto; }
.vp__big:hover { box-shadow: var(--glass-shadow), 0 0 40px rgba(2, 151, 222, 0.6); }

.vp__spinner {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--blue);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  animation: vpSpin 0.8s linear infinite;
}
.vp.is-loading:not(.is-paused) .vp__spinner { opacity: 1; }
@keyframes vpSpin { to { transform: rotate(360deg); } }

.vp__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 14px 12px;
  background: linear-gradient(to top, rgba(2, 7, 10, 0.9), rgba(2, 7, 10, 0.45) 55%, transparent);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.vp.is-idle:not(.is-paused) .vp__bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
.vp.is-idle:not(.is-paused) { cursor: none; }

.vp__progress {
  --p: 0; --b: 0; --h: 0;
  position: relative; height: 18px; display: flex; align-items: center;
  cursor: pointer; touch-action: none; outline: none;
}
.vp__track {
  position: relative; width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.18); overflow: hidden;
  transition: height 0.2s var(--ease);
}
.vp__buffered, .vp__played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.vp__buffered { width: calc(var(--b) * 100%); background: rgba(255, 255, 255, 0.22); }
.vp__played { width: calc(var(--p) * 100%); background: var(--grad); }
.vp__thumb {
  position: absolute; left: calc(var(--p) * 100%); top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(2, 151, 222, 0.4);
  transform: scale(0); transition: transform 0.2s var(--ease);
}
.vp__progress:hover .vp__track, .vp.is-scrubbing .vp__track, .vp__progress:focus-visible .vp__track { height: 6px; }
.vp__progress:hover .vp__thumb, .vp.is-scrubbing .vp__thumb, .vp__progress:focus-visible .vp__thumb { transform: scale(1); }
.vp__tip {
  position: absolute; bottom: 22px; left: calc(var(--h) * 100%); transform: translateX(-50%);
  padding: 4px 8px; border-radius: 8px;
  font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums;
  background: rgba(2, 7, 10, 0.9); border: 1px solid var(--line-2);
  opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap;
}
.vp__progress:hover .vp__tip, .vp.is-scrubbing .vp__tip { opacity: 1; }

.vp__row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.vp__spacer { flex: 1; }
.vp__btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--text); transition: background 0.25s, transform 0.3s var(--ease);
}
.vp__btn:hover { background: rgba(255, 255, 255, 0.12); }
.vp__btn:active { transform: scale(0.9); }
.vp__btn:focus-visible, .vp__big:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vp__btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp__btn svg .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vp .i-pause, .vp.is-paused .i-play { display: block; }
.vp .i-play, .vp.is-paused .i-pause { display: none; }
.vp .i-mute, .vp.is-muted .i-vol { display: none; }
.vp.is-muted .i-mute { display: block; }
.vp .i-fs-exit, .vp.is-fs .i-fs { display: none; }
.vp.is-fs .i-fs-exit { display: block; }

.vp__time { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vp__time b { color: var(--text); font-weight: 500; }
.vp__sep { margin: 0 5px; color: var(--dim); }

.vp__vol { display: flex; align-items: center; }
.vp__volume {
  -webkit-appearance: none; appearance: none;
  width: 0; height: 4px; margin: 0; border-radius: 4px; opacity: 0;
  background: linear-gradient(90deg, var(--text) calc(var(--v, 1) * 100%), rgba(255, 255, 255, 0.2) 0);
  transition: width 0.35s var(--ease), opacity 0.3s, margin 0.35s var(--ease);
  cursor: pointer;
}
.vp__vol:hover .vp__volume, .vp__volume:focus-visible { width: 76px; opacity: 1; margin: 0 8px 0 2px; }
.vp__volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp__volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
@media (hover: none) { .vp__volume { display: none; } }

.player__meta { position: absolute; left: 0; right: 0; top: calc(100% + 12px); display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.player__title { color: var(--text); font-family: var(--serif); font-size: 20px; }
.player__count { font-family: var(--mono); font-size: 12px; }
.player__nav, .player__close {
  position: relative; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  font-size: 20px; display: grid; place-items: center;
  transition: box-shadow 0.3s, transform 0.4s var(--ease);
}
.player__nav:hover, .player__close:hover { box-shadow: var(--glass-shadow), 0 0 30px rgba(2, 151, 222, 0.5); }
.player.is-single .player__nav { visibility: hidden; }
.player__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; font-size: 16px; }
.player__close:hover { transform: rotate(90deg); }

/* ---------- wróć do góry ---------- */
.to-top {
  position: fixed; z-index: 60;
  right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.5s var(--ease), box-shadow 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--glass-shadow), 0 0 30px rgba(252, 115, 77, 0.45); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: transparent; stroke-width: 1.5; }
.to-top__ring .to-top__progress {
  stroke: var(--orange); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.to-top__arrow {
  width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
body.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- pojawianie się ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* panele w hero wjeżdżają razem, ale zachowują swoją perspektywę */
.hero__panels.reveal { transform: translateY(40px); }
.hero__panels.reveal.in { transform: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .hero__top { flex-direction: column; align-items: center; }
  .hero__side { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; text-align: center; margin-top: 30px; }
  .hero__side--l { order: 2; }
  .hero__side--r { order: 3; margin-top: 18px; }
  .hero__side--r { align-items: center; }
  .hero__panels { grid-template-columns: 1fr; max-width: 560px; }
  .panel--lib, .panel--edit { transform: none; }
  .panel--lib:hover, .panel--edit:hover { transform: none; }
  .panel--fan, .hero__visual { display: none; }
  .panel { min-height: 0; }
}
@media (max-width: 1000px) {
  .card--intro, .card--skills { grid-column: span 6; }
  .card--clock, .card--tools { grid-column: span 3; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing, .terms, .quote__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { padding-left: 12px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 120px; }
  .panel--edit { display: none; }
  .card--clock, .card--tools { grid-column: span 6; }
  /* oś czasu w pionie na telefonie */
  .timeline__bar { right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline__bar::after { display: none; }
  .timeline__fill { width: 100%; height: 0; transition-property: height; }
  .card--timeline.in .timeline__fill { width: 100%; height: 100%; }
  .timeline__steps { grid-template-columns: 1fr; gap: 30px; }
  .step { padding: 0 0 0 36px; }
  .step__dot { top: 1px; }
  .process { grid-template-columns: 1fr; }
  .reel { --w: 62vw; }
  .strip__track { gap: 14px; }
  .player { flex-direction: column; gap: 0; padding: 16px; }
  .player__frame { height: auto; width: min(100%, calc(68vh * 9 / 16)); margin-bottom: 40px; }
  .player__nav { position: absolute; bottom: 20px; }
  .player__nav--prev { left: 20px; }
  .player__nav--next { right: 20px; }
  .player__close { top: 14px; right: 14px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { transform: none; animation: none !important; }
}
