.hero {
  padding: 28px 0 18px;
  background: var(--paper);
}

.hero-frame {
  position: relative;
  isolation: isolate;
  min-height: min(680px, 76vh);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: white;
  background: var(--green);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(28, 41, 37, 0.13);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: translate3d(100%, 0, 0);
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
}

.hero-slide.is-active {
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.hero-slide.is-prev {
  transform: translate3d(-100%, 0, 0);
  z-index: 1;
}

.hero-slide.is-next {
  transform: translate3d(100%, 0, 0);
  z-index: 0;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 25, 0.86) 0%,
    rgba(10, 31, 25, 0.6) 45%,
    rgba(10, 31, 25, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 900px;
  padding: 100px clamp(28px, 6vw, 82px);
}

.hero .eyebrow {
  color: #e5c48d;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-text,
.hero-content .hero-actions {
  animation: heroContentIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-content h1 {
  animation-delay: 0.08s;
}

.hero-content .hero-text {
  animation-delay: 0.16s;
}

.hero-content .hero-actions {
  animation-delay: 0.24s;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider-controls {
  position: absolute;
  right: clamp(22px, 4vw, 55px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slider-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(18, 45, 38, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.hero-slider-button:hover {
  transform: translateY(-2px);
  background: rgba(18, 45, 38, 0.75);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bbc3be;
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.hero-dot.is-active {
  width: 22px;
  background: var(--green);
}
