/* Team profile targets stay still; only the small discovery cue changes. */
[data-page=team] .person-card { position: relative; }
.team-recruitment-link { display: block; color: inherit; border-radius: 10px; text-decoration: none; }
[data-page=team] .team-recruitment-visual { background: #1d1d1d; color: #e5e5e5; transition: background-color 280ms ease; }
.team-recruitment-mark { display: grid; justify-items: center; gap: 24px; padding: 28px; }
.team-recruitment-mark img { width: clamp(64px, 6vw, 88px); height: auto; opacity: .6; transition: transform 320ms ease, opacity 280ms ease; }
.team-recruitment-mark strong { font-family: var(--heading); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
body .team-recruitment-link .arrow-circle { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; background: #080808; color: #fff; }
.team-recruitment-link:is(.ui-hot, .ui-pressed, :focus-visible) .team-recruitment-visual { background: #242424; }
.team-recruitment-link:is(.ui-hot, .ui-pressed, :focus-visible) .team-recruitment-mark img { transform: translateY(-4px); opacity: .8; }
.team-recruitment-link:is(.ui-hot, .ui-pressed, :focus-visible) .arrow-circle { color: #fff; }
.team-recruitment-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.person-profile { width: 100%; }
.person-profile > summary { display: block; list-style: none; cursor: pointer; border-radius: 10px; }
.person-profile > summary::-webkit-details-marker { display: none; }
.person-profile > summary::marker { content: ''; }
[data-page=team] .person-profile .person-copy { padding-right: 48px; }
/* Align the social action to the title without depending on viewport sizing. */
.person-card:has(.person-profile) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
.person-card .person-profile { grid-area: 1 / 1 / 2 / 3; }
.person-card .person-social { position: static; grid-area: 1 / 2; align-self: end; margin-bottom: 28px; z-index: 1; }
.person-card:not(:has(.person-copy p)) .person-social { margin-bottom: 0; }
.person-profile-cue { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 12px; min-height: 44px; border-radius: 999px; background: var(--blue); color: #080808; pointer-events: none; }
.person-profile-cue svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.person-profile-cue .profile-eye { width: 22px; height: 22px; stroke-width: 1.5; }
.profile-eye-lids { transform-origin: 12px 12px; }
.profile-eye-pupil { transition: transform 380ms ease; }
.person-profile > summary:is(.ui-hot,:focus-visible) .profile-eye-lids { animation: profile-eye-blink 480ms ease both; }
.person-profile > summary:is(.ui-hot,:focus-visible) .profile-eye-pupil { transform: translateX(1px); }
@keyframes profile-eye-blink {
  0%, 100% { transform: scaleY(1); }
  38% { transform: scaleY(.12); }
  64% { transform: scaleY(1); }
}
.person-profile-cue > span { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; font-size: 14px; transition: max-width 300ms ease, opacity 200ms ease, margin 300ms ease; }
.person-profile > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.person-profile > summary:focus-visible .person-profile-cue > span { max-width: 170px; opacity: 1; margin-right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .person-profile > summary:hover .person-profile-cue > span { max-width: 170px; opacity: 1; margin-right: 10px; }
}
.team-committee-copy { max-width: 1040px; margin: clamp(42px, 6vw, 88px) auto 0; text-align: center; text-wrap: pretty; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.7; color: var(--warm); }
body.team-profile-open { overflow: hidden; }
.team-profile-dialog { width: min(960px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; margin: auto; border: 0; border-radius: 18px; background: #151515; color: #f5f5f5; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; overscroll-behavior: contain; }
.team-profile-dialog > .profile-panel { overflow:clip; }
.team-profile-dialog::backdrop { background: rgb(0 0 0 / .76); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.team-profile-dialog.profile-animated::backdrop { background: rgb(0 0 0 / var(--profile-shade, 0)); }
.team-profile-dialog.profile-animated { will-change: opacity, transform; }
.profile-panel { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.profile-photo { background: #101010; min-width: 0; }
.profile-photo img { display: block; width: 100%; height: 100%; min-height: 480px; max-height: 680px; object-fit: cover; object-position: 50% 30%; }
.profile-photo-pending { min-height: 480px; display: grid; place-items: center; color: var(--muted); }
.profile-copy { align-self: center; min-width: 0; padding: 72px 42px 48px; }
.profile-copy h2 { margin: 14px 0 10px; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; }
.profile-copy h2:focus { outline: none; }
.profile-copy .profile-role { color: var(--warm); font-size: 19px; line-height: 1.4; margin: 0; }
.profile-introduction { margin-top:26px; }
.profile-introduction p, .profile-career p { font-size: 17px; line-height: 1.7; color: #ccc; margin: 16px 0 0; }
.profile-career { margin-top: 26px; }
.profile-career h3 { font-size: 21px; }
.profile-quote { margin: 30px 0 0; color: var(--warm); }
.profile-quote p { font-size: 22px; line-height: 1.5; }
.profile-quote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: #bbb; }
.profile-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 12px; background: #eee; color: #111; cursor: pointer; transition: background-color 180ms ease; }
.profile-close[hidden] { display: none; }
.profile-close svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; }
.profile-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .profile-close:hover { background: var(--blue); } }
.person-profile[open] .profile-panel { display: block; padding-bottom: 24px; }
.person-profile[open] .profile-photo { display: none; }
.person-profile[open] .profile-copy { padding: 24px 0 0; }
.person-card:has(.person-profile[open]) .person-social { display: none; }
@media (max-width: 700px) {
  .team-profile-dialog::backdrop { backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
  .team-profile-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .profile-panel { grid-template-columns: 1fr; }
  .profile-photo { height: 300px; }
  .profile-photo img { min-height: 0; height: 100%; object-position: 50% 24%; }
  .profile-photo-pending { min-height: 0; height: 100%; }
  .profile-copy { padding: 28px 24px 32px; }
  .profile-copy h2 { font-size: 32px; }
  .team-committee-copy { text-align: left; }
}
@media (max-width: 599px) {
  .person-card .person-social { margin-bottom: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-recruitment-visual, .team-recruitment-mark img { transition: none !important; }
  .team-recruitment-link .team-recruitment-mark img { transform: none; }
  .person-profile-cue > span, .profile-close { transition: none; }
  .person-profile .profile-eye-lids { animation: none !important; }
  .profile-eye-pupil { transition: none; transform: none !important; }
}
