/* Cache bust: 1795783255 */
/* Runda 3: warstwa prowadzenia scrolla i dopracowania.
   Lenis, odslanianie podpisow maska, panel UI jako jedyny material dla prozy,
   podpowiedz "przewiń", szyna drogi requestu. Nadpisuje style.css tylko tam, gdzie trzeba. */

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ujecia: wysokosc z duzego viewportu, zeby pasek adresu nie przestawial scrolla */
@supports (height: 100lvh) { .gl .shot { height: calc(var(--len) * 100lvh); } }

/* ---------- podpisy: wejscie maska od dolu, wyjscie szybkie ---------- */
.gl .shot .cap { transition: opacity .16s ease-out; }
.gl .shot .cap.on { transition: opacity .3s var(--ease-out); }
.gl .shot .wipe {
  opacity: 0; translate: 0 .32em; clip-path: inset(-30% -6% 100% -6%);
  transition: opacity .14s ease-out, translate .14s ease-out, clip-path .14s ease-out;
}
.gl .shot .wipe.in {
  opacity: 1; translate: 0 0; clip-path: inset(-30% -6% -30% -6%);
  transition: opacity .42s var(--ease-out), translate .62s var(--ease-out), clip-path .62s var(--ease-out);
}
.gl .shot .plate.wipe { clip-path: inset(-20% -12% 100% -12%); }
.gl .shot .plate.wipe.in { clip-path: inset(-20% -12% -20% -12%); }
.rm .gl .shot .wipe, .gl.rm .shot .wipe { translate: none; clip-path: none; }

/* ---------- proza: przechylony panel UI, ten sam co w swiecie ---------- */
.gl .plate {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 34, 68, .95), rgba(12, 21, 44, .95));
  border: 1px solid rgba(228, 232, 240, .2);
  padding: 30px 18px 16px;
  color: var(--kosc-2);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .85);
  transform: perspective(1100px) rotateY(6deg);
  transform-origin: left center;
}
.gl .plate::before {
  content: ""; position: absolute; left: 13px; top: 12px; width: 33px; height: 7px;
  background: radial-gradient(circle at 3.5px 3.5px, #263A66 3px, transparent 3.6px) 0 0 / 13px 7px repeat-x;
}
.gl .cap.br .plate, .gl .cap.tr .plate { transform: perspective(1100px) rotateY(-6deg); transform-origin: right center; }
.gl .cap .mono.plate + .mono.plate { margin-top: 10px; }
.gl .plate code { background: rgba(38, 58, 102, .7); }
.gl .m-cap .plate { max-width: 46ch; font-size: 16px; }
.gl .lead-bio .plate { margin-top: 22px; max-width: 52ch; font-size: 15px; line-height: 1.5; }
.gl .gate-why { top: 12vh; }
.gl .gate-why .plate { max-width: 44ch; }

/* odsloniecie przechylonego panelu: przesuniecie zamiast skoku */
.gl .shot .plate.wipe { translate: 0 18px; }
.gl .shot .plate.wipe.in { translate: 0 0; }

/* ---------- sygnal w formularzu bez migania ---------- */
.sig-caret.on { animation: none; }

/* ---------- podpowiedz startowa ---------- */
.cue {
  /* miedzy naglowkiem (do 54%) a leadem (od ok. 60%) */
  position: fixed; left: 57%; bottom: 0; z-index: 4; display: none; flex-direction: column; align-items: center; gap: 10px;
  translate: -50% 10px; pointer-events: none; opacity: 0;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
.gl .cue { display: flex; }
.cue-on .cue { opacity: 1; translate: -50% 0; }
.cue-gone .cue { opacity: 0; translate: -50% 14px; transition: opacity .22s ease-out, translate .3s ease-out; }
.cue-t { font: 400 13px/1 var(--mono); color: var(--kosc); letter-spacing: .02em; text-shadow: 0 1px 12px rgba(5, 9, 21, .9); }
.cue-track { position: relative; width: 1px; height: 72px; background: linear-gradient(to bottom, rgba(228, 232, 240, .45), rgba(228, 232, 240, .12)); }
.cue-track i {
  position: absolute; left: -3.5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sygnal);
  box-shadow: 0 0 12px 2px rgba(255, 165, 31, .55);
  animation: cue-run 2.2s cubic-bezier(.55, 0, .25, 1) infinite;
}
@keyframes cue-run {
  0% { transform: translateY(-6px); opacity: 0; }
  14% { opacity: 1; }
  72% { transform: translateY(66px); opacity: 1; }
  100% { transform: translateY(78px); opacity: 0; }
}

/* ---------- szyna drogi requestu ---------- */
.rail {
  --rail-h: 46vh;
  position: fixed; right: 26px; top: 50%; z-index: 4; width: 1px; height: var(--rail-h); margin-top: calc(var(--rail-h) / -2);
  display: none; opacity: 0; transition: opacity .6s var(--ease-out);
}
.gl .rail { display: block; }
.cue-on .rail { opacity: 1; }
.at-end .rail { opacity: 0; pointer-events: none; }
.rail-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(228, 232, 240, .18); }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--sygnal); transform-origin: 0 0; transform: scaleY(var(--k, 0)); opacity: .8; }
.rail-dot { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--sygnal); box-shadow: 0 0 12px rgba(255, 165, 31, .7); will-change: transform; }
.rail-hint {
  position: absolute; right: 16px; top: calc(var(--k, 0) * var(--rail-h) - 8px); font: 400 12px/1 var(--mono); color: var(--kosc);
  white-space: nowrap; opacity: 0; transition: opacity .4s ease-out; pointer-events: none; text-shadow: 0 1px 10px rgba(5, 9, 21, .9);
}
.idle .rail-hint { opacity: 1; animation: rail-tug 1.8s cubic-bezier(.55, 0, .25, 1) infinite; }
.idle .rail-dot { animation: rail-tug 1.8s cubic-bezier(.55, 0, .25, 1) infinite; }
@keyframes rail-tug { 0%, 100% { translate: 0 0; } 35% { translate: 0 9px; } 60% { translate: 0 0; } }
.rail ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail li { position: absolute; right: 0; height: 0; }
.rail button {
  position: absolute; right: -12px; top: -11px; height: 22px; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px;
  padding: 0 0 0 10px; background: none; border: 0; cursor: pointer; color: var(--kosc-3); font: 400 12px/1 var(--mono); white-space: nowrap;
}
.rail button i { display: block; width: 7px; height: 1px; margin-right: 9px; background: rgba(228, 232, 240, .5); transition: width .2s var(--ease-out), background-color .2s ease; }
.rail button span { opacity: 0; translate: 6px 0; transition: opacity .2s ease-out, translate .2s var(--ease-out), color .2s ease; text-shadow: 0 1px 10px rgba(5, 9, 21, .95); }
.rail li.done button i { background: var(--sygnal); }
/* nazwa przystanku mignie przy zmianie ujecia, potem chowa sie, zeby nie wchodzic na podpisy */
.rail.flash li.cur button span { opacity: 1; translate: 0 0; color: var(--kosc); }
.rail li.cur button i { width: 13px; background: var(--kosc); }
.rail button:focus-visible span { opacity: 1; translate: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .rail:hover button span { opacity: .75; translate: 0 0; }
  .rail button:hover span { opacity: 1; color: var(--kosc); }
  .rail button:hover i { width: 13px; }
}
.rail button:active { scale: .97; }

/* podpisy z prawej robia miejsce na szyne */
@media (min-width: 761px) {
  .gl .cap.tr, .gl .cap.br, .gl .lead-bio, .gl .hero-side { right: calc(var(--gut) + 64px); }
  .gl .cap.tr { left: calc(var(--gut) + 64px); }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .cue { left: auto; right: 16px; bottom: auto; top: 63svh; translate: 0 10px; }
  .cue-track { height: 46px; }
  .cue-on .cue { translate: 0 0; }
  .cue-gone .cue { translate: 0 14px; }
  .cue-track i { animation-name: cue-run-m; }
  .rail { right: 7px; --rail-h: 34svh; top: 54%; }
  .rail button { pointer-events: none; }
  .rail button span { display: none; }
  .rail-hint { display: none; }
  .gl .plate { padding: 26px 14px 13px; transform: none; }
  .gl .plate::before { top: 10px; left: 11px; }
  .gl .cap.br .plate, .gl .cap.tr .plate { transform: none; }
}

@keyframes cue-run-m { 0% { transform: translateY(-6px); opacity: 0; } 14% { opacity: 1; } 72% { transform: translateY(40px); opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cue-track i, .idle .rail-hint, .idle .rail-dot { animation: none; }
  .cue-track i { transform: translateY(32px); }
}

/* formaty: naglowek na dole, nad zwrotnica; u gory stoja slowa ONLINE i LIVE */
.gl #s-formaty .f-head { top: auto; bottom: 7vh; }
/* metoda 04: podpis po prawej, zeby nie zaslanial poprawki w swiecie */
.gl .m-fix .plate { text-align: left; }
@media (max-width: 760px) {
  .gl .m-fix { align-items: flex-start; }
  .gl .m-fix .ln.wipe { margin-left: 0; }
}
