.z5tdt {
  --z5tdt-x-multiplier: 0.72;
  --z5tdt-back-scale: 0.58;
  --z5tdt-back-opacity: 0.62;
  --z5tdt-back-darkness: 0.62;
  --z5tdt-side-rotate: 7;
  --z5tdt-perspective: 75;
  --z5tdt-hover-scale: 0.97;
  width: 100%;
  position: relative;
  overflow: clip;
  background: #f6f6f4;
  color: #111;
  isolation: isolate;
}

.z5tdt__inner {
  width: 100%;
  margin-inline: auto;
}

.z5tdt__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.z5tdt__label,
.z5tdt__heading,
.z5tdt__intro,
.z5tdt__member-name,
.z5tdt__member-role {
  margin: 0;
}

.z5tdt__label {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.z5tdt__heading {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.z5tdt__intro {
  max-width: 46rem;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
}

.z5tdt__stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: clip;
  touch-action: pan-y;
}

.z5tdt__collection,
.depth-tiles__collection {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.z5tdt__list,
.depth-tiles__list {
  display: grid;
  place-items: center;
  position: relative;
}

.z5tdt__item,
.depth-tiles__item {
  grid-area: 1 / 1;
  width: max-content;
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
}

.z5tdt__item[data-depth-tiles-item-status="not-active"] {
  cursor: pointer;
}

.z5tdt__card {
  display: block;
  position: relative;
  width: clamp(17rem, 28vw, 27rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.75rem;
  color: #fff;
  text-decoration: none;
  background: #171717;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.35, 1.5, 0.6, 1), box-shadow 0.45s ease;
  transform: scale(1) rotate(0.001deg);
}

.z5tdt__item[data-depth-tiles-item-status="active"] .z5tdt__card:hover,
.z5tdt__item[data-depth-tiles-item-status="active"] .z5tdt__card:focus-visible {
  transform: scale(var(--z5tdt-hover-scale)) rotate(0.001deg);
}

.z5tdt__picture,
.z5tdt__image {
  display: block;
  width: 100%;
  height: 100%;
}

.z5tdt__image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.002);
}

.z5tdt__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.z5tdt__member-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.625, 0.05, 0, 1);
  pointer-events: none;
}

.z5tdt__item[data-depth-tiles-item-status="active"] .z5tdt__card-overlay,
.z5tdt__item[data-depth-tiles-item-status="active"] .z5tdt__member-info {
  opacity: 1;
}

.z5tdt__item[data-depth-tiles-item-status="active"] .z5tdt__member-info {
  transform: translateY(0);
}

/* Twee teamleden vormen op desktop één rustige compositie. Op mobiel blijven
   dezelfde twee items onderdeel van de oneindige depth/swipe-loop. */
@media (min-width: 768px) {
  .z5tdt[data-z5tdt-count="2"] .z5tdt__list {
    width: min(100%, 58rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    place-items: stretch;
    margin-inline: auto;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__item {
    grid-area: auto;
    width: 100%;
    height: 100%;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    z-index: auto !important;
    cursor: default;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__card {
    width: 100%;
    height: 100%;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__card-overlay,
  .z5tdt[data-z5tdt-count="2"] .z5tdt__member-info {
    opacity: 1;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__member-info {
    transform: translateY(0);
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__navigation {
    display: none;
  }
}

.z5tdt__member-role {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.z5tdt__member-name {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.z5tdt__navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.z5tdt__nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.z5tdt__nav-button:hover,
.z5tdt__nav-button:focus-visible {
  transform: translateY(-2px);
}

.z5tdt__nav-button:focus-visible,
.z5tdt__cta:focus-visible,
.z5tdt__card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.z5tdt__counter {
  min-width: 4.5rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.z5tdt__counter-divider {
  opacity: 0.35;
}

.z5tdt__cta-wrap {
  display: flex;
  justify-content: center;
}

.z5tdt__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.625, 0.05, 0, 1), box-shadow 0.3s ease;
}

.z5tdt__cta:hover,
.z5tdt__cta:focus-visible {
  transform: translateY(-3px);
}

.z5tdt__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.625, 0.05, 0, 1);
}

.z5tdt__cta:hover .z5tdt__cta-icon,
.z5tdt__cta:focus-visible .z5tdt__cta-icon {
  transform: translateX(4px);
}

.z5tdt__cta-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.z5tdt.is-initializing .z5tdt__list,
.z5tdt.is-initializing .z5tdt__navigation {
  visibility: hidden;
}

.z5tdt.is-ready .z5tdt__list,
.z5tdt.is-ready .z5tdt__navigation,
.elementor-editor-active .z5tdt__list,
.elementor-editor-active .z5tdt__navigation {
  visibility: visible;
}

@keyframes z5tdt-failsafe {
  to { visibility: visible; }
}

.z5tdt.is-initializing .z5tdt__list,
.z5tdt.is-initializing .z5tdt__navigation {
  animation: z5tdt-failsafe 0s 2.5s forwards;
}

@media (max-width: 767px) {
  .z5tdt[data-z5tdt-count="2"] .z5tdt__list {
    width: 100%;
    grid-template-columns: none;
    place-items: center;
    margin-inline: 0;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__item {
    grid-area: 1 / 1;
    width: max-content;
    height: max-content;
    cursor: pointer;
  }

  .z5tdt[data-z5tdt-count="2"] .z5tdt__card {
    max-width: calc(100vw - 36px);
    height: auto;
  }

  .z5tdt__member-info {
    gap: 0.25rem;
  }

  .z5tdt__navigation {
    gap: 0.75rem;
  }

  .z5tdt__counter {
    min-width: 3.8rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .z5tdt *,
  .z5tdt *::before,
  .z5tdt *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
