/* QUEEN OF HISTORY | ملكة التاريخ */
:root {
  --obsidian: #17120E;
  --obsidian-2: #211912;
  --gold: #C49A45;
  --gold-light: #E8C77A;
  --gold-deep: #9A7430;
  --lapis: #173B59;
  --lapis-deep: #0F2A41;
  --sand: #D8C39A;
  --papyrus: #F0E7D5;
  --brown: #70432D;
  --ink: #2A1E14;
  --ink-soft: #5A4634;
  --cream: #F7F0E2;

  --f-brand-ar: "Aref Ruqaa", "Amiri", serif;
  --f-brand-en: "Cinzel", "Times New Roman", serif;
  --f-head: "Amiri", "Cairo", serif;
  --f-body: "Cairo", system-ui, sans-serif;
  --f-ui: "Cairo", system-ui, sans-serif;

  --radius: 14px;
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-gold: 0 0 0 1px rgba(196, 154, 69, .45), 0 18px 40px -18px rgba(0, 0, 0, .7);
}
html[lang="en"] {
  --f-head: "Cinzel", "Times New Roman", serif;
  --f-body: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--papyrus);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-size: 1.22rem; line-height: 1.6; font-weight: 500; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--obsidian); }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--obsidian); padding: 10px 18px; border-radius: 8px;
  font-family: var(--f-ui); font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

/* direction-aware arrows */
html[dir="rtl"] .dir-icon { transform: scaleX(-1); }
html[dir="rtl"] .dir-icon--back { transform: none; }
html[dir="ltr"] .dir-icon--back { transform: scaleX(-1); }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.is-scrolled {
  background: rgba(23, 18, 14, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 154, 69, .25);
  --header-h: 64px;
}
.brand {
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .55rem;
  text-decoration: none; line-height: 1; color: var(--gold-light);
}
.brand__crown { grid-row: span 2; width: 2.1rem; height: 1.4rem; color: var(--gold); }
.brand__ar { font-family: var(--f-brand-ar); font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #F6DC9A, #C49A45 60%, #8F6A2A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__en { font-family: var(--f-brand-en); font-size: .62rem; letter-spacing: .2em; color: var(--sand); white-space: nowrap; }

.nav { margin-inline: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(.6rem, 1.6vw, 1.6rem); margin: 0; padding: 0; }
.nav__link {
  font-family: var(--f-ui); font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--papyrus);
  padding: .4rem .1rem; position: relative; white-space: nowrap; opacity: .85; transition: opacity .2s, color .2s;
}
html[lang="en"] .nav__link { font-size: .9rem; letter-spacing: .02em; }
.nav__link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; color: var(--gold-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .2rem; padding: 4px 4px 4px 10px;
  border: 1px solid rgba(196, 154, 69, .6); border-radius: 999px; background: rgba(23, 18, 14, .55);
  cursor: pointer; font-family: var(--f-ui); font-size: .85rem; font-weight: 600;
}
html[dir="rtl"] .lang-switch { padding: 4px 10px 4px 4px; }
.lang-switch > svg { width: 1.1rem; height: 1.1rem; color: var(--gold); margin-inline-end: .3rem; }
.lang-switch__opt { padding: .25rem .8rem; border-radius: 999px; color: var(--sand); transition: background .25s, color .25s; }
html[lang="ar"] .lang-switch__opt[data-lang="ar"],
html[lang="en"] .lang-switch__opt[data-lang="en"] { background: linear-gradient(180deg, #E8C77A, #B88B3A); color: var(--obsidian); }
.lang-switch:hover { border-color: var(--gold-light); }
.lang-switch__opt[data-lang="ar"] { font-family: "Cairo", sans-serif; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(196,154,69,.5); border-radius: 10px; background: rgba(23,18,14,.6); cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; inset-inline: 11px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 14px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 1rem) 0 1.25rem;
  display: flex; flex-direction: column;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(ellipse 60% 40% at 62% 38%, rgba(255, 214, 140, .55), transparent 70%),
    linear-gradient(180deg, #1c140e 0%, #3a2616 30%, #7a4f27 55%, #b07a3c 70%, #3a2616 88%, var(--obsidian) 100%);
}
.hero__sun {
  position: absolute; z-index: -4; width: 34vmax; height: 34vmax; border-radius: 50%;
  inset-inline-end: 22%; top: 18%;
  background: radial-gradient(circle, rgba(255, 228, 170, .75) 0%, rgba(255, 196, 110, .25) 35%, transparent 65%);
  filter: blur(6px);
}
.hero__pyramids { position: absolute; z-index: -3; inset: auto 0 0 0; width: 100%; height: 62%; }
html[dir="ltr"] .hero__pyramids { transform: scaleX(-1); }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero__glyphs {
  position: absolute; z-index: -2; top: 0; bottom: 0; width: 64px; overflow: hidden;
  border-inline: 1px solid rgba(196, 154, 69, .25);
  background: linear-gradient(180deg, rgba(23,18,14,.6), rgba(60,40,22,.35));
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.hero__glyphs--start { inset-inline-start: 0; }
.hero__glyphs--end { inset-inline-end: 0; }
.hero__glyph-track { display: flex; flex-direction: column; align-items: center; gap: 34px; padding-block: 20px; color: var(--gold); opacity: .55; animation: glyphs 60s linear infinite; }
.hero__glyphs--end .hero__glyph-track { animation-direction: reverse; }
.hero__glyph-track svg { width: 34px; height: 34px; }
@keyframes glyphs { to { transform: translateY(-50%); } }

.hero__inner {
  flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
  width: min(1280px, 100% - 9rem); margin-inline: auto;
}
.hero__copy { order: 1; text-align: center; position: relative; z-index: 2; }
.hero__portrait { order: 2; margin: 0; position: relative; align-self: end; }
.hero__portrait img {
  width: 100%; max-height: calc(100svh - var(--header-h) - 190px); object-fit: cover; object-position: 50% 20%;
  aspect-ratio: 1216 / 1294;
  mask-image: radial-gradient(ellipse 54% 58% at 50% 42%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 54% 58% at 50% 42%, #000 60%, transparent 100%);
}

.hero__crown { width: 4.2rem; height: 2.6rem; color: var(--gold); filter: drop-shadow(0 4px 12px rgba(232,199,122,.45)); }
.hero__title { margin: .2rem 0 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hero__title-ar {
  font-family: var(--f-brand-ar); font-weight: 700; font-size: clamp(3.4rem, 7.4vw, 6.4rem); line-height: 1.25;
  background: linear-gradient(180deg, #FFF0C2 0%, #E8C77A 35%, #C49A45 60%, #8A6326 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
}
.hero__title-en {
  font-family: var(--f-brand-en); font-weight: 600; letter-spacing: .14em; font-size: clamp(1.25rem, 2.7vw, 2.3rem);
  color: var(--cream); text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-top: .2rem;
}
.hero__rule { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: .9rem auto .6rem; color: var(--gold); }
.hero__rule span { height: 1px; width: min(110px, 18vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__rule span:last-child { transform: scaleX(-1); }
.hero__rule svg { width: 1.6rem; height: 1.2rem; }
.hero__name { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--gold-light); line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
html[lang="en"] .hero__name { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: .04em; }
.hero__role { margin: .2rem 0 0; font-family: var(--f-ui); font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.3rem); color: var(--cream); }
.hero__ribbon {
  display: inline-flex; align-items: center; gap: .6rem; margin: 1rem auto 0;
  font-family: var(--f-ui); font-weight: 600; font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--cream);
}
.hero__ribbon > span { padding: .35rem 1.3rem; border: 1px solid rgba(196,154,69,.7); border-radius: 6px; background: linear-gradient(180deg, rgba(23,18,14,.75), rgba(46,30,18,.75)); }
.wing { width: 3.4rem; height: 1.2rem; color: var(--gold); }
.wing--start { transform: scaleX(-1); }
.hero__intro { max-width: 36rem; margin: 1rem auto 0; color: var(--sand); font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
html[lang="en"] .hero__intro { font-size: 1.15rem; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.6rem; border-radius: 999px;
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn--gold { color: var(--obsidian); background: linear-gradient(180deg, #F4D995 0%, #D6AC55 50%, #A97C2F 100%); box-shadow: 0 8px 24px -8px rgba(232,199,122,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(232,199,122,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { color: var(--cream); border: 1px solid rgba(232,199,122,.75); background: rgba(23,18,14,.5); }
.btn--ghost:hover { background: rgba(196,154,69,.18); transform: translateY(-2px); }

.hero__cards {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  width: min(1180px, 100% - 9rem); margin: 1.2rem auto 0; position: relative; z-index: 2;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem;
  padding: 1rem .8rem .9rem; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, rgba(40,28,18,.78), rgba(18,13,9,.9));
  box-shadow: var(--shadow-gold);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tile::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(196,154,69,.25); border-radius: 8px; pointer-events: none; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--gold-light), 0 20px 40px -16px rgba(232,199,122,.45); }
.tile__icon { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; color: var(--gold-light); margin-bottom: .3rem; }
.tile__icon svg { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 0 10px rgba(232,199,122,.35)); }
.tile__primary { font-family: var(--f-ui); font-weight: 700; font-size: 1rem; color: var(--cream); line-height: 1.35; }
.tile__secondary { font-family: var(--f-ui); font-size: .78rem; color: var(--sand); opacity: .85; line-height: 1.3; }
.tile__go { position: absolute; bottom: .7rem; inset-inline-end: .7rem; width: 1.4rem; height: 1.4rem; border: 1px solid rgba(196,154,69,.6); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); }
.tile__go svg { width: .8rem; height: .8rem; }

.motto {
  display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin: 1rem 0 0;
  font-family: var(--f-brand-en); letter-spacing: .3em; font-size: .78rem; color: var(--sand); text-transform: uppercase;
}
html[lang="ar"] .motto { font-family: var(--f-head); letter-spacing: .1em; font-size: 1.05rem; }
.motto__dot { color: var(--gold); }

/* entrance */
html.js.is-ready .hero__portrait { animation: rise 1.2s var(--ease) .05s both; }
html.js.is-ready .hero__copy > * { animation: rise .9s var(--ease) both; }
html.js.is-ready .hero__copy > :nth-child(1) { animation-delay: .15s; }
html.js.is-ready .hero__copy > :nth-child(2) { animation-delay: .25s; }
html.js.is-ready .hero__copy > :nth-child(3) { animation-delay: .35s; }
html.js.is-ready .hero__copy > :nth-child(4) { animation-delay: .42s; }
html.js.is-ready .hero__copy > :nth-child(5) { animation-delay: .5s; }
html.js.is-ready .hero__copy > :nth-child(6) { animation-delay: .58s; }
html.js.is-ready .hero__copy > :nth-child(7) { animation-delay: .66s; }
html.js.is-ready .hero__copy > :nth-child(8) { animation-delay: .74s; }
html.js.is-ready .tile { animation: rise .8s var(--ease) both; animation-delay: calc(.7s + var(--i) * .08s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============ Sections ============ */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section--papyrus { background: radial-gradient(ellipse at top, #FBF5E8, var(--papyrus) 60%, #E7D9BD); color: var(--ink); }
.section--sand { background: linear-gradient(180deg, #E6D4AF, var(--sand)); color: var(--ink); }
.section--dark { background: radial-gradient(ellipse 80% 60% at 50% 0%, #2C2016, var(--obsidian) 70%); }
.section--lapis { background: radial-gradient(ellipse 80% 70% at 50% 0%, #1F4B70, var(--lapis) 50%, var(--lapis-deep)); }
.section--contact { background: linear-gradient(180deg, var(--obsidian), #2A1D12); }
.section--papyrus::before, .section--sand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(112,67,45,.05) 0 2px, transparent 2px 7px), repeating-linear-gradient(0deg, rgba(112,67,45,.04) 0 1px, transparent 1px 9px);
}
.section > .container { position: relative; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 .4rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.section--papyrus .kicker, .section--sand .kicker { color: var(--brown); }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.h2 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25; }
html[lang="en"] .h2 { font-weight: 600; letter-spacing: .02em; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.section--dark .h2, .section--lapis .h2, .section--contact .h2 { color: var(--gold-light); }
.section--papyrus .h2, .section--sand .h2 { color: var(--ink); }
.h3 { font-family: var(--f-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold-light); text-align: center; margin: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.section-sub { margin: .8rem auto 0; color: var(--sand); max-width: 38rem; }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.frame { position: relative; padding: 12px; border-radius: 200px 200px 16px 16px; background: linear-gradient(160deg, #E8C77A, #9A7430 50%, #E8C77A); box-shadow: 0 30px 60px -30px rgba(42,30,20,.7); }
.frame img { border-radius: 190px 190px 10px 10px; width: 100%; aspect-ratio: 900 / 963; object-fit: cover; }
.about__ankh { position: absolute; width: 4rem; height: 6rem; color: var(--gold-deep); inset-inline-start: -1.6rem; bottom: 2rem; opacity: .85; }
.about__text { color: var(--ink); }
.about__text .kicker { margin-bottom: .2rem; }
.about__paras p { margin: 1rem 0 0; color: var(--ink-soft); }
.about__paras p:first-child { color: var(--ink); font-size: 1.08em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin: 2rem 0 0; }
.fact { padding: .9rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid rgba(154,116,48,.35); border-inline-start: 4px solid var(--gold); }
.fact dt { font-family: var(--f-ui); font-size: .8rem; font-weight: 700; color: var(--brown); letter-spacing: .04em; }
.fact dd { margin: .15rem 0 0; font-weight: 600; color: var(--ink); line-height: 1.45; }

/* ============ Timeline ============ */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 27px; width: 2px; background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); }
.timeline__item { position: relative; padding-inline-start: 80px; margin-bottom: 1.6rem; }
.timeline__dot { position: absolute; inset-inline-start: 6px; top: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--obsidian); border: 2px solid var(--gold); color: var(--gold-light); box-shadow: 0 0 0 6px rgba(196,154,69,.12); }
.timeline__dot svg { width: 1.1rem; height: 1.6rem; }
.timeline__card { padding: 1.3rem 1.5rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(60,42,26,.65), rgba(28,20,14,.85)); box-shadow: var(--shadow-gold); }
.timeline__date { margin: 0; font-family: var(--f-brand-en); font-weight: 700; color: var(--gold); letter-spacing: .08em; font-size: .95rem; }
html[lang="ar"] .timeline__date { font-family: var(--f-ui); letter-spacing: 0; }
.timeline__title { margin: .25rem 0 0; font-family: var(--f-head); font-size: 1.35rem; line-height: 1.4; color: var(--cream); }
html[lang="en"] .timeline__title { font-size: 1.15rem; }
.timeline__place { margin: .2rem 0 0; color: var(--sand); }
.timeline__note { display: inline-block; margin: .6rem 0 0; padding: .1rem .8rem; border-radius: 999px; background: rgba(196,154,69,.18); color: var(--gold-light); font-family: var(--f-ui); font-size: .85rem; font-weight: 600; }

.certs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cert { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border-radius: var(--radius); background: rgba(240,231,213,.05); border: 1px solid rgba(196,154,69,.35); }
.cert__seal { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #F4D995, #A97C2F); color: var(--obsidian); }
.cert__seal svg { width: 1.7rem; height: 1.7rem; }
.cert__date { margin: 0; color: var(--gold); font-family: var(--f-ui); font-weight: 700; font-size: .85rem; }
.cert__title { margin: .1rem 0 0; font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.45; color: var(--cream); }
.cert__place { margin: .2rem 0 0; font-size: .92rem; color: var(--sand); }

/* ============ Experience ============ */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.exp { position: relative; padding: 1.8rem 1.6rem; border-radius: var(--radius); background: var(--cream); border: 1px solid rgba(154,116,48,.4); box-shadow: 0 20px 40px -28px rgba(42,30,20,.6); transition: transform .35s var(--ease), box-shadow .35s; }
.exp:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(42,30,20,.7); }
.exp--featured { background: linear-gradient(170deg, #2C2016, var(--obsidian)); color: var(--papyrus); border-color: var(--gold); }
.exp__icon { width: 3.2rem; height: 3.2rem; border-radius: 12px; display: grid; place-items: center; background: var(--obsidian); color: var(--gold-light); }
.exp--featured .exp__icon { background: linear-gradient(180deg, #F4D995, #A97C2F); color: var(--obsidian); }
.exp__icon svg { width: 1.8rem; height: 1.8rem; }
.exp__date { margin: 1rem 0 0; font-family: var(--f-ui); font-weight: 700; font-size: .85rem; color: var(--brown); letter-spacing: .05em; }
.exp--featured .exp__date { color: var(--gold); }
.exp__title { margin: .2rem 0 0; font-family: var(--f-head); font-size: 1.4rem; line-height: 1.35; color: var(--ink); }
html[lang="en"] .exp__title { font-size: 1.15rem; }
.exp--featured .exp__title { color: var(--gold-light); }
.exp__place { margin: .2rem 0 0; font-weight: 600; color: var(--ink-soft); }
.exp--featured .exp__place { color: var(--sand); }
.exp__points { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: .95em; color: var(--ink-soft); }
.exp--featured .exp__points { color: var(--papyrus); }
.exp__points li { position: relative; padding-inline-start: 1.3rem; line-height: 1.6; }
.exp__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ============ Philosophy ============ */
.philosophy { position: relative; padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(196,154,69,.22), transparent 70%), linear-gradient(180deg, #2A1D12, var(--obsidian)); }
.philosophy__inner { max-width: 52rem; }
.philosophy__eye { width: 5rem; height: 3rem; color: var(--gold); margin-bottom: .6rem; }
.philosophy__line { margin: .3rem 0 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.45;
  background: linear-gradient(180deg, #FFF0C2, #C49A45); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .philosophy__line { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.philosophy__body { margin: 1.2rem auto 0; max-width: 40rem; color: var(--sand); }

/* ============ Skills ============ */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.skill { padding: 1.6rem 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.6); border: 1px solid rgba(154,116,48,.35); }
.skill__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-deep); color: var(--brown); }
.skill__icon svg { width: 1.6rem; height: 1.6rem; }
.skill__title { margin: .9rem 0 .7rem; font-family: var(--f-head); font-size: 1.3rem; color: var(--ink); }
html[lang="en"] .skill__title { font-size: 1.05rem; }
.skill__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.skill__list li { padding: .25rem .75rem; border-radius: 999px; background: var(--cream); border: 1px solid rgba(154,116,48,.35); font-family: var(--f-ui); font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ============ Worlds ============ */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: start; }
.world { border-radius: var(--radius); background: linear-gradient(180deg, rgba(15,42,65,.6), rgba(10,28,44,.9)); box-shadow: 0 0 0 1px rgba(196,154,69,.4); overflow: hidden; transition: box-shadow .3s, transform .35s var(--ease); }
.world:hover, .world.is-open { box-shadow: 0 0 0 1px var(--gold-light), 0 20px 40px -20px rgba(0,0,0,.6); }
.world:hover { transform: translateY(-4px); }
.world__toggle { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.8rem 1.2rem 1.4rem; background: none; border: 0; cursor: pointer; text-align: center; }
.world__icon { width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); background: radial-gradient(circle, rgba(196,154,69,.22), transparent 70%); border: 1px solid rgba(196,154,69,.5); margin-bottom: .5rem; }
.world__icon svg { width: 2.6rem; height: 2.6rem; }
.world__era { font-family: var(--f-ui); font-size: .82rem; color: var(--sand); }
.world__title { font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; color: var(--cream); line-height: 1.35; }
html[lang="en"] .world__title { font-size: 1.15rem; }
.world__more { margin-top: .5rem; font-family: var(--f-ui); font-weight: 700; font-size: .85rem; color: var(--gold-light); border-bottom: 1px solid currentColor; }
.world__body { padding: 0 1.4rem 1.5rem; color: var(--papyrus); text-align: center; animation: rise .5s var(--ease); }
.world__body p { margin: 0; border-top: 1px solid rgba(196,154,69,.3); padding-top: 1rem; }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--obsidian-2); box-shadow: var(--shadow-gold); }
.gallery__item img { width: 100%; aspect-ratio: 600 / 642; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gallery__frame { position: absolute; inset: 8px; border: 1px solid rgba(232,199,122,.55); border-radius: 9px; pointer-events: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 7, 5, .92); backdrop-filter: blur(6px); }
.lightbox__img { max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--gold), 0 30px 80px rgba(0,0,0,.8); }
.lightbox__close, .lightbox__nav { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(23,18,14,.8); color: var(--gold-light); cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg, .lightbox__nav svg { width: 1.3rem; height: 1.3rem; }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.contact__card { position: relative; border-radius: var(--radius); background: linear-gradient(170deg, rgba(60,42,26,.55), rgba(23,18,14,.9)); box-shadow: var(--shadow-gold); transition: transform .3s var(--ease); }
.contact__card:hover { transform: translateY(-4px); }
.contact__link { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.6rem 1rem 1.4rem; text-decoration: none; text-align: center; height: 100%; }
.contact__icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #F4D995, #A97C2F); color: var(--obsidian); }
.contact__icon svg { width: 1.5rem; height: 1.5rem; }
.contact__text { display: flex; flex-direction: column; }
.contact__label { font-family: var(--f-ui); font-size: .82rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.contact__value { font-family: var(--f-ui); font-weight: 600; color: var(--cream); font-size: .98rem; word-break: break-word; }
.contact__copy { position: absolute; top: .6rem; inset-inline-end: .6rem; padding: .1rem .6rem; border-radius: 999px; border: 1px solid rgba(196,154,69,.5); background: transparent; color: var(--sand); font-family: var(--f-ui); font-size: .72rem; cursor: pointer; }
.contact__copy:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ============ Footer ============ */
.footer { background: #0F0B08; border-top: 1px solid rgba(196,154,69,.3); padding: 2.6rem 0 2rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.brand--footer { justify-content: center; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.footer__nav a { font-family: var(--f-ui); font-size: .9rem; text-decoration: none; color: var(--sand); }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { margin: 0; font-family: var(--f-ui); font-size: .82rem; color: rgba(216,195,154,.7); }
.footer__top { font-family: var(--f-ui); font-size: .82rem; color: var(--gold); }
.noscript { padding: 1rem; text-align: center; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .nav__list { gap: .9rem; }
  .worlds, .skills, .gallery, .contact { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .exp--featured { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: grid; place-items: center;
    background: rgba(15, 11, 8, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.3rem; }
  .nav__link { font-size: 1.35rem; }
  .header__actions { margin-inline-start: auto; }
  .hero__glyphs { display: none; }
  .hero__inner, .hero__cards { width: min(1280px, 100% - 2.5rem); }
  .hero__cards { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: .4rem .2rem 1rem; scroll-snap-type: x mandatory; }
  .tile { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .hero { padding-top: var(--header-h); }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__portrait { order: 0; width: min(520px, 100%); margin: 0 auto -5rem; align-self: auto; }
  .hero__portrait img { max-height: 62svh; mask-image: radial-gradient(ellipse 56% 56% at 50% 40%, #000 58%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 56% 56% at 50% 40%, #000 58%, transparent 100%); }
  .hero__copy { padding-bottom: .5rem; }
  .hero__pyramids { height: 45%; }
  .about { grid-template-columns: 1fr; }
  .about__media { width: min(380px, 85%); margin-inline: auto; }
  .certs { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand__ar { font-size: 1.35rem; }
  .brand__en { font-size: .55rem; }
  .brand__crown { width: 1.7rem; }
  .lang-switch { padding: 3px; }
  html[dir="rtl"] .lang-switch { padding: 3px; }
  .lang-switch > svg { display: none; }
  .lang-switch__opt { padding: .2rem .6rem; font-size: .8rem; }
  .hero__ribbon { gap: .3rem; }
  .wing { width: 2rem; }
  .btn { padding: .75rem 1.25rem; font-size: .95rem; }
  .facts, .worlds, .skills, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .timeline::before { inset-inline-start: 19px; }
  .timeline__item { padding-inline-start: 58px; }
  .timeline__dot { width: 38px; height: 38px; inset-inline-start: 0; }
  .about__ankh { display: none; }
  .motto { gap: .6rem; letter-spacing: .18em; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .hero__copy > *, html.js .hero__portrait, html.js .tile, html.js .reveal { opacity: 1; transform: none; }
  .hero__glyph-track { animation: none; }
}
