/* ═══════════════════════════════════════════════════════════════════════════
   حمدي مدخلي · Hamdi Madkhali · مصوّر ومونتير · Videographer & Editor
   سينمائي بالأبيض والأسود · ثنائي اللغة (عربي/ثمانية ⇄ إنجليزي/Inter)
   Vanilla CSS · no build step. Reference feel: dannygevirtz.com (dark, minimal).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1) خط ثمانية المحلي · @font-face (يُستخدم عند تفعيل العربية)
      ثلاث عائلات: للعناوين (display) / للنصوص (text) / الرقمي (sans)
   ───────────────────────────────────────────── */
@font-face { font-family:"Thmanyah Display"; font-weight:300; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Light.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Display"; font-weight:400; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Regular.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Display"; font-weight:500; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Medium.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Display"; font-weight:700; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Bold.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Display"; font-weight:900; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Black.woff2") format("woff2"); }

@font-face { font-family:"Thmanyah Text"; font-weight:300; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Light.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Text"; font-weight:400; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Regular.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Text"; font-weight:500; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Medium.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Text"; font-weight:700; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Bold.woff2") format("woff2"); }

@font-face { font-family:"Thmanyah Sans"; font-weight:300; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Light.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Sans"; font-weight:400; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Regular.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Sans"; font-weight:500; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Medium.woff2") format("woff2"); }
@font-face { font-family:"Thmanyah Sans"; font-weight:700; font-style:normal; font-display:swap;
  src:url("fonts/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Bold.woff2") format("woff2"); }

/* ─────────────────────────────────────────────
   2) خصائص OpenType لثمانية (تُطبَّق على العربية فقط)

     salt        = «الأحرف المرسلة» (Stylistic Alternates)  → .marsala
     ss03 … ss07 = «الكشيدة المائلة» fatha-ar 01..05         → .kashida-1..5

   ★ قواعد دليل ثمانية (مُلتزَم بها):
     • الكشيدة/المرسلة تُطبَّق على كلمة واحدة بارزة فقط في كل عنوان رئيسي.
     • لا كشيدة على نصوص الفقرات/الأزرار/التسميات/عناوين الفيديو.
     • لا نستخدم .kashida-5 (أقصى امتداد ممنوع بالدليل).
     • كي يمتد الخط يجب أن تحمل الوصلة فتحة (ـَ) على الحرف المستهدف.
   عند الإنجليزية يُلغى هذا كليًا ويُستبدل الخط بـ Inter (LTR).
   ───────────────────────────────────────────── */
html[lang="ar"] * {
  font-feature-settings:
    "liga" 1, "calt" 1, "kern" 1,
    "salt" var(--fs-salt, 0),
    "ss03" var(--fs-k1, 0),
    "ss04" var(--fs-k2, 0),
    "ss05" var(--fs-k3, 0),
    "ss06" var(--fs-k4, 0),
    "ss07" var(--fs-k5, 0);
}
.marsala   { --fs-salt: 1; }
.kashida-1 { --fs-k1: 1; }
.kashida-2 { --fs-k2: 1; }
.kashida-3 { --fs-k3: 1; }
.kashida-4 { --fs-k4: 1; }
.kashida-5 { --fs-k5: 1; } /* ⚠ معرّف للاكتمال فقط · لا يُستخدم */

/* ─────────────────────────────────────────────
   3) الرموز التصميمية · رمادي سينمائي صِرف
   ───────────────────────────────────────────── */
:root {
  /* لوحة أبيض/أسود */
  --bg:    #060606;   /* أسود دخاني */
  --bg-2:  #101010;   /* سطح مرتفع */
  --bg-3:  #191919;
  --ink:   #f4f3f0;   /* أبيض عاجي */
  --ink-2: #b6b5b0;   /* أبيض خافت */
  --ink-3: #74736e;   /* رمادي */
  --line:   rgba(244, 243, 240, .12);
  --line-2: rgba(244, 243, 240, .26);

  /* الخطوط · تُبدَّل حسب اللغة في القسم التالي */
  --font-display: "Thmanyah Display", "Segoe UI", Tahoma, sans-serif;
  --font-body:    "Thmanyah Text",    "Segoe UI", Tahoma, sans-serif;
  --font-ui:      "Thmanyah Sans",    "Segoe UI", Tahoma, sans-serif;

  --ease:      cubic-bezier(.22, .61, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 74px;
  --radius: 14px;
}

/* اللغة العربية → ثمانية */
html[lang="ar"] {
  --font-display: "Thmanyah Display", "Segoe UI", Tahoma, sans-serif;
  --font-body:    "Thmanyah Text",    "Segoe UI", Tahoma, sans-serif;
  --font-ui:      "Thmanyah Sans",    "Segoe UI", Tahoma, sans-serif;
}
/* اللغة الإنجليزية → Jost (جروتيسك هندسي أنيق شبيه بـ Futura · مطابق لطراز المرجع) */
html[lang="en"] {
  --font-display: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-ui:      "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ─────────────────────────────────────────────
   4) التصفير والأساس
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
html.lock { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* شريط تمرير هادئ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; border: 2px solid var(--bg); }
html { scrollbar-color: #2a2a2a var(--bg); scrollbar-width: thin; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.container { width: min(1280px, 100% - clamp(2.2rem, 7vw, 6rem)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 400;
  background: var(--ink); color: var(--bg); font-family: var(--font-ui);
  padding: .7em 1.3em; border-radius: 999px; transition: top .3s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.noscript-note {
  font-family: var(--font-ui); color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}

/* نقطة حالة نابضة (بيضاء) */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 10px rgba(244, 243, 240, .55);
  animation: pulse 2s ease-in-out infinite; flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ─────────────────────────────────────────────
   5) حبيبات الفيلم + المؤشر المخصص
   ───────────────────────────────────────────── */
.grain {
  position: fixed; inset: -60px; z-index: 300; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
  animation: grain 1.1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-12px, 16px); }
  50% { transform: translate(14px, -10px); }
  75% { transform: translate(-8px, -14px); }
  100% { transform: translate(10px, 12px); }
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 320;
  width: 84px; height: 84px; border-radius: 50%;
  translate: -50% -50%; pointer-events: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  opacity: 0; scale: .4;
  transition: opacity .3s var(--ease), scale .35s var(--ease-expo);
}
.cursor.on { opacity: 1; scale: 1; }
.cursor__label { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html.has-cursor [data-cursor="play"], html.has-cursor [data-cursor="play"] * { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ─────────────────────────────────────────────
   6) الأزرار
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--font-ui); font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .95em 1.7em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: color .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn__ico svg, .btn__play svg { width: 1.15em; height: 1.15em; }
.btn__play { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; border: 1px solid currentColor; }
.btn__play svg { width: .8em; height: .8em; transform: translateX(6%); }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(244, 243, 240, .06); transform: translateY(-2px); }
.btn--play { border-color: var(--line-2); color: var(--ink); }
.btn--play:hover { border-color: var(--ink); background: rgba(244, 243, 240, .06); transform: translateY(-2px); }
.btn--lg { font-size: 1.02rem; padding: 1.05em 2em; }

/* ─────────────────────────────────────────────
   7) الظهور التدريجي (reveal) عبر IntersectionObserver
   ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   8) شريط التنقل + مبدّل اللغة + قائمة الجوال
   ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 90;
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
}
.nav--hidden { transform: translateY(-110%); }
.nav--solid {
  background: rgba(6, 6, 6, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; letter-spacing: .01em; }
html[lang="en"] .nav__brand { text-transform: uppercase; letter-spacing: .06em; font-size: 1.06rem; }

.nav__end { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.8rem); }
.nav__links { display: flex; gap: clamp(1.3rem, 2.6vw, 2.2rem); }
.nav__link {
  position: relative; font-family: var(--font-ui); font-size: .94rem; color: var(--ink-2);
  padding-block: .35em; transition: color .3s;
}
html[lang="en"] .nav__link { text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease);
}
html[dir="rtl"] .nav__link::after { transform-origin: 100% 50%; }
html[dir="ltr"] .nav__link::after { transform-origin: 0 50%; }
.nav__link:hover, .nav__link.active { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

/* مبدّل اللغة */
.lang { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-ui); }
.lang__btn {
  font-size: .82rem; font-weight: 600; color: var(--ink-3); line-height: 1;
  padding: .3em .1em; letter-spacing: .04em; transition: color .3s;
}
.lang__btn:hover { color: var(--ink-2); }
.lang__btn.is-active { color: var(--ink); }
.lang__sep { color: var(--ink-3); font-size: .8rem; }

.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); position: relative; transition: border-color .3s;
}
.nav__burger span {
  position: absolute; left: 50%; top: 50%; width: 17px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease);
}
.nav__burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav__burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
html.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
html.menu-open .nav__burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.nav__burger:hover { border-color: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 85; background: rgba(4, 4, 4, .97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) clamp(2rem, 8vw, 5rem) 3rem;
  visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
html.menu-open .menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu__links { display: flex; flex-direction: column; gap: .3rem; }
.menu__link {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.5; color: var(--ink); padding-block: .3rem;
  transform: translateY(24px); opacity: 0; transition: transform .55s var(--ease-expo), opacity .5s, color .3s;
}
html[lang="en"] .menu__link { text-transform: uppercase; letter-spacing: .02em; }
.menu__link:hover { color: var(--ink-2); }
html.menu-open .menu__link { transform: none; opacity: 1; }
html.menu-open .menu__link:nth-child(1) { transition-delay: .08s; }
html.menu-open .menu__link:nth-child(2) { transition-delay: .15s; }
html.menu-open .menu__link:nth-child(3) { transition-delay: .22s; }

/* ─────────────────────────────────────────────
   9) الرئيسية · مركزية ومينيمال (على طراز صفحة المرجع)
   ───────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(2.6rem, 9vh, 6rem));
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
/* الاسم: معتدل الحجم؛ بالإنجليزية أحرف كبيرة متباعدة أنيقة مثل «DANNY GEVIRTZ» */
.hero__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 3.6vw, 2.7rem); line-height: 1.35;
  padding-block: .04em .12em;   /* متنفَّس لامتداد الفتحة وذيل المرسلة */
}
html[lang="en"] .hero__name { text-transform: uppercase; font-weight: 400; letter-spacing: .22em; }
/* الجملة التعريفية القصيرة، مركزية */
.hero__intro {
  font-family: var(--font-body); color: var(--ink-2);
  font-size: clamp(.98rem, 1.7vw, 1.18rem); line-height: 1.9;
  max-width: 54ch; margin: clamp(1.1rem, 2.4vw, 1.7rem) auto 0;
}
html[lang="en"] .hero__intro { line-height: 1.75; }
/* صورة حمدي الأفقية الواسعة — تُدار من لوحة التحكم (هيرو) ولا تظهر قبل الرفع */
#heroPhoto { display: block; }          /* غلاف <picture> ككتلة (reveal يعمل عليه) */
#heroPhoto[hidden] { display: none; }   /* قبل رفع الصورة: لا شيء يظهر إطلاقًا */
.hero__photo {
  display: block; width: 100%; max-width: 980px;
  margin: clamp(2.4rem, 6vh, 4rem) auto 0;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 0; border: 1px solid var(--line); background: var(--bg-2);  /* زوايا حادّة */
}

/* ─────────────────────────────────────────────
   10) هيكل الأقسام + الترويسات
   ───────────────────────────────────────────── */
.section { padding-block: clamp(5rem, 12vh, 8.5rem); position: relative; }
.sec-head { margin-bottom: clamp(2.6rem, 6vw, 4.2rem); }
.sec-head__label {
  font-family: var(--font-ui); font-size: .85rem; color: var(--ink-3);
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem;
}
html[lang="en"] .sec-head__label { text-transform: uppercase; letter-spacing: .16em; }
.sec-head__label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.sec-head__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.35; padding-block: .04em .2em;
}
html[lang="en"] .sec-head__title { text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.sec-head__sub { font-family: var(--font-body); color: var(--ink-2); font-size: 1.05rem; margin-top: .5rem; }

/* ─────────────────────────────────────────────
   11) الأعمال · معرض «لقطات المشاريع» (عمل = مجموعة من ١ إلى ٣ بلاطات مربّعة)
   ───────────────────────────────────────────── */
/* بلاطات مربّعة مرتّبة داخل الحاوية (نمط «مجموعات» هلال — قرار المؤسس 2026-07
   بدل الشرائط العريضة 16:9): كل عمل شبكة ثابتة من ٣ أعمدة، لقطاته (فيديو/صورة،
   مختلطة) مربّعات متساوية الحجم دائمًا — عملٌ بلقطةٍ أو لقطتين يترك بقيّة صفّه
   فارغة ولا تتضخّم بلاطته. object-fit: cover يملأ المربّع بقصٍّ أنيق. */
.projects {
  display: flex; flex-direction: column;
  gap: clamp(12px, 1.8vw, 20px);
}

.project {
  display: grid; gap: clamp(12px, 1.8vw, 20px);
  grid-template-columns: repeat(3, 1fr);  /* شبكة ثابتة → حجم بلاطة موحّد لكل الأعمال */
}

.frame {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 1 / 1;                  /* مربّع — نمط مجموعات هلال */
  overflow: hidden; border-radius: 0;   /* زوايا حادّة — هوية حمدي الأحادية */
  border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer;
}
/* الفيديو ملوّن افتراضيًا · object-fit: cover يملأ البلاطة المربّعة دون تشويه */
.frame__vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
  transition: filter .55s var(--ease), transform .8s var(--ease);
}
.frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* العنوان: مخفي افتراضيًا، يظهر بأناقة في منتصف اللقطة عند التمرير (سطح المكتب) · مخفي على الجوال */
.frame__title {
  position: absolute; inset: 0; z-index: 2; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1em; pointer-events: none; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.25;
  background: rgba(6, 6, 6, .42);       /* غطاء خفيف كي يظل النص المركزي واضحًا */
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
html[lang="en"] .frame__title { text-transform: uppercase; letter-spacing: .03em; }

/* سلوك التمرير (سطح المكتب فقط): أبيض وأسود + ظهور العنوان · المغادرة تعيد اللون */
@media (hover: hover) and (pointer: fine) {
  .frame:hover { border-color: var(--line-2); }
  .frame:hover .frame__vid { filter: grayscale(1); }
  .frame:hover .frame__title { opacity: 1; transform: none; }
}

/* اللمس (الجوال): معاينة النقرة الأولى (‎.is-preview‎) تطابق مظهر التمرير — أبيض وأسود + الاسم في المنتصف */
@media (hover: none), (pointer: coarse) {
  .frame.is-preview { border-color: var(--line-2); }
  .frame.is-preview .frame__vid { filter: grayscale(1); }
  .frame.is-preview .frame__title { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   12) التواصل + التذييل
   ───────────────────────────────────────────── */
.contact { text-align: center; padding-bottom: 0; overflow: hidden; }
.contact__glow { position: absolute; inset-inline: 0; bottom: -20vh; height: 60vh; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(244, 243, 240, .08), transparent 70%); }
.contact__label { justify-content: center; }
.contact__label::after { display: none; }
.contact__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: 1.3; padding-block: .04em .24em;
}
html[lang="en"] .contact__title { text-transform: uppercase; letter-spacing: .03em; line-height: 1.06; }
.contact__avail {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-ui); font-size: .98rem; color: var(--ink-2); margin-top: .6rem;
}
.contact__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.social {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-ui); font-size: .9rem; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: .62em 1.25em;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.social svg { width: 1.05em; height: 1.05em; }
.social:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-3px); }

.footer { margin-top: clamp(4rem, 9vh, 6.5rem); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.6rem; font-family: var(--font-ui); font-size: .82rem; color: var(--ink-3);
}
.footer__top { display: inline-flex; align-items: center; gap: .5em; color: var(--ink-2); transition: color .3s; }
.footer__top svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.footer__top:hover { color: var(--ink); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ── شارة «صُنع من قِبل تميم» — نفس نمط هلال (Pill وسطية + الشعار نفسه)
      بألوان حمدي الأحادية: حدود --line، نص --ink-3، توهّج عاجي بدل السماوي. */
.tamem-credit-wrap { display: flex; justify-content: center; padding-block: 0 1.8rem; }
.tamem-credit {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem; border-radius: 9999px;
  border: 1px solid var(--line); background: rgba(244, 243, 240, .02);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink-3); font-family: var(--font-ui); font-size: .8rem;
  font-weight: 500; letter-spacing: .04em; text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease, color .4s ease;
}
.tamem-credit__text { white-space: nowrap; }
.tamem-credit__logo {
  height: 28px; width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
  transition: transform .4s var(--ease), filter .4s ease;
}
.tamem-credit:hover,
.tamem-credit:focus-visible {
  transform: translateY(-3px); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 10px 30px -8px rgba(244, 243, 240, .18), 0 0 0 1px rgba(244, 243, 240, .08);
  outline: none;
}
.tamem-credit:hover .tamem-credit__logo,
.tamem-credit:focus-visible .tamem-credit__logo {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 12px rgba(244, 243, 240, .3));
}
@media (prefers-reduced-motion: reduce) {
  .tamem-credit, .tamem-credit__logo { transition: none; }
  .tamem-credit:hover { transform: none; }
}

/* ─────────────────────────────────────────────
   13) زر واتساب العائم
   ───────────────────────────────────────────── */
.wa-float {
  position: fixed; z-index: 200; bottom: clamp(1.1rem, 3vw, 1.8rem);
  inset-inline-end: clamp(1.1rem, 3vw, 1.8rem);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .8);
  transition: transform .4s var(--ease-expo), background .35s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.06); background: #fff; }

/* ─────────────────────────────────────────────
   14) العارض السينمائي (Lightbox)
   ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 240;
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2.4rem);
  visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.lightbox.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(3, 3, 3, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lightbox__panel {
  position: relative; z-index: 2; width: min(1000px, 100%);
  max-height: 92vh; overflow-y: auto; border-radius: 14px;
  transform: translateY(16px) scale(.98); transition: transform .5s var(--ease-expo);
}
.lightbox.open .lightbox__panel { transform: none; }
.lightbox__close {
  position: absolute; z-index: 3; top: .7rem; inset-inline-end: .7rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(6, 6, 6, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s, transform .45s var(--ease);
}
.lightbox__close svg { width: 16px; height: 16px; }
.lightbox__close:hover { background: rgba(6, 6, 6, .9); border-color: var(--ink); transform: rotate(90deg); }
.lightbox__player {
  aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: 14px 14px 0 0; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
}
.lightbox__info {
  background: var(--bg-2); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.1rem, 3vw, 1.7rem) clamp(1.4rem, 3vw, 2rem);
}
.lightbox__title {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3;
}
html[lang="en"] .lightbox__title { text-transform: uppercase; letter-spacing: .03em; }
.lightbox__desc {
  font-family: var(--font-body); color: var(--ink-2);
  font-size: 1.02rem; line-height: 1.75; margin-top: .55rem; max-width: 64ch;
}
.lightbox__player iframe { width: 100%; height: 100%; border: 0; }  /* لون طبيعي + صوت + تحكم داخل العارض */

/* ─────────────────────────────────────────────
   15) الاستجابة
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  /* الجوال: البلاطات المربّعة تلتفّ اثنتين في الصف (نمط مجموعات هلال) —
     بلا تمرير أفقي أبدًا. التخصيص يغلب الأساس فيسري على كل الأعداد. */
  .projects .project { grid-template-columns: repeat(2, 1fr); }
  .contact__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ─────────────────────────────────────────────
   16) تقليل الحركة
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .dot { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
