/* Homepage "Our people": spotlight quote card + two drifting rows of faces (generated by tools/team.mjs). */
.acs-team {
  --navy: #071a36;
  --blue: #1f8fd6;
  --green: #8dc63f;
  --muted: #5d6b82;
  --line: #e4ebf4;
  --interval: 7000ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(800px 320px at 12% 8%, rgba(31, 143, 214, .08), transparent 70%),
    radial-gradient(700px 300px at 92% 70%, rgba(141, 198, 63, .10), transparent 70%),
    #f8fbfe;
}
.acs-team *, .acs-team *::before, .acs-team *::after { box-sizing: border-box; }
.acs-team .acs-team__inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- heading ---------- */
.acs-team .acs-team__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.acs-team .acs-team__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue); }
.acs-team .acs-team__h { margin: 0; font-family: inherit; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--navy); text-transform: none; }
.acs-team .acs-team__lead { margin: 14px auto 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- spotlight card ---------- */
.acs-team .acs-team__spot {
  position: relative;
  max-width: 980px; margin: 0 auto;
  padding: 34px 40px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0a2448, var(--navy) 55%);
  color: #fff;
  box-shadow: 0 34px 60px -34px rgba(7, 26, 54, .65);
  isolation: isolate;
}
.acs-team .acs-team__spot::before { /* soft brand glow */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 220px at 88% 0%, rgba(141, 198, 63, .22), transparent 70%), radial-gradient(380px 260px at 0% 100%, rgba(31, 143, 214, .28), transparent 70%);
}
.acs-team .acs-team__slides { display: grid; }
.acs-team .acs-team__slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: center;
  margin: 0;
  visibility: hidden;
}
.acs-team .acs-team__slide.is-on { visibility: visible; }

.acs-team .acs-team__photo { position: relative; width: 220px; aspect-ratio: 1; }
.acs-team .acs-team__photo::before { /* gradient ring */
  content: ""; position: absolute; inset: -6px; border-radius: 34px;
  background: conic-gradient(from 210deg, var(--green), var(--blue), #3cc2ff, var(--green));
  opacity: .9;
}
.acs-team .acs-team__photo img {
  position: relative; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; border-radius: 28px; border: 4px solid var(--navy);
  background: #e8eef6;
}
.acs-team .acs-team__quote {
  margin: 0; padding: 0; border: 0;
  font-family: inherit; font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.42; letter-spacing: -.01em;
  color: #fff; font-style: normal; quotes: none;
}
.acs-team .acs-team__quote::before { content: "\201C"; display: block; margin-bottom: 10px; font-size: 64px; line-height: .55; color: var(--green); font-weight: 800; }
.acs-team .acs-team__quote--role { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.acs-team .acs-team__quote--role::before { content: ""; width: 44px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--blue)); line-height: 0; }
.acs-team .acs-team__who { display: block; margin-top: 18px; font-style: normal; }
.acs-team .acs-team__who b { display: block; font-size: 17px; font-weight: 800; color: #fff; }
.acs-team .acs-team__who span { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; color: #9fd0f5; }

/* enter / leave choreography */
.acs-team .acs-team__photo, .acs-team .acs-team__quote, .acs-team .acs-team__who { opacity: 0; }
.acs-team .is-on .acs-team__photo { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.acs-team .is-on .acs-team__quote { opacity: 1; transform: none; transition: opacity .7s var(--ease) .15s, transform .8s var(--ease) .15s; }
.acs-team .is-on .acs-team__who { opacity: 1; transform: none; transition: opacity .6s var(--ease) .32s, transform .7s var(--ease) .32s; }
.acs-team .acs-team__slide:not(.is-on) .acs-team__photo { transform: scale(.94) rotate(-2deg); }
.acs-team .acs-team__slide:not(.is-on) .acs-team__quote { transform: translateY(14px); }
.acs-team .acs-team__slide:not(.is-on) .acs-team__who { transform: translateY(10px); }
.acs-team .acs-team__slide.is-out { visibility: visible; }
.acs-team .is-out .acs-team__photo, .acs-team .is-out .acs-team__quote, .acs-team .is-out .acs-team__who { opacity: 0; transition: opacity .3s ease; }

/* controls */
.acs-team .acs-team__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-left: 258px; }
.acs-team .acs-team__nav {
  width: 40px; height: 40px; min-width: 0; margin: 0; padding: 0; flex: none;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.acs-team .acs-team__nav:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.acs-team .acs-team__nav:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.acs-team .acs-team__nav svg { width: 17px; height: 17px; }
.acs-team .acs-team__bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.acs-team .acs-team__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green), var(--blue)); transform: scaleX(0); transform-origin: left; }
.acs-team.is-running .acs-team__bar span { animation: acs-team-bar var(--interval) linear forwards; }
.acs-team.is-paused .acs-team__bar span { animation-play-state: paused; }
@keyframes acs-team-bar { to { transform: scaleX(1); } }

/* ---------- faces strip ---------- */
.acs-team .acs-team__strip {
  display: flex; flex-direction: column; gap: 14px; margin-top: 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.acs-team .acs-team__row { display: flex; width: max-content; animation: acs-team-mq 80s linear infinite; }
.acs-team .acs-team__row--rev { animation-direction: reverse; animation-duration: 95s; }
.acs-team .acs-team__strip:hover .acs-team__row,
.acs-team .acs-team__strip:focus-within .acs-team__row { animation-play-state: paused; }
.acs-team .acs-team__track { display: flex; gap: 14px; padding-right: 14px; }
@keyframes acs-team-mq { to { transform: translateX(-50%); } }

.acs-team .acs-team__face {
  position: relative; flex: none; width: 92px; height: 92px;
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 24px;
  background: #e8eef6; cursor: pointer; line-height: 0;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.acs-team .acs-team__face img { width: 100%; height: 100%; max-width: none; border-radius: 24px; object-fit: cover; filter: saturate(.9); transition: filter .3s; }
.acs-team .acs-team__face:hover { transform: translateY(-4px); box-shadow: 0 14px 22px -14px rgba(7, 26, 54, .6); background: #e8eef6; }
.acs-team .acs-team__face:hover img { filter: none; }
.acs-team .acs-team__face:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.acs-team .acs-team__face.is-on { transform: translateY(-4px); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue), 0 14px 24px -12px rgba(7, 26, 54, .6); }
.acs-team .acs-team__face.is-on img { filter: none; }
.acs-team .acs-team__tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 3;
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  padding: 7px 11px; border-radius: 10px; background: var(--navy); color: #fff; white-space: nowrap; text-align: center;
  line-height: 1.25; box-shadow: 0 10px 20px -10px rgba(7, 26, 54, .6);
  transition: opacity .2s, transform .2s;
}
.acs-team .acs-team__tag b { display: block; font-size: 12.5px; font-weight: 800; }
.acs-team .acs-team__tag i { display: block; font-size: 11px; font-style: normal; font-weight: 600; color: #9fd0f5; }
.acs-team .acs-team__face:hover .acs-team__tag,
.acs-team .acs-team__face:focus-visible .acs-team__tag { opacity: 1; transform: translate(-50%, 0); }
.acs-team .acs-team__row:first-child { padding-top: 46px; margin-top: -46px; } /* room for tooltips */

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .acs-team { padding: 56px 0 44px; }
  .acs-team .acs-team__spot { padding: 26px 22px 20px; border-radius: 22px; }
  .acs-team .acs-team__slide { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .acs-team .acs-team__photo { width: 132px; }
  .acs-team .acs-team__photo::before { border-radius: 26px; }
  .acs-team .acs-team__photo img { border-radius: 22px; }
  .acs-team .acs-team__ctrl { padding-left: 0; }
  .acs-team .acs-team__strip { margin-top: 34px; gap: 10px; }
  .acs-team .acs-team__track { gap: 10px; padding-right: 10px; }
  .acs-team .acs-team__face, .acs-team .acs-team__face img { width: 70px; height: 70px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .acs-team *, .acs-team *::before, .acs-team *::after { animation: none !important; transition: none !important; }
  .acs-team .acs-team__strip { overflow-x: auto; }
}
