/* RS2-M4.7.8 · One group photograph; each person opens their own profile. */
.team-showcase { background:var(--surface); }
.team-showcase__heading { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; margin-bottom:32px; }
.team-showcase__heading .eyebrow { margin-bottom:18px; }
.team-showcase__heading h2 { margin:0; font:400 clamp(38px,4.2vw,62px)/1.1 var(--font-display); }
.team-showcase__heading h2 em { color:var(--gold); font-weight:400; }
.team-showcase__heading>p { max-width:360px; margin:0; color:var(--muted); font-size:16px; line-height:1.75; }
.team-showcase__instruction { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 14px; color:var(--gold); font-size:12px; line-height:1.6; }
.team-showcase__mobile-instruction { display:none; }
.team-showcase__instruction>span:last-child { font-size:22px; }
.team-showcase__panorama { width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:var(--gold) var(--surface-raised); border:1px solid var(--line); }
.team-showcase__panorama:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.team-showcase__scene { position:relative; width:100%; min-width:1000px; isolation:isolate; }
.team-showcase__group { display:block; width:100%; height:auto; }
.team-showcase__people { display:none; position:absolute; inset:0; }
.team-showcase[data-ready] .team-showcase__people { display:block; }
.team-person { position:absolute; top:8%; bottom:0; left:var(--person-left); width:var(--person-width); min-width:44px; padding:0; border:0; border-radius:0; background:transparent; color:var(--text-light); cursor:pointer; -webkit-tap-highlight-color:transparent; }
.team-person__marker { position:absolute; left:var(--marker-x); bottom:8%; transform:translateX(-50%); width:30px; height:30px; border:1px solid #f8eee89c; border-radius:50%; display:grid; place-items:center; background:#100d0ba3; color:#fff4e9; font-size:10px; letter-spacing:.06em; transition:background .3s ease,color .3s ease,transform .3s ease; }
.team-person[aria-pressed="true"] .team-person__marker { background:var(--gold); color:#21160f; border-color:var(--gold); transform:translateX(-50%) translateY(-4px); }
.team-person__name { position:absolute; left:var(--marker-x); bottom:calc(8% + 44px); transform:translate(-50%,6px); padding:7px 9px; background:#100d0be8; color:#fff4e9; white-space:nowrap; font-size:11px; line-height:1.4; pointer-events:none; opacity:0; transition:opacity .25s ease,transform .3s ease; }
.team-person[aria-pressed="true"] .team-person__name { opacity:1; transform:translate(-50%,0); }
.team-person:first-child .team-person__name { left:auto; right:4px; transform:translateY(0); }
.team-person:last-child .team-person__name { left:auto; right:4px; transform:translateY(0); }
.team-person:focus-visible { outline:none; }
.team-person:focus-visible .team-person__marker { outline:2px solid var(--text-light); outline-offset:4px; }
.team-showcase__profiles { margin-top:22px; }
.team-profile { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; padding:28px 0; border-bottom:1px solid var(--line); }
.team-profile[hidden] { display:none; }
.team-profile__portrait { display:none; width:180px; aspect-ratio:9/10; flex-shrink:0; background-image:url('/images/team-group-2048.webp'); background-size:1200% auto; background-position:var(--portrait-x) var(--portrait-y); background-repeat:no-repeat; background-color:var(--surface-raised); border:1px solid var(--line); }
.team-profile__role { margin:0 0 10px; color:var(--gold); font-size:10px; line-height:1.6; letter-spacing:.13em; text-transform:uppercase; }
.team-profile__copy h3 { margin:0; color:var(--text-light); font:400 clamp(32px,3.4vw,47px)/1.1 var(--font-display); }
.team-profile__specialties { color:var(--gold); font-size:12px; line-height:1.7; margin:16px 0 10px; }
.team-profile__bio { max-width:650px; margin:0; color:var(--muted); font-size:16px; line-height:1.8; }
.team-profile__index { color:var(--gold); font:400 42px/1 var(--font-display); padding-top:6px; }
.team-profile__index small { display:block; margin-top:12px; text-align:right; color:var(--muted); font:11px/1.4 var(--font); letter-spacing:.12em; }
.team-showcase[data-ready] .team-profile { grid-template-columns:180px minmax(0,1fr) auto; align-items:center; gap:32px; min-height:250px; padding:24px; border:1px solid var(--line); background:linear-gradient(120deg,var(--surface-raised),var(--surface)); }
.team-showcase[data-ready] .team-profile__portrait { display:block; }
.team-showcase[data-ready] .team-profile:not([hidden]) .team-profile__portrait { animation:team-portrait-in .55s cubic-bezier(.2,.7,.2,1) both; }
.team-showcase[data-ready] .team-profile:not([hidden]) .team-profile__copy { animation:team-profile-in .45s .06s ease both; }
.team-showcase__note { margin:20px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
@keyframes team-portrait-in { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes team-profile-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media(max-width:1000px) {
 .team-showcase__desktop-instruction { display:none; }.team-showcase__mobile-instruction { display:inline; }
 .team-showcase__heading { gap:28px; }.team-showcase__heading>p { max-width:300px; font-size:15px; }
}
@media(max-width:700px) {
 .team-showcase__heading { display:block; margin-bottom:24px; }.team-showcase__heading h2 { font-size:43px; }
 .team-showcase__heading>p { margin-top:20px; max-width:none; font-size:15px; }
 .team-showcase[data-ready] .team-profile { grid-template-columns:90px minmax(0,1fr); align-items:start; gap:18px; padding:20px; }
 .team-showcase[data-ready] .team-profile__portrait { width:90px; }
 .team-profile__index { display:none; }.team-profile__copy h3 { font-size:30px; }
 .team-profile__role { font-size:9px; }.team-profile__specialties { font-size:11px; }
 .team-profile__bio { font-size:14px; line-height:1.7; }.team-showcase__instruction { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
 .team-person__marker,.team-person__name { transition:none; }
 .team-showcase[data-ready] .team-profile:not([hidden]) .team-profile__portrait,.team-showcase[data-ready] .team-profile:not([hidden]) .team-profile__copy { animation:none; }
}
