/* Homepage client NFC card showcase: isolated from the site theme. */
.hero-showcase{isolation:isolate;aspect-ratio:.85}
.showcase-stage{position:absolute;inset:10% 0 19%;perspective:900px}
.showcase-slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(35px) rotateY(-10deg) scale(.91);transition:opacity .65s ease,transform .75s cubic-bezier(.2,.8,.2,1),visibility .65s;filter:drop-shadow(0 22px 24px #0006)}
.showcase-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0) rotateY(-7deg) rotateZ(-4deg) scale(1);z-index:2}
.showcase-slide img{display:block;width:100%;height:auto;max-height:92%;object-fit:contain;border-radius:11px;box-shadow:0 18px 46px #0007}
.showcase-slide-name{position:absolute;left:-9999px}
.showcase-footer{position:absolute;bottom:5%;left:6%;right:3%;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;z-index:3}
.showcase-label{display:flex;flex-direction:column;gap:5px;min-width:0}
.showcase-label>span{font-size:9px;letter-spacing:.17em;color:#aeb1be}
.showcase-label strong{font-size:clamp(11px,1.1vw,15px);font-weight:600;color:#f2f2f4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.showcase-controls{display:flex;align-items:center;gap:9px;flex-shrink:0}
.showcase-arrow{display:grid;place-items:center;width:29px;height:29px;border:1px solid #c3c3ca8a;border-radius:50%;background:#20212a80;color:#fff;font-size:21px;line-height:1;cursor:pointer}
.showcase-arrow:hover,.showcase-arrow:focus-visible{background:#e5e5e9;color:#111;outline-offset:3px}
.showcase-count{font-size:10px;letter-spacing:.09em;color:#d0d0d7;white-space:nowrap}
[data-theme="light"] .showcase-label>span,[data-theme="light"] .showcase-count{color:#485468}
[data-theme="light"] .showcase-label strong{color:#172237}
[data-theme="light"] .showcase-arrow{background:#fff9;color:#172237;border-color:#67758a}
[data-theme="light"] .showcase-slide{filter:drop-shadow(0 22px 25px #24324d35)}
@media(max-width:920px){.showcase-stage{inset:7% 0 20%}.showcase-footer{bottom:3%}}
@media(max-width:700px){.hero-showcase{width:245px;height:225px;margin-right:5px}.showcase-stage{inset:0 0 24%}.showcase-footer{left:0;right:0;bottom:0}.showcase-label>span{font-size:7px}.showcase-label strong{font-size:11px;max-width:118px}.showcase-arrow{width:25px;height:25px;font-size:18px}.showcase-controls{gap:5px}.showcase-count{font-size:9px}}
@media(prefers-reduced-motion:reduce){.showcase-slide{transition:none;transform:none!important}}

/* Product presentation: retain each client's printed card artwork, but remove
   the old per-project background/padding rules that made uploads inconsistent. */
.project-card.is-nfc-project .project-image{
 display:flex;align-items:center;justify-content:center;
 aspect-ratio:1.48;overflow:hidden;padding:clamp(18px,5%,44px);
 background:radial-gradient(ellipse at 50% 40%,#343946 0%,#1b1e27 58%,#12151d 100%);
 border:1px solid #ffffff15;border-radius:18px;
}
.project-card.is-nfc-project .project-image img,
.project-card.is-nfc-project .project-image-0 img,
.project-card.is-nfc-project .project-image-1 img,
.project-card.is-nfc-project .project-image-2 img,
.project-card.is-nfc-project .project-image-3 img{
 width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:auto;
 object-fit:contain;padding:0;background:transparent;filter:none;
 border-radius:clamp(7px,1vw,13px);
 box-shadow:0 20px 35px #0008,0 1px 1px #ffffff20;
 transform:perspective(950px) rotateY(-5deg) rotateX(2deg);
 transition:transform .5s ease,box-shadow .5s ease;
}
.project-card.is-nfc-project:hover .project-image img{
 transform:perspective(950px) rotateY(0) rotateX(0) translateY(-4px) scale(1.025);
 box-shadow:0 28px 44px #0009;
}
[data-theme="light"] .project-card.is-nfc-project .project-image{
 background:radial-gradient(ellipse at 50% 40%,#f5f6f8 0%,#e5e9ef 65%,#dce3eb 100%);
 border-color:#8d99a733;
}
[data-theme="light"] .project-card.is-nfc-project .project-image img{
 box-shadow:0 18px 34px #18263b35,0 1px 2px #18263b25;
}
/* Full-size portfolio project view also avoids adding a second colour block. */
.project-detail-image{background:transparent!important}
.project-detail-image img{object-fit:contain}
@media(max-width:700px){.project-card.is-nfc-project .project-image{aspect-ratio:1.45;padding:20px;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.project-card.is-nfc-project .project-image img{transition:none}}

/* Keep the rotating client cards while removing the rectangular shadow
   that showed behind the transparent PNG artwork. */
.hero-showcase .showcase-slide img{box-shadow:none;background:transparent;}
.hero-showcase .showcase-slide{filter:drop-shadow(0 20px 22px rgba(0,0,0,.42));}
