/* ==========================================================================
   Architectural 2D Inverted-Pyramid Funnel (#funnel-anatomy)
   Crafted natively in Dala's typographic scale (1rem = clamp(12px, 0.833vw))
   and Unseen Studio wireframe geometry — zero SaaS cards, zero UI bloat.
   ========================================================================== */

.white-funnel-container {
  position: relative;
  width: 100%;
  height: 300vh;
  background: transparent;
  color: #f7f7f5;
  z-index: 4;
  overflow: visible;
}

.white-funnel-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 10rem;
}

/* Edge-free atmospheric vignette so floating 3D WebGL pyramids frame the scene
   without slicing harshly across typography */
.funnel-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 64% 58% at 50% 52%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.34) 48%,
    rgba(0, 0, 0, 0) 80%
  );
}

.white-funnel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(4rem, 7vw, 9rem);
  will-change: transform, opacity;
}

/* ---------- LEFT: Architectural Wireframe Inverted Pyramid ---------- */
.funnel-diagram {
  position: relative;
  width: 100%;
  max-width: 36rem;
  justify-self: center;
  perspective: 1100px;
}

/* Quiet vertical datum axis running through the pyramid's spine */
.funnel-axis {
  position: absolute;
  left: 50%;
  top: -1.6rem;
  bottom: -1.6rem;
  width: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.funnel-axis__track {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 247, 245, 0) 0%,
    rgba(247, 247, 245, 0.12) 10%,
    rgba(247, 247, 245, 0.12) 90%,
    rgba(247, 247, 245, 0) 100%
  );
}

.funnel-axis__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(
    180deg,
    rgba(47, 107, 255, 0.08) 0%,
    rgba(47, 107, 255, 0.65) 78%,
    rgba(216, 180, 106, 0.9) 100%
  );
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.funnel-axis__node {
  display: none;
}

.funnel-pyramid-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Magnetic snapping reticle — locks cleanly onto the exact active plate */
.funnel-reticle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 4.1rem;
  transform: translate3d(-50%, 0, 0);
  border: 1px solid rgba(47, 107, 255, 0.82);
  background: linear-gradient(
    90deg,
    rgba(47, 107, 255, 0.14) 0%,
    rgba(47, 107, 255, 0.05) 50%,
    rgba(47, 107, 255, 0.14) 100%
  );
  box-shadow:
    inset 0 0 28px rgba(47, 107, 255, 0.09),
    0 0 32px rgba(47, 107, 255, 0.12);
  pointer-events: none;
  z-index: 4;
  will-change: transform, width, height, border-color;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.funnel-reticle.is-instant {
  transition: none !important;
}

.funnel-reticle.is-gold {
  border-color: rgba(216, 180, 106, 0.88);
  background: linear-gradient(
    90deg,
    rgba(216, 180, 106, 0.16) 0%,
    rgba(216, 180, 106, 0.05) 50%,
    rgba(216, 180, 106, 0.16) 100%
  );
  box-shadow:
    inset 0 0 28px rgba(216, 180, 106, 0.12),
    0 0 36px rgba(216, 180, 106, 0.14);
}

/* Hairline architectural corner ticks echoing Dala's geometric vocabulary */
.funnel-reticle__corner {
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
}

.funnel-reticle__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid #f7f7f5;
  border-left: 1px solid #f7f7f5;
}

.funnel-reticle__corner--tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid #f7f7f5;
  border-right: 1px solid #f7f7f5;
}

.funnel-reticle__corner--bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid #f7f7f5;
  border-left: 1px solid #f7f7f5;
}

.funnel-reticle__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid #f7f7f5;
  border-right: 1px solid #f7f7f5;
}

.funnel-reticle.is-gold .funnel-reticle__corner {
  border-color: #d8b46a;
}

/* Individual horizontal architectural plates (sharp 0px edges, zero cards) */
.funnel-tier {
  position: relative;
  z-index: 2;
  width: var(--tier-w, 100%);
  min-width: 13.5rem;
  height: 4.1rem;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border-radius: 0;
  background: rgba(2, 3, 6, 0.82);
  border: 1px solid rgba(247, 247, 245, 0.11);
  color: rgba(247, 247, 245, 0.3);
  cursor: pointer;
  transition:
    border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.funnel-tier:hover {
  color: rgba(247, 247, 245, 0.68);
  border-color: rgba(247, 247, 245, 0.24);
}

.funnel-tier.is-passed {
  border-color: rgba(47, 107, 255, 0.26);
  color: rgba(247, 247, 245, 0.48);
}

.funnel-tier.is-active {
  border-color: transparent;
  color: #f7f7f5;
}

.funnel-tier__num {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(247, 247, 245, 0.24);
  font-variant-numeric: tabular-nums;
  transition: color 0.28s ease;
}

.funnel-tier.is-passed .funnel-tier__num {
  color: rgba(114, 158, 255, 0.64);
}

.funnel-tier.is-active .funnel-tier__num {
  color: rgba(247, 247, 245, 0.72);
}

.funnel-tier.is-tip.is-active .funnel-tier__num {
  color: #d8b46a;
}

.funnel-tier__label {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- RIGHT: Native Dala Editorial Copy Column ---------- */
.funnel-copy-panel {
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.funnel-copy-slides {
  position: relative;
  min-height: 28rem;
}

.funnel-copy-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.funnel-copy-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Clean editorial line clip matching Dala's splitTextRotateIn feel (zero blur) */
.funnel-copy-mask {
  flex-shrink: 0;
  overflow: hidden;
  padding-bottom: 0.2em;
}

.funnel-copy-eyebrow {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  color: #2f6bff;
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.funnel-copy-eyebrow--gold {
  color: #d8b46a;
}

.funnel-copy-title {
  margin: 0 0 1.5rem;
  font-size: 3.5rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #f7f7f5;
  transform: translate3d(0, 105%, 0) rotate(1.4deg);
  transform-origin: left bottom;
  opacity: 0;
  transition:
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.03s,
    opacity 0.32s ease 0.03s;
}

.funnel-copy-desc {
  margin: 0 0 1.15rem;
  font-size: 1.5rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 200;
  color: rgba(247, 247, 245, 0.82);
  transform: translate3d(0, 42%, 0);
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
    opacity 0.34s ease 0.06s;
}

.funnel-copy-desc--second {
  margin-bottom: 0;
  color: rgba(247, 247, 245, 0.68);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    opacity 0.36s ease 0.1s;
}

.funnel-copy-cta-mask {
  padding-top: 2rem;
  padding-bottom: 0.4rem;
}

.funnel-copy-cta {
  display: flex;
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  transition:
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
    opacity 0.38s ease 0.14s;
}

.funnel-copy-slide.is-past .funnel-copy-eyebrow {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}

.funnel-copy-slide.is-past .funnel-copy-title {
  transform: translate3d(0, -55%, 0) rotate(-0.8deg);
  opacity: 0;
  transition:
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.funnel-copy-slide.is-past .funnel-copy-desc,
.funnel-copy-slide.is-past .funnel-copy-cta {
  transform: translate3d(0, -30%, 0);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}

.funnel-copy-slide.is-active .funnel-copy-eyebrow,
.funnel-copy-slide.is-active .funnel-copy-title,
.funnel-copy-slide.is-active .funnel-copy-desc,
.funnel-copy-slide.is-active .funnel-copy-cta {
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
}

.funnel-accent-gold {
  color: #d8b46a;
  font-style: italic;
}

/* ---------- Native Dark Footer Bar at Very Bottom ---------- */
.footer__bar--after-white {
  position: relative;
  z-index: 5;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  color: #f7f7f5;
}

.footer__bar--after-white .footer__copyright,
.footer__bar--after-white .footer__nav__link {
  color: rgba(247, 247, 245, 0.72);
}

.footer__bar--after-white .footer__nav__link:hover {
  color: #2f6bff;
}

.footer__bar--after-white .footer__social__icon {
  fill: rgba(247, 247, 245, 0.74);
}

/* ---------- Responsive (Aligned with Dala breakpoints) ---------- */
@media (max-width: 1023px) {
  .white-funnel-stage {
    padding: 5.5rem 3rem 3rem;
  }

  .white-funnel-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 36rem;
  }

  .funnel-copy-panel {
    justify-self: center;
    max-width: 36rem;
  }

  .funnel-copy-title {
    font-size: 2.5rem;
  }

  .funnel-copy-desc {
    font-size: 1.25rem;
  }

  .funnel-copy-slides {
    min-height: 22rem;
  }

  .funnel-tier,
  .funnel-reticle {
    height: 3.5rem;
  }
}

@media (max-width: 639px) {
  .white-funnel-container {
    height: 380vh;
  }

  .white-funnel-stage {
    padding: 5rem 1.75rem 2.5rem;
  }

  .funnel-pyramid-stack {
    gap: 0.7rem;
  }

  .funnel-tier,
  .funnel-reticle {
    height: 3.15rem;
  }

  .funnel-tier {
    min-width: 11.5rem;
  }

  .funnel-copy-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .funnel-copy-desc {
    font-size: 1.1rem;
  }
}


/* Landscape 16:9 white placeholders for Ukázky (website screenshot ratio) */
.team-card {
  width: clamp(30rem, 42vw, 56rem) !important;
}
.team-card__inner {
  background: #ffffff !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  height: auto !important;
}
.team-card__image {
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.team-card__social {
  display: none !important;
}
