/* DepthCarousel — adapted for the static RTL landing page and its mist/glass system. */
.problem-visual {
  overflow: hidden;
}

.depth-carousel {
  --dc-perspective: 1400px;
  position: relative;
  width: 100%;
  height: 32rem;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--dc-perspective);
  perspective-origin: 50% 48%;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  isolation: isolate;
}

.depth-carousel::before {
  content: "";
  position: absolute;
  inset: 10% 4% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 54%, rgba(255, 255, 255, 0.8) 0 19%, transparent 56%),
    radial-gradient(circle at 50% 58%, rgba(7, 88, 73, 0.12), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.depth-carousel:active {
  cursor: grabbing;
}

.depth-carousel:focus-visible {
  outline: 2px solid #08715d;
  outline-offset: -3px;
  border-radius: 1rem;
}

.depth-carousel__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.depth-carousel__card {
  appearance: none;
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(20rem, 67%);
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  -webkit-tap-highlight-color: transparent;
}

/* A readable depth stack is visible before the interaction code initializes. */
.depth-carousel__card:nth-child(1) { z-index: 6; }
.depth-carousel__card:nth-child(2) { z-index: 5; transform: translate(-50%, -50%) translateX(-2.4rem) translateZ(-7rem) rotateY(-12deg); filter: brightness(0.87) blur(0.75px); }
.depth-carousel__card:nth-child(3) { z-index: 4; transform: translate(-50%, -50%) translateX(-4.8rem) translateZ(-14rem) rotateY(-12deg); filter: brightness(0.74) blur(1.5px); }
.depth-carousel__card:nth-child(4) { z-index: 3; transform: translate(-50%, -50%) translateX(-7.2rem) translateZ(-21rem) rotateY(-12deg); filter: brightness(0.61) blur(2.25px); }
.depth-carousel__card:nth-child(n + 5) { opacity: 0; pointer-events: none; }

.problem-visual .depth-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 54% 53% at 50% 50%, #000 57%, rgba(0, 0, 0, 0.94) 72%, transparent 98%);
  mask-image: radial-gradient(ellipse 54% 53% at 50% 50%, #000 57%, rgba(0, 0, 0, 0.94) 72%, transparent 98%);
  filter: drop-shadow(0 1.4rem 1.5rem rgba(31, 58, 51, 0.13));
  transition: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.depth-carousel__tint {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.depth-carousel__card.is-active {
  box-shadow: none;
}

.depth-carousel__arrow {
  appearance: none;
  position: absolute;
  top: 48%;
  z-index: 3000;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7, 88, 73, 0.2);
  border-radius: 999px;
  color: #075849;
  background: rgba(247, 250, 249, 0.78);
  box-shadow: 0 0.7rem 1.6rem rgba(31, 58, 51, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.depth-carousel__arrow i {
  font-size: 1.1rem;
}

.depth-carousel__arrow:hover {
  border-color: rgba(7, 88, 73, 0.42);
  color: #fff;
  background: #08715d;
}

.depth-carousel__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.depth-carousel__arrow:focus-visible,
.depth-carousel__dot:focus-visible {
  outline: 2px solid #08715d;
  outline-offset: 3px;
}

.depth-carousel__arrow--prev { right: 0.75rem; }
.depth-carousel__arrow--next { left: 0.75rem; }

.depth-carousel__dots {
  position: absolute;
  bottom: 0.05rem;
  left: 50%;
  z-index: 3000;
  display: flex;
  direction: rtl;
  gap: 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(242, 247, 245, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.depth-carousel__dot {
  appearance: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.depth-carousel__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(7, 88, 73, 0.28);
  transform: translate(-50%, -50%);
  transition: width 220ms ease, background 220ms ease;
}

.depth-carousel__dot:hover::before {
  background: rgba(7, 88, 73, 0.58);
}

.depth-carousel__dot.is-active::before {
  width: 1.25rem;
  background: #a8792d;
}

.depth-carousel + .problem-visual-copy {
  position: relative;
  z-index: 2;
  min-height: 5.9rem;
}

@media (max-width: 940px) {
  .depth-carousel {
    width: min(38rem, 100%);
    height: 25rem;
    min-height: 25rem;
    margin-inline: auto;
  }

  .depth-carousel__card {
    width: min(18rem, 62%);
  }
}

@media (max-width: 700px) {
  .depth-carousel {
    height: 21rem;
    min-height: 21rem;
  }

  .depth-carousel__card {
    top: 46%;
    width: min(15.5rem, 68%);
  }

  .depth-carousel__arrow { top: 46%; }
  .depth-carousel__arrow--prev { right: 0.2rem; }
  .depth-carousel__arrow--next { left: 0.2rem; }

  .depth-carousel__dots {
    bottom: -0.15rem;
    transform: translateX(-50%) scale(0.88);
  }

  .depth-carousel + .problem-visual-copy {
    min-height: 6.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-carousel__card {
    will-change: auto;
  }

  .depth-carousel__arrow,
  .depth-carousel__dot::before {
    transition: none;
  }
}

@media (forced-colors: active) {
  .depth-carousel__arrow,
  .depth-carousel__dots {
    border: 1px solid CanvasText;
  }

  .depth-carousel__dot::before {
    background: ButtonText;
  }
}
