/* قسم التمرير السينمائي (scrub.js): الفيديو يتحرك مع التمرير والمحطات تطلع بتمويه ناعم */
.scrub { position: relative; height: 560vh; padding-block: 0; background: var(--ink); }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrub-stage canvas, .scrub-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.scrub-stage canvas { opacity: 0; transition: opacity .8s ease; }
.scrub-ready .scrub-stage canvas { opacity: 1; }
.scrub-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 62%, transparent) 30%, transparent 56%); }
.scrub-steps { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scrub-step { position: absolute; inset-inline-start: max(24px, 6vw); top: 50%; width: min(470px, 86vw); transform: translateY(-50%); opacity: 0; filter: blur(10px); translate: 0 22px; transition: opacity .75s ease, filter .75s ease, translate .9s cubic-bezier(.22,1,.36,1); }
.scrub-step.on { opacity: 1; filter: none; translate: none; pointer-events: auto; }
.scrub-step .kicker { display: inline-block; color: var(--gold); font-size: 14px; letter-spacing: .02em; }
.scrub-step h2, .scrub-step h1 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.2; margin: 8px 0 0; text-wrap: balance; }
.scrub-step h1 em, .scrub-step h2 em { font-style: normal; background: linear-gradient(120deg, #C9A158, #9C7433 55%, #7A5A22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scrub-step p { color: var(--mute-d); font-size: 18px; margin: 14px 0 0; max-width: 40ch; }
.scrub-step .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.scrub-rail { position: absolute; z-index: 3; inset-inline: max(24px, 6vw); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); height: 2px; background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 2px; overflow: hidden; }
.scrub-rail i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: var(--gold); }
.scrub-hint { position: absolute; z-index: 3; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(50%); color: var(--mute-d); font-size: 13px; letter-spacing: .08em; opacity: calc(1 - var(--p, 0) * 12); animation: scrub-bob 2.2s ease-in-out infinite; }
@keyframes scrub-bob { 50% { translate: 0 6px; } }
@media (max-width: 760px) {
  .scrub { height: 480vh; }
  .scrub-stage::after { background: linear-gradient(to top, color-mix(in srgb, var(--ink) 96%, transparent) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 38%, transparent 64%); }
  .scrub-step { top: auto; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); transform: none; inset-inline: 18px; width: auto; }
  .scrub-step p { font-size: 16px; }
}
/* تقليل الحركة أو تعذّر التحميل: صورة ثابتة والمحطات تحتها كقائمة */
.scrub-static { height: auto; }
.scrub-static .scrub-stage { position: relative; height: auto; overflow: visible; }
.scrub-static .scrub-stage canvas { display: none; }
.scrub-static .scrub-poster { position: relative; height: 62vh; }
.scrub-static .scrub-stage::after, .scrub-static .scrub-rail, .scrub-static .scrub-hint { display: none; }
.scrub-static .scrub-steps { position: static; display: grid; gap: 26px; padding: 28px max(18px, 6vw) 40px; }
.scrub-static .scrub-step { position: static; opacity: 1; filter: none; translate: none; transform: none; width: auto; }
/* شريط الواتساب العائم: نرفع النص والمؤشر فوقه عشان ما يغطي الأزرار */
body.dock-on .scrub-rail { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) { body.dock-on .scrub-step { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); } }
