/* Consistent rounded arrows, independent of font glyph rendering — Opus circular badge style in signature violet. */
.arrow-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 99px;
  background: #fffdfa;
  color: #705392;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(53, 49, 59, 0.18);
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease;
  z-index: 2;
}

.project-arrow .arrow-icon {
  width: 26px;
  height: 26px;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  transform: translateY(0);
  opacity: 1;
}

a:hover .arrow-icon[data-direction="up-right"],
a:focus-visible .arrow-icon[data-direction="up-right"] {
  transform: translate(3px, -3px);
}

@media (hover: none) {
  .project-arrow {
    width: 44px;
    height: 44px;
    opacity: 1;
    transform: translateY(0);
  }
  .project-arrow .arrow-icon {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-icon,
  .project-arrow {
    transition: none;
  }
  .project-arrow {
    opacity: 1;
    transform: none;
  }
  a:hover .arrow-icon,
  a:focus-visible .arrow-icon {
    transform: none;
  }
}
