/* Content-entry heroes only. Geometry follows the learning landing page. */
.content-top-hero {
  overflow: hidden;
}

.content-top-hero__intro {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 330px;
  padding: 55px max(20px, calc((100% - var(--content-width)) / 2)) 110px;
  align-items: flex-start;
  justify-content: center;
  background: var(--content-top-hero-bg);
}

.content-top-hero__intro::after {
  position: absolute;
  z-index: 0;
  right: -3%;
  bottom: -1px;
  left: -3%;
  height: 82px;
  background: var(--content-top-hero-curve, #fff);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  content: "";
  pointer-events: none;
}

.content-top-hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  text-align: center;
}

.content-top-hero__title {
  margin: 0 0 20px;
  color: var(--content-top-hero-title-color, #fff);
  font-size: clamp(2.375rem, var(--font-fluid-vw-4, 4vw), 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-wrap: balance;
  -webkit-text-stroke: var(--content-top-hero-title-stroke, 3px) var(--content-top-hero-title-outline, #3c3c3c);
  paint-order: stroke fill;
}

.content-top-hero__lead {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.9;
}

.content-top-hero__visual {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  animation: content-top-hero-float var(--float-duration, 5.4s) ease-in-out var(--float-delay, 0s) infinite;
  will-change: transform;
}

.content-top-hero__note { display: block; margin-top: 9px; font-size: .75rem; }
@keyframes content-top-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--float-distance, -12px)); }
}
@media (min-width: 1100px) {
  .content-top-hero__copy { width: min(100%, 800px); }
  .content-top-hero__title { white-space: nowrap; }
  .content-top-hero__lead { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 1024px) {
  .content-top-hero__intro { min-height: 320px; }
  .content-top-hero__copy { width: min(48vw, 470px); }
}
@media (max-width: 767px) {
  .content-top-hero__intro { min-height: 430px; padding: 42px 15px 190px; }
  .content-top-hero__intro::after { height: 62px; }
  .content-top-hero__copy { width: 100%; }
  .content-top-hero__title { font-size: 2.375rem; }
}
@media (max-width: 480px) {
  .content-top-hero__intro { min-height: 390px; padding-bottom: 160px; }
  .content-top-hero__title { font-size: 2rem; }
  .content-top-hero__lead { font-size: .75rem; }
  .content-top-hero__intro::after { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .content-top-hero__visual { animation: none; }
}
