/* Company page: team cards. Photo on an ink card, pixel role label, condensed name. */
.team { display: grid; gap: var(--gap-m); grid-template-columns: 1fr; }
.member { position: relative; display: flex; flex-direction: column; margin: 0; border-radius: var(--r); background: var(--raise); overflow: hidden; transition: background-color .2s var(--e-ui); }
.member:hover, .member:focus-within { background: var(--raise-2); }
.member::after { content: ""; position: absolute; top: 14px; right: 14px; z-index: 1; width: 15px; height: 15px; pointer-events: none; background:
  linear-gradient(var(--accent), var(--accent)) 5px 5px / 5px 5px no-repeat,
  linear-gradient(color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--accent) 50%, transparent)) 5px 0 / 5px 15px no-repeat,
  linear-gradient(color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--accent) 50%, transparent)) 0 5px / 15px 5px no-repeat; }
.member-ph { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-700); }
.member-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-out); }
.member-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--e-out); }
.member:hover .member-ph img { transform: scale(1.035); }
.member:hover .member-ph::after, .member:focus-within .member-ph::after { transform: scaleX(1); }
.member-tx { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.member-role { font: 400 10px/1.4 var(--f-pixel); text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.member-name { font: 700 clamp(22px, 1.8vw, 28px)/.95 var(--f-head); font-stretch: 75%; text-transform: uppercase; margin: 0 0 12px; }
.member-bio { color: var(--sub); font-size: 15px; margin: 0; padding-top: 12px; background: repeating-linear-gradient(to right, var(--dash) 0 1px, transparent 1px 4px) top / 100% 1px no-repeat; }

/* phones: photo beside the text */
@media (max-width: 559px) {
  .member { display: grid; grid-template-columns: 38% 1fr; }
  .member-ph { aspect-ratio: auto; min-height: 176px; }
  .member-ph img { position: absolute; inset: 0; }
  .member-tx { justify-content: flex-end; padding: 16px 16px 18px; }
  .member-name { font-size: 22px; }
  .member-bio { font-size: 14px; }
  .member::after { left: 14px; right: auto; }
}
@media (min-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the last tile: the ways to reach the people above. It spans two columns, so six people and the tile fill whole rows */
.member.talk { display: flex; box-shadow: inset 0 3px 0 var(--accent);
  background: radial-gradient(55% 75% at 100% 0%, rgba(229,45,5,.32), transparent 70%), radial-gradient(35% 50% at 82% 0%, rgba(247,118,20,.22), transparent 70%), var(--raise); }
.member.talk:hover, .member.talk:focus-within { background-color: var(--raise-2); }
@media (min-width: 560px) { .member.talk { grid-column: span 2; } }
.talk .member-tx { justify-content: flex-start; padding: clamp(20px, 2.4vw, 32px); }
.talk .member-name { font-size: clamp(28px, 3vw, 48px); }
.talk .member-bio { max-width: 34em; }
.member.talk { container-type: inline-size; }
.talk .reach { margin: auto 0 0; padding-top: 24px; }
/* three across when the tile is wide enough for the email address, stacked otherwise */
@container (min-width: 720px) { .talk .reach { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.talk .reach a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; background: var(--surface); }
.talk .reach a:hover { background: var(--ink-700); }
.talk .reach span:last-child { text-align: left; }
@media (max-width: 559px) { .member.talk::after { left: auto; right: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .member-ph img, .member-ph::after { transition: none; }
  .member:hover .member-ph img { transform: none; }
}
