/* Creativo Motion - style wlasnego stosu animacji. */
/* Homepage menu entrance: pre-hide only until the motion controller prepares it. */
@media (prefers-reduced-motion: no-preference) {
  html.cm-pending body.home:has([data-c360-hero-oval]) #brx-header { opacity: 0; visibility: hidden; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* 1) NEUTRALIZACJA pre-hide Bricksforge. */
html.brf-fouc-pending :is(.header-subtitle,.sec-2,.loader,.slider-poziom__card,.pinned-video,.nav-header,.logo,.subheader-hero,.hero-heading,.offmenu__toggle-menu,.bm07-focus_image--zoom,.bm06-v_scroll_section .bm06-card,.bm06-v_scroll_section .bm06-card_title,.bm06-v_scroll_section .bm06-card,.grid-image,.scroll-zoom__content-wrapper,.arc-card) { visibility: visible !important; }

/* 2) Nasz wlasny pre-hide. */
html.cm-pending .arc-card { visibility: hidden !important; }
@media (prefers-reduced-motion: reduce) { html.cm-pending .arc-card { visibility: visible !important; } }
/* ============================================================
   4) NAV: invert + progressive backdrop blur + sticky slide-up.
   Blur remains outside the difference-blended Bricks header.
   Each layer owns its mask; the parent must not mask the backdrop.
   ============================================================ */

/* 4a. c360-style progressive blur: 0.4 -> 51.2px toward the top.
   120px reach covers the taller C360 header. No tint or saturation boost. */
.c360-nav-blur {
  position: fixed; top: 0; left: 0; right: 0; height: 120px;
  pointer-events: none; z-index: 997; overflow: hidden;
  visibility: hidden;
  transition: transform .4s ease;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  mask-image: none; -webkit-mask-image: none;
}
.c360-nav-blur.c360-nav-blur-visible { visibility: visible; }
.c360-nav-blur > div {
  position: absolute; inset: 0; pointer-events: none;
  backdrop-filter: blur(var(--c360-nav-layer-blur));
  -webkit-backdrop-filter: blur(var(--c360-nav-layer-blur));
  mask-image: var(--c360-nav-layer-mask);
  -webkit-mask-image: var(--c360-nav-layer-mask);
}
.c360-nav-blur > div:nth-child(1) { z-index: 1; --c360-nav-layer-blur: 0.4px; --c360-nav-layer-mask: linear-gradient(to top, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.c360-nav-blur > div:nth-child(2) { z-index: 2; --c360-nav-layer-blur: 0.8px; --c360-nav-layer-mask: linear-gradient(to top, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.c360-nav-blur > div:nth-child(3) { z-index: 3; --c360-nav-layer-blur: 1.6px; --c360-nav-layer-mask: linear-gradient(to top, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.c360-nav-blur > div:nth-child(4) { z-index: 4; --c360-nav-layer-blur: 3.2px; --c360-nav-layer-mask: linear-gradient(to top, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.c360-nav-blur > div:nth-child(5) { z-index: 5; --c360-nav-layer-blur: 6.4px; --c360-nav-layer-mask: linear-gradient(to top, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.c360-nav-blur > div:nth-child(6) { z-index: 6; --c360-nav-layer-blur: 12.8px; --c360-nav-layer-mask: linear-gradient(to top, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); }
.c360-nav-blur > div:nth-child(7) { z-index: 7; --c360-nav-layer-blur: 25.6px; --c360-nav-layer-mask: linear-gradient(to top, transparent 75%, #000 87.5%, #000 100%); }
.c360-nav-blur > div:nth-child(8) { z-index: 8; --c360-nav-layer-blur: 51.2px; --c360-nav-layer-mask: linear-gradient(to top, transparent 87.5%, #000 100%); }

/* 4b. Invert: biala tresc + difference na CALYM naglowku. */
#brx-header.c360-nav-sticky { mix-blend-mode: difference; }
#brx-header .bricks-site-logo { filter: invert(1); }
#brx-header .bricks-nav-menu a,
#brx-header .brxe-text-link { color: #fff; }
#brx-header .brxa-wrap { color: #fff; }
#brx-header .bricks-mobile-menu-toggle .bar-top,
#brx-header .bricks-mobile-menu-toggle .bar-center,
#brx-header .bricks-mobile-menu-toggle .bar-bottom { background-color: #fff; }

/* 4c. Sticky + slide-up. Header fixed; wysuwa sie sekcja (ma realna wysokosc)
   razem z body-level warstwa bluru. */
#brx-header.c360-nav-sticky { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 998; }
#brx-header.c360-nav-sticky > .brxe-section { transition: transform .4s ease; }
html.c360-nav-hidden #brx-header.c360-nav-sticky > .brxe-section { transform: translateY(-100%); }
html.c360-nav-hidden .c360-nav-blur { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  #brx-header.c360-nav-sticky > .brxe-section, .c360-nav-blur { transition: none; }
  html.c360-nav-hidden #brx-header.c360-nav-sticky > .brxe-section { transform: none; }
  html.c360-nav-hidden .c360-nav-blur { transform: none; }
}

/* Text reveal units remain inline: preserve wrapping and rich-text semantics. */
.c360-text-reveal-ready .c360-tr-u { display: inline; }
@media print {
  .c360-text-reveal-ready .c360-tr-u { opacity: 1 !important; }
}

/* Portfolio capsule reveals the same dark surface as the preceding introduction. */
body.page-id-1343 .folio-home__sec { background-color: #0a0a0c; }

/* Client logo strip: six generous cells on desktop, continuous loop in motion.js. */
.klienci__cont.c360-logo-marquee {
  --c360-logo-cell: clamp(190px, 16.6667vw, 320px);
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  padding: 20px 0;
  background: #000;
  color: #fff;
}
.c360-logo-marquee .c360-logo-track {
  display: flex;
  width: max-content;
  max-width: none;
  gap: 0;
}
.c360-logo-marquee .c360-logo-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}
.c360-logo-marquee .klient__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--c360-logo-cell);
  width: var(--c360-logo-cell);
  min-width: 0;
  padding: 0 20px;
}
.c360-logo-marquee .klient__logo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 337 / 107;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.c360-logo-marquee.c360-logo-static .c360-logo-track { width: 100%; transform: none !important; }
.c360-logo-marquee.c360-logo-static .c360-logo-group { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
@media (max-width: 767px) {
  .klienci__cont.c360-logo-marquee { --c360-logo-cell: 190px; padding: 22px 0; }
  .c360-logo-marquee .klient__logo { padding: 0 16px; }
}

/* Fade the moving logos into the black surface at both edges. */
.c360-logo-marquee::before,
.c360-logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10%, 140px);
  z-index: 1;
  pointer-events: none;
}
.c360-logo-marquee::before { left: 0; background: linear-gradient(to right, #000 0%, #0000 100%); }
.c360-logo-marquee::after { right: 0; background: linear-gradient(to left, #000 0%, #0000 100%); }
.c360-logo-marquee.c360-logo-static::before,
.c360-logo-marquee.c360-logo-static::after { display: none; }

/* Pointer drag stays horizontal; touch can still scroll the page vertically. */
.c360-logo-marquee.c360-logo-draggable:not(.c360-logo-static) { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.c360-logo-marquee.c360-logo-dragging { cursor: grabbing; }
.c360-logo-marquee.c360-logo-draggable img { -webkit-user-drag: none; }

/* C360 section palette: opt-in only; the black View Transition canvas stays on :root. */
body.c360-theme-active {
  background-color: var(--c360-theme-bg) !important;
  color: var(--c360-theme-text) !important;
  transition: background-color var(--c360-theme-duration, 0s) ease, color var(--c360-theme-duration, 0s) ease;
}
body.c360-theme-active .c360-theme-section,
body.c360-theme-active .c360-theme-surface {
  background-color: transparent !important;
}
body.c360-theme-active .c360-theme-section,
body.c360-theme-active .c360-theme-text,
body.c360-theme-active .c360-theme-text :where(h1,h2,h3,h4,h5,h6,p,a,span,li,blockquote,strong,em,b,i,small,label,figcaption,.brxe-text,.brxe-text-basic,.brxe-heading,.brxe-text-link) {
  color: var(--c360-theme-text) !important;
  transition: color var(--c360-theme-duration, 0s) ease;
}
@media (prefers-reduced-motion: reduce) {
  body.c360-theme-active,
  body.c360-theme-active .c360-theme-section,
  body.c360-theme-active .c360-theme-text,
  body.c360-theme-active .c360-theme-text :where(h1,h2,h3,h4,h5,h6,p,a,span,li,blockquote,strong,em,b,i,small,label,figcaption,.brxe-text,.brxe-text-basic,.brxe-heading,.brxe-text-link) { transition: none; }
}
/* Hero2 module geometry. Layout and text remain native, editable Bricks elements.
   Without the active module (or with reduced motion) this is a normal video hero. */
[data-c360-hero-oval].c360-hero2-active { height: calc(100svh * (1 + var(--c360-hero2-span, 1.1))) !important; }
.c360-hero2-active .c360-hero2-stage { position: sticky !important; top: 0; }
.c360-hero2-paper { opacity: 0; }
/* Natural page flow: one viewport, no pinning, overlap or extra translation. */
[data-c360-hero-oval].c360-hero2-active.c360-hero2-natural { height: 100svh !important; }
.c360-hero2-natural .c360-hero2-stage { position: relative !important; }
.c360-hero2-loader { position: absolute; top: 50%; left: 50%; z-index: 3; pointer-events: none; overflow: visible; }
.c360-hero2-stage { isolation: isolate; }
.c360-hero2-mask { overflow: hidden; }
.c360-hero2-video.brxe-video, .c360-hero2-video video { width: 100%; height: 100%; }
.c360-hero2-video video { display: block; object-fit: cover; pointer-events: none; }
.c360-hero2-video .bricks-video-wrapper { height: 100%; padding: 0; }
.c360-hero2-heading, .c360-hero2-note { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  [data-c360-hero-oval].c360-hero2-active { height: 100svh !important; }
  .c360-hero2-active .c360-hero2-stage { position: relative !important; }
}
@media print {
  [data-c360-hero-oval].c360-hero2-active { height: 100svh; }
  .c360-hero2-mask { clip-path: none !important; transform: none !important; }
  .c360-hero2-heading, .c360-hero2-note { opacity: 1 !important; transform: none !important; }
}


/* Manual arc rotation: native image dragging must not interrupt pointer gestures. */
.arc-carousel.c360-arc-draggable { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.arc-carousel.c360-arc-draggable, .arc-carousel.c360-arc-draggable .arc-card, .arc-carousel.c360-arc-draggable .arc-card * { cursor: grab !important; }
.arc-carousel.c360-arc-draggable.is-dragging, .arc-carousel.c360-arc-draggable.is-dragging .arc-card, .arc-carousel.c360-arc-draggable.is-dragging .arc-card * { cursor: grabbing !important; }
.arc-carousel.c360-arc-draggable img { -webkit-user-drag: none; }

/* C360 portfolio image zoom: clip only media, keep figure captions outside. */
.c360-portfolio-image-frame { display: block; position: relative; width: 100%; min-width: 0; flex: 0 0 auto; overflow: hidden; line-height: 0; border-radius: inherit; }
@media print { .c360-portfolio-image-frame img { transform: none !important; } }

/* Homepage HERO: darken the background video while keeping the copy above it. */
.c360-hero .c360-hero2-video::after, body.home [data-c360-hero-oval] .c360-hero2-video::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / var(--c360-hero-overlay, 0.4)); pointer-events: none; z-index: 1; }

/* Portable HERO: prepare copy in both modes; only the capsule entrance hides the video.
   cm-phase-pending is emitted on every frontend page, even without page-level hero parts.
   cm-pending also covers same-document navigation. Keep compatibility with the PHP prehide. */
@media (prefers-reduced-motion: no-preference) {
  html:is(.cm-pending,.cm-phase-pending) .c360-hero.c360-hero--intro:not(.c360-hero2-active) :is(.c360-hero2-mask,.c360-hero2-heading,.c360-hero2-note,.c360-hero2-extra) { opacity: 0 !important; }
  html:is(.cm-pending,.cm-phase-pending) .c360-hero.c360-hero--intro:not(.c360-hero2-active) .c360-hero2-paper { opacity: 1 !important; }
  html:is(.cm-pending,.cm-phase-pending) .c360-hero:not(.c360-hero--intro) .c360-hero2-mask { opacity: 1 !important; }
  html:is(.cm-pending,.cm-phase-pending) .c360-hero:not(.c360-hero2-active) :is(.c360-hero2-heading,.c360-hero2-note,.c360-hero2-extra) { opacity: 0 !important; }
  html:is(.cm-pending,.cm-phase-pending) .c360-hero:not(.c360-hero--intro) .c360-hero2-paper { opacity: 0 !important; }
  html:is(.cm-pending,.cm-phase-pending) body.home:has(.c360-hero:not(.c360-hero--intro)) #brx-header { opacity: 1; visibility: visible; }
}

/* Additional editable HERO copy shares the controller's initial-state gate. */
@media (prefers-reduced-motion: no-preference) { html.cm-pending [data-c360-hero-oval] .c360-hero2-extra { opacity: 0 !important; visibility: hidden; } }

/* Shared masked line reveal: settle to each element's original text color. */
@media (prefers-reduced-motion: no-preference) { html.cm-phase-pending .c360-text-phase { visibility: hidden; } }
/* Bleed both the reveal mask and gradient box so descenders stay painted before settling. */
.c360-phase-line-mask { overflow: hidden; }
.c360-phase-line-mask, .c360-phase-line { padding-bottom: 0.25em; margin-bottom: -0.25em; }
.c360-phase-line { background-image: linear-gradient(90deg, var(--c360-phase-color, var(--c360-white)) 45%, var(--primary) 46%, var(--primary) 54%, var(--c360-phase-dim, rgb(255 255 255 / 20%)) 55%); background-size: 250% 100%; background-position: 100% 50%; background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.c360-phase-line.c360-phase-settled { background-image: none; color: inherit; -webkit-text-fill-color: currentColor; }

/* Portable process capsule. Layout and editable content live in Bricks classes. */
.c360-process__list { list-style: none; }
.c360-process--active { height: calc(100svh + var(--c360-process-travel)); }
.c360-process--active .c360-process__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.c360-process__capsule { aspect-ratio: 2.12; }
.c360-process__capsule::before { content: ''; position: absolute; inset: 0; border: 10px solid var(--primary); border-radius: var(--radius-full); opacity: .25; pointer-events: none; }
.c360-process--active .c360-process__capsule::before { display: none; }
.c360-process__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.c360-process__outline path { fill: none; stroke: var(--primary); stroke-width: 10px; stroke-linecap: round; }
.c360-process__outline-track { opacity: .24; }
.c360-process__outline-fill { stroke-dasharray: 1; stroke-dashoffset: 1; }
.c360-process--active .c360-process__number { display: flex; align-items: center; justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; mask-image: linear-gradient(transparent, #0003 12%, #000 34%, #000 66%, #0003 88%, transparent); }
.c360-process__digit { position: relative; display: block; width: .61em; height: 1.6em; overflow: hidden; flex: 0 0 .61em; }
.c360-process__digit.is-leading { display: none; }
.c360-process__reel { position: absolute; top: calc(50% - 1.35em); left: 0; width: 100%; height: 2.7em; will-change: transform; }
.c360-process__reel > span { display: block; height: .9em; line-height: .9em; text-align: center; }
.c360-process__degree { align-self: center; font-size: .52em; line-height: 1; margin: -.5em 0 0 .06em; }
.c360-process__art { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.c360-process__art:not(:first-child) { display: none; }
.c360-process--active .c360-process__art { display: block; position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translate3d(0,12%,0) rotate(6deg) scale(.94); transition: opacity .22s ease, visibility .22s, transform .3s ease; }
.c360-process--active .c360-process__art.is-current { opacity: 1; visibility: visible; transform: translate3d(0,0,0) rotate(0) scale(1); }
.c360-process--active .c360-process__item { opacity: .3; transition: opacity .22s ease; }
.c360-process--active .c360-process__item.is-current { opacity: 1; }
@media (max-width: 767px) {
  .c360-process--active .c360-process__stage { align-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .c360-process__art, .c360-process__item { transition: none !important; }
}


/* Portable gallery breakout: static native Bricks grid remains the fallback.
   Beat Bricks' class + element selectors even when SPA appends them after this file. */
.c360-grid-zoom.c360-grid-zoom--active > .c360-grid-zoom__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.c360-grid-zoom.c360-grid-zoom--active .c360-grid-zoom__grid {
  width: max-content;
  max-width: none;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  flex-shrink: 0;
}
.c360-grid-zoom.c360-grid-zoom--active .c360-grid-zoom__tile {
  min-width: 0;
  max-width: none;
  flex-shrink: 0;
  aspect-ratio: auto;
}

/* Opt-in process variant: only the capsule sticks; the native list scrolls. */
.c360-process.c360-process--flow { height: auto; }
.c360-process--flow.c360-process--active > .c360-process__stage { position: relative; top: auto; height: auto; min-height: 0; }
.c360-process--flow.c360-process--active .c360-process__visual { position: sticky; top: var(--c360-process-sticky-top, 25svh); }
/* End sticky on the last title, independently of its paragraph height. */
.c360-process--flow.c360-process--active.c360-process--complete .c360-process__visual { position: relative; top: var(--c360-process-final-offset, 0px); }
.c360-process--flow .c360-process__list { counter-reset: c360-process-step; }
.c360-process--flow .c360-process__item { counter-increment: c360-process-step; }
.c360-process--flow .c360-process__item::before { content: counter(c360-process-step, decimal-leading-zero); position: absolute; left: calc(-1 * var(--space-l)); top: .3em; font-size: var(--text-xs); line-height: 1; letter-spacing: 0; }
.c360-process--flow .c360-process__intro { text-wrap: balance; }
/* Titles own their dim-to-color wipe; never multiply it by item opacity. */
.c360-process--title-reveal.c360-process--active .c360-process__item { opacity: 1; transition: none; }
.c360-process--title-reveal.c360-process--active .c360-process__item > :not(.c360-process__title),
.c360-process--title-reveal.c360-process--active .c360-process__item::before { opacity: .3; transition: opacity .22s ease; }
.c360-process--title-reveal.c360-process--active .c360-process__item.is-revealed > :not(.c360-process__title),
.c360-process--title-reveal.c360-process--active .c360-process__item.is-revealed::before { opacity: 1; }
@media (max-width: 767px) {
  .c360-process--flow.c360-process--active .c360-process__visual { z-index: 2; isolation: isolate; background: transparent; }
  .c360-process--flow.c360-process--active.c360-process--stuck .c360-process__visual::before,
  .c360-process--flow.c360-process--active.c360-process--stuck .c360-process__visual::after { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--c360-process-bleed-left, 0px)); right: calc(-1 * var(--c360-process-bleed-right, 0px)); pointer-events: none; opacity: 1; }
  .c360-process--flow.c360-process--active.c360-process--stuck .c360-process__visual::before { top: calc(-1 * var(--c360-process-sticky-top, 0px)); height: calc(var(--c360-process-sticky-top, 0px) + var(--c360-process-capsule-bottom, 100%)); background: var(--dark); }
  .c360-process--flow.c360-process--active.c360-process--stuck .c360-process__visual::after { top: var(--c360-process-capsule-bottom, 100%); height: 1cm; background: linear-gradient(to bottom, var(--dark), transparent); }
  .c360-process--flow.c360-process--active.c360-process--stuck .c360-process__copy { -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--c360-process-mask-y, -1000px) + 1cm), #000 calc(var(--c360-process-mask-y, -1000px) + 2cm)); mask-image: linear-gradient(to bottom, transparent calc(var(--c360-process-mask-y, -1000px) + 1cm), #000 calc(var(--c360-process-mask-y, -1000px) + 2cm)); }
}

