/* Who We Are: meet the team, after Ryder & Davis. Colour portraits drift
   slowly and endlessly from right to left, full bleed, each with a name and
   title underneath. Four copies of the group make the loop seamless; the
   track moves one copy's width, then repeats. Hover pauses it. */
.ab-team {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 11vw, 11rem) 0;
  overflow: hidden;
  background: #ffffff;
  color: #17131c;
}
/* Straight after the intro paragraph, the intro's own bottom padding already
   gives the break, so the team doesn't add a second one. */
.ab-rise + .ab-team { padding-top: clamp(.5rem, 1.5vw, 1.5rem); }
.ab-team__title {
  margin: 0 0 clamp(2.5rem, 4.5vw, 4rem);
  padding-inline: var(--ab-gutter, 1.25rem);
  font: 300 clamp(2rem, 2.6vw, 2.6rem)/1 "Inter", "Helvetica Neue", sans-serif;
  letter-spacing: -.03em;
}
.ab-team__marquee { --gap: clamp(.9rem, 1.1vw, 1.4rem); overflow: hidden; }
.ab-team__track { display: flex; width: max-content; animation: ab-team-drift 90s linear infinite; }
.ab-team__marquee:hover .ab-team__track { animation-play-state: paused; }
.ab-team__group { display: flex; gap: var(--gap); margin: 0; padding: 0 var(--gap) 0 0; list-style: none; }
.ab-team__person { flex: 0 0 clamp(14rem, 17.3vw, 21rem); }
.ab-team__person figure { aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #f2f2f3; }
.ab-team__person img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.ab-team__person:hover img { transform: scale(1.03); }
.ab-team__person h3 { margin: 1rem 0 0; font: 500 1rem/1.3 "Inter", "Helvetica Neue", sans-serif; letter-spacing: -.01em; }
.ab-team__person p { margin: .2rem 0 0; font: 400 .875rem/1.4 "Inter", "Helvetica Neue", sans-serif; color: #6f6a75; }
@keyframes ab-team-drift { to { transform: translate3d(-25%, 0, 0); } }
/* Reduced motion: about-team.js keeps the row still (no drift) but it still
   loops when dragged, so the second copy must stay — hiding it left a white
   run after the last person (Hodge, 8 Oct). No native scroller either: it
   fought the drag and drew a scrollbar under the row. */
@media (prefers-reduced-motion: reduce) {
  .ab-team__track { animation: none; }
}

/* Five portraits across at a time, slightly larger, and draggable
   (Hodge, 2026-09-15). about-team.js now drives the drift, so the CSS
   animation is off. */
.ab-team__marquee { --gap: clamp(.9rem, 1.2vw, 1.5rem); cursor: grab; touch-action: pan-y; user-select: none; }
.ab-team__marquee.is-dragging { cursor: grabbing; }
.ab-team__track { animation: none; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.ab-team__person { flex: 0 0 calc((100vw - 5 * var(--gap)) / 5.35); min-width: 0; }
.ab-team__person figure { aspect-ratio: 4 / 5; }
.ab-team__person img { object-position: 50% 30%; pointer-events: none; }
@media (max-width: 899px) { .ab-team__person { flex-basis: 62vw; } }

/* The same TLH purple reveal as the homepage, descending over each portrait. */
.ab-team__person figure { position: relative; width: 100%; min-height: 30rem; }
.ab-team__profile {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; color: #fff; text-align: left;
  cursor: pointer; font: inherit; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.ab-team__profile:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.ab-team__bio {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: stretch; gap: 1.25rem;
  padding: clamp(1rem, 1.5vw, 1.75rem); background: #4c3074;
  transform: translate3d(0, -101%, 0);
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}
.ab-team__bio > span { display: block; }
.ab-team__identity { flex: none; }
.ab-team__name {
  display: block; font: 500 1.125rem/1.2 var(--ab-sans, "Inter", sans-serif);
  letter-spacing: -.025em; text-wrap: balance;
}
.ab-team__role {
  display: block; margin-top: .45rem;
  font: 400 .75rem/1.4 var(--ab-sans, "Inter", sans-serif); color: #ded2ed;
}
.ab-team__summary { font: 400 1rem/1.45 var(--ab-sans, "Inter", sans-serif); }
.ab-team__read-more {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  align-self: flex-end;
  gap: 1rem;
  min-height: 2.75rem;
  margin-top: 0;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  font: 600 .68rem/1 var(--ab-sans, "Inter", sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ab-team__read-more span { font-size: 1rem; transition: transform .25s ease; }
.ab-team__profile:hover .ab-team__read-more span { transform: translate(2px, -2px); }
/* Decorative typeset names, not reproductions of anyone's real signature. */
.ab-team__signature {
  flex: none; margin-top: auto; padding-block: .2rem;
  font: 500 clamp(1.5rem, 1.9vw, 1.9rem)/1.05 "Caveat", cursive;
  color: #f3eafa; transform: rotate(-3deg); transform-origin: left center;
}
.ab-team__person.is-open .ab-team__bio { transform: translate3d(0, 0, 0); }
@media (min-width: 900px) {
  .ab-team__person figure { min-height: 32rem; }
  .ab-team__bio { gap: 1rem; }
  .ab-team__summary { font-size: clamp(.875rem, 1.05vw, 1.05rem); }
}
@media (min-width: 1200px) {
  .ab-team__person figure { min-height: 28rem; }
}
@media (prefers-reduced-motion: reduce) { .ab-team__bio { transition: none; } }

/* A profile opens in place over the page, with a portrait and full biography. */
.ab-profile-dialog {
  width: min(58rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(44rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1rem;
  background: #f7f5f8;
  color: #201a26;
  box-shadow: 0 2rem 7rem rgba(14, 9, 20, .32);
}
.ab-profile-dialog::backdrop { background: rgba(17, 12, 23, .72); backdrop-filter: blur(5px); }
.ab-profile-dialog__card { position: relative; display: grid; min-height: 30rem; grid-template-columns: minmax(13rem, .78fr) 1.22fr; }
.ab-profile-dialog__close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(32, 26, 38, .2);
  border-radius: 50%;
  background: rgba(247, 245, 248, .9);
  color: inherit;
  font: 300 1.8rem/1 var(--ab-sans, "Inter", sans-serif);
  cursor: pointer;
}
.ab-profile-dialog__close:focus-visible { outline: 2px solid #4c3074; outline-offset: 3px; }
.ab-profile-dialog__portrait { min-height: 30rem; margin: 0; background: #ded8e5; }
.ab-profile-dialog__portrait img { display: block; width: 100%; height: 100%; min-height: 30rem; object-fit: cover; object-position: 50% 25%; }
.ab-profile-dialog__content { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.ab-profile-dialog__eyebrow { margin: 0 0 1.3rem; color: #65458b; font: 600 .65rem/1.2 var(--ab-sans, "Inter", sans-serif); letter-spacing: .16em; text-transform: uppercase; }
.ab-profile-dialog__content h2 { max-width: 14ch; margin: 0; font: 400 clamp(2.2rem, 4vw, 3.8rem)/.98 "Playfair Display", Georgia, serif; letter-spacing: -.04em; }
.ab-profile-dialog__role { margin: .8rem 0 2rem; color: #6b5a7d; font: 500 .72rem/1.4 var(--ab-sans, "Inter", sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.ab-profile-dialog__description { max-height: 18rem; overflow: auto; padding-right: .5rem; color: #514958; font: 400 1rem/1.7 var(--ab-sans, "Inter", sans-serif); }
.ab-profile-dialog__description p { margin: 0 0 1.15em; }
.ab-profile-dialog__description p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .ab-profile-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: .75rem; }
  .ab-profile-dialog__card { grid-template-columns: 1fr; }
  .ab-profile-dialog__portrait, .ab-profile-dialog__portrait img { min-height: 0; height: 42dvh; max-height: 19rem; }
  .ab-profile-dialog__content { padding: 2rem 1.5rem 2.25rem; }
  .ab-profile-dialog__content h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .ab-profile-dialog__description { max-height: none; overflow: visible; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ab-team__read-more span { transition: none; } }

/* Phones (Hodge, 8 Oct): three whole profiles across, with a sliver of the
   next so the row reads as moving on. Portraits are 4:5 instead of the tall
   62vw × 30rem strip. The purple bio slide is dropped at this size — a tap
   opens the full profile dialog, which is where the bio is readable. */
@media (max-width: 899px) {
  .ab-team__marquee { --gap: .6rem; }
  .ab-team__person { flex-basis: calc((100vw - 3 * var(--gap)) / 3.2); }
  .ab-team__person figure { aspect-ratio: 4 / 5; min-height: 0; }
  .ab-team__bio { display: none; }
  .ab-team__person h3 { margin-top: .6rem; font-size: .8rem; line-height: 1.25; }
  .ab-team__person p { font-size: .68rem; line-height: 1.3; }
}
