/* Staff biographies use the shared photo hero and continuous red backdrop. */
.staff-page .site-nav { --color-primary-light: var(--color-copy-light); }
.staff-page { --staff-stage: #0b0504; }

/* Team photo and roster panel, overlapping the hero foot like the homepage class panel. */
.staff-intro {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding: clamp(16px,2vw,24px);
  border-radius: clamp(24px,3vw,40px);
  background: var(--color-surface-light);
  box-shadow: var(--shadow-lg);
}
.staff-team-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(16px,2vw,24px);
}

/* The roster follows the staff groups; groups sit side by side and wrap as space allows. */
.staff-roster {
  --tile: clamp(112px,10vw,148px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px,3vw,40px) clamp(28px,3.4vw,48px);
  padding: clamp(28px,3vw,44px) clamp(8px,2vw,24px) clamp(8px,1.5vw,16px);
}
.staff-roster-group { display: grid; align-content: start; gap: 16px; }
.staff-roster-label {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-primary-dark);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.staff-roster ul { display: flex; justify-content: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.staff-roster li { width: var(--tile); }
.staff-roster a { display: grid; gap: 12px; color: var(--color-text-dark); text-decoration: none; }
.staff-roster a > img, .staff-roster .staff-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 16px;
  background: var(--staff-stage);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.staff-roster .staff-placeholder { display: grid; }
.staff-roster a > span:not(.staff-placeholder) {
  font-family: var(--interior-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}
.staff-roster a:hover > img, .staff-roster a:focus-visible > img,
.staff-roster a:hover .staff-placeholder, .staff-roster a:focus-visible .staff-placeholder { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(42,21,18,.28); }
.staff-roster a:hover > span:last-child, .staff-roster a:focus-visible > span:last-child { color: var(--color-primary); }

/* Until a portrait arrives: the white logo on the headshots' black studio backdrop. */
.staff-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 640 / 973;
  background: radial-gradient(circle at 50% 40%,#3a0a06 0%,var(--staff-stage) 70%);
}
.staff-page .staff-placeholder img { position: static; display: block; width: 62%; height: auto; -webkit-mask-image: none; mask-image: none; opacity: .92; }

.staff-profiles {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

/* Each staff group opens with a centered title on the red backdrop. */
.staff-group { display: grid; gap: 32px; }
.staff-group-title {
  margin: clamp(48px,6vw,88px) 0 8px;
  color: #fff;
  font-size: clamp(3rem,5.5vw,5.4rem);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
}
.staff-group:first-child .staff-group-title { margin-top: clamp(32px,4vw,56px); }
.staff-group-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg,#ffd18d,var(--color-action-warm));
}

/* Full-width studio photos within and between the groups. */
.staff-photo-band { margin: 0; }
.staff-photo-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: clamp(24px,3vw,40px);
  box-shadow: var(--shadow-md);
}
.staff-photo-band--founders img { aspect-ratio: 21 / 9; object-position: 50% 22%; background: var(--staff-stage); }

/* Each profile pairs a dark portrait rail (the headshots share a black studio backdrop) with the bio. */
.staff-profile {
  display: grid;
  grid-template-columns: minmax(0,340px) minmax(0,1fr);
  align-items: stretch;
  overflow: clip;
  border-radius: clamp(24px,3vw,40px);
  background: var(--color-surface-light);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
}
.staff-profile:nth-of-type(even) { grid-template-columns: minmax(0,1fr) minmax(0,340px); }
.staff-profile:nth-of-type(even) .staff-portrait { order: 2; }

.staff-portrait { min-width: 0; background: var(--staff-stage); }
.staff-portrait img {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg,#000 78%,transparent 100%);
  mask-image: linear-gradient(180deg,#000 78%,transparent 100%);
}

.staff-profile-copy { min-width: 0; padding: clamp(36px,4.5vw,64px); }
.staff-profile h3 {
  margin-bottom: 28px;
  font-family: var(--interior-display);
  font-size: clamp(2.8rem,4.2vw,4.2rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.staff-profile h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--color-primary),var(--color-action-warm));
}
.staff-profile p {
  color: var(--interior-muted);
  font-size: var(--font-size-body);
  line-height: 1.75;
  margin: 0;
}
.staff-profile p + p { margin-top: 20px; }
.staff-nowrap { white-space: nowrap; }
.staff-roles { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 28px; padding: 0; list-style: none; }
.staff-roles li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-surface-tint);
  color: var(--color-primary-dark);
  font-size: var(--font-size-small);
  font-weight: 700;
  line-height: 1.3;
}
.staff-profile .staff-tagline { margin-bottom: 28px; color: var(--color-primary-dark); font-size: var(--font-size-question); font-weight: 700; line-height: 1.45; }
.staff-page .interior-cta h2 { max-width: 20ch; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .staff-roster a > img, .staff-roster .staff-placeholder { transition: none; }
  .staff-roster a:hover > img, .staff-roster a:focus-visible > img,
  .staff-roster a:hover .staff-placeholder, .staff-roster a:focus-visible .staff-placeholder { transform: none; }
}

@media (max-width: 1100px) {
  .staff-profile, .staff-profile:nth-of-type(even) { grid-template-columns: minmax(0,260px) minmax(0,1fr); }
  .staff-profile:nth-of-type(even) .staff-portrait { order: 0; }
  .staff-profile-copy { padding: 40px 36px; }
}

@media (max-width: 760px) {
  .staff-intro { margin-top: -24px; padding: 12px; border-radius: 24px; }
  .staff-team-photo { border-radius: 16px; }
  .staff-roster { gap: 32px; padding: 28px 4px 8px; }
  .staff-roster-group { width: 100%; }
  .staff-roster ul { flex-wrap: wrap; gap: 20px 12px; }
  .staff-roster li { width: calc((100% - 24px) / 3); }
  .staff-roster a > span:not(.staff-placeholder) { font-size: 1.125rem; }
  .staff-profiles, .staff-group { gap: 24px; }
  .staff-profiles { margin-top: 24px; }
  .staff-group-title { margin-top: 48px; font-size: clamp(2.6rem,11vw,3.4rem); }
  .staff-group:first-child .staff-group-title { margin-top: 32px; }
  .staff-photo-band img, .staff-photo-band--founders img { aspect-ratio: 4 / 3; border-radius: 24px; }
  .staff-profile, .staff-profile:nth-of-type(even) { grid-template-columns: minmax(0,1fr); border-radius: 24px; }
  .staff-portrait img {
    position: static;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 14%;
  }
  .staff-portrait .staff-placeholder { aspect-ratio: 1 / 1; }
  .staff-page .staff-placeholder img { aspect-ratio: auto; }
  .staff-profile-copy { padding: 28px 24px 36px; }
  .staff-profile h3 { margin-bottom: 24px; font-size: clamp(2.6rem,10vw,3.2rem); }
}
