.team-hero {
  padding: 120px 56px 60px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,184,232,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.team-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}
.team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-pale);
  border: 1px solid rgba(79,184,232,0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 20px;
}
.team-hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
}
.team-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.team-hero-title .accent { color: var(--brand); font-style: italic; }
.team-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}

.team-section {
  padding: 60px 56px 100px;
  background: var(--white);
}
.team-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.team-section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.team-section-heading .eyebrow { justify-content: center; display: inline-flex; }
.team-section-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 8px;
}
.team-section-heading p {
  font-size: 15px;
  color: var(--gray-700);
  margin-top: 14px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(46, 159, 212, 0.14), 0 2px 6px rgba(46, 159, 212, 0.08);
}
.team-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(46, 159, 212, 0.22), 0 4px 12px rgba(46, 159, 212, 0.12);
}

.team-card-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  background: var(--brand-pale);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200), 0 8px 20px rgba(10,18,32,0.08);
  position: relative;
}
.team-card-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card-initials {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.team-card-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.team-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.team-card-nmls {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.team-card-dept {
  display: inline-block;
  background: var(--brand-pale);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(46,159,212,0.45);
}

.team-card-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 6px 0 16px;
  text-align: left;
}

.team-card-contacts {
  margin: 0;
  margin-top: auto;
  padding: 14px 0 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--gray-200);
}
.team-card-contacts > li { margin: 0; }
.team-card-contact-label { display: inline; }
.team-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.team-card-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  word-break: break-word;
}
.team-card-contact:hover {
  background: var(--brand-pale);
  color: var(--brand-dark);
}
.team-card-contact .ico {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--brand);
}
.team-card-contact.apply {
  color: var(--brand-dark);
  font-weight: 700;
}
.team-card-contact.apply:hover {
  background: var(--brand);
  color: var(--white);
}
.team-card-contact.apply:hover .ico { color: var(--white); }

.team-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.team-skeleton-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  animation: team-pulse 1.6s ease-in-out infinite;
}
.team-skeleton-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--gray-200);
}
.team-skeleton-line {
  height: 12px;
  background: var(--gray-200);
  border-radius: 6px;
  margin: 8px auto;
}
.team-skeleton-line.long { width: 70%; }
.team-skeleton-line.medium { width: 45%; }
.team-skeleton-line.short { width: 28%; }

@keyframes team-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.team-empty,
.team-error {
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: 20px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
}
.team-error strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.team-error a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}
.team-error a:hover { text-decoration: underline; }
.team-error-retry {
  margin-top: 18px;
  display: inline-block;
  padding: 10px 22px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.team-error-retry:hover,
.team-error-retry:focus { background: var(--brand-dark); outline: 2px solid var(--ink); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .team-skeleton-card { animation: none; }
  .team-card { transition: none; }
  .team-card:hover { transform: none; }
}

.team-featured {
  padding: 80px 56px 40px;
  background: var(--white);
}
.team-featured-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.team-featured-heading {
  text-align: center;
  margin-bottom: 40px;
}
.team-featured-heading .eyebrow { justify-content: center; display: inline-flex; }
.team-featured-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 8px;
}
.team-featured-heading p {
  font-size: 15px;
  color: var(--gray-700);
  margin-top: 14px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.team-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .team-hero { padding: 100px 24px 48px; }
  .team-section { padding: 48px 24px 80px; }
  .team-featured { padding: 64px 24px 32px; }
}
@media (max-width: 640px) {
  .team-hero { padding: 92px 20px 40px; }
  .team-section { padding: 40px 20px 64px; }
  .team-featured { padding: 48px 20px 24px; }
  .team-grid, .team-skeleton-grid, .team-featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-card { padding: 28px 20px; }
}
