.next-project-block {
  padding-block: clamp(4.5rem, 5vw, 7rem);
}
.next-project-block__card {
  position: relative;
}
.next-project-block__link::before {
  content: "";
  inset: 0;
  position: absolute;
}

.next-project-block__card {
  --spruce-base-color-heading: hsl(0, 0%, 100%);
  --spruce-base-color-text: hsl(0, 0%, 100%);
  --spruce-base-color-link: hsl(0, 0%, 100%);
  --spruce-base-color-link-hover: hsla(0, 0%, 100%, 0.75);
  align-items: flex-end;
  background-color: var(--spruce-base-color-heading);
  border-radius: var(--spruce-border-radius-lg);
  color: hsl(0, 0%, 100%);
  display: flex;
  gap: 1.5rem;
  isolation: isolate;
  justify-content: space-between;
  min-block-size: clamp(18rem, 40vb, 26rem);
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4.5rem);
}
.next-project-block__card::after {
  background-image: linear-gradient(to top, hsla(0, 0%, 0%, 0.75), hsla(0, 0%, 0%, 0.15));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}
.next-project-block__card:focus-within {
  outline: 3px solid var(--spruce-base-color-focus-ring);
  outline-offset: 3px;
}
.next-project-block__image {
  block-size: 100%;
  inline-size: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  z-index: -2;
}
.next-project-block__content {
  max-inline-size: 40rem;
}
.next-project-block__content > * {
  margin-block-end: 0;
  margin-block-start: 0;
}
.next-project-block__content > * + * {
  margin-block-start: 0.5rem;
}
.next-project-block__eyebrow {
  font-family: inherit;
  font-size: var(--spruce-font-size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: uppercase;
}
.next-project-block__client {
  font-weight: 700;
}
.next-project-block__title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  text-wrap: balance;
}
.next-project-block__link {
  color: inherit;
  text-decoration: none;
}
.next-project-block__link:focus {
  outline: none;
}
.next-project-block__text {
  opacity: 0.9;
}
.next-project-block__arrow {
  align-items: center;
  background-color: hsl(0, 0%, 100%);
  block-size: 3.5rem;
  border-radius: 50%;
  color: hsl(0, 0%, 10%);
  display: flex;
  flex-shrink: 0;
  inline-size: 3.5rem;
  justify-content: center;
}
.next-project-block__arrow .block-icon {
  block-size: 1.5rem;
  inline-size: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  .next-project-block__image, .next-project-block__arrow {
    transition: scale 0.4s ease, translate 0.2s ease;
  }
  .next-project-block__card:hover .next-project-block__image {
    scale: 1.04;
  }
  .next-project-block__card:hover .next-project-block__arrow {
    translate: 0.25rem 0;
  }
}

[dir=rtl] .next-project-block__arrow .block-icon {
  scale: -1 1;
}

@media (prefers-reduced-motion: no-preference) {
  [dir=rtl] .next-project-block__card:hover .next-project-block__arrow {
    translate: -0.25rem 0;
  }
}
