.team {
  width: min(100%, 1440px);
  margin: 0 auto clamp(2rem, 5vw, 5rem);
  container-type: inline-size;
}
@media (min-width: 1001px) {
  .team { width: min(100%, 1440px, max(680px, calc((100svh - var(--header) - 24px) * 1.5))); }
}
.team-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 3 / 2;
  background: #17130f;
}
.team-wall { width: 100%; height: 100%; }
.team-sightline { position: absolute; inset: 56% 0 auto; height: 1px; }
.team-member { --depth: 1; --height: 47%; --offset: -30px; }
.team-codex   { --x: 12.3%; --label: 10%; }
.team-gepetto { --x: 30%; --label: 29%; --height: 51%; --depth: 2; }
.team-baris   { --x: 50%; --label: 50%; --height: 55%; --depth: 3; }
.team-mavi    { --x: 70%; --label: 71%; --height: 51%; --depth: 2; --offset: 30px; }
.team-claude  { --x: 87.7%; --label: 90%; --offset: 30px; }
.team-portrait {
  position: absolute;
  left: var(--x);
  bottom: 16%;
  translate: -50% 0;
  width: auto;
  height: var(--height);
  z-index: var(--depth);
  transform-origin: center;
}
.team-frame {
  position: absolute;
  left: var(--label);
  top: 82%;
  translate: -50% -50%;
  z-index: 4;
  padding: .52cqw 1.02cqw .62cqw;
  border: max(1px, .1cqw) solid #c2934d;
  outline: 1px solid #4b301a;
  background: linear-gradient(#29251f, #151312 66%, #211b16);
  box-shadow: inset 0 0 0 .19cqw #30251b, inset 0 0 0 .25cqw #8d703e, 0 .22cqw .5cqw #150d08, 0 0 .55cqw #d890343d;
  color: #fff1cf;
  text-align: center;
  white-space: nowrap;
  line-height: 1.12;
  font-size: 1.16cqw;
}
.team-frame::before, .team-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  width: .48cqw;
  aspect-ratio: 1;
  border: 1px solid #f4ce85;
  background: #71512d;
  transform: translateY(-50%) rotate(45deg);
}
.team-frame::before { left: -.27cqw; }
.team-frame::after { right: -.27cqw; }
.team-frame strong {
  margin-bottom: .22cqw;
  font: 600 1.86cqw/1.08 Georgia, serif;
  color: #ffe2a6;
}
.team-frame > * { display: grid; }
.team-frame [data-full]::after {
  content: attr(data-full);
  visibility: hidden;
  grid-area: 1 / 1;
}
.team-ink { grid-area: 1 / 1; }
.team-reader, .team-roster {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.team-stage[data-pending] :is(.team-portrait, .team-frame),
.team:has(> .team-stage[data-pending]) + .staff-portraits > figure { opacity: 0; }
@container (max-width: 1000px) {
  .team-roster {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
    list-style: none;
    margin: 1rem var(--gutter) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    column-gap: 2rem;
  }
  .team-roster li { padding: .75rem 0; border-bottom: 1px solid #443725; }
  .team-roster strong { display: block; font: 600 1.15rem Georgia, serif; color: #ffe2a6; }
  .team-roster span { color: #e3d8c5; font-size: 1rem; }
}

.staff-portraits {
  width: min(60rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  container-type: inline-size;
}
.staff-portraits img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent),
    linear-gradient(to bottom, transparent, black 4%, black 90%, transparent);
  mask-composite: intersect;
}
.staff-portraits .team-frame {
  position: relative;
  inset: auto;
  translate: none;
  width: max-content;
  max-width: 100%;
  margin: -1.5rem auto 0;
  padding: .65rem 1.4rem .75rem;
  white-space: normal;
  font-size: clamp(1rem, 1.8cqw, 1.15rem);
}
.staff-portraits strong { font-size: clamp(1.25rem, 2.7cqw, 1.65rem); }
.staff-portraits em { margin-top: .25em; font-size: .88em; }
.about-layout {
  display: block;
  max-width: 60rem;
  min-height: 0;
}
@media (max-width: 560px) {
  .staff-portraits { grid-template-columns: 1fr; }
}
