.team-section {
  position: relative;
  background: #fff;
  padding: 90px 24px;
}

.team-inner {
  max-width: 69%;
  margin: 0 auto;
  text-align: center;
}

.team-kicker {
  letter-spacing: 2px;
  font-size: 12px;
  text-transform: uppercase;
  color: #222;
  opacity: 0.7;
}

.team-title {
  margin: 10px 0 50px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  position: relative;
  background: #fff;
  padding: 44px 28px 36px;
  min-height: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* subtle layout lines like the reference */
  border-left: 1px solid rgba(0, 0, 0, 0.04);
}

/* dashed frame that animates in */
.team-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* optional: make the frame striped like your brand borders */
.team-card::before {
  border: 6px solid rgba(209, 255, 69, 0.35);
  border-image-source: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(209, 255, 69, 0.6) 2px,
    rgba(0, 0, 0, 0.12) 6px
  );
  border-image-slice: 6;
  border-image-width: 1;
}

.team-avatar {
  width: 100%;

  border-radius: 2%;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 18px;
  transform: translateZ(0); /* smooth scaling */
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* 👈 moves the visible area DOWN */
  /* 👇 this is the actual zoom */
  /*transform: scale(1.3);*/

  transition: transform 0.6s ease;
}

.team-name {
  margin: 8px 0 6px;
  font-size: 14px;
  letter-spacing: 1px;
}

.team-role {
  margin: 0;
  font-size: 14px;
  opacity: 0.6;
}

/* + button hidden, slides in on hover */
.team-plus {
  position: absolute;
  right: 26px;
  bottom: 26px;

  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;

  background: #c1d83c;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  display: grid;
  place-items: center;

  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Hover state */
.team-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.team-card:hover .team-plus {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover .team-avatar img {
  transform: scale(1.08);
}

/* Accessibility: keyboard focus */
.team-card:focus-within::before {
  opacity: 1;
  transform: scale(1);
}

.team-plus:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    border-left: none;
  }
}
