/* صفحة «مشاريعي» وصفحة شرح المشروع */
.phead, .chead { position: relative; overflow: hidden; padding: 52px 0 58px; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(255, 106, 61, .17), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(22, 33, 62, .1), transparent 70%), var(--paper); }
.phead-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; } .phead .wrap, .chead .wrap { position: relative; z-index: 1; }
.crumb { display: flex; width: fit-content; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--text2); margin-bottom: 26px; border-bottom: 2px solid transparent; transition: color .2s, gap .2s; } .crumb:hover { color: var(--coral-d); gap: 12px; } .crumb .bi { width: 1.1em; height: 1.1em; }
.phead h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.12; max-width: 14em; } html[lang="ar"] .phead h1 { line-height: 1.3; }
.plead { margin-top: 18px; max-width: 38em; font-size: 1.14rem; color: var(--text2); text-wrap: pretty; }
.pfilters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pfilters button { display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--edge); border-radius: 999px; padding: 8px 18px; font-weight: 700; background: var(--card); box-shadow: 3px 3px 0 var(--sh); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.pfilters button b { font-size: .8rem; background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 0 9px; line-height: 1.7; }
.pfilters button:hover { transform: translate(2px, -2px); box-shadow: 5px 5px 0 var(--sh); } .pfilters button.on { background: var(--coral); } .pfilters button.on b { background: var(--ink); }
.pgrid { padding-top: 70px; } .pgrid .realb { display: none; } .pgrid .grp { margin-top: 0; } .pgrid .grp + .works { margin-bottom: 64px; } .pgrid .works { grid-template-columns: repeat(2, 1fr); }
.pgrid .works > .work:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; } .pgrid .works > .work:last-child:nth-child(odd) .shot { width: auto; aspect-ratio: 960 / 600; } .pgrid .works > .work:last-child:nth-child(odd) .body { padding: 24px 26px 28px; justify-content: flex-start; }
@media (max-width: 760px) { .pgrid .works { grid-template-columns: 1fr; } .phead, .chead { padding: 34px 0 44px; } }

/* رأس صفحة المشروع */
.chead-in { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.cbadges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.kb { font-weight: 700; font-size: .84rem; border: 2px solid var(--edge); border-radius: 999px; padding: 4px 14px; background: var(--card); box-shadow: 3px 3px 0 var(--sh); } .kb-real { background: var(--card); } .kb-wip { background: var(--coral); }
.chead .who { color: var(--coral-d); font-weight: 700; font-size: .98rem; }
.chead h1 { margin-top: 4px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; } html[lang="ar"] .chead h1 { line-height: 1.28; }
.cshort { margin-top: 16px; font-size: 1.12rem; color: var(--text2); text-wrap: pretty; max-width: 33em; }
.chead .tags { margin: 18px 0 26px; } .cbtns { display: flex; flex-wrap: wrap; gap: 14px; }
.cmedia { position: relative; padding-bottom: 6%; }
.bframe { background: var(--ink); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 10px 10px 0 var(--coral); transform: rotate(-1deg); }
.bdots { display: flex; gap: 7px; padding: 11px 14px; background: #0a0b10; } .bdots b { width: 10px; height: 10px; border-radius: 50%; background: #3b3f50; } .bdots b:nth-child(1) { background: #ff5f57; } .bdots b:nth-child(2) { background: #febc2e; } .bdots b:nth-child(3) { background: #28c840; }
.bscreen { position: relative; aspect-ratio: 960 / 600; background: var(--ink); } .bscreen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vpause { position: absolute; inset-inline-start: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(18, 20, 28, .72); color: #fff; display: grid; place-items: center; opacity: .0; transition: opacity .25s; backdrop-filter: blur(6px); }
.bscreen:hover .vpause, .vpause:focus-visible { opacity: 1; } @media (hover: none) { .vpause { opacity: .85; } }
.vpause svg { width: 18px; height: 18px; fill: currentColor; } .vpause .i-play { display: none; } .vpause.paused .i-play { display: block; } .vpause.paused .i-pause { display: none; }
.cph { position: absolute; inset-inline-end: -2%; bottom: -2%; width: 21%; aspect-ratio: 330 / 715; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 22px 36px -14px rgba(0, 0, 0, .65); transform: rotate(4deg); background: var(--ink); } .cph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 1020px) { .chead-in { grid-template-columns: 1fr; gap: 40px; } .cmedia { max-width: 760px; width: 100%; } }
@media (max-width: 520px) { .cbtns .btn { flex: 1 1 100%; } .cph { width: 24%; inset-inline-end: 0; } .bframe { box-shadow: 6px 6px 0 var(--coral); } }

.cfacts { background: var(--ink); color: var(--on-ink); } .cfacts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.cfacts dl > div { padding: 22px 24px; border-inline-start: 1px solid rgba(255, 255, 255, .14); } .cfacts dl > div:first-child { border-inline-start: 0; }
.cfacts dt { color: var(--coral); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; } html[lang="ar"] .cfacts dt { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.cfacts dd { margin: 6px 0 0; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
html[lang="ar"] .cfacts dd, html[lang="ar"] .kb, html[lang="ar"] .pn b, html[lang="ar"] .pn small, html[lang="ar"] .gi figcaption, html[lang="ar"] .hls li, html[lang="ar"] .lb-f figcaption, html[lang="ar"] .pfilters button, html[lang="ar"] .crumb { unicode-bidi: plaintext; }
@media (max-width: 760px) { .cfacts dl > div { padding: 16px 18px; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .14); } .cfacts dl > div:first-child { border-top: 0; } .cfacts dl { grid-template-columns: 1fr 1fr; } .cfacts dl > div:nth-child(odd) { border-inline-end: 1px solid rgba(255, 255, 255, .14); } }

/* الشرح والأبرز */
.about2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; } .about2 .about-text { margin-top: 18px; display: grid; gap: 16px; max-width: 38em; } .about2 .about-text p { font-size: 1.1rem; color: var(--text2); text-wrap: pretty; }
.hls { counter-reset: h; display: grid; gap: 12px; margin-top: 18px; } .hls li { counter-increment: h; position: relative; padding: 14px 16px 14px 62px; background: var(--card); border: 2px solid var(--edge); border-radius: 14px; font-weight: 600; box-shadow: 4px 4px 0 var(--sh); text-wrap: pretty; }
.hls li::before { content: counter(h); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); font-weight: 700; display: grid; place-items: center; }
@media (max-width: 900px) { .about2 { grid-template-columns: 1fr; gap: 36px; } }

/* معرض اللقطات */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 28px; }
.gi { margin: 0; display: flex; flex-direction: column; gap: 12px; } .gi:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
.gi-b { position: relative; display: block; padding: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: 6px 6px 0 var(--sh); transition: transform .3s var(--ease), box-shadow .3s var(--ease); aspect-ratio: 1200 / 750; }
.gi-b:hover { transform: translate(3px, -3px); box-shadow: 9px 9px 0 var(--sh); } .gi-b img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .gi-b:hover img { transform: scale(1.03); }
.kind { position: absolute; inset-inline-start: 12px; top: 12px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 12px; background: var(--ink); color: var(--on-ink); border: 1.5px solid rgba(255, 255, 255, .5); }
.k-model { background: var(--coral); color: var(--ink); border-color: var(--ink); } .k-motion { background: var(--card); color: var(--fg); border-color: var(--edge); } .k-cursor { background: rgba(255, 106, 61, .22); color: var(--fg); border-color: var(--edge); } .k-lang { background: #d7e4ff; color: var(--fg); border-color: var(--edge); }
.zoom { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(18, 20, 28, .75); color: #fff; display: grid; place-items: center; opacity: 0; scale: .8; transition: opacity .25s, scale .25s var(--ease); } .zoom svg { width: 16px; height: 16px; rotate: -45deg; } .gi-b:hover .zoom, .gi-b:focus-visible .zoom { opacity: 1; scale: 1; }
.gi figcaption { font-size: .98rem; color: var(--text2); font-weight: 500; text-wrap: pretty; padding-inline: 4px; }
@media (max-width: 760px) { .gal { grid-template-columns: 1fr; gap: 24px; } }

/* الجوال */
.phrow { display: flex; flex-wrap: wrap; gap: 28px; justify-content: flex-start; }
.phf { padding: 0; width: min(260px, 44%); aspect-ratio: 585 / 1266; border: 5px solid #000; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 8px 8px 0 var(--coral); transition: transform .3s var(--ease); } .phf:hover { transform: translateY(-6px) rotate(-1deg); } .phf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 520px) { .phf { width: calc(50% - 14px); border-radius: 26px; border-width: 4px; } .phrow { gap: 20px 18px; } }

/* السابق والتالي */
.pnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pn { display: grid; grid-template-columns: 148px 1fr auto; gap: 18px; align-items: center; padding: 14px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 5px 5px 0 var(--sh); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pn:hover { transform: translate(3px, -3px); box-shadow: 8px 8px 0 var(--coral); } .pn img { width: 148px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 2px solid var(--edge); }
.pn span { display: grid; gap: 2px; min-width: 0; } .pn small { color: var(--coral-d); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; } html[lang="ar"] .pn small { letter-spacing: 0; text-transform: none; font-size: .9rem; } .pn b { font-size: 1.15rem; line-height: 1.3; }
.pn i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--coral); display: grid; place-items: center; transition: background .25s, color .25s; } .pn:hover i { background: var(--coral); color: var(--ink); } .pn i svg { width: 18px; height: 18px; }
.pn-p { grid-template-columns: auto 148px 1fr; } .pn-p i { order: -1; } .pn-p span { text-align: left; }
@media (max-width: 760px) { .pnrow { grid-template-columns: 1fr; } .pn { grid-template-columns: 104px 1fr auto; gap: 12px; } .pn img { width: 104px; } .pn-p { grid-template-columns: auto 104px 1fr; } }

/* لايت بوكس */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8, 9, 14, .92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; backdrop-filter: blur(6px); animation: lbin .25s var(--ease); } .lb[hidden] { display: none; }
@keyframes lbin { from { opacity: 0; } }
.lb-f { margin: 0; display: grid; gap: 14px; justify-items: center; min-width: 0; max-height: 100%; } .lb-f img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); object-fit: contain; background: #000; } .lb.lb-ph .lb-f img { border-radius: 26px; }
.lb-f figcaption { color: var(--on-ink); text-align: center; font-weight: 500; max-width: 46em; text-wrap: balance; }
.lb-x, .lb-n { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; padding: 0; } .lb-x:hover, .lb-n:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); } .lb-x svg, .lb-n svg { width: 22px; height: 22px; }
.lb-x { position: absolute; top: 16px; right: 16px; z-index: 2; } body.lb-on { overflow: hidden; }
@media (max-width: 640px) { .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 14px; } .lb-n { position: absolute; bottom: 14px; } .lb-p { left: 14px; } .lb-nx { right: 14px; } .lb-f img { max-height: calc(100svh - 170px); } .lb-f figcaption { padding-bottom: 66px; } }
@media (prefers-reduced-motion: reduce) { .lb, .gi-b, .gi-b img, .phf, .pn { animation: none; transition: none; } }
