/* Micro-interactions (round 2, 10.10.2026). Hover, keyboard focus and touch share one
   visual language; nothing changes layout. */

/* Project cards: the title gains a fine underline (hover, keyboard focus, or the card in
   the middle of a touch screen). The existing image lift, tilt and arrow stay as they are. */
.project-card-copy h3{text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:transparent;transition:text-decoration-color .45s ease}
@media(hover:hover) and (pointer:fine){.project-link:hover .project-card-copy h3{text-decoration-color:currentColor}}
.project-link:focus-visible .project-card-copy h3,.project-card.is-in-focus .project-card-copy h3{text-decoration-color:currentColor}

/* Touch screens: the card in focus answers like a hover, and a press gives way slightly. */
.project-tilt{transition:scale .35s cubic-bezier(.23,1,.32,1)}
@media(hover:none),(pointer:coarse){
  .project-card.is-in-focus .project-media img{transform:scale(1.035)}
  .project-card.is-in-focus .project-open{background:var(--ink);color:var(--paper)}
  .project-link:active .project-tilt{scale:.985;transition-duration:.15s}
}

@media(prefers-reduced-motion:reduce){
  .project-card-copy h3,.project-tilt{transition:none}
  .project-card.is-in-focus .project-media img{transform:none}
  .project-link:active .project-tilt{scale:none}
}
body[data-motion-paused=true] .project-link:active .project-tilt{scale:none}
