/* =========================================================
   الألوان والخطوط — يمكنك تعديل درجات الذهبي من هنا
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0e0c;
  --surface: #151412;
  --gold: #d4af37;
  --gold-2: #ecd07a;
  --gold-3: #a8832a;
  --line: rgba(212, 175, 55, .28);
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f4efe4;
  --muted: #a8a294;
  --dim: #6f6a60;
  --grad-gold: linear-gradient(115deg, #8f6c1f 0%, #d4af37 20%, #f7e6a6 42%, #d4af37 60%, #9c7a25 80%, #ecd07a 100%);

  --font-display: "El Messiri", "IBM Plex Sans Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;

  --radius: 14px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* حبيبات خفيفة تعطي ملمساً سينمائياً */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #0a0a0a; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 300;
  background: var(--gold); color: #0a0a0a; padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- عناصر مشتركة ---------- */
.gold-text {
  background: var(--grad-gold);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  color: var(--gold); font-size: .95rem; font-weight: 500;
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.eyebrow--center::after { content: ""; width: 38px; height: 1px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.9em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-position .6s var(--ease), border-color .3s, color .3s, box-shadow .35s;
}
.btn--gold {
  background: var(--grad-gold); background-size: 200% auto; color: #0d0b06;
  box-shadow: 0 14px 34px -14px rgba(212, 175, 55, .55);
}
.btn--gold:hover { background-position: 100% center; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(212, 175, 55, .7); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); background: rgba(10, 10, 10, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

/* ---------- الشريط العلوي ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; position: relative; z-index: 2; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1;
}
.brand__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); font-size: .98rem; transition: color .3s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta { color: var(--gold) !important; border: 1px solid var(--line); padding: .45em 1.3em; border-radius: 999px; transition: background .3s, color .3s !important; }
.nav__cta:hover { background: var(--gold); color: #0a0a0a !important; }

.nav__toggle {
  display: none; position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10, 10, 10, .4); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--gold); transition: transform .35s var(--ease); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(8, 8, 8, .97);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav__links a { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); }
  .nav__cta { font-size: 1.3rem !important; margin-top: .6rem; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
}

/* ---------- الواجهة ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 140px clamp(120px, 14vh, 160px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.8s ease;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 9s linear forwards; }
.hero__slide.is-letterboxed { inset: -17%; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 75% 35%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .7) 75%),
    linear-gradient(to top, var(--bg) 2%, rgba(10, 10, 10, .6) 32%, rgba(10, 10, 10, .2) 62%, rgba(10, 10, 10, .75) 100%);
}
.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 8rem); line-height: 1.1;
  margin-top: .8rem; padding-bottom: .1em;
}
.hero__latin {
  font-family: var(--font-latin); font-weight: 500;
  font-size: clamp(.85rem, 1.5vw, 1.1rem); letter-spacing: .5em;
  color: var(--muted); margin-top: .4rem; text-align: right;
}
.hero__lead { max-width: 560px; margin-top: 1.4rem; color: #ddd6c8; font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero__aside {
  position: absolute; inset-inline: 0; bottom: clamp(28px, 5vh, 48px);
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 1.6rem;
}
.hero__feature {
  all: unset; cursor: pointer; text-align: start;
  display: flex; flex-direction: column; gap: .1rem;
  padding-inline-start: 1rem; border-inline-start: 1px solid var(--gold);
}
.hero__feature[hidden] { display: none; }
.hero__feature-label { font-size: .78rem; color: var(--gold); }
.hero__feature-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); transition: color .3s; }
.hero__feature:hover .hero__feature-title { color: var(--gold-2); }
.hero__feature:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.hero__dots { display: flex; gap: .5rem; padding-bottom: .45rem; }
.hero__dot {
  all: unset; cursor: pointer; width: 26px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .25); position: relative; overflow: hidden;
}
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; }
.hero__dot.is-active::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.hero__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@keyframes dotfill { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(26px, 5vh, 44px); transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--gold); animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
  .hero__scroll { display: none; }
  .hero__feature { display: none; }
  .hero__aside { justify-content: center; }
}

/* ---------- شريط المجالات ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--bg-2); padding-block: 1.15rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 2.6rem; padding-inline-end: 2.6rem; }
.ticker span { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--muted); white-space: nowrap; }
.ticker i { font-style: normal; color: var(--gold); font-size: .9rem; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(84px, 12vw, 150px); position: relative; }
.section__head { max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.3; margin-top: .5rem; }
.section__sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

/* ---------- الفلاتر ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  cursor: pointer; background: transparent; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: .55em 1.5em;
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--text); border-color: var(--line); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0d0b06; font-weight: 600; }
.filter__count { font-size: .78em; opacity: .65; margin-inline-start: .2em; }
.filter { flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  /* على الجوال: الأزرار في سطر واحد يُسحب أفقياً */
  .filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .3rem;
  }
  .filters::-webkit-scrollbar { display: none; }
}

/* ---------- شبكة الأعمال ---------- */
.grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(200px, 19vw, 270px); grid-auto-flow: dense;
  gap: 14px;
}
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card--big { grid-column: span 2; grid-row: span 2; }
.card--pano { grid-column: 1 / -1; }
.card.is-hidden, .card.is-collapsed { display: none; }
.more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.more .btn[hidden] { display: none; }
.more__count { font-size: .8em; color: var(--gold-2); }
.card.is-entering { animation: cardin .7s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.card__btn { all: unset; position: absolute; inset: 0; cursor: zoom-in; display: block; }
.card--video .card__btn { cursor: pointer; }
.card__img, .card__vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease), opacity .6s, filter .6s;
}
.card__img { opacity: 0; }
.card__img.is-loaded { opacity: 1; }
.card__vid { opacity: 0; }
.card.is-previewing .card__vid { opacity: 1; }
.card:hover .card__img, .card:hover .card__vid { transform: scale(1.06); }
.card__img.is-letterboxed { transform: scale(1.34); }
.card:hover .card__img.is-letterboxed { transform: scale(1.42); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: calc(var(--radius) - 4px);
  border: 1px solid transparent; pointer-events: none;
  transition: inset .55s var(--ease), border-color .55s;
}
.card:hover::after, .card:focus-within::after { inset: 12px; border-color: rgba(236, 208, 122, .75); }

.card__info {
  position: absolute; inset: auto 0 0 0; padding: 3.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0));
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s, transform .5s var(--ease);
}
.card:hover .card__info, .card__btn:focus-visible .card__info { opacity: 1; transform: none; }
.card__cat { color: var(--gold); font-size: .8rem; }
.card__title { font-family: var(--font-display); font-size: 1.15rem; color: #fff; line-height: 1.5; }

.card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(236, 208, 122, .8); color: var(--gold-2);
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px);
  transition: background .4s, color .4s, transform .4s var(--ease), opacity .4s;
}
.card__play svg { margin-left: 3px; }
.card:hover .card__play { background: var(--gold); color: #0d0b06; transform: translate(-50%, -50%) scale(1.08); }
.card.is-previewing .card__play { opacity: 0; }
.card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-size: .72rem; padding: .15em .8em; border-radius: 999px;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line); color: var(--gold-2);
  backdrop-filter: blur(4px);
}

@media (hover: none) {
  .card__play, .card:hover .card__play { top: 10px; left: 10px; transform: none; width: 38px; height: 38px; }
  .card__play svg { width: 16px; height: 16px; margin-left: 2px; }
  .card__badge { top: 14px; inset-inline-start: 10px; }
  .card__info { opacity: 1; transform: none; padding: 2.4rem .9rem .75rem; }
  .card__title { font-size: .95rem; }
  .card__cat { font-size: .72rem; }
}
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(190px, 26vw, 250px); }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 10px; }
  .card__play { width: 48px; height: 48px; }
  .card:hover::after { inset: 8px; }
}

/* ---------- التخصصات ---------- */
.specialties { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 50%, var(--bg)); }
.specs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: linear-gradient(160deg, #15130f, #0c0b09);
  transition: border-color .5s, transform .5s var(--ease);
}
.spec::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgba(212, 175, 55, .14), transparent 70%);
  transition: opacity .5s;
}
.spec:hover { border-color: var(--line); transform: translateY(-6px); }
.spec:hover::before { opacity: 1; }
.spec__num {
  position: absolute; top: 16px; inset-inline-end: 22px;
  font-family: var(--font-latin); font-size: 3.6rem; line-height: 1; color: rgba(212, 175, 55, .13);
  transition: color .5s;
}
.spec:hover .spec__num { color: rgba(212, 175, 55, .3); }
.spec__icon {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold); background: rgba(212, 175, 55, .06);
  margin-bottom: 1.4rem; transition: background .5s, color .5s;
}
.spec:hover .spec__icon { background: var(--gold); color: #0d0b06; }
.spec__latin { font-family: var(--font-latin); letter-spacing: .38em; font-size: .74rem; color: var(--gold-2); text-align: right; }
.spec__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.4; margin-top: .2rem; }
.spec__text { color: var(--muted); margin-top: .7rem; font-size: .98rem; line-height: 1.85; }
.spec__tags { display: flex; gap: .5rem; margin-top: 1.4rem; }
.spec__tags span { font-size: .8rem; padding: .2em .95em; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-2); }
.specs__note { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: clamp(32px, 4vw, 48px); text-align: center; color: var(--muted); font-size: 1.05rem; }
.specs__note strong { color: var(--gold-2); font-weight: 600; }
@media (max-width: 900px) { .specs { grid-template-columns: 1fr; } }

/* ---------- الفيلم التعريفي ---------- */
.showreel { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 50%, var(--bg)); }
.reel {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000;
  outline: 1px solid var(--line); outline-offset: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 50px 120px -50px rgba(212, 175, 55, .35);
  margin-inline: clamp(8px, 1.2vw, 14px);
}
.reel__cover { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.reel__cover:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; border-radius: 20px; }
.reel__poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.9); transition: transform 1.4s var(--ease), filter .6s; }
.reel__cover:hover .reel__poster { transform: scale(1.04); filter: brightness(.72); }
.reel__poster.is-letterboxed { transform: scale(1.34); }
.reel__cover:hover .reel__poster.is-letterboxed { transform: scale(1.4); }
.reel__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #0d0b06;
  background: var(--grad-gold); background-size: 200% auto;
  animation: pulse 2.6s infinite;
}
.reel__play svg { margin-left: 4px; width: 38%; height: 38%; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); }
  70% { box-shadow: 0 0 0 30px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.reel__label {
  position: absolute; bottom: clamp(14px, 3vw, 28px); right: clamp(16px, 3vw, 32px);
  font-family: var(--font-latin); letter-spacing: .4em; font-size: clamp(.7rem, 1.2vw, .95rem); color: var(--gold-2);
}
.reel iframe, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- نبذة عني ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__photo { position: relative; margin-inline-end: 22px; }
.about__photo::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); border-radius: 18px;
  transform: translate(-22px, 22px);
}
.about__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; filter: saturate(.85); }
.about__badge {
  position: absolute; bottom: 28px; inset-inline-start: -28px; z-index: 1;
  display: flex; align-items: center; gap: .8rem;
  background: rgba(12, 12, 12, .9); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.2rem;
}
.about__badge strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; white-space: nowrap; }

/* أبرز الخبرات */
.roles__heading { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--gold); margin: 1.9rem 0 .9rem; }
.roles { list-style: none; display: grid; gap: .7rem; }
.roles li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--line-soft); border-inline-start: 2px solid var(--gold);
  background: rgba(255, 255, 255, .02);
}
.roles__text { display: flex; flex-direction: column; line-height: 1.6; }
.roles__text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.roles__text span { font-size: .88rem; color: var(--muted); }
.roles__time {
  flex: none; white-space: nowrap; font-size: .8rem; color: var(--gold-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .15em .9em;
}
.about__badge span { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.about__text p { color: #d2cbbd; font-size: 1.07rem; margin-bottom: 1.1rem; }
.about__text p strong { color: var(--gold-2); font-weight: 600; }
.about__text .section__title { margin-bottom: 1.4rem; }
.stats {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-block: 2.2rem; padding-block: 1.8rem; border-block: 1px solid var(--line-soft);
}
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.stats span { color: var(--muted); font-size: .92rem; }
.services { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; }
.services li { display: flex; align-items: center; gap: .8rem; color: var(--text); }
.services li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; width: calc(100% - 22px); margin-inline: auto; }
  .about__badge { inset-inline-start: auto; inset-inline-end: -10px; bottom: 18px; }
}
@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; }
  .stats span { font-size: .82rem; }
}

/* ---------- شارة الجائزة في الواجهة ---------- */
.hero__award {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  padding: .45rem 1.1rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: rgba(10, 10, 10, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #e6dfd0; font-size: .92rem; line-height: 1.5;
  transition: border-color .3s, background .3s;
}
.hero__award svg { color: var(--gold); flex: none; }
.hero__award strong { color: var(--gold-2); font-weight: 600; }
.hero__award:hover { border-color: var(--gold); background: rgba(212, 175, 55, .1); }

/* ---------- الإنجازات ---------- */
.award { background: radial-gradient(60% 70% at 15% 55%, rgba(212, 175, 55, .09), transparent 70%); }
.award__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(44px, 6vw, 96px); align-items: center; }
.award__photo {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--surface);
  outline: 1px solid var(--line); outline-offset: clamp(8px, 1vw, 12px);
  box-shadow: 0 50px 120px -50px rgba(212, 175, 55, .35);
  margin: clamp(8px, 1vw, 12px);
}
.award__photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; transition: transform 1.4s var(--ease); }
.award__photo:hover img { transform: scale(1.03); }
.award__photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.3rem 1rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
  font-size: .88rem; color: #e6dfd0; pointer-events: none;
}
.award__photo figcaption [lang="en"] { font-family: var(--font-latin); letter-spacing: .3em; color: var(--gold-2); font-size: .8rem; }
.award__photo.is-missing { aspect-ratio: 16 / 9; display: grid; place-items: center; outline-style: dashed; }
.award__photo.is-missing img, .award__photo.is-missing figcaption { display: none; }
.award__photo.is-missing::after { content: "ضع الصورة الفائزة في: media/erth-award.jpg"; color: var(--muted); font-size: .95rem; padding: 1rem; text-align: center; }

.award__head { display: flex; align-items: center; gap: 1.3rem; margin-top: 1rem; }
.award__medal {
  flex: none; width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #201b0d, #0c0b08 70%);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 7px rgba(212, 175, 55, .08), 0 18px 40px -16px rgba(212, 175, 55, .5);
}
.award__medal small { font-size: .78rem; color: var(--muted); line-height: 1.2; }
.award__medal strong { font-family: var(--font-display); font-size: 2rem; line-height: 1.25; }
.award__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.35; }
.award__title .gold-text { display: inline-block; }
.award__name { margin-top: 1.1rem; font-size: 1.12rem; color: var(--text); }
.award__facts {
  display: grid; gap: .9rem; margin: 1.5rem 0 2rem; padding-block: 1.4rem;
  border-block: 1px solid var(--line-soft);
}
.award__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.award__facts dt { color: var(--gold); font-size: .9rem; }
.award__facts dd { color: #d2cbbd; font-size: .98rem; line-height: 1.7; }

@media (max-width: 960px) {
  .award__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .award__head { gap: 1rem; }
  .award__medal { width: 88px; height: 88px; }
  .award__medal strong { font-size: 1.55rem; }
  .award__facts div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- الجهات ---------- */
/* flex بدل grid حتى يتوسّط الصف الأخير إذا كان ناقصاً */
.clients__grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients__grid > .client { flex: 0 0 calc((100% - 36px) / 4); }
.client {
  /* الأبيض الافتراضي ← الذهبي عند المرور (نفس ترتيب الفلاتر حتى تتحرك بنعومة) */
  --inv: 1; --b1: 1.05; --sep: 0; --sat: 1; --hue: 0deg; --b2: 1;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 11; padding: 1.2rem 1rem 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(160deg, #15130f, #0c0b09);
  transition: border-color .5s, transform .5s var(--ease);
}
.client--light { --inv: 0; --b1: 1.1; }
.client::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(80% 70% at 50% 40%, rgba(212, 175, 55, .13), transparent 70%);
  transition: opacity .5s;
}
.client__logo { flex: none; height: 66%; width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem; }
.client__logo img {
  height: 100%; width: auto; max-width: 84%; object-fit: contain;
  transform: scale(var(--s, 1));
  filter: grayscale(1) invert(var(--inv)) brightness(var(--b1)) sepia(var(--sep)) saturate(var(--sat)) hue-rotate(var(--hue)) brightness(var(--b2));
  mix-blend-mode: screen; opacity: .8;
  transition: filter .6s, opacity .6s;
}
.client__name { font-size: .78rem; line-height: 1.5; color: var(--dim); text-align: center; transition: color .4s; }
.client__role {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1;
  font-size: .66rem; line-height: 1.6; white-space: nowrap; padding: .1em .75em; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .55); color: var(--gold-2);
}
.client:hover { border-color: var(--line); transform: translateY(-4px); }
.client:hover::before { opacity: 1; }
.client:hover .client__name { color: var(--gold-2); }
.client:hover .client__logo img { --b1: .62; --sep: 1; --sat: 2.6; --hue: -6deg; --b2: 1.35; opacity: 1; }
.client--event .client__logo { flex-direction: column; gap: .55rem; color: var(--gold); text-align: center; }
.client__word { font-family: var(--font-display); font-size: clamp(.95rem, 1.5vw, 1.12rem); line-height: 1.5; color: var(--text); transition: color .4s; }
.client--event:hover .client__word, .client--text:hover .client__word { color: var(--gold-2); }
.client--text .client__name { visibility: hidden; }

@media (max-width: 1024px) { .clients__grid > .client { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 720px) {
  .clients__grid { gap: 10px; }
  .clients__grid > .client { flex-basis: calc((100% - 10px) / 2); }
  .client { padding: .8rem .6rem .7rem; gap: .5rem; }
  .client__logo { height: 62%; }
  .client__name { font-size: .72rem; }
  .client__role { top: 7px; inset-inline-start: 7px; font-size: .58rem; padding: 0 .6em; }
  .roles li { padding: .75rem .9rem; }
  .roles__text strong { font-size: .98rem; }
  .roles__text span { font-size: .82rem; }
}

/* ---------- تواصل ---------- */
.contact { text-align: center; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 110%, rgba(212, 175, 55, .16), transparent 70%);
}
.contact__inner { position: relative; }
.contact__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.35; max-width: 920px; margin: 1rem auto 0; }
.contact__title .gold-text { display: inline-block; }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.socials { list-style: none; display: flex; justify-content: center; gap: .8rem; margin-top: 2.6rem; }
.socials a {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--muted);
  transition: color .3s, border-color .3s, transform .35s var(--ease), background .3s;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); background: rgba(212, 175, 55, .06); }

/* ---------- التذييل ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 1.8rem; color: var(--dim); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__top { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--muted); transition: color .3s; }
.footer__top:hover { color: var(--gold); }

/* ---------- عارض الأعمال ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: #050505;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .35s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb__stage {
  width: min(92vw, 1400px); height: 86vh; height: 86dvh;
  display: flex; flex-direction: column; gap: 1rem;
}
.lb__media { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.lb__media img, .lb__media video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; background: #000;
  animation: lbin .45s var(--ease);
}
.lb__media iframe {
  width: min(100%, calc((86dvh - 70px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 8px; background: #000;
}
@keyframes lbin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb__media iframe.is-portrait { width: auto; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; }

/* البانوراما في العارض: بارتفاع الشاشة مع سحب أفقي */
.lb__media.is-pano {
  display: block; overflow-x: auto; overflow-y: hidden; direction: ltr;
  cursor: grab; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, .6) transparent;
}
.lb__media.is-pano.is-dragging { cursor: grabbing; }
.lb__media.is-pano img {
  max-width: none; max-height: none; height: 100%; width: auto;
  border-radius: 0; user-select: none; -webkit-user-drag: none;
}
.lb__hint {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: .55rem 1.2rem; border-radius: 999px; pointer-events: none; direction: rtl;
  background: rgba(0, 0, 0, .62); border: 1px solid var(--line); color: var(--gold-2);
  font-size: .92rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: hintfade 4.5s forwards; transition: opacity .5s;
}
.lb__hint.is-hidden { opacity: 0; }
@keyframes hintfade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.lb__media.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lb__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--muted); }
.lb__text { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.lb__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.lb__meta { font-size: .9rem; color: var(--gold); }
.lb__count { font-family: var(--font-latin); letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.lb__btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(16, 16, 16, .7); color: var(--text);
  transition: color .3s, border-color .3s, background .3s;
}
.lb__btn:hover { color: var(--gold); border-color: var(--gold); }
.lb__close { top: 18px; inset-inline-end: 18px; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { inset-inline-start: 18px; }
.lb__next { inset-inline-end: 18px; }
.lb__btn[hidden] { display: none; }
@media (max-width: 720px) {
  .lb__stage { width: 100vw; height: 78vh; height: 78dvh; padding-inline: 12px; }
  .lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lb__close { top: 12px; inset-inline-end: 12px; width: 46px; height: 46px; }
  .lb__media iframe { width: 100%; }
}

/* ---------- حركة الظهور ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

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