/* ==========================================================================
   Homepage launch hero (2026-11): the launch trailer rebuilt as live layers.
   Act 1 (on load): seven metal division words crash down, slogan rises.
   Act 2 (scroll):  words fly past the camera, real site screens orbit the centre.
   Act 3 (scroll):  screens collapse into a glass cube, the cube shatters.
   Act 4 (scroll):  the shards fly into the LHDIRECT name, final CTA.
   Static fallback (no JS / reduced motion): Act 1 end state, no pinning.
   Engine: assets/js/hero-launch.js
   ========================================================================== */

.lx {
  --lx-ink: #070a14;
  position: relative; height: 320vh; color: #fff; background: var(--lx-ink);
}
.lx__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* ---------- Sky + skyline of site screens ---------- */
.lx__sky { position: absolute; inset: 0; z-index: -6; pointer-events: none;
  background:
    radial-gradient(70rem 34rem at 50% 108%, rgba(50,200,189,.30), transparent 62%),
    radial-gradient(46rem 30rem at 88% 18%, rgba(63,94,251,.28), transparent 66%),
    radial-gradient(40rem 26rem at 6% 30%, rgba(116,87,219,.22), transparent 66%),
    linear-gradient(180deg, #05070f 0%, #0a1020 55%, #0b1324 100%);
}
.lx__stars { position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 9%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 24%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 28%, #bdf 50%, transparent 51%), radial-gradient(1px 1px at 91% 7%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 35%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 57% 38%, #cfe 50%, transparent 51%);
  animation: lxTwinkle 5s ease-in-out infinite alternate;
}
@keyframes lxTwinkle { to { opacity: .25; } }
.lx__city { position: absolute; inset: auto 0 0 0; height: 78%; perspective: 900px; perspective-origin: 50% 20%; }
.lx__tower {
  position: absolute; bottom: 22%; width: var(--w, 12vw); height: var(--h, 46vh); inset-inline-start: var(--x, 10%);
  border-radius: 6px; overflow: hidden; transform: translateZ(var(--z, -400px));
  background: #0d1528 var(--img) center top / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(94,234,212,.22), 0 0 60px rgba(50,200,189,.18);
  opacity: .42; filter: saturate(.8) brightness(.8); transition: opacity .8s ease, filter .8s ease;
}
.lx__tower::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,20,0) 30%, rgba(7,10,20,.85)), repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px); }
.lx__floor { position: absolute; left: -40%; right: -40%; bottom: -10%; height: 60%;
  transform: perspective(600px) rotateX(72deg); transform-origin: 50% 0;
  background:
    linear-gradient(180deg, transparent, rgba(7,10,20,.9) 85%),
    repeating-linear-gradient(90deg, rgba(94,234,212,.16) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(94,234,212,.16) 0 1px, transparent 1px 80px);
  animation: lxFloor 3.2s linear infinite;
}
@keyframes lxFloor { to { background-position: 0 0, 0 0, 0 80px; } }
.lx__platebox { position: absolute; inset: 0; z-index: -5; overflow: hidden; opacity: 0; transition: opacity 1s ease; will-change: transform, clip-path; }
.lx__platebox.is-on { opacity: 1; }
.lx__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
@keyframes lxKen { from { transform: scale(1.04); } to { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); } }
.lx__shade { position: absolute; inset: 0; z-index: -4; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,10,20,.55) 0%, rgba(7,10,20,0) 28%, rgba(7,10,20,0) 46%, rgba(7,10,20,.82) 82%, rgba(7,10,20,.96) 100%); }

/* ---------- Orbiting site screens ---------- */
.lx__orbit { position: absolute; inset: 0; z-index: -3; perspective: 1200px; perspective-origin: 50% 42%; pointer-events: none; }
.lx__carousel { position: absolute; left: 50%; top: 44%; transform-style: preserve-3d; }
.lx__screen {
  position: absolute; left: 0; top: 0; width: var(--sw, 340px); aspect-ratio: 16 / 10; margin: 0;
  border-radius: 12px; overflow: hidden; opacity: 0; transform-origin: 50% 50%;
  background: #0d1528; box-shadow: 0 0 0 1px rgba(94,234,212,.45), 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(50,200,189,.25);
  will-change: transform, opacity;
}
.lx__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lx__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.22), transparent 38%); }

/* ---------- The seven metal words ---------- */
.lx__words {
  position: absolute; inset-inline: 0; top: clamp(96px, 17vh, 170px); z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .42em; padding-inline: 16px;
  direction: ltr; font: 900 clamp(30px, 4.7vw, 88px)/1 var(--nx-display, system-ui), system-ui, sans-serif; letter-spacing: -.02em;
  perspective: 900px;
}
.lx__word { display: inline-block; color: inherit; text-decoration: none; will-change: transform, opacity; }
.lx__word > span {
  position: relative; display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f2 30%, #7c8ba5 50%, #f2f6fb 62%, #94a3bb 82%, #e9eef6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.12)) drop-shadow(0 10px 22px rgba(0,0,0,.6));
}
.lx__word > span::after { /* impact flare under the word */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -.12em; height: .3em; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(94,234,212,.75), rgba(94,234,212,0)); opacity: 0;
}
.lx__word:hover > span, .lx__word:focus-visible > span { background-image: linear-gradient(180deg, #ffffff, #5eead4 55%, #2dd4bf); }
.lx__word:focus-visible { outline: 2px solid #5eead4; outline-offset: 6px; border-radius: 6px; }
.lx__word small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Glass cube ---------- */
.lx__cubewrap { position: absolute; left: 50%; top: 44%; z-index: 2; width: 0; height: 0; perspective: 900px; pointer-events: none; }
.lx__cube { --s: clamp(110px, 16vw, 210px); position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s);
  transform-style: preserve-3d; --o: 0; will-change: transform; }
.lx__cube i { position: absolute; inset: 0; opacity: var(--o); border: 1.5px solid rgba(160,255,240,.85);
  background: linear-gradient(135deg, rgba(94,234,212,.30), rgba(63,94,251,.16) 55%, rgba(255,255,255,.10));
  box-shadow: inset 0 0 40px rgba(94,234,212,.45), 0 0 50px rgba(50,200,189,.35); }
.lx__cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.lx__cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.lx__cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.lx__cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.lx__cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.lx__cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.lx__core { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(94,234,212,.55) 35%, rgba(94,234,212,0) 70%); }

/* ---------- Shards canvas, flash, brand ---------- */
.lx__shards { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.lx__flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(60rem 40rem at 50% 44%, rgba(255,255,255,.95), rgba(160,255,240,.5) 30%, rgba(160,255,240,0) 70%); }
.lx__brand { position: absolute; left: 0; right: 0; top: 44%; z-index: 5; margin: 0; transform: translateY(-50%);
  text-align: center; direction: ltr; pointer-events: none; opacity: 0;
  font: 900 clamp(48px, 13.5vw, 230px)/1 var(--nx-display, system-ui), system-ui, sans-serif; letter-spacing: -.04em;
  color: #fff; filter: drop-shadow(0 0 28px rgba(94,234,212,.45)); }

/* ---------- L.H logo assembled from the shards ---------- */
.lx__logo { position: absolute; left: 50%; top: 44%; z-index: 5; width: min(44vw, 440px); aspect-ratio: 326 / 194; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%); will-change: transform, opacity; filter: drop-shadow(0 0 26px rgba(94,234,212,.45)); }
.lx__logo { z-index: 6; }
.lx__lg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; }
.lx__logo .pt { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.lx__ring { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  border: 2px solid rgba(160,255,240,.9); box-shadow: 0 0 40px rgba(94,234,212,.6), inset 0 0 40px rgba(94,234,212,.35); transform: translate(-50%, -50%) scale(.3); }
@media (max-width: 860px) { .lx__logo { width: min(66vw, 320px); } }

/* ---------- Copy ---------- */
.lx__body { position: relative; z-index: 6; padding-block: 0 clamp(30px, 6vh, 60px); will-change: transform, opacity; }
.lx__eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.72); display: flex; gap: 12px; align-items: center; }
.lx__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #32c8bd; box-shadow: 0 0 0 6px rgba(50,200,189,.18); }
.lx__title { color: #fff; font-family: var(--nx-display); font-weight: 900; margin: 14px 0 0;
  font-size: clamp(44px, 7.4vw, 132px); line-height: .98; letter-spacing: -.045em; }
.lx__title .ln { display: block; overflow: hidden; padding-block-end: .06em; }
.lx__title .ln > span { display: inline-block; }
.lx__title .wd { display: inline-block; white-space: nowrap; }
.lx__title .ch { display: inline-block; will-change: transform, opacity; }
.lx__title .ln:nth-child(2) .ch { -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(100deg, #5eead4, #32c8bd 35%, #6f8bff); }
.lx__title .ln:nth-child(2) > span { background: linear-gradient(100deg, #5eead4, #32c8bd 35%, #6f8bff); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-top: clamp(18px, 3vh, 36px); }
.lx__sub { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 50ch; margin: 0; }
.lx__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lx__hint { position: absolute; z-index: 6; left: 50%; bottom: 14px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.6); pointer-events: none; }
.lx__hint i { width: 20px; height: 32px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.lx__hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #5eead4; animation: lxWheel 1.6s ease-in-out infinite; }
@keyframes lxWheel { 60% { transform: translateY(9px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* Final card after the shatter */
.lx__final { position: absolute; left: 0; right: 0; top: calc(44% + clamp(40px, 8vw, 130px)); z-index: 6; text-align: center; opacity: 0; visibility: hidden; padding-inline: 16px; }
.lx__final p { margin: 0 0 22px; font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.02em; color: rgba(255,255,255,.92); }
.lx__final .lx__cta { justify-content: center; }

/* ---------- Act 1: the crash (only when the engine runs) ---------- */
.lx--live .lx__word > span { opacity: 0; animation: lxCrash .9s cubic-bezier(.3,0,.25,1) forwards; animation-delay: calc(.25s + var(--i) * .14s); }
.lx--live .lx__word > span::after { animation: lxFlare .7s ease-out forwards; animation-delay: calc(.25s + var(--i) * .14s + .55s); }
@keyframes lxCrash {
  0%   { opacity: 0; transform: translate3d(0, -62vh, 0) scale(1.9) rotate(var(--r, -8deg)); filter: blur(8px); }
  45%  { opacity: 1; filter: blur(0); }
  62%  { transform: translate3d(0, 0, 0) scale(1, 1) rotate(0); }
  72%  { transform: translate3d(0, 0, 0) scale(1.08, .86); }
  84%  { transform: translate3d(0, -7%, 0) scale(.98, 1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes lxFlare { 0% { opacity: 0; transform: scaleX(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.6); } }
.lx--live .lx__pin { animation: lxShake .5s ease-out 1.55s; }
@keyframes lxShake { 10% { transform: translate3d(-6px, 4px, 0); } 25% { transform: translate3d(5px, -5px, 0); } 40% { transform: translate3d(-4px, 2px, 0); } 60% { transform: translate3d(3px, -1px, 0); } 100% { transform: none; } }
.lx--live .lx__title .ln > span { transform: translateY(105%); animation: lxLine 1.1s var(--nx-ease) forwards; animation-delay: 1.5s; }
.lx--live .lx__title .ln:nth-child(2) > span { animation: lxLine 1.1s var(--nx-ease) 1.66s forwards, lxShine 6s ease-in-out 2.8s infinite alternate; }
@keyframes lxLine { to { transform: none; } }
@keyframes lxShine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lx--live .lx__eyebrow, .lx--live .lx__row, .lx--live .lx__hint { opacity: 0; animation: lxFade .9s var(--nx-ease) forwards; }
.lx--live .lx__eyebrow { animation-delay: 1.35s; }
.lx--live .lx__row { animation-delay: 2s; }
.lx--live .lx__hint { animation-delay: 2.8s; }
@keyframes lxFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Once the intro finished, the engine owns these (scroll fades them) */
.lx--played .lx__eyebrow, .lx--played .lx__row, .lx--played .lx__hint { animation: none; opacity: 1; }

/* ---------- Static fallback: no JS, reduced motion ---------- */
html:not(.nx-js) .lx, .lx.lx--static { height: auto; }
html:not(.nx-js) .lx__pin, .lx--static .lx__pin { position: relative; height: auto; min-height: 100svh; }
html:not(.nx-js) .lx__body, .lx--static .lx__body { padding-top: clamp(300px, 48vh, 460px); }
html:not(.nx-js) .lx__orbit, html:not(.nx-js) .lx__cubewrap, html:not(.nx-js) .lx__shards, html:not(.nx-js) .lx__hint, html:not(.nx-js) .lx__floor,
.lx--static .lx__orbit, .lx--static .lx__logo, .lx--static .lx__platebox, html:not(.nx-js) .lx__logo, .lx--static .lx__cubewrap, .lx--static .lx__shards, .lx--static .lx__hint, .lx--static .lx__floor, .lx--static .lx__stars { display: none; animation: none; }

/* ---------- Layout ---------- */
@media (max-width: 860px) {
  .lx { height: 260vh; }
  .lx__row { grid-template-columns: 1fr; gap: 18px; }
  .lx__words { top: clamp(84px, 13vh, 120px); font-size: clamp(30px, 10.6vw, 64px); gap: .06em .34em; padding-inline: 12px; }
  .lx__screen { --sw: 190px; border-radius: 9px; }
  .lx__tower { opacity: .3; }
  .lx__brand { font-size: 17vw; }
}
@media (max-width: 520px) {
  .lx__eyebrow { display: none; }
  .lx__title { font-size: clamp(40px, 12.4vw, 60px); margin-top: 0; }
  .lx__sub { font-size: 15.5px; line-height: 1.55; }
  .lx__cta .nx-btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .lx__cta .nx-btn--glass { display: none; }
  .lx__body { padding-bottom: 52px; }
  .lx__hint { bottom: 10px; }
}
@media (max-height: 640px) and (max-width: 860px) { .lx__sub { display: none; } }
.lx__platebox.is-on { opacity: var(--fade, 1); }
.lx__platebox::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(94,234,212,var(--rim,0)), inset 0 0 80px rgba(20,184,166,calc(var(--rim,0) * .35)); }
.lx--cine .lx__city, .lx--cine .lx__stars, .lx--cine .lx__floor { opacity: calc(1 - var(--cine, 1)); transition: opacity .6s ease; }
.lx__mark { position: absolute; left: calc(-14 / 326 * 100%); top: calc(-14 / 194 * 100%); width: calc(360 / 326 * 100%); height: calc(205 / 194 * 100%); max-width: none; opacity: 0; pointer-events: none; }
.lx__final { top: calc(44% + clamp(120px, 17vw, 210px)); }
@media (max-width: 860px) { .lx__final { top: calc(44% + 32vw); } }
.lx__story { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.lx__tower.is-story { opacity: .62; filter: saturate(1) brightness(.92); }
.lx__tower.is-story .lx__story { opacity: 1; }
.lx__tower.is-story::after { z-index: 1; background: linear-gradient(180deg, rgba(7,10,20,0) 55%, rgba(7,10,20,.7)), repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px); }
@media (max-width: 860px) { .lx__tower.is-story { opacity: .5; } }
/* Mobile: four story frames in a clean row above the logo (9:16, evenly spaced, no slivers, no overlap with the copy) */
@media (max-width: 860px) {
  .lx__city .lx__tower { width: 20vw; height: 35.5vw; bottom: auto; top: calc(-28.2% + 64px); border-radius: 10px; transform: none; }
  .lx__city .lx__tower:nth-of-type(1) { inset-inline-start: 4%; }
  .lx__city .lx__tower:nth-of-type(2) { inset-inline-start: 28%; }
  .lx__city .lx__tower:nth-of-type(3) { inset-inline-start: 52%; }
  .lx__city .lx__tower:nth-of-type(4) { inset-inline-start: 76%; }
  .lx__city .lx__tower:nth-of-type(n+5) { display: none; }
}
/* wide screens: the plate sits below the menu, its top edge fades into the night */
.lx--wide .lx__plate { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px); mask-image: linear-gradient(to bottom, transparent 0, #000 110px); }
