/* Horizontal Blinds, Hiro-kiii / Codrops (MIT), original scene rules.
   The document uses the reference's 11px rem and Playfair Display family.
   Default/non-ready rules below give readable content without JavaScript. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }

html[data-motion="ready"] .stage { height: calc(var(--orilla-scene-height, 100vh) * 5); position: relative; }
html[data-motion="ready"] .layers { position: sticky; top: 0; width: 100vw; height: var(--orilla-scene-height, 100vh); overflow: hidden; }
html[data-motion="ready"] .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer image { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
html[data-motion="ready"] .texts { padding: 3vw; }
html[data-motion="ready"] .txt { position: absolute; width: 100%; color: #fff; text-transform: uppercase; clip-path: inset(100% 0 0 0); transform: translateY(40px); }
html[data-motion="ready"] .txt h1 { margin-top: 10vh; font-size: clamp(4.8rem, 6.8vw, 13.6rem); letter-spacing: -0.025em; line-height: 0.85; }
html[data-motion="ready"] .txt h2 { margin-top: 6vw; font-size: clamp(1.4rem, 1.067vw, 1.8rem); letter-spacing: 0.24em; }
html[data-motion="ready"] .txt span { display: block; font-size: clamp(1.1rem, 0.8vw, 1.2rem); width: 20%; margin-top: 30px; line-height: 1.8; letter-spacing: normal; }
html[data-motion="ready"] .progress-bar { position: absolute; bottom: 0; width: 100%; padding: 4rem; display: flex; gap: 1rem; z-index: 20; }
html[data-motion="ready"] .segment { flex: 1; height: 2px; background: rgba(255,255,255,0.2); overflow: hidden; position: relative; }
html[data-motion="ready"] .fill { position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: #fff; }
@media screen and (max-width: 1024px) { html[data-motion="ready"] .txt span { width: 35%; } }
@media screen and (max-width: 599px) { html[data-motion="ready"] .txt span { width: 50%; } }

/* Progressive fallback: original SVG presentation masks are ignored only
   while motion isn't active. Photos/captions stay ordered and readable. */
html:not([data-motion="ready"]) .stage { position: relative; height: auto; background: #18282b; }
html:not([data-motion="ready"]) .layers { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; height: auto; overflow: hidden; }
html:not([data-motion="ready"]) .layer { position: relative; display: block; width: 100%; height: min(78vh, 900px); }
html:not([data-motion="ready"]) .layer image { mask: none; }
html:not([data-motion="ready"]) .texts { display: contents; }
html:not([data-motion="ready"]) .txt { position: relative; width: 100%; padding: 36px max(24px, 5vw) 56px; color: #fff; text-transform: uppercase; clip-path: none !important; transform: none !important; }
html:not([data-motion="ready"]) .txt h1 { margin: 0; font-size: clamp(4.8rem, 6.8vw, 13.6rem); letter-spacing: -0.025em; line-height: 0.85; }
html:not([data-motion="ready"]) .txt h2 { margin: 28px 0 0; font-size: clamp(1.4rem, 1.067vw, 1.8rem); letter-spacing: 0.24em; }
html:not([data-motion="ready"]) .txt span { display: block; max-width: 48ch; margin-top: 22px; font-size: 1.2rem; line-height: 1.8; letter-spacing: normal; }
html:not([data-motion="ready"]) .layer:nth-of-type(1) { order: 1; }
html:not([data-motion="ready"]) .txt:nth-child(1) { order: 2; }
html:not([data-motion="ready"]) .layer:nth-of-type(2) { order: 3; }
html:not([data-motion="ready"]) .txt:nth-child(2) { order: 4; }
html:not([data-motion="ready"]) .layer:nth-of-type(3) { order: 5; }
html:not([data-motion="ready"]) .txt:nth-child(3) { order: 6; }
html:not([data-motion="ready"]) .progress-bar { display: none; }
.scene-fallback { display: none; }
html:not([data-motion="ready"]) .layers:has(.scene-fallback) .layer { display: none; }
html:not([data-motion="ready"]) .layers:has(.scene-fallback) .scene-fallback { display: block; width: 100%; height: min(78vh, 900px); object-fit: cover; }
html:not([data-motion="ready"]) .scene-fallback:nth-of-type(1) { order: 1; }
html:not([data-motion="ready"]) .scene-fallback:nth-of-type(2) { order: 3; }
html:not([data-motion="ready"]) .scene-fallback:nth-of-type(3) { order: 5; }
@media (prefers-reduced-motion: reduce) { .layer image { mask: none; } }
