/* ============================================================================
 * lus-studio.css — the Leadus STUDIO page, ported for Elementor.
 *
 * Loads after lus-widgets.css and reuses its tokens, so the studio page reads as the same
 * family as /after/. Everything here is prefixed `lus-st-` so it can never collide with the
 * After widgets, and every rule is scoped inside `.lus-scope` (never global body/*) so the
 * plugin cannot leak into the host theme.
 *
 * Pre-animation hidden states live ONLY under html.lus-fx — the gate that lus-animations.js
 * adds on the live frontend only. In the Elementor canvas, with JS off, or under
 * prefers-reduced-motion, every section renders flat, visible and editable.
 * ========================================================================== */

:root {
  /* studio-only additions: the paper tones the print chapters sit on */
  --lus-paper: #f6f4f0;
  --lus-paper-deep: #efeae2;
  --lus-paper-line: rgba(10, 31, 60, 0.1);
  --lus-line-strong: rgba(10, 31, 60, 0.32);
  --lus-shadow-lift: 0 30px 80px rgba(10, 31, 60, 0.22);
  /* the hero headline shares a row with the showcase column, so it gets its own scale
     rather than the full-bleed --lus-fs-h1 (which wrapped a two-line headline onto three) */
  --lus-fs-h1-hero: clamp(2.3rem, 5.1vw, 4.5rem);
}

.lus-st { position: relative; }
.lus-st .lus-st-wrap { width: min(100% - var(--lus-gutter) * 2, var(--lus-maxw)); margin-inline: auto; }
.lus-st-lead { font-size: var(--lus-fs-lead); line-height: 1.5; }
.lus-st-dim { color: var(--lus-ink-dim); }

/* ---- Reveals.
 * The After plugin animates `.lus-reveal` with a GSAP tween, so lus-widgets.css only ever
 * declares the HIDDEN half (`html.lus-fx .lus-reveal { opacity: 0 }`) and there is no
 * class-based way back. lus-studio.js reveals by adding `is-in`, so the shown half has to be
 * declared here — without it every studio reveal got the class and stayed at opacity 0.
 * Specificity deliberately exceeds `html.lus-fx .lus-reveal` (2 classes + type) so it wins. */
html.lus-fx .lus-st .lus-reveal.is-in,
html.lus-fx .lus-st-cat-stack.lus-reveal.is-in {
  opacity: 1 !important; transform: none !important;
  transition: opacity 0.9s var(--lus-ease), transform 0.9s var(--lus-ease);
}

/* ============================================================ 1 · HERO
 * Minimal type beside a living column of real branding work.
 * The work sits in its OWN grid cell rather than behind the copy: veiled enough for a
 * headline to stay readable is veiled enough to be invisible, and visible enough to enjoy
 * is visible enough to fight the headline. Out here it can never overlap a single word. */
.lus-st-hero {
  min-height: 100lvh; min-height: 100vh;
  display: flex; align-items: center;
  padding-block: clamp(5rem, 11vh, 8rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.lus-st-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  /* minmax(0, …), never a bare fr: a bare `1fr` floors at the track's min-content, and this
     column holds full-resolution mockups whose intrinsic width would blow the grid apart */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem);
}
.lus-st-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.lus-st-hero-copy .lus-title { font-size: var(--lus-fs-h1-hero); max-width: 13ch; }
.lus-st-hero-sub { max-width: 34ch; color: var(--lus-ink-dim); font-size: var(--lus-fs-lead); line-height: 1.5; }
.lus-st-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-block-start: 0.5rem; }

.lus-st-wall {
  position: relative;
  display: flex; gap: clamp(0.5rem, 1vw, 0.9rem);
  height: min(74lvh, 620px); height: min(74vh, 620px);
  overflow: hidden;
  /* LTR on the CONTAINER, not just the lanes: a `width: max-content` row inside an RTL
     parent is placed at the cross-start — flush RIGHT — and overflows leftward off screen,
     which reads as the strip being truncated a few tiles in. */
  direction: ltr;
  /* --lus-st-wy is the parallax offset written by JS; it lives in its own property so the
     tilt and scale here can never be clobbered by whatever writes the offset */
  transform: translateY(var(--lus-st-wy, 0px)) rotate(-4deg) scale(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
}
.lus-st-lane {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: clamp(0.5rem, 1vw, 0.9rem);
  height: max-content; will-change: transform;
  animation: lus-st-drift-y var(--lus-st-dur, 64s) linear infinite;
}
.lus-st-lane[data-dir="back"] { animation-direction: reverse; }
/* each lane holds its set twice, so -50% lands exactly on the seam and the loop is invisible */
@keyframes lus-st-drift-y { to { transform: translate3d(0, -50%, 0); } }
@keyframes lus-st-drift-x { to { transform: translate3d(-50%, 0, 0); } }
.lus-st-lane img {
  /* !important, because `.elementor img { height: auto }` has the same specificity as
     `.lus-st-lane img` and loads later, so it wins on source order — including over the
     mobile rule below. Measured live: a lane image computed 540x960 instead of the intended
     auto x 122, which is what made the mobile hero 1428px tall. */
  width: 100% !important; height: auto !important; flex: 0 0 auto;
  border-radius: var(--lus-r-sm); object-fit: cover;
  border: 1px solid var(--lus-paper-line);
  box-shadow: 0 10px 30px rgba(10, 31, 60, 0.1);
}
.lus-st-wall .lus-st-lane:nth-child(2) { opacity: 0.9; }
.lus-st-wall::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%);
}
.lus-st-scroll {
  position: absolute; inset-block-end: 1.6rem; z-index: 3;
  /* physical centring: inset-inline-start:50% flips to the right edge under RTL */
  left: 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); direction: ltr;
}
.lus-st-scroll i {
  width: 1px; height: 42px; background: linear-gradient(var(--lus-cyan), transparent);
  animation: lus-st-scrolldown 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes lus-st-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; }
}

/* ============================================================ 2 · STATEMENT */
.lus-st-statement { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); text-align: center; }
.lus-st-statement .lus-overline { display: flex; justify-content: center; }
/* The centring is declared with a doubled class and !important on the inline margins.
   A single-class rule loses to the theme's and Elementor's own element-level `p` margin rules
   (higher specificity, loaded later), which reset margin-left/right to 0 — and the moment the
   `auto` is gone a max-width block stops being centred and slams against the RTL start edge.
   Measured on the live page: marginLeft/Right both 0, the paragraph flush right. */
.lus-st .lus-st-lit.lus-st-lit {
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.32; font-weight: 700; letter-spacing: -0.015em;
  max-width: 30ch;
  margin-block: 1.5rem 0;
  margin-inline: auto !important;
  text-align: center;
}
/* JS writes opacity into each word's inline style with !important — a class toggle would
   have to out-rank this base rule in the cascade, and the moment it does not the words stay
   pale and the whole effect looks like it simply never ran */
.lus-st-lit .lus-st-w { opacity: 0.16; transition: opacity 0.45s var(--lus-ease); }
html:not(.lus-fx) .lus-st-lit .lus-st-w { opacity: 1 !important; }

.lus-st-pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3.5rem); margin-block-start: clamp(2.5rem, 5vw, 4rem);
  text-align: start;
}
.lus-st-pillar { display: grid; gap: 0.5em; position: relative; padding-block-start: 1.5rem; }
.lus-st-pillar::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
  background: var(--lus-st-ink, var(--lus-cyan));
}
.lus-st-pillar .lus-st-n {
  font-family: var(--lus-font-en); font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--lus-ink-faint); direction: ltr;
}
.lus-st-pillar h3 { font-size: clamp(1.1rem, 1.9vw, 1.45rem); }
.lus-st-pillar p { color: var(--lus-ink-dim); font-size: 0.98rem; }

/* ============================================================ 3 · CASE CAROUSEL
 * RTL feel: the first card hugs the RIGHT edge and the track travels right → left, so every
 * card enters from the side Hebrew reads from. */
.lus-st-cases { padding-block-start: clamp(2rem, 4vw, 2.5rem); }
.lus-st-cases-head { display: flex; flex-direction: column; gap: 1rem; max-width: 44ch; margin-block-end: 1.5rem; }
.lus-st-cases-head .lus-title { max-width: 16ch; }
.lus-st-hint {
  font-family: var(--lus-font-en); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--lus-ink-faint); direction: ltr;
  display: inline-flex; align-items: center; gap: 0.6em;
}
.lus-st-hint::after { content: ""; width: 3.4em; height: 1px; background: linear-gradient(90deg, var(--lus-cyan), transparent); }

/* 100lvh is the only unit that both fills the screen when the address bar hides AND never
   resizes mid-scroll, which a pinned stage cannot tolerate */
.lus-st-stage { height: 100lvh; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.lus-st-track {
  position: relative;    /* offsetParent for the scroll maths: offsetLeft/offsetWidth stay
                            transform-free while the track itself is translated */
  display: flex; align-items: center; height: 100%;
  gap: clamp(1rem, 2.2vw, 2.4rem); padding-inline: var(--lus-gutter);
  perspective: 1800px;
  direction: ltr;        /* visual media strip; the travel maths stays LTR */
  will-change: transform;
}
.lus-st-card {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 46vw, 620px);
  height: clamp(400px, 72vh, 660px);
  border-radius: var(--lus-r-lg); overflow: hidden;
  background: var(--lus-paper); border: 1px solid var(--lus-paper-line);
  box-shadow: var(--lus-shadow);
  transform-style: preserve-3d; cursor: pointer;
  transition: box-shadow 0.5s var(--lus-ease), filter 0.6s var(--lus-ease);
  will-change: transform;
  filter: saturate(0.42) brightness(1.04);   /* off-centre cards recede */
}
.lus-st-card[data-center] { filter: none; box-shadow: var(--lus-shadow-lift); }
.lus-st-ink { position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; z-index: 4; background: var(--lus-st-ink, var(--lus-cyan)); }

/* The collage: a WIDE lead shot across the top, two supports below. The lead cell is
   deliberately landscape — these sources are mostly square or wide (shop signage, flat
   lays), and `cover` on a narrow tall box sliced brand names in half ("VINO·SAPIR" rendered
   as "NO·SAP"). Matching the cell shape to the source shape keeps the crop honest. */
.lus-st-collage {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 2px; background: var(--lus-paper-deep);
}
.lus-st-collage figure { position: relative; overflow: hidden; margin: 0; }
.lus-st-collage .lus-st-cc-lead { grid-column: 1 / -1; }
/* width/height are forced because Elementor, Hello Elementor and WooCommerce all push
   `img { height: auto }` from stylesheets that load after ours */
.lus-st-collage img {
  width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; object-position: center;
  transition: transform 0.9s var(--lus-ease);
}
.lus-st-card:hover .lus-st-cc-lead img { transform: scale(1.04); }
.lus-st-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 18, 38, 0.95) 0%, rgba(4, 18, 38, 0.8) 11%,
              rgba(4, 18, 38, 0.42) 22%, rgba(4, 18, 38, 0.1) 32%, transparent 42%);
}
.lus-st-card-meta {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: clamp(1.1rem, 2vw, 1.8rem); color: #fff;
}
.lus-st-card-text { min-width: 0; }
.lus-st-card-meta h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); color: #fff; }
.lus-st-card-cat {
  display: block; margin-block-start: 0.3em;
  font-family: var(--lus-font-en); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; direction: ltr; color: var(--lus-st-ink, var(--lus-cyan));
}
.lus-st-card-kind { display: block; margin-block-start: 0.15em; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.lus-st-open {
  flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42); display: grid; place-items: center;
  font-size: 0.95rem; color: #fff; transition: background 0.4s, border-color 0.4s;
}
.lus-st-card:hover .lus-st-open { background: var(--lus-st-ink, var(--lus-cyan)); border-color: transparent; color: var(--lus-navy-900); }

.lus-st-rail {
  position: relative; height: 2px; background: var(--lus-line);
  width: min(100% - var(--lus-gutter) * 2, var(--lus-maxw));
  margin: 1rem auto clamp(2.5rem, 5vw, 4rem);
  border-radius: 2px; overflow: hidden;
}
.lus-st-rail span {
  position: absolute; inset-block: 0; left: 0; width: 12%;
  background: var(--lus-grad); border-radius: 2px;
  transform: translateX(var(--lus-st-rail-x, 0%));
}

/* No pin — editor canvas, reduced motion, or GSAP missing: the strip becomes a native snap
   rail. Without this the whole wall sits clipped inside the stage with every card past the
   first unreachable, and the section is uneditable. */
html:not(.lus-fx) .lus-st-stage { height: auto; overflow: visible; }
html:not(.lus-fx) .lus-st-track {
  height: auto; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  perspective: none; padding-block: 1.5rem; scrollbar-width: none;
}
html:not(.lus-fx) .lus-st-track::-webkit-scrollbar { display: none; }
html:not(.lus-fx) .lus-st-card { scroll-snap-align: center; transform: none !important; filter: none; }
html:not(.lus-fx) .lus-st-rail { display: none; }

/* ============================================================ 4 · GALLERY */
.lus-st-gallery {
  padding-block: clamp(2rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6.5rem);
  /* `overflow-x: clip`, and it is load-bearing. A multi-column container with the default
     `column-fill: balance` produces a balancing overflow column, and on an RTL page that
     column extends LEFTWARD past the container — measured at 20px of real document scroll.
     The static build hides this behind a global `body { overflow-x: clip }`, which a plugin
     must never set (it would reach into the host theme), so the guard belongs on our own
     section. `clip` rather than `hidden`: it blocks the overflow without creating a scroll
     container, so nothing here can become independently scrollable. */
  overflow-x: clip;
}
.lus-st-gal-head { display: flex; flex-direction: column; gap: 1rem; margin-block-end: 2.5rem; }
.lus-st-gal-head .lus-title { max-width: 20ch; }

/* Filter chips. These are <button>s, and the target theme's global button style (Hello
   Elementor forces a pink border AND a pink colour on every button, from a reset that loads
   after ours) would leak straight in. Hard-reset every button property. */
.lus-st-filter { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-block-start: 1rem; }
.lus-st-filter button.lus-st-chip {
  appearance: none !important;
  background: transparent !important;
  border: 1px solid var(--lus-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  outline: none;
  color: var(--lus-ink-dim) !important;
  font-family: var(--lus-font-he); font-weight: 600; font-size: 0.92rem;
  padding: 0.55em 1.15em; cursor: pointer;
  /* width/display/flex have to be forced too, not just the paint properties. The theme styles
     buttons as full-width blocks (measured live: every chip 1280px wide, display:flex), which
     stacked the five chips one under the other instead of laying them in a row. */
  display: inline-flex !important;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  flex: 0 0 auto;
  align-items: center; gap: 0.5em;
  transition: color 0.3s, border-color 0.3s;
}
.lus-st-filter button.lus-st-chip:hover { color: var(--lus-ink) !important; border-color: var(--lus-line-strong) !important; }
.lus-st-filter button.lus-st-chip.is-active { color: var(--lus-ink) !important; border-color: var(--lus-ink) !important; }
.lus-st-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--lus-st-ink, var(--lus-ink-faint)); transition: transform 0.3s var(--lus-ease); }
.lus-st-chip.is-active .lus-st-dot { transform: scale(1.5); }
.lus-st-chip .lus-st-cn { font-family: var(--lus-font-en); font-size: 0.7rem; color: var(--lus-ink-faint); direction: ltr; }
/* No `direction: ltr` on the counter: forcing LTR aligns its text to the LEFT of an RTL
   column. The content is pure latin, so bidi renders it correctly either way. */
.lus-st-count { font-family: var(--lus-font-en); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lus-ink-faint); margin-block-start: 1rem; }

/* Masonry via multi-column, deliberately NOT CSS grid. A branding portfolio mixes squares,
   portraits and panoramas; in a 12-col grid that mix leaves dead whitespace under every
   short tile, and the usual cure (`grid-auto-flow: dense`) scrambles the reading order the
   moment a filter hides part of the set. */
.lus-st-grid { --lus-st-gap: clamp(0.7rem, 1.3vw, 1.3rem); column-count: 3; column-gap: var(--lus-st-gap); }
.lus-st-item {
  position: relative; display: block; width: 100%;
  margin-block-end: var(--lus-st-gap);
  break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: var(--lus-r-md); overflow: hidden;
  background: var(--lus-paper-deep); box-shadow: var(--lus-shadow);
  cursor: pointer; border: 1px solid var(--lus-paper-line);
  transition: opacity 0.45s var(--lus-ease), transform 0.45s var(--lus-ease);
}
/* `display: block` on the media box is load-bearing: `aspect-ratio` is IGNORED on a
   non-replaced inline box, so as a plain <span> this had no height until its image decoded.
   In a multi-column container that is fatal — the balancer sees near-zero tile heights,
   cannot fit the set, and spills into dozens of overflow columns, which on an RTL page is
   thousands of pixels of horizontal scroll. */
.lus-st-media { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.lus-st-item[data-ratio="1"]    .lus-st-media { aspect-ratio: 1; }
.lus-st-item[data-ratio="4-5"]  .lus-st-media { aspect-ratio: 4 / 5; }
.lus-st-item[data-ratio="3-4"]  .lus-st-media { aspect-ratio: 3 / 4; }
.lus-st-item[data-ratio="9-16"] .lus-st-media { aspect-ratio: 9 / 16; }
.lus-st-item[data-ratio="4-3"]  .lus-st-media { aspect-ratio: 4 / 3; }
.lus-st-item[data-ratio="16-9"] .lus-st-media { aspect-ratio: 16 / 9; }
.lus-st-item[data-ratio="21-9"] .lus-st-media { aspect-ratio: 21 / 9; }
.lus-st-media img {
  width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; object-position: center;
  transition: transform 0.7s var(--lus-ease);
}
.lus-st-item:hover .lus-st-media img { transform: scale(1.045); }
.lus-st-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(4, 18, 38, 0.9) 0%, rgba(4, 18, 38, 0.62) 14%,
              rgba(4, 18, 38, 0.22) 32%, transparent 58%);
}
/* the meta needs an explicit z-index: an <img> sibling with no stacking context swallows
   anything that merely comes later in the DOM */
.lus-st-gal-meta {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 0.8rem; padding: 0.9rem 1.05rem; color: #fff;
}
.lus-st-gal-text { display: block; min-width: 0; }
.lus-st-gal-meta h3 { font-size: 1rem; font-weight: 700; color: #fff; }
.lus-st-gal-cat {
  font-family: var(--lus-font-en); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; direction: ltr; color: var(--lus-st-ink, var(--lus-cyan));
  display: block; margin-block-start: 0.2em;
}
.lus-st-zoom {
  flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); display: grid; place-items: center;
  font-size: 0.85rem; color: #fff; transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.lus-st-item:hover .lus-st-zoom { background: #fff; border-color: #fff; color: var(--lus-navy-900); }
/* two independent hide reasons, in separate classes so they can never overwrite each
   other's state — a tile shows only when it passes both */
.lus-st-item.is-filtered { display: none; }
.lus-st-item.is-beyond { display: none; }
.lus-st-item.is-fading { opacity: 0; transform: scale(0.965); }
html.lus-fx .lus-st-grid .lus-st-item { opacity: 0; transform: translateY(26px); }
html.lus-fx .lus-st-grid .lus-st-item.is-in { opacity: 1; transform: none; }

/* Show-more. Gated on `lus-st-js` — the flag the gallery script sets — and NOT on the
   animation gate: batching works fine under reduced motion, and tying the button to the
   wrong flag hides it while the batch stays, stranding most of the work. */
.lus-st-more { display: none; }
html.lus-st-js .lus-st-more { display: flex; justify-content: center; margin-block-start: 2.5rem; }
html.lus-st-js .lus-st-more.is-done { display: none; }
.lus-st-more .lus-st-btn { min-width: 15rem; }
.lus-st-mn { color: var(--lus-ink-faint); font-family: var(--lus-font-en); font-size: 0.82rem; }

/* ============================================================ 5 · SERVICES */
.lus-st-services { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6.5rem); }
.lus-st-svc-head { display: flex; flex-direction: column; gap: 1rem; }
.lus-st-svc-head .lus-title { max-width: 16ch; margin-block: 1rem 2.5rem; }
/* 330px, not 255: at 255 the track resolved to four columns and six cards laid out 4 + 2,
   leaving a hole beside the last row. 330 gives three, so six cards read as two even rows. */
.lus-st-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.lus-st-svc {
  position: relative; overflow: hidden;
  padding: 2.5rem 1.5rem 1.5rem;
  border-radius: var(--lus-r-md); background: var(--lus-bg-elev); border: 1px solid var(--lus-line);
  transition: transform 0.5s var(--lus-ease), border-color 0.5s, box-shadow 0.5s var(--lus-ease);
}
.lus-st-svc::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--lus-st-ink, var(--lus-cyan)); }
.lus-st-svc .lus-st-n { font-family: var(--lus-font-en); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--lus-ink-faint); direction: ltr; }
.lus-st-svc h3 { margin-block: 0.35em 0.5em; font-size: var(--lus-fs-h3); }
.lus-st-svc p { color: var(--lus-ink-dim); font-size: 0.98rem; }
.lus-st-svc:hover { transform: translateY(-6px); border-color: var(--lus-line-strong); box-shadow: var(--lus-shadow); }

/* ============================================================ 6 · CATALOGUE */
.lus-st-catalog {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: linear-gradient(180deg, transparent, var(--lus-paper) 14%, var(--lus-paper) 86%, transparent);
}
.lus-st-cat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lus-st-cat-copy { display: grid; gap: 1rem; align-content: center; }
.lus-st-cat-copy .lus-title { max-width: 15ch; }
.lus-st-cat-copy .lus-st-lead { color: var(--lus-ink-dim); max-width: 40ch; }
.lus-st-cat-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lus-st-cat-list li {
  font-size: 0.86rem; font-weight: 600; color: var(--lus-ink-dim);
  border: 1px solid var(--lus-paper-line); border-radius: 999px; padding: 0.42em 0.95em;
  background: rgba(255, 255, 255, 0.6);
}
.lus-st-cat-stack { position: relative; aspect-ratio: 4 / 3.4; perspective: 1400px; }
.lus-st-sheet {
  position: absolute; overflow: hidden;
  border-radius: var(--lus-r-md); box-shadow: var(--lus-shadow);
  background: #fff; border: 1px solid var(--lus-paper-line);
  will-change: transform;
}
.lus-st-sheet img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center; }
.lus-st-sheet[data-depth="0"] { inset: 8% 4% 6% 22%; z-index: 3; }
.lus-st-sheet[data-depth="1"] { inset: 2% 20% 22% 6%; z-index: 2; }
.lus-st-sheet[data-depth="2"] { inset: 26% 26% 2% 12%; z-index: 1; }
/* the resting state is already a fan, so a dead JS layer still looks deliberate rather than
   like three sheets stacked flat */
.lus-st-sheet[data-depth="0"] { transform: rotate(2.5deg); }
.lus-st-sheet[data-depth="1"] { transform: rotate(-4deg); }
.lus-st-sheet[data-depth="2"] { transform: rotate(5deg); }

/* ============================================================ BUTTONS
 * The plugin's own button, hard-reset so the theme's global <a>/<button> styling cannot
 * repaint it. --lus-st-mx/my are the magnetic offset; the lift is a separate variable so
 * hover and magnet never fight over one transform. */
.lus-st-btn {
  /* same guard as the chips: the theme stretches buttons to full width */
  display: inline-flex !important; width: auto !important; flex: 0 0 auto;
  align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.8em; border-radius: 999px !important;
  font-family: var(--lus-font-he); font-weight: 700; font-size: 1rem;
  color: var(--lus-ink) !important; background: transparent !important;
  border: 1px solid var(--lus-line-strong) !important; box-shadow: none !important;
  cursor: pointer; text-decoration: none;
  transform: translate(var(--lus-st-mx, 0px), calc(var(--lus-st-my, 0px) + var(--lus-st-lift, 0px)));
  transition: transform 0.7s var(--lus-ease), border-color 0.7s var(--lus-ease);
}
.lus-st-btn:hover { --lus-st-lift: -3px; border-color: var(--lus-ink) !important; }
.lus-st-btn--ghost { border-color: var(--lus-line) !important; }

/* ============================================================ CHROME
 * The studio page's background field + print grain + IMAGE lightbox. The After page's
 * lightbox holds a <video>; this one holds an <img> with prev/next, so they are separate
 * elements and never fight over the same id. */
.lus-st-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 80% 8%, var(--lus-st-f1, rgba(3, 215, 254, 0.07)), transparent 60%),
    radial-gradient(50vw 50vw at 10% 40%, var(--lus-st-f2, rgba(244, 129, 121, 0.06)), transparent 60%),
    radial-gradient(60vw 60vw at 60% 100%, var(--lus-st-f3, rgba(174, 212, 62, 0.05)), transparent 60%),
    var(--lus-st-fbase, #ffffff);
  transition: background 1.2s linear;
}
/* Background zones. JS writes no colour — it only sets data-lus-st-zone on <html>, and these
   rules re-point the four tokens, so the whole palette stays in CSS. */
html[data-lus-st-zone="work"]  { --lus-st-f1: rgba(251,177,87,0.10); --lus-st-f2: rgba(244,129,121,0.09); --lus-st-f3: rgba(3,215,254,0.05); --lus-st-fbase: #fffdfa; }
html[data-lus-st-zone="paper"] { --lus-st-f1: rgba(174,212,62,0.07); --lus-st-f2: rgba(251,177,87,0.07); --lus-st-f3: rgba(10,31,60,0.03);  --lus-st-fbase: #faf8f4; }
html[data-lus-st-zone="close"] { --lus-st-f1: rgba(3,215,254,0.09);  --lus-st-f2: rgba(174,212,62,0.05); --lus-st-f3: rgba(244,129,121,0.06); --lus-st-fbase: #ffffff; }

.lus-st-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

#lus-st-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.4s;
  font-family: var(--lus-font-he); direction: rtl;
}
#lus-st-lightbox.is-open { opacity: 1; }
#lus-st-lightbox[hidden] { display: none !important; }
.lus-st-lb-stage { position: relative; display: grid; place-items: center; width: min(92vw, 1100px); height: 82svh; }
.lus-st-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--lus-r-md); box-shadow: var(--lus-shadow); }
.lus-st-lb-close, .lus-st-lb-prev, .lus-st-lb-next {
  position: absolute; z-index: 2; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--lus-line); background: rgba(255, 255, 255, 0.9);
  display: grid; place-items: center; font-size: 1.35rem; color: var(--lus-ink);
  cursor: pointer; transition: border-color 0.3s, color 0.3s;
}
.lus-st-lb-close { position: fixed; inset-block-start: 1.5rem; inset-inline-end: 1.5rem; }
.lus-st-lb-close:hover { border-color: var(--lus-coral); color: var(--lus-coral); }
/* RTL navigation: forward is LEFTWARD in Hebrew, so `next` takes the left side. And
   `direction: ltr` on the buttons is required, not cosmetic — ‹ and › are Unicode
   bidi-MIRRORED characters, so inside an RTL paragraph they render swapped and the left
   button ends up drawing › while acting as `prev`. */
.lus-st-lb-prev, .lus-st-lb-next { direction: ltr; top: 50%; transform: translateY(-50%); }
.lus-st-lb-next { left: 0.5rem; }
.lus-st-lb-prev { right: 0.5rem; }
.lus-st-lb-prev:hover, .lus-st-lb-next:hover { border-color: var(--lus-cyan); color: var(--lus-cyan); }
/* a plate under the caption: the images run to the bottom of the stage, and dark ink on a
   dark photograph is simply unreadable */
.lus-st-lb-meta {
  position: fixed; inset-block-end: 1.25rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 0.85em;
  padding: 0.6em 1.3em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--lus-line);
  box-shadow: 0 8px 24px rgba(10, 31, 60, 0.12);
  max-width: calc(100% - 2 * var(--lus-gutter));
}
.lus-st-lb-title { font-weight: 700; font-size: 1.02rem; color: var(--lus-ink); }
.lus-st-lb-count { font-family: var(--lus-font-en); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--lus-ink-faint); direction: ltr; }

/* ============================================================ TOUCH
 * There is no hover on a phone, so anything hover-revealed is invisible and any hover
 * transform sticks after a tap. Force the visible state and neutralise the transforms. */
@media (hover: none), (max-width: 860px) {
  .lus-st-card { filter: none; }
  .lus-st-card[data-center] { box-shadow: var(--lus-shadow-lift); }
  .lus-st-open { background: rgba(255, 255, 255, 0.16); }
  .lus-st-card:hover .lus-st-cc-lead img { transform: none; }
  .lus-st-card:hover .lus-st-open { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.42); color: #fff; }
  .lus-st-gal-meta { opacity: 1; transform: none; }
  .lus-st-zoom { background: rgba(255, 255, 255, 0.18); }
  .lus-st-item:hover .lus-st-media img { transform: none; }
  .lus-st-item:hover .lus-st-zoom { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .lus-st-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .lus-st-wall .lus-st-lane:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  /* Hero: the column becomes a single full-bleed strip drifting horizontally under the
     CTAs. Same markup, only the axis changes — no second DOM path to keep in sync. */
  .lus-st-hero { min-height: auto; padding-block: clamp(4.5rem, 12vh, 6rem) 0; display: block; }
  .lus-st-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lus-st-hero-copy { gap: 1rem; }
  .lus-st-hero-copy .lus-title, .lus-st-hero-sub { max-width: none; }
  .lus-st-hero-cta { width: 100%; }
  .lus-st-hero-cta .lus-st-btn { flex: 1 1 auto; }
  .lus-st-scroll { display: none; }
  /* !important on height and transform is deliberate, and it costs a little editor freedom
     on purpose. On mobile the wall is a DIFFERENT component — one horizontal strip, not three
     vertical columns — so a desktop height (Orel's instance had 1000px) and the desktop tilt
     are simply wrong here. Elementor writes its Style controls as
     `.elementor-NNN .elementor-element-XXX .lus-st-wall { … }`, which out-specifies any media
     query we can write, so nothing short of !important reaches it. Verified live: the tilt and
     a 1000px height were both surviving into mobile. */
  .lus-st-wall {
    flex-direction: column; gap: 0.55rem;
    height: auto !important;
    transform: none !important;
    padding-block-end: 2.5rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .lus-st-lane {
    flex-direction: row; height: auto; width: max-content; gap: 0.55rem;
    animation-name: lus-st-drift-x; animation-duration: 46s;
  }
  /* one lane on a phone: two stacked rows reserved height for a strip that was mostly
     off-screen anyway, leaving a dead band under the hero */
  .lus-st-wall .lus-st-lane:nth-child(n + 2) { display: none; }
  .lus-st-lane img { width: auto !important; height: clamp(122px, 30vw, 168px) !important; }
  .lus-st-wall::after { display: none; }

  .lus-st-pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .lus-st-card { width: clamp(255px, 78vw, 340px); height: clamp(380px, 62lvh, 520px); }
  /* a narrow card cannot carry two supports under the lead — the readability plate covered
     most of both. One lead + one support, full width each. */
  .lus-st-collage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr); }
  .lus-st-collage figure:last-child { display: none; }
  .lus-st-card-kind { font-size: 0.8rem; text-wrap: balance; }
  .lus-st-track { gap: 1rem; }
  .lus-st-grid { column-count: 2; }
  .lus-st-gal-meta { padding: 0.7rem 0.8rem; }
  .lus-st-gal-meta h3 { font-size: 0.86rem; }
  .lus-st-filter { gap: 0.45rem; }
  .lus-st-filter button.lus-st-chip { font-size: 0.85rem; padding: 0.5em 0.9em; }
  .lus-st-chip .lus-st-cn { display: none; }
  .lus-st-cat-grid { grid-template-columns: 1fr; }
  .lus-st-cat-stack { order: -1; aspect-ratio: 4 / 3.2; }
  .lus-st-lb-stage { height: 74svh; width: 94vw; }
}
@media (max-width: 520px) {
  .lus-st-svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  /* two columns stay all the way down: one column meant 89 tiles stacked full-width, which
     is a very long scroll before the filter is even noticed */
  .lus-st-grid { --lus-st-gap: 0.6rem; }
  .lus-st-gal-meta { padding: 0.6rem 0.7rem; }
  .lus-st-gal-meta h3 { font-size: 0.8rem; }
  .lus-st-gal-cat { font-size: 0.58rem; letter-spacing: 0.12em; }
  .lus-st-zoom { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lus-st-lane, .lus-st-scroll i { animation: none !important; }
  .lus-st-lit .lus-st-w { opacity: 1 !important; }
}
