/*! LuxLiving Core · Author: Ihasan Iftekhar · ZeroFlock Technologies LLC · https://zeroflock.com · © 2026 ZeroFlock Technologies LLC */
/* ==========================================================================
   LuxLiving scroll layer (2026-11-27), loaded after lux-noir.css.
   1. Lux Scroll Scene widget: sequence, open, rail, words. Each one's finished
      layout comes first (what the editor, reduced motion, no script and
      phones set to rest show); the live layout sits under .is-live.
   2. The quiet layer the script adds everywhere (html.lux-scroll): photo
      parallax, headings rising out of their lines, the footer reveal.
   Motion: assets/lux-scroll.js. Remove both files' enqueues to turn it off.
   ========================================================================== */

/* ---------- shared ---------- */
.elementor-widget-lux-scene, .elementor-widget-lux-scene > .elementor-widget-container { width: 100%; }
.lux-scene { position: relative; color: var(--lux-ink); }
.lux-scene__stage { position: relative; }
.lux-scene img { display: block; max-width: none; }
.lux-scene__btn {
	display: inline-block; margin-top: 34px; padding: 19px 34px; background: var(--lux-gold); color: var(--lux-night) !important;
	font: 400 15px/1 var(--lux-font-body); letter-spacing: .06em; text-decoration: none; transition: background .3s ease;
}
.lux-scene__btn:hover { background: var(--lux-gold-hi); }

/* Held stage: the scene is (hold + 1) screens tall and its stage sticks for the hold. */
.lux-scene.is-live { height: calc((var(--hold, 2) + 1) * 100svh); }
.lux-scene.is-live > .lux-scene__stage { position: sticky; top: 0; height: 100svh; overflow: clip; contain: layout paint; }

/* Frame edge shared with the rest of the site (1320 frame, 40px gutter). */
.lux-scene { --lux-edge: max(40px, calc((100vw - 1320px) / 2 + 40px)); }
@media (max-width: 767px) { .lux-scene { --lux-edge: 20px; } }

/* ---------- 1a. Sequence: photographs replace one another, names change with them ---------- */
.lux-scene--sequence .lux-scene__stage { height: 100svh; min-height: 600px; overflow: hidden; background: var(--lux-night); }
.lux-seq__frames, .lux-seq__frame { position: absolute; inset: 0; margin: 0; }
.lux-seq__frame { overflow: hidden; }
.lux-seq__frame img { width: 100%; height: 100%; object-fit: cover; }
.lux-scene--sequence:not(.is-live) .lux-seq__frame:not(:first-child) { display: none; }
.lux-seq__frames::after {
	content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
	background: linear-gradient(0deg, rgba(10,9,8,.84) 0%, rgba(10,9,8,.5) 32%, rgba(10,9,8,0) 62%), rgba(10,9,8,.12);
}
.lux-seq__copy { position: absolute; z-index: 6; left: var(--lux-edge); right: var(--lux-edge); bottom: clamp(40px, 8vh, 84px);
	display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.lux-seq__inner { max-width: 980px; }
.lux-seq__heading { margin: 0 0 18px; font: 400 17px/1.4 var(--lux-font-body); color: #F6F1E7; letter-spacing: .02em; }
.lux-seq__names { list-style: none; margin: 0; padding: 0; }
.lux-seq__link { display: block; color: #F6F1E7 !important; text-decoration: none; }
.lux-seq__label { display: block; margin-bottom: 10px; font: 400 16px/1.3 var(--lux-font-body); color: rgba(246,241,231,.82); }
.lux-seq__title { display: block; font: 500 clamp(56px, 9.4vw, 156px)/.92 var(--lux-font-heading); letter-spacing: -.02em; color: #F6F1E7; padding-bottom: .06em; }
.lux-seq__link:hover .lux-seq__title { color: var(--lux-gold); }
.lux-seq__text { margin: 26px 0 0; max-width: 560px; font: 400 20px/1.5 var(--lux-font-body); color: #F6F1E7; }
.lux-seq__count { margin: 0; white-space: nowrap; font: 400 15px/1 var(--lux-font-body); color: rgba(246,241,231,.82); }
/* at rest: the four names read as a list, the first one large */
.lux-scene--sequence:not(.is-live) .lux-seq__name + .lux-seq__name { display: inline-block; margin: 18px 28px 0 0; }
.lux-scene--sequence:not(.is-live) .lux-seq__name + .lux-seq__name .lux-seq__title { font-size: clamp(24px, 2.6vw, 34px); }
.lux-scene--sequence:not(.is-live) .lux-seq__name + .lux-seq__name .lux-seq__label, .lux-scene--sequence:not(.is-live) .lux-seq__count { display: none; }
/* live: the names share one cell, one at a time, each rising out of its own line */
.lux-scene--sequence.is-live .lux-seq__names { display: grid; overflow: clip; }
.lux-scene--sequence.is-live .lux-seq__name { grid-area: 1 / 1; }
.lux-scene--sequence.is-live .lux-seq__name:not(:first-child) { visibility: hidden; }
@media (max-width: 767px) {
	.lux-seq__copy { flex-direction: column; align-items: flex-start; gap: 18px; }
	.lux-seq__text { font-size: 18px; }
	.lux-seq__title { font-size: clamp(50px, 15vw, 72px); }
}

/* ---------- 1b. Open: a window that grows into the whole screen ---------- */
.lux-scene--open .lux-scene__stage { display: flex; flex-direction: column; background: var(--lux-ground); }
.lux-open__pic { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.lux-open__pic img { width: 100%; height: 100%; object-fit: cover; }
.lux-open__pic::after { content: ""; position: absolute; inset: 0; opacity: var(--lux-scrim, 0); pointer-events: none;
	background: linear-gradient(0deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.5) 34%, rgba(10,9,8,0) 64%); }
.lux-open__words { position: relative; z-index: 2; padding: 64px var(--lux-edge) 150px; text-align: center; }
.lux-open__heading { margin: 0 auto; max-width: 1100px; font: 500 clamp(36px, 4.4vw, 64px)/1.04 var(--lux-font-heading); color: var(--lux-ink); text-wrap: balance; }
.lux-open__text { margin: 22px auto 0; max-width: 620px; font: 400 19px/1.6 var(--lux-font-body); color: var(--lux-text); }
.lux-open__copy .lux-scene__btn { margin-top: 28px; }
.lux-scene--open.is-live .lux-scene__stage { display: block; }
.lux-scene--open.is-live .lux-open__pic { position: absolute; inset: 0; aspect-ratio: auto; }
.lux-scene--open.is-live .lux-open__words { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--lux-edge) clamp(40px, 8vh, 84px); }
.lux-scene--open.is-live .lux-open__text { color: #F6F1E7; }
.lux-scene--open.is-live .lux-open__heading { color: #F6F1E7; }
@media (max-width: 767px) {
	.lux-open__pic { aspect-ratio: 4 / 5; }
	.lux-open__words { padding: 44px 20px 80px; }
	.lux-open__text { font-size: 17px; }
}

/* ---------- 1c. Rail: the pictures travel sideways ---------- */
.lux-scene--rail .lux-scene__stage { background: var(--lux-ground); padding: 150px 0; }
.lux-rail__track { display: flex; gap: 28px; padding: 0 var(--lux-edge); scroll-padding-inline: var(--lux-edge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.lux-rail__track::-webkit-scrollbar { display: none; }
/* at rest the heading sits above the row; live (desktop) the script moves it into the track so it travels with the cards */
.lux-rail__head { max-width: 760px; padding: 0 var(--lux-edge); margin-bottom: 56px; }
.lux-rail__track > .lux-rail__head { flex: 0 0 min(420px, 80vw); max-width: none; margin: 0; padding: 0 3vw 0 0; display: flex; flex-direction: column; justify-content: flex-end; }
.lux-rail__heading { margin: 0; font: 500 clamp(38px, 4.2vw, 60px)/1.04 var(--lux-font-heading); color: var(--lux-ink); text-wrap: balance; }
.lux-rail__text { margin: 24px 0 0; font: 400 18px/1.65 var(--lux-font-body); color: var(--lux-text); }
.lux-rail__card { flex: 0 0 auto; width: min(34vw, 460px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; color: var(--lux-ink); text-decoration: none; }
.lux-rail__pic { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--lux-surface); }
.lux-rail__pic img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s ease; }
.lux-rail__cap { display: flex; flex-direction: column; gap: 6px; }
.lux-rail__title { font: 500 30px/1.1 var(--lux-font-heading); color: var(--lux-ink); transition: color .3s ease; }
.lux-rail__label { font: 400 15px/1.4 var(--lux-font-body); color: var(--lux-muted); }
a.lux-rail__card:hover .lux-rail__title { color: var(--lux-gold); }
.lux-scene--rail.is-live .lux-scene__stage { padding: 0; display: flex; align-items: center; }
.lux-scene--rail.is-live .lux-rail__track { overflow: visible; scroll-snap-type: none; padding-top: calc(var(--lux-header-h) * .5); }
.lux-scene--rail.is-live .lux-rail__card { width: auto; }
.lux-scene--rail.is-live .lux-rail__pic { height: min(64vh, 720px); width: auto; }
@media (max-width: 767px) {
	.lux-scene--rail .lux-scene__stage { padding: 80px 0; }
	.lux-rail__track { gap: 14px; }
	.lux-rail__head { margin-bottom: 36px; }
	.lux-rail__card { width: 74vw; }
	.lux-rail__title { font-size: 26px; }
}

/* ---------- 1d. Words: a statement that lights up as it passes ---------- */
.lux-words { max-width: 1240px; margin: 0 auto; padding: 150px var(--lux-edge, 40px); }
.lux-words__line { margin: 0; font: 500 clamp(38px, 5.2vw, 78px)/1.08 var(--lux-font-heading); color: var(--lux-ink); letter-spacing: -.01em; text-wrap: pretty; }
.lux-words__text { margin: 40px 0 0; max-width: 620px; font: 400 19px/1.7 var(--lux-font-body); color: var(--lux-text); }
.lux-words__w { display: inline-block; }
@media (max-width: 767px) { .lux-words { padding: 80px 20px; } }

/* ---------- 2. Quiet layer (only when the script is running) ---------- */
html.lux-smooth { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Photo sections: the photograph becomes its own layer and drifts slower than the page. */
.lux-has-bgl { background-image: none !important; }
.lux-bgl { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; z-index: -1; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: transform; pointer-events: none; }
.lux-footer.lux-has-bgl { isolation: isolate; overflow: hidden; }

/* Pictures the script moves: they keep their frame, the photograph moves inside it. */
.lux-scroll .lux-own-m { overflow: hidden; }
.lux-scroll .lux-own-m img { transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1) !important; will-change: transform; }
.lux-scroll .lux-zoom:hover img { transform: none; }

/* Headings wait, hidden, until their lines are cut; never longer than the script's safety timer. */
.lux-scroll .lux-own-h:not(.is-split) { visibility: hidden; }
.lux-split-line { padding-bottom: .08em; margin-bottom: -.08em; }

@media (prefers-reduced-motion: reduce) {
	.lux-scene.is-live { height: auto; }
	.lux-scene.is-live > .lux-scene__stage { position: relative; height: auto; }
	.lux-scroll .lux-own-h { visibility: visible !important; }
}
.elementor-editor-active .lux-scene.is-live { height: auto; }
