/* =========================================================
   DUNES — التصميم
   الألوان والخطوط كلها في :root تحت، غيّرها من هنا
   ========================================================= */

:root {
  /* الخلفيات */
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  /* النص */
  --text: #f4f1ec;
  --muted: #a39e96;
  --dim: #99938b;

  /* الذهبي (من شعار الفريق) */
  --gold: #e0a945;
  --gold-2: #f0c46b;
  --gold-deep: #a8741f;
  --sand: #e8d3ae;
  --ink: #1a1206;

  /* كيك */
  --kick: #53fc18;

  /* الخطوط */
  --f-display: "Alexandria", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --f-latin: "Anton", "Alexandria", Impact, sans-serif;

  /* المقاسات والحركة */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 96px; /* المساحة المحجوزة للشريط العائم */
  --tapes-h: 120px;
  --r: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- الأساسيات ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  isolation: isolate;
}

main,
.footer { position: relative; z-index: 1; }

html[lang="en"] body { line-height: 1.65; }
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

img,
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, dd { margin: 0; }
em { font-style: normal; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

/* رابط التخطي: مخفي فوق الشاشة، ويطلع أول ما يوصله الكيبورد */
.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* حبيبات خفيفة فوق كل شي */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- شاشة البداية ---------- */

html.is-loading { overflow: hidden; }
html.is-loading body { overflow: hidden; }

.site-loader { display: none; }
.is-loading .site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse 340px 300px at center, rgba(224, 169, 69, 0.055), transparent), #111213;
  opacity: 1;
  transition: opacity 0.32s var(--ease);
}
.site-loader__card {
  width: min(288px, 100%);
  padding: 24px 22px 22px;
  text-align: center;
  border: 1px solid rgba(232, 211, 174, 0.3);
  border-radius: 20px;
  background: linear-gradient(150deg, #242424, #1a1b1c);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 70px rgba(224, 169, 69, 0.045);
  transform: translateY(0);
  transition: transform 0.32s var(--ease);
}
.site-loader__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border: 1px solid rgba(224, 169, 69, 0.2);
  border-radius: 50%;
  background: rgba(224, 169, 69, 0.035);
  box-shadow: 0 0 30px rgba(224, 169, 69, 0.1), inset 0 0 20px rgba(224, 169, 69, 0.05);
}
.site-loader__logo::before,
.site-loader__logo::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(224, 169, 69, 0.1);
  border-radius: 50%;
}
.site-loader__logo::after {
  inset: -1px;
  border-color: var(--gold) transparent transparent;
  animation: loader-orbit 2.4s linear infinite;
}
.site-loader__logo img { width: 64px; height: 64px; object-fit: contain; }
.site-loader__title { font-size: 1.35rem; font-weight: 700; line-height: 1.4; }
.site-loader__message { margin-top: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.site-loader__track {
  height: 3px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  direction: ltr;
}
.site-loader__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0.08);
  transform-origin: left;
  animation: loader-progress 4s var(--ease-out) forwards;
  transition: transform 0.16s ease-out;
}
.is-loading.is-loader-complete .site-loader__track span { animation: none; transform: scaleX(1); }
.is-loading.is-loader-leaving .site-loader { opacity: 0; }
.is-loader-leaving .site-loader__card { transform: translateY(-8px); }

@keyframes loader-orbit { to { transform: rotate(360deg); } }
@keyframes loader-progress {
  0% { transform: scaleX(0.08); }
  35% { transform: scaleX(0.6); }
  70% { transform: scaleX(0.82); }
  100% { transform: scaleX(0.94); }
}

/* ---------- الشريط العلوي ---------- */

.nav {
  position: fixed;
  top: 18px;
  inset-inline: 16px;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.8s var(--ease-out), opacity 0.5s var(--ease), visibility 0.8s;
}
.nav.is-hidden {
  transform: translate3d(0, calc(-100% - 36px), 0) scale(0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  color: #b9b8b6;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.065); }
.nav__links a[data-section="community"] {
  margin-inline-start: 4px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}
.nav__links a[data-section="community"]:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); }
html[lang="en"] .nav__links a { font-size: 0.9rem; }

.nav__actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; margin-inline-start: auto; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
html[lang="en"] .lang-btn { font-family: var(--f-display); font-weight: 700; letter-spacing: 0; }
.lang-btn:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: var(--text); }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}
.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 21px; }
.nav.is-open .menu-btn span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav { top: 12px; width: calc(100% - 32px); max-width: 600px; height: 60px; gap: 12px; }
  .menu-btn { display: block; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: #0c0c0d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { justify-content: flex-start; padding: 10px 16px; font-size: 1rem; }
  html[lang="en"] .nav__links a { font-size: 1rem; }
  .nav__links a[data-section="community"] { margin-inline-start: 0; }
}

/* ---------- الأزرار ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.3s var(--ease-out), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease-out); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(4px); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-2); transform: translateY(-2px); }

.btn--ghost { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); }

/* زر دونز ستوديو: ذهبي، تمر عليه لمعة، وسهمه يتحرك عشان يبين إنه ينضغط */
.btn--studio {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 0 34px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #c98f2e);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}
.btn--studio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: shine 3.2s var(--ease) infinite;
}
.btn--studio svg { animation: nudge 1.6s var(--ease) infinite; }
html[dir="rtl"] .btn--studio svg { animation-name: nudge-rtl; }
.btn--studio:hover { background: linear-gradient(135deg, #f7d58e, var(--gold-2) 55%, var(--gold)); transform: translateY(-2px); }

.kick-mark {
  display: inline-block;
  padding: 2px 6px 1px;
  border-radius: 3px;
  background: var(--kick);
  color: #0a0a0b;
  font-family: var(--f-latin);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.kick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(83, 252, 24, 0.4);
  border-radius: 6px;
  background: rgba(83, 252, 24, 0.07);
  color: #dcffcf;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.kick-btn:hover { background: rgba(83, 252, 24, 0.16); border-color: var(--kick); }
.kick-btn.is-off { border-color: var(--line); background: transparent; color: var(--dim); cursor: default; }
.kick-btn.is-off .kick-mark { background: var(--dim); }

/* ---------- الواجهة ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 0 96px;
  overflow: hidden;
}

/* البنر ياخذ المساحة اللي فوق الكلام، والصورة نفسها أطول منه وتنزل ورا الكلام لين قبل الشريطين.
   الحسبة مبنية على مكان كلمة DUNES في الصورة: من 32% لين 61% من طولها، فلو تغيرت الصورة راجع الأرقام.
   - طول الصورة ما يزيد عن 53vw، عشان الكلمة ما تنقص من الأطراف
   - ولا يزيد لدرجة إن الكلمة تدخل تحت الشريط العلوي (--nav-h)
   - وإذا المساحة قصيرة تطلع الصورة لفوق (يختفي شي من سماها) بدل ما تركب الكلمة على الكلام */
.hero__banner {
  --banner-gap: 24px; /* بين الكلمة والكلام اللي تحتها */
  --banner-h: min(53vw, (100% - var(--banner-gap) - var(--nav-h)) * 3.45);
  --banner-top: min(0px, 100% - var(--banner-gap) - var(--banner-h) * 0.61);
  position: relative;
  z-index: -2;
  flex: 1 0 0;
  /* أقل مساحة تكفي الكلمة كاملة تحت الشريط العلوي. بالشاشات القصيرة جداً الواجهة تطول بدل ما تنقص الكلمة */
  min-height: calc(var(--nav-h) + var(--banner-gap) + 9.7vw);
  /* بالشاشات الطويلة الكلام يبقى قريب من الكلمة، والزيادة تروح تحته */
  max-height: calc(53vw * 0.61 + var(--banner-gap) * 2);
}
.hero__banner img,
.hero__banner::after {
  position: absolute;
  left: 0;
  top: var(--banner-top);
  width: 100%;
  height: var(--banner-h);
}
.hero__banner img {
  object-fit: cover;
  object-position: 52% 50%;
  transform-origin: 50% 40%;
  will-change: transform;
  /* يصير شفاف من تحت عشان يذوب في الخلفية بدون خط */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
}
/* تغميق خفيف تحت الكلام عشان يبان، والجوانب تذوب في الخلفية */
.hero__banner::after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.5) 100%),
    linear-gradient(90deg, var(--bg) 0, transparent 5%, transparent 95%, var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 55% 35% at 50% 62%, rgba(224, 169, 69, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 112%, rgba(224, 169, 69, 0.16), transparent 70%);
}

.hero__sand {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sand);
}
.chip__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.chip__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ping 2s var(--ease-out) infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6.6vw, 5.8rem);
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.hero__title em { color: var(--gold); }
html[lang="en"] .hero__title {
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--muted);
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

/* سهم "انزل" تحت الأزرار، ما يركب عليها */
.hero__scroll {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.25s;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll i {
  position: relative;
  width: 2px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: drip 2.2s var(--ease) infinite;
}

/* بالكمبيوتر الواجهة لازم تنتهي عند الشريطين بأول شاشة، فالسهم يطلع بس لو فيه مكان له */
@media (max-height: 760px), (min-width: 961px) and (max-height: 999px) { .hero__scroll { display: none; } }

/* دخول عناصر الواجهة */

/* ---------- خلفية المربعات ---------- */

/* شبكة ورا المحتوى، أوضح على الأطراف وأخف بالنص عشان الكلام يبقى مريح.
   الجافاسكربت يحركها مع السكرول ويخلي التوهج يلحق الماوس */
.backdrop {
  --cell: 64px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background:
    radial-gradient(ellipse 45% 40% at 0% 0%, rgba(224, 169, 69, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(224, 169, 69, 0.06), transparent 70%);
}
/* أطول من الشاشة بأربع مربعات، عشان تمشي مع السكرول وترجع مكانها بدون ما يبان القطع */
.backdrop__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 4 * var(--cell));
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cpath d='M128.5 121v15M121 128.5h15' stroke='%23e8d3ae' stroke-opacity='.3'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(232, 211, 174, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 211, 174, 0.06) 1px, transparent 1px);
  background-size: calc(4 * var(--cell)) calc(4 * var(--cell)), var(--cell) var(--cell), var(--cell) var(--cell);
  /* خط بنص الشاشة بالضبط، وعلامة + كل أربع مربعات على التقاطع */
  background-position: 50% calc(-2 * var(--cell)), calc(50% - var(--cell) / 2) 0, calc(50% - var(--cell) / 2) 0;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.35) 70%, #000);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.35) 70%, #000);
  will-change: transform;
}
.backdrop__glow {
  position: absolute;
  top: -380px;
  left: -380px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224, 169, 69, 0.11), rgba(224, 169, 69, 0.035) 55%, transparent);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}
.backdrop.has-pointer .backdrop__glow { opacity: 1; }

/* ---------- الشرائط المتقاطعة ---------- */

.tapes {
  position: relative;
  z-index: 2;
  height: var(--tapes-h);
  margin-top: -70px;
  overflow: hidden;
  overflow: clip visible; /* يقص الأطراف بس، عشان ظل الشريط ما ينقص فوق الشبكة */
  direction: ltr;
  pointer-events: none;
}
.no-js .tapes { display: none; }
.tape {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding: 14px 0;
}
/* من 1145px وفوق الميلان -2.5deg و 2deg بالضبط. بالشاشات الأصغر يزيد شوي،
   عشان الشريط الغامق يبان على الأطراف بنفس القدر اللي يبان فيه بالكمبيوتر */
.tape--front {
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-50%) rotate(-2.5deg);
  transform: translateY(-50%) rotate(atan2(min(-25px, -2.183vw), 50vw));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.tape--back {
  z-index: 1;
  background: #151517;
  border-block: 1px solid var(--line-2);
  color: var(--sand);
  transform: translateY(-50%) rotate(2deg);
  transform: translateY(-50%) rotate(atan2(max(20px, 1.746vw), 50vw));
}
.tape__track {
  display: flex;
  width: max-content;
  animation: tape 45s linear infinite;
}
.tape--back .tape__track { animation-duration: 60s; animation-direction: reverse; }
.tape__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline-end: 26px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.4;
}
.tape__item--latin {
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tape__star { font-size: 0.8em; opacity: 0.7; }

/* أول ما يبان الشريطين ينفردون من جهتين؛ الجافاسكربت يضيف is-armed وبعدين is-in */
.tapes.is-armed .tape {
  clip-path: inset(-60px 100% -60px -60px);
  transition: clip-path 1.2s var(--ease-out);
}
.tapes.is-armed .tape--back {
  clip-path: inset(-60px -60px -60px 100%);
  transition-delay: 0.15s;
}
.tapes.is-armed.is-in .tape { clip-path: inset(-60px); }

html.is-smooth-scrolling { scroll-behavior: auto; }

/* ---------- الأقسام ---------- */

.section { position: relative; padding-block: clamp(90px, 12vw, 150px); }

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.head__sub { max-width: 430px; font-size: 1.06rem; color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gold);
}
.eyebrow__num { font-family: var(--f-latin); font-size: 1.05rem; letter-spacing: 0.06em; direction: ltr; }
.eyebrow__slash { width: 26px; height: 2px; background: currentColor; transform: skewX(-30deg); }
.eyebrow__label { font-weight: 700; font-size: 0.98rem; color: var(--muted); }
html[lang="en"] .eyebrow__label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }

.title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}
.title em,
.footer__title em { color: var(--gold); }
html[lang="en"] .title {
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1;
  text-transform: uppercase;
}

/* ظهور العناصر مع السكرول */
.js .reveal { opacity: 0; }
.js .reveal.is-in {
  opacity: 1;
  animation: rise 0.9s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-shown { opacity: 1; animation: none; }

/* ---------- من نحن ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}
.about__text p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); }
.about__text .lead { margin-top: 26px; font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.7; color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 24px;
  width: 36px;
  height: 3px;
  background: var(--gold);
}
.stat--wide { grid-column: 1 / -1; }
.stat dd {
  direction: ltr;
  font-family: var(--f-latin);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--text);
}
html[dir="rtl"] .stat dd { text-align: right; }
.stat dd em { color: var(--gold); }
.stat dt { margin-top: 10px; font-weight: 700; color: var(--muted); }

/* ---------- الستريمرز ---------- */

.members { background: linear-gradient(180deg, transparent, rgba(129, 99, 0, 0) 30%, transparent); }

.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 169, 69, 0.6);
  box-shadow: 0 30px 60px -30px rgba(200, 140, 40, 0.5);
}
.card:hover::after { transform: translateX(120%); }

.card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(224, 169, 69, 0.22), transparent 62%),
    linear-gradient(180deg, #1d1d21, #0e0e10);
}
.card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: 1;
  background: linear-gradient(transparent, var(--surface));
}

/* خلفية مموّهة من نفس الصورة */
.card__backdrop {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  filter: blur(26px) saturate(1.3);
  opacity: 0.4;
}

/* الصورة دائرة بإطار ذهبي */
.card__avatar {
  position: relative;
  z-index: 2;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold-2), var(--gold-deep), var(--gold-2), var(--gold-deep), var(--gold-2));
  box-shadow: 0 0 0 6px rgba(224, 169, 69, 0.1), 0 22px 44px -14px rgba(0, 0, 0, 0.85);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease);
}
.card__avatar img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  background: #121214;
}
.card__avatar .card__logo { padding: 20%; object-fit: contain; }
.card__avatar .card__photo { background: transparent; }
.card:hover .card__avatar {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px rgba(224, 169, 69, 0.16), 0 0 40px rgba(224, 169, 69, 0.35), 0 22px 44px -14px rgba(0, 0, 0, 0.85);
}
.card__tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.75);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--sand);
}
.card__num {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  z-index: 2;
  font-family: var(--f-latin);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 4px;
  margin-top: -8px;
  padding: 0 18px 20px;
  text-align: center;
}
.card__name {
  direction: ltr;
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text);
}
.card__handle { direction: ltr; font-size: 0.88rem; color: var(--gold-2); }
.card__streams { font-size: 0.92rem; color: var(--muted); }
.card__streams b { color: var(--dim); font-weight: 600; }
.card__bio {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sand);
}
.card__bio::before,
.card__bio::after { content: "\""; color: var(--gold); }
.card__foot { align-self: stretch; margin-top: auto; padding-top: 14px; }

/* ---------- دونز ستوديو ---------- */

.studio {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(40px, 6vw, 70px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(224, 169, 69, 0.35);
  border-radius: 12px;
  overflow: hidden;
  background: #0f0d0a;
  transition: border-color 0.3s var(--ease);
}
.studio:hover { border-color: rgba(224, 169, 69, 0.7); }
.studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/brand/dn-dark.webp") center 45% / cover no-repeat;
  opacity: 0.5;
}
.studio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.5), rgba(12, 10, 8, 0.95) 65%);
}
html[dir="ltr"] .studio::after { background: linear-gradient(270deg, rgba(12, 10, 8, 0.5), rgba(12, 10, 8, 0.95) 65%); }
.studio[hidden] { display: none; }
.studio__copy { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.studio__kicker {
  font-family: var(--f-latin);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  direction: ltr;
}
html[dir="rtl"] .studio__kicker { text-align: right; }
.studio__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.25;
}
html[lang="en"] .studio__title { font-family: var(--f-latin); font-weight: 400; text-transform: uppercase; }
.studio__text { font-size: 1.05rem; color: var(--muted); }

/* أدوات قسم دونز ستوديو */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sand);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.back-link svg { width: 16px; height: 16px; }
html[dir="ltr"] .back-link svg { transform: scaleX(-1); }
.back-link:hover { border-color: var(--gold); color: var(--gold-2); }
.card__role { font-weight: 700; font-size: 1rem; color: var(--gold-2); }
.card__user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 13px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.12);
  direction: ltr;
  font-weight: 700;
  font-size: 0.88rem;
  color: #d4d7fc;
}
.card__user svg { width: 15px; height: 15px; }

/* مساحة الستوديو تتمدد من تحت البانر بدل فتح صفحة جديدة. */
.studio,
.studio-page { scroll-margin-top: calc(var(--nav-h) + 24px); }
.studio-page { display: grid; grid-template-rows: 1fr; }
.studio-page__inner { min-height: 0; overflow: hidden; }
.studio-page__content { padding-block: clamp(32px, 5vw, 56px) 20px; }
.studio-page .head { margin-bottom: 32px; }
html .studio-page .title { font-size: clamp(2rem, 4vw, 3.2rem); }
.studio-page .back-link { margin-bottom: 24px; }
.studio-page .back-link svg { transform: rotate(180deg); }
.js .studio-page {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.65s var(--ease), opacity 0.35s var(--ease), visibility 0.65s;
}
.js .studio-page.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
html .studio .studio__toggle svg { animation: none; transform: rotate(0); transition: transform 0.35s var(--ease); }
html .studio .studio__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.js .studio-page .card--studio {
  opacity: 0;
  transform: translateY(-24px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease-out), box-shadow 0.3s var(--ease);
}
.js .studio-page.is-open .card--studio {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .studio-page.is-open .card--studio:hover { transform: translateY(-6px); transition-delay: 0s; }

/* وجها البطاقة يشتركان في المقاس حتى لا يقفز المحتوى عند التقليب. */
.card--studio {
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  perspective: 1200px;
}
.card--studio::after { display: none; }
.studio-card__inner { display: flex; flex-direction: column; height: 100%; }
.studio-card__face {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.card--studio:hover .studio-card__face,
.card--studio:focus-within .studio-card__face { border-color: var(--gold); }
.studio-card__front .card__body { padding-bottom: 20px; }
.studio-card__back {
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 20px 22px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 169, 69, 0.13), transparent 70%), var(--surface);
}
.studio-card__back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  background: url("../assets/brand/dn-mark-md.png") center / 80% auto no-repeat;
}
.studio-card__eyebrow { color: var(--gold-2); font-size: 0.78rem; font-weight: 700; }
.studio-card__bio { max-width: 32ch; font-size: 0.95rem; line-height: 1.8; color: var(--sand); overflow-wrap: anywhere; }
.studio-card__role { margin: 0; }
.studio-card__role dt { font-size: 0.72rem; color: var(--muted); }
.studio-card__role dd { color: var(--gold-2); font-weight: 700; font-size: 0.92rem; }
.studio-card__back .card__user { margin-top: 0; max-width: 100%; overflow-wrap: anywhere; }
.studio-card__hint {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.studio-card__hint svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold); }
.studio-card__toggle { display: none; }
.js .studio-card__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .studio-card__face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.js .studio-card__front { transform: rotateY(0); }
.js .studio-card__back { transform: rotateY(180deg); }
.js .is-flipped .studio-card__inner { transform: rotateY(180deg); }
.js .studio-card__toggle {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  touch-action: manipulation;
}
.no-js .studio-card__hint,
.no-js #studioBack { display: none; }

@media (max-width: 600px) {
  #studioCards { --cols: 1 !important; max-width: 420px; }
  .studio-card__front .card__media { aspect-ratio: 7 / 4; }
  .studio-card__front .card__avatar { width: 42%; }
  .studio-card__back { padding: 26px 24px; }
}

/* ---------- أيقونات الحسابات ---------- */

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sand);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.3s var(--ease-out);
}
.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { color: var(--ink); border-color: var(--gold); background: var(--gold); transform: translateY(-2px); }
.icon-link--lg { width: 46px; height: 46px; border-radius: 12px; }
.icon-link--lg svg { width: 21px; height: 21px; }
.card__socials { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }

/* ---------- المجتمع ---------- */

.community__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.community__grid.has-socials { grid-template-columns: 1.4fr 1fr; align-items: stretch; }

.discord {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  min-height: 240px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(224, 169, 69, 0.35);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 85% 50%, rgba(224, 169, 69, 0.16), transparent 70%),
    linear-gradient(135deg, #17140f, #0e0d0c);
}
html[dir="rtl"] .discord { background:
    radial-gradient(ellipse 60% 90% at 15% 50%, rgba(224, 169, 69, 0.16), transparent 70%),
    linear-gradient(225deg, #17140f, #0e0d0c); }
.discord__mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  inset-inline-end: -2%;
  width: clamp(180px, 22vw, 300px);
  color: rgba(224, 169, 69, 0.1);
  transform: translateY(-50%) rotate(-12deg);
  pointer-events: none;
}
.discord__mark svg { width: 100%; height: auto; }
.discord__copy { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.discord__kicker {
  direction: ltr;
  font-family: var(--f-latin);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--gold-2);
}
html[dir="rtl"] .discord__kicker { text-align: right; }
.discord h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.25;
}
html[lang="en"] .discord h3 { font-family: var(--f-latin); font-weight: 400; text-transform: uppercase; }
.discord p { font-size: 1.05rem; color: var(--muted); }
.discord__btn.is-off {
  border: 1px dashed var(--line-2);
  clip-path: none;
  border-radius: 10px;
  color: var(--muted);
  cursor: default;
}

.socials { display: grid; gap: 12px; align-content: start; }
.socials[hidden] { display: none; }
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease-out), background 0.25s var(--ease);
}
.social:hover { border-color: rgba(224, 169, 69, 0.6); background: var(--surface-2); transform: translateY(-2px); }
.social__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(224, 169, 69, 0.12);
  color: var(--gold-2);
}
.social__icon svg { width: 22px; height: 22px; }
.social__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.social__text strong { font-weight: 700; font-size: 1.02rem; }
.social__text small { direction: ltr; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.88rem; color: var(--muted); }
html[dir="rtl"] .social__text small { text-align: right; }
.social__arrow { color: var(--dim); transition: color 0.25s, transform 0.3s var(--ease-out); }
.social__arrow svg { width: 18px; height: 18px; }
html[dir="rtl"] .social__arrow svg { transform: scaleX(-1); }
.social:hover .social__arrow { color: var(--gold); transform: translateX(3px); }
html[dir="rtl"] .social:hover .social__arrow { transform: translateX(-3px); }

/* ---------- الطموحات ---------- */

.goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease);
}
.goal:hover { transform: translateY(-4px); border-color: var(--line-2); }
.goal__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.goal__num {
  direction: ltr;
  font-family: var(--f-latin);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.goal__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--dim);
  white-space: nowrap;
}
.goal__status svg { width: 14px; height: 14px; }
.goal h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.45; color: var(--text); }
html[lang="en"] .goal h3 { font-size: 1.2rem; }
.goal p { font-size: 0.96rem; color: var(--muted); }

.goal.is-done {
  border-color: rgba(224, 169, 69, 0.35);
  background: linear-gradient(180deg, rgba(224, 169, 69, 0.09), var(--surface) 65%), var(--surface);
}
.goal.is-done .goal__num { color: var(--gold); }
.goal.is-done .goal__status { border-color: transparent; background: rgba(224, 169, 69, 0.15); color: var(--gold-2); }

/* الهدف الحالي: إطار ذهبي يلف */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.goal.is-current {
  border: 2px solid transparent;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(224, 169, 69, 0.14), transparent 70%) padding-box,
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    conic-gradient(from var(--spin), var(--gold-2), rgba(224, 169, 69, 0.25) 30%, rgba(224, 169, 69, 0.25) 70%, var(--gold-2)) border-box;
  box-shadow: 0 24px 60px -30px rgba(224, 169, 69, 0.55);
  animation: spin-border 4s linear infinite;
}
.goal.is-current .goal__num { color: var(--text); }
.goal.is-current .goal__status { border-color: transparent; background: var(--gold); color: var(--ink); }
.goal.is-current .goal__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: blink-soft 1.2s var(--ease) infinite;
}

/* هدف مخفي: مطموس بالكامل، ما ينكتب فيه شي لين يجي دوره */
.goal.is-secret {
  border-style: dashed;
  border-color: rgba(224, 169, 69, 0.22);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 10px, transparent 10px 20px),
    #0d0c0b;
}
.goal.is-secret:hover { border-color: rgba(224, 169, 69, 0.45); }
.goal.is-secret .goal__num { color: rgba(224, 169, 69, 0.4); filter: blur(5px); }
.goal.is-secret .goal__status {
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-style: dashed;
  border-color: rgba(224, 169, 69, 0.35);
  color: var(--gold);
}
/* خطوط ذهبية مطموسة مكان العنوان والوصف */
.goal__blur { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.goal__blur i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(224, 169, 69, 0.12), rgba(224, 169, 69, 0.5), rgba(224, 169, 69, 0.12));
  background-size: 200% 100%;
  filter: blur(3px);
  animation: secret-shimmer 3.2s linear infinite;
}
.goal__blur i:nth-child(1) { width: 70%; height: 20px; margin-bottom: 6px; filter: blur(5px); }
.goal__blur i:nth-child(2) { width: 92%; animation-delay: -1s; }
.goal__blur i:nth-child(3) { width: 56%; animation-delay: -2s; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.goal.is-summit {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 24px 60px -30px rgba(224, 169, 69, 0.6);
}
.goal.is-summit h3 { color: var(--ink); font-size: 1.5rem; }
.goal.is-summit p { color: rgba(26, 18, 6, 0.8); }
.goal.is-summit .goal__num { color: rgba(26, 18, 6, 0.3); }
.goal.is-summit .goal__status { border-color: rgba(26, 18, 6, 0.25); background: transparent; color: var(--ink); }
.goal__mark {
  position: absolute;
  z-index: -1;
  bottom: 12px;
  inset-inline-end: 14px;
  width: 42%;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- المقاطع ---------- */

/* بطاقات كبيرة: عمودين، وتصير ثلاثة لما تزيد المقاطع عن أربعة */
.clips__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.clips__grid:has(> .clip:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.clip {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}
.clip:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 169, 69, 0.55);
  box-shadow: 0 30px 70px -35px rgba(200, 140, 40, 0.55);
}
.clip:focus-within { border-color: var(--gold); }

.clip__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.clip__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  direction: ltr;
}

/* قبل التشغيل: صورة من المقطع، تظليل، وزر تشغيل ذهبي كبير */
.clip.is-enhanced:not(.is-started) .clip__frame { cursor: pointer; }
.clip.is-enhanced:not(.is-started) .clip__video { object-fit: cover; transition: transform 0.8s var(--ease-out); }
.clip.is-enhanced:not(.is-started) .clip__frame:hover .clip__video { transform: scale(1.04); }

.clip__shade,
.clip__play,
.clip__num { display: none; }
.clip.is-enhanced .clip__shade,
.clip.is-enhanced .clip__play,
.clip.is-enhanced .clip__num { display: grid; }

.clip__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 32%, transparent 58%, rgba(0, 0, 0, 0.75)),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.35));
  transition: opacity 0.35s var(--ease);
}
.clip__play {
  position: absolute;
  inset: 0;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #c98f2e);
  color: var(--ink);
  box-shadow: 0 0 0 10px rgba(224, 169, 69, 0.16), 0 18px 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease);
}
.clip__play svg { width: 28px; height: 28px; margin-left: 4px; }
.clip__play::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(224, 169, 69, 0.55);
  border-radius: 50%;
  animation: ping 2.4s var(--ease-out) infinite;
}
.clip__frame:hover .clip__play,
.clip__frame:focus-visible .clip__play { transform: scale(1.1); }
.clip.is-preview .clip__play { transform: scale(0.82); opacity: 0.9; }
.clip.is-preview .clip__shade { opacity: 0.6; }
.clip__frame:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 0; }

.clip__num {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 3px 10px 1px;
  border-radius: 6px;
  background: rgba(10, 10, 11, 0.72);
  font-family: var(--f-latin);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--gold);
  pointer-events: none;
}

/* بعد ما يشتغل: نشيل الزر والتظليل وتبان أزرار التحكم */
.clip.is-started .clip__shade,
.clip.is-started .clip__play,
.clip.is-started .clip__num { opacity: 0; visibility: hidden; }

.clip__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 16px;
}
.clip__meta::before {
  content: "";
  flex: none;
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: var(--gold);
  transform: skewX(-14deg);
}
.clip__meta h3 {
  direction: ltr;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ---------- الجدول ---------- */

.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.day {
  min-height: 150px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.day.is-today { border-color: var(--gold); background: linear-gradient(180deg, rgba(224, 169, 69, 0.1), var(--surface)), var(--surface); }
.day h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1rem;
}
.day__today { padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 0.7rem; font-weight: 700; }
.slot { padding: 10px 0; border-top: 1px solid var(--line); }
.slot time { display: block; direction: ltr; font-family: var(--f-latin); font-size: 1.1rem; color: var(--gold-2); }
html[dir="rtl"] .slot time { text-align: right; }
.slot strong { display: block; font-size: 0.95rem; }
.slot span { font-size: 0.85rem; color: var(--muted); }
.day__off { color: var(--dim); }

/* ---------- آخر الصفحة ---------- */

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(90px, 12vw, 150px);
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(224, 169, 69, 0.16), transparent 72%);
}
.footer__cta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer__mark { width: clamp(130px, 14vw, 180px); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.footer__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.1;
}
html[lang="en"] .footer__title {
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 1;
  text-transform: uppercase;
}
.footer__sub { max-width: 540px; font-size: 1.1rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__links:empty { display: none; }
.contact { display: grid; justify-items: center; gap: 12px; margin-top: 14px; }
.contact h3 { font-family: var(--f-display); font-size: 1.1rem; }
.contact a { direction: ltr; overflow-wrap: anywhere; }
.card__content { color: var(--sand); font-size: 0.95rem; }
.card__content span { color: var(--muted); }
.footer__soon { color: var(--dim); }

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.03) 0 0), var(--bg);
  font-weight: 700;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.3s var(--ease-out);
}
html[dir="rtl"] .link-chip { padding: 8px 8px 8px 16px; }
.link-chip:hover { transform: translateY(-2px); border-color: var(--kick); background: linear-gradient(rgba(83, 252, 24, 0.06) 0 0), var(--bg); }
.footer .icon-link { background: linear-gradient(rgba(255, 255, 255, 0.03) 0 0), var(--bg); }
.footer .icon-link:hover { background: var(--gold); }
.link-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.link-chip span { direction: ltr; }

.footer__word {
  margin-top: clamp(40px, 6vw, 70px);
  direction: ltr;
  font-family: var(--f-latin);
  font-size: clamp(6rem, 25vw, 26rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(224, 169, 69, 0.3);
  background: linear-gradient(180deg, rgba(224, 169, 69, 0.26), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  /* الكلمة الكبيرة تطلع فوق الأيقونات اللي فوقها، فما تاخذ الضغطات */
  pointer-events: none;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 22px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--gold-2); }

/* ---------- شريط الخطأ (لو فيه غلطة في data.js) ---------- */

.data-error {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 400;
  padding: 14px var(--gutter);
  background: #a3121b;
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.noscript { padding: 40px var(--gutter); text-align: center; }

/* ---------- الحركات ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}
@keyframes drip { to { top: 100%; } }
@keyframes tape { to { transform: translateX(-50%); } }
@keyframes blink-soft { 50% { opacity: 0.25; } }
@keyframes shine { 0% { transform: translateX(-130%); } 45%, 100% { transform: translateX(130%); } }
@keyframes nudge { 50% { transform: translateX(5px); } }
@keyframes nudge-rtl { 50% { transform: scaleX(-1) translateX(5px); } }
@keyframes spin-border { to { --spin: 360deg; } }
@keyframes secret-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- الشاشات الأصغر ---------- */

@media (max-width: 1100px) {
  .clips__grid,
  .clips__grid:has(> .clip:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .clips__grid,
  .clips__grid:has(> .clip:nth-child(5)) { grid-template-columns: 1fr; gap: 16px; }
  .clip__play { width: 64px; height: 64px; }
  .clip__play svg { width: 24px; height: 24px; }
  .clip__meta h3 { font-size: 1.35rem; }
}

@media (max-width: 1000px) {
  .cards { --cols: 2 !important; }
}

@media (max-width: 960px) {
  .community__grid.has-socials { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  /* هنا الواجهة على قد محتواها: البنر بعرض الشاشة، والكلام يبدأ تحت كلمة DUNES على طول.
     ولو الشريط العلوي بيغطي راس الكلمة تنزل الصورة شوي، وحافتها العليا تختفي تحت الشريط */
  .hero__banner {
    --banner-h: 53vw;
    --banner-top: max(0px, var(--nav-h) - 53vw * 0.32);
    flex: none;
    min-height: 0;
    max-height: none;
    height: calc(var(--banner-top) + 53vw * 0.61 + 8px);
  }
  .about__grid { grid-template-columns: 1fr; }
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .day { min-height: 0; }
}

@media (max-width: 600px) {
  :root { --nav-h: 84px; }
  .hero { min-height: 0; padding-bottom: 110px; }
  .hero__inner { gap: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .hero__scroll { display: none; }
  .tapes { margin-top: -40px; }
  .backdrop { --cell: 48px; }
  .goals { grid-template-columns: 1fr; gap: 12px; }
  .goal { min-height: 0; padding: 18px 18px 20px; }
  .goal__num { font-size: 2.1rem; }
  .goal__mark { width: 30%; }
  .clips__grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px 18px; }
  .cards { gap: 12px; }
  .card__body { padding: 0 10px 14px; }
  .card__name { font-size: 1.45rem; }
  .card__role { font-size: 0.9rem; }
  .card__tag { display: none; }
  .kick-btn { gap: 6px; padding: 6px 8px; font-size: 0.82rem; white-space: nowrap; }
  .kick-mark { font-size: 0.68rem; padding: 1px 5px 0; }
  .studio .btn { width: 100%; padding: 0 18px; font-size: 0.95rem; white-space: normal; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (min-width: 900px) { :root { --tapes-h: 150px; } }

/* ---------- التصفح بدون JavaScript ---------- */
.no-js .menu-btn { display: none; }
@media (max-width: 860px) {
  .no-js .nav { position: relative; top: 0; inset-inline: auto; height: auto; flex-wrap: wrap; margin-top: 12px; padding-block: 12px; }
  .no-js .nav__links {
    position: static; order: 3; width: 100%; z-index: auto;
    opacity: 1; visibility: visible; flex-direction: row; flex-wrap: wrap;
    max-height: none; overflow: visible; transform: none; box-shadow: none;
  }
  .no-js .nav__links a { font-family: var(--f-body); font-size: 1rem; padding: 6px 10px; }
}

/* ---------- لمن يفضّل حركة أقل ---------- */

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

