/* ══════════════════════════════════════════════════
   TEAM / DEV PAGE
   Layered on top of home.css — reuses its tokens,
   masthead, footer, menu island and info FAB.
══════════════════════════════════════════════════ */

.team-page{
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 1.75rem 5rem;
}

.team-page .kicker{
  position: relative;
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:700;
  font-size: 0.95rem;
  color: var(--purple-deep);
  margin-bottom: 0.9rem;
}

.team-page h1{
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.team-page .lede{
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════
   TEAM GRID
   Cards sit in a tight grid on an ink backdrop, so the
   3px gaps read as the borders between them — same
   chunky-grid language as the homepage panels.
══════════════════════════════════════════════════ */
.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}

.dev-card{
  background: var(--paper);
  padding: 1.75rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition:
    background 220ms ease,
    transform 420ms var(--ease-island);
  will-change: transform;
}

.dev-card:hover{
  background: var(--paper-2);
  transform: translateY(-4px);
}
.dev-card:active{
  transform: translateY(-1px) scale(0.99);
  transition-duration: 240ms;
}

.dev-avatar-wrap{
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.dev-avatar{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  display: block;
}
.dev-status{
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--paper);
  transition: background 220ms ease, border-color 220ms ease;
}
.dev-card:hover .dev-status{
  background: var(--purple-deep);
  border-color: var(--paper-2);
}

.dev-info{ min-width: 0; }
.dev-info h3{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.15rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dev-tag{
  font-family:'Shippori Mincho', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.role-chip{
  display: inline-block;
  font-family:'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--purple-deep);
  background: var(--paper-2);
  border: 1px solid rgba(34,17,43,0.2);
  border-radius: 10px 10px 10px 3px;
  padding: 0.2rem 0.6rem;
}
.dev-card:hover .role-chip{
  background: var(--paper);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 640px){
  .team-page{ padding: 3rem 1.35rem 4rem; }
  .team-grid{
    border-radius: 14px 14px 14px 3px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .dev-card{
    padding: 1.5rem 1.35rem;
  }
}

@media (max-width: 480px){
  .dev-avatar-wrap{ width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce){
  .dev-card,
  .dev-status{
    transition:none !important;
    animation:none !important;
  }
  .dev-card:hover,
  .dev-card:active{
    transform: none !important;
  }
}