/* ===== الخطوط مستضافة ذاتيًا (بدون Google Fonts) ===== */

@font-face{
  font-family:'Amiri';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../assets/fonts/amiri-400-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'Amiri';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../assets/fonts/amiri-400-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;
}

@font-face{
  font-family:'Amiri';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../assets/fonts/amiri-700-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'Amiri';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../assets/fonts/amiri-700-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;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-300-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-300-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;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-400-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-400-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;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-500-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-500-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;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-600-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-600-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;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-700-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face{
  font-family:'IBM Plex Sans Arabic';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('../assets/fonts/ibm-plex-sans-arabic-700-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{
  /* الألوان */
  --ink:          #0E1A28;
  --ink-soft:     #17293C;
  --ink-line:     #24384E;
  --paper:        #F7F2E6;
  --paper-deep:   #EFE8D6;
  --gold:         #C4963C;
  --gold-light:   #E8C574;
  --rubric:       #A63D2E;

  --on-ink:       #EDE6D5;
  --on-ink-mute:  #A9B6C6;
  --on-paper:     #1C2734;
  --on-paper-mute:#5B6675;

  /* الخطوط */
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body:    "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.95;
  color:var(--on-paper);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }

:focus-visible{
  outline:3px solid var(--gold-light);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.wrap--narrow{ max-width:860px; }

/* ============ الشريط العلوي ============ */
.nav{
  position:fixed; inset-inline:0; top:0; z-index:60;
  transition:background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-solid{
  background:rgba(14,26,40,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 1px 0 var(--ink-line);
}
.nav__inner{
  max-width:var(--wrap); margin-inline:auto; padding:14px 24px;
  display:flex; align-items:center; gap:24px;
}
.nav__logo{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  margin-inline-end:auto;
}
.nav__mono{
  width:38px; height:38px; flex:0 0 auto;
  display:grid; place-items:center;
  border:1.5px solid var(--gold); border-radius:10px;
  font-family:var(--font-display); font-size:1.35rem; font-weight:700;
  color:var(--gold-light); line-height:1;
  padding-bottom:4px;
}
.nav__name{
  font-family:var(--font-display); font-weight:700; font-size:1.3rem;
  color:var(--on-ink); letter-spacing:.01em;
}
.nav__links{ display:flex; align-items:center; gap:4px; }
.nav__links a{
  text-decoration:none; color:var(--on-ink-mute);
  font-size:.95rem; font-weight:500;
  padding:8px 13px; border-radius:9px;
  transition:color .25s, background .25s;
}
.nav__links a:hover{ color:var(--on-ink); background:rgba(237,230,213,.07); }

/* إضاءة القسم النشط أثناء التمرير */
.nav__links a.is-active{
  color:var(--gold-light);
  background:rgba(196,150,60,.13);
  position:relative;
}
.nav__links a.is-active::after{
  content:""; position:absolute;
  inset-inline:13px; bottom:4px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation:navGlow 1.6s ease-in-out infinite;
}
@keyframes navGlow{
  0%,100%{ opacity:.45; transform:scaleX(.7); }
  50%    { opacity:1;  transform:scaleX(1); }
}
/* نبضة ضوئية خفيفة عند أول ظهور */
.nav__links a{ transition:color .3s, background .3s; }
.nav__links a.nav__cta{
  color:var(--ink); background:var(--gold);
  font-weight:600; margin-inline-start:8px; padding:9px 18px;
}
.nav__links a.nav__cta:hover{ background:var(--gold-light); }
/* زر CTA: الإضاءة عليه خلفية داكنة بدل الذهبية */
.nav__links a.nav__cta.is-active{
  background:var(--ink); color:var(--gold-light);
  box-shadow:inset 0 0 0 1.5px var(--gold);
}
.nav__links a.nav__cta.is-active::after{ inset-inline:18px; bottom:6px; }

/* زر تبديل اللغة */
.nav__lang{
  font-family:var(--font-body); font-size:.82rem; font-weight:700;
  letter-spacing:.04em;
  background:transparent; color:var(--on-ink-mute);
  border:1.5px solid rgba(237,230,213,.28); border-radius:999px;
  padding:6px 13px; margin-inline:6px; cursor:pointer;
  transition:color .25s, border-color .25s, background .25s;
  line-height:1.6;
}
.nav__lang:hover{ color:var(--ink); background:var(--gold-light); border-color:var(--gold-light); }

.nav__burger{
  display:none; background:none; border:0; cursor:pointer;
  width:44px; height:44px; padding:10px;
  flex-direction:column; justify-content:center; gap:5px;
}
.nav__burger span{
  display:block; height:2px; background:var(--on-ink); border-radius:2px;
  transition:transform .3s var(--ease), opacity .3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ============ الهيرو ============ */
.hero{
  position:relative;
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(196,150,60,.13), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(31,60,120,.28), transparent 65%),
    var(--ink);
  color:var(--on-ink);
  padding:128px 24px 0;
  overflow:hidden;
}
.hero__ghost{
  position:absolute; inset-inline-start:-4vw; top:34%;
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(20rem, 44vw, 40rem); line-height:.8;
  color:transparent;
  -webkit-text-stroke:1.5px rgba(196,150,60,.16);
  pointer-events:none; user-select:none;
  transform:translateY(-10%);
}
.hero__inner{
  position:relative; max-width:var(--wrap); margin-inline:auto;
  display:grid; grid-template-columns:1.15fr .85fr;
  gap:48px; align-items:center;
  padding-bottom:52px;
}

.hero__role{
  margin:0 0 14px;
  font-size:.98rem; font-weight:500; letter-spacing:.02em;
  color:var(--gold-light);
}
.hero__name{
  margin:0;
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(3.4rem, 8.5vw, 6.2rem);
  line-height:1.12; letter-spacing:.01em;
}
.hero__stroke{
  display:block; width:min(420px, 80%); height:24px;
  margin:10px 0 22px;
}
.hero__stroke path{
  stroke-dasharray:520; stroke-dashoffset:520;
  transition:stroke-dashoffset 1.6s var(--ease) .45s;
}
.is-loaded .hero__stroke path{ stroke-dashoffset:0; }

.hero__lead{
  margin:0 0 30px; max-width:54ch;
  font-size:1.16rem; font-weight:300; line-height:2.05;
  color:var(--on-ink-mute);
}
.hero__lead b{ color:var(--on-ink); font-weight:600; }

.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* الأزرار */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-body); font-size:1rem; font-weight:600;
  padding:14px 30px; border-radius:12px; border:1.5px solid transparent;
  text-decoration:none; cursor:pointer;
  transition:transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:active{ transform:translateY(1px); }
.btn--gold{
  background:var(--gold); color:#14202E;
  box-shadow:0 8px 26px -12px rgba(196,150,60,.7);
}
.btn--gold:hover{ background:var(--gold-light); box-shadow:0 12px 32px -12px rgba(232,197,116,.75); }
.btn--ghost{
  background:transparent; color:var(--on-ink);
  border-color:rgba(237,230,213,.3);
}
.btn--ghost:hover{ border-color:var(--gold); color:var(--gold-light); }
.btn--block{ width:100%; }

/* فتحة الصورة (محراب) */
.hero__portrait{ position:relative; justify-self:center; }
.niche{
  position:relative;
  width:min(360px, 78vw);
  aspect-ratio:3/3.9;
  background:#fff;
  border-radius:190px 190px 22px 22px;
  padding:12px;
  border:1.5px solid rgba(196,150,60,.55);
  box-shadow:
    0 0 0 6px rgba(14,26,40,.9),
    0 0 60px -8px rgba(196,150,60,.38),
    0 40px 80px -30px rgba(0,0,0,.7);
}
.niche img{
  width:100%; height:100%; object-fit:cover; object-position:center top;
  border-radius:180px 180px 14px 14px;
}
.niche__corner{
  position:absolute; width:34px; height:34px;
  border:2.5px solid var(--gold);
  opacity:0; transition:opacity .7s var(--ease) 1.1s;
}
.is-loaded .niche__corner{ opacity:1; }
.niche__corner--tr{ top:-8px; inset-inline-start:-8px; border-inline-end:0; border-bottom:0; border-radius:14px 0 0 0; }
.niche__corner--tl{ top:-8px; inset-inline-end:-8px; border-inline-start:0; border-bottom:0; border-radius:0 14px 0 0; }
.niche__corner--br{ bottom:-8px; inset-inline-start:-8px; border-inline-end:0; border-top:0; border-radius:0 0 0 14px; }
.niche__corner--bl{ bottom:-8px; inset-inline-end:-8px; border-inline-start:0; border-top:0; border-radius:0 0 14px 0; }

/* ===== حركة مستمرة: ضوء ذهبي يدور حول الصورة ===== */
@property --nicheAngle{ syntax:"<angle>"; initial-value:0deg; inherits:false; }
.niche::after{
  content:"";
  position:absolute; inset:-1.5px;
  border-radius:inherit;
  padding:2.5px;
  background:conic-gradient(from var(--nicheAngle),
    rgba(196,150,60,0) 0deg,
    rgba(196,150,60,0) 250deg,
    rgba(196,150,60,.16) 300deg,
    rgba(196,150,60,.72) 340deg,
    #fff3d6 355deg,
    rgba(196,150,60,0) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite:exclude;
  animation:nicheOrbit 7s linear infinite;
  pointer-events:none;
}
@keyframes nicheOrbit{ to{ --nicheAngle:360deg; } }

.hero__badge{
  position:absolute; bottom:26px; inset-inline-start:-26px;
  background:var(--ink-soft); color:var(--on-ink);
  border:1px solid var(--gold); border-radius:999px;
  font-size:.83rem; font-weight:500; padding:8px 16px;
  box-shadow:0 14px 30px -14px rgba(0,0,0,.8);
}

/* حركة تحميل الهيرو */
.hero__role, .hero__name, .hero__lead, .hero__actions, .hero__portrait{
  opacity:0; transform:translateY(22px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.is-loaded .hero__role     { opacity:1; transform:none; transition-delay:.05s; }
.is-loaded .hero__name     { opacity:1; transform:none; transition-delay:.15s; }
.is-loaded .hero__lead     { opacity:1; transform:none; transition-delay:.6s; }
.is-loaded .hero__actions  { opacity:1; transform:none; transition-delay:.75s; }
.is-loaded .hero__portrait { opacity:1; transform:none; transition-delay:.35s; }

/* الأرقام */
.stats{
  position:relative;
  max-width:var(--wrap); margin-inline:auto;
  border-top:1px solid var(--ink-line);
  display:grid; grid-template-columns:repeat(4, 1fr);
}
.stats__item{
  padding:26px 20px 30px;
  text-align:center;
  border-inline-start:1px solid var(--ink-line);
}
.stats__item:first-child{ border-inline-start:0; }
.stats__item b{
  display:block; font-family:var(--font-display);
  font-size:clamp(1.9rem, 3vw, 2.5rem); font-weight:700;
  color:var(--gold-light); line-height:1.3;
}
.stats__item span{
  font-size:.9rem; color:var(--on-ink-mute); line-height:1.6;
}

/* ============ الأشرطة (Sections) ============ */
.band{ padding:72px 0; }
.band--tight{ padding-top:0; }
.band--paper{ background:var(--paper); color:var(--on-paper); }
.band--ink{
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(196,150,60,.08), transparent 60%),
    var(--ink);
  color:var(--on-ink);
}

/* الزخرفة الفاصلة */
.ornament{
  display:flex; align-items:center; gap:16px;
  margin-bottom:38px; color:var(--gold);
}
.ornament span{ flex:1; height:1px; background:linear-gradient(to var(--dir,left), transparent, rgba(196,150,60,.55)); }
.ornament i{ font-style:normal; flex:none; width:9px; height:9px; background:var(--gold); transform:rotate(45deg); }
.ornament span:last-child{ background:linear-gradient(to var(--dir,right), transparent, rgba(196,150,60,.55)); }

/* عنوان القسم */
.sec-head{ margin-bottom:34px; max-width:640px; }
.sec-head h2{
  margin:0 0 12px;
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(2.1rem, 4.5vw, 3.1rem);
  line-height:1.35;
}
.sec-head p{ margin:0; color:var(--on-paper-mute); font-size:1.08rem; font-weight:300; }
.sec-head--ink p{ color:var(--on-ink-mute); }

/* ============ فيديو ============ */
.player{
  margin:0; position:relative;
  background:var(--ink);
  border-radius:var(--radius);
  padding:14px;
  border:1px solid rgba(196,150,60,.4);
  box-shadow:0 40px 90px -50px rgba(14,26,40,.85);
}
.player video{
  width:100%; border-radius:8px; display:block;
  aspect-ratio:16/9; background:#000;
}
.player figcaption{
  font-size:.85rem; color:var(--on-ink-mute);
  padding:10px 6px 2px;
}

/* ============ خط الزمن ============ */
.timeline{
  list-style:none; margin:0; padding:0;
  position:relative;
}
.timeline::before{
  content:""; position:absolute;
  inset-inline-start:8px; top:8px; bottom:8px;
  width:2px;
  background:linear-gradient(to bottom, var(--gold), rgba(196,150,60,.15));
}
.station{
  position:relative;
  padding-inline-start:52px;
  padding-bottom:30px;
}
.station:last-child{ padding-bottom:6px; }
.station::before{
  content:""; position:absolute;
  inset-inline-start:0; top:9px;
  width:18px; height:18px; border-radius:50%;
  background:var(--paper);
  border:3px solid var(--gold);
  box-shadow:0 0 0 5px rgba(196,150,60,.16);
}
.station__year{
  display:inline-block;
  font-family:var(--font-display); font-weight:700;
  font-size:1.5rem; color:var(--rubric);
  line-height:1; margin-bottom:8px;
}
.station__body h3{
  margin:0 0 6px;
  font-family:var(--font-display); font-weight:700;
  font-size:1.5rem; line-height:1.5;
}
.station__role{
  margin:0 0 6px;
  font-size:.9rem; font-weight:600; color:var(--gold);
}
.station__body p{
  margin:0; color:var(--on-paper-mute); max-width:62ch;
}
.station__body em{ font-style:normal; color:var(--on-paper); font-size:.92rem; opacity:.75; }
.station__body b{ color:var(--on-paper); font-weight:600; }

/* كشف المحطات عند التمرير */
.station{ opacity:0; transform:translateY(16px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.station.in{ opacity:1; transform:none; }

.journey__edu{
  margin:34px 0 0; padding-top:26px;
  border-top:1px solid rgba(196,150,60,.35);
  color:var(--on-paper-mute); font-size:.98rem;
  max-width:70ch;
}
.journey__edu b{ color:var(--on-paper); }
.journey__edu span{ margin-inline:8px; color:var(--gold); }

/* ============ الخدمات ============ */
.services{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
}
.service{
  background:var(--ink-soft);
  border:1px solid var(--ink-line);
  border-radius:var(--radius);
  padding:32px 28px 28px;
  display:flex; flex-direction:column;
  transition:border-color .3s, transform .3s var(--ease);
}
.service:hover{ border-color:rgba(196,150,60,.55); transform:translateY(-4px); }
.service__icon{
  width:58px; height:58px; display:grid; place-items:center;
  color:var(--gold-light);
  border:1.5px solid rgba(196,150,60,.5); border-radius:14px;
  margin-bottom:20px;
}
.service__icon svg{ width:34px; height:34px; }
.service h3{
  margin:0 0 10px;
  font-family:var(--font-display); font-weight:700;
  font-size:1.45rem; line-height:1.5;
}
.service p{ margin:0 0 14px; color:var(--on-ink-mute); font-size:.97rem; font-weight:300; line-height:1.9; }
.service ul{
  margin:0 0 22px; padding:0; list-style:none;
  font-size:.92rem; color:var(--on-ink);
}
.service li{ padding:7px 0 7px 0; position:relative; padding-inline-start:22px; }
.service li::before{
  content:""; position:absolute; inset-inline-start:0; top:15px;
  width:9px; height:9px; background:var(--gold);
  transform:rotate(45deg);
}
.service__pick{
  margin-top:auto;
  font-family:var(--font-body); font-size:.95rem; font-weight:600;
  background:transparent; color:var(--gold-light);
  border:1.5px solid rgba(196,150,60,.55); border-radius:10px;
  padding:11px 18px; cursor:pointer;
  transition:background .25s, color .25s;
}
.service__pick:hover{ background:var(--gold); color:var(--ink); }

/* ============ المشاريع ============ */
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:34px; }
.chip{
  font-family:var(--font-body); font-size:.93rem; font-weight:500;
  background:transparent; color:var(--on-paper-mute);
  border:1.5px solid rgba(28,39,52,.22); border-radius:999px;
  padding:9px 20px; cursor:pointer;
  transition:all .25s;
}
.chip:hover{ border-color:var(--gold); color:var(--on-paper); }
.chip.is-on{ background:var(--ink); border-color:var(--ink); color:var(--paper); }

.grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
  align-items:start; /* الكروت بارتفاع محتواها — بدون فراغ أبيض */
}
.card{
  background:#fff;
  border:1px solid rgba(28,39,52,.1);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover{
  transform:translateY(-5px);
  border-color:rgba(196,150,60,.6);
  box-shadow:0 30px 60px -38px rgba(14,26,40,.6);
}
.card.is-hidden{ display:none; }
.card--wide{ grid-column:span 2; }
.card--wide .card__media img{ aspect-ratio:21/9; }
.card__media{ overflow:hidden; background:var(--paper-deep); border-bottom:1px solid rgba(28,39,52,.07); display:block; }
.card__media img{
  width:100%; height:auto; display:block;
  transition:transform .5s var(--ease);
}
.card:hover .card__media img{ transform:scale(1.03); }
.card__body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.card__tag{
  font-size:.78rem; font-weight:600; color:var(--gold);
  letter-spacing:.02em; margin-bottom:8px;
}
.card__body h3{
  margin:0 0 8px;
  font-family:var(--font-display); font-weight:700;
  font-size:1.3rem; line-height:1.5;
}
.card__body p{
  margin:0 0 16px; font-size:.93rem; line-height:1.85;
  color:var(--on-paper-mute); font-weight:300;
}
.card__link{
  margin-top:auto; align-self:flex-start;
  font-size:.92rem; font-weight:600; color:var(--on-paper);
  text-decoration:none;
  border-bottom:2px solid var(--gold);
  padding-bottom:2px;
  transition:color .25s;
}
.card__link:hover{ color:var(--rubric); }

/* ============ الشهادات ============ */
.certs{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:34px;
}
.certs__col h3{
  margin:0 0 14px;
  font-family:var(--font-display); font-weight:700; font-size:1.25rem;
  color:var(--on-paper);
  padding-bottom:10px;
  border-bottom:1.5px solid rgba(196,150,60,.5);
}
.certs__col h3.certs__sub{ margin-top:26px; }
.certs__col ul{ margin:0; padding:0; list-style:none; }
.certs__col li{
  font-size:.93rem; line-height:1.8; color:var(--on-paper-mute);
  padding:7px 0 7px 0; position:relative; padding-inline-start:20px;
}
.certs__col li::before{
  content:""; position:absolute; inset-inline-start:0; top:14px;
  width:8px; height:8px; border-radius:50%;
  background:transparent; border:2px solid var(--gold);
}
.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tags span{
  font-size:.83rem; color:var(--on-paper);
  background:rgba(196,150,60,.14);
  border:1px solid rgba(196,150,60,.4);
  border-radius:8px; padding:5px 12px;
}

/* ============ الحجز ============ */
.book{
  background:var(--paper); color:var(--on-paper);
  border-radius:20px;
  padding:30px 32px;
  box-shadow:0 50px 110px -60px rgba(0,0,0,.85);
  border-top:4px solid var(--gold);
}
.book__services{ border:0; margin:0 0 22px; padding:0; }
.book__services legend, .book__legend{
  font-family:var(--font-display); font-weight:700; font-size:1.15rem;
  margin-bottom:12px; padding:0; color:var(--on-paper);
}
.book__fields{ border:0; margin:0; padding:0; }
.book__legend{ display:block; }

/* الخدمات: ثلاثة أعمدة أفقية (يصبح عموديًا في الموبايل) */
.book__services{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.book__services legend{ grid-column:1/-1; }

.pick{ display:block; cursor:pointer; }
.pick input{ position:absolute; opacity:0; pointer-events:none; }
.pick__box{
  display:block; border:1.5px solid rgba(28,39,52,.18);
  border-radius:10px; padding:11px 13px;
  background:#fff;
  transition:border-color .25s, background .25s, box-shadow .25s;
  position:relative; height:100%;
}
.pick__box b{ display:block; font-size:.92rem; font-weight:600; line-height:1.5; }
.pick__box i{ display:block; font-style:normal; font-size:.79rem; color:var(--on-paper-mute); margin-top:2px; line-height:1.5; }
.pick input:checked + .pick__box{
  border-color:var(--gold);
  background:rgba(196,150,60,.08);
  box-shadow:0 0 0 2px rgba(196,150,60,.2);
}
.pick input:checked + .pick__box::after{
  content:""; position:absolute; inset-inline-end:13px; top:11px;
  width:5px; height:10px; border:solid var(--gold);
  border-width:0 2px 2px 0; transform:rotate(45deg);
}
.pick input:focus-visible + .pick__box{
  outline:3px solid var(--gold-light); outline-offset:2px;
}

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field{ display:block; margin-bottom:13px; }
.field > span{
  display:block; font-size:.88rem; font-weight:600; margin-bottom:6px;
}
.field em{ color:var(--rubric); font-style:normal; }
.field small{ font-weight:400; color:var(--on-paper-mute); }
.field input, .field textarea{
  width:100%; font-family:var(--font-body); font-size:.97rem;
  color:var(--on-paper); background:#fff;
  border:1.5px solid rgba(28,39,52,.18); border-radius:10px;
  padding:11px 14px;
  transition:border-color .25s, box-shadow .25s;
}
.field textarea{ resize:vertical; min-height:76px; line-height:1.8; }
.field input::placeholder, .field textarea::placeholder{ color:#9AA3AF; }
.field input:focus, .field textarea:focus{
  outline:none; border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(196,150,60,.18);
}
.field.is-error input, .field.is-error textarea{
  border-color:var(--rubric);
  box-shadow:0 0 0 3px rgba(166,61,46,.14);
}
.hp{ position:absolute; inset-inline-start:-9999px; width:1px; height:1px; opacity:0; }

.book__alt{
  text-align:center; font-size:.9rem; color:var(--on-paper-mute);
  margin:16px 0 0;
}
.book__alt a{ color:var(--on-paper); font-weight:600; }

.book__done{
  border-top:1.5px dashed rgba(196,150,60,.6);
  margin-top:26px; padding-top:26px;
}
.book__done h3{
  margin:0 0 8px; font-family:var(--font-display); font-size:1.5rem;
}
.book__done p{ margin:0 0 14px; color:var(--on-paper-mute); font-size:.95rem; }
.book__preview{
  background:var(--ink); color:var(--on-ink);
  border-radius:10px; padding:16px 18px;
  font-family:var(--font-body); font-size:.9rem; line-height:1.9;
  white-space:pre-wrap; word-break:break-word;
  max-height:220px; overflow:auto; margin:0 0 16px;
}
.book__done-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.book__done .btn--ghost{ color:var(--on-paper); border-color:rgba(28,39,52,.3); }
.book__done .btn--ghost:hover{ border-color:var(--gold); color:var(--rubric); }

/* ============ التذييل ============ */
.footer{
  background:#0A1420; color:var(--on-ink);
  border-top:1px solid var(--ink-line);
}
.footer__inner{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:34px; flex-wrap:wrap;
  padding-top:52px; padding-bottom:36px;
}
.footer__brand{ display:flex; gap:14px; align-items:center; }
.footer__brand b{
  font-family:var(--font-display); font-size:1.3rem; display:block;
}
.footer__brand p{ margin:2px 0 0; font-size:.88rem; color:var(--on-ink-mute); }
.footer__contact{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.footer__contact a{
  color:var(--on-ink-mute); text-decoration:none; font-size:.93rem;
  transition:color .25s;
}
.footer__contact a:hover{ color:var(--gold-light); }
.footer__base{
  border-top:1px solid rgba(36,56,78,.6);
  max-width:var(--wrap); margin-inline:auto;
  padding:18px 24px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  font-size:.85rem; color:var(--on-ink-mute);
}
.footer__base a{ color:var(--on-ink-mute); text-decoration:none; }
.footer__base a:hover{ color:var(--gold-light); }

/* ============ الاستجابة ============ */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns:1fr; gap:44px; padding-bottom:56px; }
  .hero__portrait{ order:-1; }
  .hero__ghost{ top:12%; }
  .stats{ grid-template-columns:repeat(2, 1fr); }
  .stats__item:nth-child(3){ border-inline-start:0; }
  .stats__item:nth-child(n+3){ border-top:1px solid var(--ink-line); }
  .services{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:repeat(2, 1fr); }
  .card--wide{ grid-column:span 2; }
  .certs{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px){
  body{ font-size:1rem; }
  .nav__burger{ display:flex; }
  .nav__links{
    position:absolute; top:100%; inset-inline:14px;
    background:rgba(14,26,40,.98);
    border:1px solid var(--ink-line); border-radius:14px;
    flex-direction:column; align-items:stretch; padding:12px;
    gap:2px;
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:opacity .3s, transform .3s, visibility .3s;
  }
  .nav__links.is-open{ opacity:1; visibility:visible; transform:none; }
  .nav__links a{ padding:12px 14px; font-size:1rem; }
  .nav__links a.nav__cta{ margin:8px 0 0; text-align:center; }
  .nav__lang{ margin:6px 0 0; padding:10px; text-align:center; }

  .hero{ padding-top:104px; }
  .hero__badge{ inset-inline-start:auto; inset-inline-end:-8px; font-size:.78rem; }
  .stats{ grid-template-columns:1fr 1fr; }
  .band{ padding:52px 0; }
  .grid{ grid-template-columns:1fr; }
  .certs{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; gap:0; }
  .book{ padding:24px 18px; }
  .book__services{ grid-template-columns:1fr; }
  .timeline::before{ inset-inline-start:6px; }
  .station{ padding-inline-start:40px; padding-bottom:26px; }
  .ornament{ margin-bottom:30px; }
}

/* ============ احترام تقليل الحركة ============ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    transition-delay:0s !important;
  }
  .hero__role, .hero__name, .hero__lead, .hero__actions, .hero__portrait,
  .station{ opacity:1; transform:none; }
  .hero__stroke path{ stroke-dashoffset:0; }
  .niche__corner{ opacity:1; }
}
