/* Project pages: loaded after styles.css, reuses its palette, nav, bands and footer. */
.ph-hd{background:var(--sand);padding:150px var(--pad) 80px}
.back{display:inline-block;margin-bottom:40px;color:var(--mute);font-size:15px}
.back:hover{color:var(--ink)}
.ph-hd h1{font-size:clamp(64px,10vw,140px);font-weight:800;letter-spacing:-.05em;line-height:.95}
.lead{margin-top:28px;max-width:640px;font-size:clamp(19px,1.8vw,24px);line-height:1.4}
.meta{display:flex;flex-wrap:wrap;gap:20px 56px;margin-top:44px;padding-top:24px;border-top:1px solid rgba(31,30,28,.18)}
.meta dt{color:var(--mute);font-size:14px}
.meta dd{margin:4px 0 0;font-weight:800;font-size:17px}

.media{background:var(--dark);color:var(--light);padding:90px var(--pad)}
.media h2{font-size:clamp(30px,3.1vw,44px);font-weight:800;letter-spacing:-.03em;margin-bottom:36px}
.mg{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:20px}
.mp{border-radius:18px;min-height:200px;padding:16px;display:grid;place-items:center;text-align:center;color:var(--mutel);font-size:15px;background:repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 14px,transparent 14px 28px),#262522}
.mp.big{grid-row:1/3;aspect-ratio:16/10}

.pj .svc{padding:80px var(--pad)}
.pj .svc+.svc{border-top:1px solid rgba(31,30,28,.12)}
.tx p{font-size:19px;line-height:1.6;max-width:560px}
.tx p+p{margin-top:16px}

.nxb{background:var(--sand);padding:100px var(--pad)}
.nxb p{color:var(--mute);font-size:16px}
.nx{display:inline-block;margin-top:14px;font-size:clamp(40px,6vw,88px);font-weight:800;letter-spacing:-.045em;line-height:1}
.nx span{color:var(--teal);display:inline-block;transition:transform .25s}
.nx:hover span{transform:translateX(.12em)}
[dir=rtl] .nx:hover span{transform:translateX(-.12em)}

@media(max-width:900px){
  .mg{grid-template-columns:1fr;grid-template-rows:auto}
  .mp.big{grid-row:auto}
  .ph-hd{padding-top:120px}
}
@media(prefers-reduced-motion:reduce){.nx span{transition:none}}

/* Real media inside the preview grid (video and images replace the placeholder tiles) */
video.mp,img.mp{display:block;width:100%;height:100%;padding:0;object-fit:cover;background:#262522}

/* Browser frame with a tall full-page screenshot that scrolls slowly (pure CSS, no JavaScript) */
.bf{grid-row:1/3;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:#262522}
.bf-bar{display:flex;align-items:center;gap:8px;flex:none;height:42px;padding:0 16px;background:#322F2C}
.bf-bar i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.22)}
.bf-bar span{margin-inline-start:12px;padding:5px 14px;border-radius:8px;background:rgba(255,255,255,.08);color:var(--mutel);font-size:13px}
.bf-view{position:relative;flex:1;min-height:360px;overflow:hidden}
.bf-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0;animation:bfs 18s ease-in-out infinite alternate}
.bf:hover img{animation-play-state:paused}
@keyframes bfs{0%,8%{object-position:50% 0}92%,100%{object-position:50% 100%}}
@media(max-width:900px){.bf{grid-row:auto}}
@media(prefers-reduced-motion:reduce){.bf-view img{animation:none}}

/* Two-up preview for websites: desktop frame plus a larger phone view */
.mg.two{grid-template-columns:2.2fr 1fr;grid-template-rows:auto}
.mg.two .bf{grid-row:auto}
.mg.two .bf-view{min-height:540px}
.phone{display:flex;justify-content:center;align-items:center}
.phone-in{position:relative;height:100%;max-height:640px;max-width:100%;aspect-ratio:9/19;border:8px solid #322F2C;border-radius:34px;overflow:hidden;background:#262522}
.phone-in img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.phone.scroll img{animation:bfs 22s ease-in-out infinite alternate}
.phone.scroll:hover img{animation-play-state:paused}
@media(max-width:900px){.mg.two{grid-template-columns:1fr}.phone-in{height:auto;width:min(300px,80%);max-height:none}}
@media(prefers-reduced-motion:reduce){.phone.scroll img{animation:none}}

.shot{margin:28px 0 0;max-width:640px}
.shot img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid rgba(31,30,28,.14)}
.shot figcaption{margin-top:10px;color:var(--mute);font-size:14px}
.qs{margin:12px 0 18px;padding-inline-start:20px;font-size:17px;line-height:1.6;max-width:560px}
.qs li+li{margin-top:6px}
.shots{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:28px;max-width:900px}
.shots .shot{margin:0}
@media(max-width:700px){.shots{grid-template-columns:1fr}}
.mg2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mg2 video,.mg2 img{display:block;width:100%;height:auto;border-radius:18px;background:#262522}
.mg2 .wide{grid-column:1/-1;aspect-ratio:16/9;object-fit:cover}
.mg2 img{aspect-ratio:2.1/1;object-fit:cover}
@media(max-width:700px){.mg2{grid-template-columns:1fr}}
.mg3{display:grid;grid-template-columns:2fr 1fr;gap:20px}
.mg3 .mv{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;background:#262522}
.mg3 .ms{position:relative}
.mg3 .ms img{position:absolute;left:0;width:100%;height:calc(50% - 10px);object-fit:cover;border-radius:18px;background:#262522}
.mg3 .ms img:first-child{top:0}
.mg3 .ms img:last-child{bottom:0}
@media(max-width:700px){
  .mg3{grid-template-columns:1fr}
  .mg3 .ms{display:grid;gap:20px}
  .mg3 .ms img{position:static;height:auto;aspect-ratio:2.1/1}
}