.team {
  padding: clamp(32px, 4vw, 70px) 0 clamp(48px, 7vw, 110px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 14px;
}

.team-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 42px);
}
.team-heading h2 {
  margin: .08em 0 0 -.055em;
  color: var(--ink);
  font-size: clamp(70px, 9vw, 148px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .95;
}
.team-heading > p {
  margin: 0 0 .3em;
  color: #c7c9cd;
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.35;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 84px) clamp(14px, 2vw, 32px);
  align-items: start;
}
.team-member {
  min-width: 0;
  grid-column: span 2;
}
.team-member[data-team-member="wolf"],
.team-member[data-team-member="zizou"],
.team-member[data-team-member="felipe"],
.team-member[data-team-member="binaux"],
.team-member[data-team-member="dayme"],
.team-member[data-team-member="quintana"] { grid-column: span 3; }
.team-portrait {
  display: block;
  color: var(--ink);
  cursor: zoom-in;
}
.team-print {
  position: relative;
  aspect-ratio: 4 / 5;
  --fade-x: clamp(11px, 4.5%, 34px);
  --fade-top: 4%;
  --fade-bottom: 7%;
  background: transparent;
  mask-image:
    linear-gradient(90deg, transparent, #000 var(--fade-x), #000 calc(100% - var(--fade-x)), transparent),
    linear-gradient(transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
  mask-composite: intersect;
}
.team-print > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-byline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.team-member h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 46px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.team-enlarge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  color: #c4c7cd;
  min-height: 32px;
  font-size: 12px;
  line-height: 1;
}
.team-enlarge span { font-size: 18px; }
.team-portrait:hover .team-enlarge,
.team-portrait:focus-visible .team-enlarge { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.team-portrait:focus-visible { outline-offset: 4px; }
.team-member-info { display: grid; justify-items: start; gap: 7px; }
.team-role { margin: 5px 0 0; color: #c8cbd1; font-size: 14px; line-height: 1.4; }
.team-signature, .team-fullname, .team-photo-credit { margin: 0; color: #b1b5bc; font-size: 12px; line-height: 1.45; }
.team-signature-her {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: #000;
}
.team-signature-her img { display: block; width: 88px; height: auto; filter: brightness(0) invert(1); }
.team-signature-raven { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; }
.team-signature-raven img { display: block; width: 34px; height: 34px; }
.team-member-detail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 4px;
}
.team-instagram, .team-credits, .team-viewer-photo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #747982;
  text-underline-offset: 4px;
}
.team-instagram:hover, .team-credits:hover, .team-viewer-photo:hover { text-decoration-color: currentColor; }
.team-audio-note { margin: 0; color: var(--dim); font-size: 12px; line-height: 1.6; }
.team-audio-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #747982; }

.team-placeholder { margin: 6px 0 0; color: var(--dim); font-size: 12px; }
.team-viewer {
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #151618;
  border: 1px solid #474a50;
}
.team-viewer::backdrop { background: rgb(0 0 0 / 93%); }
.team-viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.team-viewer-title { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.team-viewer-role { color: var(--dim); font-size: 12px; line-height: 1.35; margin: 2px 0 0; }
.team-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px;
  border-top: 1px solid var(--line);
}
.team-viewer-alternate {
  padding: 7px 0;
  border: 0;
  color: var(--ink);
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.team-viewer-close {
  border: 1px solid #666b73;
  padding: 8px 12px;
  background: #1b1d20;
  color: var(--ink);
  font-size: 13px;
}
.team-viewer-close:hover { background: #2d3035; }
.team-viewer-image {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}
body.team-viewer-open { overflow: hidden; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid > .team-member { grid-column: auto; }
  .team-grid > .team-member-text {
    display: grid;
    grid-template-columns: 24% 1fr;
    align-items: center;
    gap: 24px;
    grid-column: 1 / -1;
    padding-block: 14px;
    border-block: 1px solid var(--line);
  }
  .team-member h3 { font-size: clamp(24px, 3.4vw, 31px); }
}
@media (max-width: 600px) {
  .team-heading { align-items: start; flex-direction: column; gap: 15px; }
  .team-heading h2 { font-size: clamp(65px, 15vw, 86px); }
  .team-heading > p { margin: 0; font-size: 13px; }
  .team-heading > p br { display: none; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-member h3 { font-size: 31px; }
  .team-grid > .team-member-text { display: block; padding: 0; border: 0; }
  .team-viewer { max-width: calc(100vw - 12px); }
  .team-viewer-top { gap: 8px; padding: 8px 10px; }
  .team-viewer-controls { gap: 8px; }
  .team-viewer-title { font-size: 16px; }
  .team-viewer-role, .team-viewer-photo { font-size: 11px; }
  .team-viewer-close { padding: 7px 9px; }
}

/* Preserve the paper and all printed lettering when a poster is opened full size. */
.team-viewer-image { mask-image: none; }
.team-member-info { margin-top: 1px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .team-enlarge span { transition: transform 180ms ease; }
  .team-portrait:hover .team-enlarge span { transform: scale(1.18); }
}
