/* Team card examples 1–5 (preview designs 38–42): design 30 Business with a different team card on the About page.
   Same markup as every v3 design (.people > .person > .person-photo, h3, .person-role, .person-note), so any one of
   these can become the default by moving its rules into apple-v3.css. Loaded unlayered, so these rules win. */

/* 1 — Portrait: a large photo on top, the text below */
[data-team="1"] .people { gap: 20px; }
[data-team="1"] .people > * { flex-basis: calc((100% - 40px) / 3); }
[data-team="1"] .person { padding: 0; overflow: hidden; border-radius: 28px; background: var(--surface); }
[data-team="1"] .person-photo { width: 100%; height: auto; aspect-ratio: 1 / 1.05; margin: 0; border-radius: 0; font-size: 3.4rem; }
[data-team="1"] .person h3 { margin: 24px 26px 0; font-size: 1.4rem; }
[data-team="1"] .person-role { margin: 4px 26px 0; }
[data-team="1"] .person-note { margin: 10px 26px 28px; }
[data-team="1"] .person:hover { translate: 0 -4px; box-shadow: 0 22px 50px rgba(0, 0, 0, .09); }

/* 2 — Circle: round photos, centered text, no card */
[data-team="2"] .people { row-gap: 56px; }
[data-team="2"] .person { align-items: center; padding: 8px 20px; text-align: center; background: transparent; }
[data-team="2"] .person-photo { width: 156px; height: 156px; margin: 0 auto 24px; border-radius: 50%; box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--border-strong); font-size: 2rem; }
[data-team="2"] .person h3 { font-size: 1.35rem; }
[data-team="2"] .person-role { margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
[data-team="2"] .person-note { max-width: 30ch; margin: 14px auto 0; }
[data-team="2"] .person:hover .person-photo { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--primary); }

/* 3 — Photo overlay: the photo fills the card, the name sits on it; the note slides up on hover */
[data-team="3"] .people { gap: 20px; }
[data-team="3"] .people > * { flex-basis: calc((100% - 40px) / 3); }
[data-team="3"] .person { position: relative; isolation: isolate; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border-radius: 28px; color: #fff; }
[data-team="3"] .person-photo { position: absolute; inset: 0; z-index: -2; width: auto; height: auto; margin: 0; border-radius: 0; font-size: 4rem; }
[data-team="3"] .person::after { content: ""; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }
[data-team="3"] .person h3 { margin: 0 26px; font-size: 1.45rem; color: #fff; }
[data-team="3"] .person-role { margin: 4px 26px 24px; color: rgba(255, 255, 255, .86); }
[data-team="3"] .person-note { max-height: 0; margin: -12px 26px 0; overflow: hidden; opacity: 0; color: rgba(255, 255, 255, .9); transition: max-height .6s var(--ease-out), opacity .4s var(--ease), margin .6s var(--ease-out); }
[data-team="3"] .person:hover .person-note, [data-team="3"] .person:focus-within .person-note { max-height: 7em; margin-bottom: 26px; opacity: 1; }
@media (hover: none) {
  [data-team="3"] .person-note { max-height: none; margin-bottom: 26px; opacity: 1; }
}

/* 4 — Side by side: compact cards, photo on the left */
[data-team="4"] .person { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 18px; align-content: start; padding: 22px; border: 1px solid var(--border); border-radius: 24px; background: var(--bg); }
[data-team="4"] .person-photo { grid-row: 1 / span 3; width: 88px; height: 88px; margin: 0; border-radius: 22px; font-size: 1.25rem; }
[data-team="4"] .person h3 { align-self: end; font-size: 1.15rem; }
[data-team="4"] .person-note { margin-top: 8px; font-size: .9rem; }
[data-team="4"] .person:hover { translate: 0 -3px; border-color: var(--primary); box-shadow: 0 16px 40px rgba(0, 0, 0, .07); }

/* 5 — Profile: a soft blue band, the round photo overlapping it, the role as a pill */
[data-team="5"] .person { position: relative; align-items: center; padding: 0 26px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--bg); text-align: center; }
[data-team="5"] .person::before { content: ""; align-self: stretch; height: 96px; margin: 0 -26px; background: linear-gradient(135deg, var(--primary-08), color-mix(in srgb, var(--primary) 20%, transparent)); }
[data-team="5"] .person-photo { width: 116px; height: 116px; margin: -58px auto 18px; border: 5px solid var(--bg); border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); font-size: 1.6rem; }
[data-team="5"] .person-role { margin-top: 10px; padding: 5px 14px; border-radius: 999px; background: var(--primary-08); font-size: .85rem; }
[data-team="5"] .person-note { max-width: 30ch; margin: 14px auto 0; }
[data-team="5"] .person:hover { translate: 0 -4px; box-shadow: 0 22px 50px rgba(0, 0, 0, .08); }

@media (max-width: 860px) {
  :is([data-team="1"], [data-team="3"]) .people > * { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 520px) {
  :is([data-team="1"], [data-team="3"]) .people > * { flex-basis: 100%; }
}
