/* ═══════════════════════════════════════════
   team-scroll.css — Horizontal team scroll section
═══════════════════════════════════════════ */

/* ── Outer section — height set by GSAP pin spacer ── */
#team-scroll {
  background: var(--navy-dark);
}

/* ── Sticky container ── */
.team-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy-dark);
}

/* ── Header ── */
.team-scroll-header {
  padding: calc(var(--nav-h) + 8px) max(32px, calc((100vw - 1160px) / 2)) 24px;
  flex-shrink: 0;
}

.team-scroll-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.team-scroll-hint {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ── Horizontal track ── */
.team-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  will-change: transform;
}

/* ── Individual card ── */
.team-hcard {
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(48px, calc((100vw - 1100px) / 2));
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.05);
}

/* Big decorative number */
.team-hcard-num {
  position: absolute;
  top: 50%;
  right: max(48px, calc((100vw - 1100px) / 2));
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 16rem);
  color: rgba(110, 141, 164, 0.08);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Card body: avatar left + info right */
.team-hcard-body {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Avatar */
.team-hcard-avatar {
  flex-shrink: 0;
  width: 220px;
  height: 290px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--sand);
  letter-spacing: 0.05em;
}

.team-hcard-avatar img {
  width: 220px;
  height: 290px;
  object-fit: cover;
  object-position: center top;
}

/* Info */
.team-hcard-info {
  flex: 1;
}

.team-hcard-role {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 12px;
}

.team-hcard-name {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.team-hcard-bio {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 28px;
}

/* Expertise tags */
.team-hcard-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-hcard-tags li {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(110,141,164,0.35);
  padding: 5px 14px;
}

/* ── Progress bar ── */
.team-progress-wrap {
  padding: 20px max(32px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.team-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  max-width: 240px;
}

.team-progress-fill {
  height: 100%;
  background: var(--sand);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

.team-progress-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
}

/* ── Mobile: sticky card stack ── */
@media (max-width: 768px) {
  #team-scroll { height: 400vh; }

  .team-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  /* Track becomes a relative container — cards stack inside */
  .team-track {
    flex-direction: row;
    position: relative;
    padding: 0;
  }

  /* Each card fills the track area absolutely */
  .team-hcard {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    height: 100%;
    border-left: none;
    border-top: none;
    padding: 24px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .team-hcard-num {
    position: static;
    transform: none;
    font-size: 3rem;
    color: rgba(110,141,164,0.15);
    margin-bottom: 12px;
    display: block;
  }

  .team-hcard-body {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .team-hcard-avatar { width: 140px; height: 185px; font-size: 1.4rem; }
  .team-hcard-avatar img { width: 140px; height: 185px; }
  .team-hcard-name  { font-size: 1.6rem; margin-bottom: 12px; }
  .team-hcard-bio   { font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }

  .team-progress-wrap { display: none; }
  .team-scroll-hint   { display: none; }
}

@media (max-width: 480px) {
  .team-hcard { padding: 20px 16px 36px; }
  .team-hcard-num { font-size: 2.4rem; }
  .team-hcard-avatar { width: 110px; height: 145px; }
  .team-hcard-avatar img { width: 110px; height: 145px; }
  .team-hcard-name  { font-size: 1.4rem; }
  .team-hcard-bio   { font-size: 0.84rem; }
  .team-hcard-body  { gap: 16px; }
  .team-hcard-tags li { font-size: 9px; padding: 4px 10px; }

  .team-scroll-header { padding-left: 16px; padding-right: 16px; }
  .team-scroll-header h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}
