/* ============================================================
   TEAM — the people behind the power (mobile first)
   ============================================================ */
.team { background: var(--bg); scroll-margin-top: 72px; padding-block: 48px; }
.team__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.team__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.team__sub { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 470px; text-wrap: pretty; }

/* Arrows only earn their space where there's no swipe gesture to lean on. */
.team__nav { display: none; gap: 10px; flex-shrink: 0; }
.team__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.team__arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.team__arrow svg { width: 20px; height: 20px; }
.team__arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Carousel: an endless, slowly drifting strip (team.js loops it); swipeable by hand.
   No scroll-snap or smooth scroll-behavior: both would fight the per-frame drift. */
.team__carousel { position: relative; }
.team__track { list-style: none; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.team__track::-webkit-scrollbar { display: none; }
.team__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 16px; }
.team__card { position: relative; flex: 0 0 68%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #e6e8eb; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.team__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease); }
.team__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); pointer-events: none; }
@media (hover: hover) {
  .team__card:hover img { transform: scale(1.05); }
}

.team__progress { position: relative; height: 3px; margin-top: 16px; border-radius: 3px; background: #e3e4e8; overflow: hidden; }
.team__progress span { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .35s var(--ease); }
.team__count { margin-top: 8px; font-size: 12px; letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.team__count b { color: var(--ink); font-weight: 700; }

.team__foot { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dcdce2; }
.team__facts { display: flex; }
.team__facts div { flex: 1; padding: 0 12px; border-left: 1px solid #dcdce2; }
.team__facts div:first-child { padding-left: 0; border-left: 0; }
.team__facts dt { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.team__facts dd { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.team__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; transition: background .25s, gap .3s var(--ease); }
.team__cta:hover { background: #000; gap: 24px; }
.team__cta span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.25; }
.team__cta small { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #9aa3b0; }
.team__cta svg { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--accent); }
.team__cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (min-width: 640px) {
  .team { padding-block: clamp(72px, 9vw, 120px); }
  .team__head { margin-bottom: clamp(28px, 4vw, 44px); }
  .team__eyebrow { font-size: 12px; margin-bottom: 14px; }
  .team__sub { margin-top: 18px; font-size: 17px; }
  .team__nav { display: flex; }
  .team__track { gap: 14px; }
  .team__card { flex-basis: calc((100% - 28px) / 3.2); }
  .team__foot { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); }
  .team__facts div { flex: none; padding: 0 28px; }
  .team__facts dt { font-size: 30px; }
  .team__facts dd { font-size: 13px; }
  .team__cta { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .team__card { flex-basis: calc((100% - 56px) / 5); }
}
@media (prefers-reduced-motion: reduce) {
  .team__card img, .team__progress span { transition: none; }
}
