.hero {
  padding-block: 42px 62px;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.45;
}
.hero-description {
  margin-top: 16px;
  font-size: 15px;
}
.hero .actions {
  margin-top: 22px;
}
.activity-hero-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.story-toast {
  --story-angle: -2deg;
  --story-color: #b94c67;
  --story-bg: #fff0f3;
  --story-progress: #f0b8c5;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: calc(100vw - 40px);
  min-height: 66px;
  padding: 15px 14px;
  border: 1px solid #e9e1dc;
  border-radius: 18px;
  background: #fffffff7;
  color: var(--ink);
  box-shadow: 0 10px 35px #3d25461a, 0 2px 8px #3d254607;
  transform: rotate(var(--story-angle));
  transform-origin: center;
  animation: story-arrive 0.45s ease both;
  transition: opacity 0.35s, transform 0.35s;
  overflow: hidden;
  text-align: right;
}
.story-toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 10px;
  background: var(--story-progress);
  transform-origin: right;
  animation: story-lifetime var(--story-duration, 8.5s) linear both;
}
.story-toast.is-leaving {
  animation: none;
  opacity: 0;
  transform: translateY(-8px) rotate(calc(var(--story-angle) + 1deg));
}
.story-gold {
  --story-color: #967127;
  --story-bg: #fff6df;
  --story-progress: #ecd7a5;
}
.story-purple {
  --story-color: #7957a9;
  --story-bg: #f2ecfc;
  --story-progress: #cdbbe5;
}
.story-mint {
  --story-color: #437763;
  --story-bg: #eef6f0;
  --story-progress: #b9d6c4;
}
.story-upper {
  top: -35px;
  left: 0;
  width: 250px;
}
.story-lower {
  bottom: -2px;
  right: -18px;
  width: 250px;
}
.story-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  direction: rtl;
}
.story-avatar {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid white;
  border-radius: 50%;
  background-color: #f4eee8;
  background-image: url("../img/product/avatars.webp");
  background-size: 500% 200%;
  background-repeat: no-repeat;
  box-shadow: 0 2px 7px #382c4512;
}
.story-avatar + .story-avatar {
  margin-inline-start: -17px;
  margin-top: 18px;
  width: 33px;
  height: 33px;
}
.story-client-logo {
  width: 72px;
  height: 58px;
  padding: 3px;
  display: grid;
  place-items: center;
  border: 1px solid #eee8e3;
  border-radius: 11px;
  background: #fffcf8;
  flex-shrink: 0;
}
.story-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-copy {
  min-width: 0;
  flex: 1;
}
.story-copy p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0;
  color: var(--ink);
}
@keyframes story-arrive {
  0% {
    opacity: 0;
    transform: translateY(14px) rotate(calc(var(--story-angle) - 3deg))
      scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--story-angle)) scale(1);
  }
}
@keyframes story-lifetime {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .story-upper {
    top: -24px;
  }
  .story-lower {
    right: -10px;
  }
  .story-toast {
    width: 280px;
    padding: 12px;
  }
  .activity-hero-layer .story-toast {
    width: 220px;
  }
  .activity-hero-layer .story-copy p {
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  .hero-art {
    padding-top: 46px;
  }
  .story-upper {
    top: 0;
    left: 8px;
  }
  .story-lower {
    bottom: 8px;
    right: 8px;
  }
  .story-toast {
    width: 270px;
    min-height: 62px;
    padding: 12px;
    gap: 9px;
  }
}
@media (max-width: 680px) {
  .hero {
    padding-block: 30px;
  }
  .hero h1 {
    font-size: clamp(33px, 8.5vw, 45px);
    line-height: 1.55;
  }
  .hero-description {
    font-size: 13px;
  }
  .story-toast {
    width: 275px;
    max-width: calc(100vw - 54px);
  }
  .story-upper {
    left: 2px;
  }
  .story-lower {
    right: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-toast {
    animation: none;
    transform: none;
  }
  .story-toast::after {
    display: none;
  }
}
