.team3d-section {
  overflow: hidden;
}

.team3d-shell {
  position: relative;
  padding-block: clamp(1rem, 2vw, 1.55rem);
}

.team3d-head {
  max-width: 720px;
  margin: 0 auto 0.65rem;
  text-align: center;
}

.team3d-head .home-lead {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.team3d-carousel {
  --team3d-blue: var(--ra-brand-primary, #0d47a1);
  --team3d-text: var(--ra-body-text, #10223f);
  --team3d-muted: #798596;
  --team3d-stage-height: clamp(280px, 37vw, 430px);
  position: relative;
  width: min(1120px, 100%);
  margin: 0.2rem auto 0;
  padding: 0 3rem 0.9rem;
  text-align: center;
}

.team3d-stage {
  position: relative;
  height: var(--team3d-stage-height);
  perspective: 1000px;
  transform-style: preserve-3d;
}

.team3d-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 23vw, 280px);
  height: clamp(250px, 31vw, 380px);
  margin: 0;
  border: 1px solid rgba(17, 47, 88, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(9, 24, 45, 0.15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72) translateZ(-320px);
  transition:
    transform 0.78s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.78s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.78s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.78s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team3d-card img,
.team3d-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.78s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team3d-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--ra-brand-primary, #1f5ca8), var(--ra-brand-secondary, #27afc9));
  color: #ffffff;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 800;
}

.team3d-card.is-center {
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1.08) translateZ(0);
  box-shadow: 0 24px 48px rgba(9, 24, 45, 0.2);
}

.team3d-card.is-left-1 {
  z-index: 5;
  opacity: 0.9;
  pointer-events: auto;
  transform: translate(calc(-50% - clamp(120px, 17vw, 205px)), -50%) scale(0.9) translateZ(-100px);
}

.team3d-card.is-right-1 {
  z-index: 5;
  opacity: 0.9;
  pointer-events: auto;
  transform: translate(calc(-50% + clamp(120px, 17vw, 205px)), -50%) scale(0.9) translateZ(-100px);
}

.team3d-card.is-left-2 {
  z-index: 1;
  opacity: 0.66;
  pointer-events: auto;
  transform: translate(calc(-50% - clamp(220px, 32vw, 410px)), -50%) scale(0.78) translateZ(-300px);
}

.team3d-card.is-right-2 {
  z-index: 1;
  opacity: 0.66;
  pointer-events: auto;
  transform: translate(calc(-50% + clamp(220px, 32vw, 410px)), -50%) scale(0.78) translateZ(-300px);
}

.team3d-card.is-left-1 img,
.team3d-card.is-left-2 img,
.team3d-card.is-right-1 img,
.team3d-card.is-right-2 img {
  filter: grayscale(100%) saturate(0.9);
}

.team3d-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.team3d-info {
  min-height: 5.2rem;
  margin-top: clamp(0.4rem, 1.4vw, 0.9rem);
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.team3d-info.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.team3d-name {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--team3d-blue);
  font-family: var(--ra-body-font, "Manrope"), "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.team3d-name::before,
.team3d-name::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(42px, 8vw, 92px);
  height: 2px;
  background: color-mix(in srgb, var(--team3d-blue) 72%, transparent);
}

.team3d-name::before {
  right: calc(100% + 1rem);
}

.team3d-name::after {
  left: calc(100% + 1rem);
}

.team3d-role {
  margin: 0.28rem 0 0;
  color: var(--team3d-muted);
  font-size: clamp(0.9rem, 1.7vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team3d-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.team3d-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team3d-blue) 22%, transparent);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.team3d-dot.is-active {
  transform: scale(1.25);
  background: var(--team3d-blue);
}

.team3d-nav {
  position: absolute;
  top: clamp(140px, 18.5vw, 215px);
  z-index: 40;
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team3d-blue) 76%, transparent);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.team3d-nav {
  font-size: 0;
}

.team3d-nav::before {
  display: block;
  width: 100%;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(-0.04em);
}

.team3d-nav--prev::before {
  content: "‹";
}

.team3d-nav--next::before {
  content: "›";
}

.team3d-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: var(--team3d-blue);
  box-shadow: 0 12px 24px rgba(9, 24, 45, 0.18);
}

.team3d-nav:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--team3d-blue) 35%, #ffffff);
  outline-offset: 3px;
}

.team3d-nav--prev {
  left: 0.2rem;
}

.team3d-nav--next {
  right: 0.2rem;
}

@media (max-width: 760px) {
  .team3d-carousel {
    --team3d-stage-height: 320px;
    padding-inline: 0.2rem;
  }

  .team3d-stage {
    height: var(--team3d-stage-height);
  }

  .team3d-card {
    width: 190px;
    height: 270px;
  }

  .team3d-card.is-left-1 {
    transform: translate(calc(-50% - 116px), -50%) scale(0.88) translateZ(-100px);
  }

  .team3d-card.is-right-1 {
    transform: translate(calc(-50% + 116px), -50%) scale(0.88) translateZ(-100px);
  }

  .team3d-card.is-left-2 {
    transform: translate(calc(-50% - 230px), -50%) scale(0.76) translateZ(-300px);
  }

  .team3d-card.is-right-2 {
    transform: translate(calc(-50% + 230px), -50%) scale(0.76) translateZ(-300px);
  }

  .team3d-nav {
    top: 160px;
    width: 2.15rem;
    height: 2.15rem;
  }

  .team3d-name::before,
  .team3d-name::after {
    display: none;
  }
}
