.hero {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  margin-top: 24px;
  padding: 54px 46px 44px;
  overflow: hidden;
  border: 1px solid rgba(204, 199, 184, .78);
  border-radius: 24px;
  background: #f5f1e7 url('/assets/ivs-book-learning-banner.svg') center / cover no-repeat;
  box-shadow: 0 22px 60px rgba(48, 45, 38, .07);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 246, 239, .98) 0%, rgba(248, 246, 239, .93) 38%, rgba(248, 246, 239, .28) 62%, rgba(248, 246, 239, 0) 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 620px;
}

.hero .overline {
  margin-bottom: 18px;
  color: #51685a;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(50px, 6.1vw, 82px);
  line-height: .94;
}

.hero-copy > p {
  display: none;
}

.hero-stat {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0 0 2px auto;
  padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  background: rgba(248, 246, 239, .74);
  box-shadow: 0 10px 30px rgba(42, 43, 37, .08);
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  font-size: 42px;
}

.hero-stat span {
  max-width: 112px;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero {
    min-height: 390px;
    padding: 44px 34px 32px;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(248, 246, 239, .98) 0%, rgba(248, 246, 239, .92) 48%, rgba(248, 246, 239, .22) 76%, rgba(248, 246, 239, 0) 100%);
  }
}

@media (max-width: 680px) {
  .hero {
    display: flex;
    min-height: 400px;
    margin-top: 14px;
    padding: 34px 24px 24px;
    align-items: flex-start;
    border-radius: 18px;
    background-position: 64% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(248, 246, 239, .98) 0%, rgba(248, 246, 239, .91) 43%, rgba(248, 246, 239, .34) 68%, rgba(248, 246, 239, .08) 100%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-stat {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }

  .hero-stat strong {
    font-size: 34px;
  }
}
