.about {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  transition: min-height .45s cubic-bezier(.2,.8,.25,1);
}

.about-copy {
  transition: transform .65s cubic-bezier(.2,.8,.25,1), opacity .45s ease;
}

.about-team-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.about.is-team-mode {
  min-height: 790px;
}

.about.is-team-mode .about-copy {
  opacity: 0;
  transform: translateX(110vw);
  pointer-events: none;
}

.team-experience {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease .28s, visibility 0s linear .7s;
}

.about.is-team-mode .team-experience {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: .25s, 0s;
}

.team-shell {
  position: relative;
  height: 100%;
  min-height: 650px;
  padding-top: 42px;
  padding-bottom: 58px;
}

.team-tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 170px));
  justify-content: center;
  gap: 8px;
}

.team-tabs button {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 18px;
  color: var(--pine);
  font: 600 12px var(--sans);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.team-tabs button[aria-selected="true"] {
  border-color: var(--pine);
  background: var(--pine);
  color: white;
}

.team-coverflow {
  position: relative;
  z-index: 2;
  height: 260px;
  margin-top: 28px;
  perspective: 1200px;
  outline: none;
}

.team-cover-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 190px;
  height: 240px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #aeb4b0;
  color: var(--pine);
  cursor: pointer;
  opacity: 0;
  transform: translateX(90vw) scale(.76) rotateY(-22deg);
  transform-origin: center;
  transition: transform .65s cubic-bezier(.2,.8,.25,1), opacity .5s ease, filter .4s ease;
  transition-delay: calc(var(--team-order) * 150ms);
}

.about.is-team-mode .team-cover-card {
  opacity: var(--team-opacity, .72);
  transform: translateX(calc(-50% + var(--team-expanded-x, 0px))) scale(var(--team-scale, .82)) rotateY(var(--team-rotate, 0deg));
}

.team-cover-card.is-active {
  z-index: 3;
  --team-opacity: 1;
  filter: none;
}

.team-cover-card span {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(14,40,35,.35);
  font: 700 72px var(--display);
}

.team-cover-card b {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 92px;
  padding: 10px 13px;
  background: var(--paper);
  font: 11px var(--mono);
  text-align: left;
}

.team-detail {
  position: absolute;
  left: 50%;
  top: 170px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(260px, .86fr) 1.14fr;
  width: min(920px, calc(100% - 120px));
  min-height: 450px;
  background: var(--paper);
  opacity: 0;
  transform: translateX(-50%) scaleX(.18) scaleY(.35);
  transform-origin: center;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.2,.8,.25,1), opacity .25s ease;
}

.team-experience.is-detail-ready .team-coverflow {
  z-index: 1;
  opacity: .16;
  transform: translateY(-18px) scale(.9);
  transition: opacity .4s ease, transform .6s ease;
}

.team-experience.is-detail-ready .team-detail {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.team-detail.is-switching {
  opacity: 0;
  transform: translateX(-50%) scale(.96);
  transition-duration: .22s;
}

.team-detail-portrait {
  display: grid;
  place-items: center;
  min-height: 450px;
  background: #aeb4b0;
  color: rgba(14,40,35,.35);
  font: 700 118px var(--display);
}

.team-detail-copy {
  align-self: center;
  padding: 45px clamp(34px,5vw,72px);
}

.team-detail-copy h3 {
  margin: 0 0 22px;
  color: var(--pine);
  font: 700 clamp(42px,5vw,68px)/1 var(--display);
  letter-spacing: -.055em;
}

.team-detail-copy > p:last-child {
  max-width: 440px;
  margin: 0;
  color: #42514d;
  font-size: 17px;
  line-height: 1.6;
}

.team-back {
  position: absolute;
  left: 0;
  bottom: 28px;
  z-index: 5;
  border: 0;
  background: transparent;
  color: var(--pine);
  padding: 9px 0;
  font: 600 12px var(--sans);
  cursor: pointer;
}

@media (max-width: 780px) {
  .about,
  .about.is-team-mode {
    min-height: 790px;
  }

  .team-shell {
    min-height: 790px;
    padding-top: 30px;
    padding-bottom: 62px;
  }

  .team-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-coverflow {
    height: 190px;
    margin-top: 22px;
  }

  .team-cover-card {
    width: 130px;
    height: 170px;
  }

  .team-detail {
    top: 145px;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 540px;
  }

  .team-detail-portrait {
    min-height: 265px;
    font-size: 86px;
  }

  .team-detail-copy {
    padding: 27px 25px 30px;
  }

  .team-detail-copy h3 {
    margin-bottom: 14px;
    font-size: 43px;
  }

  .team-detail-copy > p:last-child {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-copy,
  .team-experience,
  .team-cover-card,
  .team-coverflow,
  .team-detail {
    transition: none!important;
  }
}
