/* F.E. Ashkanani · feashkanani.com
   ملف واحد للستايل. بدون framework. الألوان والخط من هوية البراند المعتمدة (6 نوفمبر 2026). */

/* ---------- الخط: Markazi Text محمّل من الموقع نفسه (variable 400–700) ---------- */
@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/markazi-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Markazi Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/markazi-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- الألوان ---------- */
:root {
  --navy: #081226;        /* Ink Navy */
  --navy-2: #0d1a33;      /* كروت */
  --navy-3: #132341;      /* حدود */
  --gold: #D4B26A;        /* Champagne Gold */
  --gold-soft: rgba(212, 178, 106, .16);
  --gold-line: rgba(212, 178, 106, .07);
  --ink: #EEE8DA;         /* النص الأساسي */
  --muted: #A8B0C3;       /* النص الثانوي */
  --danger: #E8A39A;
  --radius: 14px;
  --wrap: 1080px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Markazi Text", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  font-size: 1.25rem;       /* Markazi صغير بطبيعته، فنكبّر الأساس */
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #e6c98a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.lat { font-family: "Markazi Text", Georgia, serif; direction: ltr; unicode-bidi: isolate; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* خطوط ذهبية خفيفة مثل سلم الأسعار */
.ladder {
  background-image: repeating-linear-gradient(to bottom, transparent 0 47px, var(--gold-line) 47px 48px);
}

/* ---------- الهيدر ---------- */
.site-header { border-bottom: 1px solid var(--navy-3); background: var(--navy); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 1.05rem; direction: ltr; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }

/* قائمة الجوال بدون JS: details/summary */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--navy-3); border-radius: 10px; padding: 0 14px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--gold); color: var(--gold); }
.menu .panel { position: absolute; inset-inline: 0; top: 100%; background: var(--navy-2); border-bottom: 1px solid var(--navy-3); padding: 8px var(--gutter) 16px; }
.menu .panel a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--navy-3); }
.menu .panel a[aria-current="page"] { color: var(--gold); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- الأقسام ---------- */
main { display: block; }
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--navy-3); }
.eyebrow { color: var(--gold); font-size: .95rem; letter-spacing: .18em; font-weight: 600; margin: 0 0 8px; direction: ltr; text-align: right; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: var(--ink); }
h1 .g, h2 .g { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.35rem; color: var(--gold); }
p { margin: 0 0 1em; }
.lead { font-size: 1.4rem; color: var(--ink); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 1.05rem; }

.hero { padding-block: 48px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-top: auto; align-self: flex-start; }
/* رابط ثانوي تحت كرت «المحتوى المجاني»: بالصف الثاني تحت العمود الثالث، عشان روابط الكروت تظل على خط واحد */
.card-aside { margin: -4px 0 0; padding-inline: 22px; font-size: 1.1rem; }
.card-aside a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(212, 178, 106, .45); }
.card-aside a:hover { color: var(--gold); }
@media (min-width: 861px) { .grid-3 > .card-aside { grid-column: 3; } }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--navy-3); }
.list-clean li strong { color: var(--gold); font-weight: 600; }

/* ---------- الأزرار ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font: inherit; font-size: 1.25rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); transition: background .15s, color .15s, transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s cubic-bezier(.16, 1, .3, 1); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e0c283; color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(8, 18, 38, .22); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 2px 0 rgba(8, 18, 38, .22); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* ---------- مكان الصور (placeholder) ---------- */
.photo-ph {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px dashed rgba(212, 178, 106, .55);
  background: linear-gradient(160deg, #0f1d3a, var(--navy));
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 1.05rem; padding: 20px;
}
.photo-ph.wide { aspect-ratio: 16 / 9; }
.photo-ph.reel { aspect-ratio: 9 / 16; }
.photo-ph span { max-width: 16em; }
/* صورة المكتب أو القهوة بقسم «عنّي باختصار» (تنحط بـ place_photos.py --about-photo) */
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(212, 178, 106, .35); }

/* صورة فيصل بصفحة «عنّي»: نفس ملف الهيرو hero-faisal.webp (place_photos.py --faisal) */
.about-portrait {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px solid rgba(212, 178, 106, .35);
  background: linear-gradient(165deg, #182b52 0%, #0d1a33 60%, #0a1630 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 860px) { .about-portrait { max-width: 420px; } }
/* لقطة شارت عريضة (صفحة «عنّي») */
.shot-wide { margin: 0; max-width: 900px; }
.shot-wide img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid rgba(212, 178, 106, .6); }

/* ---------- نص مؤقت (placeholder) ---------- */
.ph { color: var(--gold); opacity: .78; background: rgba(212, 178, 106, .08); border: 1px dashed rgba(212, 178, 106, .45); border-radius: 6px; padding: 0 .35em; font-style: normal; }
.ph-block { display: block; color: var(--muted); border: 1px dashed rgba(212, 178, 106, .4); background: rgba(212, 178, 106, .05); border-radius: 10px; padding: 12px 14px; margin: 0 0 1em; }
.ph-block::before { content: "نص مؤقت · "; color: var(--gold); font-weight: 600; }
.draft-banner { background: rgba(212, 178, 106, .12); border: 1px solid rgba(212, 178, 106, .5); color: var(--ink); border-radius: 10px; padding: 10px 14px; margin-bottom: 24px; font-size: 1.05rem; }

/* ---------- الملاحظة فوق النموذج ---------- */
.note { border: 1px solid rgba(212,178,106,.45); background: var(--navy-2); padding: 14px 16px; border-radius: 10px; margin-bottom: 24px; }

/* ---------- النموذج ---------- */
.form { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 1rem; }
.field .req { color: var(--gold); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; min-height: 50px; font: inherit; font-size: 1.2rem; /* 16px+ عشان iOS ما يكبّر الصفحة */
  color: var(--ink); background: var(--navy); border: 1px solid #2a3a5c; border-radius: 10px; padding: 8px 14px;
}
input[type="email"] { direction: ltr; text-align: right; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border: 1px solid #2a3a5c; border-radius: 10px; cursor: pointer; background: var(--navy); }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(212, 178, 106, .07); }
.choice input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; line-height: 1.6; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { display: none; color: var(--danger); border: 1px solid rgba(232, 163, 154, .5); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.form-error.show { display: block; }
.ts-slot:empty { display: none; }
.ts-slot { margin-bottom: 16px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq details { border-bottom: 1px solid var(--navy-3); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding-bottom: 16px; }

/* ---------- المحتوى المجاني ---------- */
.reel-card { display: block; text-decoration: none; color: var(--ink); }
.reel-card .photo-ph { margin-bottom: 10px; }
/* غلاف منشور حقيقي (4:5، مقصوص من النص) */
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(212, 178, 106, .35); margin-bottom: 10px; }
.reel-card .meta:has(b) { flex-direction: column; align-items: flex-start; gap: 2px; }
.reel-card .meta b { font-size: 1.05rem; }
.reel-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.reel-card .meta b { color: var(--gold); font-weight: 600; }
.reels { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .reels { grid-template-columns: 1fr; } }

.term { border-bottom: 1px solid var(--navy-3); padding: 16px 0; }
.term dt { color: var(--gold); font-weight: 700; font-size: 1.35rem; direction: ltr; text-align: right; }
.term dd { margin: 4px 0 0; }

/* ---------- الصفحات القانونية ---------- */
.prose { max-width: 46em; }
/* عناوين الأقسام كلها بنظام h2 الواحد (clamp + كلمة ذهبية .g). الـ h2 الصغير الذهبي للصفحات القانونية بس. */
.prose > h2:not(:first-child) { margin-top: 1.5em; }
.legal h2 { font-size: 1.5rem; color: var(--gold); margin-top: 1.4em; }
.prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .7em; }
.prose ul { padding-inline-start: 1.3em; }
.updated { color: var(--muted); font-size: 1.05rem; }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--navy-3); padding-block: 32px 40px; margin-top: 24px; background: #060e1f; }
.site-footer .disc { color: var(--muted); font-size: 1.05rem; max-width: 52em; }
.site-footer nav ul { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--navy-3); padding-top: 16px; }
.site-footer .social a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: 18px; }
.site-footer .copy { color: var(--muted); font-size: 1rem; direction: ltr; }

/* صفحة 404 وشكراً */
.center-page { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 520px) {
  body { font-size: 1.2rem; }
  .section { padding-block: 44px; }
  .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* أدوات صغيرة (بدال inline style عشان الـ CSP) */
.mt { margin-top: 14px; }
.center-y { align-items: center; }

/* زر الهيدر */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 1.1rem; }
.head-cta { margin-inline-start: auto; }
.site-header .wrap { gap: 12px; }
.menu .panel a.panel-cta { color: var(--gold); font-weight: 700; border-bottom: 0; }
@media (max-width: 860px) { .head-cta { margin-inline-start: auto; } }
@media (max-width: 400px) { .head-cta { display: none; } }
.site-footer .contact { margin: 0; color: var(--muted); font-size: 1.05rem; flex-basis: 100%; }

/* أخطاء الخانات + سطر تحت الزر + شارة */
.field-error { color: var(--danger); font-size: 1.05rem; margin: 6px 0 0; }
.field.has-error input, .field.has-error textarea, .field.has-error .choice { border-color: rgba(232, 163, 154, .7); }
.after-btn { color: var(--muted); font-size: 1.05rem; margin: 12px 0 0; }
.badge { display: inline-block; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 14px; font-size: 1.1rem; margin-bottom: 18px; }
.callout { border: 1px solid rgba(212, 178, 106, .45); background: rgba(212, 178, 106, .06); border-radius: var(--radius); padding: 18px 20px; }
.callout h3 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 10px; height: 2px; background: var(--gold); }
.axes { counter-reset: ax; list-style: none; padding: 0; margin: 0; }
.axes li { counter-increment: ax; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--navy-3); }
.axes li::before { content: counter(ax); color: var(--gold); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.hero-title { font-size: clamp(2.1rem, 6.4vw, 3.4rem); }

/* لقطة الشارت بقسم «ليش Order Flow» (تنحط اللقطة الحقيقية بعد ما يرسلها فيصل) */
.chart-shot { margin: 28px 0 0; }
.chart-shot .photo-ph { border-style: solid; border-color: rgba(212, 178, 106, .6); background: var(--navy); }
.chart-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }

/* قسم «ليش Order Flow»: نفس الشمعة مرتين (شارت شموع ↔ Footprint)، من جلسة غير لقطة الهيرو عشان ما تتكرر اللقطة */
.chart-shot.pair .pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.slot {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  border: 1px solid rgba(212, 178, 106, .6); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-label { color: var(--muted); font-size: 1.05rem; line-height: 1.5; text-align: center; max-width: 11em; padding: 6px 12px; }
.slot-label .lat { color: var(--gold); }
.slot-tag {
  position: absolute; inset-block-end: 10px; inset-inline-start: 10px; z-index: 1;
  background: rgba(8, 18, 38, .85); border: 1px solid rgba(212, 178, 106, .5); border-radius: 999px;
  color: var(--gold); font-size: 1rem; line-height: 1.4; padding: 2px 12px;
}

/* ==========================================================================
   هيرو الرئيسية · «لوح الزجاج» (اختاره فيصل 19 نوفمبر 2026، من site/dev/hero-variants/v2)
   صورة فيصل، وجنبها لوح زجاج داكن بحافة ذهبية مايل بالعمق فيه لقطة الـ Footprint،
   وتحتهم أرضية سلم أسعار ترجع للعمق. الحركة CSS بس، وتوقف مع prefers-reduced-motion.
   الصورة واللقطة: <img> فوق النص المؤقت، فتنحط الصورة بتبديل src بس.
   ========================================================================== */
::selection { background: var(--gold); color: var(--navy); }
html { caret-color: var(--gold); scrollbar-color: var(--navy-3) var(--navy); }
.nb { white-space: nowrap; }

.hero-glass {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 65px);
  display: flex; align-items: center;
  padding-block: clamp(40px, 7vh, 96px);
  background:
    radial-gradient(70% 60% at 22% 40%, rgba(19, 35, 65, .9), transparent 70%),
    var(--navy);
}

/* أرضية سلم الأسعار بالمنظور */
.hg-floor {
  position: absolute; inset-inline: -20%; bottom: -8%; height: 62%; z-index: -1;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(212, 178, 106, .22) 39px 40px);
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
          mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: hg-floor 18s linear infinite;
}
@keyframes hg-floor { from { background-position: 0 0; } to { background-position: 0 40px; } }

.hg-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%;
  max-width: 1280px;
}
.hg-title {
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  line-height: 1.04; margin: 0 0 .35em; text-wrap: balance;
}
.hg-line { display: block; }
.hg-line.g { color: var(--gold); }
.hg-lead { font-size: clamp(1.25rem, 1.7vw, 1.45rem); max-width: 30em; margin: 0; text-wrap: pretty; }

/* المسرح */
.hg-stage {
  position: relative; perspective: 1600px; perspective-origin: 30% 40%;
  aspect-ratio: 1 / 1.02; width: 100%; max-width: 600px; justify-self: center;
}
.hg-label {
  position: relative; z-index: 0;
  color: var(--muted); font-size: 1.05rem; line-height: 1.5; text-align: center;
  max-width: 14em; padding: 6px 12px;
}
.hg-label .lat { color: var(--gold); }
.hg-photo img, .hg-shot img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.hg-photo {
  position: absolute; inset-block-start: 0; inset-inline-end: 0;
  width: 66%; aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 18%;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #182b52 0%, #0d1a33 60%, #0a1630 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%);
          mask-image: linear-gradient(to top, transparent 0%, #000 30%);
}
.hg-photo .hg-label { border: 1px dashed rgba(212, 178, 106, .5); border-radius: 10px; }
.hg-photo img { object-position: 50% 20%; }

/* اللوح */
.hg-pane {
  position: absolute; margin: 0; z-index: 2;
  inset-block-end: 9%; inset-inline-start: 0; width: 84%; aspect-ratio: 16 / 11;
  padding: 12px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(19, 35, 65, .62), rgba(8, 18, 38, .78));
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
          backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(212, 178, 106, .75);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 18px 30px -18px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(238, 232, 218, .10);
  transform-style: preserve-3d;
  transform: rotateY(16deg) rotateX(5deg) translateZ(40px);
  animation:
    hg-arrive 1.8s cubic-bezier(.16, 1, .3, 1) both,
    hg-float 14s ease-in-out 1.8s infinite alternate;
}
/* لمعة على الزجاج تمر مرة وحدة بعد ما يوصل اللوح */
.hg-pane::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 35%, rgba(212, 178, 106, .16) 48%, transparent 60%);
  background-size: 260% 100%; background-position: 120% 0;
  animation: hg-glint 2.4s cubic-bezier(.16, 1, .3, 1) 1.2s both;
}
.hg-shot {
  position: relative; height: 100%; border-radius: 9px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 178, 106, .28);
  background: rgba(8, 18, 38, .55);
  clip-path: inset(0 0 0 0 round 9px);
  animation: hg-reveal 1.6s cubic-bezier(.16, 1, .3, 1) .5s both;
}
/* شارة التاريخ على حافة اللوح، برا اللقطة عشان ما تغطي أرقام الـ Footprint */
.hg-badge {
  position: absolute; z-index: 3; inset-block-end: 0; inset-inline-start: 50%;
  transform: translate(50%, 50%);
  white-space: nowrap; background: var(--navy); border: 1px solid rgba(212, 178, 106, .6); border-radius: 999px;
  color: var(--muted); font-size: 1rem; line-height: 1.5; padding: 2px 14px;
}
[dir="ltr"] .hg-badge { transform: translate(-50%, 50%); }

@keyframes hg-arrive {
  from { transform: rotateY(34deg) rotateX(10deg) translateZ(-160px); opacity: .25; }
  to   { transform: rotateY(16deg) rotateX(5deg) translateZ(40px); opacity: 1; }
}
@keyframes hg-float {
  from { transform: rotateY(16deg) rotateX(5deg) translateZ(40px); }
  to   { transform: rotateY(11deg) rotateX(3deg) translateZ(60px) translateY(-8px); }
}
/* اللقطة تنكشف من اليمين لليسار، مثل ما ينقرا الشارت بالعربي */
@keyframes hg-reveal { from { clip-path: inset(0 0 0 100% round 9px); } to { clip-path: inset(0 0 0 0 round 9px); } }
@keyframes hg-glint { to { background-position: -40% 0; } }

/* الجوال: اللوح يطلع بين العنوان والسطر، عشان أول شاشة فيها الفكرة كاملة */
@media (max-width: 860px) {
  .hero-glass { align-items: flex-start; padding-block: 32px 44px; }
  .hg-grid { grid-template-columns: 1fr; gap: 0; }
  .hg-copy { display: contents; }
  .hg-title { font-size: clamp(3rem, 13.6vw, 4.6rem); margin-bottom: 18px; }
  .hg-stage { order: 1; max-width: 440px; aspect-ratio: 1 / .8; perspective: 1100px; margin-bottom: 30px; }
  .hg-lead, .hg-copy .actions { order: 2; }
  .hg-photo { width: 58%; padding-top: 7%; }
  .hg-pane { width: 86%; inset-block-end: 2%; padding: 8px; }
  .hg-pane .hg-label { font-size: .98rem; }
  .hg-badge { font-size: .92rem; padding: 1px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .hg-shot { clip-path: none; }
}

/* ==========================================================================
   الرئيسية المختصرة (21 نوفمبر 2026): «من وين تبدي» صفوف قصيرة بدال كروت
   ========================================================================== */
.start-list { display: grid; gap: 10px; }
.start-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t go" "d go";
  column-gap: 14px; align-items: center; min-height: 64px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid var(--navy-3);
  color: inherit; text-decoration: none;
}
.start-row:hover, .start-row:focus-visible { border-color: var(--gold); }
.start-t { grid-area: t; font-family: "Markazi Text", serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); line-height: 1.2; }
.start-d { grid-area: d; color: var(--muted); font-size: 1.1rem; line-height: 1.45; }
.start-go { grid-area: go; color: var(--gold); font-size: 1.4rem; }
.start-aside { margin: 14px 0 0; font-size: 1.1rem; color: var(--muted); }
.start-aside a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(212, 178, 106, .45); }
.start-aside a:hover { color: var(--gold); }
@media (min-width: 861px) { .start-list { grid-template-columns: repeat(3, 1fr); } .start-row { grid-template-areas: "t go" "d d"; align-items: start; } }
@media (max-width: 860px) {
  .section { padding-block: 40px; }
  .hero-glass { padding-block: 16px 28px; }
  .hg-title { font-size: clamp(2.5rem, 11.4vw, 4rem); margin-bottom: 12px; }
  .hg-stage { max-width: 380px; aspect-ratio: 1 / .88; margin-bottom: 14px; }
  /* 22 نوفمبر 2026: بالجوال اللوح كان يغطي صورة فيصل. الصورة أكبر واللوح أصغر وتحت، عشان راسه والشاشات يبينون فوق */
  .hg-photo { width: 66%; }
  .hg-pane { width: 72%; inset-block-end: 1%; }
}

/* أيقونات السوشال بالفوتر (21 نوفمبر 2026) */
.site-footer .social a { justify-content: center; min-width: 44px; min-height: 44px; margin-inline-end: 8px; border: 1px solid var(--navy-3); border-radius: 50%; color: var(--gold); text-decoration: none; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { border-color: var(--gold); background: rgba(212, 178, 106, .1); }
.site-footer .social svg { display: block; }

/* 21 نوفمبر 2026 (SEO): مصطلحات /free/ صارت h3 + p بدال dt/dd. نفس الشكل بالضبط، ومعاها رابط anchor لكل مصطلح. */
.term h3 { color: var(--gold); font-weight: 700; font-size: 1.35rem; direction: ltr; text-align: right; margin: 0; line-height: inherit; }
.term h3 a { color: inherit; text-decoration: none; }
.term h3 a:hover, .term h3 a:focus-visible { text-decoration: underline; }
.term p { margin: 4px 0 0; }
.term { scroll-margin-top: 90px; }

/* 21 نوفمبر 2026 (قرار فيصل، SEO): سطر صغير فوق عنوان الهيرو، داخل نفس الـ H1. */
.hg-eyebrow { display: block; color: var(--gold); font-size: 1.05rem; line-height: 1.3; letter-spacing: .04em; font-weight: 600; margin: 0 0 .5em; }
@media (max-width: 860px) { .hg-eyebrow { font-size: .98rem; margin-bottom: .35em; } }

/* 21 نوفمبر 2026: القاموس /learn/ (قالب واحد لكل المصطلحات، من dev/learn.py) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.05rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--gold); text-decoration: underline; }
.crumbs .sep { color: var(--gold); opacity: .7; }
.crumbs [aria-current="page"] { color: var(--ink); }
.learn-head { padding-block: 34px 0; }
.learn-head h1 { margin: 0; max-width: 20em; }
.learn-main { padding-top: 26px; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 28em) minmax(0, 15em); gap: clamp(32px, 6vw, 96px); align-items: start; }
.learn-body { max-width: 28em; }
.learn-body .lead { font-size: 1.4rem; color: var(--ink); border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; margin-bottom: 1.2em; }
.learn-body h2 { scroll-margin-top: 84px; }
.learn-body .ticks li { margin-bottom: .6em; }
.learn-note { color: var(--muted); font-size: 1.05rem; border-top: 1px solid var(--navy-3); padding-top: 14px; margin-top: 1.6em; }
.learn-table { overflow-x: auto; margin: 0 0 1em; }
.learn-table table { border-collapse: collapse; width: 100%; min-width: 30em; font-size: 1.08rem; }
.learn-table th, .learn-table td { border: 1px solid var(--navy-3); padding: 8px 10px; text-align: start; vertical-align: top; }
.learn-table thead th, .learn-table th[scope="row"] { color: var(--gold); font-weight: 700; }
.learn-shot { margin: 1.4em 0; }
.learn-toc { position: sticky; top: 92px; border-inline-start: 1px solid var(--navy-3); padding-inline-start: 18px; font-size: 1.08rem; }
.learn-toc .toc-t { color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.learn-toc ol { list-style: none; margin: 0; padding: 0; }
.learn-toc a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.learn-toc a:hover, .learn-toc a:focus-visible { color: var(--gold); }
.learn-foot { padding-top: 0; }
.learn-end { max-width: 46em; margin-inline: 0 auto; }
.learn-rel { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.learn-rel a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(212, 178, 106, .55); border-radius: 999px; color: var(--ink); text-decoration: none; }
.learn-rel a:hover, .learn-rel a:focus-visible { border-color: var(--gold); color: var(--gold); }
.learn-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; border-top: 1px solid var(--navy-3); padding-top: 20px; }
.learn-pn a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--navy-3); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 64px; }
.learn-pn a:hover, .learn-pn a:focus-visible { border-color: var(--gold); }
.learn-pn .pn-k { color: var(--muted); font-size: .98rem; }
.learn-pn .pn-t { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.learn-pn .pn-next { text-align: end; align-items: flex-end; }
.learn-index h2 { margin-top: 1.6em; }
.learn-index h2:first-child { margin-top: 0; }
.learn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.learn-card { display: block; background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.learn-card:hover, .learn-card:focus-visible { border-color: var(--gold); }
.learn-card h3 { margin: 0 0 .3em; }
.learn-card p { margin: 0; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 1000px) { .learn-grid { grid-template-columns: minmax(0, 1fr); } .learn-toc { display: none; } .learn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .learn-cards { grid-template-columns: 1fr; } .learn-head { padding-top: 22px; } .learn-pn .pn-t { font-size: 1.08rem; } }

/* صورة «عنّي» بالعرض (22 نوفمبر 2026): تنتهي عند حافة الطاولة */
.about-portrait { aspect-ratio: 3 / 2; }
.about-portrait img { object-position: 50% 50%; }
@media (max-width: 860px) { .about-portrait { max-width: none; } }

/* أيقونات التواصل بالفوتر (22 نوفمبر 2026): إيميل ورسالة Instagram */
.site-footer .contact-icons { display: flex; align-items: center; gap: 0; }
.site-footer .contact-label { color: var(--muted); font-size: 1.05rem; margin-inline-end: 12px; }

/* إصلاح 22 نوفمبر 2026: السؤال اللي فيه كلمة إنجليزية كان يتوزع على عرض السطر (كل قطعة عنصر flex بروحه).
   السؤال صار نص عادي، وعلامة + ثابتة بالطرف. */
.faq summary { display: block; position: relative; padding-block: 14px; padding-inline-end: 40px; min-height: 56px; line-height: 1.5; }
.faq summary::after { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); }
