/* case study on a project page: the story, then the client's real site, live, inside a laptop and a phone that the page scroll drives */
.pj-case{margin-top:clamp(70px,12vh,130px)}
.pc-story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,6vw,90px) clamp(28px,5vw,80px);margin-left:8.33%}
.pc-b .pj-k{margin-bottom:14px}
.pc-b p{margin:0;font-size:clamp(18px,1.6vw,24px);line-height:1.3;letter-spacing:-.018em;max-width:30em;text-wrap:pretty}
.pc-steps{grid-column:1/-1}
.pc-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);counter-reset:pc}
.pc-steps li{counter-increment:pc;padding:22px 26px 4px 0;display:grid;gap:10px;align-content:start}
.pc-steps li+li{padding-left:26px;border-left:1px solid var(--line)}
.pc-steps li::before{content:counter(pc,decimal-leading-zero);font-size:12px;font-weight:700;color:var(--ink-2);font-variant-numeric:tabular-nums}
.pc-steps b{font-size:clamp(22px,2.2vw,32px);font-weight:800;letter-spacing:-.035em;line-height:1}
.pc-steps span{font-size:15px;line-height:1.4;color:var(--ink-2);max-width:28em}

.pc-stage{position:relative;margin-top:clamp(50px,9vh,110px)}
.pc-pin{position:sticky;top:0;height:var(--pcvh,100vh);overflow:hidden;background:#7f7f7f}
.pc-scene{position:absolute;inset:0;background:#7f7f7f url(case/lap-poster.webp) center/cover no-repeat}
.pc-cap{position:absolute;left:50%;bottom:clamp(20px,3.4vh,34px);z-index:4;transform:translateX(-50%);max-width:calc(100% - 32px);padding:9px 16px 10px;border-radius:999px;background:rgba(13,13,12,.8);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-size:13px;font-weight:600;letter-spacing:-.005em;color:#fff;white-space:nowrap}
.pc-cap p{display:inline;margin:0}
.pc-cap a{margin-left:10px;color:#BFE9F8;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* laptop: filmed frames on a canvas with the screen keyed out; the live site sits behind it and follows the screen's four corners */
.pcd-l{position:absolute;inset:0}
.is-ready .pcd-l{background:#050505}
.pcd-l canvas{position:absolute;display:block;pointer-events:none}
.pcd-scr{position:absolute;left:0;top:0;overflow:hidden;transform-origin:0 0;will-change:transform;pointer-events:none}
.pcd-scr iframe{position:absolute;left:0;border:0;background:#fff;pointer-events:none}
.pcd-scr-l{width:1440px;height:934px;background:#0b0b0c;opacity:0}
.pcd-scr-l iframe{top:40px;width:1440px;height:894px}
.pcd-bar{position:absolute;left:0;right:0;top:0;height:40px;display:flex;align-items:center;gap:7px;padding:0 14px;background:#1c1c1e;color:rgba(255,255,255,.72);font-size:12px;font-weight:600;letter-spacing:0}
.pcd-bar i{width:10px;height:10px;border-radius:50%;background:#4a4a4e}
.pcd-bar span{margin-left:10px}

/* phone: one photo-real frame with the screen keyed out, the live site behind it */
.pcd-p{position:absolute;right:4.5%;top:10%;z-index:2;will-change:transform;opacity:0}
.pcd-ph{position:absolute;inset:0;background:url(case/iphone18.webp) center/100% 100% no-repeat;filter:drop-shadow(0 28px 44px rgba(0,0,0,.42))}
.pcd-scr-p{width:390px;height:839px;border-radius:53px;background:#fff}
.pcd-scr-p iframe{top:60px;width:390px;height:779px}
.pcd-sb{position:absolute;left:0;right:0;top:0;height:60px;display:flex;justify-content:space-between;align-items:center;padding:6px 34px 0 46px;background:#fff;color:#0D0D0C;font-size:16px;font-weight:700;line-height:1;letter-spacing:-.02em}
.pcd-sb i{width:24px;height:11px;border-radius:3.5px;background:#0D0D0C}

.pc-shots{margin-top:clamp(60px,10vh,120px)}
.pc-shots .pj-k{margin-left:8.33%}
.pc-shots .row{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-left:8.33%}
.pc-shots .row::-webkit-scrollbar{display:none}
.pc-shots img{flex:none;height:clamp(300px,62vh,640px);width:auto;border-radius:10px;scroll-snap-align:start;background:#D9D7CF}
.pc-quote{margin:clamp(60px,10vh,120px) 0 0 8.33%;max-width:26em;font-size:clamp(24px,2.8vw,44px);line-height:1.12;letter-spacing:-.03em;font-weight:600}
.pc-quote footer{margin-top:18px;font-size:13px;font-weight:600;letter-spacing:0;color:var(--ink-2)}

@media (max-width:820px){
  .pc-story{grid-template-columns:1fr;margin-left:0;gap:40px}
  .pc-steps ol{grid-template-columns:1fr}
  .pc-steps li,.pc-steps li+li{padding:18px 0 16px;border-left:0}
  .pc-steps li+li{border-top:1px solid var(--line)}
  .pcd-l{display:none}
  .pc-scene{background:linear-gradient(180deg,#7c7c7c 0%,#8a8a8a 56%,#cfcfcf 56.3%,#dedede 100%)}
  .pcd-p{right:auto;left:50%}
  .pc-cap{left:14px;transform:none;bottom:calc(16px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 118px);padding:9px 14px 10px;border-radius:16px;font-size:12px;line-height:1.35;white-space:normal}
  .pc-cap p{display:block}
  .pc-cap a{margin-left:0}
  .pc-shots .pj-k,.pc-quote{margin-left:0}
  .pc-shots .row{padding-left:0}
  .pc-shots img{height:clamp(240px,52vh,460px)}
}
@media (prefers-reduced-motion:reduce){.pc-pin{position:relative}}
