/*
 * Halab Al Shahba — Home v2 (cinematic scroll story)
 * Standalone stylesheet for index.html only. Other pages keep css/main.css.
 * RTL-first; logical properties everywhere so [dir=ltr] flips cleanly.
 */

:root {
  --ink: #090d17;
  --ink-2: #0e1424;
  --navy: #121b30;
  --navy-2: #16213e;
  --navy-3: #1e3a5f;
  --gold: #f5a623;
  --gold-2: #ffcc4d;
  --gold-3: #d4910e;
  --text: #edf0f7;
  --muted: #9aa4b8;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(18, 27, 48, .62);
  --wa: #25d366;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Tajawal', 'Noto Kufi Arabic', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --hdr: 72px;
  --wrap: min(1240px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en), var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; font-weight: 800; font-size: 1.02rem; line-height: 1.2;
  background: var(--bg); color: #14100a;
  box-shadow: 0 10px 30px -10px rgba(245, 166, 35, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245, 166, 35, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { --bg: var(--wa); color: #fff; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .55); }
.btn--ghost { --bg: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.12rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-2);
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(245, 166, 35, .1); border: 1px solid rgba(245, 166, 35, .28);
}
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(245, 166, 35, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }

.h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.h2 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 60ch; }
.sec-head { display: grid; gap: .9rem; justify-items: start; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head--c { justify-items: center; text-align: center; }
.sec-head--c .lead { margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: right; transform: scaleX(var(--gp, 0)); }
[dir="ltr"] .progress span { transform-origin: left; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--hdr);
  transition: background .4s, box-shadow .4s, transform .45s var(--ease);
}
.hdr.is-solid { background: rgba(9, 13, 23, .82); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 4px 14px rgba(245, 166, 35, .35)); }
.brand b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.brand small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .14em; font-family: var(--font-en); }
.nav { display: flex; align-items: center; gap: .2rem; margin-inline-start: auto; }
.nav > li { position: relative; }
.nav a.nav__a { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; color: #d7dceb; transition: color .2s, background .2s; }
.nav a.nav__a:hover, .nav a.nav__a.is-on { color: var(--gold-2); background: rgba(255, 255, 255, .05); }
.nav__sub { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 200px; padding: .5rem; border-radius: 14px; background: rgba(14, 20, 36, .97); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.nav > li:hover .nav__sub, .nav > li:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .55rem .8rem; border-radius: 9px; font-size: .92rem; color: #d7dceb; }
.nav__sub a:hover { background: rgba(245, 166, 35, .1); color: var(--gold-2); }
.hdr__act { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.lang button { min-width: 38px; height: 32px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.lang button.is-on { background: var(--gold); color: #14100a; }
.hdr .btn { min-height: 42px; padding: .5rem 1.1rem; font-size: .9rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .07); position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .hdr .btn--quote { display: none; }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .burger { display: block; }
  .brand img { width: 40px; height: 40px; }
  .nav {
    position: fixed; inset: var(--hdr) 0 0 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 1.4rem 2rem; background: rgba(9, 13, 23, .98); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .35s var(--ease); overflow-y: auto;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .hdr { background: rgba(9, 13, 23, .98); }
  .nav a.nav__a { font-size: 1.2rem; padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0 1rem .4rem; }
  .nav__sub a { font-size: 1rem; color: var(--muted); }
  .nav__chev { display: none; }
}

/* ---------- Generic scroll scene ---------- */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Scene 1 — Hero ---------- */
.hero { height: 175vh; background: var(--ink); }
.hero .stage { display: grid; align-items: center; }
.hero__layers { position: absolute; inset: 0; overflow: hidden; }
.hero__layer { position: absolute; inset: -6% -4%; will-change: transform; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__layer--mid { -webkit-mask-image: linear-gradient(to bottom, #000 0 66%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0 66%, transparent 78%); }
.hero__layer--ground { -webkit-mask-image: linear-gradient(to bottom, transparent 0 64%, #000 76%); mask-image: linear-gradient(to bottom, transparent 0 64%, #000 76%); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 13, 23, .78) 0%, rgba(9, 13, 23, .35) 34%, rgba(9, 13, 23, .55) 62%, var(--ink) 100%),
    linear-gradient(90deg, rgba(9, 13, 23, .2), rgba(9, 13, 23, .78));
}
[dir="ltr"] .hero__shade { background: linear-gradient(180deg, rgba(9, 13, 23, .78) 0%, rgba(9, 13, 23, .35) 34%, rgba(9, 13, 23, .55) 62%, var(--ink) 100%), linear-gradient(270deg, rgba(9, 13, 23, .2), rgba(9, 13, 23, .78)); }
.hero__tint { position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 30%, rgba(245, 166, 35, .2), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.hero__dim { position: absolute; inset: 0; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; }
.beams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.beams i { position: absolute; top: -20%; width: 14vw; height: 140%; background: linear-gradient(180deg, rgba(255, 204, 77, .14), transparent 70%); filter: blur(18px); transform: rotate(18deg); animation: beam 9s ease-in-out infinite alternate; }
.beams i:nth-child(1) { inset-inline-start: 18%; }
.beams i:nth-child(2) { inset-inline-start: 46%; width: 8vw; animation-delay: -3s; opacity: .7; }
.beams i:nth-child(3) { inset-inline-start: 72%; animation-delay: -6s; opacity: .5; }
@keyframes beam { from { transform: rotate(14deg) translateX(-3vw); } to { transform: rotate(24deg) translateX(3vw); } }
.dust { position: absolute; inset: 0; pointer-events: none; }
.dust i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2); opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(-80vh) translateX(4vw); opacity: 0; } }

.hero__content { position: relative; z-index: 2; padding-top: var(--hdr); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; will-change: transform, opacity; }
.hero__text { display: grid; gap: 1.2rem; justify-items: start; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 5.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.hero h1 span { background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, #ffe39a 60%, var(--gold)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hero__sub { color: #c9cfdd; font-size: clamp(1rem, 1.7vw, 1.22rem); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.hero__facts b { color: var(--text); font-weight: 800; }
.hero__facts li { display: flex; align-items: center; gap: .45rem; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* Split-word reveal */
.reveal-words .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-50deg); transform-origin: 50% 100%; animation: wordin .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 450ms); }
@keyframes wordin { to { opacity: 1; transform: none; } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeup .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* 3D logo */
.logo3d { perspective: 900px; justify-self: center; width: min(340px, 30vw); aspect-ratio: 1; position: relative; }
.logo3d__ring { position: absolute; inset: -9%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 15%, rgba(245, 166, 35, .9) 25%, transparent 38% 60%, rgba(255, 204, 77, .7) 72%, transparent 85%); -webkit-mask: radial-gradient(closest-side, transparent 92%, #000 93% 99%, transparent 100%); mask: radial-gradient(closest-side, transparent 92%, #000 93% 99%, transparent 100%); animation: spin 9s linear infinite; opacity: 0; animation-name: spin, ringin; animation-duration: 9s, 1.2s; animation-iteration-count: infinite, 1; animation-delay: 0s, 1.1s; animation-fill-mode: none, forwards; }
.logo3d__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, .38), transparent 68%); filter: blur(20px); }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes ringin { to { opacity: 1; } }
.logo3d__card { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.logo3d__face { position: absolute; inset: 0; transform-style: preserve-3d; animation: logoin 1.6s var(--ease) .2s both; }
@keyframes logoin {
  0% { transform: rotateY(-120deg) rotateX(18deg) scale(.6) translateZ(-200px); opacity: 0; filter: blur(8px) brightness(2); }
  60% { opacity: 1; filter: blur(0) brightness(1.3); }
  100% { transform: none; opacity: 1; filter: none; }
}
.logo3d__face img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(245, 166, 35, .25)); }
.logo3d__shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../images/v2/logo-320.webp") center/contain no-repeat; mask: url("../images/v2/logo-320.webp") center/contain no-repeat; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); background-size: 300% 100%; animation: shine 4.5s ease-in-out 1.6s infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }

.cue { position: absolute; z-index: 3; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; letter-spacing: .06em; opacity: var(--cue, 1); }
.cue__mouse { width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.cue__mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Scenes 2 & 3 (3D) shared ---------- */
.s3d { background: var(--ink); }
.s3d .stage { isolation: isolate; }
.s3d__slot { position: absolute; inset: 0; z-index: 0; }
.s3d__slot canvas { display: block; width: 100% !important; height: 100% !important; }
.s3d__fallback { position: absolute; inset: 0; display: none; }
.no3d .s3d__fallback { display: block; }
.s3d__static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beat { position: absolute; z-index: 2; opacity: 0; will-change: opacity, transform; pointer-events: none; }
.beat.is-live { pointer-events: auto; }
.chapter { font-family: var(--font-en); font-size: .74rem; letter-spacing: .3em; color: var(--gold); opacity: .85; display: block; margin-bottom: .6rem; }
.loader3d { position: absolute; z-index: 1; left: 50%; top: 55%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--gold); animation: spin 1s linear infinite; transition: opacity .4s; }
.ready3d .loader3d, .no3d .loader3d { opacity: 0; pointer-events: none; }

/* Scene 2 — truck */
.truck { height: 380vh; }
.truck .stage { background: linear-gradient(180deg, #070a13 0%, #121a30 48%, #3a2a22 60%, #141a2a 61%, #0b0f1a 100%); }
.truck__head { top: calc(var(--hdr) + 3vh); inset-inline: 0; text-align: center; padding-inline: 1.25rem; }
.truck__head .h2 { text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.truck__head .lead { margin: .6rem auto 0; color: #c9cfdd; }
.truck__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.truck__chips li { padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 700; background: rgba(9, 13, 23, .55); border: 1px solid rgba(245, 166, 35, .35); backdrop-filter: blur(6px); }
.truck__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.1rem; }
.route { position: absolute; z-index: 2; inset-inline: 0; bottom: calc(26px + env(safe-area-inset-bottom)); width: min(900px, 100% - 2.5rem); margin-inline: auto; }
.route__track { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.route__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: right; transform: scaleX(var(--rp, 0)); box-shadow: 0 0 18px rgba(245, 166, 35, .6); }
[dir="ltr"] .route__fill { transform-origin: left; }
.route__stops { display: flex; justify-content: space-between; margin-top: -10px; }
.route__stops li { display: grid; justify-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); transition: color .3s; width: 0; white-space: nowrap; }
.route__stops li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, .3); transition: .35s var(--ease); }
.route__stops li.is-on { color: var(--text); }
.route__stops li.is-on::before { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 5px rgba(245, 166, 35, .2); }
.truck .s3d__fallback img { position: absolute; bottom: 14%; width: min(560px, 80vw); left: 50%; transform: translateX(calc(-50% + (0.5 - var(--tp, .5)) * 120vw)); border-radius: 18px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 75%); }
[dir="ltr"] .truck .s3d__fallback img { transform: translateX(calc(-50% - (0.5 - var(--tp, .5)) * 120vw)); }

/* Scene 3 — exploded generator */
.xpl { height: 460vh; }
.xpl .stage { background: radial-gradient(70% 60% at 50% 58%, #1b2742 0%, #0d1324 55%, var(--ink) 100%); }
.xpl__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 55%, #000, transparent 75%); }
.xpl__head { top: calc(var(--hdr) + 3vh); inset-inline: 0; text-align: center; padding-inline: 1.25rem; }
.xpl__head .lead { margin: .5rem auto 0; }
.xpl__done { inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding-inline: 7vw; padding-top: var(--hdr); }
.xpl__done > * { pointer-events: auto; }
@media (max-width: 900px), (max-aspect-ratio: 9/10) {
  .xpl__done { justify-content: flex-end; align-items: center; text-align: center; padding: 0 1.25rem calc(6vh + env(safe-area-inset-bottom)); }
}
.ok { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.ok svg { width: 1.3em; height: 1.3em; color: #3ddc84; filter: drop-shadow(0 0 10px rgba(61, 220, 132, .6)); }
.plate {
  direction: ltr; font-family: var(--font-en); font-size: .74rem; letter-spacing: .08em; color: #2a2116; text-align: start;
  display: grid; grid-template-columns: auto auto; gap: .15rem 1.2rem; padding: .8rem 1.1rem; border-radius: 8px;
  background: linear-gradient(135deg, #e8c879, #c99a3b 40%, #f2d68e 55%, #b98a31); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(255, 255, 255, .25), 0 14px 40px rgba(0, 0, 0, .5);
  position: relative;
}
.plate::before, .plate::after { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #7a5b22; box-shadow: 0 calc(100% + 0px) 0 #7a5b22; }
.plate::before { left: 6px; } .plate::after { right: 6px; }
.plate b { font-weight: 700; opacity: .7; }
.plate span { font-weight: 700; }
.plate__cap { grid-column: 1 / -1; font-family: var(--font); direction: rtl; font-size: .78rem; letter-spacing: 0; text-align: center; border-top: 1px solid rgba(0, 0, 0, .2); margin-top: .35rem; padding-top: .35rem; }
[dir="ltr"] .plate__cap { direction: ltr; }
.xlabels { position: absolute; inset: 0; z-index: 2; pointer-events: none; direction: ltr; }
.xlabel {
  position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity;
  display: flex; align-items: center; gap: .55rem;
}
.xlabel__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 166, 35, .25), 0 0 18px var(--gold); flex: none; }
.xlabel__line { width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.xlabel__card { direction: rtl; padding: .45rem .8rem; border-radius: 12px; background: rgba(9, 13, 23, .78); border: 1px solid rgba(245, 166, 35, .35); backdrop-filter: blur(8px); white-space: nowrap; }
.xlabel__card b { display: block; font-size: .98rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.xlabel__card small { display: block; font-size: .76rem; color: var(--muted); }
.xlabel.flip { flex-direction: row-reverse; }
[dir="ltr"] .xlabel__card { direction: ltr; }
.xlabel.flip .xlabel__line { background: linear-gradient(270deg, var(--gold), transparent); }
.xpl .s3d__fallback { display: none; }
.no3d .xpl .s3d__fallback { display: grid; place-items: center; padding: 22vh 1.25rem 18vh; }
.xfb { display: grid; gap: 1.4rem; justify-items: center; width: min(900px, 100%); }
.xfb img { width: min(420px, 80vw); border-radius: 20px; }
.xfb ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; width: 100%; }
.xfb li { padding: .7rem .9rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; }
.xfb li small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Reveal on view ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Scene 4 — Generators lineup ---------- */
.lineup { position: relative; background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.lineup__pin { padding-block: clamp(4.5rem, 10vh, 7rem) 3rem; }
.lineup__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 400px); gap: 1.5rem 3rem; align-items: end; margin-bottom: 2rem; }
.bigstat { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bigstat__n { font-family: var(--font-en); font-weight: 800; font-size: clamp(4.5rem, 12vw, 9rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--gold); background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, transparent 61%); -webkit-background-clip: text; background-clip: text; }
.bigstat__t { display: grid; }
.bigstat__t b { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; }
.bigstat__t span { color: var(--muted); }
.kva { width: 100%; min-width: 0; }
.kva__lbl { display: flex; justify-content: space-between; font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; }
.kva__lbl small { font-size: .7rem; color: var(--muted); font-weight: 600; margin-inline-start: .25rem; }
.kva__bar { position: relative; height: 10px; margin-top: .4rem; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.kva__bar i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 9px); transform-origin: right; transform: scaleX(0); transition: transform 2.2s var(--ease) .3s; }
[dir="ltr"] .kva__bar i { transform-origin: left; }
.is-in .kva__bar i { transform: scaleX(1); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: #d7dceb; }
.chips svg { width: 16px; height: 16px; color: var(--gold); }
.brands { overflow: hidden; border-block: 1px solid var(--line); padding-block: .9rem; margin-bottom: 2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.brands__row { display: flex; gap: 3rem; width: max-content; animation: marq 26s linear infinite; font-family: var(--font-en); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .12em; color: rgba(255, 255, 255, .28); }
.brands__row span:nth-child(odd) { color: rgba(245, 166, 35, .55); }
@keyframes marq { to { transform: translateX(-50%); } }

.track-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: .5rem 1.5rem; }
.track-wrap::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 1.1rem; width: max-content; padding-inline: max(1.25rem, (100vw - 1240px) / 2); }
.gcard {
  --rx: 0deg; --ry: 0deg;
  scroll-snap-align: center; flex: none; width: min(78vw, 330px);
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(180deg, #151e35, #0f1527); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}
.gcard:hover { border-color: rgba(245, 166, 35, .5); box-shadow: 0 30px 60px -25px rgba(245, 166, 35, .35); }
.gcard > a { display: block; height: 100%; }
.gcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a2238; }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gcard:hover .gcard__img img { transform: scale(1.07); }
.gcard__kva { position: absolute; top: .8rem; inset-inline-start: .8rem; padding: .3rem .75rem; border-radius: 999px; background: var(--gold); color: #14100a; font-family: var(--font-en); font-weight: 800; font-size: .88rem; unicode-bidi: plaintext; }
.gcard__tag { position: absolute; top: .8rem; inset-inline-end: .8rem; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(9, 13, 23, .75); backdrop-filter: blur(4px); border: 1px solid var(--line); }
.gcard__tag--new { background: rgba(61, 220, 132, .9); color: #062413; border: 0; }
.gcard__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .45rem; }
.gcard__brand { font-family: var(--font-en); font-size: .74rem; letter-spacing: .18em; color: var(--gold); font-weight: 700; }
.gcard h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.35; }
.gcard__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--muted); font-size: .84rem; }
.gcard__go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; color: var(--gold-2); font-weight: 700; font-size: .9rem; }
.gcard__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
[dir="rtl"] .gcard__go svg { transform: scaleX(-1); }
.gcard:hover .gcard__go svg { translate: 4px 0; }
[dir="rtl"] .gcard:hover .gcard__go svg { translate: -4px 0; }
.gcard.rv { transform: translateY(60px) scale(.96); }
.gcard.rv.is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.lineup__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.lineup__hint { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.lineup__hint svg { width: 18px; height: 18px; color: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: -6px 0; } }

/* Desktop: vertical scroll drives the horizontal track */
.lineup.is-pinned .lineup__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr) + 1rem) 1.5rem; overflow: hidden; }
.lineup.is-pinned .track-wrap { overflow: visible; scroll-snap-type: none; }
.lineup.is-pinned .track { will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.lineup.is-pinned .lineup__pin > * { flex-shrink: 0; }
.lineup.is-pinned .lineup__top { margin-bottom: 1rem; }
.lineup.is-pinned .h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.lineup.is-pinned .bigstat__n { font-size: clamp(3.6rem, 7vw, 6rem); }
.lineup.is-pinned .chips { margin-bottom: .9rem; }
.lineup.is-pinned .brands { margin-bottom: 1rem; padding-block: .6rem; }
.lineup.is-pinned .gcard__img { aspect-ratio: 16 / 10; }
.lineup.is-pinned .gcard__body { padding: .8rem 1rem .9rem; gap: .3rem; }
.lineup.is-pinned .track-wrap { padding-block: .25rem .75rem; }
.lineup.is-pinned .lineup__foot { margin-top: .25rem; }
@media (max-height: 860px) {
  .lineup.is-pinned .brands, .lineup.is-pinned .chips { display: none; }
}

/* Fleet / yard gallery marquee */
.fleet { padding-block: clamp(4rem, 9vw, 7rem); background: var(--ink-2); overflow: hidden; }
.fleet__rows { display: grid; gap: 1rem; direction: ltr; }
.fleet__row { display: flex; gap: 1rem; width: max-content; will-change: transform; }
.fleet__row figure { position: relative; width: clamp(220px, 28vw, 380px); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; flex: none; background: #1a2238; }
.fleet__row img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: saturate(.85); }
.fleet__row figure:hover img { transform: scale(1.06); filter: none; }
.fleet__row figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem; background: linear-gradient(transparent, rgba(9, 13, 23, .9)); font-size: .85rem; font-weight: 600; direction: rtl; text-align: right; }
[dir="ltr"] .fleet__row figcaption { direction: ltr; text-align: left; }

/* ---------- Scene 5 — Services ---------- */
.services { padding-block: clamp(4.5rem, 10vw, 8rem); background: radial-gradient(80% 60% at 50% 0%, #17223d, var(--ink) 70%); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.svc {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; align-content: start; gap: .8rem; min-height: 330px; padding: 1.6rem 1.4rem;
  border-radius: 22px; background: linear-gradient(180deg, rgba(30, 42, 72, .55), rgba(14, 20, 36, .8)); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .3s;
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(245, 166, 35, .18), transparent 60%); opacity: 0; transition: opacity .35s; }
.svc:hover { transform: translateY(-8px); border-color: rgba(245, 166, 35, .45); }
.svc:hover::before { opacity: 1; }
.svc__n { position: absolute; top: 1rem; inset-inline-end: 1.2rem; font-family: var(--font-en); font-weight: 800; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); }
.svc__ic { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; background: rgba(245, 166, 35, .1); border: 1px solid rgba(245, 166, 35, .25); transition: transform .6s var(--ease); }
.svc:hover .svc__ic { transform: rotate(-8deg) scale(1.08); }
.svc__ic img { width: 58px; height: 58px; object-fit: contain; }
.svc__ic svg { width: 38px; height: 38px; color: var(--gold); }
.svc h3 { font-size: 1.35rem; font-weight: 800; }
.svc p { color: var(--muted); font-size: .96rem; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-2); font-weight: 700; }
.svc__more svg { width: 16px; height: 16px; }
[dir="rtl"] .svc__more svg { transform: scaleX(-1); }
.svc__pics { display: flex; gap: .5rem; margin-top: .2rem; }
.svc__pics img { width: 50%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.svc--hot { background: linear-gradient(160deg, rgba(245, 166, 35, .22), rgba(14, 20, 36, .85) 55%); border-color: rgba(245, 166, 35, .35); }
.svc__pulse { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: #3ddc84; }
.svc__pulse i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: ping 1.6s infinite; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); }

/* ---------- Scene 6 — Trust + location ---------- */
.trust { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--ink-2); position: relative; overflow: hidden; }
.trust__glow { position: absolute; width: 60vw; aspect-ratio: 1; inset-inline-end: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(245, 166, 35, .12), transparent 65%); pointer-events: none; }
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.about__logo { width: clamp(140px, 18vw, 230px); filter: drop-shadow(0 12px 40px rgba(245, 166, 35, .3)); }
.about p { color: #c9cfdd; font-size: 1.05rem; max-width: 70ch; }
.about__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.stat { background: var(--ink-2); padding: clamp(1.4rem, 3vw, 2.2rem) 1rem; text-align: center; display: grid; gap: .25rem; position: relative; }
.stat__n { font-family: var(--font-en); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--gold); direction: ltr; }
.stat__l { color: var(--muted); font-weight: 600; }
.loc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.2rem; align-items: stretch; }
.loc__photo { position: relative; border-radius: 22px; overflow: hidden; min-height: 320px; }
.loc__photo img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.loc__card { position: absolute; inset: auto 1rem 1rem 1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(9, 13, 23, .82); backdrop-filter: blur(10px); border: 1px solid var(--line); display: grid; gap: .6rem; }
.loc__card h3 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.loc__card h3 svg { width: 22px; height: 22px; color: var(--gold); }
.loc__card p { color: #c9cfdd; font-size: .95rem; }
.loc__trust { display: flex; align-items: center; gap: .5rem; color: #3ddc84; font-weight: 700; font-size: .9rem; }
.loc__trust svg { width: 20px; height: 20px; }
.loc__card .btn { justify-self: start; min-height: 46px; }
.loc__map { border-radius: 22px; overflow: hidden; min-height: 420px; border: 1px solid var(--line); background: #1a2238; }
.loc__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- Scene 7 — Final CTA ---------- */
.final { position: relative; padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 8vw, 6rem); text-align: center; overflow: hidden; background: radial-gradient(70% 80% at 50% 100%, rgba(245, 166, 35, .2), transparent 60%), var(--ink); }
.final__wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4; }
.final__wire path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fp, 0)); filter: drop-shadow(0 0 6px var(--gold)); }
.final__big { font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.final__big span { color: var(--gold); }
.final .lead { margin: 1rem auto 2rem; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 2rem; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; }
.phones a { display: inline-flex; align-items: center; gap: .45rem; direction: ltr; color: #d7dceb; transition: color .2s; }
.phones a:hover { color: var(--gold-2); }
.phones svg { width: 18px; height: 18px; color: var(--gold); }
.social { margin-top: 2.6rem; display: grid; gap: 1rem; justify-items: center; }
.social p { color: var(--muted); }
.social__row { display: flex; gap: .8rem; }
.social__row a { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: transform .35s var(--ease), background .25s, color .25s; }
.social__row a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--gold); color: #14100a; }
.social__row svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.ftr { background: #060910; border-top: 1px solid var(--line); padding-block: 3.5rem 1.5rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.ftr__logo { width: 210px; border-radius: 10px; margin-bottom: 1rem; }
.ftr p { color: var(--muted); font-size: .94rem; }
.ftr h4 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--text); }
.ftr__links { display: grid; gap: .55rem; }
.ftr__links a { color: var(--muted); transition: color .2s; }
.ftr__links a:hover { color: var(--gold-2); }
.ftr__ci { display: flex; align-items: center; gap: .55rem; color: var(--muted); margin-bottom: .6rem; }
.ftr__ci svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.ftr__ci a:hover { color: var(--gold-2); }
.ftr__soc { display: flex; gap: .55rem; margin-top: 1rem; }
.ftr__soc a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); transition: .25s; }
.ftr__soc a:hover { background: var(--gold); color: #14100a; }
.ftr__soc svg { width: 19px; height: 19px; }
.ftr__bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .88rem; }

/* WhatsApp float */
.wa-float { position: fixed; z-index: 70; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: 18px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waring 2.2s ease-out infinite; }
@keyframes waring { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; gap: 1rem; text-align: start; padding-top: calc(var(--hdr) + 1rem); }
  .logo3d { order: -1; width: min(150px, 38vw); justify-self: start; }
  .lineup__top { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about__badges { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .loc { grid-template-columns: 1fr; }
  .loc__map, .loc__map iframe { min-height: 320px; }
  .truck { height: 330vh; }
  .xpl { height: 420vh; }
  .xlabel__card { direction: rtl; padding: .3rem .55rem; }
  .xlabel__card b { font-size: .8rem; }
  .xlabel__card small { display: none; }
  .xlabel__line { width: 14px; }
  .xlabel__dot { width: 9px; height: 9px; }
  .route__stops li { font-size: .62rem; }
  .route__stops li:nth-child(even) span { translate: 0 1.1em; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__facts { font-size: .84rem; gap: .35rem 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .truck__chips li { font-size: .8rem; padding: .3rem .7rem; }
  .final__cta .btn { width: 100%; }
  .wa-float { width: 54px; height: 54px; }
  .ok { font-size: 1.25rem; }
}
@media (max-width: 560px), (max-height: 760px) {
  .cue { display: none; }
}

/* ---------- Reduced motion: static story ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero, .truck, .xpl { height: auto; }
  .hero .stage { position: relative; height: 100svh; }
  .truck .stage, .xpl .stage { position: relative; height: min(100svh, 860px); }
  .rv { opacity: 1; transform: none; }
  .brands__row { animation: none; }
  .beams, .dust { display: none; }
}
[dir="rtl"] .flipx { transform: scaleX(-1); }
