/* mohmdalnemer.net — مدوّنة هادئة: ورقٌ دافئ وحبرٌ أخضر واحد كالشعار، وقوسه بقاعدته المستوية يحمل الصورة */
:root {
  --bg: #F7F3EC;
  --surface: #FFFDF9;
  --sunk: #EFE8DC;
  --ink: #1F1A15;
  --muted: #645B51;
  --faint: #8E8478;
  --line: #E4DCCF;
  --line2: #D6CCBC;
  --accent: #2E5E4E;
  --accent-2: #3B7562;
  --on-accent: #FFFFFF;
  --arch: #E6EEE9;
  --shadow: 0 1px 0 rgba(31, 26, 21, .04), 0 10px 30px -18px rgba(31, 26, 21, .35);
  --fb: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --fh: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --fn: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120F; --surface: #1B1814; --sunk: #221E19; --ink: #F1EBE1; --muted: #B5AB9E; --faint: #857B70;
    --line: #2C2721; --line2: #3A332B; --accent: #86C2AC; --accent-2: #A3D3C1; --on-accent: #0E1512;
    --arch: #1B2723; --shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14120F; --surface: #1B1814; --sunk: #221E19; --ink: #F1EBE1; --muted: #B5AB9E; --faint: #857B70;
  --line: #2C2721; --line2: #3A332B; --accent: #86C2AC; --accent-2: #A3D3C1; --on-accent: #0E1512;
  --arch: #1B2723; --shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
/* الصفحة تظهر كاملة في إطار واحد بعد تحميل الخطوط (لا ظهور متدرّج)، وفي الرأس مهلة أمان */
.js:not(.ready) body { opacity: 0; }
.js body { transition: opacity .3s ease; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.85 var(--fb);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.ic { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ── الأزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; font: 600 15.5px/1 var(--fb); text-decoration: none; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--accent); color: var(--on-accent); }
.btn-pri:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ── الرأس ── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-mk { width: 34px; height: auto; }
:root[data-theme="dark"] .brand-mk, :root[data-theme="dark"] .foot-brand img, :root[data-theme="dark"] .mk { filter: brightness(0) invert(.86) sepia(.25) hue-rotate(110deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mk, :root:not([data-theme="light"]) .foot-brand img, :root:not([data-theme="light"]) .mk { filter: brightness(0) invert(.86) sepia(.25) hue-rotate(110deg); } }
.brand-n { font: 700 25px/1 var(--fn); padding-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.menu { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); place-items: center; cursor: pointer; }
.theme { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}

/* ── البداية ── */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.name { font: 700 clamp(58px, 9.4vw, 112px)/1.12 var(--fn); letter-spacing: 0; }
.role { margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 17px; }
.hl { margin-top: 22px; font: 700 clamp(21px, 2.4vw, 27px)/1.6 var(--fh); max-width: 34ch; text-wrap: balance; }
.about { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-fig { position: relative; margin: 0; justify-self: center; width: min(400px, 100%); aspect-ratio: 400 / 470; }
.arch { position: absolute; inset: 16% 4% 0 4%; background: var(--arch); border-radius: 999px 999px 26px 26px; }
.arch-line { position: absolute; inset: calc(16% - 14px) calc(4% + 14px) 14px calc(4% - 14px); border: 1.5px solid var(--accent); border-radius: 999px 999px 26px 26px; opacity: .55; }
.hero-fig img { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; width: 92%; height: auto; border-radius: 0 0 26px 26px; }

/* ── يحيى ── */
.yahya { padding-bottom: clamp(36px, 6vw, 64px); }
.y-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3.2vw, 32px); }
.y-h { display: flex; align-items: center; gap: 14px; }
.y-ava { flex: none; width: 52px; height: 52px; border-radius: 999px 999px 14px 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.y-ava svg { width: 26px; height: 26px; }
.y-t { flex: 1; min-width: 0; }
.sec-h h2, .y-t h2, .ev-t, .f-title { text-wrap: balance; }
.y-t h2 { font: 700 clamp(21px, 2.4vw, 26px)/1.4 var(--fh); }
.y-p { color: var(--muted); margin-top: 12px; font-size: 15.5px; max-width: 70ch; }
.st { vertical-align: middle; margin-inline-start: 8px; display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.6 var(--fb); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: #3DA36B; box-shadow: 0 0 0 3px color-mix(in srgb, #3DA36B 22%, transparent); }
.st[hidden] { display: none; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 20px; }
.chip { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15.5px; transition: border-color .2s, background .2s, transform .2s; }
.chip .ic { color: var(--accent); width: 20px; height: 20px; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.y-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* ── الأقسام ── */
.sec { padding: clamp(40px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.sec-tint { background: color-mix(in srgb, var(--sunk) 55%, var(--bg)); }
.yahya.sec { border-top: 0; padding-top: 0; }
.pg-meet .yahya.sec { padding-top: clamp(24px, 4vw, 40px); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.sec-h h2 { font: 700 clamp(26px, 3vw, 34px)/1.3 var(--fh); }
.sec-h p { color: var(--muted); font-size: 15px; flex: 1 1 260px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ── الومضات ── */
.flashes { list-style: none; margin: 0; padding: 0; }
.flash { border-bottom: 1px dashed var(--line2); }
.flash:last-child { border-bottom: 0; }
.flash a { display: block; padding: 16px 0; text-decoration: none; }
.f-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--faint); }
.f-tag { color: var(--accent); font-weight: 600; }
.f-tag .by { color: var(--faint); font-weight: 500; }
.k-follow .f-tag { color: var(--accent); }
.f-title { display: block; margin-top: 3px; font: 700 clamp(18.5px, 2vw, 21px)/1.55 var(--fh); transition: color .2s; }
.f-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 15.5px; }
.flash a:hover .f-title { color: var(--accent); }
.empty { color: var(--muted); }
.empty a { color: var(--accent); }

/* ── الحضور ── */
.pres { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.events { list-style: none; margin: 0; padding: 0; position: relative; }
.ev { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line2); }
.ev:last-child { border-bottom: 0; }
.ev-when { color: var(--faint); font-size: 14px; font-weight: 500; padding-top: 3px; }
.ev-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-k { color: var(--accent); font-weight: 600; }
.ev-t { font: 700 19px/1.55 var(--fh); text-decoration: none; }
a.ev-t:hover { color: var(--accent); }
.ev-w { color: var(--muted); font-size: 15px; }
.ev-w a { color: var(--accent); font-weight: 600; }
.ev-n { margin-top: 6px; padding-inline-start: 12px; border-inline-start: 2px solid var(--arch); color: var(--muted); font-size: 15px; }
.ev.is-empty .ev-t { font-family: var(--fb); font-size: 16px; font-weight: 600; }

.pres-side { display: grid; gap: 18px; }
.press { list-style: none; margin: 0; padding: 0; }
.press-mini { margin-top: 26px; }
.press-mini h3 { font: 700 20px/1.4 var(--fh); margin-bottom: 4px; }
.press-mini .more { margin-top: 10px; }
.press li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line2); text-decoration: none; }
.press li:last-child a { border-bottom: 0; }
.pr-o { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; gap: 8px; }
.pr-o i { font-style: normal; color: var(--faint); font-weight: 500; }
.pr-t { grid-column: 1; font-size: 15px; line-height: 1.7; }
.press .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--faint); }
.press li a:hover .pr-t { color: var(--accent); }
.fudex { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s; }
.fudex:hover { border-color: var(--accent); }
.fx-n { font: 700 21px/1.3 var(--fh); }
.fx-n small { font: 500 13px/1 var(--fb); color: var(--faint); margin-inline-start: 6px; }
.fx-l { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.fx-go { justify-self: end; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ── التذييل ── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.nets { display: flex; flex-wrap: wrap; gap: 8px; }
.net { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s; }
.net:hover { color: var(--accent); border-color: var(--accent); }
.f-line { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--faint); font-size: 13.5px; }
.f-copy { margin-top: 4px; color: var(--faint); font-size: 13.5px; }

/* ── شريط الأرقام ── */
.band { background: var(--accent); color: var(--on-accent); }
.band-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.num { padding: clamp(22px, 3.4vw, 34px) clamp(10px, 2vw, 22px); border-inline-start: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); display: grid; gap: 4px; }
.num:first-child { border-inline-start: 0; }
.num b { font: 700 clamp(22px, 2.7vw, 32px)/1.25 var(--fh); }
.num span { font-size: 14.5px; opacity: .86; }

/* ── الأبرز ── */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fc-img { aspect-ratio: 4 / 3; background: var(--arch); overflow: hidden; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-b { padding: 16px 18px 20px; display: grid; gap: 6px; }
.fc-meta { font-size: 13.5px; color: var(--faint); }
.fc-meta b { color: var(--accent); font-weight: 600; }
.fcard h3 { font: 700 19px/1.55 var(--fh); text-wrap: balance; }
.fc-w { color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ── ما أقدّمه ── */
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.off { display: grid; align-content: start; gap: 8px; padding: 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.off:hover { border-color: var(--accent); transform: translateY(-2px); }
.off-ic { width: 26px; height: 26px; color: var(--accent); }
.off b { font: 700 17.5px/1.5 var(--fh); }
.off span { color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ── الجهات ── */
.orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.orgs li { padding: 16px 18px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); display: grid; gap: 2px; }
.orgs b { font: 700 16.5px/1.5 var(--fh); }
.orgs span { color: var(--muted); font-size: 14px; }

/* ── اقتباس ── */
.quote { padding: clamp(44px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.q { margin: 0 auto; max-width: 820px; text-align: center; position: relative; }
.q::before { content: "”"; display: block; font: 700 96px/0.6 var(--fh); color: var(--accent); opacity: .5; margin-bottom: 18px; }
.q blockquote { margin: 0; }
.q p { font: 700 clamp(24px, 3.4vw, 38px)/1.6 var(--fh); text-wrap: balance; transition: opacity .5s ease; }
.q p.out { opacity: 0; }
.q figcaption { margin-top: 14px; color: var(--faint); font-size: 14px; }

/* ── عمودان ── */
.two { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.side { display: grid; gap: 14px; align-content: start; }
.side .sec-h { margin-bottom: 4px; }
.side .btn { justify-self: start; }

/* ── المعرض المصغّر ── */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.mosaic .gi:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .gi:nth-child(4) { grid-row: span 2; }
.gi { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--arch); }
.mosaic .gi img { width: 100%; height: 100%; object-fit: cover; }
.gi figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 13px; line-height: 1.6; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); background: linear-gradient(transparent, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, .84)); display: grid; }
.gi figcaption small { opacity: .78; font-size: 12px; }

/* ── رأس الصفحات الداخلية ── */
.phead { padding: clamp(30px, 6vw, 70px) 0 clamp(26px, 4vw, 44px); }
.phead-in { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 60px); align-items: center; }
.phead h1 { font: 700 clamp(38px, 6vw, 64px)/1.25 var(--fh); text-wrap: balance; }
.crumb { color: var(--faint); font-size: 14px; margin-bottom: 8px; }
.crumb a { color: var(--accent); text-decoration: none; }
.lead { margin-top: 12px; color: var(--muted); font-size: clamp(16.5px, 1.6vw, 19px); max-width: 62ch; line-height: 1.9; }
.lead a { color: var(--accent); font-weight: 600; }
.phead-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.phead-fig { margin: 0; width: clamp(180px, 24vw, 280px); aspect-ratio: 512 / 630; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--arch); box-shadow: var(--shadow); }
.phead-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ── نص السيرة ── */
.prose { max-width: 72ch; }
.prose h2 { font: 700 clamp(24px, 2.8vw, 30px)/1.4 var(--fh); margin-bottom: 14px; }
.prose p + p { margin-top: 14px; }
.prose p { font-size: 17px; line-height: 2; }

/* ── المحطات ── */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tl::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 80px; width: 2px; background: var(--line2); }
.tl li { display: grid; grid-template-columns: 64px 1fr; gap: 34px; padding: 10px 0; position: relative; }
.tl li::after { content: ""; position: absolute; inset-inline-start: 75px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl b { font: 700 18px/2 var(--fh); color: var(--accent); }
.tl p { padding-top: 4px; font-size: 16px; line-height: 1.85; }

/* ── الأدوار والوسوم ── */
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.roles li { display: grid; grid-template-columns: 150px 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line2); align-items: baseline; }
.roles b { font-weight: 600; color: var(--accent); }
.roles i { font-style: normal; color: var(--faint); font-size: 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.edu { color: var(--muted); }
.venture { color: var(--muted); line-height: 1.9; }

/* ── الأفكار ── */
.ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ideas li { padding: 20px 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.ideas blockquote { margin: 0; font: 700 18px/1.75 var(--fh); }

/* ── المحاضرات ── */
.talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.talk { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.tk-img { background: var(--arch); min-height: 200px; display: grid; place-items: center; }
.tk-img img { width: 100%; height: 100%; object-fit: cover; max-height: 320px; }
.tk-ph { width: 44px; height: 44px; color: var(--accent); opacity: .6; }
.tk-b { padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.tk-meta { font-size: 13.5px; color: var(--faint); }
.tk-meta b { color: var(--accent); font-weight: 600; }
.talk h3 { font: 700 clamp(19px, 2vw, 22px)/1.55 var(--fh); text-wrap: balance; }
.tk-w { color: var(--accent); font-size: 14.5px; font-weight: 500; }
.tk-s { color: var(--muted); font-size: 15.5px; }
.tk-pts { margin: 4px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.src { justify-self: start; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.src:hover { text-decoration: underline; text-underline-offset: 4px; }
.src .ic { width: 15px; height: 15px; }

/* ── المعارض ── */
.expos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.expo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.ex-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--arch); }
.ex-b { padding: 14px 16px 18px; display: grid; gap: 4px; }
.ex-meta { font-size: 13px; color: var(--faint); }
.expo h3 { font: 700 17.5px/1.5 var(--fh); }
.expo p:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.expo.no-img .ex-b { border-top: 3px solid var(--accent); }

/* ── قصص الإرشاد ── */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.story { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.st-when { color: var(--faint); font-size: 13.5px; }
.story h3 { font: 700 24px/1.4 var(--fh); }
.story p { color: var(--muted); line-height: 1.9; }
.story .st-tag { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14.5px; }

/* ── الإعلام كاملاً ── */
.press-full li a { padding: 18px 0; }
.press-full .pr-t { font: 700 clamp(17px, 1.8vw, 20px)/1.65 var(--fh); }

/* ── المعرض ── */
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery .gi { break-inside: avoid; margin-bottom: 12px; }
.gallery .gi img { width: 100%; height: auto; }

/* ── الصفحات الضيّقة والخطوات ── */
.narrow { max-width: 760px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; color: var(--muted); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ── التذييل ── */
.foot-in { display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 46px; height: auto; }
.foot-n { font: 700 26px/1.2 var(--fn); }
.foot-r { color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--accent); }
.f-copy a { color: var(--accent); }

/* ── الظهور ── */
/* لا ظهور متدرّج عند التمرير (أمره): الأقسام تظهر كاملة مع الصفحة */

/* ── الجوال واللوح ── */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; inset-inline: 12px; top: calc(100% + 6px); flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .top.nav-open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .menu { display: grid; }
  .top-in { position: relative; }
}
@media (max-width: 860px) {
  .two, .pres { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr 1fr; }
  .band-in { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-inline-start: 0; }
  .num:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); }
  .talk { grid-template-columns: 220px 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic .gi:nth-child(4) { grid-row: span 1; }
  .mosaic .gi:nth-child(n+6) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-cta { display: none; }
  .feat { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .feat::-webkit-scrollbar { display: none; }
  .fcard { scroll-snap-align: start; box-shadow: none; }
  .fc-img { aspect-ratio: 16 / 10; }
  .fc-b { padding: 14px 16px 16px; }
  .fcard h3 { font-size: 17.5px; }
  .fc-w { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .offer { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mosaic .gi:not(:first-child) figcaption { display: none; }
  .off { padding: 16px 14px; gap: 6px; }
  .off b { font-size: 16px; }
  .off span { font-size: 13.5px; line-height: 1.7; }
  .off:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .num { padding: 18px 14px; }
  .num b { font-size: 23px; }
  .num span { font-size: 13.5px; }
  .orgs b { font-size: 15px; }
  .orgs span { font-size: 13px; }
  .talk { grid-template-columns: 1fr; }
  .tk-img { min-height: 0; max-height: 260px; }
  .tk-img img { max-height: 260px; }
  .talk.no-img .tk-img { display: none; }
  .phead-in { grid-template-columns: 1fr; }
  .phead-fig { order: -1; width: 170px; }
  .roles li { grid-template-columns: 1fr auto; }
  .roles li span { grid-column: 1 / -1; }
  .tl::before { inset-inline-start: 62px; }
  .tl li { grid-template-columns: 48px 1fr; gap: 28px; }
  .tl li::after { inset-inline-start: 57px; }
  .tl b { font-size: 16px; }
  .orgs { grid-template-columns: 1fr 1fr; }
  .orgs li { padding: 14px 12px; }
  .q::before { font-size: 72px; }
  .top-in { min-height: 60px; gap: 10px; }
  .brand-n { font-size: 23px; }
  .hero { padding-top: 12px; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-fig { order: -1; width: min(58vw, 236px); }
  .name { font-size: clamp(54px, 15vw, 70px); }
  .hero-txt { text-align: center; }
  .hl, .about { margin-inline: auto; }
  .cta { justify-content: center; }
  .cta .btn { flex: 1 1 200px; }
  .y-ava { width: 46px; height: 46px; }
  .st { margin: 4px 0 0; display: flex; width: max-content; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chip { min-height: 50px; padding: 10px 12px; font-size: 14.5px; }
  .ev { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 420px) {
  .orgs li { padding: 12px 10px; }
}
@media (max-width: 340px) {
  .orgs, .offer { grid-template-columns: 1fr; }
  .band-in { grid-template-columns: 1fr; }
  .num { border-inline-start: 0 !important; border-top: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); }
  .num:first-child { border-top: 0; }
}
@media (max-width: 360px) {
  .chips { grid-template-columns: 1fr; }
  .btn-sm { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js body { transition: none; }
}


/* ═══ الالتزام بالشعار (v3، اعتمده 11-13) ═══
   حبرٌ واحد (الأخضر)، والقوس بقاعدته المستوية وخطّه الواحد السميك، والشعار نفسه بلا تعديل في الرأس والتوقيع والتذييل. */
.brand-mk { width: 40px; }
.foot-brand img { width: 80px; }
.btn-ghost { border: 2px solid var(--accent); color: var(--accent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fcard, .off, .talk, .story, .vcard, .expo, .press-full li { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }

/* عنوان كل قسم يبدأ بقوس الشعار */
.sec-h h2::before { content: ""; display: inline-block; width: .46em; height: .6em; margin-inline-end: .4em; border: 3px solid var(--accent); border-bottom-width: 3px; border-radius: 999px 999px 0 0; vertical-align: -.04em; }

/* الصورة داخل قوس الشعار: قاعدة مستوية وخطّ واحد */
.hero-fig { aspect-ratio: 400 / 480; }
.arch-frame { position: absolute; inset: 4% 2% 0 2%; border: 6px solid var(--accent); border-radius: 999px 999px 0 0; background: var(--arch); overflow: hidden; }
.arch-frame img { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; width: 100%; height: auto; border-radius: 0; }
.phead-fig { border: 4px solid var(--accent); border-radius: 999px 999px 0 0; box-shadow: none; }

/* الشعار توقيعاً فوق الفكرة */
.q::before { display: none; }
.q-mk { width: 96px; height: auto; margin: 0 auto 22px; }

/* المقابلات: تُشغَّل في مكانها، ولا يُحمَّل يوتيوب قبل الضغط */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vgrid-full { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 961px) { .vgrid-full:has(> .vcard:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }  /* ثلاث مقابلات: صفّ واحد لا ثالثة وحيدة */
.vcard { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.vplay { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0E1512; cursor: pointer; overflow: hidden; }
.vplay img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; opacity: .94; }
.vplay:hover img, .vplay:focus-visible img { transform: scale(1.03); opacity: 1; }
.vbtn { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, #fff 60%, transparent), 0 10px 26px -10px rgba(0, 0, 0, .6); transition: transform .2s; }
.vplay:hover .vbtn, .clip:hover .vbtn { transform: scale(1.06); }
.vbtn svg { width: 28px; height: 28px; margin-left: 3px; }
.vdur { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(0, 0, 0, .74); color: #fff; font-size: 12.5px; line-height: 1.6; padding: 1px 8px; border-radius: 6px; }
.vframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vb { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; flex: 1; }
.vmeta { font-size: 13.5px; color: var(--faint); }
.vmeta b { color: var(--accent); font-weight: 600; }
.vcard h3 { font: 700 19px/1.55 var(--fh); text-wrap: balance; }
.vw { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.vd { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.vrow .vd { display: none; }
.clips { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.clips > * { flex: 0 0 170px; }
.clips > .vframe.short { flex-basis: 300px; }
.clip { position: relative; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #0E1512; cursor: pointer; scroll-snap-align: start; }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip .vbtn { width: 50px; height: 50px; box-shadow: 0 0 0 5px color-mix(in srgb, #fff 60%, transparent); }
.clip .vbtn svg { width: 22px; height: 22px; }
.clip-t { position: absolute; inset: auto 0 0 0; padding: 34px 10px 10px; color: #fff; font: 600 13.5px/1.6 var(--fb); text-align: start; background: linear-gradient(transparent, rgba(0, 0, 0, .86) 45%); }
.vframe.short { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; scroll-snap-align: start; }

@media (max-width: 960px) {
  .vgrid { grid-template-columns: 1fr 1fr; }
  .vrow .vcard:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .arch-frame { border-width: 4px; }
  .phead-fig { border-width: 3px; }
  .vrow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .vrow::-webkit-scrollbar { display: none; }
  .vrow .vcard { scroll-snap-align: start; box-shadow: none; }
  .vrow .vcard:nth-child(3) { display: flex; }
  .vgrid-full { grid-template-columns: 1fr; }
  .vcard h3 { font-size: 17.5px; }
  .vbtn { width: 58px; height: 58px; }
  .clips { margin-inline: -16px; padding: 2px 16px 12px; scroll-padding-inline: 16px; }
  .clips > * { flex-basis: 42%; }
  .clips > .vframe.short { flex-basis: 76%; }
  .q-mk { width: 76px; }
}


/* ═══ ترتيب 11-13 (أمره): ومضة مبكراً تُظهر اهتماماته، ولقاءان رسميّان في الرئيسية، ونت زيرو في الإرشاد ═══ */
.wam .flashes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.wam .flash, .wam .flash:last-child { border: 1.5px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.wam .flash.k-note { border-top: 3px solid var(--accent); }
.wam .flash a { height: 100%; padding: 18px 20px 20px; }
.wam .f-sum { -webkit-line-clamp: 3; }
.wam-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.wam-go:hover { text-decoration: underline; text-underline-offset: 5px; }
.two-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.two-even .press-mini { margin-top: 0; }
.band-in:has(> .num:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.vrow:has(> .vcard:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.st-q { margin: 4px 0 0; padding: 14px 18px; border-inline-start: 3px solid var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, transparent); display: grid; gap: 6px; }
.story .st-q p { font-size: 15.5px; line-height: 1.9; }
.st-q a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) {
  .two-even { grid-template-columns: 1fr; }
  .band-in:has(> .num:nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
  .band-in:has(> .num:nth-child(3):last-child) .num:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .vrow:has(> .vcard:nth-child(2):last-child) { grid-template-columns: none; }
}
@media (max-width: 340px) {
  .band-in:has(> .num:nth-child(3):last-child) { grid-template-columns: 1fr; }
}
