/* ==========================================================================
   نافذة — Nafitha Production
   Cinematic design system. Dark + brand orange (#FF4500). RTL Arabic.
   Type: Waha (خط الهوية). Signature: viewfinder framing + brush-stroke accent.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Color — warm cinema palette */
  --ink:       #0a0a0c;   /* base, warm near-black */
  --ink-2:     #101014;   /* elevated surface */
  --ink-3:     #17171c;   /* card / raised */
  --line:      #26262c;   /* hairline borders */
  --brass:     #ff4500;   /* brand orange (primary accent) */
  --brass-hi:  #ff9852;   /* highlight orange (brand tint) */
  --brass-dim: #b23d1a;   /* muted / deep orange */
  --ivory:     #ece8dc;   /* primary text, warm off-white */
  --smoke:     #948e82;   /* secondary text, warm gray */
  --smoke-dim: #635f57;   /* tertiary / captions */

  /* Type */
  --font-display: 'Waha', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Waha', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-mega:  clamp(3.2rem, 11vw, 9rem);
  --fs-h1:    clamp(2.4rem, 6vw, 5rem);
  --fs-h2:    clamp(1.9rem, 4.2vw, 3.4rem);
  --fs-h3:    clamp(1.3rem, 2.4vw, 1.9rem);
  --fs-lead:  clamp(1.1rem, 1.7vw, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.95rem;

  /* Space scale (8pt) */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;   --s-7: 6rem;    --s-8: 8rem;   --s-9: 11rem;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --radius: 3px;             /* restrained, not bubbly */
  --tick: 22px;             /* viewfinder corner length */

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur: .7s;

  --shadow: 0 30px 80px -30px rgba(0,0,0,.85);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brass); color: var(--ink); }

/* Film-grain atmosphere over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.18; letter-spacing: normal; }
/* ملاحظة: أُزيل تفعيل "ss02" — كان يرفع نقاط الياء فوق الحرف في العناوين */
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--smoke); line-height: 1.85; font-weight: 400; }

/* Latin labels / numerals get wide tracking */
.tracked { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .32em; font-size: var(--fs-eyebrow); font-weight: 500; }

/* ---- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 11vw, 9.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 6rem); }

/* ---- Signature: eyebrow + brush underline -------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  color: var(--brass); font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .08em;
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 38px; height: 2.5px;
  background: linear-gradient(90deg, var(--brass), transparent);
}
/* hand-painted brush accent under section titles */
.brush {
  display: block; width: 128px; height: 15px; margin-top: 1rem;
  color: var(--brass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20'%3E%3Cpath d='M2 12c40-7 70-6 108-8 30-1 66 2 108 5-34 4-70 3-104 4-40 1-78 3-112 6 30-5 66-7 104-8-36-1-72 0-104 1z' fill='black'/%3E%3C/svg%3E") no-repeat center/contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20'%3E%3Cpath d='M2 12c40-7 70-6 108-8 30-1 66 2 108 5-34 4-70 3-104 4-40 1-78 3-112 6 30-5 66-7 104-8-36-1-72 0-104 1z' fill='black'/%3E%3C/svg%3E") no-repeat center/contain;
  background: currentColor;
}
.brush--center { margin-inline: auto; }

/* ---- Signature: viewfinder frame ----------------------------------------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.frame::before, .frame::after {
  content: ""; position: absolute; width: var(--tick); height: var(--tick);
  z-index: 3; pointer-events: none; border: 2px solid var(--brass); opacity: .9;
}
/* top-right + bottom-left ticks (RTL-friendly diagonal pair) */
.frame::before { top: 14px; inset-inline-end: 14px; border-inline-start: 0; border-block-end: 0; }
.frame::after  { bottom: 14px; inset-inline-start: 14px; border-inline-end: 0; border-block-start: 0; }
/* soft cinematic vignette on framed media */
.frame__media { position: relative; }
.frame__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; font-weight: 400; font-size: .98rem;
  border-radius: var(--radius); transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-hi); transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(255,69,0,.55); }
.btn--ghost { border: 1px solid var(--line); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-hi); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10,10,12,.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: 82px; }
.nav__brand { display: flex; align-items: center; gap: .8rem; }
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.nav__links a { position: relative; font-weight: 500; color: var(--ivory); font-size: 1rem; padding-block: .3rem; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0;
  width: 100%; height: 1.5px; background: var(--brass);
  transform: scaleX(0); transform-origin: inline-end; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--brass-hi); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: inline-start; }
.nav__links a[aria-current="page"] { color: var(--brass); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ivory); transition: transform .35s var(--ease), opacity .3s; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 62%, rgba(0,0,0,.5) 0%, transparent 55%),
    radial-gradient(130% 95% at 50% 25%, transparent 38%, rgba(0,0,0,.5) 100%),
    linear-gradient(180deg, rgba(10,10,12,.6) 0%, rgba(10,10,12,.32) 34%, rgba(10,10,12,.5) 60%, rgba(10,10,12,.95) 100%);
}
/* letterbox bars — cinematic frame */
.hero__bar { position: absolute; inset-inline: 0; z-index: 2; height: clamp(26px, 5vh, 60px); background: var(--ink); pointer-events: none; }
.hero__bar--top { inset-block-start: 0; }
.hero__bar--bottom { inset-block-end: 0; }
.hero__inner { position: relative; z-index: 4; padding-block: 8rem 6rem; text-align: center; }
.hero__logo { width: min(430px, 74vw); margin: 0 auto var(--s-4); filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.hero__title { font-size: var(--fs-h1); font-weight: 500; color: var(--ivory); }
.hero__title .accent { color: var(--brass); }
.hero__lead { max-width: 40ch; margin: var(--s-3) auto 0; color: var(--smoke); font-size: var(--fs-lead); }
.hero__actions { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; margin-top: var(--s-4); }
.hero__cue {
  position: absolute; inset-block-end: clamp(1.5rem, 4vh, 2.5rem); inset-inline-start: 50%; transform: translateX(50%);
  z-index: 4; color: var(--smoke); display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero__cue span { width: 1px; height: 46px; background: linear-gradient(var(--brass), transparent); animation: cue 2.4s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- Showreel (second video, full screen, autoplay, feathered edges) ----- */
.showreel { position: relative; background: var(--ink); }
.showreel__frame { position: relative; width: 100%; height: 100svh; min-height: 460px; overflow: hidden; background: var(--ink); }
.showreel__frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* feather all four edges so the video melts into the black background */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.showreel__caption { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: clamp(2rem, 7vh, 5rem); text-align: center; padding-inline: var(--gutter); }
.showreel__caption .eyebrow { justify-content: center; }
.showreel__caption h2 { font-size: var(--fs-h1); color: var(--ivory); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.showreel__caption .lead { margin-top: var(--s-2); max-width: 40ch; margin-inline: auto; }
.showreel__sound {
  position: absolute; z-index: 4; inset-block-end: clamp(1.5rem, 4vh, 2.5rem); inset-inline-end: clamp(1.25rem, 4vw, 3rem);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10,10,12,.5); backdrop-filter: blur(8px); color: var(--ivory);
  display: grid; place-items: center; transition: border-color .3s, color .3s, transform .3s;
}
.showreel__sound:hover { border-color: var(--brass); color: var(--brass); transform: scale(1.06); }
.showreel__sound:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.showreel__sound svg { width: 22px; height: 22px; }
.showreel__sound .icon-unmuted { display: none; }
.showreel__sound.is-on .icon-muted { display: none; }
.showreel__sound.is-on .icon-unmuted { display: block; }

/* ---- Section header ------------------------------------------------------ */
.sec-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--fs-h2); color: var(--ivory); }
.sec-head p { margin-top: var(--s-2); }

/* ---- Mission ------------------------------------------------------------- */
.mission { background: var(--ink); }
.mission__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mission__title { font-size: var(--fs-h1); line-height: 1.15; }
.mission__title .accent { color: var(--brass); display: block; }
.mission__media { aspect-ratio: 4/5; }
.mission__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- قسم «من نحن»: العنوان منفرداً ← مسافة ← عنوان فرعي ← النص --------- */
.mission__head { max-width: 720px; margin-bottom: clamp(2.75rem, 6vw, 4.75rem); }
.mission__head .brush { margin-top: 1.1rem; }
.mission__eyebrow { margin-bottom: var(--s-3); }
.heading-ar { text-wrap: balance; }
.heading-ar .accent { white-space: nowrap; }

/* خاتمة «من نحن»: بيان سينمائي — خط الهوية على أسود الموقع، بدخول من اليمين لليسار */
.vision-note {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(56% 90% at 50% 50%, rgba(255,69,0,.10), transparent 70%),
    var(--ink);
}
.vision-note .container { position: relative; z-index: 1; }
.vision-note__eyebrow { justify-content: center; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.vision-note__text {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h1); line-height: 1.3; color: var(--ivory);
  text-wrap: balance;
}
.vision-note__text .accent { color: var(--brass); }
.vision-note__sub {
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--smoke); font-size: var(--fs-lead);
}
/* زوايا الكاميرا — توقيع الهوية */
.vision-note__tick {
  position: absolute; width: var(--tick); height: var(--tick); z-index: 2;
  border: 0 solid var(--brass); opacity: .9; pointer-events: none;
}
.vision-note__tick--tr { top: clamp(1.2rem, 3vw, 2.2rem); inset-inline-start: clamp(1.2rem, 3vw, 2.2rem); border-top-width: 2px; border-inline-start-width: 2px; }
.vision-note__tick--bl { bottom: clamp(1.2rem, 3vw, 2.2rem); inset-inline-end: clamp(1.2rem, 3vw, 2.2rem); border-bottom-width: 2px; border-inline-end-width: 2px; }
/* دخول العنوان: مسح من اليمين إلى اليسار (اتجاه القراءة) عند دخول الشاشة */
.vision-note__text.reveal { opacity: 1; transform: none; } /* الحركة هنا للمسح فقط، بلا انزلاق */
.vision-note__wipe {
  display: inline-block; padding-inline: .08em; /* متنفس لئلا يقص المسحُ أطرافَ الحروف */
  clip-path: inset(-10% -2% -10% 100%); /* مخفي: تبقى شريحة عند الحافة اليمنى */
  transition: clip-path 1.1s var(--ease) .15s;
}
.vision-note__text.in .vision-note__wipe { clip-path: inset(-10% -2% -10% -2%); }

/* ---- Services (editorial list, not a card grid) -------------------------- */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line); position: relative;
  transition: padding-inline .5s var(--ease);
}
.svc__index { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--brass-dim); font-weight: 500; transition: color .4s; }
.svc__body { max-width: 60ch; }
.svc__icon { display: block; width: clamp(44px, 6vw, 58px); height: auto; margin-bottom: .9rem; transition: transform .4s var(--ease); }
/* أيقونة الموجة الصوتية عريضة وقصيرة — تُعرض أعرض لتعادل بقية الأيقونات بصرياً */
.svc__icon[src*="svc-audio"] { width: clamp(74px, 10vw, 100px); }
.svc:hover .svc__icon { transform: translateY(-3px) scale(1.05); }
.svc__title { display: block; font-size: var(--fs-h3); color: var(--ivory); transition: color .4s; }
.svc__desc { display: block; color: var(--smoke); margin-top: .6rem; font-size: 1.02rem; }
.svc__media {
  width: clamp(120px, 22vw, 260px); aspect-ratio: 16/10;
  opacity: 0; transform: translateX(-18px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc:hover { padding-inline-start: clamp(.5rem, 2vw, 1.5rem); }
.svc:hover .svc__index { color: var(--brass); }
.svc:hover .svc__title { color: var(--brass-hi); }
.svc:hover .svc__media { opacity: 1; transform: translateX(0) scale(1); }
.svc__arrow { color: var(--smoke-dim); transition: transform .4s var(--ease), color .4s; }
.svc:hover .svc__arrow { color: var(--brass); transform: translateX(-8px); }

/* ---- Stats --------------------------------------------------------------- */
.stats { background: var(--ink-2); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; color: var(--brass); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; direction: ltr; }
.stat__num .suffix { color: var(--brass-hi); margin-inline-start: .04em; }
.stat__label { margin-top: var(--s-2); color: var(--smoke); font-size: var(--fs-small); letter-spacing: .04em; }
.stat + .stat { position: relative; }

/* ---- Works teaser -------------------------------------------------------- */
.works { background: var(--ink); }
.works__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.8rem, 1.4vw, 1.2rem); }
.work { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); grid-column: span 2; }
.work--wide { grid-column: span 4; }
.work--tall { grid-row: span 2; }
.work__media { aspect-ratio: 4/3; height: 100%; }
.work--tall .work__media { aspect-ratio: 3/4; }
.work--wide .work__media { aspect-ratio: 16/9; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work__overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(0deg, rgba(6,6,8,.9) 0%, rgba(6,6,8,.15) 55%, transparent 100%);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work__tag { color: var(--brass); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.work__name { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ivory); margin-top: .2rem; }
.work:hover img { transform: scale(1.07); }
.work:hover .work__overlay { opacity: 1; transform: translateY(0); }

/* ---- Contact CTA band ---------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; background: var(--ink-2); }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; opacity: .22; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 120% at 50% 50%, rgba(10,10,12,.55), var(--ink-2)); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: var(--fs-h1); color: var(--ivory); }
.cta-band .accent { color: var(--brass); }
.cta-band p { max-width: 46ch; margin: var(--s-3) auto var(--s-4); }
.cta-band__actions { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.15fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); }
.footer__logo { height: 64px; width: auto; margin-bottom: var(--s-3); }
.footer__about { color: var(--smoke); max-width: 34ch; }
.footer__col h4 { font-family: var(--font-body); color: var(--ivory); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-2); font-weight: 700; }
.footer__col a { display: block; color: var(--smoke); padding-block: .4rem; transition: color .3s, transform .3s; width: fit-content; }
.footer__col a:hover { color: var(--brass-hi); transform: translateX(-4px); }
.footer__social { display: flex; gap: .8rem; margin-top: var(--s-2); }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ivory); transition: border-color .3s, color .3s, transform .3s, background .3s; }
.footer__social a:hover { border-color: var(--brass); color: var(--ink); background: var(--brass); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--smoke-dim); font-size: var(--fs-small); }

/* ---- Page hero (inner pages) --------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(9rem, 16vw, 13rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .28; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,12,.7), var(--ink)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--fs-h1); color: var(--ivory); }
.page-hero p { max-width: 52ch; margin-top: var(--s-2); }

/* ---- Contact form -------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.field { margin-bottom: var(--s-3); }
.field label { display: block; color: var(--ivory); font-weight: 500; font-size: .95rem; margin-bottom: .55rem; }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.1rem; background: var(--ink-2); color: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 1rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--smoke-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--ink-3); box-shadow: 0 0 0 3px rgba(255,69,0,.14); }
.contact__aside { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(1.5rem, 4vw, 3rem); }
.contact__item { margin-bottom: var(--s-4); }
.contact__item .tracked { color: var(--brass); display: block; margin-bottom: .4rem; }
.contact__item a, .contact__item p { font-size: 1.15rem; color: var(--ivory); }
.contact__item a:hover { color: var(--brass-hi); }

/* ---- Service detail rows (services page) --------------------------------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail:nth-child(even) .svc-detail__media { order: -1; }
.svc-detail__index { font-family: var(--font-display); color: var(--brass-dim); font-size: 1.1rem; letter-spacing: .1em; }
.svc-detail__icon { display: block; width: clamp(54px, 7vw, 74px); height: auto; margin: .9rem 0 .2rem; }
.svc-detail__icon[src*="svc-audio"] { width: clamp(94px, 12vw, 128px); }
.svc-detail h2 { font-size: var(--fs-h2); color: var(--ivory); margin-top: .4rem; }
.svc-detail__desc { color: var(--smoke); margin-top: var(--s-2); font-size: 1.05rem; }
.svc-detail__list { margin-top: var(--s-3); display: grid; gap: .8rem; }
.svc-detail__list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ivory); }
.svc-detail__list svg { flex: none; width: 20px; height: 20px; color: var(--brass); margin-top: .28rem; }
.svc-detail__media { aspect-ratio: 5/4; }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Works gallery (works page) ------------------------------------------ */
.works-filter { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip { padding: .6rem 1.3rem; border: 1px solid var(--line); border-radius: 100px; color: var(--smoke); font-weight: 500; font-size: .95rem; transition: color .3s, border-color .3s, background .3s; }
.chip:hover { color: var(--ivory); border-color: var(--brass-dim); }
.chip.is-active { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.4vw, 1.2rem); }
.gallery .work { grid-column: auto; }
.gallery .work--feature { grid-column: span 2; }
.gallery .work__media { aspect-ratio: 4/3; }
.gallery .work--feature .work__media { aspect-ratio: 16/9; }
.work.is-hidden { display: none; }
@media (max-width: 720px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: -1; }
  .svc-detail__media { order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .work--feature { grid-column: span 2; }
}

/* ---- Audio player (works page) ------------------------------------------- */
.audio-works { background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); border-top: 1px solid var(--line); }
.player {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: var(--s-4);
}
.player__art { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 30%, transparent 40%, rgba(0,0,0,.55)); }
.player__disc { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; z-index: 2; width: 30px; height: 30px; color: var(--brass-hi); opacity: .9; }
.player.is-playing .player__disc { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__body { min-width: 0; }
.player__cat { color: var(--brass); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.player__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ivory); margin-top: .35rem; }
.player__seek { margin-top: var(--s-3); }
.player__progress { position: relative; height: 6px; background: var(--line); border-radius: 100px; cursor: pointer; direction: ltr; }
.player__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0%; background: linear-gradient(90deg, var(--brass-dim), var(--brass-hi)); border-radius: 100px; }
.player__fill::after { content: ""; position: absolute; inset-inline-end: -5px; inset-block-start: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 4px rgba(255,69,0,.2); }
.player__progress:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; }
.player__time { display: flex; justify-content: space-between; margin-top: .6rem; color: var(--smoke); font-size: .82rem; font-variant-numeric: tabular-nums; direction: ltr; }
.player__controls { display: flex; align-items: center; gap: 1rem; margin-top: var(--s-3); }
.player__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ivory); transition: border-color .3s, color .3s, background .3s, transform .3s; }
.player__btn:hover { border-color: var(--brass); color: var(--brass); transform: scale(1.06); }
.player__btn svg { width: 20px; height: 20px; }
.player__btn--play { width: 62px; height: 62px; background: var(--brass); color: var(--ink); border: 0; }
.player__btn--play:hover { background: var(--brass-hi); color: var(--ink); }
.player__btn--play svg { width: 26px; height: 26px; }
.player__btn--play .icon-pause { display: none; }
.player.is-playing .player__btn--play .icon-play { display: none; }
.player.is-playing .player__btn--play .icon-pause { display: block; }

.playlist { display: grid; gap: .35rem; }
.track { display: grid; grid-template-columns: 2rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .3s, border-color .3s; text-align: start; width: 100%; font: inherit; color: inherit; }
.track:hover { background: rgba(255,255,255,.03); }
.track.is-active { background: var(--ink-3); border-color: var(--line); }
.track__info { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.track__idx { font-family: var(--font-display); color: var(--smoke-dim); }
.track.is-active .track__idx { color: var(--brass); }
.track__title { color: var(--ivory); font-weight: 500; }
.track__cat { color: var(--smoke); font-size: .85rem; margin-top: .1rem; }
.track__end { display: flex; align-items: center; gap: .9rem; }
.track__dur { color: var(--smoke); font-size: .85rem; direction: ltr; font-variant-numeric: tabular-nums; }
.track__eq { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.track.is-playing .track__eq { display: flex; }
.track__eq span { width: 3px; height: 100%; background: var(--brass); border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.track__eq span:nth-child(2) { animation-delay: .25s; }
.track__eq span:nth-child(3) { animation-delay: .5s; }
.track__eq span:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

@media (max-width: 640px) {
  .player { grid-template-columns: 1fr; }
  .player__art { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .player.is-playing .player__disc, .track__eq span { animation: none; }
}

/* ---- Card grid (news + events) ------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.card { display: flex; flex-direction: column; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--brass-dim); }
.card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; background: rgba(10,10,12,.8); backdrop-filter: blur(6px); color: var(--brass-hi); font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: .35rem .7rem; border-radius: 100px; border: 1px solid var(--line); }
.card__body { padding: clamp(1.2rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__meta { display: flex; gap: .6rem; align-items: center; font-size: .82rem; color: var(--smoke-dim); }
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card__meta .cat { color: var(--brass); font-weight: 700; letter-spacing: .05em; }
.card__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); line-height: 1.3; }
.card__excerpt { color: var(--smoke); font-size: .98rem; }
.card__more { margin-top: auto; padding-top: .4rem; color: var(--brass); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.card:hover .card__more { color: var(--brass-hi); }
.card__more svg { width: 1.1em; height: 1.1em; transition: transform .3s; }
.card:hover .card__more svg { transform: translateX(-6px); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* -------- لمعة السكشن (توقيع نافذة) -------- */
.light-sweep{
  position:absolute; inset:0; z-index: 2;
  background:linear-gradient(115deg, transparent 42%, rgba(255,140,90,0.18) 50%, transparent 58%);
  background-size:250% 250%;
  animation:sweep 9s ease-in-out infinite;
  mix-blend-mode:screen;
  pointer-events:none;
}
@keyframes sweep{
  0%{ background-position:120% -20%; }
  50%{ background-position:-20% 120%; }
  100%{ background-position:120% -20%; }
}
@media (prefers-reduced-motion: reduce){ .light-sweep{ animation:none; } }

/* ---- Nav collapse to hamburger (6 items need more room) ------------------ */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__links.is-open {
    display: flex; position: fixed; inset: 82px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(10,10,12,.97); backdrop-filter: blur(16px); padding: var(--s-2) var(--gutter) var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a { padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; width: 100%; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Audio player page (player.html) + hidden studio hub (studio.html)
   ========================================================================== */
.audio-topbar { position: sticky; inset-block-start: 0; z-index: 40; background: rgba(10,10,12,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.audio-topbar__inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 72px; }
.audio-topbar__logo { justify-self: center; }
.audio-topbar__logo img { height: 40px; }
.audio-topbar__btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ivory); border-radius: 50%; transition: color .3s, background .3s; }
.audio-topbar__btn:hover { color: var(--brass); background: rgba(255,255,255,.05); }
.audio-topbar__btn svg { width: 22px; height: 22px; }

/* --- Player stage --- */
.player-stage { max-width: 480px; margin-inline: auto; padding: clamp(1.5rem, 5vw, 2.5rem) var(--gutter) 4rem; text-align: center; }
.player__cover { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,69,0,.35); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(255,69,0,.25); background: var(--ink-2); }
.player__cover img { width: 100%; height: 100%; object-fit: cover; }
.player__cover-art { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 22% 26%, rgba(231,206,154,.40), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(214,150,74,.34), transparent 18%),
    radial-gradient(circle at 70% 74%, rgba(255,69,0,.30), transparent 24%),
    radial-gradient(circle at 26% 78%, rgba(231,206,154,.24), transparent 18%),
    radial-gradient(circle at 88% 60%, rgba(214,150,74,.20), transparent 14%),
    radial-gradient(circle at 50% 48%, #2c2013 0%, #150d08 68%, #0a0705 100%); }
.player__cover-art svg { width: 34%; height: 34%; color: var(--brass-hi); opacity: .95; filter: drop-shadow(0 10px 34px rgba(255,69,0,.55)); transition: transform .12s ease-out; }
.player__viz { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.player__title { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--brass); margin-top: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; }
.player__subtitle { color: var(--smoke); margin-top: .5rem; font-size: 1.05rem; }

.player__progress-wrap { margin-top: clamp(1.8rem, 5vw, 2.6rem); }
.player__progress { position: relative; height: 6px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 100px; cursor: pointer; direction: ltr; }
.player__progress-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0%; background: linear-gradient(90deg, var(--brass-dim), var(--brass)); border-radius: 100px; }
.player__progress-fill::after { content: ""; position: absolute; inset-inline-end: -6px; inset-block-start: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 4px rgba(255,69,0,.2); }
.player__times { display: flex; justify-content: space-between; margin-top: .7rem; color: var(--smoke); font-size: .85rem; direction: ltr; font-variant-numeric: tabular-nums; }

.player__controls { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 6vw, 2.6rem); margin-top: clamp(.4rem, 1.5vw, .8rem); }
.player__ctrl { width: 50px; height: 50px; display: grid; place-items: center; color: var(--ivory); border-radius: 50%; transition: color .3s, transform .3s; }
.player__ctrl:hover { color: var(--brass); transform: scale(1.08); }
.player__ctrl svg { width: 26px; height: 26px; }
.player__play { width: 84px; height: 84px; border-radius: 22px; background: var(--brass); color: var(--ink); display: grid; place-items: center; box-shadow: 0 18px 45px -14px rgba(255,69,0,.6); transition: transform .3s var(--ease), background .3s; }
.player__play:hover { background: var(--brass-hi); transform: scale(1.04); }
.player__play:focus-visible, .player__ctrl:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; }
.player__play svg { width: 34px; height: 34px; }
.player__play .icon-pause { display: none; }
.player__play.is-playing .icon-play { display: none; }
.player__play.is-playing .icon-pause { display: block; }

.player__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(1.8rem, 5vw, 2.4rem); }
.player__action { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ivory); font-weight: 600; transition: border-color .3s, color .3s, background .3s; }
.player__action:hover { border-color: var(--brass); color: var(--brass-hi); }
.player__action svg { width: 18px; height: 18px; }
.player__action.is-fav { color: var(--brass); border-color: var(--brass-dim); }
.player__action.is-fav svg { fill: var(--brass); }

.player__volume { display: flex; align-items: center; gap: .9rem; margin-top: clamp(1.8rem, 5vw, 2.4rem); }
.player__volume svg { width: 20px; height: 20px; color: var(--smoke); flex: none; }
.player__volume input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: var(--ink-3); border: 1px solid var(--line); cursor: pointer; }
.player__volume input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 4px rgba(255,69,0,.25); cursor: pointer; }
.player__volume input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 4px rgba(255,69,0,.25); cursor: pointer; }
.player__empty { text-align: center; padding: 5rem var(--gutter); color: var(--smoke); }

/* --- Toast --- */
.toast { position: fixed; inset-block-end: 24px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: 90%; z-index: 90; background: var(--brass); color: var(--ink); font-weight: 700; padding: .8rem 1.4rem; border-radius: 100px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* --- Studio hub (hidden library) --- */
.studio-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem,5vw,3.5rem); }
.studio-head h1 { font-size: var(--fs-h2); color: var(--ivory); }
.studio-head .lead { margin-top: var(--s-2); }
.studio-hint { margin: 0 auto clamp(2rem,4vw,3rem); max-width: 780px; background: var(--ink-3); border: 1px solid var(--line); border-inline-start: 3px solid var(--brass); border-radius: var(--radius); padding: 1.1rem 1.4rem; color: var(--smoke); font-size: .95rem; }
.studio-hint code { color: var(--brass-hi); background: rgba(255,69,0,.1); padding: .1rem .4rem; border-radius: 4px; font-family: ui-monospace, monospace; }
.studio-add { max-width: 820px; margin: 0 auto clamp(1.2rem,3vw,1.8rem); background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.studio-add__toggle { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; cursor: pointer; color: var(--brass-hi); font-weight: 700; list-style: none; }
.studio-add__toggle::-webkit-details-marker { display: none; }
.studio-add__toggle svg { width: 20px; height: 20px; transition: transform .3s; }
.studio-add[open] .studio-add__toggle svg { transform: rotate(45deg); }
.studio-add__body { padding: 0 1.2rem 1.4rem; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.add-field { display: flex; flex-direction: column; gap: .4rem; }
.add-field span { color: var(--ivory); font-size: .9rem; font-weight: 500; }
.add-field input { padding: .7rem .9rem; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem; }
.add-field input[type=file] { padding: .55rem .9rem; cursor: pointer; }
.add-field input:focus { outline: none; border-color: var(--brass); }
.add-output { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.add-steps { color: var(--smoke); font-size: .92rem; padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
.add-steps strong { color: var(--brass-hi); }
.add-output textarea { width: 100%; margin-top: .7rem; padding: .8rem 1rem; background: var(--ink-2); color: var(--brass-hi); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, monospace; font-size: .82rem; direction: ltr; resize: vertical; }
.add-out-actions { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.add-note { color: var(--smoke-dim); font-size: .85rem; margin-top: .8rem; }
@media (max-width: 560px) { .add-grid { grid-template-columns: 1fr; } }
.studio-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 820px; margin: 0 auto clamp(1.2rem,3vw,1.8rem); padding: .85rem 1.1rem; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); }
.studio-toolbar__count { color: var(--smoke); font-size: .95rem; }
.studio-toolbar__count.has { color: var(--brass-hi); font-weight: 700; }
.studio-toolbar__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.studio-btn--primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.studio-btn--primary:hover:not(:disabled) { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.studio-btn:disabled { opacity: .45; cursor: not-allowed; }
.studio-sel { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--smoke); font-size: .82rem; font-weight: 600; user-select: none; }
.studio-sel input { width: 17px; height: 17px; accent-color: var(--brass); cursor: pointer; }
.studio-item.is-selected { border-color: var(--brass-dim); background: rgba(255,69,0,.06); }
.studio-list { display: grid; gap: 1rem; max-width: 820px; margin-inline: auto; }
.studio-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: border-color .3s; }
.studio-item:hover { border-color: var(--brass-dim); }
.studio-item__cover { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; position: relative; flex: none; }
.studio-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.studio-item__cover .player__cover-art svg { width: 40%; height: 40%; }
.studio-item__info { min-width: 0; }
.studio-item__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ivory); }
.studio-item__sub { color: var(--smoke); font-size: .9rem; margin-top: .15rem; }
.studio-item__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; color: var(--smoke-dim); font-size: .82rem; direction: ltr; }
.studio-item__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.studio-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ivory); font-size: .9rem; font-weight: 600; transition: border-color .3s, color .3s, background .3s; }
.studio-btn:hover { border-color: var(--brass); color: var(--brass-hi); }
.studio-btn svg { width: 16px; height: 16px; }
.studio-btn--play { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; background: var(--brass); color: var(--ink); border: 0; }
.studio-btn--play:hover { background: var(--brass-hi); color: var(--ink); }
.studio-btn--play .icon-pause { display: none; }
.studio-item.is-playing .studio-btn--play .icon-play { display: none; }
.studio-item.is-playing .studio-btn--play .icon-pause { display: block; }
.studio-item.is-playing { border-color: var(--brass-dim); }
@media (max-width: 640px) {
  .studio-item { grid-template-columns: 64px 1fr; }
  .studio-item__cover { width: 64px; height: 64px; }
  .studio-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.brush { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .2s; }
.reveal.in .brush, .in > .brush, .brush.in { clip-path: inset(0 0 0 0); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .mission__grid { grid-template-columns: 1fr; }
  .mission__media { aspect-ratio: 16/10; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .works__grid { grid-template-columns: repeat(4, 1fr); }
  .work--wide { grid-column: span 4; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-2); }
  .svc { grid-template-columns: auto 1fr; }
  .svc__media { display: none; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work, .work--wide, .work--tall { grid-column: span 2; grid-row: auto; }
  .work--tall .work__media, .work--wide .work__media { aspect-ratio: 4/3; }
  .work__overlay { opacity: 1; transform: none; } /* touch: always show */
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .brush { clip-path: none; }
  .vision-note__wipe { clip-path: none; transition: none; }
}

/* ============================================================================
   مشغّل العميل — «داخل استوديو نافذة»
   خلفيات استوديو متناوبة + بطاقة زجاجية بعناصر الهوية
   ============================================================================ */
.client-player { background: var(--ink); }

/* الخلفيات المتناوبة */
.client-player .studio-bg { position: fixed; inset: 0; z-index: -3; }
.client-player .studio-bg__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out; transform: scale(1.04);
}
.client-player .studio-bg__img.is-on { opacity: 1; }
.client-player .studio-shade {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%, rgba(10,10,12,.28) 0%, rgba(10,10,12,.72) 60%, rgba(10,10,12,.94) 100%);
}
.client-player .studio-glow {
  position: fixed; left: 50%; bottom: -22vh; z-index: -1; pointer-events: none;
  width: min(900px, 120vw); height: 55vh; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,69,0,.08), transparent 70%);
}

/* الشريط العلوي فوق الخلفية */
.client-player .audio-topbar { background: rgba(10,10,12,.55); }

/* شارة الاستوديو (ON AIR) */
.onair { text-align: center; margin-top: clamp(1.4rem, 4vw, 2.2rem); }
.onair__pill {
  position: relative;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .65rem 1.6rem;
  color: var(--ivory); font-weight: 600; font-size: .95rem;
}
/* أقواس الزوايا — نفس لمسة زوايا البطاقة في الهوية */
.client-contact__item::before, .client-contact__item::after {
  content: ''; position: absolute; width: 13px; height: 13px; pointer-events: none;
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
.client-contact__item::before {
  top: -1px; inset-inline-end: -1px;
  border-top: 2px solid var(--brass); border-inline-end: 2px solid var(--brass);
  border-start-end-radius: 10px;
}
.client-contact__item::after {
  bottom: -1px; inset-inline-start: -1px;
  border-bottom: 2px solid var(--brass); border-inline-start: 2px solid var(--brass);
  border-end-start-radius: 10px;
}
.onair__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brass);
  box-shadow: 0 0 8px 1px rgba(255,69,0,.55);
  animation: onairPulse 2.2s ease-in-out infinite;
}
@keyframes onairPulse { 50% { opacity: .45; box-shadow: 0 0 3px 0 rgba(255,69,0,.35); } }

/* بطاقة المشغّل الزجاجية */
.client-player .player-stage {
  position: relative; margin-top: clamp(1.2rem, 3.5vw, 2rem); margin-bottom: 2.5rem;
  padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.2rem, 4vw, 2.4rem) clamp(1.8rem, 5vw, 2.6rem);
  background: rgba(12,12,15,.16);
  border: 1px solid rgba(236,232,220,.10); border-radius: 24px;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
/* مربع الغلاف أصغر ليكشف الخلفية */
.client-player .player__cover { max-width: min(240px, 62%); margin-inline: auto; }
/* العنوان الرئيسي أبيض وعلامة الفرشاة تحته بالبرتقالي */
.client-player .player__title { color: var(--ivory); }
/* زر التشغيل أصغر وتوهجه أخف */
.client-player .player__play { width: 66px; height: 66px; border-radius: 18px; box-shadow: 0 14px 34px -12px rgba(255,69,0,.4); }
/* توهج الغلاف أخف */
.client-player .player__cover { box-shadow: 0 26px 60px -28px rgba(0,0,0,.85), 0 0 44px -18px rgba(255,69,0,.16); }
.client-player .player__cover-art svg { filter: drop-shadow(0 8px 26px rgba(255,69,0,.35)); }
.stage-tick { position: absolute; width: 26px; height: 26px; z-index: 1; pointer-events: none; }
.stage-tick--tr { top: 14px; inset-inline-start: 14px; border-top: 2px solid var(--brass); border-inline-start: 2px solid var(--brass); }
.stage-tick--bl { bottom: 14px; inset-inline-end: 14px; border-bottom: 2px solid var(--brass); border-inline-end: 2px solid var(--brass); }

/* الموجة الصوتية تحت العنوان */
.player__wave { display: block; width: min(140px, 36%); margin: .8rem auto 0; opacity: .95; }
.player__brush { display: block; width: min(190px, 52%); margin: .45rem auto 0; opacity: .95; }

/* مثلث التشغيل من الهوية */
.player__play .icon-play { width: 40%; height: auto; transform: translateX(-4%); }

/* التوقيع الشخصي */
.client-sign {
  text-align: center; color: var(--smoke); font-size: .95rem;
  margin: 0 auto 2.2rem; padding-inline: var(--gutter); max-width: 640px;
}
.client-sign b { color: var(--brass-hi); font-weight: 600; }
.client-sign__line { display: inline-block; width: 34px; height: 1px; background: rgba(255,69,0,.55); vertical-align: middle; margin-inline: .9rem; }

/* بيانات التواصل أسفل واجهة العميل */
.client-contact { text-align: center; margin: -0.6rem auto 2.6rem; padding-inline: var(--gutter); max-width: 640px; }
.client-contact__title {
  color: var(--smoke); font-size: .85rem; letter-spacing: .04em;
  margin-bottom: .8rem; opacity: .85;
}
.client-contact__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.client-contact__item {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.25rem; border-radius: 10px;
  border: 1px solid rgba(255,69,0,.12); background: rgba(20,10,6,.45);
  color: var(--brass-hi); font-size: .92rem; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.client-contact__item svg { width: 16px; height: 16px; flex: none; }
.client-contact__item span { color: var(--ivory); }
.client-contact__item:hover {
  border-color: rgba(255,69,0,.4); background: rgba(30,14,8,.65); transform: translateY(-2px);
}
.client-contact__item:hover::before, .client-contact__item:hover::after { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .client-contact__links { flex-direction: column; align-items: stretch; }
  .client-contact__item { justify-content: center; }
}

/* رسالة الرابط غير الصالح فوق الأجواء نفسها */
.client-player .player__empty { position: relative; padding-top: 18vh; }

@media (prefers-reduced-motion: reduce) {
  .client-player .studio-bg__img { transition: none; }
  .onair__dot { animation: none; }
}

/* كلمات العمل — تظهر بعد أزرار التشغيل عندما تتوفر */
.player__lyrics { margin-top: clamp(1.2rem, 3.5vw, 1.8rem); text-align: center; }
.player__lyrics-head {
  color: var(--ivory); font-weight: 700; font-size: .95rem; letter-spacing: .05em;
  margin-bottom: .8rem;
}
/* نافذة الكلمات: سطران ظاهران فقط، والباقي يُقلَّب كعجلة (سحب/تمرير بحرية) */
.player__lyrics-text {
  --lyr-line: 2.3em;                       /* ارتفاع السطر الواحد */
  color: var(--smoke); font-size: 1.02rem;
  height: calc(var(--lyr-line) * 2);       /* مساحة ثابتة: سطران فقط */
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;        /* قصور ذاتي ناعم في iOS */
  padding: 0 1.1rem;
  border: 1px solid rgba(236,232,220,.10); border-radius: 14px;
  background: rgba(12,12,15,.22);
  scrollbar-width: none;                    /* بلا شريط تمرير — إحساس العجلة */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  cursor: grab;
}
.player__lyrics-text:active { cursor: grabbing; }
.player__lyrics-text::-webkit-scrollbar { display: none; }
.player__lyrics-line {
  height: var(--lyr-line); line-height: var(--lyr-line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* سطرا حشو أول/أخير حتى يمكن توسيط أول بيت وآخر بيت داخل النافذة */
.player__lyrics-line--pad { visibility: hidden; }

/* محرر الكلمات في المكتبة */
.lyrics-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.lyrics-modal[hidden] { display: none; }
.lyrics-modal__back { position: absolute; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(4px); }
.lyrics-modal__box {
  position: relative; width: min(560px, 100%); background: #131317;
  border: 1px solid rgba(236,232,220,.14); border-radius: 18px; padding: 1.4rem;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.lyrics-modal__title { color: var(--ivory); font-weight: 700; margin-bottom: .9rem; }
.lyrics-modal__box textarea {
  width: 100%; min-height: 220px; resize: vertical; padding: .9rem 1rem;
  background: rgba(255,255,255,.04); color: var(--ivory);
  border: 1px solid rgba(236,232,220,.14); border-radius: 12px;
  font: inherit; line-height: 1.9;
}
.lyrics-modal__box textarea:focus { outline: none; border-color: rgba(255,69,0,.6); }
.lyrics-modal__actions { display: flex; gap: .7rem; justify-content: flex-start; margin-top: 1rem; flex-wrap: wrap; }

/* زرا تقديم/ترجيع ١٠ ثوانٍ */
.player__ctrl--seek { position: relative; }
.player__ctrl--seek svg { width: 30px; height: 30px; }
.player__ctrl--seek .seek-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .58rem; font-weight: 700; letter-spacing: 0; padding-top: 4px;
  pointer-events: none;
}

/* سهما التقليب — على يمين الكلمات، نبض هادئ يوحي بالتحريك فوق وتحت */
.player__lyrics-box { position: relative; }
.player__lyrics-hint {
  position: absolute; inset-inline-start: .55rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; color: var(--brass-hi); pointer-events: none;
  animation: lyricsHintPulse 2.2s ease-in-out infinite;
}
.player__lyrics-hint svg { width: 15px; height: 15px; animation: lyricsHintArrows 2.2s ease-in-out infinite; }
@keyframes lyricsHintPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes lyricsHintArrows { 0%,100% { transform: translateY(0); } 25% { transform: translateY(-2.5px); } 75% { transform: translateY(2.5px); } }
@media (prefers-reduced-motion: reduce) { .player__lyrics-hint, .player__lyrics-hint svg { animation: none; } }


/* عنوان فرعي داخل عمود الفوتر (مثل «المساهمة» تحت «المساعدة») */
.footer__col-sub { margin-top: 1.2rem; }


/* أيقونات السوشل في شريط الفوتر السفلي (بحجم أصغر — مثل مواقع الستوك) */
.footer__social--bar { margin-top: 0; gap: .55rem; }
.footer__social--bar a { width: 34px; height: 34px; border-color: transparent; color: var(--smoke); }
.footer__social--bar a:hover { color: var(--ink); }
.footer__social--bar svg { width: 16px; height: 16px; }
