.studio-team { container-type: inline-size; }
.team-heading { margin-bottom: 24px; }
.team-heading p { font-size: 14px; }
.team-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.team-controls:empty { display: none; }
.team-select, .team-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel);
}
.team-select select, .team-search input {
  width: 100%;
  min-height: 37px;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  border-radius: inherit;
  color: var(--text);
  background: transparent;
}
.team-select select { padding-right: 32px; min-width: 133px; appearance: none; cursor: pointer; }
.team-select option { background: var(--panel); }
.team-select svg { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.team-search { flex: 0 1 320px; margin-inline-start: auto; }
.team-search input { padding-inline-start: 37px; }
.team-search input::placeholder { color: var(--muted); }
.team-search svg { position: absolute; left: 11px; color: var(--blue); pointer-events: none; }

.team-group-title, .team-person,
.team-detail-person, .team-work-link { display: flex; align-items: center; }
.team-group-title { gap: 12px; }
.team-group-title h2 { font-size: 16px; font-weight: 650; }
.team-group-title span { color: var(--muted); font-size: 12px; }
.team-members { container-type: inline-size; min-width: 0; }

.team-fan {
  position: relative;
  isolation: isolate;
  height: clamp(258px, 43cqi, 460px);
  margin-top: 12px;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.team-fan::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 52% 52% at 50% 50%, color-mix(in srgb, var(--raised) 65%, transparent), transparent 90%);
  pointer-events: none;
}
.team-fan-item {
  --fan-x: 0px;
  --fan-y: 0px;
  --fan-angle: 0deg;
  --fan-scale: 1;
  position: absolute;
  z-index: var(--fan-order);
  top: 46%;
  left: 50%;
  width: clamp(126px, 26cqi, 284px);
  aspect-ratio: 282 / 386;
  transform: translate(calc(-50% + var(--fan-x) + var(--fan-drag, 0px)), calc(-50% + var(--fan-y))) rotate(var(--fan-angle)) scale(var(--fan-scale));
  transition: transform 450ms cubic-bezier(.2,.72,.24,1);
}
.team-fan-item[data-offset="-2"] { --fan-x: max(-33cqi, -365px); --fan-y: 36px; --fan-angle: -12deg; --fan-scale: .73; }
.team-fan-item[data-offset="-1"] { --fan-x: max(-17cqi, -192px); --fan-y: 22px; --fan-angle: -6deg; --fan-scale: .88; }
.team-fan-item[data-offset="1"] { --fan-x: min(17cqi, 192px); --fan-y: 22px; --fan-angle: 6deg; --fan-scale: .88; }
.team-fan-item[data-offset="2"] { --fan-x: min(33cqi, 365px); --fan-y: 36px; --fan-angle: 12deg; --fan-scale: .73; }
.team-fan[data-entering] .team-fan-item { animation: team-fan-open 540ms cubic-bezier(.22,.75,.26,1) backwards; }
.team-fan[data-swiping] .team-fan-item { transition: none; }
@keyframes team-fan-open {
  from { transform: translate(-50%, calc(-50% + 28px)) rotate(calc(var(--fan-angle) / 5)) scale(.86); opacity: .45; }
}
.team-fan-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(9px, 1.45cqi, 16px);
  border: 1px solid #585b60;
  isolation: isolate;
  background: linear-gradient(145deg, #ffffff07, transparent 72%), var(--team-card-color);
  box-shadow: 3px 4px 0 #121319, 0 14px 28px #04060d38, 0 24px 45px #080a1230;
  transform: perspective(740px) rotateX(var(--surface-x, 0deg)) rotateY(var(--surface-y, 0deg));
  transition: transform 240ms cubic-bezier(.2,.72,.24,1), box-shadow 240ms ease;
}
.team-fan-mark, .team-fan-cover, .team-fan-shine { position: absolute; pointer-events: none; }
.team-fan-mark { width: 84%; height: 54%; left: 8%; top: 16%; object-fit: contain; opacity: .41; }
.team-fan-surface:has(.team-fan-cover:not([hidden])) .team-fan-mark { visibility: hidden; }
.team-fan-cover { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-fan-kind {
  position: absolute;
  z-index: 2;
  inset: clamp(8px, 1.35cqi, 14px) auto auto clamp(8px, 1.35cqi, 14px);
  padding: 3px 7px;
  border-radius: 5px;
  background: #10111cdd;
  color: #f4f5f9;
  font-size: clamp(10px, 1.15cqi, 12px);
  white-space: nowrap;
  pointer-events: none;
}
.team-fan-item:is([data-offset="1"], [data-offset="2"]) .team-fan-kind {
  inset-inline: auto clamp(8px, 1.35cqi, 14px);
}
.team-fan-shine {
  inset: 0;
  z-index: 1;
  opacity: .26;
  background: linear-gradient(115deg, transparent 38%, #bacfde10 45%, #f3f5ef22 50%, #fbefda0c 53%, transparent 61%);
  background-size: 165% 100%;
  mask-image: linear-gradient(#000 62%, transparent 84%);
  background-position:var(--shine-x,50%) var(--shine-y,45%);
  transition: opacity 220ms ease;
}
.team-fan-item[data-hover] .team-fan-surface {
  --surface-x: var(--tilt-x);
  --surface-y: var(--tilt-y);
  box-shadow: 3px 4px 0 #121319, 0 18px 34px #04060d53, 0 29px 52px #080a1239;
}
.team-fan-item[data-hover] .team-fan-shine { opacity: .76; }
.team-fan-front, .team-fan-identity {
  position: absolute;
}
.team-fan-front {
  inset: 0;
  z-index: 2;
  padding: 0;
  background: transparent;
  border-radius: inherit;
}
.team-fan-front[aria-pressed="true"] { cursor: default; }
.team-fan-front:focus-visible { outline-offset: -4px; }
.team-fan-identity {
  inset: auto 0 0;
  display: grid;
  align-content: center;
  min-height: 25%;
  padding: 8px clamp(9px, 1.5cqi, 16px);
  background: linear-gradient(transparent, #08090ae0 76%);
  color: #f7f8fb;
  text-align: start;
  transition: background-color 180ms ease;
}
.team-fan-surface:has(.team-fan-cover:not([hidden])) .team-fan-identity { background: linear-gradient(transparent, #08090af2 70%); }
.team-fan-identity .team-person { gap: clamp(7px, 1.1cqi, 14px); }
.team-fan-item:is([data-offset="1"], [data-offset="2"]) .team-fan-identity .team-person {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: end;
}
.team-fan-identity .team-person img { width: clamp(20px, 3.2cqi, 36px); height: auto; }
.team-fan-identity .team-identity strong {
  font-size: clamp(15px, 2.2cqi, 25px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.team-fan-identity .team-identity small { color: #d8dbe4; font-size: clamp(10px, 1.15cqi, 13px); }
.team-fan-position {
  position: absolute;
  inset: auto 0 clamp(0px, 1.2cqi, 15px);
  color: var(--muted);
  text-align: center;
  letter-spacing: .055em;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.team-empty, .team-work-link, .team-inline-detail {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 12px;
}
.team-work-link { transition: border-color 160ms ease, background-color 160ms ease; }
.team-work-link:hover {
  border-color: color-mix(in srgb, var(--blue) 52%, var(--edge));
  background: color-mix(in srgb, var(--panel) 85%, var(--raised));
}
.team-person { gap: 13px; min-width: 0; }
.team-person img, .team-detail-person img { flex: 0 0 auto; object-fit: contain; border-radius: 10px; }
.team-identity { min-width: 0; }
.team-identity strong { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.team-identity small { display: block; color: var(--muted); font-size: 12px; }
.team-work-link > svg { flex-shrink: 0; color: var(--muted); }
.team-empty { margin-top: 12px; padding: 20px; color: var(--muted); }
.team-empty .button { margin-top: 9px; }
.team-work-link strong { font-size: 14px; }

.team-inline-detail {
  --team-badge-lane: clamp(254px, 34%, 420px);
  --team-badge-height: clamp(480px, 58vh, 550px);
  --team-badge-max-width: 285px;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: calc(var(--team-badge-height) + 110px);
  margin-top: 20px;
  padding-inline-end: var(--team-badge-lane);
}
.team-detail-info { position: relative; z-index: 1; min-width: 0; padding: clamp(20px, 3.4vw, 36px); animation: team-detail-in 280ms ease-out both; }
.team-detail-person { gap: 16px; }
.team-detail-person img { width: 68px; height: 68px; }
.team-detail-person h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.team-detail-person p { margin-top: 6px; color: var(--muted); }
.team-detail-section { margin-top: 20px; }
.team-detail-section h3 { margin: 0 0 7px; font-size: 15px; }
.team-detail-section > p { color: var(--muted); }
.team-detail-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.team-detail-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.team-detail-fields dt { color: var(--muted); }
.team-detail-fields dd { margin: 0; overflow-wrap: anywhere; }
.team-preview-note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.team-badge-anchor {
  position: absolute;
  inset: 0 0 auto auto;
  width: var(--team-badge-lane);
  height: var(--team-badge-height);
  background: radial-gradient(ellipse at 50% 46%, color-mix(in srgb, var(--raised) 58%, transparent), transparent 72%);
  pointer-events: none;
}
.team-member-badge { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.team-member-badge .permission-badge-panel { width: 100%; height: 100%; }
.team-member-badge .permission-lanyard { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.team-member-badge .permission-lanyard:not(.has-3d-lanyard) .permission-badge {
  justify-self: end;
  width: min(var(--team-badge-max-width), calc(var(--team-badge-lane) - 24px));
  margin: clamp(64px, 11vh, 104px) max(12px, calc((var(--team-badge-lane) - var(--team-badge-max-width)) / 2)) 0 0;
}
.team-member-badge .permission-lanyard:not(.has-3d-lanyard) :is(.permission-badge-front, .permission-badge-return) { pointer-events: auto; }
.team-status { margin-inline-start: 13px; white-space: nowrap; }
.team-status::before {
  content: "";
  display: inline-block;
  vertical-align: 2px;
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: #66a892;
}
.team-work-link { gap: 12px; min-height: 57px; margin-top: 10px; padding: 9px 13px; background: var(--raised); }
.team-work-link > svg:first-child { color: var(--blue); }
.team-work-link > svg:last-child { margin-inline-start: auto; }
.team-home-link { display: inline-flex; min-height: 40px; margin-top: 18px; }
@keyframes team-detail-in { from { opacity: 0; translate: 0 7px; } }

@media (max-width: 690px) {
  .team-search { flex: 1 0 100%; }
}
@container (max-width: 520px) {
  .team-fan-item[data-offset="-2"] { --fan-x: -29cqi; --fan-y: 22px; --fan-scale: .64; }
  .team-fan-item[data-offset="-1"] { --fan-x: -16cqi; --fan-y: 12px; --fan-scale: .82; }
  .team-fan-item[data-offset="1"] { --fan-x: 16cqi; --fan-y: 12px; --fan-scale: .82; }
  .team-fan-item[data-offset="2"] { --fan-x: 29cqi; --fan-y: 22px; --fan-scale: .64; }
}
@container (max-width: 360px) {
  .team-fan-item[data-offset="-2"] { --fan-x: -34cqi; }
  .team-fan-item[data-offset="-1"] { --fan-x: -20cqi; }
  .team-fan-item[data-offset="1"] { --fan-x: 20cqi; }
  .team-fan-item[data-offset="2"] { --fan-x: 34cqi; }
}
@container (max-width: 660px) {
  .team-inline-detail {
    --team-badge-lane: min(100%, 275px);
    --team-badge-height: clamp(428px, 54vh, 490px);
    --team-badge-max-width: 246px;
    padding: var(--team-badge-height) 0 0;
  }
}
@media (max-width: 560px) {
  .team-select { flex: 1 1 0; }
  .team-select select { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .team-fan-item, .team-fan-surface, .team-fan-shine, .team-fan-identity, .team-work-link { transition: none; }
  .team-fan[data-entering] .team-fan-item, .team-detail-info { animation: none; }
  .team-fan-surface { transform: none; }
}
