/* About (rebrand E2, restrained). Markup: src/_includes/e2/about.njk. */

/* ---------- Head ---------- */
.ab > .e2-wrap { gap: clamp(48px, 7vw, 96px); }
.ab-h1 { font-weight: 600; font-size: clamp(44px, 6.4vw, 104px); line-height: .95; letter-spacing: -.06em; max-width: 17ch; text-wrap: balance; }

/* The five project covers as an overlapping row, gently alternating. --i runs -2..2 left to right, --ai is its absolute value. */
.ab-fan { display: flex; justify-content: center; }
.ab-fan__card {
  width: clamp(150px, 19vw, 270px); height: auto; margin-inline: calc(clamp(150px, 19vw, 270px) * -.18);
  border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(calc(var(--i) * 2.5deg)) translateY(calc(var(--ai) * 10px)); z-index: calc(10 - var(--ai));
  transition: transform .4s var(--ease-out);
}
.ab-fan__card:hover { transform: rotate(0deg) translateY(-12px); z-index: 20; }

/* ---------- Team: dark cards; the colour stays only in the circle ---------- */
.ab-team-sec { padding-top: 48px; }
.ab-h2 { max-width: 12ch; }
.ab-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-person { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 22px; border-radius: 24px; background: var(--surface-1); border: 1px solid var(--border); }
.ab-person__photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: #0c0c0e; }
.ab-person__photo img { width: 46%; height: auto; border-radius: 50%; background: var(--circle); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ab-person:hover .ab-person__photo img { transform: scale(1.08) rotate(-4deg); }
/* A member without a photo yet (placeholder until her Memoji arrives): the initial, centred in the same circle. Its size follows the card (cqw). */
.ab-person__photo--initial { container-type: inline-size; }
.ab-person__initial {
  display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--circle);
  color: #0c0c0e; font-weight: 600; font-size: 24cqw; line-height: 1; letter-spacing: -.04em; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.ab-person:hover .ab-person__initial { transform: scale(1.08) rotate(-4deg); }
.ab-person__name { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.ab-person__role { font-size: 14px; line-height: 1.4; color: var(--text-4); }

@media (max-width: 999px) { .ab-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .ab-fan__card { width: 30%; margin-inline: -9%; }
  .ab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ab-person { padding: 12px 12px 16px; border-radius: 18px; }
  .ab-person__name { font-size: 15px; }
  .ab-person__role { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-fan__card, .ab-person__photo img, .ab-person__initial { transition: none; }
}
