/* ══════════════════════════════════════════════════════════
   Häcker India: "From studio to your home" scroll story (.jr)
   Used on /order-to-installation/. Static stepped layout by default
   (no JS, reduced motion); js/journey.js adds .is-live for the pinned,
   scroll-driven version.
   ══════════════════════════════════════════════════════════ */
html.lenis, html.lenis body { height:auto; }
.lenis.lenis-smooth { scroll-behavior:auto !important; }

section.jr { background:var(--ink-2); color:var(--paper); padding:0; } /* the site pads every <section>; this one runs edge to edge */
.jr-head { padding:clamp(88px,14vh,160px) var(--pad) clamp(48px,8vh,96px); max-width:1500px; margin:0 auto; }
.jr-head .kick { color:var(--brass-lt); }
.jr-head .d2 { margin-top:20px; max-width:16ch; }
.jr-head p { margin-top:22px; max-width:46ch; font-weight:300; color:rgba(255,255,255,.72); font-size:clamp(15px,1.15vw,17px); line-height:1.82; }

/* ---- static stepped layout ---- */
.jr-stage { position:relative; padding:0 var(--pad) clamp(88px,14vh,160px); max-width:1500px; margin:0 auto; }
.jr-canvas, .jr-shade, .jr-rail { display:none; }
.jr-steps { list-style:none; display:grid; gap:clamp(56px,9vh,110px); }
.jr-step { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(24px,4vw,64px); align-items:center; }
.jr-step img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:var(--rad-s); background:#2f2a22; }
.jr-cap .jr-n { font-size:11px; letter-spacing:.34em; text-transform:uppercase; color:var(--brass-lt); }
.jr-cap h3 { font-family:var(--serif); font-weight:400; font-size:clamp(28px,3.4vw,52px); line-height:1.12; letter-spacing:-.008em; margin:16px 0 16px; max-width:15ch; }
.jr-cap p { font-weight:300; font-size:clamp(15px,1.15vw,17px); line-height:1.75; color:rgba(255,255,255,.78); max-width:40ch; }

/* ---- live: pinned full-screen scenes ---- */
.jr.is-live .jr-stage { height:100vh; height:100svh; max-width:none; padding:0; overflow:hidden; }
.jr.is-live .jr-canvas { display:block; position:absolute; inset:0; width:100%; height:100%; }
.jr.is-live .jr-shade { display:block; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(20,17,13,.86) 0%, rgba(20,17,13,.42) 34%, rgba(20,17,13,0) 58%),
             linear-gradient(to right, rgba(20,17,13,.5) 0%, rgba(20,17,13,0) 46%); }
.jr.is-live .jr-steps { display:block; position:absolute; left:var(--pad); right:var(--pad); bottom:clamp(96px,15vh,150px); }
.jr.is-live .jr-step { display:block; position:absolute; left:0; bottom:0; width:min(560px,100%); opacity:0; visibility:hidden; will-change:opacity,transform; }
.jr.is-live .jr-step img { display:none; }
.jr.is-live .jr-cap p { color:rgba(255,255,255,.84); }

.jr.is-live .jr-rail { display:flex; position:absolute; left:var(--pad); right:var(--pad); bottom:clamp(32px,5.5vh,56px); gap:0; }
.jr-rail li { list-style:none; flex:1; position:relative; padding-top:16px; font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,255,255,.62); transition:color .5s; white-space:nowrap; }
.jr-rail li::before { content:""; position:absolute; left:0; right:8px; top:0; height:1px; background:rgba(255,255,255,.28); }
.jr-rail li i { position:absolute; left:0; top:0; height:1px; width:calc(100% - 8px); background:var(--paper); transform:scaleX(var(--f,0)); transform-origin:left; }
.jr-rail li.is-on { color:var(--paper); }
.jr-rail li b { font-weight:400; color:var(--brass-lt); margin-left:10px; letter-spacing:.14em; }

@media (max-width: 860px) {
  .jr-step { grid-template-columns:1fr; gap:22px; }
  .jr.is-live .jr-steps { bottom:clamp(84px,13vh,120px); }
  .jr.is-live .jr-shade { background:linear-gradient(to top, rgba(20,17,13,.94) 0%, rgba(20,17,13,.78) 42%, rgba(20,17,13,.35) 58%, rgba(20,17,13,0) 74%); }
  .jr-rail li { font-size:0; letter-spacing:0; padding-top:0; }
  .jr-rail li b { display:none; }
  .jr.is-live .jr-rail { bottom:clamp(28px,5vh,44px); }
  .jr-rail li.is-on { font-size:11px; letter-spacing:.2em; padding-top:14px; flex:2.4; }
}
/* At 940px and below the site shows its fixed Call / WhatsApp / Enquire bar (50px): keep the story above it. */
@media (max-width: 940px) {
  .jr.is-live .jr-steps { bottom:calc(clamp(84px,13vh,120px) + 50px + env(safe-area-inset-bottom)); }
  .jr.is-live .jr-rail { bottom:calc(clamp(22px,3.5vh,36px) + 50px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) and (max-height: 640px) {
  .jr.is-live .jr-cap p { display:none; }
}
