.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.team-grid groupui-card {
  border-radius: var(--groupui-sys-border-radius-m);
  box-shadow: var(--app-shadow-sm);
}
.team-grid article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.team-avatar {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--app-team-tint);
  border: 1px solid var(--groupui-sys-color-line-weak);
}
.team-member__details {
  min-width: 0;
  display: grid;
  grid-template-rows:
    minmax(
      calc(
        2 * var(--groupui-sys-font-size-800) * var(--groupui-sys-line-height-l)
      ),
      auto
    )
    auto;
  gap: 8px;
}
.team-grid a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.team-contact {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--groupui-sys-border-radius-m);
  box-shadow: var(--app-shadow-md);
  background: linear-gradient(
    135deg,
    var(--app-team-tint),
    var(--groupui-sys-color-background-base) 65%
  );
}
.team-contact__content {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-right: 260px;
}
.team-contact__eyebrow {
  font-size: 12px;
  color: var(--groupui-sys-color-text-weak);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-contact__content groupui-text {
  color: var(--groupui-sys-color-text-weak);
  max-width: 640px;
}
.team-contact__art {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 200px;
  height: 190px;
  transform: translateY(-50%);
  pointer-events: none;
}
.team-contact__bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 80px;
  border: 2px solid var(--app-team-accent);
  border-radius: 24px 24px 24px 6px;
  background: var(--groupui-sys-color-background-base);
  color: var(--app-team-accent);
  box-shadow: var(--app-shadow-sm);
}
.team-contact__bubble--question {
  top: 0;
  left: 0;
  font-size: 40px;
  font-weight: 700;
  transform: rotate(-8deg);
}
.team-contact__bubble--reply {
  top: 68px;
  right: 0;
  gap: 10px;
  transform: rotate(6deg);
  background: var(--app-team-tint);
}
.team-contact__bubble--reply i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app-team-accent);
  animation: team-reply-in 700ms ease-out both;
}
.team-contact__bubble--reply i:nth-child(2) {
  animation-delay: 150ms;
}
.team-contact__bubble--reply i:nth-child(3) {
  animation-delay: 300ms;
}
.team-contact__caption {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 12px;
  color: var(--groupui-sys-color-text-weak);
}

@keyframes team-reply-in {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .team-contact__content {
    padding-right: 0;
  }
  .team-contact__art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-contact__bubble--reply i {
    animation: none;
  }
}
