/* Skills panel v2 (Nov 23, CJ: "the images just aren't strong enough"). Instead of cropped screenshots, every
   frame is composed from source: marks drawn on their own color field, sites running in a phone, print laid out
   whole. Each frame names the client at the top. Loaded after skills-card.css; revert = previous index.html. */

#professional-work .skills-card .sk-comp{
 --field:#141418;--glow:#ffffff14;
 background:radial-gradient(120% 70% at 50% 18%,var(--glow),transparent 62%),var(--field);
 overflow:hidden;
}
/* the shared reel rule makes every img full-bleed; compositions place their own */
#professional-work .skills-card .sk-comp img{position:static;inset:auto;width:auto;height:auto;object-fit:contain}
#professional-work .skills-card .sk-comp img.sk-sheet{position:absolute;top:12%;left:50%;height:64%;width:auto;max-width:none}

.sk-cap{
 position:absolute;z-index:2;left:var(--card-pad,28px);right:var(--card-pad,28px);top:calc(var(--card-pad,28px) * .9);
 display:flex;justify-content:space-between;gap:12px;margin:0;color:#fff;
 font-size:11px;font-weight:500;letter-spacing:.09em;line-height:1.4;text-transform:uppercase;
}
.sk-cap span:last-child{opacity:.6;text-align:right}

/* stage: the upper part of the card, above the discipline list */
.sk-stage{position:absolute;left:0;right:0;top:0;height:62%;display:grid;place-items:center}

/* Identity: the mark alone on the brand's field */
.sk-id-mark{width:100%;display:grid;place-items:center}
#professional-work .skills-card .sk-id .sk-stage img{display:block;width:min(70cqw,340px);max-height:30cqh;filter:brightness(0) invert(1)}

#professional-work .skills-card .sk-id .sk-stage img.sk-tall{width:min(50cqw,230px)}

/* Web: the build, running in a phone */
.sk-phone{
 position:relative;height:min(84%,520px);aspect-ratio:9/19.2;margin-top:6%;
 padding:7px;border-radius:34px;background:#0b0b0d;
 box-shadow:0 0 0 1px #ffffff26,0 30px 60px -20px #000c,0 0 80px -10px var(--glow);
}
.sk-phone::before{content:"";position:absolute;z-index:2;top:13px;left:50%;width:30%;height:16px;translate:-50% 0;border-radius:99px;background:#0b0b0d}
#professional-work .skills-card .sk-phone img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;border-radius:27px}

/* Print: the piece shown whole, the rest of the set behind it */
.sk-print .sk-stage{perspective:1200px}
.sk-sheet{border-radius:6px;box-shadow:0 26px 50px -18px #000d,0 0 0 1px #ffffff14;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.sk-sheet.sk-front{z-index:3;left:50%;translate:-50% 0}
.sk-sheet.sk-left{z-index:1;left:50%;translate:-96% 0;transform:rotate(-9deg) scale(.86);opacity:.55;filter:saturate(.7)}
.sk-sheet.sk-right{z-index:2;left:50%;translate:-4% 0;transform:rotate(8deg) scale(.86);opacity:.55;filter:saturate(.7)}

/* entrance: each frame settles in as it becomes current */
@media(prefers-reduced-motion:no-preference){
 .skills-shot.is-current .sk-id-mark{animation:sk-rise .9s cubic-bezier(.2,.8,.2,1) both}
 .skills-shot.is-current .sk-phone{animation:sk-lift .9s cubic-bezier(.2,.8,.2,1) both}
 .skills-shot.is-current .sk-front{animation:sk-lift .8s cubic-bezier(.2,.8,.2,1) both}
 .skills-shot.is-current .sk-cap{animation:sk-fade .6s ease .1s both}
}
@keyframes sk-rise{from{opacity:0;transform:scale(.94);filter:blur(6px)}}
@keyframes sk-lift{from{opacity:0;transform:translateY(18px)}}
@keyframes sk-fade{from{opacity:0}}

/* site recordings play inside the phone screen */
#professional-work .skills-card .sk-phone .skills-video{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);border-radius:27px;object-fit:cover;object-position:center top}
.sk-phone.sk-quiz{aspect-ratio:370/640}
.sk-phone.sk-quiz::before{display:none}
/* the print pair: front piece whole, its partner tucked behind */
.sk-print .sk-sheet.sk-front{translate:-62% 0}
.sk-print .sk-sheet.sk-right{translate:-18% 0}
/* the motion frame names its client too, over the film */
#professional-work .skills-card .skills-shot>.sk-cap{text-shadow:0 1px 10px #0008}

/* Nov 23 (CJ: "remove the hover enlarge" / "the phone seems a little small… larger and at a slight angle or it moves"):
   the card keeps its width on hover, and the phone is bigger, tilted in 3D and slowly drifting while it is on screen. */
@media(min-width:901px){
 #professional-work .professional-split:has(.skills-card:is(:hover,:has(:focus-visible))){--work-share:calc(var(--work-width) / 4)}
 #professional-work .professional-split .skills-card:is(:hover,:has(:focus-visible)){flex-basis:var(--work-share)}
}
.sk-web .sk-stage{height:100%;place-items:start center;perspective:1100px;perspective-origin:50% 30%}
#professional-work .skills-card .sk-web .sk-phone{
 height:auto;width:min(80cqw,380px);margin-top:max(64px,11cqh);
 padding:2.4cqw;border-radius:11cqw;transform-style:preserve-3d;
 transform:rotateX(9deg) rotateY(-17deg) rotateZ(4deg);
}
#professional-work .skills-card .sk-web .sk-phone img,
#professional-work .skills-card .sk-web .sk-phone .skills-video{border-radius:8.8cqw}
#professional-work .skills-card .sk-web .sk-phone .skills-video{inset:2.4cqw;width:calc(100% - 4.8cqw);height:calc(100% - 4.8cqw)}
#professional-work .skills-card .sk-web .sk-phone::before{top:4.4cqw;height:5cqw}
#professional-work .skills-card .sk-web .sk-phone.sk-quiz{width:min(84cqw,400px)}
@media(prefers-reduced-motion:no-preference){
 #professional-work .skills-card .skills-shot.is-current .sk-phone{animation:sk-lift .9s cubic-bezier(.2,.8,.2,1) both,sk-drift 9s ease-in-out .9s infinite alternate}
}
@keyframes sk-lift{from{opacity:0;translate:0 26px}}
@keyframes sk-drift{
 from{transform:rotateX(9deg) rotateY(-17deg) rotateZ(4deg)}
 to{transform:rotateX(5deg) rotateY(-6deg) rotateZ(1.5deg) translateY(-10px)}
}

/* Nov 23 (CJ: "maybe there are multiple phones"): a second build sits behind, deeper in the scene */
#professional-work .skills-card .sk-web .sk-phone:not(.sk-back){position:relative;z-index:2;left:-11cqw}
#professional-work .skills-card .sk-web .sk-phone.sk-back{
 position:absolute;z-index:1;left:36cqw;top:0;margin-top:max(36px,6cqh);width:min(62cqw,300px);
 filter:brightness(.5) saturate(.8);box-shadow:0 0 0 1px #ffffff1a,0 24px 50px -20px #000d;
}
#professional-work .skills-card .sk-web .sk-phone.sk-back::before{top:3.4cqw;height:4cqw}
@media(prefers-reduced-motion:no-preference){
 #professional-work .skills-card .skills-shot.is-current .sk-phone.sk-back{animation:sk-lift 1.1s cubic-bezier(.2,.8,.2,1) .12s both,sk-drift 11s ease-in-out 1s infinite alternate-reverse}
}

/* Nov 23 (CJ: "the signage is the stronger print work"): print frames are the signs in place, full bleed,
   with a slow push-in while they are on screen */
@media(prefers-reduced-motion:no-preference){
 #professional-work .skills-card .sk-sign.is-current>img{animation:sk-push 9s cubic-bezier(.25,.6,.3,1) both}
}
@keyframes sk-push{from{transform:scale(1.14)}to{transform:scale(1.02)}}
#professional-work .skills-card .sk-sign>img{transform:scale(1.02);transform-origin:var(--crop,center)}

/* Highbucha labels: the three states stacked like proofs on the table */
.sk-labels .sk-stage{perspective:1200px}
#professional-work .skills-card .sk-labels img.sk-label{position:absolute;left:50%;top:15%;width:min(86cqw,420px);height:auto;border-radius:4px;box-shadow:0 24px 44px -18px #000b,0 0 0 1px #ffffff1c}
.sk-labels .sk-l1{z-index:3;translate:-50% 0;transform:rotate(-4deg)}
.sk-labels .sk-l2{z-index:2;translate:-46% 9cqh;transform:rotate(5deg)}
.sk-labels .sk-l3{z-index:1;translate:-54% 18cqh;transform:rotate(-2deg)}
@media(prefers-reduced-motion:no-preference){
 #professional-work .skills-card .sk-labels.is-current .sk-label{animation:sk-deal .9s cubic-bezier(.2,.8,.2,1) both}
 #professional-work .skills-card .sk-labels.is-current .sk-l2{animation-delay:.12s}
 #professional-work .skills-card .sk-labels.is-current .sk-l1{animation-delay:.24s}
}
@keyframes sk-deal{from{opacity:0;margin-top:30px}}
/* a single phone (no second build behind it) sits centered */
#professional-work .skills-card .sk-web .sk-stage:not(:has(.sk-back)) .sk-phone{left:0}
