/* The front row and the rising story panel share the same scroll boundary. */
.reviews {
  position: relative;
  z-index: 0;
  min-height: 0;
  padding-block: 11rem 13.7rem;
}
.card-row {
  min-width: 0;
  /* Two gaps absorb the width removed from the three cards. */
  gap: calc(0.875 * var(--home-unit) + 15px);
  perspective: none;
}
.card-row .testimonial {
  flex: 1 1 0;
  min-width: 0;
  min-height: 410px;
  container-type: inline-size;
  width: auto;
  aspect-ratio: 294/350;
  border-radius: calc(1.85 * var(--home-unit));
  transform-origin: 50% 50%;
  transform: translate(var(--travel-x, 0%), var(--travel-y, 0%)) rotate(var(--turn, 0deg))
    scale(var(--zoom, 1));
}
.card-row .flipper {
  transition: transform 0.16s ease-out;
  transform: perspective(58rem) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}
.card-row .back {
  display: none;
}
.card-row .metric {
  font-size: min(2.65rem, 12.3cqw);
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.card-row .card-1 .metric {
  font-size: min(2.57rem, 11.9cqw);
}
.card-row .metric small {
  font-size: min(0.91rem, 4.1cqw);
  white-space: normal;
  line-height: 1.35;
}
.card-row .client-sign {
  height: 1.35rem;
  opacity: 0.56;
}
@media (min-width: 800px) {
  .card-row .front {
    border-radius: 8.6cqw;
  }
  .card-row .chip {
    font-size: 3.49cqw;
    padding: 1.49cqw 2.6cqw;
    border-radius: 999px;
  }
  .card-row .metric {
    font-size: 12.3cqw;
  }
  .card-row .card-1 .metric {
    font-size: 11.9cqw;
  }
  .card-row .metric small {
    font-size: 4.23cqw;
    margin-top: 1.86cqw;
  }
  .card-row .client-sign {
    height: 6.28cqw;
    max-width: 32.56cqw;
  }
}
.story-track {
  position: relative;
  z-index: 1;
  height: 295vh;
}
.story-scene {
  display: block;
  background: #e9eceb;
  border-radius: var(--corner, 3.75rem);
  overflow: hidden;
  isolation: isolate;
}
.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: 45.14% 54.86%;
  align-content: start;
  align-items: start;
  width: calc(min(100%, var(--wrap)) - 2 * var(--pad));
  max-width: none;
  min-height: 0;
  padding: 0;
  top: var(--content-y, 12vh);
  container-type: inline-size;
}
.story-heading {
  margin: 0;
  position: relative;
  min-width: 0;
  transform: scale(var(--heading-scale, 1));
  transform-origin: top left;
}
.story-grid .story-heading {
  font:
    400 var(--section-heading-size)/1.115 "OPPO Sans",
    sans-serif;
  letter-spacing: -0.025em;
}
.story-line {
  display: block;
  white-space: nowrap;
  width: max-content;
}
.story-investment {
  margin-top: 0.25em;
  font-size: 36px;
}
.story-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
  font:
    400 calc(min(28px, 2.4cqw, 3.1svh) - 2pt)/1.55 "OPPO Sans",
    sans-serif;
  letter-spacing: -0.01em;
  opacity: var(--copy-visibility, 0);
  color: #181d1f;
}
.story-copy p {
  transition: none;
}
.story-copy p + p {
  margin-top: 0.63em;
}
.story-word {
  opacity: var(--ink, 0.145);
}
.story-copy mark {
  background: linear-gradient(#f6b7b7, #f6b7b7) left bottom / var(--highlight, 0%) 100% no-repeat;
  color: inherit;
}
.story-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 799px) {
  .reviews {
    padding-block: 4rem;
    min-height: 28rem;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .card-row {
    justify-content: flex-start;
    width: max-content;
    padding-right: var(--pad);
  }
  .card-row .testimonial {
    width: calc(min(70vw, 19rem) - 10px);
    flex: none;
    scroll-snap-align: center;
  }
  .card-row .metric {
    font-size: 2rem;
  }
  .card-row .back {
    display: flex;
  }
  .card-row [aria-pressed="true"] .flipper {
    transform: rotateY(180deg);
  }
  .story-track {
    height: auto;
  }
  .story-scene {
    height: auto;
    position: relative;
    border-radius: 1.6rem;
    padding: calc(var(--header) + 1rem) 0 2rem;
  }
  .story-grid {
    display: block;
    width: calc(100% - 2 * var(--pad));
    height: auto;
    top: 0;
  }
  .story-grid .story-heading {
    line-height: 1.03;
    margin-bottom: 1.3rem;
  }
  .story-copy {
    opacity: 1;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }
  .story-word {
    opacity: 1;
  }
  .story-copy mark {
    background-size: 100% 100%;
  }
  .story-illustration {
    position: relative;
    inset: auto;
    display: block;
    height: 8rem;
    margin-top: 1.5rem;
  }
}
/* Tall 4K viewports need a shorter reading panel and scroll sequence. */
@media (min-width: 2300px) and (min-height: 1100px) and (prefers-reduced-motion: no-preference) {
  .story-track {
    --story-panel-height: 720px;
    height: calc(var(--story-panel-height) + clamp(950px, 100svh, 1500px));
  }
  .story-scene {
    top: var(--header);
    height: var(--story-panel-height);
  }
}

@media (min-width: 800px) and (prefers-reduced-motion: reduce) {
  .story-track {
    height: auto;
  }
  .story-scene {
    position: relative;
    height: auto;
    padding: 7rem 0;
  }
  .story-grid {
    top: 0;
  }
  .story-copy,
  .story-word {
    opacity: 1;
  }
  .story-copy mark {
    background-size: 100% 100%;
  }
}
