/* Home project links: a complete, stationary frame independent of the cursor. */
.portfolio-home :is(.hp-project-link, .hp-compact-link) {
  position: relative;
  --hp-hover-gap: 8px;
  --hp-hover-radius: calc(var(--fm-frame-radius, 24px) + var(--hp-hover-gap));
}
.portfolio-home :is(.hp-project-link, .hp-compact-link)::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--hp-hover-gap));
  border: 1px solid var(--hp-ink, #282824);
  border-radius: var(--hp-hover-radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.portfolio-home.hp-structure-restored .hp-project-copy {
  padding-inline: 16px;
  padding-bottom: 18px;
}
.hp-mobile-case-action { display: none; }
.portfolio-home .hp-compact-arrow {
  font-family: 'Ysabeau', Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: normal;
  color: var(--hp-accent);
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-home :is(.hp-project-link, .hp-compact-link):hover::after {
    opacity: 1;
  }
}
.portfolio-home :is(.hp-project-link, .hp-compact-link):focus-visible {
  outline: none;
}
.portfolio-home :is(.hp-project-link, .hp-compact-link):focus-visible::after {
  opacity: 1;
  border-width: 2px;
}
@media (max-width: 700px) {
  .portfolio-home :is(.hp-project-link, .hp-compact-link) {
    --hp-hover-gap: 5px;
  }
  .portfolio-home.hp-structure-restored .hp-project-copy h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .portfolio-home.hp-structure-restored .hp-mobile-case-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: none;
    color: var(--hp-ink, #282824);
    font: 400 12px/1.3 sans-serif;
    letter-spacing: normal;
    white-space: nowrap;
  }
  .portfolio-home.hp-structure-restored .hp-mobile-case-action .hp-compact-arrow {
    width: 28px;
    font-size: 26px;
    color: var(--hp-accent);
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-home :is(.hp-project-link, .hp-compact-link)::after {
    transition: none;
  }
}
