/* Recent row as two product ads (Highbucha, xmplr): framed, product-forward compositions with a tag line and a CTA
   to the live site. Deliberately different from the project banners: brand color fields, product art on the right. */
.ad-slide{overflow:hidden}
.ad-copy{z-index:5;max-width:min(46%,640px)}
.ad-tag{display:inline-block;margin:0 0 26px;padding:7px 14px;border-radius:999px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;border:1px solid #ffffff4d;background:#ffffff14;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff}
.ad-slide .project-caption .ad-headline{font-family:var(--sans);font-size:clamp(40px,4.2vw,72px);font-weight:450;line-height:.98;letter-spacing:-.06em;margin:0 0 20px;color:#fff}
.ad-slide .project-caption .ad-sub{color:#ffffffd9;font-size:clamp(16px,1.3vw,20px);max-width:420px}
/* Highbucha */
.ad-highbucha{background:radial-gradient(120% 120% at 15% 110%,#1a4fa0 0%,#2f62b8 35%,#4a80d2 70%,#7fb0ea 100%)}
.ad-highbucha .ad-logo{display:block;width:clamp(80px,7vw,120px);height:auto;margin:0 0 18px;filter:brightness(0) invert(1)}
.ad-art{position:absolute;right:var(--edge);top:50%;translate:0 -50%;display:flex;gap:18px;width:min(45%,700px);perspective:1400px}
.ad-art img{flex:1;min-width:0;aspect-ratio:720/1468;object-fit:cover;opacity:1;border-radius:18px;box-shadow:0 40px 80px -30px #0a1d4daa;transform:rotateY(-12deg) translateY(var(--ad-lift,0));transition:transform 1.2s cubic-bezier(.19,1,.22,1)}
.ad-art img:nth-child(2){--ad-lift:-26px}.ad-art img:nth-child(3){--ad-lift:-52px}
.ad-highbucha.is-active .ad-art img{animation:ad-rise 1.2s cubic-bezier(.19,1,.22,1) both}
.ad-highbucha.is-active .ad-art img:nth-child(2){animation-delay:.12s}.ad-highbucha.is-active .ad-art img:nth-child(3){animation-delay:.24s}
@keyframes ad-rise{from{opacity:0;transform:rotateY(-12deg) translateY(60px)}}
/* xmplr */
.ad-xmplr{background:radial-gradient(120% 120% at 85% 20%,#24307a 0%,#121a44 45%,#090d24 100%)}
.ad-glow{position:absolute;right:-10%;top:-20%;width:70%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,#4b6cff66,transparent);filter:blur(30px)}
.ad-wordmark{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:32px;font-weight:600;letter-spacing:-.04em;color:#fff}
.ad-wordmark img{width:34px;height:34px;filter:brightness(0) invert(1)}
.ad-xmplr .ad-headline em{font-style:normal;background:linear-gradient(90deg,#6f8cff,#9fb4ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.ad-screen{position:absolute;right:calc(var(--edge) * -.5);top:50%;translate:0 -48%;width:min(56%,880px);margin:0;border-radius:16px;overflow:hidden;background:#0d1230;box-shadow:0 50px 100px -30px #000c,0 0 0 1px #ffffff1f;transform:perspective(1600px) rotateY(-10deg) rotateX(3deg)}
.ad-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 14px;background:#151a3d;color:#ffffff80;font-size:11px}
.ad-bar i{width:9px;height:9px;border-radius:50%;background:#ffffff33}
.ad-bar span{margin-left:12px}
.ad-screen img{display:block;width:100%;height:auto}
.ad-xmplr.is-active .ad-screen{animation:ad-slide-in 1.3s cubic-bezier(.19,1,.22,1) both}
@keyframes ad-slide-in{from{opacity:0;transform:perspective(1600px) rotateY(-10deg) rotateX(3deg) translateX(80px)}}
@media(max-width:700px){
 .ad-copy{max-width:none}
 .ad-slide .project-caption .ad-headline{font-size:44px}
 .ad-art{left:15%;right:15%;width:auto;top:104px;translate:none;gap:8px}
 .ad-slide .ad-tag,.ad-highbucha .ad-logo{display:none}
 .ad-slide .project-caption .project-link{white-space:nowrap;font-size:16px}
 .ad-slide .project-caption .project-link>span:first-child{overflow:hidden;text-overflow:ellipsis}
 .ad-art img{border-radius:12px}
 .ad-screen{left:28px;right:-60px;width:auto;top:110px;translate:none}
 .ad-wordmark{font-size:26px}
}
@media(prefers-reduced-motion:reduce){.ad-slide .ad-art img,.ad-slide .ad-screen{animation:none!important}}

/* Recent = plain site screenshots for now (desktop capture on desktop, phone capture on phones). */
.shot-slide{background:var(--shot-bg,#111)}
.shot-link{position:absolute;inset:0;display:block}
.shot-link img{width:100%;height:100%;object-fit:cover;object-position:50% 0;display:block}
.shot-caption{left:auto;right:var(--edge);bottom:96px;max-width:none}
.shot-caption .project-link{background:#0d0d0fcc;border-color:#ffffff33;color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
@media(max-width:700px){
 /* the site's own nav would collide with ours: drop the phone capture below the header, slide colour fills the gap */
 .shot-slide{background:var(--shot-bg-m,var(--shot-bg,#111))}
 .shot-link{top:92px}
 .shot-caption{left:50%;right:auto;transform:translateX(-50%);bottom:92px}
 .shot-caption .project-link{white-space:nowrap;font-size:15px}
}
