/* موقع عمر بابكر. لكل جانب روحه: بورتفوليو فاتح بلون الطين، والأعمال بلون كل نوع، والمعلّق الصوتي مسرح داكن،
   وصوتي الشخصي هادئ، والباب الخلفي ورق دافئ. العناوين OB Serif والنص OB Sans. مسافات بمقياس 8. */
:root {
  --bg: #FAF8F4; --card: #FFFFFF; --soft: #F3EEE6; --ink: #121417; --ink-2: #33363C; --muted: #62656C; --line: #E6E0D6;
  --accent: #C94F28; --accent-2: #A63E1D; --accent-ink: #FFFFFF; --night: #17181B; --night-ink: #F3F0EA; --night-acc: #F0A788;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --r: 20px; --r-s: 12px; --shadow: 0 1px 2px rgba(18, 20, 23, .04), 0 8px 24px rgba(18, 20, 23, .06);
  --serif: "OB Serif", "Times New Roman", serif; --sans: "OB Sans", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body[data-theme="back"] { --bg: #F4EDE0; --card: #FBF7EF; --soft: #EDE3D2; --ink: #2A2118; --ink-2: #4A3E31; --muted: #7D6E5C; --line: #E2D7C3; --accent: #9C4A23; --accent-2: #7E3A1A; --night: #2A2118; }
body[data-theme="voice"] { --bg: #F1EFE8; --card: #FAF9F5; --soft: #E5E8E0; --ink: #1D2421; --ink-2: #39443F; --muted: #66706B; --line: #D9DDD4; --accent: #2F5D50; --accent-2: #23483E; --night: #1D2421; }
body[data-theme="stage"], body[data-theme="type-dark"] { --bg: #0F1012; --card: #1A1C20; --soft: #16181B; --ink: #F3F0EA; --ink-2: #D9D5CC; --muted: #A9ADB5; --line: #2C2F35; --accent: #E2683D; --accent-2: #F08A63; --accent-ink: #111214; --night: #000; --shadow: none; }
body[data-theme="type"], body[data-theme="type-dark"] { --accent: var(--tc); --accent-2: var(--tc); }
body[data-theme="type-dark"] { --accent: #E2683D; }
body[data-theme="works"] { --bg: #F7F5F0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.8 var(--sans); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0 0 var(--s3); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: var(--s3); top: -60px; background: var(--ink); color: var(--bg); padding: var(--s2) var(--s3); z-index: 50; border-radius: var(--r-s); }
.skip:focus { top: var(--s2); }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--s4); }
.wrap-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--s4); }
.arr { display: inline-block; transition: transform .25s var(--ease); }
.note { color: var(--muted); font-size: 14px; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 62ch; }
.sec-h { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: var(--s3); }
.sec-h--small { font-size: 22px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.sec-h small, .client-cols small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; }
.sec-d { color: var(--muted); max-width: 60ch; margin-bottom: var(--s5); }
.count-line { font-size: 15px; color: var(--muted); }
.crumb { font-size: 15px; margin-bottom: var(--s3); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a::before { content: "→ "; }
.crumb a:hover { color: var(--accent); }

/* الأزرار */
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: 12px var(--s4); border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.4; background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover .arr, a:hover .arr, button:hover .arr { transform: translateX(-6px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* الرأس */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { text-decoration: none; font-size: 16px; padding-block: var(--s1); border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: var(--accent); border-color: var(--accent); }
.nav a[aria-current="page"] { border-color: currentColor; }
.nav-group { position: relative; }
.nav-sub { position: absolute; top: 100%; inset-inline-start: calc(var(--s3) * -1); min-width: 240px; padding: var(--s2); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); display: none; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: grid; }
.nav-sub a { padding: var(--s2) var(--s3); border: 0; border-radius: 8px; }
.nav-sub a:hover { background: var(--soft); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: var(--s1) var(--s3); cursor: pointer; }

/* الرئيسية */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s7); align-items: end; padding-block: var(--s8) var(--s7); }
.hero-who { font-size: 15px; color: var(--muted); margin-bottom: var(--s4); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.15; margin-bottom: var(--s5); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.paths { padding-block: var(--s7); }
.paths ol { border-top: 1.5px solid var(--ink); }
.paths a { display: grid; grid-template-columns: 56px minmax(160px, 1fr) 2fr 32px; gap: var(--s4); align-items: baseline; padding-block: var(--s5); border-bottom: 1px solid var(--line); text-decoration: none; }
.num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.path-t { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 36px); transition: color .2s; }
.path-d { color: var(--ink-2); }
.paths a:hover .path-t { color: var(--accent); }
.personal-door { display: grid; grid-template-columns: 2fr 3fr; background: #2A2118; color: #F4EDE0; border-radius: var(--r); overflow: hidden; text-decoration: none; margin-block: var(--s7) var(--s8); min-height: 320px; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.personal-door:hover .pd-img img { transform: scale(1.03); }
.pd-text { display: flex; flex-direction: column; justify-content: center; gap: var(--s3); padding: var(--s6); }
.pd-t { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.pd-d { color: #DCCFBB; font-size: 18px; }
.personal-door blockquote { margin: var(--s2) 0 0; font-family: var(--serif); font-size: 20px; color: #EBC9A8; }
.personal-door blockquote p { margin: 0; }
.pd-go { font-size: 28px; }

/* التواصل والتذييل */
.contact { background: var(--soft); padding-block: var(--s8); margin-top: var(--s8); }
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 24ch; margin-bottom: var(--s3); }
.contact p { color: var(--ink-2); }
.contact-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.mail { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.mail:hover { color: var(--accent); border-color: var(--accent); }
.foot { border-top: 1px solid var(--line); padding-block: var(--s5); font-size: 15px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s5); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-back { font-family: var(--serif); font-weight: 700; color: var(--ink); }

/* رأس الصفحات الداخلية */
.intro { padding-block: var(--s8) var(--s6); }
.intro h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: var(--s4); max-width: 22ch; }

/* بورتفوليو */
.pf-cover { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: center; padding-block: var(--s8) var(--s7); }
.pf-cover h1 { font-size: clamp(52px, 8vw, 104px); line-height: 1.1; }
.pf-role { font-size: 20px; color: var(--accent); font-weight: 700; margin-block: var(--s3) var(--s4); }
.pf-cover figure { margin: 0; }
.pf-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.pf-about { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s6); padding-block: var(--s7); border-top: 1px solid var(--line); }
.prose p { font-size: 19px; line-height: 2; }
.logos { padding-block: var(--s6); }
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: var(--s4); padding-inline-end: var(--s4); animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: grid; place-items: center; width: 176px; height: 104px; padding: var(--s4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }
.marquee img { max-width: 120px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(100%); } }
.pf-nums { padding-block: var(--s7); }
.pf-nums ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }
.pf-nums li { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s5) var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pf-nums b { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.15; color: var(--accent); }
.pf-nums span { font-size: 18px; font-weight: 700; }
.pf-nums small { color: var(--muted); font-size: 14px; margin-top: auto; padding-top: var(--s2); }
.pf-nums .note { margin-top: var(--s4); }
.pf-career { padding-block: var(--s7); }
.jobs { border-top: 1.5px solid var(--ink); }
.job { display: grid; grid-template-columns: 220px 1fr; gap: var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.job-when { color: var(--muted); font-size: 15px; padding-top: var(--s1); margin-bottom: var(--s3); }
.job-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: var(--s2); }
.job h3 { font-size: 26px; }
.job-role { color: var(--accent); font-weight: 700; margin-bottom: var(--s2); }
.job ul { margin-top: var(--s2); }
.job li, .dlg-body li, .prose li { position: relative; padding-inline-start: var(--s4); margin-bottom: var(--s2); }
.job li::before, .dlg-body li::before, .prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pf-services { background: var(--soft); padding-block: var(--s8); margin-block: var(--s6); }
.pf-services ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.pf-services li { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s3); padding: var(--s4); background: var(--card); border-radius: var(--r); }
.pf-services h3 { font-size: 22px; }
.pf-services p { grid-column: 2; color: var(--ink-2); margin: var(--s1) 0 0; }
.pf-projects, .pf-cases { padding-block: var(--s7); }
.pf-edu { padding-block: var(--s6); }
.pf-edu ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.pf-edu li { padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pf-edu h3 { font-size: 22px; }
.pf-edu p { color: var(--ink-2); margin: 0; }

/* البطاقات */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.cards--lead { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .2s; overflow: hidden; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-hit { all: unset; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; box-sizing: border-box; }
.card-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r); }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.card-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); flex: 1; }
.card-org { font-size: 14px; color: var(--muted); margin: 0; }
.card h3 { font-size: 22px; }
.card.is-text { background: var(--soft); box-shadow: none; }
.card.is-text h3 { font-size: 26px; }
.card.is-text .card-body { padding: var(--s5) var(--s4); }
.card-sum { color: var(--ink-2); font-size: 16px; margin: 0; flex: 1; }
.card-more { font-weight: 700; font-size: 15px; color: var(--accent); margin-top: var(--s2); }

/* النافذة */
.dlg { border: 0; padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.dlg--wide { width: min(1180px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(18, 20, 23, .62); }
.dlg-in { padding: var(--s6) var(--s6) var(--s5); }
.dlg-x { position: sticky; top: 0; float: left; margin: calc(var(--s3) * -1) calc(var(--s3) * -1) 0 0; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 999px; padding: var(--s1) var(--s3); cursor: pointer; z-index: 2; }
.dlg-x:hover { background: var(--ink); color: var(--bg); }
.dlg h2 { font-size: clamp(28px, 3.4vw, 40px); margin-block: var(--s2); }
.dlg-meta { color: var(--muted); }
.dlg-body { display: grid; gap: var(--s4); margin-block: var(--s5); }
.dlg-body h4, .sample h4 { font-family: var(--sans); font-size: 14px; color: var(--accent); margin-bottom: var(--s2); }
.dlg-body p { margin: 0; }
.dlg-cta { font-family: var(--serif); font-size: 22px; margin-top: var(--s5); }
.dlg-acts { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.gallery img { width: 100%; height: 320px; object-fit: contain; border-radius: var(--r-s); background: var(--soft); }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.script { width: 100%; border-collapse: collapse; font-size: 16px; }
.script th { text-align: start; font-size: 14px; color: var(--muted); font-weight: 700; padding-bottom: var(--s2); }
.script td { vertical-align: top; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.script td:first-child { width: 34%; color: var(--muted); font-size: 15px; padding-inline-end: var(--s4); }
.script td:last-child { font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3); }
.post { margin: 0; background: var(--soft); border-radius: var(--r-s); padding: var(--s3); }
.post figcaption { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: var(--s2); }
.post p { margin: 0; font-size: 16px; }
.sample-text p { font-family: var(--serif); font-size: 19px; line-height: 2; white-space: pre-line; }

/* الأعمال: المحور */
.works-intro .tally { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s5); padding-top: var(--s4); border-top: 1.5px solid var(--ink); }
.tally li { display: flex; flex-direction: column; }
.tally b { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.tally span { color: var(--muted); font-size: 15px; }
.types-sec { padding-bottom: var(--s7); }
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.type-tile { position: relative; display: block; min-height: 300px; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--tc); }
.type-tile--wide { grid-column: 1 / -1; min-height: 340px; }
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(1); transition: opacity .3s, transform .6s var(--ease); }
.type-tile:hover img { opacity: .45; transform: scale(1.03); }
.tt-text { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s5); }
.tt-n { font-size: 14px; opacity: .85; }
.tt-name { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); }
.tt-title { font-size: 17px; opacity: .92; max-width: 40ch; }
.tt-go { margin-top: var(--s2); font-weight: 700; }
.partners { padding-block: var(--s8) var(--s6); }
.partners ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.partners li { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pt-logo img, .pt-logo--txt { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: var(--s2); }
.pt-logo--txt { display: grid; place-items: center; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--muted); }
.partners h3 { font-size: 22px; }
.partners p { margin: 0; color: var(--ink-2); }
.pt-works { font-size: 15px; margin-top: var(--s2) !important; }
.pt-works a { color: var(--accent); text-decoration: none; }
.pt-works a:hover { text-decoration: underline; }
.clients { background: var(--soft); padding-block: var(--s8); margin-top: var(--s6); }
.client-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }
.client-cols h3 { font-size: 20px; padding-bottom: var(--s2); border-bottom: 1.5px solid var(--ink); margin-bottom: var(--s3); }
.client-cols li { padding-block: var(--s1); font-size: 16px; }
.clients .note { margin-top: var(--s5); }

/* صفحة النوع: عالم بلونه */
.type-hero { position: relative; background: var(--tc); color: #fff; overflow: hidden; }
.type-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(1); }
.type-hero-in { position: relative; padding-block: var(--s8) var(--s7); }
.type-hero .crumb a { color: rgba(255, 255, 255, .8); }
.type-hero .crumb a:hover { color: #fff; }
.type-hero .tt-name { font-family: var(--sans); font-size: 16px; font-weight: 700; opacity: .9; margin-bottom: var(--s3); }
.type-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 20ch; margin-bottom: var(--s4); }
.type-hero .lede { color: rgba(255, 255, 255, .9); }
body[data-theme="type-dark"] .type-hero { background: #000; }
body[data-theme="type-dark"] .type-hero-img { opacity: .4; filter: none; }
.type-list { padding-block: var(--s7); }
.other-types { padding-bottom: var(--s5); }
.other-types h2 { font-size: 20px; color: var(--muted); font-family: var(--sans); font-weight: 400; margin-bottom: var(--s3); }
.other-types div { display: flex; flex-wrap: wrap; gap: var(--s3); }
.other-types a { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--card); transition: border-color .2s; }
.other-types a:hover { border-color: var(--tc); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }

/* الباب الخلفي */
.personal-intro .big-quote { margin: var(--s5) 0 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--accent); max-width: 34ch; transition: opacity .5s; }
.big-quote p { margin: 0; }
.big-quote cite { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.doors { display: grid; gap: var(--s4); padding-bottom: var(--s8); }
.door { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: var(--s4); padding: var(--s6) var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background .2s, color .2s; }
.door.has-img { grid-template-columns: minmax(200px, 2fr) 3fr 40px; padding: 0; overflow: hidden; }
.door.has-img .door-text { padding-block: var(--s5); }
.door-img { align-self: stretch; }
.door-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.door-text { display: flex; flex-direction: column; gap: var(--s2); }
.door-t { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 48px); }
.door-d { font-size: 18px; color: var(--ink-2); }
.door-n { font-size: 14px; color: var(--muted); }
.door .arr { font-size: 28px; }
.door:hover { background: var(--ink); color: var(--bg); }
.door:hover .door-d, .door:hover .door-n { color: #D8CFBF; }
.door--diary .door-d { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); color: var(--accent); }

/* صوت وحبر: الاختيار */
.vchoices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); padding-bottom: var(--s8); }
.vchoice { position: relative; display: flex; flex-direction: column; min-height: 460px; border-radius: var(--r); overflow: hidden; text-decoration: none; }
.vchoice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vchoice:hover img { transform: scale(1.03); }
.vchoice--pro { background: #0F1012; color: #F3F0EA; }
.vchoice--pro img { opacity: .45; }
.vchoice--personal { background: #E5E8E0; color: #1D2421; }
.vchoice--personal img { opacity: .22; filter: grayscale(1); }
.vc-text { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); }
.vc-t { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); }
.vc-d { font-size: 17px; max-width: 42ch; }
.vc-n { font-size: 14px; opacity: .75; }
.vc-go { font-weight: 700; margin-top: var(--s2); }
.vchoice--pro .vc-go { color: #F08A63; }
.vchoice--personal .vc-go { color: #2F5D50; }

/* صفحات الصوت */
.voice-intro h1 { margin-bottom: var(--s3); }
.voice-intro .btn { margin-bottom: var(--s4); }
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); padding: var(--s1); background: var(--soft); border-radius: 999px; width: fit-content; max-width: 100%; }
.seg button { display: inline-flex; align-items: center; gap: var(--s2); border: 0; background: transparent; border-radius: 999px; padding: var(--s2) var(--s4); cursor: pointer; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button small { font-weight: 400; font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--accent); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button[aria-selected="true"] small { color: inherit; opacity: .8; }
.voice-sec { padding-block: var(--s4) var(--s6); }
.voice-head { margin-bottom: var(--s4); }
.voice-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: var(--s2); }
.rec { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-s); transition: background .2s; }
.rec:hover { background: var(--soft); }
.rec-art { display: none; }
.rec--big { grid-template-columns: 80px auto 1fr auto auto auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s4); }
.rec--big .rec-art { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-s); }
.rec--big:not(:has(.rec-art)) { grid-template-columns: auto 1fr auto auto auto; }
.rec-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.rec-play:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.rec--big .rec-play { width: 56px; height: 56px; }
.ico { width: 0; height: 0; border-block: 8px solid transparent; border-inline-end: 13px solid currentColor; margin-inline-end: 3px; }
.rec.playing .ico { width: 12px; height: 14px; border: 0; border-inline: 4px solid currentColor; margin: 0; }
.rec-main { min-width: 0; }
.rec-title { margin: 0 0 var(--s1); font-weight: 700; }
.rec--big .rec-title { font-family: var(--serif); font-size: 22px; }
.rec-bar { height: 4px; background: var(--line); border-radius: 2px; cursor: pointer; position: relative; }
.rec-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); border-radius: 2px; }
.rec-time, .rec-year { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-tag { font-size: 13px; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 0 var(--s2); white-space: nowrap; }
.rec-list { margin-bottom: var(--s4); }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); margin-block: var(--s4); }
.rec-grid--films { grid-template-columns: repeat(2, 1fr); }
.rec--video { display: block; margin: 0; padding: 0; border: 0; background: none; }
.rec--video:hover { background: none; }
.rec--video video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; background: #000; border-radius: var(--r); }
.rec--video figcaption { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; padding-top: var(--s2); }
.rec-grid--films .rec-title { font-family: var(--serif); font-size: 20px; }
.rec--link { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; }
.rec--link:hover { border-color: var(--accent); background: var(--card); }
.series { padding-block: var(--s5); border-top: 1px solid var(--line); }
.series header { margin-bottom: var(--s4); max-width: 70ch; }
.series h3 { font-size: 28px; }
.series-y { font-size: 14px; color: var(--muted); margin-bottom: var(--s2); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; margin-block: var(--s3); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 1; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: var(--s2) var(--s5); font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.yt-play:hover { background: #fff; color: #111; transform: translate(-50%, -50%) scale(1.05); }
details.more summary { cursor: pointer; font-weight: 700; color: var(--accent); padding-block: var(--s2); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
.voice-record { padding-block: var(--s7); }
.voice-record .btn { margin-top: var(--s3); }

/* المذكرات والمقالات */
.diary-list { padding-bottom: var(--s8); }
.diary-year { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); border-top: 1.5px solid var(--ink); padding-top: var(--s3); margin-bottom: var(--s5); }
.diary-year h2 { font-size: 28px; color: var(--muted); }
.diary-year a { display: grid; grid-template-columns: 64px 1fr; gap: var(--s1) var(--s3); padding-block: var(--s3); border-bottom: 1px solid var(--line); text-decoration: none; }
.dy-date { font-size: 14px; color: var(--muted); grid-row: span 2; padding-top: 6px; }
.dy-t, .ar-t { font-family: var(--serif); font-size: 24px; font-weight: 700; transition: color .2s; }
.dy-x, .ar-x { color: var(--ink-2); font-size: 16px; }
.diary-year a:hover .dy-t, .ar-list a:hover .ar-t { color: var(--accent); }
.ar-list { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.ar-list a { display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: var(--s4); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s; }
.ar-list a:has(.ar-img) { grid-template-columns: 200px 1fr 32px; }
.ar-list a:hover { border-color: var(--accent); }
.ar-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); }
.ar-txt { display: flex; flex-direction: column; gap: var(--s1); }
.ar-list .arr { font-size: 22px; }
.ar-kind { font-size: 14px; color: var(--muted); }
.entry { padding-block: var(--s7) var(--s6); }
.entry h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: var(--s3); }
.entry-meta { color: var(--muted); font-size: 15px; margin-bottom: var(--s5); }
.entry .prose h2 { font-size: 30px; margin-block: var(--s6) var(--s3); }
.entry .prose h3 { font-size: 24px; margin-block: var(--s5) var(--s2); }
.prose blockquote { margin: var(--s5) 0; padding: var(--s4); background: var(--soft); border-radius: var(--r); font-family: var(--serif); font-size: 22px; color: var(--accent); }
.prose blockquote p { margin: 0; }
.prose ul { margin-bottom: var(--s4); }
.prose li { font-size: 18px; }
.prose figure { margin: var(--s5) 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption, .entry-imgs figcaption { font-size: 14px; color: var(--muted); padding-top: var(--s2); }
.prose .when { font-size: 14px; color: var(--muted); }
.prose a { color: var(--accent); }
.poem p { font-family: var(--serif); font-size: 24px; text-align: center; margin-bottom: var(--s2); }
.entry-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s3); margin-block: var(--s5); }
.entry-imgs figure { margin: 0; }
.entry-imgs img { border-radius: var(--r); }
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s4); }
.pn { display: flex; flex-direction: column; text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.pn small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; }
.pn:hover { color: var(--accent); }
.pn--old { text-align: end; grid-column: 2; }
.ar-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s3); margin: var(--s4) 0; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ar-meta dt { font-size: 13px; color: var(--muted); }
.ar-meta dd { margin: 0; font-weight: 700; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; background: var(--night); color: var(--night-ink); border-radius: var(--r); padding: var(--s5); margin-block: var(--s4); }
.stat b { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--night-acc); }
.stat p { margin: 0; }
.ar-cover { margin: var(--s4) 0; }
.ar-cover img { border-radius: var(--r); width: 100%; }

/* الاستوديو */
.st-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); padding-bottom: var(--s8); }
.st-group { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: var(--s3); }
.st-group:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r); }
.st-stack { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.st-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.st-stack img.on { opacity: 1; }
.st-cap { display: flex; justify-content: space-between; align-items: baseline; }
.st-t { font-family: var(--serif); font-size: 30px; font-weight: 700; transition: color .2s; }
.st-n { color: var(--muted); font-size: 15px; }
.st-group:hover .st-t { color: var(--accent); }
.st-grid { columns: 3 260px; column-gap: var(--s3); margin-top: var(--s4); }
.st-grid figure { margin: 0 0 var(--s3); break-inside: avoid; }
.st-grid img { width: 100%; border-radius: var(--r-s); }

/* اقتباس التحميل */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--s5); background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .25s; }
.loader.show { opacity: 1; pointer-events: auto; }
.loader blockquote { margin: 0; max-width: 30ch; text-align: center; }
.loader p { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); }
.loader cite { font-style: normal; color: var(--muted); font-size: 14px; }

/* الجوال */
@media (max-width: 880px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { padding-inline: var(--s3); }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3) var(--s3); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-sub { position: static; display: grid; box-shadow: none; border: 0; background: none; padding: 0 var(--s4) 0 0; min-width: 0; }
  .nav-sub a { font-size: 16px; color: var(--muted); }
  .hero, .pf-cover { grid-template-columns: 1fr; gap: var(--s5); padding-block: var(--s6) var(--s5); }
  .hero-photo, .pf-cover figure { order: -1; max-width: 320px; }
  .paths a { grid-template-columns: 40px 1fr 24px; gap: var(--s1) var(--s3); padding-block: var(--s4); }
  .path-d { grid-column: 2; font-size: 15px; }
  .paths .arr { grid-row: 1; grid-column: 3; }
  .personal-door { grid-template-columns: 1fr; }
  .pd-img img { aspect-ratio: 16 / 10; }
  .pd-text { padding: var(--s5) var(--s4); }
  .intro { padding-block: var(--s6) var(--s5); }
  .lede { font-size: 18px; }
  .pf-about { grid-template-columns: 1fr; gap: var(--s3); }
  .works-intro .tally { gap: var(--s4); }
  .tally b { font-size: 36px; }
  .prose p { font-size: 18px; }
  .pf-nums ul { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .pf-nums li { padding: var(--s4) var(--s3); }
  .marquee li { width: 132px; height: 80px; }
  .job { grid-template-columns: 1fr; gap: var(--s2); }
  .job-side { display: flex; align-items: center; gap: var(--s3); flex-direction: row-reverse; justify-content: flex-end; }
  .job-logo { width: 48px; height: 48px; }
  .pf-services ol, .partners ul { grid-template-columns: 1fr; }
  .cards, .cards--lead { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .type-tile, .type-tile--wide { min-height: 240px; }
  .tt-text { padding: var(--s4); }
  .type-hero-in { padding-block: var(--s6) var(--s5); }
  .dlg { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .dlg-in { padding: var(--s5) var(--s3); }
  .dlg-x { margin: 0; }
  .script td:first-child { width: 30%; }
  .door, .door.has-img { grid-template-columns: 1fr 28px; padding: var(--s4); }
  .door.has-img { padding: 0; }
  .door.has-img .door-img { grid-column: 1 / -1; }
  .door.has-img .door-text { padding: 0 var(--s4) var(--s4); }
  .door.has-img .arr { padding-inline-end: var(--s4); align-self: end; margin-bottom: var(--s4); }
  .door-img img { min-height: 0; aspect-ratio: 16 / 9; }
  .vchoices { grid-template-columns: 1fr; }
  .vchoice { min-height: 340px; }
  .seg { border-radius: var(--r); }
  .rec { grid-template-columns: auto 1fr auto; row-gap: var(--s1); padding-inline: var(--s2); }
  .rec .rec-tag, .rec .rec-year { display: none; }
  .rec--big { grid-template-columns: auto 1fr auto; }
  .rec--big .rec-art { display: none; }
  .rec-grid--films { grid-template-columns: 1fr; }
  .diary-year { grid-template-columns: 1fr; gap: var(--s2); }
  .ar-list a, .ar-list a:has(.ar-img) { grid-template-columns: 1fr 24px; }
  .ar-img { grid-column: 1 / -1; }
  .st-groups { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .marquee { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; }
  .marquee-track[aria-hidden] { display: none; }
}
