/* «من أعمالي» v2 (المؤسس 2026-11-13، بعد رأي خبير تصميم مستقل)
   الافتتاحية بالشوريل · شريط أقسام ثابت · للقانونيين · لعلامات تجارية · أفلام وقصص · مواقع · أغانٍ
   قاعدة: ما نخلطش رأسي مع أفقي في صف واحد · الشرايط الأفقية على الموبايل للرأسي بس · الديسكتوب شبكات */
.page.work-index main { padding-top: 0; }

/* ===== الافتتاحية ===== */
.whead { padding: clamp(5.4rem, 8vw, 6.6rem) var(--pad) clamp(1.8rem, 4vw, 3rem); background: radial-gradient(55% 70% at 15% 30%, var(--or-soft), transparent 70%), var(--paper); border-bottom: 1px solid var(--line); }
.whead__in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.whead .wkick { margin: 0 0 .6rem; }
.whead__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.4; color: var(--ink); text-wrap: balance; }
.whead__lede { margin: 1rem 0 0; max-width: 34rem; font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.9; color: var(--ink-soft); }
.whead__with { margin-top: 1.4rem; }
.whead__with > span { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 800; color: var(--or-deep); }
.whead__with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.whead__with li { font-family: var(--f-display); font-weight: 700; font-size: .98rem; color: var(--ink); opacity: .85; }
.whead__with li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 1.1rem; margin-inline-start: -.55rem; border-radius: 50%; background: var(--or); vertical-align: middle; transform: translateX(50%); }
.whead__reel { position: relative; margin: 0; }
.whead__reel video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 20px; background: #0b0a09; border: 6px solid #fff; box-shadow: 0 2px 4px rgba(31,26,22,.08), 0 34px 60px -30px rgba(31,26,22,.6); }
.whead__sound { position: absolute; inset-inline-start: 1.1rem; bottom: 3rem; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--or-deep); color: #fff; font-weight: 800; font-size: .92rem; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(180,84,28,.9); }
.whead__sound svg { width: 16px; height: 16px; fill: #fff; }
.whead__reel figcaption { margin-top: .7rem; text-align: center; font-family: var(--f-display); font-weight: 700; color: var(--or-deep); font-size: .92rem; }
@media (max-width: 860px) {
  .whead { padding-top: 4.8rem; }
  .whead__in { grid-template-columns: 1fr; text-align: center; }
  .whead__lede { margin-inline: auto; }
  .whead__with ul { justify-content: center; }
  .whead__reel { margin-inline: calc(var(--pad) * -.5); }
  .whead__reel video { border-width: 4px; border-radius: 16px; }
  .whead__sound { bottom: 2.8rem; inset-inline-start: .8rem; padding: .6rem .95rem; font-size: .85rem; }
}

/* ===== شريط الأقسام الثابت ===== */
.wjump { position: sticky; top: 64px; z-index: 40; padding: .6rem 0; background: rgba(252,250,246,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wjump__in { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.wjump__in::-webkit-scrollbar { display: none; }
.wjump .wchip { flex: none; white-space: nowrap; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 .88rem/1.2 var(--f-body); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.wjump .wchip:hover { border-color: var(--or); }
.wjump .wchip.is-on { background: var(--or-deep); border-color: var(--or-deep); color: #fff; }
@media (max-width: 900px) { .wjump__in { justify-content: flex-start; } .wjump { top: 58px; } }
.work-index main section[id] { scroll-margin-top: 130px; }

/* ===== رأس القسم ===== */
.wsec { padding-block: clamp(2.2rem, 5vw, 3.4rem) 0; }
.wsec .psec__in { max-width: 1180px; }
.wsec__head { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.wsec__t { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.35; color: var(--ink); }
.wsec__t::after { content: ''; display: block; width: 44px; height: 3px; margin-top: .45rem; border-radius: 2px; background: var(--or); }
.wgroup__n { padding: .2rem .65rem; border-radius: 999px; background: var(--or-soft); color: var(--or-deep); font-size: .8rem; font-weight: 700; }
.wcount { margin-inline-start: auto; font-size: .82rem; font-weight: 800; color: var(--or-deep); }
.wsec__lead { margin: .5rem 0 1.4rem; color: var(--ink-soft); line-height: 1.8; max-width: 44rem; }
.wsub { margin: 2rem 0 .9rem; font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); }

/* ===== حالة عميل (الألباب · سوبر أثري): فيلم كبير + لقطات المواقع ===== */
.wcase2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(.8rem, 2vw, 1.2rem); box-shadow: 0 1px 2px rgba(31,26,22,.06), 0 26px 46px -32px rgba(31,26,22,.45); margin-top: 1.4rem; }
.wcase2__vid { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #0b0a09; }
.wcase2__vid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.wcase2__vid:hover img { transform: scale(1.03); }
.wcase2__vid .wvid__play { width: 58px; height: 58px; }
.wcase2__where { margin: 0; font-size: .8rem; font-weight: 800; color: var(--or-deep); }
.wcase2__t { margin: .2rem 0 .4rem; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; }
.wcase2__line { margin: 0 0 .8rem; color: var(--ink-soft); line-height: 1.8; }
.wcase2__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; }
.wcase2__chips li { padding: .3rem .75rem; border-radius: 999px; background: var(--or-soft); color: var(--or-deep); font-size: .8rem; font-weight: 700; }
.wcase2__sites { display: flex; gap: .7rem; flex-wrap: wrap; }
.wcase2__site { flex: 1 1 140px; max-width: 220px; text-decoration: none; color: var(--ink); }
.wcase2__site img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.wcase2__site span { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 700; color: var(--or-deep); text-align: start; }
@media (max-width: 760px) { .wcase2 { grid-template-columns: 1fr; } }

/* ===== قوايم السلاسل (مختلفة عن رصّات الرئيسية) ===== */
.wplists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wplist { display: flex; gap: .9rem; align-items: center; text-align: start; padding: .7rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.wplist:hover, .wplist:focus-visible { transform: translateY(-3px); border-color: var(--or); box-shadow: 0 18px 32px -20px rgba(180,84,28,.55); outline: none; }
.wplist__cov { position: relative; flex: none; width: 76px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b0a09; box-shadow: 6px 6px 0 -2px var(--or-soft), 12px 12px 0 -4px var(--line); }
.wplist__cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wplist__n { position: absolute; inset-inline-end: 4px; bottom: 4px; min-width: 1.5rem; padding: .1rem .35rem; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }
.wplist__b { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.wplist__b b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.4; }
.wplist__b > span:not(.wplist__go) { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }
.wplist__go { margin-top: .3rem; font-size: .82rem; font-weight: 800; color: var(--or-deep); }
@media (max-width: 900px) { .wplists { grid-template-columns: 1fr; gap: .7rem; } .wplist__cov { width: 64px; } }

/* شبكة الأفقي (محتوى تعليمي) + الأفلام */
.wgrid { display: grid; gap: 1.1rem; }
.wgrid--h { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wfilms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.wfilms > .wwork:first-child { grid-column: 1 / -1; }
.wfilms > .wwork:first-child .wwork__thumb { aspect-ratio: 21 / 9; }
.wfilms > .wwork:first-child .wwork__t { font-size: 1.25rem; }
@media (max-width: 760px) { .wgrid--h, .wfilms { grid-template-columns: 1fr; } .wfilms > .wwork:first-child .wwork__thumb { aspect-ratio: 16 / 9; } }

/* ===== العملاء: شبكة على الديسكتوب، رف أفقي على الموبايل (رأسي بس) ===== */
.wclients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem 1rem; margin: 1.4rem 0 0; outline: none; }
.wclient { display: flex; flex-direction: column; gap: .2rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); text-align: start; text-decoration: none; }
.wclient__cov { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #0b0a09; box-shadow: 0 18px 30px -20px rgba(31,26,22,.6); transition: transform .25s, box-shadow .25s; }
.wclient__cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wclient:hover .wclient__cov, .wclient:focus-visible .wclient__cov { transform: translateY(-4px); box-shadow: 0 26px 40px -22px rgba(180,84,28,.6); }
.wclient:focus-visible { outline: none; } .wclient:focus-visible .wclient__cov { outline: 3px solid var(--or); outline-offset: 3px; }
.wclient .wvid__play { width: 46px; height: 46px; top: auto; bottom: 14%; }
.wclient__n { position: absolute; top: .6rem; inset-inline-start: .6rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .74rem; font-weight: 800; }
.wclient__t { margin-top: .55rem; font-family: var(--f-display); font-size: 1.02rem; line-height: 1.4; }
.wclient__l { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; }
.wclient--end .wclient__cov { display: grid; place-items: center; padding: 1rem; background: linear-gradient(160deg, var(--or2), var(--or-deep)); color: #fff; text-align: center; font-weight: 700; line-height: 1.6; }
.wclient--end .wclient__cov b { display: block; margin-top: .4rem; font-family: var(--f-display); font-size: 1.05rem; }
@media (max-width: 760px) {
  .wclients { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: .3rem var(--pad) 1.2rem; scroll-padding-inline: var(--pad); }
  .wclients::-webkit-scrollbar { display: none; }
  .wclient { flex: 0 0 44%; scroll-snap-align: start; }
  .wclients.is-nudge > * { animation: wNudge .9s cubic-bezier(.3,.7,.3,1); }
}
@keyframes wNudge { 40% { transform: translateX(-26px); } }
.wsec#brands .wcases { margin: 1.2rem 0 0; }

/* ===== المواقع: شكل شاشة متصفح ===== */
.wsites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.wsite { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.wsite[hidden] { display: none; }
.wsite:hover, .wsite:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(180,84,28,.5); }
.wsite__bar { display: flex; align-items: center; gap: 5px; padding: .5rem .8rem; background: #F4EEE6; border-bottom: 1px solid var(--line); }
.wsite__bar i { width: 8px; height: 8px; border-radius: 50%; background: #E0D3C2; }
.wsite__bar span { margin-inline-start: .6rem; font-size: .75rem; color: var(--ink-soft); }
.wsite__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.wsite__b { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem 1rem; }
.wsite__b b { font-family: var(--f-display); font-size: 1.05rem; }
.wsite__b > span { font-size: .86rem; color: var(--ink-soft); }
.wsite__b .wsite__go { margin-top: .3rem; font-weight: 800; color: var(--or-deep); }
@media (max-width: 760px) { .wsites { grid-template-columns: 1fr; } }
.wmore { margin: 1.2rem 0 0; text-align: center; }

/* الأغاني: القايمة المختصرة */
.wsec#songs .walbum { margin-top: .4rem; }
.work-index .psec--cta { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

/* المؤسس 2026-11-13: «سلاسل القانونيين على الديسكتوب صغيرين جدا… عايزينهم يبانوا» ⇒ غلاف كبير + زر تشغيل (الموبايل زي ما هو) */
.wplist__play { display: none; }
@media (min-width: 900px) {
  .wplists { gap: 1.4rem; }
  .wplist { gap: 1.2rem; padding: 1rem; border-radius: 22px; align-items: center; }
  .wplist__cov { width: clamp(120px, 11vw, 168px); border-radius: 16px; box-shadow: 8px 8px 0 -2px var(--or-soft), 16px 16px 0 -4px var(--line); }
  .wplist__play { display: grid; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(180,84,28,.92); box-shadow: 0 8px 18px -6px rgba(0,0,0,.5); transition: transform .2s; }
  .wplist__play::before { content: ""; margin: auto; width: 0; height: 0; border-block: 8px solid transparent; border-left: 13px solid #fff; translate: 2px 0; }
  .wplist:hover .wplist__play { transform: scale(1.1); }
  .wplist__n { font-size: .85rem; padding: .15rem .45rem; }
  .wplist__b b { font-size: 1.3rem; }
  .wplist__b > span:not(.wplist__go) { font-size: .95rem; }
  .wplist__go { font-size: .92rem; margin-top: .6rem; }
}

/* الأغاني: مشغّل في مكان الغلاف + «يُشغَّل الآن» + الحالية متعلّمة */
.walbum__yt, .walbum__cover iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.walbum__now { margin: 0; display: flex; flex-direction: column; gap: .1rem; padding: .55rem .8rem; border-radius: 12px; background: var(--or-soft); }
.walbum__now span { font-size: .75rem; font-weight: 700; color: var(--or-deep); }
.walbum__now b { font-family: var(--f-display); font-size: 1rem; color: var(--ink); }
.walbum__all { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--or-deep); background: #fff; color: var(--or-deep); font: 700 .9rem/1.3 var(--f-body, inherit); cursor: pointer; }
.walbum__all i { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
.walbum__all.is-pause i { width: 10px; height: 12px; border: 0; border-inline: 3.5px solid currentColor; }
.walbum__all:hover { background: var(--or-soft); }
.wtrack.is-playing { border-color: var(--or); background: var(--or-soft); box-shadow: 0 10px 22px -16px rgba(180,84,28,.7); }
.wtrack.is-playing .wtrack__n { background: var(--or-deep); color: #fff; }
.wtrack.is-playing .wtrack__play::before { width: 9px; height: 10px; border: 0; border-inline: 3px solid #fff; transform: none; }
@media (max-width: 760px) {
  .walbum.is-playing .walbum__side { flex-direction: column; align-items: stretch; }
  .walbum.is-playing .walbum__cover { flex: none; width: 100%; }
  .walbum__side { flex-wrap: wrap; }
  .walbum__all { flex: 1; }
}

/* «عملت مع» (المؤسس 2026-11-13: «شكلها مش حلو… وكتير على الفاضي» على الموبايل) ⇒ شريط واحد بيتحرك لوحده بدل ٤ سطور */
.whead__with .wmarq { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); outline: none; }
.whead__with .wmarq__track { display: flex; width: max-content; animation: wmarq 38s linear infinite; }
.whead__with .wmarq:hover .wmarq__track, .whead__with .wmarq:focus-within .wmarq__track, .whead__with .wmarq:active .wmarq__track { animation-play-state: paused; }
.whead__with .wmarq ul { display: flex; flex-wrap: nowrap; gap: .5rem; padding-inline-end: .5rem; justify-content: flex-start !important; }
.whead__with .wmarq li { flex: none; white-space: nowrap; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; opacity: 1; box-shadow: var(--sh-1); }
.whead__with .wmarq li + li::before { content: none; }
@keyframes wmarq { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .whead__with .wmarq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .whead__with .wmarq__track { animation: none; }
  .whead__with .wmarq ul[aria-hidden] { display: none; }
}
.whead__txt, .whead__with { min-width: 0; max-width: 100%; }

/* كارت «الوكيل الذكي» أول «للقانونيين» (2026-11-13) — نفس تكوين هيرو صفحة الوكيل: الشخصية على القوس + كارت */
.wcase2--ag .wag__fig { position: relative; display: block; aspect-ratio: 16 / 10; background: radial-gradient(110% 90% at 50% 100%, #FFE6C4 0%, #FFF1DF 50%, #FFFBF4 100%); text-decoration: none; overflow: hidden; }
.wag__stage { --aw: 46%; position: absolute; inset: 6% 0 0; }
.wag__arch { position: absolute; left: 34%; bottom: 0; width: var(--aw); height: 58%; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--or-soft) 0%, var(--or2) 58%, var(--or) 100%); }
.wcase2--ag .wag__img { position: absolute; left: 34%; bottom: 0; height: 100%; width: auto; aspect-ratio: auto; object-fit: contain; transform: translateX(-50%); transition: transform .5s ease; }
.wcase2--ag .wcase2__vid:hover .wag__img { transform: translateX(-50%) translateY(-4px); }
.wag__card { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: min(230px, 46%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .85rem .95rem; box-shadow: 0 2px 4px rgba(31,26,22,.06), 0 22px 40px -24px rgba(31,26,22,.5); color: var(--ink); }
.wag__card b { display: block; margin-bottom: .5rem; font: 800 .88rem/1.4 var(--f-display); color: var(--or-deep); }
.wag__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.wag__card li { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center; }
.wag__card li i { grid-row: span 2; width: .55rem; height: .55rem; border-radius: 50%; background: #E3B04B; }
.wag__card li i.is-live { background: #3BA55C; box-shadow: 0 0 0 3px rgba(59,165,92,.18); }
.wag__card li span { font-weight: 700; font-size: .84rem; line-height: 1.35; }
.wag__card li small { font-size: .7rem; color: var(--ink-soft); line-height: 1.3; }
.wcase2--ag .btn { margin-top: .2rem; }
@media (max-width: 760px) { .wcase2--ag .wag__fig { aspect-ratio: 4 / 3.4; } .wag__arch, .wcase2--ag .wag__img { left: 27%; } .wag__arch { width: 44%; } .wag__card { right: 3%; width: 48%; padding: .65rem .7rem; } .wag__card li span { font-size: .76rem; } }

/* «شفرة القرار» (2026-11-16) */
.wcase2--sq .wcase2__vid { background: var(--paper2, #F6EFE6); display: grid; place-items: center; padding: clamp(.8rem, 2vw, 1.4rem); }
.wcase2--sq video { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 720 / 1066; border-radius: 4px; box-shadow: 0 16px 30px -16px rgba(27,20,16,.5); background: #0B1530; }
