/* Editorial research chapters, using the group's existing images and copy. */
.research-story {
  padding: clamp(44px, 5vw, 76px) 0 clamp(72px, 8vw, 118px);
  background: #fff;
}

.research-story__shell {
  max-width: 1120px;
}

.research-story__chapter {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "media copy";
  column-gap: clamp(34px, 5.5vw, 82px);
  align-items: center;
  min-width: 0;
}

.research-story__chapter + .research-story__chapter {
  margin-top: clamp(62px, 7vw, 110px);
  padding-top: clamp(54px, 6vw, 84px);
  border-top: 1px solid #dce5e9;
}

.research-story__chapter--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-areas: "copy media";
}

.research-story__copy {
  grid-area: copy;
  min-width: 0;
}

.research-story__heading {
  min-width: 0;
}

.research-story__number {
  display: flex;
  align-items: center;
  width: min(100%, 180px);
  gap: 16px;
  margin-bottom: clamp(20px, 2vw, 30px);
  color: #277998;
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.research-story__number::after {
  flex: 1;
  height: 1px;
  background: #bed1dc;
  content: "";
}

.research-story__heading h2 {
  margin: 0;
  color: #17243a;
  font-family: "Times New Roman", "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(2rem, 2.9vw, 2.75rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}

.research-story__body {
  min-width: 0;
  padding-top: clamp(18px, 2vw, 28px);
}

.research-story__body p {
  max-width: 68ch;
  margin: 0;
  color: #46546a;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  text-align: left;
}

.research-story__media {
  grid-area: media;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  aspect-ratio: 1.28;
  margin: 0;
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(34, 74, 111, .15);
  border-radius: 14px;
  background: #142033;
  box-shadow: 0 20px 48px rgba(18, 44, 75, .13), 0 4px 12px rgba(18, 44, 75, .06);
  transition: box-shadow .35s ease, transform .35s ease;
}

.research-story__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(154, 211, 236, .11), transparent 42%, rgba(7, 21, 40, .2));
  box-shadow: inset 0 0 0 1px rgba(222, 238, 247, .13);
  content: "";
  pointer-events: none;
}

.research-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  filter: saturate(.83) contrast(1.05);
  transition: transform .6s ease;
}

.research-story__media:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(18, 44, 75, .18), 0 5px 16px rgba(18, 44, 75, .08);
}

.research-story__media--semiconductor:hover img {
  transform: scale(1.025);
}

.research-story__chapter--reverse .research-story__media {
  justify-self: end;
}

.research-story__media.research-story__media--moire {
  max-width: 400px;
  aspect-ratio: 1;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.research-story__media--moire::after {
  display: none;
}

.research-story__media--moire:hover {
  box-shadow: none;
  transform: none;
}

.research-story__lattice {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 11px rgba(30, 80, 120, .18));
  animation: research-lattice-float 7s ease-in-out infinite;
}

.research-story__media--moire .research-story__lattice-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.research-story__lattice-layer--base {
  opacity: .78;
}

.research-story__media--moire .research-story__lattice-layer--turning {
  opacity: .6;
  filter: hue-rotate(61deg);
  animation: research-lattice-turn 54s linear infinite;
}

@keyframes research-lattice-turn {
  from { transform: rotate(7deg); }
  to { transform: rotate(367deg); }
}

@keyframes research-lattice-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 991.98px) {
  .research-story__chapter,
  .research-story__chapter--reverse {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "media"
      "body";
    row-gap: 0;
  }

  .research-story__copy {
    display: contents;
  }

  .research-story__heading {
    grid-area: heading;
    padding-bottom: 26px;
  }

  .research-story__body {
    grid-area: body;
  }

  .research-story__number {
    margin-bottom: 18px;
  }

  .research-story__media {
    max-width: 540px;
    aspect-ratio: 1.42;
    justify-self: center;
  }

  .research-story__chapter--reverse .research-story__media {
    justify-self: center;
  }

  .research-story__body {
    padding-top: 24px;
  }
}

@media (max-width: 575.98px) {
  .research-story {
    padding-top: 38px;
    padding-bottom: 78px;
  }

  .research-story__chapter + .research-story__chapter {
    margin-top: 56px;
    padding-top: 48px;
  }

  .research-story__heading {
    padding-bottom: 22px;
  }

  .research-story__heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .research-story__media {
    aspect-ratio: 1.24;
    border-radius: 12px;
  }

  .research-story__body {
    padding-top: 20px;
  }

  .research-story__body p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-story__media,
  .research-story__media img {
    transition: none;
  }

  .research-story__lattice,
  .research-story__media--moire .research-story__lattice-layer--turning {
    animation: none;
  }

  .research-story__media--moire .research-story__lattice-layer--turning {
    transform: rotate(7deg);
  }
}
