/* ============================================================
 * lus-widgets.css — Leadus/After, ported & scoped for Elementor.
 * All classes prefixed `lus-`; reset/typography scoped to `.lus-scope`
 * (never global body/*), so the plugin can't break the host theme.
 * Pre-animation hidden states live ONLY under html.lus-fx (the JS gate),
 * so with JS off / editor / reduced-motion everything is visible.
 * ========================================================== */

:root {
  --lus-navy: #001b3b; --lus-navy-900: #00122a; --lus-navy-800: #04203f; --lus-navy-700: #0a2b52;
  --lus-cyan: #03d7fe; --lus-lime: #aed43e; --lus-orange: #fbb157; --lus-coral: #f48179;
  --lus-bg-elev: #eef3f9; --lus-ink: #0a1f3c; --lus-ink-dim: #55698a; --lus-ink-faint: #93a4bd;
  --lus-line: rgba(10,31,60,0.12);
  --lus-grad: linear-gradient(100deg, var(--lus-cyan), var(--lus-coral) 60%, var(--lus-orange));
  --lus-font-he: 'Open Sans', system-ui, sans-serif;
  --lus-font-en: 'Space Grotesk', 'Open Sans', sans-serif;
  --lus-fs-overline: clamp(0.72rem, 0.9vw, 0.86rem);
  --lus-fs-body: clamp(1rem, 1.2vw, 1.15rem);
  --lus-fs-lead: clamp(1.15rem, 1.8vw, 1.5rem);
  --lus-fs-h3: clamp(1.4rem, 2.6vw, 2rem);
  --lus-fs-h2: clamp(2rem, 5vw, 3.6rem);
  --lus-fs-h1: clamp(2.6rem, 8vw, 6.5rem);
  --lus-gutter: clamp(1.25rem, 5vw, 6rem);
  --lus-maxw: 1280px;
  --lus-r-sm: 10px; --lus-r-md: 18px; --lus-r-lg: 28px;
  --lus-shadow: 0 24px 60px rgba(10,31,60,0.14);
  --lus-glow: 0 0 0 rgba(0,0,0,0);
  --lus-ease: cubic-bezier(0.16,1,0.3,1);
}

/* scoped reset — only inside our widgets */
.lus-scope, .lus-scope *, .lus-scope *::before, .lus-scope *::after { box-sizing: border-box; }
.lus-scope { font-family: var(--lus-font-he); color: var(--lus-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; direction: rtl; }
.lus-scope img, .lus-scope video, .lus-scope svg, .lus-scope canvas { display: block; max-width: 100%; }
.lus-scope h1, .lus-scope h2, .lus-scope h3 { line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.lus-scope p { margin: 0; }
.lus-scope a { color: inherit; text-decoration: none; }
.lus-scope ul { list-style: none; margin: 0; padding: 0; }
.lus-scope :focus-visible { outline: 2px solid var(--lus-cyan); outline-offset: 3px; }
.lus-ltr { direction: ltr; unicode-bidi: isolate; }
.lus-ink-dim { color: var(--lus-ink-dim); }
.lus-ink-faint { color: var(--lus-ink-faint); }
.lus-lead { font-size: var(--lus-fs-lead); line-height: 1.5; }

/* Lenis smooth-scroll required CSS (was missing → Lenis broke inside WP; this makes it work like localhost) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.lus-wrap { width: min(100% - var(--lus-gutter) * 2, var(--lus-maxw)); margin-inline: auto; }
.lus-chapter { position: relative; z-index: 10; padding-block: clamp(3.5rem, 8vh, 6.5rem); }

/* two crisp rules flanking every eyebrow, ABOVE the title */
.lus-overline {
  font-family: var(--lus-font-en); font-size: var(--lus-fs-overline); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--lus-cyan);
  direction: ltr; display: inline-flex; align-items: center; gap: 0.7em; margin: 0 0 var(--lus-space, 1rem);
}
.lus-overline::before, .lus-overline::after { content: ""; width: 2.6em; height: 2px; background: currentColor; flex: 0 0 auto; }

.lus-title { font-size: var(--lus-fs-h2); }
.lus-title .lus-line, .lus-line { display: block; }
.lus-accent { color: transparent; background: var(--lus-grad); -webkit-background-clip: text; background-clip: text; }

/* buttons */
.lus-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; padding: 0.95em 1.8em; border-radius: 999px; font-weight: 700; cursor: pointer; border: 0; transition: transform 0.6s var(--lus-ease), box-shadow 0.6s var(--lus-ease); }
.lus-btn-primary { color: var(--lus-ink); background: transparent; border: 1px solid rgba(10,31,60,0.32); box-shadow: none; }
.lus-btn-primary:hover { transform: translateY(-3px); border-color: var(--lus-ink); box-shadow: none; }
.lus-btn-ghost { color: var(--lus-ink); border: 1px solid var(--lus-line); background: transparent; }
.lus-btn-ghost:hover { border-color: var(--lus-cyan); transform: translateY(-3px); }

/* fixed chrome lives outside .lus-scope — give it the brand font + reset too */
.lus-nav, .lus-nav *, #lus-preloader, #lus-preloader *,
#lus-sound-toggle, #lus-sound-toggle *, #lus-lightbox, #lus-lightbox * { box-sizing: border-box; }
.lus-nav, #lus-preloader, #lus-lightbox { font-family: var(--lus-font-he); color: var(--lus-ink); direction: rtl; }

/* The [hidden] attribute MUST beat the display rules below. Without this, #lus-lightbox
   (position:fixed; inset:0; display:grid; opacity:0) stays laid out across the whole
   viewport while "hidden" and silently swallows every click on the page — which is what
   stopped the films from opening. Same trap for the preloader and the sound toggle.
   Scoped to our own elements so it can't affect the theme or other Elementor widgets. */
#lus-lightbox[hidden], #lus-preloader[hidden], #lus-sound-toggle[hidden],
#lus-scene-canvas[hidden], .lus-scope [hidden] { display: none !important; }

/* ---- Global chrome (fixed, from the shell/header widget) ---- */
.lus-bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 80% 8%, rgba(3,215,254,0.07), transparent 60%),
    radial-gradient(50vw 50vw at 10% 40%, rgba(244,129,121,0.06), transparent 60%),
    radial-gradient(60vw 60vw at 60% 100%, rgba(174,212,62,0.05), transparent 60%),
    #ffffff; }
#lus-scene-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* mobile-only floating logo (CSS, coloured SVG) — hidden on desktop where WebGL runs */
.lus-logo-float { position: fixed; inset: 0; z-index: 0; display: none; place-items: center; pointer-events: none; perspective: 1200px; }
.lus-logo-float .lus-float-mark { width: min(64vw, 300px); height: auto; opacity: 0.9; filter: drop-shadow(0 20px 50px rgba(3,215,254,0.25)); animation: lus-logo-spin 16s linear infinite; transform-style: preserve-3d; }
@keyframes lus-logo-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

#lus-preloader { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: #ffffff; transition: opacity 0.8s var(--lus-ease), visibility 0.8s; }
#lus-preloader.lus-done { opacity: 0; visibility: hidden; }
.lus-pl-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.lus-pl-mark { filter: drop-shadow(0 0 24px rgba(3,215,254,0.35)); animation: lus-pulse 2s var(--lus-ease) infinite; }
@keyframes lus-pulse { 50% { transform: scale(1.08); } }
.lus-pl-bar { width: min(46vw, 260px); height: 2px; background: var(--lus-line); border-radius: 2px; overflow: hidden; }
.lus-pl-fill { display: block; height: 100%; width: 0%; background: var(--lus-grad); }
.lus-pl-pct { font-family: var(--lus-font-en); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--lus-ink-dim); direction: ltr; }

#lus-sound-toggle { position: fixed; inset-block-end: clamp(1rem,3vw,2rem); inset-inline-start: clamp(1rem,3vw,2rem); z-index: 90; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--lus-line); background: rgba(255,255,255,0.78); backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; }
.lus-snd-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.lus-snd-bars i { width: 3px; height: 16px; background: var(--lus-cyan); border-radius: 2px; transform: scaleY(0.4); transform-origin: bottom; }
#lus-sound-toggle[aria-pressed="true"] .lus-snd-bars i { animation: lus-snd 0.9s var(--lus-ease) infinite; }
.lus-snd-bars i:nth-child(2){animation-delay:.15s} .lus-snd-bars i:nth-child(3){animation-delay:.3s} .lus-snd-bars i:nth-child(4){animation-delay:.45s}
@keyframes lus-snd { 0%,100%{transform:scaleY(0.3)} 50%{transform:scaleY(1)} }

/* ---- Header / nav ---- */
.lus-nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1rem,2vw,1.6rem) var(--lus-gutter); transition: background 0.4s, backdrop-filter 0.4s; }
.lus-nav.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); padding-block: 0.8rem; box-shadow: 0 1px 0 var(--lus-line); }
.lus-nav-logo { display: inline-flex; align-items: center; gap: 0.55em; font-size: 1.35rem; font-weight: 700; }
.lus-nav-logo img { height: 34px; width: auto; }
.lus-nav-links { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2.2rem); font-weight: 600; }
.lus-nav-links a { color: var(--lus-ink-dim); transition: color 0.3s; }
.lus-nav-links a:hover { color: var(--lus-ink); }
.lus-nav-cta { color: var(--lus-ink) !important; background: transparent; border: 1px solid rgba(10,31,60,0.32); padding: 0.55em 1.2em; border-radius: 999px; }
.lus-lang-btn { font-family: var(--lus-font-en); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--lus-ink-dim); border: 1px solid var(--lus-line); border-radius: 999px; width: 2.6em; height: 2.6em; background: transparent; cursor: pointer; }
.lus-burger { display: none; }

/* ---- Hero ---- */
.lus-hero { min-height: 100svh; display: flex; align-items: center; padding-block: clamp(6rem,12vh,9rem) 2.5rem; }
.lus-hero-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; max-width: min(100%, 62rem); }
.lus-hero .lus-title { font-size: var(--lus-fs-h1); max-width: 20ch; margin-block: 0.15em; }
.lus-hero-sub { max-width: 48ch; color: var(--lus-ink-dim); }
.lus-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-block-start: 1rem; }
.lus-scroll-hint { position: absolute; inset-block-end: 2rem; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6em; font-family: var(--lus-font-en); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--lus-ink-faint); }
.lus-scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--lus-cyan), transparent); animation: lus-scrolldown 1.8s var(--lus-ease) infinite; }
@keyframes lus-scrolldown { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---- Showcase (reel wall) ---- */
.lus-showcase-head { display: flex; flex-direction: column; gap: 1rem; max-width: 40ch; margin-block-end: 1.5rem; }
.lus-showcase-head .lus-title { max-width: 14ch; }
/* reels: scroll-linked right→left slide (JS), clipped. Fallback = native scroll strip. */
.lus-showcase { overflow-x: hidden; }
.lus-showcase-stage { display: block; }
.lus-reel-gallery { display: flex; align-items: center; gap: clamp(1rem,2vw,2rem); padding-inline: var(--lus-gutter); padding-block: 1.5rem; direction: ltr; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; will-change: transform; }
.lus-reel-gallery::-webkit-scrollbar { display: none; }
/* animated: the STAGE is a full-height pinned window; the GALLERY slides inside it via transform */
html.lus-fx .lus-showcase-stage { height: 100svh; display: flex; align-items: center; overflow: hidden; }
/* position:relative makes this the offsetParent of the reels, so the scroll math can
   read transform-free card positions off offsetLeft */
html.lus-fx .lus-reel-gallery { position: relative; overflow: visible; width: max-content; height: 100%; perspective: 1600px; }
.lus-reel-card { position: relative; flex: 0 0 auto; height: clamp(320px,66vh,640px); width: auto; aspect-ratio: 9/16; scroll-snap-align: center; border-radius: var(--lus-r-md); overflow: hidden; background: var(--lus-bg-elev); box-shadow: var(--lus-shadow); transform-style: preserve-3d; cursor: pointer; transition: transform 0.5s var(--lus-ease), box-shadow 0.5s var(--lus-ease); will-change: transform; }
.lus-reel-video { width: 100%; height: 100%; object-fit: cover; }
.lus-reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,10,25,0.65), transparent 42%); pointer-events: none; }
.lus-reel-title { position: absolute; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 2; font-weight: 700; font-size: 1rem; color: var(--lus-ink); text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.lus-reel-card:hover { box-shadow: 0 30px 80px rgba(10,31,60,0.22); }
.lus-reel-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.lus-reel-play span { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(3,215,254,0.9); color: var(--lus-navy-900); display: grid; place-items: center; font-size: 1.2rem; }
.lus-reel-card:hover .lus-reel-play, .lus-work-item:hover .lus-reel-play { opacity: 1; }
/* the ▶ must sit above the works tile's bottom gradient + meta row */
.lus-work-item .lus-reel-play { z-index: 3; }

/* ---- Works grid ---- */
.lus-works-head { display: flex; flex-direction: column; gap: 1rem; margin-block-end: 2.5rem; }
.lus-works-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1rem; }
.lus-works-filter button { padding: 0.5em 1.1em; border-radius: 999px; border: 1px solid var(--lus-line); color: var(--lus-ink-dim); font-weight: 600; font-size: 0.9rem; background: transparent; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.lus-works-filter button:hover { color: var(--lus-ink); border-color: var(--lus-cyan); }
.lus-works-filter button.is-active { color: var(--lus-ink); background: transparent; border-color: var(--lus-ink); }
/* Rhythm: one full-width landscape film, then a row of three portrait reels — repeating.
   No dense auto-flow: rows must follow the repeater order exactly (dense would backfill
   gaps and scramble the pattern while a category filter is active). */
.lus-works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem,1.4vw,1.4rem); align-items: start; }
.lus-work-item { position: relative; border-radius: var(--lus-r-md); overflow: hidden; background: var(--lus-bg-elev); box-shadow: var(--lus-shadow); cursor: pointer; grid-column: span 4; }
.lus-work-item[data-orient="landscape"] { grid-column: 1 / -1; }
/* lone square tile: centred instead of hugging the row start */
.lus-work-item[data-orient="square"] { grid-column: 5 / span 4; }
.lus-work-media { position: relative; width: 100%; aspect-ratio: 9/16; }
.lus-work-item[data-orient="landscape"] .lus-work-media { aspect-ratio: 16/9; }
.lus-work-item[data-orient="square"] .lus-work-media { aspect-ratio: 1; }
.lus-work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--lus-ease); }
.lus-work-item:hover .lus-work-media video { transform: scale(1.05); }
.lus-work-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,10,25,0.72), transparent 46%); pointer-events: none; }
.lus-work-meta { position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.lus-work-meta h3 { font-size: 1.05rem; }
.lus-work-meta span { font-family: var(--lus-font-en); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lus-cyan); direction: ltr; }
.lus-work-item.is-hidden { display: none; }

/* ---- Clients marquee ---- */
.lus-clients { text-align: center; }
.lus-clients .lus-overline { display: flex; justify-content: center; width: 100%; margin-block-end: 1.5rem; }
.lus-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lus-marquee-track { display: inline-flex; gap: clamp(2rem,5vw,5rem); white-space: nowrap; animation: lus-marquee 32s linear infinite; }
.lus-marquee-track span { font-size: clamp(1.4rem,3vw,2.4rem); font-weight: 700; color: var(--lus-ink-faint); transition: color 0.3s; }
.lus-marquee-track span:hover { color: var(--lus-cyan); }
@keyframes lus-marquee { to { transform: translateX(50%); } }

/* ---- Services ---- */
.lus-services-title { max-width: 12ch; margin-block: 1rem 2.5rem; }
.lus-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem,2vw,1.6rem); }
.lus-svc-card { padding: 1.5rem; border-radius: var(--lus-r-md); background: var(--lus-bg-elev); border: 1px solid var(--lus-line); position: relative; overflow: hidden; transition: transform 0.5s var(--lus-ease), border-color 0.5s; }
.lus-svc-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--lus-svc-accent, var(--lus-cyan)); }
.lus-svc-card h3 { margin-block: 0.2em 0.5em; font-size: var(--lus-fs-h3); }
.lus-svc-card:hover { transform: translateY(-6px); border-color: rgba(160,190,230,0.3); }

/* ---- Testimonials ---- */
.lus-tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(1rem,2vw,1.6rem); margin-block-start: 2.5rem; }
.lus-tst-card { padding: 1.5rem; border-radius: var(--lus-r-md); background: var(--lus-bg-elev); border: 1px solid var(--lus-line); }
.lus-tst-card p { font-size: var(--lus-fs-lead); line-height: 1.5; }
.lus-tst-card cite { display: block; margin-block-start: 1rem; color: var(--lus-cyan); font-style: normal; font-weight: 600; font-size: 0.95rem; }

/* ---- CTA + form ---- */
.lus-cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.lus-cta-copy .lus-title { max-width: 12ch; margin-block: 1rem 1.5rem; }
.lus-lead-form { display: grid; gap: 1rem; padding: 2.5rem; border-radius: var(--lus-r-lg); background: rgba(255,255,255,0.72); border: 1px solid var(--lus-line); backdrop-filter: blur(10px); box-shadow: var(--lus-shadow); }
.lus-field { display: grid; gap: 0.4em; font-size: 0.9rem; color: var(--lus-ink-dim); }
.lus-field input { padding: 0.9em 1em; border-radius: var(--lus-r-sm); background: #ffffff; border: 1px solid var(--lus-line); color: var(--lus-ink); font: inherit; transition: border-color 0.3s; }
.lus-field input:focus { border-color: var(--lus-cyan); outline: none; }
.lus-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lus-check { display: flex; align-items: flex-start; gap: 0.6em; font-size: 0.85rem; color: var(--lus-ink-dim); }
.lus-check input { margin-block-start: 0.2em; accent-color: var(--lus-cyan); }
.lus-lead-form .lus-btn { width: 100%; }
.lus-form-or { text-align: center; color: var(--lus-ink-faint); font-size: 0.85rem; }
.lus-form-status { min-height: 1.2em; text-align: center; font-size: 0.9rem; }
.lus-form-status.is-ok { color: var(--lus-lime); } .lus-form-status.is-err { color: var(--lus-coral); }

/* ---- Footer ---- */
.lus-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; border-block-start: 1px solid var(--lus-line); padding-block-start: 2.5rem; }
.lus-footer-logo { font-size: 1.6rem; font-weight: 700; }
.lus-footer-social { display: flex; gap: 1.5rem; font-family: var(--lus-font-en); font-size: 0.9rem; }
.lus-footer-social a { color: var(--lus-ink-dim); transition: color 0.3s; }
.lus-footer-social a:hover { color: var(--lus-cyan); }
.lus-footer-legal { text-align: center; margin-block-start: 2.5rem; font-size: 0.8rem; }

/* ---- Lightbox ---- */
#lus-lightbox { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.4s; }
#lus-lightbox.is-open { opacity: 1; }
.lus-lb-close { position: absolute; inset-block-start: 1.5rem; inset-inline-end: 1.5rem; font-size: 1.6rem; color: var(--lus-ink); width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--lus-line); background: transparent; cursor: pointer; }
.lus-lb-stage video { max-height: 82vh; max-width: 90vw; border-radius: var(--lus-r-md); box-shadow: var(--lus-shadow); }

/* ---- Reveal gate (only when JS enabled the animations) ---- */
html.lus-fx .lus-reveal { opacity: 0; transform: translateY(30px); }
html.lus-fx .lus-works-grid.lus-reveal-on .lus-work-item { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--lus-ease), transform 0.7s var(--lus-ease); }
html.lus-fx .lus-works-grid.lus-reveal-on .lus-work-item.is-in { opacity: 1; transform: none; }

/* ---- Editor preview: neutralize pins/fixed so sections stay flat & editable ---- */
.elementor-editor-active .lus-showcase-stage, body.elementor-editor-preview .lus-showcase-stage { height: auto; overflow: visible; }
.elementor-editor-active .lus-reel-gallery, body.elementor-editor-preview .lus-reel-gallery { overflow-x: auto; }
.elementor-editor-active #lus-preloader,
body.elementor-editor-preview #lus-preloader { display: none !important; }
.elementor-editor-active .lus-nav, .elementor-editor-active .lus-bg-field, .elementor-editor-active #lus-scene-canvas,
body.elementor-editor-preview .lus-nav, body.elementor-editor-preview .lus-bg-field, body.elementor-editor-preview #lus-scene-canvas { position: absolute; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  /* keep the 3-up reel rows; landscape films stay full-width */
  .lus-work-item[data-orient="landscape"] .lus-work-media { aspect-ratio: 16/10; }
}
@media (max-width: 860px) {
  .lus-chapter { padding-block: 2.5rem; }
  .lus-nav-links a:not(.lus-nav-cta) { display: none; }
  .lus-nav-logo { font-size: 1.15rem; }
  .lus-nav-cta { padding: 0.5em 1em; font-size: 0.9rem; }
  .lus-hero { min-height: 92svh; padding-block: clamp(5rem,16vh,7rem) 1.5rem; }
  .lus-hero-grid { max-width: none; gap: 1rem; }
  .lus-hero .lus-title, .lus-hero-sub { max-width: none; }
  .lus-hero-actions { width: 100%; }
  .lus-hero-actions .lus-btn { flex: 1 1 auto; }
  .lus-scroll-hint { display: none; }
  /* no section may cause the whole page to shift left/right on mobile
     (showcase excluded — its own stage clips, and overflow here would fight the pin) */
  .lus-chapter:not(.lus-showcase) { overflow-x: hidden; }
  .lus-reel-gallery { overscroll-behavior: contain; }
  .lus-reel-card { height: clamp(300px, 52vh, 460px); }
  .lus-reel-card:hover { box-shadow: var(--lus-shadow); }
  .lus-reel-play { opacity: 1; }
  /* reels stay 3-up so the landscape→trio rhythm survives; a 2-up rule would orphan
     the third reel of each trio onto its own row and merge the groups */
  .lus-work-meta h3 { font-size: 0.82rem; }
  .lus-work-meta { padding: 0.7rem 0.8rem; }
  .lus-cta-grid { grid-template-columns: 1fr; }
  .lus-lead-form { padding: 1.5rem; }
  .lus-footer-grid { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .lus-marquee-track span { font-size: clamp(1.1rem,6vw,1.7rem); }
}
@media (max-width: 520px) {
  .lus-work-item, .lus-work-item[data-orient="square"] { grid-column: 1 / -1; }
  /* no reel width override — the reels keep their 9:16 shape so the strip reads as a row
     of reels sliding past, and the next one peeks in from the right */
  .lus-svc-grid, .lus-tst-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lus-marquee-track, .lus-pl-mark, .lus-scroll-hint i, .lus-snd-bars i { animation: none !important; }
  html.lus-fx .lus-reveal { opacity: 1 !important; transform: none !important; }
}


/* ============================================================================
 * LOGO RIVER — Leadus · TRUSTED BY (class-lus-logo-river.php)
 * Three rails of client logos drifting at their own speeds, the middle one against
 * the flow, with scroll velocity added on top by initLogoRiver() in lus-animations.js.
 * Replaces what the old text marquee (.lus-clients) was standing in for.
 * ========================================================================== */
.lus-lr-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  background: #f6f4f0;                     /* paper tone; editable per instance */
  overflow: hidden;                        /* the rails run wider than the page on purpose */
}
.lus-lr-head {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; text-align: center;
}
.lus-lr-head .lus-title { max-width: 22ch; }
.lus-lr-sub { color: var(--lus-ink-dim); font-size: 0.98rem; }

.lus-lr-river {
  display: grid; gap: clamp(0.55rem, 1.1vw, 0.9rem);
  margin-block-start: 2.5rem;
  /* LTR on the CONTAINER, not just the rails: a `width: max-content` row inside an RTL
     parent is placed at the cross-start — i.e. flush RIGHT — and overflows leftward off
     screen, leaving the strip looking truncated. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lus-lr-rail {
  display: flex; align-items: stretch; width: max-content;
  gap: clamp(0.55rem, 1.1vw, 0.9rem);
  will-change: transform;
  /* --lus-lr-x / --lus-lr-skew are written by the engine. Keeping them as separate custom
     properties means the engine never owns (and so can never clobber) the whole transform. */
  transform: translate3d(var(--lus-lr-x, 0px), 0, 0) skewX(var(--lus-lr-skew, 0deg));
}

.lus-lr-chip {
  flex: 0 0 auto;
  display: grid; grid-template-rows: 1fr auto; align-items: center;
  gap: 0.5rem;
  width: clamp(150px, 15vw, 218px);
  padding: clamp(0.85rem, 1.5vw, 1.35rem);
  border-radius: var(--lus-r-md);
  background: #fff;
  border: 1px solid rgba(10, 31, 60, 0.1);
  box-shadow: 0 2px 10px rgba(10, 31, 60, 0.05);
  transition: transform 0.45s var(--lus-ease), box-shadow 0.45s var(--lus-ease),
              border-color 0.45s var(--lus-ease);
}
/* The mark box has a DEFINITE height so the image inside can fill it with `contain`.
   As a plain block child, `100%`/`100%` resolve against the padded content box, which is
   what makes each mark scale to the largest size that fits whatever its aspect ratio.
   (A centred grid item with `max-height: 100%` resolves against the grid AREA instead and
   spills a padding's worth past the chip.) */
/* Taller than it looks like it needs to be, on purpose. With `object-fit: contain` a
   near-square mark is HEIGHT-constrained, so in a 66px box a 509x494 logo drew only ~68px wide
   inside a 171px chip and read as a speck next to the wide wordmarks. */
.lus-lr-mark { display: block; height: clamp(54px, 5.6vw, 82px); }
.lus-lr-mark img {
  /* !important on BOTH axes, and it is load-bearing. Elementor's and the theme's stylesheets
     load after ours and push `img { height: auto }`; without this the mark took its NATURAL
     aspect height instead of the box height, so `object-fit: contain` never engaged — wide
     marks sat short and tall ones (509x494 rendering 171x166 in a 66px box) blew straight out
     of the chip. Measured on the live page before the fix. */
  width: 100% !important; height: 100% !important; max-width: none; object-fit: contain;
  opacity: 0.72;
  transition: filter 0.45s var(--lus-ease), opacity 0.45s var(--lus-ease);
}
.lus-lr-gray .lus-lr-mark img { filter: grayscale(1); }
.lus-lr-gray .lus-lr-chip[data-tone="dark"] .lus-lr-mark img { filter: grayscale(1) brightness(1.6); }

.lus-lr-name {
  font-size: 0.76rem; font-weight: 600; line-height: 1.25;
  text-align: center; color: var(--lus-ink-faint);
  direction: rtl;                          /* the names are Hebrew inside the LTR rail */
  transition: color 0.45s var(--lus-ease);
  /* two lines maximum, so one long office name cannot make every chip in the rail taller */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lus-lr-chip[data-tone="dark"] .lus-lr-name { color: rgba(255, 255, 255, 0.55); }

.lus-lr-chip:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 31, 60, 0.14);
  border-color: rgba(10, 31, 60, 0.32);
}
.lus-lr-chip:hover .lus-lr-mark img { filter: none; opacity: 1; }
.lus-lr-chip:hover .lus-lr-name { color: var(--lus-ink); }
.lus-lr-chip[data-tone="dark"]:hover .lus-lr-name { color: #fff; }

/* ---- Touch: there is no hover, so the marks must already be legible and the hover-lift
   must not stick after a tap. ---- */
@media (hover: none) {
  .lus-lr-mark img { filter: none !important; opacity: 0.88; }
  .lus-lr-name { color: var(--lus-ink-dim); }
  .lus-lr-chip:hover {
    transform: none; box-shadow: 0 2px 10px rgba(10, 31, 60, 0.05);
    border-color: rgba(10, 31, 60, 0.1);
  }
}

/* ---- No motion engine — editor canvas, reduced motion, or GSAP missing (all of which
   simply mean the `lus-fx` gate was never added): the rails become a plain wrapping wall.
   Without this they would sit as three rows clipped at the page edge with most of the marks
   unreachable, and the section would be uneditable in Elementor. ---- */
html:not(.lus-fx) .lus-lr-river {
  direction: rtl; -webkit-mask-image: none; mask-image: none;
}
html:not(.lus-fx) .lus-lr-rail {
  flex-wrap: wrap; width: auto; justify-content: center;
  transform: none !important;
}
/* the duplicate pass exists only to make the loop seamless — with no loop it is noise */
html:not(.lus-fx) .lus-lr-chip[aria-hidden="true"] { display: none; }

@media (max-width: 860px) {
  .lus-lr-chip { width: clamp(126px, 38vw, 158px); padding: 0.75rem; gap: 0.4rem; }
  .lus-lr-mark { height: clamp(44px, 11vw, 56px); }
  .lus-lr-name { font-size: 0.7rem; }
  .lus-lr-river { gap: 0.5rem; margin-block-start: 1.8rem; }
}
