/* About page: five team members, no stranded final card.
   Desktop: five across. Tablet: three, then two centred. Phones keep the touch carousel (<= 560px). */
@media (min-width: 1201px) {
  .ab-team__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .ab-member__body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ab-member h3 { font-size: clamp(17px, 1.45vw, 23px); }
}
@media (min-width: 561px) and (max-width: 1200px) {
  .ab-team__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ab-team__grid > .ab-member { grid-column: span 2; }
  .ab-team__grid > .ab-member:nth-child(4) { grid-column: 2 / span 2; }
  .ab-team__grid > .ab-member:nth-child(5) { grid-column: 4 / span 2; }
  .ab-member__body { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Website button (globe) next to a member's LinkedIn */
.ab-member__links { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ab-member__web { width: 40px; padding: 0; justify-content: center; }
.ab-member__web svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* About hero: scrolling team portraits above Evolve / Craft / Human */
.ab-hero__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ab-reel { position: relative; overflow: hidden; border-radius: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ab-reel__track { display: flex; gap: 10px; width: max-content; animation: abReel 32s linear infinite; }
.ab-reel:hover .ab-reel__track { animation-play-state: paused; }
.ab-reel__item { position: relative; flex: 0 0 auto; width: clamp(120px, 10vw, 160px); aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--ev-surface); color: #F7F9FD; text-decoration: none; }
.ab-reel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ev-ease-out, cubic-bezier(.16,1,.3,1)); }
.ab-reel__item span { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.ab-reel__item b { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.ab-reel__item small { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0697F1; }
.ab-reel__item:hover img { transform: scale(1.07); }
@keyframes abReel { to { transform: translateX(calc(-50% - 5px)); } }
@media (max-width: 900px) { .ab-reel__item { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .ab-reel__track { animation: none; } .ab-reel { overflow-x: auto; } }

/* Phones: the team strip becomes a row of small round avatars */
@media (max-width: 700px) {
  .ab-reel { border-radius: 0; padding: 6px 0; }
  .ab-reel__track { gap: 12px; animation-duration: 22s; }
  .ab-reel__item { width: 64px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(6,151,241,.65); }
  .ab-reel__item:nth-child(3n+2) { box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(17,81,208,.8); }
  .ab-reel__item:nth-child(3n) { box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(146,83,243,.8); }
  .ab-reel__item img { object-position: 50% 22%; transform: scale(1.35); transform-origin: 50% 25%; }
  .ab-reel__item span { display: none; }
  @keyframes abReel { to { transform: translateX(calc(-50% - 6px)); } }
}
