/* /work/ — standalone «جرّب المواقع» page (shared with sales: one link, four live sites). Builds on main.css. */
.wk { cursor: auto; }
.wk .nav { position: sticky; }
.wk-hero { padding: clamp(150px, 22vh, 240px) var(--gutter) clamp(60px, 10vh, 120px); max-width: 1100px; }
.wk-hero h1 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.wk-hero .lead { max-width: 40em; }
.wk-live { padding-top: clamp(40px, 6vh, 80px); }
.wk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 60px); }
.wk-item { width: auto; --lid: 0deg; display: flex; flex-direction: column; cursor: default; }
.wk-item .laptop__screen { transform: none; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.wk-item:hover .laptop__screen { transform: translateY(-6px); box-shadow: 0 50px 90px -30px rgba(0,0,0,.9), 0 0 80px -30px rgba(0,213,255,.5); }
.wk-item .laptop__screen::before { opacity: 1; transform: none; } /* «تجربة حيّة» badge always on here */
.wk-item figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
.wk-item figcaption span { font-size: 15px; }
.wk-enter { margin-top: 18px; align-self: flex-start; }
.wk-more__title { margin: clamp(70px, 10vh, 120px) 0 24px; font-size: clamp(20px, 1.6vw, 26px); color: var(--gray); font-weight: 500; }
.wk-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.wk-more li { display: grid; gap: 4px; }
.wk-more img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; filter: saturate(.85); transition: filter .4s; }
.wk-more li:hover img { filter: none; }
.wk-more b { font-size: 16px; }
.wk-more span { font-size: 13px; color: var(--gray); }
.wk-tiergrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wk-tiergrid .card { justify-content: flex-start; min-height: 0; }
.wk-tiergrid .card > p:not(.card__n):not(.wk-dur) { color: #C9D0E2; margin: 0; }
.wk-tiergrid ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--gray); font-size: 15px; }
.wk-tiergrid li { padding-inline-start: 18px; position: relative; }
.wk-tiergrid li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.wk-dur { margin: 18px 0 0; font-size: 12px; color: var(--cyan); letter-spacing: .06em; }
.wk-note { max-width: 60em; margin: 40px 0 0; color: var(--gray); }
.wk .steps::after { transform-origin: right; }
.wk .contact__title { font-size: clamp(30px, 4vw, 60px); }
@media (max-width: 960px) {
  .wk-grid { grid-template-columns: 1fr; }
  .wk-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-tiergrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wk .nav__links { display: none; }
  .wk-hero { padding-top: 96px; }
  .wk-enter { align-self: stretch; }
}
/* hero: fanned stack of the four sites beside the text */
.wk-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 80px); align-items: center; max-width: none; }
.wk-hero__stack { position: relative; height: clamp(300px, 36vw, 520px); perspective: 1400px; }
.wk-hero__stack img { position: absolute; width: 62%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 60px -30px rgba(108,99,255,.5); transform: rotateY(-14deg) rotateX(6deg); animation: wk-float 7s ease-in-out infinite; }
.wk-hero__stack img:nth-child(1) { left: 0; top: 0; z-index: 1; }
.wk-hero__stack img:nth-child(2) { left: 30%; top: 16%; z-index: 2; animation-delay: -1.5s; }
.wk-hero__stack img:nth-child(3) { left: 6%; top: 44%; z-index: 3; animation-delay: -3s; }
.wk-hero__stack img:nth-child(4) { left: 36%; top: 58%; z-index: 4; animation-delay: -4.5s; }
@keyframes wk-float { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .wk-hero__stack img { animation: none; } }
.wk-tiergrid .card__icon { margin-bottom: 10px; }
.wk-dur { display: inline-flex; align-items: center; gap: 8px; }
.wk-dur .ic { width: 16px; height: 16px; }
.wk-hero__stack { order: 2; }
/* 3D laptops (work3d.js) replace the image stack once their first frame is drawn (data-ready). */
.wk-hero__gl { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; display: block; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); }
.wk-hero__stack[data-ready] .wk-hero__gl { opacity: 1; pointer-events: auto; }
.wk-hero__stack[data-ready] img { opacity: 0; visibility: hidden; animation: none; transition: opacity .5s, visibility 0s .5s; }
@media (max-width: 960px) {
  .wk-hero { grid-template-columns: 1fr; row-gap: 14px; }
  /* phones: a smaller stage above the copy (two sites as the no-WebGL fallback, two 3D laptops otherwise) */
  .wk-hero__stack { order: -1; height: 260px; perspective: 900px; }
  .wk-hero__stack img { width: 60%; }
  .wk-hero__stack img:nth-child(1) { left: 2%; top: 6%; }
  .wk-hero__stack img:nth-child(2), .wk-hero__stack img:nth-child(3) { display: none; }
  .wk-hero__stack img:nth-child(4) { left: 38%; top: 32%; }
  .wk-hero__gl { top: -4%; height: 108%; }
}

/* ---------- smart gallery ---------- */
.wk-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: -20px 0 34px; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: 500 14px var(--ar); color: #C9D0E2; background: rgba(245,247,255,.04); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.wk-chips button .ic { width: 16px; height: 16px; color: var(--cyan); }
.wk-chips button i { font: 600 11px var(--en); font-style: normal; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: rgba(245,247,255,.08); color: var(--gray); }
.wk-chips button[aria-checked="true"] { color: var(--black); background: var(--cyan); box-shadow: none; }
.wk-chips button[aria-checked="true"] .ic { color: var(--black); }
.wk-chips button[aria-checked="true"] i { background: rgba(9,11,19,.15); color: var(--black); }
.wk-match { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #C9D0E2; }
.wk-match:empty { display: none; }
.wk-match .ic { width: 16px; height: 16px; color: var(--cyan); }
.wk-match b { color: var(--cyan); }
.wk-gallery .wk-item[hidden] { display: none; }
.wk-type { display: inline-block; width: fit-content; margin-bottom: 2px; padding: 2px 8px; border-radius: 6px; font-size: 11px; color: var(--cyan); background: rgba(0,213,255,.08); letter-spacing: .04em; }
.wk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wk-acts .wk-enter { margin-top: 0; }
.wk-item[data-type="brand"] .laptop__screen { background: linear-gradient(#2a2216, #15110b); }
dialog.shot { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--ink); color: var(--white); box-shadow: 0 0 0 1px var(--line), 0 40px 120px -20px rgba(0,0,0,.9); overflow: hidden; }
dialog.shot::backdrop { background: rgba(9,11,19,.8); backdrop-filter: blur(10px); }
.shot__in { max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.shot__in img { display: block; width: 100%; height: auto; }
.shot__cap { margin: 0; padding: 14px 18px; font-size: 14px; color: var(--gray); border-top: 1px solid var(--line); }
.shot__x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: var(--white); background: rgba(9,11,19,.75); box-shadow: inset 0 0 0 1px var(--line); font: 400 22px/1 var(--en); }
@media (max-width: 760px) { .wk-filters { margin-top: -10px; } .wk-chips { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; } .wk-chips button { flex: none; } }
.wk-item::before { align-self: flex-start; }
.wk-item:not([data-xp]) .laptop__screen::before { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 5px 11px; border-radius: 999px; font: 500 12px/1 var(--ar); color: var(--white); background: rgba(9,11,19,.75); box-shadow: inset 0 0 0 1px rgba(150,162,189,.35); content: "لقطة"; }
.wk-item[data-type="system"] .laptop__screen::before { content: "نظام حقيقي · شوفه 3D"; color: var(--black); background: var(--cyan); box-shadow: none; }
.wk-item[data-type="brand"] .laptop__screen::before { content: "هوية كاملة ↗"; }
/* Phones — «الصفحة نفسها بتعلق» (Hamza 2026-10-15): the page was asking a phone GPU to keep ~17 3D-transformed laptop
   layers (perspective + rotateX lids, 1000 px wide at DPR 3) with 47 large soft shadows and two endlessly floating
   images. Phones get flat laptops, small shadows, and no float. */
@media (max-width: 760px) {
  .wk-hero__stack { perspective: none; }
  .wk-hero__stack img { animation: none; transform: none; box-shadow: 0 14px 28px -16px rgba(0,0,0,.85); }
  .wk-gallery .laptop { transform-style: flat; }
  .wk-gallery .laptop__screen, .wk-gallery .laptop__screen.tilt, .wk-item:hover .laptop__screen { transform: none !important; transition: none; box-shadow: 0 16px 30px -18px rgba(0,0,0,.85); }
  .wk-gallery .laptop.is-fit .laptop__screen { box-shadow: 0 16px 30px -18px rgba(0,0,0,.85), 0 0 0 1px rgba(0,213,255,.45); }
}
/* Opening the page (Hamza 2026-10-29, «صلّح صفحة جرّب»): the browser shaped every Arabic line of the whole page before
   the first frame, and again when each font arrived — 1–2.5 s frozen on a phone on 4G. Sections far below the fold are
   now laid out only when the visitor scrolls near them; the sizes are their real heights, so anchors still land right. */
.wk-tiers, .wk #process, .wk #faq, .wk .contact, .wk .foot { content-visibility: auto; }
.wk-tiers { contain-intrinsic-size: auto 1090px; }
.wk #process { contain-intrinsic-size: auto 644px; }
.wk #faq { contain-intrinsic-size: auto 690px; }
.wk .contact { contain-intrinsic-size: auto 604px; }
.wk .foot { contain-intrinsic-size: auto 522px; }
@media (max-width: 760px) {
  .wk-tiers { contain-intrinsic-size: auto 1983px; }
  .wk #process { contain-intrinsic-size: auto 1447px; }
  .wk #faq { contain-intrinsic-size: auto 636px; }
  .wk .contact { contain-intrinsic-size: auto 567px; }
  .wk .foot { contain-intrinsic-size: auto 862px; }
}
