/* =========================================================
   Al-Ansi v2 — design + motion layer (loads after site.css)
   Remove the <link> to v2.css to return to the original.
   ========================================================= */
:root{
  --ease-out:cubic-bezier(.16,1,.3,1);      /* expo-out */
  --ease-in-out:cubic-bezier(.65,0,.35,1);
  --steel:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.02) 40%,rgba(255,255,255,0));
  --depth:0 1px 0 rgba(255,255,255,.05) inset,0 24px 48px -28px rgba(0,0,0,.9),0 8px 16px -12px rgba(0,0,0,.6);
}

/* ---------- browser surfaces ---------- */
html{scrollbar-color:#4a2224 #08080a;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#08080a}
::-webkit-scrollbar-thumb{background:linear-gradient(#5a1d20,#2a1213);border-radius:10px;border:2px solid #08080a}
::-webkit-scrollbar-thumb:hover{background:#7a2226}
::selection{background:var(--gold);color:#140c02}
input,textarea{caret-color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:12px}
.btn:focus-visible{outline-offset:4px;border-radius:999px}
.lat,.stat .n,.cv b,.sizecode,.qty input,.citem .q2 span{font-variant-numeric:tabular-nums}
a{text-underline-offset:.25em}

/* ---------- realism: film grain + machined edges ---------- */
body::after{content:"";position:fixed;inset:-50%;z-index:997;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1.2s steps(6) infinite}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}60%{transform:translate(-2%,-1%)}80%{transform:translate(3%,3%)}100%{transform:translate(0,0)}}

.tool,.detail,.oform,.bwall,.stage,.netbox,.ws,.bcard,.stats{box-shadow:var(--depth)}
.tool,.detail,.oform,.bwall,.ccard,.bitem,.pitem{position:relative;isolation:isolate}
.tool::before,.detail::before,.oform::before,.ccard::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,-20%),rgba(244,171,60,.075),transparent 60%);opacity:0;transition:opacity .5s var(--ease-out)}
.tool:hover::before,.detail:hover::before,.oform:hover::before,.ccard:hover::before{opacity:1}

/* ---------- header: no wrapping, smart hide ---------- */
header{transition:background .4s,backdrop-filter .4s,border-color .4s,transform .55s var(--ease-out)}
header.v2-hide{transform:translateY(-105%)}
.links a{white-space:nowrap;position:relative}
.links a::after{content:"";position:absolute;inset-inline:14px;bottom:3px;height:2px;border-radius:2px;background:var(--gold);transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease-out)}
.links a:hover::after,.links a.on::after{transform:scaleX(1)}
.links a:hover,.links a.on{background:transparent}
@media (max-width:1180px){.links,.nav-cta{display:none}.burger{display:grid}.nav-act{margin-inline-start:auto}}

/* mobile menu: staggered entrance */
#mnav a{opacity:0;transform:translateY(18px);filter:blur(6px);transition:opacity .5s var(--ease-out),transform .6s var(--ease-out),filter .5s,color .2s}
#mnav.open a{opacity:1;transform:none;filter:none}
#mnav.open a:nth-of-type(2){transition-delay:.04s}#mnav.open a:nth-of-type(3){transition-delay:.08s}
#mnav.open a:nth-of-type(4){transition-delay:.12s}#mnav.open a:nth-of-type(5){transition-delay:.16s}
#mnav.open a:nth-of-type(6){transition-delay:.2s}#mnav.open a:nth-of-type(7){transition-delay:.24s}
#mnav a:hover{color:var(--gold)}

/* ---------- buttons: tactile ---------- */
.btn{transition:transform .5s var(--ease-out),box-shadow .4s,background .3s,translate .6s var(--ease-out)}
.btn:active{transform:scale(.965)!important;transition-duration:.12s}
.btn-red{background:linear-gradient(180deg,#f0353c,var(--red) 60%,#b9161c);box-shadow:0 1px 0 rgba(255,255,255,.28) inset,0 -2px 0 rgba(0,0,0,.25) inset,0 14px 30px -12px var(--redGlow)}
.btn-ghost{backdrop-filter:blur(6px)}
.hero-cta .btn svg,.fsub .btn svg{transition:transform .5s var(--ease-out)}
.hero-cta .btn-red:hover svg{transform:translateX(-5px)}

/* ---------- HERO: authored moment (kinetic Arabic words) ---------- */
.slide{display:flex;flex-direction:column;align-items:flex-start}
.slide .eyebrow{order:9;margin-top:26px;font-size:13px;color:#cfcfd6;font-weight:600;gap:10px;padding:8px 14px 8px 12px;border-radius:12px;border:1px solid var(--line);background:rgba(12,12,15,.55);backdrop-filter:blur(8px)}
.slide .eyebrow::before{width:18px;height:18px;border-radius:50%;flex-shrink:0;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140c02' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat}
.slide .hero-chips{order:10}
h1{letter-spacing:-.015em;line-height:1.12;text-wrap:balance}
h1 .g{background:none;-webkit-background-clip:initial;background-clip:initial;color:var(--gold)}
h1 .w{display:inline-block;padding-block:.06em}
h1 .wi{display:inline-block;opacity:0;transform:translateY(.55em) rotate(-2deg);filter:blur(12px);
  transition:opacity .5s var(--ease-out),transform .9s var(--ease-out),filter .7s var(--ease-out)}
.slide.on h1 .wi{opacity:1;transform:none;filter:none;transition-delay:calc(var(--i)*85ms + 120ms)}
.slide.on>h1{transition:none!important;opacity:1!important;transform:none!important}
.slide:not(.on) h1 .wi{transition-duration:.35s;transition-delay:0s}
.hero-vign{background:linear-gradient(to left,rgba(8,8,10,.94) 0%,rgba(8,8,10,.6) 34%,rgba(8,8,10,0) 60%),linear-gradient(0deg,#08080a 0%,rgba(8,8,10,0) 30%),radial-gradient(120% 80% at 30% 50%,transparent 50%,rgba(0,0,0,.55))}
.hero-prog i b{background:var(--gold)}
.finder{box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 40px 80px -30px rgba(0,0,0,.9)}
.fd-tabs button{transition:background .4s var(--ease-out),color .3s}

/* ---------- section headings: no labels, wipe reveal (RTL) ---------- */
.kicker{display:none}
.sec-h{gap:16px}
.sec-h h2{text-wrap:balance;letter-spacing:-.01em}
.sec-h p{max-width:62ch;text-wrap:pretty}
h2 em{color:var(--gold)}
.sec-h.reveal{opacity:1;transform:none}
.sec-h.reveal h2{clip-path:inset(-10% 0 -10% 100%);transform:translateX(-14px);transition:clip-path 1.1s var(--ease-in-out),transform 1.2s var(--ease-out)}
.sec-h.reveal p{opacity:0;transform:translateY(14px);filter:blur(6px);transition:opacity .8s var(--ease-out) .35s,transform .9s var(--ease-out) .35s,filter .8s .35s}
.sec-h.reveal.in h2{clip-path:inset(-10% 0 -10% 0);transform:none}
.sec-h.reveal.in p{opacity:1;transform:none;filter:none}

/* ---------- generic reveal: softer, expo ---------- */
.reveal{transform:translateY(28px);transition:opacity .9s var(--ease-out),transform 1.1s var(--ease-out),filter .9s var(--ease-out),clip-path 1.1s var(--ease-in-out)}

/* stats — solid numerals, gauge ticks */
.stat .n{background:none;-webkit-background-clip:initial;background-clip:initial;color:#fff}
.stat::after{content:"";position:absolute;inset-inline:26px;bottom:0;height:3px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 1px,transparent 1px 8px);opacity:.6}
.stats.reveal{clip-path:inset(0 0 0 100% round var(--r));transform:none}
.stats.reveal.in{clip-path:inset(0 0 0 0 round var(--r))}

/* brand cards — 3D unfold */
.brands{perspective:1200px}
.bcard.reveal{transform:translateY(40px) rotateX(18deg);transform-origin:50% 100%;filter:blur(4px)}
.bcard.reveal.in{transform:none;filter:none}
.bcard .glow{opacity:.22}
.bcard .bn{transition:letter-spacing .7s var(--ease-out),color .4s}
.bcard:hover .bn{letter-spacing:.09em;color:var(--gold2)}
.bcard .bk{transition:gap .4s var(--ease-out),opacity .3s,color .3s}
.bcard:hover .bk{gap:12px}

.bwall.reveal{transform:none;clip-path:inset(0 0 100% 0 round 28px)}
.bwall.reveal.in{clip-path:inset(0 0 0 0 round 28px)}
.bw-c span{transition:border-color .3s,background .3s,transform .4s var(--ease-out)}
.bw-c span:hover{border-color:rgba(244,171,60,.45);background:rgba(244,171,60,.07);transform:translateY(-2px)}

/* products studio */
.studio.reveal{transform:scale(.97);filter:blur(8px)}
.studio.reveal.in{transform:none;filter:none}
.pitem{transition:transform .5s var(--ease-out),border-color .3s,background .3s,box-shadow .4s}
.pitem.on{border-color:var(--red);box-shadow:0 0 0 1px var(--red) inset,0 18px 40px -20px var(--redGlow)}
.ptab{transition:background .35s var(--ease-out),color .3s,border-color .3s}
.feats li::before{content:"";background:var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat}
.stage-brand .lat{-webkit-text-stroke:1px rgba(244,171,60,.22)}

/* catalog — wipe + scroll parallax */
.citm.reveal{opacity:1;transform:none;clip-path:inset(100% 0 0 0 round 22px)}
.citm.reveal.in{clip-path:inset(0 0 0 0 round 22px)}
.citm.reveal.d1{transition-delay:.1s}.citm.reveal.d2{transition-delay:.2s}
.citm img{transition:transform 1.2s var(--ease-out),filter .6s}
.citm:hover img{filter:saturate(1.15) contrast(1.05)}
.citm .cap button{transition:transform .5s var(--ease-out),background .3s}
.citm:hover .cap button{background:var(--gold)}
@supports (animation-timeline:view()){
  .citm img{scale:1.14;animation:v2par linear both;animation-timeline:view();animation-range:cover}
  @keyframes v2par{from{translate:0 -6%}to{translate:0 6%}}
}

/* tools */
.tool.reveal{transform:translateY(36px)}
.ch button{transition:background .3s var(--ease-out),border-color .3s,transform .4s var(--ease-out)}
.ch button:active{transform:scale(.95)}
.rec.show{animation:v2pop .8s var(--ease-out)}
@keyframes v2pop{from{opacity:0;transform:translateY(18px);filter:blur(8px);clip-path:inset(0 0 100% 0 round 22px)}to{clip-path:inset(0 0 0 0 round 22px)}}

/* WHY — spec sheet instead of same-size cards */
.why{gap:0 48px}
.wcard{background:none;border:0;border-radius:0;padding:30px 0 34px;display:grid;grid-template-columns:52px 1fr;column-gap:18px;align-content:start;overflow:visible}
.wcard::before{content:"";position:absolute;top:0;inset-inline:0;height:1px;background:linear-gradient(to left,rgba(244,171,60,.7),rgba(255,255,255,.12) 40%,rgba(255,255,255,.06));transform:scaleX(0);transform-origin:right;transition:transform 1.2s var(--ease-in-out)}
.wcard.in::before{transform:scaleX(1)}
.wcard .num{display:none}
.wcard .wi{grid-row:span 2;width:52px;height:52px;margin:0;border-radius:14px;background:rgba(224,38,45,.1);border:1px solid rgba(224,38,45,.28);transition:background .4s,transform .6s var(--ease-out)}
.wcard:hover{transform:none}
.wcard:hover .wi{background:rgba(224,38,45,.2);transform:rotate(-6deg) scale(1.05)}
.wcard h4{margin:4px 0 6px}
.wcard p{max-width:42ch}
.wcard.reveal{transform:none;opacity:1}
.wcard.reveal>*{opacity:0;transform:translateY(16px);transition:opacity .8s var(--ease-out) .25s,transform .9s var(--ease-out) .25s}
.wcard.reveal.in>*{opacity:1;transform:none}

/* wholesale */
.ws.reveal{transform:none;clip-path:inset(6% 4% 6% 4% round 32px);opacity:.2}
.ws.reveal.in{clip-path:inset(0 0 0 0 round 32px);opacity:1}
.ws-l li{opacity:.0;transform:translateX(16px);transition:opacity .6s var(--ease-out),transform .7s var(--ease-out)}
.ws.in .ws-l li{opacity:1;transform:none}
.ws.in .ws-l li:nth-child(2){transition-delay:.1s}.ws.in .ws-l li:nth-child(3){transition-delay:.2s}.ws.in .ws-l li:nth-child(4){transition-delay:.3s}
.cbx label{transition:border-color .25s,background .25s,transform .4s var(--ease-out)}
.cbx label:active{transform:scale(.96)}

/* branches */
.netbox.reveal{transform:scale(.96);filter:blur(6px)}
.netbox.reveal.in{transform:none;filter:none}
.bitem{transition:border-color .3s,background .3s,transform .5s var(--ease-out)}
.bitem:hover{transform:translateX(-4px)}

/* contact cards — enter from the reading start (right) */
.ccard.reveal{transform:translateX(30px)}
.ccard.reveal.in{transform:none}
.ccard{transition:border-color .3s,transform .5s var(--ease-out),background .3s}
.ccard .ci{transition:transform .6s var(--ease-out)}
.ccard:hover .ci{transform:scale(1.08) rotate(-5deg)}

.ccard b.ar{direction:rtl;unicode-bidi:isolate}

/* forms */
.inp{transition:border-color .3s,box-shadow .4s var(--ease-out),background .3s}
.inp:hover{border-color:rgba(255,255,255,.22)}
.inp:focus{background:#121217}
.inp.err{animation:v2shake .45s var(--ease-out)}
@keyframes v2shake{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}

/* drawer / modal / lightbox */
#cart{transition:transform .7s var(--ease-out)}
.ch-b,.blist,#mnav{overscroll-behavior:contain}
.mbox{transition:transform .6s var(--ease-out),opacity .4s;transform:translateY(24px) scale(.96)}
#lbox .lb-in{transform:scale(.94);transition:transform .6s var(--ease-out)}
#lbox.open .lb-in{transform:none}
#toast{transition:translate .7s var(--ease-out),opacity .4s}

/* scroll gauge reads like a real dipstick */
.gauge{width:8px;border:1px solid rgba(255,255,255,.1);background:repeating-linear-gradient(0deg,transparent 0 15px,rgba(255,255,255,.12) 15px 16px),rgba(255,255,255,.04)}

/* footer */
footer{background:radial-gradient(60% 120% at 50% 0%,rgba(224,38,45,.08),transparent 60%),#060607}
.soc a{transition:background .3s,border-color .3s,transform .5s var(--ease-out)}
.soc a:hover{transform:translateY(-3px)}

/* ---------- mobile native ---------- */
*{-webkit-tap-highlight-color:transparent}
button,a,.btn,label,select{touch-action:manipulation}
.btn,.ptab,.ftab,.opt,.ch button,.fd-tabs button{-webkit-user-select:none;user-select:none}
.fab{bottom:calc(22px + env(safe-area-inset-bottom,0px));inset-inline-start:calc(22px + env(safe-area-inset-left,0px))}
#cart{padding-bottom:env(safe-area-inset-bottom,0px)}
@media (max-width:640px){
  .inp,select.inp,textarea.inp,.unit,.qty input{font-size:16px}
  .why{gap:0}
  .wcard{padding:24px 0 26px}
  .sec-h{margin-bottom:40px}
}
@media (hover:none){
  .btn:hover,.pitem:hover,.ccard:hover,.bitem:hover,.btn-ghost:hover,.btn-red:hover,.soc a:hover{transform:none}
  .citm:hover img{transform:none}
}

/* ---------- reduced motion: everything visible, no travel ---------- */
@media (prefers-reduced-motion:reduce){
  body::after{animation:none}
  h1 .wi,.sec-h.reveal h2,.sec-h.reveal p,.reveal,.reveal>*,.ws-l li,#mnav a{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important}
  .wcard::before{transform:none}
  .citm .v2par{animation:none}
}

/* =================== v3 studio canvases =================== */
#v3hero{position:absolute;inset:0;width:100%;height:100%;z-index:0;touch-action:pan-y;cursor:grab;opacity:0;transition:opacity 1.6s var(--ease-out)}
.v3-hero-ready #v3hero{opacity:1}
#v3hero:active{cursor:grabbing}
#v3stage{position:absolute;inset:0;width:100%;height:100%;cursor:grab;touch-action:pan-y}
#v3stage:active{cursor:grabbing}
#hots{display:none}
.stage{background:radial-gradient(70% 60% at 50% 30%,#1d1610,#080706 75%)}
.stage::before{display:none}
#hero,.hero-bg{background:radial-gradient(90% 70% at 30% 30%,#1a120a 0%,#0a0806 55%,#060505 100%)}

/* =================== v3 world: warm engine-oil palette =================== */
:root{
  --bg:#0a0806; --bg2:#100c08; --card:#15110c; --card2:#1c1610;
  --line:rgba(255,220,170,.085); --line2:rgba(255,220,170,.16);
  --muted:#b0a596; --muted2:#7d7365; --text:#f6f1ea;
}
body{background:var(--bg)}
#tools{background:linear-gradient(180deg,transparent,#0e0a07 20%,#0e0a07 80%,transparent)}
footer{background:radial-gradient(60% 120% at 50% 0%,rgba(244,171,60,.07),transparent 60%),#070504}
.inp,select.inp,textarea.inp{background:#0d0a07}
#cart{background:#0f0b08}.ch-f{background:#0b0806}
.stats{background:linear-gradient(180deg,rgba(32,25,17,.85),rgba(18,14,10,.85))}

/* =================== cinematic catalog (horizontal, scroll-driven) =================== */
#catalog.v3-cine{padding-block:110px 0}
.v3-cine .cine-track{position:relative}
.v3-cine .cine-sticky{position:sticky;top:0;height:100svh;overflow:hidden;display:flex;align-items:center}
.v3-cine #cgrid{display:flex!important;gap:28px;padding-inline:max(20px,calc((100vw - 1240px)/2));will-change:transform;grid-template-columns:none!important}
.v3-cine .citm{flex:0 0 auto;width:min(62vw,880px);height:min(72svh,640px);aspect-ratio:auto!important;grid-column:auto!important;grid-row:auto!important;border-radius:30px;clip-path:none!important;opacity:1!important;transform:none!important}
.v3-cine .citm img{scale:1.12;transition:transform 1.4s var(--ease-out),filter .6s}
.v3-cine .citm .cap{padding:34px 36px}
.v3-cine .citm .cap b{font-size:clamp(22px,2.4vw,36px);font-weight:900;line-height:1.25;text-wrap:balance}
.v3-cine .citm .cap small{font-size:14px;color:var(--gold2)}
.v3-cine .citm .cap button{height:48px;padding:0 22px;font-size:15px}
.v3-cine .citm::after{background:linear-gradient(0deg,rgba(6,4,3,.92),rgba(6,4,3,.2) 45%,transparent 70%)}
.v3-cine .cine-bar{position:absolute;bottom:28px;inset-inline:max(20px,calc((100vw - 1240px)/2));height:2px;background:rgba(255,255,255,.1);border-radius:2px;overflow:hidden}
.v3-cine .cine-bar i{position:absolute;inset-block:0;right:0;width:var(--cp,0%);background:var(--gold)}
.v3-cine .cine-count{position:absolute;bottom:42px;inset-inline-start:max(20px,calc((100vw - 1240px)/2));font-family:var(--fx);font-size:13px;color:var(--muted);letter-spacing:.1em}
@media (max-width:760px){
  .v3-cine .citm{width:84vw;height:62svh}
  .v3-cine .citm .cap{padding:20px;flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .v3-cine .cine-sticky{position:static;height:auto;overflow-x:auto}
}
.v3-cine .citm img{animation:none!important}
.v3-cine .cine-count{direction:ltr;unicode-bidi:isolate}
