:root {
  --sky-blue: #2cb5df;
  --sky-yellow: #e8eb3f;
  --surface: #141414;
  /* align with dark site bg */
  --panel: rgba(255, 255, 255, 0.03);
  --panel-b: rgba(255, 255, 255, 0.08);
  --ring: rgba(44, 181, 223, 0.25);
  --muted: #b9c0c7;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
}

main#page-content {
  min-height: 0;
}

/* important for grids */
.site-footer {
  margin-top: 0 !important;
}

/* Remove this on staff page */
#page-content {
  flex: 1 0 auto;
}

/* not needed on grid */

/* Section header (mirrors hero typography scale / weight) */
.staff-hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 16px 24px;
  overflow: hidden;
  text-align: center;
}

.staff-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 0 0 10px;
}

.staff-hero .accent {
  color: var(--sky-blue);
}

.staff-hero .accent2 {
  color: var(--sky-yellow);
}

.staff-hero .sub {
  color: var(--muted);
  font-weight: 600;
  opacity: 0.9;
}

/* Soft radial lights like homepage */
.staff-hero::before,
.staff-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 44vw;
  height: 44vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
}

.staff-hero::before {
  background: var(--sky-blue);
  left: -12vw;
  top: -10vw;
}

.staff-hero::after {
  background: var(--sky-yellow);
  right: -12vw;
  top: -8vw;
}

/* Container matches your site max width */
.staff-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

/* Tabs row (styled like rounded pills with blue focus ring) */
.staff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px auto 24px;
}

.tab-btn {
  appearance: none;
  border: 1px solid rgba(var(--neon-rgb, 44, 181, 223), 0.35);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  color: #eef5f8;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
  backdrop-filter: blur(6px);
}

.tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb, 44, 181, 223), 0.18), var(--shadow);
}

.tab-btn.active {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(var(--neon-rgb, 44, 181, 223), 0.28), var(--shadow);
  background: linear-gradient(
    180deg,
    rgba(var(--neon-rgb, 44, 181, 223), 0.18),
    rgba(var(--neon-rgb, 44, 181, 223), 0.08)
  );
}

/* Sections */
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* Grid tweaks for a bit wider card */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* Card container */
.staff-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--panel-b);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: var(--shadow);
  isolation: isolate;
  /* keep overlay effects contained */
  transform: translateZ(0);
  /* enable GPU for smoother hover */
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, background 0.18s ease;
}

/* Subtle lift + border glow on hover */
.staff-card:hover {
  border-color: rgba(var(--neon-rgb, 44, 181, 223), 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(var(--neon-rgb, 44, 181, 223), 0.35);
}

/* Skin area (we use aspect-ratio so all cards line up) */
.staff-card .skin {
  aspect-ratio: 3 / 4;
  /* tall portrait */
  background: #0d0f10 center bottom / contain no-repeat var(--skin);
  /* Add a faint inner gradient to help contrast on light skins */
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.35);
}

/* Bottom gradient overlay + text container */
.staff-card .skin-overlay {
  position: absolute;
  inset: auto 0 0 0;
  /* bottom overlay */
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.45) 30%,
    rgba(0, 0, 0, 0.65)
  );
  z-index: 2;
}

/* Role pill */
.staff-role {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #e7f9ff;
  border: 1px solid rgba(var(--neon-rgb, 44, 181, 223), 0.55);
  background: rgba(var(--neon-rgb, 44, 181, 223), 0.16);
  text-transform: uppercase;
}

/* Name */
.staff-name {
  font-size: 18px;
  font-weight: 900;
}

/* Fancy “shine” sweep on hover */
.staff-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 60%
  );
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  z-index: 3;
  transition: transform 0.6s ease;
}

.staff-card:hover::after {
  transform: translateX(120%) skewX(-12deg);
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .staff-card,
  .staff-card::after {
    transition: none !important;
  }
}

/* Empty state */
.empty {
  text-align: center;
  opacity: 0.8;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--panel-b);
  background: rgba(255, 255, 255, 0.02);
}

/* Simple entrance animation synced with homepage flag */
.will-animate .staff-hero,
.will-animate .staff-tabs,
.will-animate .tab-section.active {
  opacity: 0;
  transform: translateY(8px);
}

.page-loaded .staff-hero,
.page-loaded .staff-tabs,
.page-loaded .tab-section.active {
  opacity: 1;
  transform: translateY(0);
  transition: 0.45s ease;
}
