/* =====================================================================
   FutureWeb LAB - dedykowany styl podstrony /laboratorium/
   Ladowany tylko na tej stronie (warunkowo w inc/assets.php).
   ===================================================================== */

.page-template-page-laboratorium {
  background: #060914;
  color: #e9efff;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}
.page-template-page-laboratorium:has(.fwlab[data-theme="clean"]),
.page-template-page-laboratorium.fwlab-clean {
  background: #f5f6fa;
  color: #0b1a33;
}

/* Schowaj globalny header i cursor trail na czas Lab - to ma byc immersive page */
.page-template-page-laboratorium .fw-header {
  background: rgba(6, 9, 20, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}
.page-template-page-laboratorium:has(.fwlab[data-theme="clean"]) .fw-header,
.page-template-page-laboratorium.fwlab-clean .fw-header {
  background: rgba(245, 246, 250, 0.7);
  border-bottom-color: rgba(11, 26, 51, 0.08);
}
.page-template-page-laboratorium .fw-cursor-trail {
  display: none;
}

/* ---------- LAB ROOT ---------- */
.fwlab {
  --fw-lab-bg: #060914;
  --fw-lab-bg-2: #0a0f1f;
  --fw-lab-surface: rgba(20, 26, 48, 0.5);
  --fw-lab-line: rgba(255, 255, 255, 0.08);
  --fw-lab-line-strong: rgba(255, 255, 255, 0.18);
  --fw-lab-ink: #e9efff;
  --fw-lab-muted: rgba(233, 239, 255, 0.55);
  --fw-lab-cyan: #00b7ff;
  --fw-lab-pink: #ff2d87;
  --fw-lab-purple: #7b2fff;
  --fw-lab-blue: #1e3a8a;
  --fw-lab-grad: linear-gradient(120deg, #00b7ff 0%, #ff2d87 55%, #7b2fff 100%);

  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  cursor: none;
}
@media (pointer: coarse) {
  .fwlab {
    cursor: auto;
  }
}

.fwlab[data-theme="clean"] {
  --fw-lab-bg: #f5f6fa;
  --fw-lab-bg-2: #ffffff;
  --fw-lab-surface: rgba(255, 255, 255, 0.7);
  --fw-lab-line: rgba(11, 26, 51, 0.08);
  --fw-lab-line-strong: rgba(11, 26, 51, 0.2);
  --fw-lab-ink: #0b1a33;
  --fw-lab-muted: rgba(11, 26, 51, 0.6);
}
.fwlab[data-theme="clean"] {
  background: var(--fw-lab-bg);
  color: var(--fw-lab-ink);
}

.fwlab__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

/* ---------- INTRO OVERLAY ---------- */
.fwlab__intro {
  position: fixed;
  inset: 0;
  background: #03050d;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: all;
  transition: opacity 0.6s ease;
}
.fwlab__intro.is-done {
  opacity: 0;
  pointer-events: none;
}
.fwlab__intro-stage {
  text-align: center;
  display: grid;
  gap: 2rem;
}
.fwlab__intro-mark {
  width: clamp(180px, 25vw, 280px);
  height: auto;
}
.fwlab__intro-mark path {
  animation: fwlab-draw 1.4s ease forwards;
  filter: drop-shadow(0 0 20px rgba(0, 183, 255, 0.6));
}
@keyframes fwlab-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.fwlab__intro-log {
  font-family: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  display: grid;
  gap: 0.4rem;
  min-height: 6em;
}
.fwlab__intro-line {
  opacity: 0;
  animation: fwlab-line-in 0.4s ease forwards;
}
.fwlab__intro-line:nth-child(1) {
  animation-delay: 0.3s;
}
.fwlab__intro-line:nth-child(2) {
  animation-delay: 0.6s;
}
.fwlab__intro-line:nth-child(3) {
  animation-delay: 0.9s;
}
.fwlab__intro-line:nth-child(4) {
  animation-delay: 1.2s;
}
.fwlab__intro-line--final {
  color: var(--fw-lab-cyan);
  font-weight: 600;
}
@keyframes fwlab-line-in {
  to {
    opacity: 1;
  }
}

/* ---------- CUSTOM CURSOR ---------- */
.fwlab__cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: difference;
}
.fwlab__cursor-dot,
.fwlab__cursor-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.fwlab__cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}
.fwlab__cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition:
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
}
.fwlab__cursor.is-hover .fwlab__cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--fw-lab-cyan);
}
@media (pointer: coarse) {
  .fwlab__cursor {
    display: none;
  }
}

/* ---------- BG: grid + noise + spotlight + aurora ---------- */
.fwlab__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fwlab__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 30%,
    black 0%,
    transparent 80%
  );
}
.fwlab[data-theme="clean"] .fwlab__bg-grid {
  background-image:
    linear-gradient(rgba(11, 26, 51, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 51, 0.05) 1px, transparent 1px);
}
.fwlab__bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.fwlab__bg-spotlight {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 183, 255, 0.18) 0%,
    rgba(255, 45, 135, 0.08) 35%,
    transparent 70%
  );
  filter: blur(50px);
  transform: translate(-50%, -50%);
  transition:
    top 0.4s ease,
    left 0.4s ease;
  top: 50%;
  left: 50%;
}
.fwlab__bg-aurora {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(
      60% 50% at 20% 30%,
      rgba(0, 183, 255, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      60% 50% at 80% 70%,
      rgba(255, 45, 135, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      70% 60% at 50% 100%,
      rgba(123, 47, 255, 0.12) 0%,
      transparent 60%
    );
  animation: fwlab-aurora 20s ease-in-out infinite;
  filter: blur(60px);
}
@keyframes fwlab-aurora {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, -2%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.95);
  }
}

/* ---------- STICKY NAV PO PRAWEJ ---------- */
.fwlab__nav {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--fw-lab-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--fw-lab-line);
  border-radius: 16px;
  font-size: 0.78rem;
  max-width: 200px;
}
@media (max-width: 980px) {
  .fwlab__nav {
    display: none;
  }
}
.fwlab__theme-toggle {
  position: relative;
  background: transparent;
  border: 1px solid var(--fw-lab-line-strong);
  color: var(--fw-lab-ink);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: grid;
}
.fwlab__theme-toggle span {
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}
.fwlab__theme-toggle [data-state="clean"] {
  opacity: 0;
}
.fwlab[data-theme="clean"] .fwlab__theme-toggle [data-state="neon"] {
  opacity: 0;
}
.fwlab[data-theme="clean"] .fwlab__theme-toggle [data-state="clean"] {
  opacity: 1;
}
.fwlab__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.fwlab__nav-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--fw-lab-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.fwlab__nav-list a span {
  font-size: 0.72rem;
}
.fwlab__nav-list a:hover {
  color: var(--fw-lab-ink);
  background: rgba(255, 255, 255, 0.04);
}
.fwlab__nav-list a.is-active {
  color: var(--fw-lab-ink);
  background: rgba(0, 183, 255, 0.12);
}
.fwlab__reduce-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: transparent;
  border: 0;
  color: var(--fw-lab-muted);
  cursor: pointer;
  font-size: 0.72rem;
}
.fwlab__reduce-toggle.is-active {
  color: var(--fw-lab-cyan);
}

/* ---------- GLOBALNA NIESKONCZONOSC 3D ---------- */
.fwlab__infinity-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
}
@media (max-width: 980px) {
  .fwlab__infinity-3d {
    display: none;
  }
}

/* ---------- TYPOGRAFIA LAB ---------- */
.fwlab__eyebrow {
  font-family: "Geist", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  font-weight: 500;
  color: var(--fw-lab-cyan);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.fwlab__h1 {
  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  display: grid;
}
.fwlab__h1-line {
  display: block;
}
.fwlab__h1-line--accent {
  background: var(--fw-lab-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fwlab__h2 {
  font-family: "Geist", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fw-lab-ink);
}
.fwlab__h2--cta {
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1.5rem;
}
.fwlab__sub {
  color: var(--fw-lab-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}
.fwlab__sub--center {
  text-align: center;
  margin-inline: auto;
  max-width: 56ch;
  margin-top: 1rem;
}
.fwlab__lead {
  color: var(--fw-lab-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 1.5rem 0 2rem;
}

/* ---------- HERO ---------- */
.fwlab__hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: clamp(6rem, 12vh, 12rem) clamp(4rem, 8vh, 8rem);
  position: relative;
}
.fwlab__hero-orb {
  position: absolute;
  right: -10%;
  top: 30%;
  width: clamp(300px, 50vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(0, 183, 255, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 45, 135, 0.3) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(123, 47, 255, 0.3) 0%,
      transparent 60%
    );
  filter: blur(40px);
  opacity: 0.7;
  animation: fwlab-orb-float 12s ease-in-out infinite;
  z-index: 0;
}
@keyframes fwlab-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.05);
  }
}
.fwlab__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.fwlab__hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--fw-lab-line);
  max-width: 700px;
}
.fwlab__hero-stats > div {
  display: grid;
  gap: 0.25rem;
}
.fwlab__hero-stats strong {
  font-family: "Geist", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fw-lab-ink);
  letter-spacing: -0.02em;
}
.fwlab__hero-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fw-lab-muted);
}
@media (max-width: 640px) {
  .fwlab__hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- MODULY ---------- */
.fwlab__section {
  position: relative;
  z-index: 10;
  padding-block: clamp(4rem, 10vh, 8rem);
}
.fwlab__module-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.fwlab__module-grid--reverse {
  grid-template-columns: 1fr 380px;
}
.fwlab__module-grid--reverse .fwlab__panel {
  order: 2;
}
@media (max-width: 980px) {
  .fwlab__module-grid,
  .fwlab__module-grid--reverse {
    grid-template-columns: 1fr;
  }
  .fwlab__module-grid--reverse .fwlab__panel {
    order: 0;
  }
}

.fwlab__module-head {
  display: grid;
  gap: 0.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.fwlab__module-head .fwlab__num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--fw-lab-cyan);
}
.fwlab__module-head .fwlab__h2 {
  margin-top: 0.25rem;
}

/* ---------- PANEL USTAWIEN ---------- */
.fwlab__panel {
  background: var(--fw-lab-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fw-lab-line);
  border-radius: 20px;
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  position: relative;
}
.fwlab__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--fw-lab-grad);
  opacity: 0.15;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.fwlab__panel-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.fwlab__num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fw-lab-cyan);
  letter-spacing: 0.05em;
}
.fwlab__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fwlab__labels--center {
  justify-content: center;
  margin-bottom: 2rem;
}
.fwlab__labels span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--fw-lab-line-strong);
  border-radius: 999px;
  color: var(--fw-lab-muted);
}
.fwlab__field {
  display: grid;
  gap: 0.5rem;
}
.fwlab__field > label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-lab-muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fwlab__field > label > span {
  color: var(--fw-lab-cyan);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}
.fwlab__field input[type="text"] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--fw-lab-line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--fw-lab-ink);
  font: inherit;
  font-size: 0.95rem;
}
.fwlab__field input[type="text"]:focus {
  outline: none;
  border-color: var(--fw-lab-cyan);
  box-shadow: 0 0 0 3px rgba(0, 183, 255, 0.15);
}
.fwlab__field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--fw-lab-line-strong);
  border-radius: 999px;
}
.fwlab__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fw-lab-grad);
  cursor: grab;
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.4);
}
.fwlab__field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b7ff, #ff2d87);
  border: 0;
  cursor: grab;
}

.fwlab__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fwlab__chips--col {
  flex-direction: column;
  gap: 0.3rem;
}
.fwlab__chips button {
  background: transparent;
  border: 1px solid var(--fw-lab-line-strong);
  color: var(--fw-lab-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all 0.18s ease;
}
.fwlab__chips button:hover {
  color: var(--fw-lab-ink);
  border-color: var(--fw-lab-line-strong);
}
.fwlab__chips button.is-active {
  background: rgba(0, 183, 255, 0.12);
  border-color: var(--fw-lab-cyan);
  color: var(--fw-lab-ink);
  box-shadow: 0 0 14px rgba(0, 183, 255, 0.25);
}
.fwlab__chips--col button {
  text-align: left;
}
.fwlab__chips--swatch button {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--sw, #888);
  border-radius: 999px;
  border: 2px solid transparent;
}
.fwlab__chips--swatch button.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--fw-lab-cyan);
}

.fwlab__toggles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
}
.fwlab__toggles label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.fwlab__toggles input {
  accent-color: var(--fw-lab-cyan);
}

.fwlab__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.fwlab__presets > span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-lab-muted);
  margin-right: 0.25rem;
}
.fwlab__presets button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fw-lab-line);
  color: var(--fw-lab-ink);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
  transition: all 0.18s;
}
.fwlab__presets button:hover {
  border-color: var(--fw-lab-cyan);
  color: var(--fw-lab-cyan);
}
.fwlab__usecase {
  font-size: 0.85rem;
  color: var(--fw-lab-muted);
  line-height: 1.55;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  border-left: 2px solid var(--fw-lab-cyan);
  border-radius: 0 10px 10px 0;
  margin: 0;
}
.fwlab__usecase--center {
  max-width: 60ch;
  margin: 2rem auto 0;
  text-align: left;
}

/* ---------- PREVIEW ---------- */
.fwlab__preview {
  background: var(--fw-lab-bg-2);
  border: 1px solid var(--fw-lab-line);
  border-radius: 20px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}
.fwlab__preview-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fw-lab-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}
.fwlab__canvas-fill {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
}
.fwlab__preview--3d {
  background: radial-gradient(circle at 50% 40%, #0a1230 0%, #03050d 80%);
}

/* ---------- BUTTONS ---------- */
.fwlab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--fw-lab-ink);
}
.fwlab__btn--primary {
  background: var(--fw-lab-grad);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 6px 30px rgba(0, 183, 255, 0.35);
}
.fwlab__btn--primary:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 45, 135, 0.4);
}
.fwlab__btn--ghost {
  border-color: var(--fw-lab-line-strong);
  color: var(--fw-lab-ink);
}
.fwlab__btn--ghost:hover {
  border-color: var(--fw-lab-cyan);
  color: var(--fw-lab-cyan);
}
.fwlab__btn--lg {
  padding: 1.1rem 1.8rem;
  font-size: 1.05rem;
}
.fwlab__btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}
.fwlab__btn--accent {
  background: rgba(255, 45, 135, 0.12) !important;
  border-color: rgba(255, 45, 135, 0.5) !important;
  color: #ff7ab8 !important;
}

/* ---------- MOD 3: SCROLL PATH (uproszczone, ruch obsluguje globalna nieskonczonosc 3D) ---------- */
.fwlab__path-stage {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 183, 255, 0.04), transparent);
  padding: 2rem;
  border: 1px solid var(--fw-lab-line);
}
.fwlab__path-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.fwlab__path-card {
  background: var(--fw-lab-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--fw-lab-line);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.fwlab__path-card.is-active {
  border-color: var(--fw-lab-cyan);
  box-shadow:
    0 0 0 1px var(--fw-lab-cyan),
    0 20px 60px rgba(0, 183, 255, 0.3);
  transform: translateY(-4px);
}
.fwlab__path-card span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--fw-lab-cyan);
}
.fwlab__path-card h3 {
  font-family: "Geist", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--fw-lab-ink);
}
.fwlab__path-card p {
  font-size: 0.85rem;
  color: var(--fw-lab-muted);
  line-height: 1.5;
  margin: 0;
}
.fwlab__path-hint {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--fw-lab-muted);
  background: rgba(0, 0, 0, 0.18);
  border-left: 2px solid var(--fw-lab-cyan);
  border-radius: 0 10px 10px 0;
}
@media (max-width: 880px) {
  .fwlab__path-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- MOD 4: TEXT MOTION ---------- */
.fwlab__preview--text {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 183, 255, 0.08) 0%,
    transparent 70%
  );
}
.fwlab__text-stage {
  font-family: "Geist", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  padding: 2rem;
  color: var(--fw-lab-ink);
  max-width: 90%;
}
.fwlab__text-stage .char {
  display: inline-block;
}
.fwlab__text-stage[data-fx="split"] .char {
  opacity: 0;
  transform: translateY(40px);
  animation: fwlab-text-split 0.6s forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fwlab-text-split {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fwlab__text-stage[data-fx="reveal"] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.fwlab__text-stage[data-fx="reveal"] .word > span {
  display: inline-block;
  transform: translateY(100%);
  animation: fwlab-text-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fwlab-text-reveal {
  to {
    transform: translateY(0);
  }
}
.fwlab__text-stage[data-fx="glitch"] {
  animation: fwlab-text-glitch 0.3s steps(2) 4;
  position: relative;
}
@keyframes fwlab-text-glitch {
  0%,
  100% {
    transform: translate(0, 0);
    text-shadow: 0 0 0 transparent;
  }
  20% {
    transform: translate(-2px, 2px);
    text-shadow:
      2px 0 #ff2d87,
      -2px 0 #00b7ff;
  }
  40% {
    transform: translate(2px, -2px);
    text-shadow:
      -2px 0 #ff2d87,
      2px 0 #00b7ff;
  }
}
.fwlab__text-stage[data-fx="gradient"] {
  background: linear-gradient(90deg, #00b7ff, #ff2d87, #7b2fff, #00b7ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fwlab-gradient-flow 4s linear infinite;
}
@keyframes fwlab-gradient-flow {
  to {
    background-position: 300% 0;
  }
}
.fwlab__text-stage[data-fx="typewriter"] {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--fw-lab-cyan);
  width: 0;
  max-width: var(--tw-w, 100%);
  margin: 0 auto;
  display: inline-block;
  animation:
    fwlab-type var(--tw-dur, 2.5s) steps(40, end) forwards,
    fwlab-caret 0.7s step-end infinite;
}
@keyframes fwlab-type {
  to {
    width: var(--tw-w, 100%);
  }
}
@keyframes fwlab-caret {
  50% {
    border-color: transparent;
  }
}
.fwlab__text-stage[data-fx="blur"] .char {
  filter: blur(20px);
  opacity: 0;
  display: inline-block;
  animation: fwlab-text-blur 0.8s forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fwlab-text-blur {
  to {
    filter: blur(0);
    opacity: 1;
  }
}
.fwlab__text-stage[data-fx="wave"] .char {
  display: inline-block;
  animation: fwlab-text-wave 1.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes fwlab-text-wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-15px);
  }
}
.fwlab__text-stage[data-fx="rotating"] .rotating-word {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.1em;
  color: var(--fw-lab-cyan);
}
.fwlab__text-stage[data-fx="rotating"] .rotating-word b {
  display: block;
  font-weight: inherit;
  animation: fwlab-rot-word 8s ease-in-out infinite;
}
@keyframes fwlab-rot-word {
  0%,
  16% {
    transform: translateY(0);
  }
  20%,
  36% {
    transform: translateY(-1.1em);
  }
  40%,
  56% {
    transform: translateY(-2.2em);
  }
  60%,
  76% {
    transform: translateY(-3.3em);
  }
  80%,
  96% {
    transform: translateY(-4.4em);
  }
  100% {
    transform: translateY(-5.5em);
  }
}

/* ---------- MOD 5: IMAGE REVEAL ---------- */
.fwlab__preview--image {
  display: grid;
  place-items: center;
  background: #0a0f1f;
}
.fwlab__img-stage {
  position: relative;
  width: 80%;
  aspect-ratio: 16 / 10;
}
.fwlab__img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.fwlab__img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fwlab__img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fwlab__img-stage[data-fx="mask"] img {
  animation: fwlab-img-mask 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  clip-path: inset(0 100% 0 0);
}
@keyframes fwlab-img-mask {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.fwlab__img-stage[data-fx="clip"] img {
  animation: fwlab-img-clip 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}
@keyframes fwlab-img-clip {
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.fwlab__img-stage[data-fx="blur"] img {
  animation: fwlab-img-blur 1.5s ease forwards;
  filter: blur(40px);
  transform: scale(1.1);
}
@keyframes fwlab-img-blur {
  to {
    filter: blur(0);
    transform: scale(1);
  }
}
.fwlab__img-stage[data-fx="pixel"] img {
  animation: fwlab-img-pixel 1.6s steps(8) forwards;
  filter: blur(20px) contrast(2);
}
@keyframes fwlab-img-pixel {
  50% {
    filter: blur(8px) contrast(1.4);
  }
  100% {
    filter: blur(0) contrast(1);
  }
}
.fwlab__img-stage[data-fx="sweep"] .fwlab__img-overlay {
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  animation: fwlab-img-sweep 1.6s ease forwards;
  transform: translateX(-100%);
}
@keyframes fwlab-img-sweep {
  to {
    transform: translateX(100%);
  }
}
.fwlab__img-stage[data-fx="parallax"] img {
  transition: transform 0.2s ease-out;
}
.fwlab__img-stage[data-fx="shutter"] img {
  animation: fwlab-img-shutter 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  clip-path: inset(50% 0 50% 0);
}
@keyframes fwlab-img-shutter {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.fwlab__img-stage[data-fx="noise"] img {
  animation: fwlab-img-noise 1.8s ease forwards;
  opacity: 0;
  filter: blur(30px) grayscale(1);
}
@keyframes fwlab-img-noise {
  to {
    opacity: 1;
    filter: blur(0) grayscale(0);
  }
}

/* ---------- MOD 6: BACKGROUND COMPOSER ---------- */
.fwlab__preview--bg {
  min-height: 540px;
  overflow: hidden;
}
.fwlab__bg-stage {
  position: absolute;
  inset: 0;
  background: #03050d;
}
.fwlab__bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fwlab__bg-layer.is-on {
  opacity: 1;
}
.fwlab__bg-layer--grid {
  background-image:
    linear-gradient(rgba(0, 183, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 183, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.fwlab__bg-layer--gradient {
  background:
    radial-gradient(
      60% 50% at 30% 30%,
      rgba(0, 183, 255, 0.4) 0%,
      transparent 60%
    ),
    radial-gradient(
      60% 50% at 70% 70%,
      rgba(255, 45, 135, 0.4) 0%,
      transparent 60%
    );
  filter: blur(40px);
  animation: fwlab-bg-grad 12s ease-in-out infinite;
}
@keyframes fwlab-bg-grad {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.fwlab__bg-layer--noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0;
}
.fwlab__bg-layer--noise.is-on {
  opacity: 0.15;
  mix-blend-mode: overlay;
}
.fwlab__bg-layer--spotlight {
  background: radial-gradient(
    circle 300px at var(--mx, 50%) var(--my, 50%),
    rgba(0, 183, 255, 0.35) 0%,
    transparent 70%
  );
}
.fwlab__bg-layer--aurora {
  background:
    radial-gradient(40% 70% at 20% 50%, #00b7ff 0%, transparent 60%),
    radial-gradient(40% 70% at 80% 50%, #ff2d87 0%, transparent 60%);
  filter: blur(60px);
  animation: fwlab-bg-grad 16s ease-in-out infinite;
}
.fwlab__bg-layer--scanlines {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 183, 255, 0.06) 2px,
    rgba(0, 183, 255, 0.06) 4px
  );
}
.fwlab__bg-layer--orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
.fwlab__bg-layer--orbs span:nth-child(1) {
  width: 200px;
  height: 200px;
  background: rgba(0, 183, 255, 0.6);
  top: 10%;
  left: 20%;
  animation: fwlab-orb-a 14s ease-in-out infinite;
}
.fwlab__bg-layer--orbs span:nth-child(2) {
  width: 180px;
  height: 180px;
  background: rgba(255, 45, 135, 0.5);
  bottom: 15%;
  right: 15%;
  animation: fwlab-orb-b 16s ease-in-out infinite;
}
.fwlab__bg-layer--orbs span:nth-child(3) {
  width: 160px;
  height: 160px;
  background: rgba(123, 47, 255, 0.5);
  top: 60%;
  left: 60%;
  animation: fwlab-orb-c 18s ease-in-out infinite;
}
@keyframes fwlab-orb-a {
  50% {
    transform: translate(60px, 30px);
  }
}
@keyframes fwlab-orb-b {
  50% {
    transform: translate(-50px, -40px);
  }
}
@keyframes fwlab-orb-c {
  50% {
    transform: translate(40px, -30px);
  }
}

/* ---------- MOD 7: MICRO PLAYGROUND ---------- */
.fwlab__micro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.fwlab__micro-cell {
  background: var(--fw-lab-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--fw-lab-line);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  min-height: 160px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  position: relative;
}
.fwlab__micro-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fw-lab-muted);
}
.fwlab__btn--magnetic {
  transition: transform 0.2s;
}
.fwlab__btn--liquid {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fw-lab-line-strong);
  color: var(--fw-lab-ink);
  position: relative;
  overflow: hidden;
}
.fwlab__btn--liquid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fw-lab-grad);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.fwlab__btn--liquid:hover::before {
  transform: translateY(0);
}
.fwlab__btn--liquid:hover {
  color: #fff;
}

.fwlab__glow-card,
.fwlab__tilt-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fw-lab-line);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fw-lab-muted);
  position: relative;
  overflow: hidden;
}
.fwlab__glow-card::before {
  content: "";
  position: absolute;
  width: 200%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 183, 255, 0.4) 0%,
    transparent 50%
  );
  top: var(--gy, 50%);
  left: var(--gx, 50%);
  transform: translate(-50%, -50%);
  opacity: var(--ga, 0);
  transition: opacity 0.3s;
  pointer-events: none;
}
.fwlab__tilt-card {
  transition: transform 0.2s;
}

.fwlab__toggle {
  display: inline-block;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: var(--fw-lab-line-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.fwlab__toggle input {
  display: none;
}
.fwlab__toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.fwlab__toggle input:checked + span {
  left: 25px;
}
.fwlab__toggle:has(input:checked) {
  background: var(--fw-lab-cyan);
}

.fwlab__accordion {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fw-lab-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.fwlab__accordion summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--fw-lab-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fwlab__accordion summary::-webkit-details-marker {
  display: none;
}
.fwlab__accordion summary svg {
  transition: transform 0.3s;
  color: var(--fw-lab-cyan);
}
.fwlab__accordion[open] summary svg {
  transform: rotate(180deg);
}
.fwlab__accordion p {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--fw-lab-muted);
}

.fwlab__progress {
  height: 4px;
  background: var(--fw-lab-line-strong);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.fwlab__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--fw-lab-grad);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fwlab__floating {
  position: relative;
  display: block;
}
.fwlab__floating input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--fw-lab-line-strong);
  border-radius: 10px;
  padding: 1.2rem 0.9rem 0.5rem;
  color: var(--fw-lab-ink);
  font: inherit;
}
.fwlab__floating input:focus {
  outline: none;
  border-color: var(--fw-lab-cyan);
}
.fwlab__floating span {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--fw-lab-muted);
  pointer-events: none;
  transition: all 0.2s;
}
.fwlab__floating input:focus + span,
.fwlab__floating input:not(:placeholder-shown) + span {
  top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--fw-lab-cyan);
  text-transform: uppercase;
}

.fwlab__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 183, 255, 0.15);
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fwlab__check.is-on {
  opacity: 1;
  transform: scale(1);
}
.fwlab__check svg {
  width: 18px;
  height: 18px;
  stroke: var(--fw-lab-cyan);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.4s 0.1s;
}
.fwlab__check.is-on svg {
  stroke-dashoffset: 0;
}

.fwlab__hover-reveal {
  position: relative;
  display: inline-block;
  color: var(--fw-lab-ink);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--fw-lab-line-strong);
  padding-bottom: 0.25rem;
}
.fwlab__hover-img {
  position: absolute;
  width: 200px;
  aspect-ratio: 1;
  background: var(--fw-lab-grad);
  border-radius: 12px;
  top: -100px;
  left: 50%;
  transform: translate(-50%, 20px) scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.fwlab__hover-reveal:hover .fwlab__hover-img {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ---------- MOD 8: TRANSITION GALLERY ---------- */
.fwlab__trans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.fwlab__trans-card {
  background: var(--fw-lab-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--fw-lab-line);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.4rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--fw-lab-ink);
}
.fwlab__trans-card:hover {
  border-color: var(--fw-lab-cyan);
  background: rgba(0, 183, 255, 0.06);
  transform: translateY(-3px);
}
.fwlab__trans-card strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.fwlab__trans-card span {
  font-size: 0.78rem;
  color: var(--fw-lab-muted);
}
.fwlab__trans-stage {
  margin-top: 2rem;
  height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a1230 0%, #1a0a2a 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--fw-lab-line);
}
.fwlab__trans-content {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Geist", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fw-lab-ink);
  text-align: center;
  padding: 2rem;
}
.fwlab__trans-content.is-fade-blur {
  animation: fw-trans-fb 1.4s ease forwards;
}
@keyframes fw-trans-fb {
  0% {
    filter: blur(20px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
.fwlab__trans-content.is-slide-curtain {
  animation: fw-trans-sc 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  clip-path: inset(0 100% 0 0);
}
@keyframes fw-trans-sc {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.fwlab__trans-content.is-circle-wipe {
  animation: fw-trans-cw 1.2s ease forwards;
  clip-path: circle(0% at 50% 50%);
}
@keyframes fw-trans-cw {
  to {
    clip-path: circle(75% at 50% 50%);
  }
}
.fwlab__trans-content.is-diagonal {
  animation: fw-trans-dg 1.2s ease forwards;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}
@keyframes fw-trans-dg {
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.fwlab__trans-content.is-pixel {
  animation: fw-trans-px 1.4s steps(6) forwards;
  filter: blur(20px);
  opacity: 0;
}
@keyframes fw-trans-px {
  50% {
    filter: blur(8px);
    opacity: 0.5;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
.fwlab__trans-content.is-flip-3d {
  animation: fw-trans-3d 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  transform-style: preserve-3d;
  transform: rotateY(-90deg);
  opacity: 0;
}
@keyframes fw-trans-3d {
  to {
    transform: rotateY(0deg);
    opacity: 1;
  }
}
.fwlab__trans-content.is-glass {
  animation: fw-trans-gl 1.4s ease forwards;
  backdrop-filter: blur(40px);
  background: rgba(255, 255, 255, 0.06);
}
@keyframes fw-trans-gl {
  0% {
    backdrop-filter: blur(40px);
    transform: translateX(100%);
  }
  100% {
    backdrop-filter: blur(0);
    transform: translateX(0);
  }
}
.fwlab__trans-content.is-light-beam {
  position: relative;
  animation: fw-trans-lb 1.4s ease forwards;
}
.fwlab__trans-content.is-light-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: fw-trans-lb-bm 1.4s ease forwards;
  transform: translateX(-100%);
}
@keyframes fw-trans-lb-bm {
  to {
    transform: translateX(100%);
  }
}
@keyframes fw-trans-lb {
  0%,
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
.fwlab__trans-content.is-morph {
  animation: fw-trans-mp 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  clip-path: circle(20% at 50% 50%);
}
@keyframes fw-trans-mp {
  50% {
    clip-path: ellipse(50% 30% at 50% 50%);
  }
  100% {
    clip-path: inset(0);
  }
}
.fwlab__trans-content.is-snap {
  animation: fw-trans-sn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateY(60px);
  opacity: 0;
}
@keyframes fw-trans-sn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- TOAST ---------- */
.fwlab__toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--fw-lab-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--fw-lab-cyan);
  color: var(--fw-lab-ink);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 8000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 30px rgba(0, 183, 255, 0.3);
}
.fwlab__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- CTA KONCOWE ---------- */
.fwlab__cta {
  text-align: center;
  padding-block: clamp(5rem, 10vh, 8rem);
}

/* ---------- REDUCE MOTION ---------- */
.fwlab.is-reduced *,
.fwlab.is-reduced *::before,
.fwlab.is-reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
.fwlab.is-reduced .fwlab__bg-aurora,
.fwlab.is-reduced .fwlab__hero-orb,
.fwlab.is-reduced .fwlab__bg-layer--orbs span {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .fwlab__intro {
    display: none;
  }
}
