/* ==========================================================================
   Shared components used by several pages (moved out of home.css).
   ========================================================================== */
@keyframes pop { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 60px 40px; } }

.work__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 17px; margin-top: 4px; }
.work__tags .tag { background: rgba(0, 0, 0, 0.025); border-color: rgba(221, 221, 221, 0.6); }
.work__tags button.tag.is-active { background: var(--grad-brand); border-color: transparent; }
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; width: min(100%, 1280px); margin: 32px auto 0; }
.pcard { display: flex; flex-direction: column; align-items: flex-start; }
.pcard.is-shown { animation: pop 0.6s var(--ease-out) both; animation-delay: var(--d, 0s); }
.pcard[hidden] { display: none; }
.pcard__shot { display: block; width: 100%; aspect-ratio: 410.67 / 280; border-radius: var(--r-card); overflow: hidden; background: #eee; }
.pcard__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.pcard:hover .pcard__shot img { transform: scale(1.06); }
.pcard h3 { margin-top: 14.45px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: 0.37px; text-transform: uppercase; color: var(--c-ink); }
.pcard p { margin-top: 8.26px; font-size: 16px; line-height: 1.2; letter-spacing: 0.37px; text-transform: capitalize; color: var(--c-muted); }
.pcard__link { margin-top: 14.45px; display: inline-flex; align-items: center; gap: 4.13px; font-weight: 700; font-size: 14.45px; text-decoration: underline; text-underline-position: from-font; color: var(--c-ink); }
.pcard__link img { width: 14.45px; height: 14.45px; transition: transform 0.35s var(--ease-out); }
.pcard__link:hover img { transform: translateX(5px); }

/* work section header + "see more" (shared by Home, project details) */
.work__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.work__head .title { white-space: nowrap; }
.work__lead { max-width: 1240px; }
.work__more { display: flex; width: max-content; margin: 32px auto 0; }
.lead-row::before { height: 7px; width: 83px; background: url("../svg/line12.svg") no-repeat center / 100% 100%; }
@media (max-width: 899px) { .work__head .title { white-space: normal; } .work__lead { font-size: 18px; } }

/* project-card image: wipe-in on reveal + pointer tilt (set by main.js) */
.pcard__shot { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease-out); will-change: auto; }
.js .pcard[data-reveal] .pcard__shot { clip-path: inset(0 0 100% 0 round 8px); }
.js .pcard[data-reveal].is-visible .pcard__shot { clip-path: inset(0 0 0 0 round 8px); transition: clip-path 1s var(--ease-out) 0.15s, transform 0.5s var(--ease-out); }
