.employee-showcase {
  --why-width: calc(100vw - 100px);
  --why-contact-ratio: 1000 / 373;
  position: relative;
  z-index: 30;
  min-height: 100vh;
  padding: 10px clamp(18px, 4vw, 64px) 10px;
  overflow: hidden;
  background: #f7f4ee;
  color: #211f1b;
}

.employee-showcase__intro {
  position: relative;
  z-index: 1;
  width: var(--why-width);
  max-width: none;
  aspect-ratio: var(--why-contact-ratio);
  margin: 0 auto;
  isolation: isolate;
  text-align: center;
}

.employee-showcase__why {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 430;
  overflow: visible;
  pointer-events: none;
}

.employee-showcase__why text {
  fill: #0d0c0b;
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 520px;
  font-weight: 700;
  letter-spacing: -.055em;
}

.employee-showcase__question-wrap {
  position: absolute;
  top: calc(72% + 10px);
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.employee-showcase__question,
.employee-showcase__question-outline {
  margin: 0;
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}

.employee-showcase__question {
  position: relative;
  z-index: 1;
  color: #fff;
  mix-blend-mode: difference;
}

.employee-showcase__question-outline {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: .8px #000;
  paint-order: stroke fill;
  pointer-events: none;
}

.employee-accordion {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1560px, 100%);
  height: clamp(540px, 48vw, 680px);
  margin: 0 auto;
  gap: 12px;
}

.employee-card {
  position: relative;
  min-width: 0;
  flex: 0 0 clamp(94px, 8vw, 126px);
  overflow: hidden;
  border: 1px solid rgba(33, 31, 27, .11);
  border-radius: 26px;
  background: #e3dfd7;
  box-shadow: 0 20px 55px rgba(49, 43, 33, .07);
  transition: flex-basis .72s cubic-bezier(.22, .61, .36, 1), flex-grow .72s cubic-bezier(.22, .61, .36, 1), background .35s ease;
}

.employee-card.is-active {
  flex: 1 1 980px;
  background: #ebe7df;
}

.employee-card:not(.is-active):hover {
  background: #dcd7ce;
  box-shadow: 0 22px 62px rgba(49, 43, 33, .11);
}

.employee-card__trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  padding: 24px 12px 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 1;
  transition: opacity .24s ease;
}

.employee-card__trigger:focus-visible {
  outline: 2px solid #211f1b;
  outline-offset: -5px;
}

.employee-card.is-active .employee-card__trigger {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.employee-card__collapsed-name {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.employee-card__thumbnail {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 118px;
  height: 205px;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.92);
}

.employee-card__panel {
  position: absolute;
  inset: 0;
  display: grid;
  min-width: 680px;
  grid-template-columns: minmax(310px, .9fr) minmax(360px, 1.1fr);
  opacity: 0;
  transition: opacity .25s ease;
}

.employee-card.is-active .employee-card__panel {
  opacity: 1;
  transition-delay: .20s;
}

.employee-card__visual {
  position: relative;
  min-width: 0;
  padding: clamp(32px, 3.2vw, 50px) clamp(26px, 3.2vw, 46px) 0;
  overflow: hidden;
}

.employee-card__visual h3 {
  position: relative;
  z-index: 2;
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.employee-card__image {
  position: absolute;
  right: 3%;
  bottom: 0;
  left: 3%;
  width: 94%;
  height: 76%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.96);
}

.employee-card__copy {
  display: flex;
  padding: clamp(34px, 4vw, 68px);
  align-items: center;
  border-left: 1px solid rgba(33, 31, 27, .08);
  background: rgba(255, 255, 255, .42);
}

.employee-card__copy p {
  max-width: 34em;
  margin: 0;
  color: rgba(33, 31, 27, .76);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.85;
  letter-spacing: .018em;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .employee-accordion {
    height: 590px;
  }

  .employee-card {
    flex-basis: 84px;
  }

  .employee-card__panel {
    min-width: 590px;
    grid-template-columns: minmax(250px, .82fr) minmax(330px, 1.18fr);
  }

  .employee-card__visual h3 {
    font-size: 34px;
  }

  .employee-card__copy {
    padding: 34px;
  }

  .employee-card__copy p {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .employee-showcase {
    padding: 10px 16px 10px;
  }

  .employee-accordion {
    height: auto;
    flex-direction: column;
    gap: 12px;
  }

  .employee-card,
  .employee-card.is-active {
    width: 100%;
    min-height: 0;
    flex: none;
    border-radius: 22px;
    transition: height .68s cubic-bezier(.22, .61, .36, 1), background .35s ease;
  }

  .employee-card {
    height: 112px;
  }

  .employee-card.is-active {
    height: min(720px, 84vh);
  }

  .employee-card__trigger {
    display: flex;
    padding: 0 22px 0 122px;
    align-items: center;
  }

  .employee-card__collapsed-name {
    position: static;
    transform: none;
    font-size: 18px;
    writing-mode: horizontal-tb;
  }

  .employee-card__thumbnail {
    bottom: -30px;
    left: 16px;
    width: 94px;
    height: 150px;
    transform: none;
  }

  .employee-card__panel {
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(310px, 1.05fr) minmax(250px, .95fr);
  }

  .employee-card__visual {
    padding: 28px 26px 0;
  }

  .employee-card__visual h3 {
    max-width: 10ch;
    font-size: clamp(28px, 8vw, 36px);
  }

  .employee-card__image {
    right: 0;
    left: 26%;
    width: 74%;
    height: 84%;
    object-position: right bottom;
  }

  .employee-card__copy {
    padding: 26px;
    align-items: center;
    border-top: 1px solid rgba(33, 31, 27, .08);
    border-left: 0;
  }

  .employee-card__copy p {
    font-size: 17px;
    line-height: 1.72;
  }

  .employee-showcase__question-outline {
    -webkit-text-stroke-width: .45px;
  }
}

@media (max-width: 420px) {
  .employee-showcase__question,
  .employee-showcase__question-outline {
    font-size: 20px;
  }

  .employee-card.is-active {
    height: 690px;
  }

  .employee-card__panel {
    grid-template-rows: 340px 1fr;
  }

  .employee-card__visual h3 {
    font-size: 29px;
  }

  .employee-card__copy {
    padding: 22px;
  }

  .employee-card__copy p {
    font-size: 16px;
    line-height: 1.7;
  }

  .employee-showcase__question-outline {
    -webkit-text-stroke-width: .4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-card,
  .employee-card__panel,
  .employee-card__trigger {
    transition-duration: .01ms !important;
  }
}
