/* Every profile remains readable with scripts off, interrupted motion, or reduced motion. */
.team-section { overflow: clip; border-top: 1px solid var(--rule); }
.team-section .section-title { max-width: 14ch; }
.team-introduction { flex: 0 0 auto; max-width: 300px; }
.team-section .section-intro { margin: 0; }
.team-replay {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  margin-top: 17px;
  padding: 0;
  border: 0;
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.team-replay[hidden] { display: none !important; }
.team-replay:hover { color: #e4002b; }
.team-replay:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; }
.team-replay svg { flex: 0 0 17px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 54px; }
.team-card { --team-deal-x: -24px; --team-deal-angle: -6deg; --team-deal-delay: 0s; min-width: 0; transform-origin: center 90%; }
.team-card:nth-child(2) { --team-deal-x: 0px; --team-deal-angle: 3deg; --team-deal-delay: .18s; }
.team-card:nth-child(3) { --team-deal-x: 24px; --team-deal-angle: 6deg; --team-deal-delay: .36s; }
.team-card:nth-child(4) { --team-deal-x: 30px; --team-deal-angle: 4deg; --team-deal-delay: .54s; }
.team-portrait {
  --team-art-fill: #323840;
  --team-art-line: #69717a;
  --team-art-ink: #f1eee7;
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  color: var(--team-art-ink);
  background: #171b20;
}
.team-portrait-paper { --team-art-fill: #c1bfb9; --team-art-line: #9b978e; --team-art-ink: #34322e; background: #e6e1d8; }
.team-portrait-red { --team-art-fill: #7e132b; --team-art-line: #b4455b; --team-art-ink: #f0e6e8; background: #520817; }
.team-portrait-graphite { --team-art-fill: #555858; --team-art-line: #878a88; --team-art-ink: #eeeae0; background: #2d3030; }
.team-portrait::before {
  position: absolute;
  z-index: 2;
  content: "";
  inset: -30% -50%;
  opacity: 0;
  transform: translateX(-75%) rotate(-18deg);
  background: linear-gradient(90deg, transparent 40%, rgb(255 237 184 / 18%) 50%, transparent 60%);
  pointer-events: none;
}
.team-card-index { position: absolute; z-index: 1; top: 17px; left: 19px; font-size: 10px; line-height: 1.5; letter-spacing: .1em; }
.team-silhouette { position: absolute; bottom: 0; left: 50%; width: 80%; height: 92%; transform: translateX(-50%); fill: var(--team-art-fill); }
.team-silhouette-line { fill: none; stroke: var(--team-art-line); stroke-width: 1; }
.team-orbit { position: absolute; width: 82%; height: 54%; top: 20%; left: 9%; border: 1px solid currentColor; border-radius: 50%; opacity: .14; transform: rotate(-33deg); }
.team-portrait-label { position: absolute; z-index: 2; bottom: 18px; left: 19px; font-size: 8px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.team-card-heading { padding-top: 21px; }
.team-card-heading p { min-height: 3em; max-width: 32ch; margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: .01em; overflow-wrap: anywhere; }
.team-card-heading h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: -.035em; }
.team-flecks { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.team-flecks i { position: absolute; top: 58%; left: 50%; width: 5px; height: 5px; opacity: 0; color: #e8cd91; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.team-flecks i:nth-child(1) { --team-fleck-x: -65px; --team-fleck-y: -80px; }
.team-flecks i:nth-child(2) { --team-fleck-x: 84px; --team-fleck-y: -40px; }
.team-flecks i:nth-child(3) { --team-fleck-x: -90px; --team-fleck-y: 28px; width: 3px; height: 3px; }
.team-flecks i:nth-child(4) { --team-fleck-x: 45px; --team-fleck-y: 65px; width: 3px; height: 3px; }
.team-card.is-team-revealing { animation: team-card-deal 1.2s cubic-bezier(.2, .7, .28, 1) var(--team-deal-delay) both; }
.team-card.is-team-revealing .team-portrait::before { animation: team-card-sweep 1.2s ease-out calc(var(--team-deal-delay) + .1s) both; }
.team-card.is-team-revealing .team-flecks i { animation: team-fleck 1.1s ease-out calc(var(--team-deal-delay) + .25s) both; }
@keyframes team-card-deal {
  0% { opacity: 0; transform: translate(var(--team-deal-x), 85px) rotate(var(--team-deal-angle)) scale(.93); }
  55% { opacity: 1; }
  76% { transform: translate(0, -5px) rotate(0) scale(1.008); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes team-card-sweep {
  0% { opacity: 0; transform: translateX(-75%) rotate(-18deg); }
  24%, 66% { opacity: 1; }
  100% { opacity: 0; transform: translateX(75%) rotate(-18deg); }
}
@keyframes team-fleck {
  0% { opacity: 0; transform: translate(0, 12px) rotate(0) scale(.2); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--team-fleck-x), var(--team-fleck-y)) rotate(80deg) scale(.3); }
}
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 38px; }
  .team-portrait { aspect-ratio: 1 / 1; }
  .team-card { --team-deal-x: -10px; --team-deal-angle: -3deg; --team-deal-delay: 0s; }
  .team-card:nth-child(2), .team-card:nth-child(3), .team-card:nth-child(4) { --team-deal-x: 10px; --team-deal-angle: 3deg; --team-deal-delay: 0s; }
  .team-introduction { max-width: none; }
  .team-card-heading { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card.is-team-revealing, .team-card.is-team-revealing .team-portrait::before,
  .team-card.is-team-revealing .team-flecks i { animation: none; }
  .team-replay { display: none; }
}
