/* Progressive enhancement for the learning headline and editorial photographs.
   Content is fully visible unless section-motion.js has initialized it. */
.how-band {
  align-items: center;
}

.how-band .how-title {
  align-self: center;
  min-width: 0;
  text-align: center;
  container-type: inline-size;
}

.how-band .how-title .eyebrow {
  margin-inline: auto;
  max-width: 32rem;
}

.how-band .how-headline {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: .06em .1em .12em;
  font-size: clamp(30px, 4.1vw, 66px);
  line-height: 1.09;
  letter-spacing: -.052em;
  text-align: center;
  text-wrap: initial;
  overflow: clip;
}

@supports (font-size: 1cqw) {
  .how-band .how-headline {
    font-size: clamp(28px, 10cqw, 66px);
  }
}

.how-band .how-headline > .how-line {
  display: block;
  max-width: 100%;
  padding: .06em .08em .12em;
  margin-block: -.06em -.12em;
  overflow: hidden;
  color: #fff;
  white-space: nowrap;
}

.how-band .how-headline .how-line-text {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  vertical-align: top;
  opacity: 1;
  transform: none;
}

.how-band .how-headline > .how-line-muted,
.how-band .how-headline .how-line-text.how-line-muted {
  color: #b7b7b7;
}

.how-headline.is-section-heading .how-line-text {
  opacity: var(--section-line-opacity, 1);
  transform: translate3d(var(--section-line-x, 0px), 0, 0);
  will-change: transform, opacity;
  transition: none;
}

.how-headline.is-section-settled .how-line-text {
  will-change: auto;
}

.story-photo[data-photo-reveal] {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--story-photo-ratio, 4 / 5);
  overflow: hidden;
  border-radius: 6px;
  background: #172019;
}

.intro-art .story-photo-image {
  aspect-ratio: 4 / 5;
  height: auto;
}

.story-photo > .story-photo-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--story-photo-position, 50% 42%);
  border-radius: 0;
  opacity: 1;
  transform: none;
  transform-origin: 50% 50%;
}

.story-photo::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 14, 12, .93), rgba(7, 14, 12, .54) 43%, rgba(7, 14, 12, 0));
}

.story-photo .story-photo-caption {
  position: absolute;
  inset: auto clamp(24px, 2.5vw, 38px) clamp(26px, 2.8vw, 40px);
  z-index: 2;
  max-width: calc(100% - 48px);
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.story-photo .story-photo-caption strong {
  display: block;
  color: #fff;
  font: inherit;
}

.story-photo .story-photo-caption p,
.story-photo .story-photo-caption small,
.story-photo .story-photo-caption .story-photo-note {
  display: block;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: pretty;
}

.story-photo.is-section-photo > .story-photo-image {
  clip-path: inset(0 0 var(--section-photo-inset, 0%) 0);
  opacity: var(--section-photo-opacity, 1);
  transform: scale(var(--section-photo-scale, 1));
  will-change: transform, clip-path, opacity;
  transition: none;
}

.story-photo.is-section-settled > .story-photo-image {
  will-change: auto;
}

/* The user's pause control settles these reading surfaces immediately. */
.motion-paused .how-headline .how-line-text {
  opacity: 1 !important;
  transform: none !important;
  will-change: auto;
}

.motion-paused .story-photo > .story-photo-image {
  clip-path: none !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto;
}

@media (max-width: 767px) {
  .how-band .how-title {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .how-band .how-headline {
    font-size: clamp(28px, 10vw, 46px);
  }

  .story-photo[data-photo-reveal] {
    aspect-ratio: 4 / 5;
  }

  .story-photo .story-photo-caption {
    font-size: clamp(28px, 8.3vw, 38px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-headline .how-line-text {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .story-photo > .story-photo-image {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }
}
