/* Team page: builds on /styles.css (nav, hero, buttons, tooltip, easter egg). */

.team-hero {
  min-height: 100svh;
}

/* Sits in the hero's flow (pushed to the bottom) so it never covers the buttons. */
.drag-hint {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 32px 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

/* Speech bubbles that pop up over the avatars when they're dragged. */
.bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.8);
  transition: opacity 0.18s ease;
}
.bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.bubble.on {
  opacity: 1;
}

/* ---------- team section ---------- */
.team {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 16px 24px;
}

.eyebrow {
  margin-bottom: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.person {
  display: flex;
  gap: 22px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  scroll-margin-top: 96px;
}
.person:hover,
.person:target {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.avatar {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.person-body {
  min-width: 0;
}
.person h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.studies {
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--ink-3);
}
.person p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #2a2a2a;
}
.person p + p {
  margin-top: 10px;
}
.person p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.chips li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.06);
  font-size: 13px;
}

.person .links-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.person .links-row a {
  text-decoration: none;
}
.person .links-row a:hover {
  opacity: 0.6;
}

.why {
  margin-top: 64px;
  text-align: center;
}
.why-lead {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}
.why-grid > div {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.why-grid h3 {
  font-size: 17px;
  font-weight: 600;
}
.why-grid p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.team .foot {
  margin-top: 48px;
}
.team .foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  /* Clear the corner badge on phones. */
  .drag-hint {
    padding-bottom: 68px;
  }
}

@media (max-width: 860px) {
  .people,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .person {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }
  .avatar {
    width: 88px;
    height: 88px;
  }
}
