/* ---------- Wariant A2 — graficzny / motion-loaded ---------- */

html { scroll-behavior: smooth; }
body { cursor: none; }
@media (max-width: 768px) { body { cursor: auto; } }

/* ============ GRAPHIC LAYER (fixed) ============ */
.graphic-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.a2-body > *:not(.graphic-layer):not(.custom-cursor):not(.custom-cursor-aura) {
  position: relative;
  z-index: 1;
}

/* Noise overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Blobs */
.blob {
  position: absolute;
  width: 80vw;
  max-width: 900px;
  height: auto;
  filter: blur(40px);
  opacity: 0.55;
}
.blob-1 { top: -10%; left: -20%; animation: blob-pulse 16s ease-in-out infinite; }
.blob-2 { top: 40%; right: -25%; animation: blob-pulse 20s ease-in-out infinite reverse; }
@keyframes blob-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(40px, -20px); }
}

/* Orbits */
.orbits {
  position: absolute;
  width: 90vw;
  max-width: 1100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  animation: orbits-spin 80s linear infinite;
}
@keyframes orbits-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Giant "15" — parallax watermark */
.giant-15 {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(30rem, 80vw, 120rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(168, 85, 247, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #A855F7;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}
.custom-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.custom-cursor-aura.aura-active {
  width: 80px;
  height: 80px;
  background: rgba(168, 85, 247, 0.15);
}
@media (max-width: 768px) {
  .custom-cursor, .custom-cursor-aura { display: none; }
}

/* Hero meta line */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 999px;
}
.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  animation: dot-pulse 1.6s ease-out infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(168, 85, 247, 0); }
}
.meta-divider {
  width: 1px;
  height: 16px;
  background: rgba(196, 181, 253, 0.3);
}

/* Hero headline (z scramble) */
.hero-headline {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.scramble {
  display: inline-block;
}
.scramble-char {
  display: inline;
  color: #A855F7;
  font-style: normal;
  font-weight: 400;
}

/* Asymetryczny collage */
.collage-photo {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 60px -20px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.18);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s;
  transform: rotate(var(--tilt-base, 0deg));
  cursor: zoom-in;
}
.collage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collage-tag {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  padding: 0.3rem 0.6rem;
  background: rgba(11, 6, 20, 0.9);
  color: #C4B5FD;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
.collage-1 {
  top: 0%;
  left: 5%;
  width: 60%;
  aspect-ratio: 4 / 3;
  z-index: 3;
}
.collage-2 {
  top: 30%;
  right: 0%;
  width: 50%;
  aspect-ratio: 3 / 4;
  z-index: 2;
}
.collage-3 {
  bottom: 0%;
  left: 0%;
  width: 45%;
  aspect-ratio: 3 / 4;
  z-index: 1;
}

/* Floating SVG decorations */
.float-deco {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
}
.float-deco-1 { top: 5%; right: -20px; }
.float-deco-2 { bottom: 20%; left: 50%; width: 80px; height: 80px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #A855F7, transparent);
  animation: scroll-line 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* ============ HORIZONTAL SCROLL CASE STUDIES ============ */
.horizontal-section {
  position: relative;
  background: transparent;
}
.horizontal-pin {
  display: flex;
  height: 100vh;
  align-items: stretch;
  padding: 6rem 0 4rem 0;
  gap: 3rem;
  overflow: hidden;
}
.horizontal-header {
  flex: 0 0 380px;
  padding: 0 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.horizontal-progress {
  margin-top: 2rem;
  height: 2px;
  background: rgba(196, 181, 253, 0.15);
  border-radius: 999px;
  overflow: hidden;
  max-width: 280px;
}
.horizontal-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A855F7, #C4B5FD);
  transition: width 0.1s linear;
}
.horizontal-track {
  flex: 1;
  overflow: hidden;
}
.horizontal-inner {
  display: flex;
  gap: 1.5rem;
  height: 100%;
  padding-right: 3rem;
  width: max-content;
}
.case-card-h {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.case-image-h {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.case-image-h::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 6, 20, 0.85), transparent 50%);
}
.case-card-h:hover .case-image-h {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(168, 85, 247, 0.45);
}
.case-overlay-h {
  position: absolute;
  inset: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}
.case-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* line-clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile fallback dla horizontal */
@media (max-width: 1023px) {
  .horizontal-pin {
    flex-direction: column;
    height: auto;
    padding: 4rem 1.5rem;
    gap: 2rem;
  }
  .horizontal-header {
    flex: 0 0 auto;
    padding: 0;
  }
  .horizontal-track { overflow-x: auto; }
  .horizontal-inner { padding-right: 1rem; }
  .case-card-h { flex: 0 0 280px; }
}

/* ============ Reszta = standardowe A ============ */


/* Paleta — zmienne CSS pomocnicze */
:root {
  --accent: #A855F7;
  --accent-deep: #7C3AED;
  --accent-soft: #C4B5FD;
  --ink: #0B0614;
  --ink-soft: #13091F;
  --ink-card: #1A0F2E;
}

::selection { background: var(--accent); color: #fff; }

/* Tekst gradient fioletowy */
.text-gradient-purple {
  background: linear-gradient(135deg, #C4B5FD 0%, #A855F7 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Badge XV w nav */
.badge-xv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.05));
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.1); }
}

/* Hero glow tło - radial fiolet */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(168, 85, 247, 0.18), transparent 60%);
  pointer-events: none;
}

/* WEC outline stack */
.hero-outline-stack {
  position: absolute;
  top: 30%;
  right: -2%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: -3rem;
  opacity: 0.5;
  pointer-events: none;
}
.text-outline {
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 85, 247, 0.18);
  margin-top: -2rem;
}
.text-outline:nth-child(2) { -webkit-text-stroke-color: rgba(168, 85, 247, 0.1); }
.text-outline:nth-child(3) { -webkit-text-stroke-color: rgba(168, 85, 247, 0.05); }

.text-outline-soft {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

/* Hero team photo */
.hero-team-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-card);
  box-shadow:
    0 25px 60px -20px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.15);
}
.hero-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.9);
}
.hero-team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 60%);
  pointer-events: none;
}

/* Buttony */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -8px rgba(168, 85, 247, 0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  background: transparent;
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(168, 85, 247, 0.05);
}

/* Service card */
.service-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(196, 181, 253, 0.08);
  border-radius: 6px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(124, 58, 237, 0.3);
}

/* Case card */
.case-card {
  display: block;
  cursor: pointer;
}
.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.5s ease;
}
.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 6, 20, 0.85), transparent 60%);
}
.case-card:hover .case-image {
  transform: scale(1.02);
  box-shadow: 0 20px 50px -15px rgba(124, 58, 237, 0.35);
}
.case-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.badge-cat {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Marquee klientów */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  width: 160px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0.6;
}
.marquee-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(1);
}

/* Cytat */
.quote-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(196, 181, 253, 0.1);
  border-radius: 6px;
}

/* ============ ZESPÓŁ — sekcja kluczowa ============ */

/* Pełnoekranowy banner zespołu */
.team-banner-section {
  position: relative;
  border-bottom: 1px solid rgba(196, 181, 253, 0.08);
}
.team-banner {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.team-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 6, 20, 0.5) 0%, rgba(11, 6, 20, 0.3) 40%, rgba(11, 6, 20, 0.95) 100%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, transparent 60%);
}

/* Twarze WEC — portretowe karty */
.portrait-card {
  cursor: pointer;
  transition: transform 0.3s;
}
.portrait-card:hover {
  transform: translateY(-4px);
}
.portrait-photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.4s, box-shadow 0.4s;
}
.portrait-card:hover .portrait-photo {
  filter: grayscale(0) contrast(1.05);
  box-shadow: 0 15px 40px -10px rgba(168, 85, 247, 0.4);
}

/* Masonry zdjęć z sesji */
.team-masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .team-masonry { column-count: 2; } }
@media (min-width: 1024px) { .team-masonry { column-count: 3; } }
@media (min-width: 1280px) { .team-masonry { column-count: 4; } }

.masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.95);
  transition: transform 0.6s ease, filter 0.4s;
}
.masonry-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}
.masonry-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(11, 6, 20, 0.9), transparent);
  color: rgba(255, 255, 255, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.masonry-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Counter — reset koloru dla span */
.counter span { color: white; -webkit-text-fill-color: white; }
