mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 00:07:11 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdxX2mH7piDf4NGrmPi
7 lines
907 B
CSS
7 lines
907 B
CSS
/* ArtCard (see ArtCard.jsx): a black 4:5 card holding Hanzo's model art, leaning toward the pointer. */
|
|
.art-card { position: relative; margin: 0; aspect-ratio: 4 / 5; width: clamp(150px, 15vw, 216px); border-radius: 20px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .08); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .3s; will-change: transform; }
|
|
.art-card-scrim { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent); pointer-events: none; }
|
|
@media (hover: hover) { .art-card:hover { border-color: rgba(255, 255, 255, .24); } }
|
|
@media (max-width: 760px) { .art-card { width: 132px; border-radius: 16px; } }
|
|
@media (prefers-reduced-motion: reduce) { .art-card { transition: none; transform: none; } }
|