/* ---------- Roster ---------- */

.staff-section {
  position: relative;
  z-index: 1;
  margin-top: -88px;
  padding-top: 0;
}
/* the roster waits a moment for the team saved in the staff panel; after 2.5s it shows anyway */
.js .staff-roster:not(.is-ready) {
  visibility: hidden;
  animation: roster-late 0s 2.5s forwards;
}
@keyframes roster-late {
  to { visibility: visible; }
}
/* small ranks share a row, a big one takes its own */
.staff-roster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(44px, 5vw, 64px) clamp(40px, 6vw, 96px);
}
.staff-group { flex: 0 1 auto; }

.staff-group-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2vw, 24px);
}
.staff-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--font-display);
  color: var(--navy);
}
.staff-cloud {
  flex: none;
  width: 1.15em;
  height: 0.82em;
}
.staff-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  background: var(--cloud);
  border: 2px solid var(--navy);
  border-radius: 9px;
  font: 700 13px/1 var(--font-display);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 20px);
}
.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 208px;
  padding: 12px 12px 20px;
  text-align: center;
  background: var(--cloud);
  border: 2px solid var(--navy);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--navy);
}
/* the whole skin, standing on a soft patch of shade */
.staff-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 236px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  background: var(--aqua-soft);
  border-radius: 14px;
  overflow: hidden;
}
.staff-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 96px;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}
.staff-skin {
  position: relative;
  z-index: 1;
  width: auto;
  height: 196px;
}
.staff-name {
  max-width: 100%;
  font: 700 17px/1.25 var(--font-display);
  color: var(--navy);
  overflow-wrap: anywhere;
}
.staff-rank {
  font: 700 11.5px/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  overflow-wrap: anywhere;
}

/* ---------- Join ---------- */

.staff-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  max-width: 900px;
  margin: clamp(56px, 6vw, 80px) auto 0;
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 3vw, 38px);
  background: var(--aqua-soft);
  border: 2px solid var(--navy);
  border-radius: 24px;
}
.staff-cta h3 {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-size: clamp(25px, 2.4vw, 31px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.staff-cta p {
  max-width: 36em;
  margin-top: 8px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 759px) {
  .staff-section { margin-top: -44px; }
  .staff-group { flex-basis: 100%; }
  .staff-grid { gap: 12px; }
  .staff-card {
    width: calc(50% - 6px);
    padding: 10px 10px 16px;
    border-radius: 18px;
  }
  .staff-stage { height: 196px; }
  .staff-skin { height: 160px; }
  .staff-name { font-size: 15.5px; }
  .staff-cta { grid-template-columns: minmax(0, 1fr); }
  .staff-cta .btn { width: 100%; }
}
