/* ═══════════════════════════════════════════════════════════════════════════
   LEXREN · Cinematic design system
   Tokens are shared with the React sections in app.js.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --bg: #07070a;
  --bg-card: #0d0d13;
  --bg-raised: #12121a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --gold: #f97316;
  --gold-hi: #fdba74;
  --gold-dim: #9a3412;
  --gold-glow: rgba(249, 115, 22, 0.14);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --ink: #eee9e0;
  --ink-2: rgba(238, 233, 224, 0.62);
  --ink-3: #6b6b78;

  /* type */
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --fs-hero: clamp(2.1rem, 0.9rem + 4.6vw, 6rem);
  --fs-display: clamp(2.5rem, 1.35rem + 4vw, 5.25rem);
  --fs-title: clamp(1.85rem, 1.2rem + 2.2vw, 3.5rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);

  /* rhythm, shape and depth */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-accent: 0 16px 56px rgba(249, 115, 22, 0.2);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Global polish (safe, non-breaking) ─────────────────────────────────── */
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html.lx-locked, html.lx-locked body { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #09070f; }

/* film grain: gives flat dark surfaces a rich, tactile finish */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* fixes the hamburger in app.js, which was display:none at every width */
@media (max-width: 768px) { .resp-show { display: block !important; } }

/* scroll progress */
.lx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10001; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-hi));
  transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--gold);
}

/* cursor follower (fine pointers only) */
.lx-cursor, .lx-cursor-dot { position: fixed; top: 0; left: 0; z-index: 10002; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.lx-cursor.on, .lx-cursor-dot.on { opacity: 1; }
.lx-cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.55);
  transition: opacity 0.3s, width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background 0.3s;
}
.lx-cursor.hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(249, 115, 22, 0.1); border-color: var(--gold); }
.lx-cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--gold); }

/* ═════════════════════════ LOADER ═════════════════════════ */
.lx-loader { position: fixed; inset: 0; z-index: 20000; color: var(--ink); font-family: var(--f-mono); }
.lx-curtain { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bg); will-change: transform; }
.lx-curtain.top { top: 0; }
.lx-curtain.bot { bottom: 0; }
.lx-curtain::before { /* faint grid so the loader isn't a flat black void */
  content: ''; position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 0%, transparent 75%);
}
.lx-curtain.top::before { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 0%, transparent 75%); }
.lx-curtain::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.8; }
.lx-curtain.top::after { bottom: 0; }
.lx-curtain.bot::after { top: 0; }

.lx-loader-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--gold); z-index: 3; }
.lx-loader-core { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.lx-logo { width: min(78vw, 460px); height: auto; overflow: visible; }
.lx-logo text { font-family: var(--f-display); font-size: 120px; letter-spacing: 3px; stroke-width: 1.2px; stroke-linejoin: round; paint-order: stroke; }
.lx-logo .a { stroke: var(--ink); fill: var(--ink); fill-opacity: 0; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.lx-logo .b { stroke: var(--gold); fill: var(--gold); fill-opacity: 0; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.lx-loader-tag { font-size: 11px; letter-spacing: 0.32em; color: var(--ink-3); opacity: 0; text-transform: uppercase; }

.lx-loader-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 clamp(20px, 4vw, 52px) clamp(22px, 4vh, 44px); }
.lx-count { font-family: var(--f-display); font-size: clamp(64px, 11vw, 150px); line-height: 0.8; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-count small { font-family: var(--f-mono); font-size: 0.16em; letter-spacing: 0; color: var(--gold); margin-left: 6px; vertical-align: top; }
.lx-status { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-align: right; padding-bottom: 6px; }
.lx-status b { color: var(--gold); font-weight: 400; }

/* ═════════════════════════ HERO ═════════════════════════ */
.lx-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--bg); }
.lx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.lx-canvas.on { opacity: 1; }

.lx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lx-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 50%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 50%, #000 10%, transparent 100%);
}
.lx-bg .glow-a { position: absolute; width: 70vmax; height: 70vmax; right: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(167, 139, 250, 0.19) 0%, transparent 62%); filter: blur(10px); }
.lx-bg .glow-b { position: absolute; width: 46vmax; height: 46vmax; left: -16vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(167, 139, 250, 0.07) 0%, transparent 65%); }
.lx-bg .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(3, 3, 10, 0.85) 100%), linear-gradient(to bottom, transparent 70%, var(--bg) 100%); }

.lx-hero-inner { position: relative; z-index: 2; width: 100%; padding: 136px clamp(20px, 4vw, 52px) 110px; pointer-events: none; }
.lx-copy { max-width: min(640px, 100%); pointer-events: auto; }

/* reveal start-states (anime.js drives them to their end-state) */
.lx-fx { opacity: 0; }
.lx-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.14em; margin: -0.04em 0 -0.14em; }
.lx-char { display: inline-block; transform: translateY(112%); will-change: transform; }
.lx-rotor-word { display: inline-block; transform: translateY(115%); will-change: transform, opacity; }
html.lx-static .lx-fx { opacity: 1; }
html.lx-static .lx-char, html.lx-static .lx-rotor-word { transform: none; }
html.lx-static .lx-canvas { opacity: 1; transition: none; }

.lx-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 30px;
  font: 400 11.5px/1 var(--f-mono); color: var(--ink-2); letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-strong); border-radius: 100px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.lx-badge .dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lx-badge .dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: lxPing 2.2s var(--ease-out) infinite; }
@keyframes lxPing { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.lx-h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.028em; color: var(--ink); margin: 0; }
.lx-h1 .lx-line { display: block; white-space: nowrap; }
.lx-h1 .lx-w { display: inline-block; white-space: nowrap; }
.lx-rotor { color: var(--gold); font-style: italic; text-shadow: 0 0 60px rgba(250, 137, 25, 0.35); }

.lx-sub { margin: 28px 0 0; max-width: 31rem; font: 300 clamp(15px, 1.15vw, 17px)/1.8 var(--f-body); color: var(--ink-2); }

.lx-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.lx-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 14px 24px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  font: 600 11.5px/1 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  transition: transform 0.45s var(--ease-out), box-shadow 0.35s, background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.lx-btn .arr { display: inline-block; transition: transform 0.4s var(--ease-out); }
.lx-btn:hover .arr { transform: translateX(4px); }
.lx-btn-gold {
  color: #130900;   background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #c2410c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.18), 0 10px 34px -10px rgba(249,115,22,0.48);
}
.lx-btn-gold::after { /* shine sweep */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); transition: left 0.8s var(--ease-out);
}
.lx-btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.18), 0 16px 44px -10px rgba(249,115,22,0.64); }
.lx-btn-gold:hover::after { left: 130%; }
.lx-btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.lx-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.lx-btn-term { font: 400 12px/1 var(--f-mono); letter-spacing: 0.01em; text-transform: none; color: var(--accent); background: rgba(249,115,22,0.06); border-color: rgba(249,115,22,0.22); }
.lx-btn-term:hover { background: rgba(249,115,22,0.14); border-color: rgba(249,115,22,0.5); }
.lx-btn-term i { font-style: normal; color: var(--ink-3); }

.lx-stats { margin-top: 48px; padding-top: 30px; display: flex; gap: clamp(22px, 3.4vw, 44px); border-top: 1px solid var(--line); max-width: 31rem; }
.lx-stat + .lx-stat { padding-left: clamp(22px, 3.4vw, 44px); border-left: 1px solid var(--line); }
.lx-stat-n { font: 400 clamp(30px, 3.2vw, 44px)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-stat.gold .lx-stat-n { color: var(--gold); }
.lx-stat-l { margin-top: 8px; font: 400 10.5px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: 0.04em; }
.lx-note { margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--gold-dim); font: 400 12px/1.6 var(--f-mono); color: var(--ink-3); }

.lx-scroll { position: absolute; z-index: 2; left: clamp(20px, 4vw, 52px); bottom: 34px; display: flex; align-items: center; gap: 12px; font: 400 10.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: 0.06em; }
.lx-scroll .rail { position: relative; width: 1px; height: 38px; background: var(--line-strong); overflow: hidden; }
.lx-scroll .rail::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--gold); animation: lxRail 2.2s var(--ease-io) infinite; }
@keyframes lxRail { 0% { transform: translateY(-14px); } 100% { transform: translateY(40px); } }

/* ── Cinematic scroll story ───────────────────────────────────────────── */
.lx-story {
  position: relative;
  height: 440vh;
  min-height: 3200px;
  background: var(--bg);
  isolation: isolate;
}
.lx-story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(ellipse at 55% 52%, rgba(124,62,28,0.18), transparent 45%),
    linear-gradient(180deg, #09090e, #07070a 85%);
}
.lx-story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lx-story-wash {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,10,0.97) 0%, rgba(7,7,10,0.82) 30%, transparent 72%),
    linear-gradient(0deg, rgba(7,7,10,0.7), transparent 28%, transparent 78%, rgba(7,7,10,0.36));
}
.lx-story-copy { position: absolute; z-index: 2; left: clamp(24px, 8vw, 128px); top: 50%; width: min(430px, 40vw); transform: translateY(-50%); }
.lx-story-kicker, .lx-story-index, .lx-story-layer-label {
  font: 400 10px/1.5 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.lx-story-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.lx-story-kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.lx-story-title { font: 400 clamp(2.3rem, 4.7vw, 4.6rem)/0.98 var(--f-display); letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.lx-story-description { max-width: 350px; min-height: 4.8em; margin-top: 22px; color: var(--ink-2); font: 300 15px/1.8 var(--f-body); }
.lx-story-index { margin-top: 30px; color: rgba(238,233,224,0.42); font-size: 9px; }
.lx-story-index strong { color: var(--ink); font-weight: 400; }
.lx-story-layers { position: absolute; z-index: 2; right: clamp(24px, 7vw, 112px); top: 50%; width: min(244px, 24vw); transform: translateY(-50%); display: grid; gap: 8px; }
.lx-story-layer {
  position: relative; padding: 12px 14px 13px 17px; border: 1px solid rgba(255,255,255,0.07);
  background: rgba(12,12,18,0.78); backdrop-filter: blur(12px); color: var(--ink-3);
  opacity: 0.88; transform: translateX(0); transition: opacity .45s var(--ease-out), border-color .45s, background .45s, transform .45s var(--ease-out);
}
.lx-story-layer::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: transparent; transition: background .4s; }
.lx-story-layer.active { opacity: 1; transform: translateX(-8px); color: var(--ink); background: rgba(46,24,13,0.82); border-color: rgba(249,115,22,0.34); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.lx-story-layer.active::before { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.lx-story-layer-label { color: var(--ink-3); letter-spacing: .1em; }
.lx-story-layer.active .lx-story-layer-label { color: var(--gold-hi); }
.lx-story-layer-detail { margin-top: 4px; font: 300 11px/1.5 var(--f-body); color: rgba(238,233,224,.76); }
.lx-story-product { position: absolute; z-index: 2; left: clamp(24px, 8vw, 128px); bottom: 42px; display: flex; align-items: center; gap: 12px; color: rgba(238,233,224,.48); font: 400 9px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.lx-story-product::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.lx-story-product span { color: var(--ink); }
.lx-story-scroll { position: absolute; z-index: 2; right: clamp(24px, 4vw, 56px); bottom: 40px; display: flex; align-items: center; gap: 12px; color: rgba(238,233,224,.45); font: 400 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.lx-story-scroll i { display: block; width: 56px; height: 1px; overflow: hidden; background: rgba(255,255,255,.15); }
.lx-story-scroll i::after { content: ''; display: block; width: 100%; height: 100%; transform: translateX(-100%); background: var(--gold); animation: lxStoryRail 2s var(--ease-io) infinite; }
@keyframes lxStoryRail { to { transform: translateX(100%); } }

/* ── Procedural motion plate: no stock footage or external video required ─ */
.lx-film {
  position: relative; min-height: clamp(360px, 48vw, 620px); overflow: hidden; display: grid; place-items: center;
  isolation: isolate; border-block: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(ellipse at 50% 60%, rgba(87,65,151,.25), transparent 50%), #09090e;
}
.lx-film::before, .lx-film::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.lx-film::before {
  z-index: 0; opacity: .34;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(700px) rotateX(60deg) scale(1.8) translateY(28%);
  -webkit-mask-image: linear-gradient(transparent, #000 42%, transparent);
}
.lx-film::after { z-index: 0; background: linear-gradient(90deg, #07070a, transparent 35%, transparent 65%, #07070a), linear-gradient(0deg, #07070a, transparent 32%, transparent 70%, #07070a); }
.lx-film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.lx-film-content { position: relative; z-index: 1; width: min(980px, 84vw); text-align: center; }
.lx-film-eyebrow { color: var(--gold); font: 400 10px/1.4 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; }
.lx-film-title { margin-top: 22px; color: var(--ink); font: 400 clamp(2.4rem, 7vw, 6.7rem)/.96 var(--f-display); letter-spacing: -.045em; text-wrap: balance; }
.lx-film-title em { color: var(--gold-hi); font-weight: 400; }
.lx-film-copy { margin: 20px auto 0; max-width: 470px; color: var(--ink-2); font: 300 var(--fs-body)/1.8 var(--f-body); }

/* ── Existing React sections: consistent grid, surfaces and interaction ── */
#app-root { background: var(--bg) !important; color: var(--ink); font-family: var(--f-body); }
#app-root p { text-wrap: pretty; }
#app-root h1, #app-root h2, #app-root h3 { text-wrap: balance; }
#app-root button:focus-visible, #app-root a:focus-visible, #app-root input:focus-visible, #app-root textarea:focus-visible, #app-root select:focus-visible {
  outline: 2px solid var(--gold) !important; outline-offset: 3px !important;
}
#app-root nav { border-bottom-color: rgba(255,255,255,.08) !important; }
#app-root img { image-rendering: auto; }
#products img, #work img { transition: transform .8s var(--ease-out), filter .5s ease; }
#products img:hover, #work img:hover { transform: scale(1.035); filter: saturate(1.06) brightness(1.04); }
#app-root .lx-scroll-reveal {
  opacity: 0;
  transform: translate3d(var(--lx-reveal-x, 0px), 30px, 0) scale(.99);
  filter: blur(7px);
  transition:
    opacity .75s var(--ease-out) var(--lx-reveal-delay, 0ms),
    transform .9s var(--ease-out) var(--lx-reveal-delay, 0ms),
    filter .75s var(--ease-out) var(--lx-reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
#app-root .lx-scroll-reveal.is-in { opacity: 1; transform: none; filter: none; }
#app-root section [style*="borderRadius"] { transition-timing-function: var(--ease-out); }
#app-root section [style*="borderRadius"]:hover { border-color: rgba(249,115,22,.24) !important; }
#app-root input, #app-root textarea, #app-root select { color-scheme: dark; }
.lx-cursor, .lx-cursor-dot { mix-blend-mode: screen; }
#products .lx-product-visual, #products .lx-product-card-visual, #work .lx-work-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .42s var(--ease-out);
}
#why .lx-motion-card, #services .lx-motion-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .42s var(--ease-out), background .3s ease, box-shadow .4s var(--ease-out);
}
#products .lx-product-visual::after, #products .lx-product-card-visual::after, #work .lx-work-card::after, #why .lx-motion-card::after, #services .lx-motion-card::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(250px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(253,186,116,.2), transparent 72%);
  transition: opacity .35s ease;
}
#products .lx-product-visual:hover, #work .lx-work-card:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-3px);
}
#products .lx-product-card-visual:hover { transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.015); }
#why .lx-motion-card:hover, #services .lx-motion-card:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
  box-shadow: 0 22px 54px rgba(0,0,0,.3), 0 0 0 1px rgba(249,115,22,.16);
}
#products .lx-product-visual:hover::after, #products .lx-product-card-visual:hover::after, #work .lx-work-card:hover::after, #why .lx-motion-card:hover::after, #services .lx-motion-card:hover::after { opacity: 1; }

@media (max-width: 800px) {
  .lx-story { height: 380svh; min-height: 2400px; }
  .lx-story-sticky { min-height: 560px; }
  .lx-story-wash { background: linear-gradient(180deg, rgba(7,7,10,.94), rgba(7,7,10,.56) 44%, rgba(7,7,10,.84)); }
  .lx-story-copy { top: 11%; left: 24px; width: calc(100% - 48px); transform: none; }
  .lx-story-title { font-size: clamp(2rem, 9vw, 3.4rem); max-width: 460px; }
  .lx-story-description { margin-top: 12px; max-width: 430px; min-height: 3.5em; font-size: 13px; }
  .lx-story-index { margin-top: 14px; }
  .lx-story-layers { top: auto; bottom: 150px; left: 24px; right: 24px; width: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; transform: none; overflow: visible; }
  .lx-story-layer { padding: 9px 8px; }
  .lx-story-layer.active { transform: translateY(-4px); }
  .lx-story-layer-label { font-size: 8px; letter-spacing: .04em; }
  .lx-story-layer-detail { display: none; }
  .lx-story-product { left: 24px; bottom: 28px; }
  .lx-story-scroll { display: none; }
  .lx-film { min-height: 420px; }
  .lx-film-content { width: calc(100% - 40px); }
  #products .lx-product-visual:hover, #products .lx-product-card-visual:hover, #work .lx-work-card:hover, #why .lx-motion-card:hover, #services .lx-motion-card:hover { transform: none; }
}
@media (max-width: 520px) {
  .lx-story { min-height: 2100px; }
  .lx-story-sticky { min-height: 620px; }
  .lx-story-layers { grid-template-columns: repeat(5, minmax(0, 1fr)); bottom: 150px; left: 16px; right: 16px; gap: 4px; }
  .lx-story-copy { left: 20px; width: calc(100% - 40px); }
  .lx-story-product { left: 20px; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .lx-canvas { height: 56%; }
  .lx-hero { align-items: flex-end; }
  .lx-hero-inner { padding-top: 0; padding-bottom: 90px; margin-top: 52svh; }
  .lx-bg .grid { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 28%, #000 10%, transparent 100%); mask-image: radial-gradient(ellipse 90% 50% at 50% 28%, #000 10%, transparent 100%); }
  .lx-bg .vignette { background: linear-gradient(to bottom, transparent 40%, rgba(3,3,10,0.7) 62%, var(--bg) 100%); }
  .lx-h1 { font-size: clamp(1.9rem, 8.2vw, 3rem); }
  .lx-scroll { display: none; }
  .lx-cta .lx-btn { padding: 13px 20px; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .lx-badge .dot::after, .lx-scroll .rail::after { animation: none; }
  .lx-btn, .lx-btn .arr { transition: none; }
  .lx-story { height: auto; min-height: 0; }
  .lx-story-sticky { position: relative; top: auto; min-height: 0; height: auto; padding: 44px 20px 28px; }
  .lx-story-canvas, .lx-story-wash, .lx-story-scroll { display: none; }
  .lx-story-copy, .lx-story-layers, .lx-story-product { position: relative; inset: auto; width: 100%; transform: none; margin: 0; }
  .lx-story-title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .lx-story-description { min-height: 0; }
  .lx-story-layers { margin-top: 28px; }
  .lx-story-layer { opacity: 1; }
  .lx-story-product { margin-top: 24px; }
  .lx-story-sticky::after { content: 'Static studio view — reduced motion enabled'; display: block; margin-top: 18px; color: var(--ink-3); font: 400 9px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
  .lx-film::before { transform: none; }
  #app-root .lx-scroll-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
