/* ==========================================================================
   NEW3.LCMWILBIK.PL — "FLUID SCULPTURAL FLOW" (Bez podziału na prostokątne divy)
   Open-Source Stack: UIkit 3 + Tailwind CSS + Swiper 11 + Lenis + GSAP
   Paleta Miro: #4A4A4A | #CBCBCB | #FFFFE3 | #6D8196 w płynnej przestrzeni
   ========================================================================== */

:root {
  --c-graphite: #4A4A4A;
  --c-graphite-deep: #2C2F33;
  --c-ink: #1E2022;
  --c-grey: #CBCBCB;
  --c-ivory: #FFFFE3;
  --c-slate: #6D8196;
  --c-slate-soft: #8FA3B8;
  --c-alabaster: #FAF9F2;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Cross-Document View Transitions (Modern Web Guidance) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-display);
  color: var(--c-ink);
  /* Jeden ciągły, płynny gradient przez całą stronę zamiast odciętych prostokątnych sekcji */
  background:
    radial-gradient(ellipse 80% 50% at 15% 12%, rgba(255, 255, 227, 0.95) 0%, transparent 70%),
    radial-gradient(ellipse 70% 45% at 85% 28%, rgba(109, 129, 150, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 90% 50% at 25% 65%, rgba(255, 255, 227, 0.85) 0%, transparent 70%),
    radial-gradient(ellipse 75% 40% at 80% 85%, rgba(109, 129, 150, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #FAF9F0 0%, #F4F3EA 35%, #EFEFE8 70%, #FAF9F0 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Scroll Progress Indicator (Modern Web Guidance: scroll-progress-indicator) */
#progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-slate), var(--c-graphite));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 3000;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    #progress {
      animation: grow-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* Modern Web Guidance: defer-rendering-heavy-content */
.cv-defer {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 700px;
}

/* Dekoracyjne linie topograficzne żywicy płynące przez całe tło */
.ambient-svg-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

/* Pływająca, bezramkowa nawigacja (pill z miękkim rozmyciem, zero ostrych krawędzi) */
.fluid-nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 1000;
  padding: 0 24px;
}

.fluid-nav {
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(250, 249, 240, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 999px;
  padding: 10px 28px;
  box-shadow: 0 20px 50px rgba(30, 32, 34, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fluid-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-graphite);
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.fluid-link:hover,
.fluid-link.is-active {
  color: var(--c-ink);
  background: var(--c-ivory);
}

/* Organiczna maska zdjęcia Hero (kształt kropli żywicy / wyoblonego kompozytu) */
.organic-hero-mask {
  border-radius: 56px 140px 64px 120px / 70px 110px 80px 90px;
  overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(74, 74, 74, 0.25);
  transition: border-radius 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s ease;
}

.organic-hero-mask:hover {
  border-radius: 110px 64px 130px 56px / 80px 90px 64px 110px;
}

/* Płynny strumień Oferty (Zamiast siatki prostokątnych kart — asymetryczny nurt) */
.fluid-offer-stream {
  position: relative;
  padding: 40px 0;
}

.stream-item {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 120px;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
}

.stream-item:nth-child(even) {
  flex-direction: row-reverse;
}

.stream-photo-wrap {
  flex: 0 0 52%;
  position: relative;
}

.stream-photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  /* Miękkie, asymetryczne wyoblenie narożników bez żadnych ramek */
  border-radius: 48px 96px 48px 96px;
  box-shadow: 0 32px 70px -15px rgba(44, 47, 51, 0.2);
  transition: border-radius 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.stream-item:nth-child(even) .stream-photo {
  border-radius: 96px 48px 96px 48px;
}

.stream-item:hover .stream-photo {
  transform: scale(1.03) translateY(-6px);
  border-radius: 72px;
  filter: brightness(0.92);
}

.stream-copy {
  flex: 1;
  position: relative;
}

.stream-watermark-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 6.5rem;
  line-height: 0.8;
  color: rgba(109, 129, 150, 0.18);
  display: block;
  margin-bottom: -18px;
  transition: transform 0.5s ease, color 0.5s ease;
}

.stream-item:hover .stream-watermark-num {
  transform: translateX(12px);
  color: var(--c-slate);
}

/* Kółko ze strzałką z makiety Miro — płynnie obracające się po najechaniu */
.fluid-arrow-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-ivory);
  color: var(--c-ink);
  box-shadow: 0 14px 30px rgba(30, 32, 34, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stream-item:hover .fluid-arrow-orb {
  background: var(--c-slate);
  color: #FFFFFF;
  transform: rotate(-45deg) scale(1.12);
}

/* ==========================================================================
   SEKCJA PROCES — PŁYNNA FALA (#4A4A4A) Zamiast prostokątnego kontenera
   ========================================================================== */
.wave-process-zone {
  position: relative;
  background: linear-gradient(180deg, #3F4246 0%, #4A4A4A 50%, #383B3F 100%);
  color: #FFFFFF;
  padding: 60px 0 80px;
  margin: 40px 0;
}

.wave-divider-top,
.wave-divider-bottom {
  display: block;
  width: 100%;
  height: 110px;
  overflow: hidden;
  line-height: 0;
}

/* Ścieżka 6 kroków procesu płynąca po fali (bez kwadratowych kart) */
.flowing-steps-river {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 64px;
}

.flowing-step {
  position: relative;
  text-align: center;
  padding: 16px 8px;
  transition: transform 0.4s ease;
}

/* Naturalna falująca linia góra-dół dla parzystych/nieparzystych kroków */
.flowing-step:nth-child(even) {
  transform: translateY(36px);
}

.flowing-step:hover {
  transform: translateY(-8px) !important;
}

.flowing-step__orb {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-ivory), #E5E4C7);
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), 0 0 0 10px rgba(255, 255, 227, 0.08);
  transition: all 0.4s ease;
}

.flowing-step:hover .flowing-step__orb {
  transform: scale(1.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38), 0 0 0 16px rgba(109, 129, 150, 0.35);
}

/* ==========================================================================
   SWOBODNA RZEKA ZDJĘĆ REALIZACJI (Bez prostokątnej siatki Bento)
   ========================================================================== */
.floating-collage-river {
  position: relative;
  padding: 60px 0 80px;
}

.floating-photo {
  border-radius: 42px;
  box-shadow: 0 30px 65px -15px rgba(30, 32, 34, 0.22);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.65s ease;
  object-fit: cover;
  width: 100%;
}

.floating-photo:hover {
  transform: scale(1.04) translateY(-8px);
  border-radius: 68px;
}

/* Bezramkowe pola formularza (tylko płynna dolna linia) */
.fluid-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(74, 74, 74, 0.3);
  padding: 14px 4px;
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color 0.3s ease;
}

.fluid-input:focus {
  outline: none;
  border-bottom-color: var(--c-slate);
}

@media (max-width: 1024px) {
  .stream-item,
  .stream-item:nth-child(even) {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 72px;
  }
  .stream-photo-wrap {
    flex: 1 1 100%;
    width: 100%;
  }
  .flowing-steps-river {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .flowing-step:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .flowing-steps-river {
    grid-template-columns: 1fr;
  }
  .fluid-nav {
    border-radius: 28px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }
}
