.feature-visual {
  position: relative;
}

.feature-image-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 640px;
  min-height: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  transition:
    opacity 0.28s ease,
    transform 0.45s ease;
}

.feature-image-shell::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.16),
    transparent 52%,
    rgba(251, 185, 0, 0.2)
  );
  content: "";
  pointer-events: none;
}

.feature-image-shell img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  transition:
    opacity 0.65s ease,
    transform 6.5s ease;
}

.feature-image-shell img.is-swapping {
  opacity: 0.12;
  transform: scale(1.015);
}

.feature-visual .stat {
  z-index: 3;
  max-width: 300px;
  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}

.feature-visual .stat b {
  overflow-wrap: anywhere;
  font-size: clamp(25px, 3vw, 40px);
}

.feature-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.feature-arrow.prev {
  left: 54px;
}
.feature-arrow.next {
  right: 18px;
}
.feature-arrow:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #000;
}
.feature-arrow svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.feature-copy > .eyebrow,
.feature-copy > h2,
.feature-copy > p,
.feature-copy > .about-list,
.feature-copy > .about-actions {
  transition:
    opacity 0.28s ease,
    transform 0.45s ease;
}

.feature-copy h2 {
  min-height: 2.16em;
}

.feature-copy > p {
  min-height: 5.7em;
}

.feature-position {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #777;
  font: 600 12px var(--display);
}

.feature-position span {
  color: #000;
  font-size: 25px;
}

.feature-position i {
  width: 54px;
  height: 2px;
  background: var(--orange);
}

.feature-position b {
  font-weight: 600;
}

.feature-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.feature-dots button {
  width: 24px;
  height: 5px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    width 0.25s,
    background 0.25s;
}

.feature-dots button.active {
  width: 42px;
  background: var(--orange);
}

.about-grid.is-changing .feature-image-shell {
  opacity: 0.35;
  transform: scale(0.985);
}

.about-grid.is-changing .feature-visual .stat {
  opacity: 0;
  transform: translateY(15px);
}

.about-grid.is-changing .feature-copy > .eyebrow,
.about-grid.is-changing .feature-copy > h2,
.about-grid.is-changing .feature-copy > p,
.about-grid.is-changing .feature-copy > .about-list,
.about-grid.is-changing .feature-copy > .about-actions {
  opacity: 0;
  transform: translateX(24px);
}

.about-grid.single-slide .feature-arrow,
.about-grid.single-slide .feature-dots,
.about-grid.single-slide .feature-position {
  display: none;
}

@media (max-width: 900px) {
  .feature-image-shell {
    height: 520px;
  }
  .feature-copy h2,
  .feature-copy > p {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .feature-image-shell {
    height: 390px;
  }
  .feature-arrow {
    width: 42px;
    height: 42px;
  }
  .feature-arrow.prev {
    left: 35px;
  }
  .feature-arrow.next {
    right: 10px;
  }
  .feature-visual .stat {
    right: 0;
    max-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-image-shell,
  .feature-image-shell img,
  .feature-visual .stat,
  .feature-copy > * {
    transition: none !important;
  }
}
