/* Um integrante abre por vez para apresentar a equipe sem criar outra página. */
.team-showcase{
  margin-bottom:clamp(72px,8vw,118px);
  padding:clamp(38px,5vw,68px);
  border-radius:26px;
  overflow:hidden;
  background:#171214;
  color:#fffaf9;
}
.team-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
  margin-bottom:40px;
}
.team-heading h2{
  max-width:720px;
  font-size:clamp(38px,4.5vw,64px);
  font-weight:600;
  line-height:1.04;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.team-heading p{
  max-width:570px;
  margin-top:18px;
  color:#d8c8cd;
  font-size:15px;
  line-height:1.65;
}
.team-controls{display:flex;gap:10px;flex:none}
.team-controls button{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #ffffff38;
  border-radius:50%;
  background:#ffffff0a;
  color:#fffaf9;
  cursor:pointer;
  transition:background .18s,border-color .18s,transform .12s,opacity .18s;
}
.team-controls button svg{width:21px;height:21px}
.team-controls button:hover{background:#ffffff16;border-color:#ffffff70}
.team-controls button:active{transform:scale(.94)}
.team-controls button:focus-visible{outline:2px solid #fffaf9;outline-offset:4px}
.team-controls button:disabled{cursor:default;opacity:.3}

.team-rail{display:flex;gap:14px;overflow:hidden;cursor:grab}
.team-rail:active{cursor:grabbing}
.team-card{
  position:relative;
  flex:1 1 0;
  min-width:0;
  min-height:520px;
  overflow:hidden;
  border:1px solid #ffffff24;
  border-radius:20px;
  background:#2b2023;
  cursor:pointer;
  isolation:isolate;
  outline:none;
  transition:border-color .28s,box-shadow .35s,transform .35s cubic-bezier(.22,1,.36,1);
}
.team-card.is-active{z-index:1;border-color:#ea1d2c80;box-shadow:0 20px 46px #00000026}
.team-card:active{transform:scale(.992)}
.team-card:focus-visible{outline:2px solid #fffaf9;outline-offset:4px}
.team-card::after{
  content:'';
  position:absolute;
  z-index:1;
  inset:31% 0 0;
  background:linear-gradient(transparent,#120e0fe8 68%,#120e0f);
  pointer-events:none;
}
.team-photo{position:absolute;inset:0;overflow:hidden;background:#302327}
.team-photo img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center top;
  transform:scale(1);
  transition:transform .7s cubic-bezier(.22,1,.36,1),filter .3s;
}
.team-card.is-active .team-photo img{transform:scale(1.03);filter:saturate(1.04)}
.team-card-copy{
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  padding:30px 28px;
}
.team-card-copy h3{
  color:#fffaf9;
  font-size:clamp(23px,1.8vw,31px);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.team-card.is-active .team-card-copy h3{font-size:clamp(27px,2.05vw,34px)}
.team-role{
  margin-top:10px;
  color:#ff8996;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
  text-wrap:balance;
}
.team-bio-wrap{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  transform:translateY(12px);
  transition:grid-template-rows .5s cubic-bezier(.22,1,.36,1),opacity .28s ease,transform .5s cubic-bezier(.22,1,.36,1);
}
.team-bio{
  min-height:0;
  max-width:340px;
  overflow:hidden;
  padding-top:18px;
  color:#eee3e6;
  font-size:14px;
  line-height:1.58;
}
.team-card.is-active .team-bio-wrap{grid-template-rows:1fr;opacity:1;transform:translateY(0)}

@media(hover:hover) and (pointer:fine){
  .team-card:not(.is-active):hover .team-photo img{transform:scale(1.018)}
  .team-card:not(.is-active):hover{border-color:#ffffff4f}
}

@media(max-width:1000px){
  .team-showcase{padding:42px 34px}
  .team-rail{
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  .team-rail::-webkit-scrollbar{display:none}
  .team-card{flex:0 0 min(52vw,420px);min-height:510px;scroll-snap-align:center}
  .team-card-copy{padding:25px 22px}
}

@media(max-width:800px){
  .team-showcase{width:calc(100% - 48px);padding:38px 0 30px;border-radius:22px}
  .team-heading{align-items:center;margin:0 26px 30px}
  .team-heading h2{font-size:clamp(34px,8.8vw,46px)}
  .team-heading p{max-width:520px;font-size:14px}
  .team-rail{gap:12px;padding:0 26px 4px}
  .team-card{flex-basis:min(82vw,410px);min-height:500px;scroll-snap-align:center}
}

@media(max-width:560px){
  .team-showcase{width:calc(100% - 20px);margin-bottom:72px;padding-top:31px}
  .team-heading{align-items:flex-start;margin:0 20px 24px}
  .team-heading h2{max-width:260px;font-size:34px}
  .team-heading p{max-width:270px;font-size:13px;line-height:1.6}
  .team-controls{align-self:flex-start;padding-top:3px}
  .team-controls button{width:42px;height:42px}
  .team-rail{padding-inline:20px}
  .team-card{flex-basis:84vw;min-height:465px;border-radius:17px}
  .team-card-copy{padding:24px 21px}
  .team-card-copy h3{font-size:25px}
  .team-card.is-active .team-card-copy h3{font-size:29px}
  .team-role{font-size:13px}
  .team-bio{font-size:13px}
}

@media(max-width:410px){
  .team-heading{display:block}
  .team-controls{justify-content:flex-end;margin-top:20px}
  .team-card{min-height:445px}
}

@media(prefers-reduced-motion:reduce){
  .team-card,.team-photo img,.team-bio-wrap,.team-controls button{transition:none}
  .team-rail{scroll-behavior:auto}
}
