/* A shared ribbon motif connects the four dimensions of the research. */
.section-6 > .factor-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.section-6 > .factor-cards > .factor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  padding: 44px 24px 32px;
  border: 1px solid #e7e9ef;
  border-radius: 24px;
  background: #f4f6fa !important;
  color: #22263b;
  text-align: left;
}
.factor-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* Each card is a window onto the same full-width illustration, gaps included. */
  background-color: #ffb800;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1312 400' preserveAspectRatio='none'%3E%3Cpath d='M-95 -45 C80 300 385 220 432 -55 C470 -265 280 80 630 192 C920 285 1175 272 1410 -25' fill='none' stroke='white' stroke-width='106'/%3E%3C/svg%3E");
  mask-size: calc(400% + 48px) 100%;
  mask-position: 0 0;
  mask-repeat: no-repeat;
}
.factor-card:nth-child(2) .factor-card__ribbon { mask-position: 33.333333% 0; }
.factor-card:nth-child(3) .factor-card__ribbon { mask-position: 66.666667% 0; }
.factor-card:nth-child(4) .factor-card__ribbon { mask-position: 100% 0; }
.factor-card__title {
  min-height: 2lh;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.factor-card__description {
  min-height: 48px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}
.factor-card__details {
  flex: 1;
  margin: 0;
  padding-top: 20px;
  color: #586071;
  font-size: 15px;
  line-height: 23px;
  text-wrap: pretty;
}
@media (max-width: 1050px) {
  .section-6 > .factor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .section-6 > .factor-cards { grid-template-columns: minmax(0, 1fr); }
  .section-6 > .factor-cards > .factor-card { padding: 36px 28px 28px; }
  .factor-card__title { min-height: 0; }
  .factor-card__description { min-height: 0; margin-bottom: 20px; }
  .factor-card__details { flex: auto; }
}
