.story {
  padding-top: 11rem;
  padding-bottom: 11rem;
}
.story__title {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 6.4rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  text-wrap: pretty;
}
.story__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}

.passion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 9.6rem;
  align-items: center;
}
.passion__media {
  aspect-ratio: 3 / 4;
}
.passion__text {
  margin-top: 3.6rem;
  display: grid;
  gap: 2.2rem;
}

.member__media {
  aspect-ratio: 3 / 4;
}
.team__duo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 7.2rem;
  row-gap: 4.8rem;
}
.team__title {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  /* Trims the line box down to the cap height so the title's top edge lines up with the photo's. */
  text-box-trim: trim-start;
  text-box-edge: cap alphabetic;
}
.team__photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}
.team__text {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 7.2rem;
  display: grid;
  gap: 2.2rem;
  max-width: 52rem;
}
.team__names {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem 4rem;
}
.team__person {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}
.member__name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.2rem;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  transition: color 0.4s ease;
}
.member__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--ie-wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.member__role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--ie-wine);
}
@media (hover: hover) {
  .member:hover .member__name {
    color: var(--ie-wine);
  }
  .member:hover .member__name::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1099px) {
  .story {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .story__title {
    font-size: 5.2rem;
  }
  .story__body {
    font-size: 1.9rem;
  }
  .passion {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4.8rem;
  }
  .passion__media {
    width: 100%;
    max-width: 52rem;
  }
  .team__duo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 4rem;
  }
  .team__title,
  .team__photo,
  .team__text {
    grid-column: 1;
    grid-row: auto;
  }
  .team__text {
    margin-top: 0;
  }
  .team__photo {
    width: 100%;
    max-width: 52rem;
  }
  .member__name {
    font-size: 2.8rem;
  }
}
@media (max-width: 767px) {
  .story {
    padding-top: 6.4rem;
    padding-bottom: 6.4rem;
  }
  .story__title {
    margin-top: 0;
    font-size: 3.6rem;
  }
  .story__body {
    font-size: 1.8rem;
  }
  .passion {
    row-gap: 4rem;
  }
  .passion__text {
    margin-top: 2.4rem;
  }
  .team__duo {
    row-gap: 3.2rem;
  }
  .team__names {
    margin-top: 2rem;
  }
}
