/* Two clipped vector copies roll along the arrow's own axis. The original
   aria-hidden glyph is indented out of view, avoiding platform font metrics. */
:is(.text-link, .button, .back-to-top) > .link-arrow,
:is(.text-link, .button, .back-to-top):is(:hover, :focus-visible) > .link-arrow {
  --arrow-exit-x: 100%;
  --arrow-exit-y: -100%;
  --arrow-entry-x: -100%;
  --arrow-entry-y: 100%;
  --arrow-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M2%2014%2014%202M3%202h11v11'%20fill='none'%20stroke='%23000'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  position: relative;
  display: inline-block;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-size: inherit;
  font-style: normal;
  line-height: 1;
  text-indent: 2em;
  white-space: nowrap;
  vertical-align: -0.08em;
  transform: none;
  transition: none;
}

:is(.text-link, .button, .back-to-top) > .link-arrow.arrow-down,
:is(.text-link, .button, .back-to-top):is(:hover, :focus-visible) > .link-arrow.arrow-down {
  --arrow-exit-x: 0%;
  --arrow-exit-y: 100%;
  --arrow-entry-x: 0%;
  --arrow-entry-y: -100%;
  --arrow-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M8%202v12M3%209l5%205%205-5'%20fill='none'%20stroke='%23000'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

.link-arrow::before,
.link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--arrow-icon) center / 100% 100% no-repeat;
  mask: var(--arrow-icon) center / 100% 100% no-repeat;
  pointer-events: none;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow::before {
  transform: translate(0, 0);
}

.link-arrow::after {
  transform: translate(var(--arrow-entry-x), var(--arrow-entry-y));
}

:is(.text-link, .button, .back-to-top):is(:hover, :focus-visible) > .link-arrow::before {
  transform: translate(var(--arrow-exit-x), var(--arrow-exit-y));
}

:is(.text-link, .button, .back-to-top):is(:hover, :focus-visible) > .link-arrow::after {
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .link-arrow::before,
  .link-arrow::after {
    transition: none;
  }

  :is(.text-link, .button, .back-to-top):is(:hover, :focus-visible) > .link-arrow::before {
    transform: none;
  }

  .link-arrow::after {
    display: none;
  }
}
