/* LUX 2.0 · "How the stone reached you", the cinematic scroll (owner 30.11; public/store/eve/cinema.js).
   One sticky full-screen stage behind eleven scenes; the lines scroll over it. Velluto stage (never pure black),
   oro-luce, Bodoni Moda; the same on Chrome (Galaxy) and Safari (iPhone): svh units with a vh fallback, no
   background-attachment, no scroll-timeline. */
.jc{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-top:0;background:#1A1310;color:#F3EADC;isolation:isolate}
.jc-slot{display:block}
#page .jc{margin-top:-6px}
/* ---------- the stage ---------- */
.jc-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;z-index:0;contain:paint}
.jc-l{position:absolute;inset:0;opacity:0;transform:scale(1.06);transition:opacity 1.1s cubic-bezier(.4,0,.2,1),transform 6s cubic-bezier(.16,1,.3,1);will-change:opacity}
.jc-l.on{opacity:1;transform:none}
.jc-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#1A1310}
.jc-veil{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(26,19,16,.55) 0%,rgba(26,19,16,0) 24%,rgba(26,19,16,0) 46%,rgba(26,19,16,.9) 100%),radial-gradient(120% 80% at 50% 50%,transparent 55%,rgba(26,19,16,.55) 100%)}
.jc-ill{position:absolute;z-index:4;left:12px;bottom:max(38px,calc(env(safe-area-inset-bottom) + 24px));padding:3px 9px;border-radius:999px;background:rgba(26,19,16,.5);border:1px solid rgba(243,234,220,.22);font-size:10.5px;line-height:1.35;color:#F3EADC;opacity:.8;transition:opacity .6s}
.jc[data-beat="-1"] .jc-stage .jc-ill,.jc[data-layer="map"] .jc-stage .jc-ill,.jc[data-layer="sort"] .jc-stage .jc-ill,.jc[data-layer="draw"] .jc-stage .jc-ill,.jc[data-layer="env"] .jc-stage .jc-ill{opacity:0}
/* progress: a hairline that fills, eleven marks, the scene's numeral */
.jc-prog{position:absolute;z-index:4;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:10px;opacity:0;transition:opacity .6s}
.jc:not([data-beat="-1"]) .jc-prog{opacity:1}
.jc-prog ol{display:flex;gap:5px;margin:0;padding:0;list-style:none}
.jc-prog li{width:14px;height:2px;border-radius:2px;background:rgba(243,234,220,.22);transition:background .5s}
.jc-prog li.on{background:#D4A62A}
.jc-num{min-width:2.4em;font:400 13px/1 "Bodoni Moda","Times New Roman",serif;letter-spacing:.12em;color:#D4A62A;text-align:right}
/* ---------- the track: lines scrolling over the stage ---------- */
.jc-track{position:relative;z-index:1;margin-top:-100vh;margin-top:-100svh}
.jc-intro{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px 22px 60px}
.jc-kick{margin:0;font-size:12px;font-weight:600;letter-spacing:.26em;text-transform:uppercase;color:#D4A62A}
.jc-title{margin:12px 0 0;font-family:"Bodoni Moda","Times New Roman",serif;font-weight:400;font-size:clamp(42px,11.5vw,96px);line-height:1.02;color:#FBF7F0;text-wrap:balance;text-shadow:0 2px 30px rgba(26,19,16,.8)}
html[data-lang="th"] .jc-title{font-family:"Anuphan",system-ui,sans-serif;font-weight:500;font-size:clamp(34px,9vw,66px);line-height:1.25}
.jc-sub{margin:16px 0 0;font-size:16px;line-height:1.5;color:#CDBFA9}
.jc-cue{margin:34px 0 0;width:1px;height:46px;background:linear-gradient(#D4A62A,transparent);position:relative;overflow:hidden}
.jc-cue i{position:absolute;left:-1px;top:-14px;width:3px;height:14px;border-radius:2px;background:#FBF7F0;animation:jc-cue 2.2s cubic-bezier(.6,0,.3,1) infinite}
@keyframes jc-cue{to{top:46px}}
.jc-skip{margin-top:22px;min-height:44px;padding:0 18px;border:1px solid rgba(243,234,220,.28);border-radius:999px;background:rgba(26,19,16,.35);color:#F3EADC;font:inherit;font-size:13px;letter-spacing:.06em;cursor:pointer}
/* the side "Skip" (owner 2.12): small, quiet, in the top corner through every scene; hidden on the opening screen
   (its own button) and at the last scene (the buttons there end the film) */
.jc-side{position:sticky;top:0;height:0;z-index:6}
.jc-sskip{position:absolute;right:max(12px,env(safe-area-inset-right));top:calc(var(--hdr,64px) + 14px);display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;
  border:1px solid rgba(243,234,220,.22);border-radius:999px;background:rgba(26,19,16,.32);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  color:rgba(243,234,220,.86);font-family:inherit;font-size:12px;font-weight:500;line-height:1;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .5s,visibility .5s,background .3s}
.jc-sskip i{width:6px;height:6px;border-top:1.4px solid currentColor;border-right:1.4px solid currentColor;transform:rotate(45deg);margin-left:1px}
.jc-sskip:hover,.jc-sskip:focus-visible{background:rgba(26,19,16,.6);color:#FBF7F0}
.jc-sskip lx-t[lang="th"]{letter-spacing:0;text-transform:none;font-size:13px}
.jc:not([data-beat="-1"]):not([data-jc-end]) .jc-sskip{opacity:1;visibility:visible}
.jc-intro .lxt-strip{margin:26px auto 0;max-width:980px;width:100%;transition:opacity .6s}
.jc:not([data-beat="-1"]) .jc-intro .lxt-strip{opacity:0;pointer-events:none}
.jc-intro .lxt-strip{--lxt-gold:#D4A62A;--lxt-ink:#F3EADC;--lxt-soft:rgba(243,234,220,.78);--lxt-line:rgba(212,166,42,.45)}
.jc-intro .lxt-chip{background:rgba(26,19,16,.5)}
.jc-intro .lxt-chip[aria-expanded="true"]{background:#F3EADC;border-color:#F3EADC;color:#241A15}
.jc-intro .lxt-chip[aria-expanded="true"] svg{color:#9A7420}
.jc-beats{margin:0;padding:0;list-style:none}
/* owner 2.12 15:36 ("it runs too fast"): a little more road per scene; rest points (store/pace/rest.js) hold each one */
.jc-b{min-height:128vh;min-height:128svh;padding:0 22px}
.jc-home .jc-b{min-height:115vh;min-height:115svh}
/* the line rises from below and holds in the lower half while its scene plays, then leaves with it */
.jc-cap{position:sticky;top:50vh;top:50svh;width:100%;max-width:620px;margin:0 auto;text-align:center;opacity:0;transform:translateY(24px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
.jc-b.on .jc-cap{opacity:1;transform:none}
.jc-n{margin:0;font-family:"Bodoni Moda","Times New Roman",serif;font-size:14px;letter-spacing:.16em;color:#E9DFCF;text-shadow:0 1px 3px rgba(26,19,16,.9),0 0 18px rgba(26,19,16,.85)}
.jc-n span{color:#E3B84A}
.jc-n i{font-style:italic;letter-spacing:.05em}
.jc-line{margin:8px 0 0;font-family:"Bodoni Moda","Times New Roman",serif;font-weight:400;font-size:clamp(30px,8.4vw,58px);line-height:1.08;color:#FBF7F0;text-wrap:balance;text-shadow:0 2px 24px rgba(26,19,16,.85)}
html[data-lang="th"] .jc-line{font-family:"Anuphan",system-ui,sans-serif;font-weight:500;font-size:clamp(25px,6.8vw,42px);line-height:1.3}
.jc-more{display:inline-block;margin:12px auto 0;max-width:34em;text-align:left;color:#F3EADC}
.jc .vx-body{color:#E9DFCF}
.jc-more .vx-body p{margin:6px 0 0;padding:12px 14px;border-radius:14px;background:rgba(26,19,16,.62);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:15px;line-height:1.6}
.jc-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 24px;margin-top:22px}
html .jc-cta .btn.solid,html.lux2 .jc-cta .btn.solid{background:#D4A62A;border-color:#D4A62A;color:#241A15}
.jc-cta .l2-link{color:#F3EADC}
.jc-credits{display:block;margin:26px auto 0;max-width:30em;font-size:12px;opacity:.85;text-align:left}
.jc-b-te{min-height:0!important;padding:48vh 22px 40vh}
.jc-b-te .jc-cap{position:relative;top:auto}
/* ---------- I and V: the dotted world ---------- */
.jc-l-map{display:flex;align-items:center;justify-content:center;background:radial-gradient(90% 70% at 60% 55%,#3A2C22 0%,#241A15 55%,#1A1310 100%)}
.jc-map{position:absolute;inset:0;width:100%;height:100%}
@media (orientation:portrait){
  .jc-stage .jc-map{inset:auto 0;top:16%;width:100%;height:auto;aspect-ratio:2/1}
  .jc-stage .jc-pin text,.jc-stage .jc-hub-t{font-size:5.6px}
  .jc-stage .jc-map-note{top:calc(16% + 52vw)}
}
.jc-dots{fill:none;stroke:#8C7356;stroke-width:1.55;stroke-linecap:round;opacity:.55}
.jc-pin{opacity:0;transition:opacity .8s calc(var(--i) * .25s)}
.jc-pin circle{fill:#D4A62A}
.jc-pulse{fill:none!important;stroke:#D4A62A;stroke-width:.6;transform-box:fill-box;transform-origin:center;animation:jc-pulse 2.6s ease-out infinite;animation-delay:calc(var(--i) * .4s)}
.jc-pin text,.jc-hub-t{font:500 4.4px/1 system-ui,sans-serif;fill:#FBF7F0;letter-spacing:.04em;paint-order:stroke;stroke:#1A1310;stroke-width:1.2px}
@keyframes jc-pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(4);opacity:0}}
.jc-route{fill:none;stroke:#D4A62A;stroke-width:.7;stroke-dasharray:1;stroke-dashoffset:1;opacity:.85}
.jc-hub,.jc-hub-t,.jc-ship{opacity:0;transition:opacity .8s .6s}
.jc-hub{fill:#FBF7F0;filter:drop-shadow(0 0 3px #D4A62A)}
.jc-ship path{fill:#FBF7F0;stroke:#D4A62A;stroke-width:.25}
.jc-map-note{position:absolute;z-index:3;left:0;right:0;top:calc(var(--hdr,64px) + 16px);margin:0;text-align:center;font-size:11px;color:#CDBFA9;opacity:0;transition:opacity .8s}
.jc[data-layer="map"][data-beat="0"] .jc-pin,.jc[data-layer="map"][data-beat="4"] .jc-pin,.jc-pic-map .jc-pin{opacity:1}
.jc[data-beat="0"][data-layer="map"] .jc-map-note{opacity:.8}
.jc[data-layer="map"][data-beat="4"] .jc-route{animation:jc-draw 2.4s cubic-bezier(.6,0,.2,1) forwards;animation-delay:calc(var(--i) * .3s)}
.jc[data-layer="map"][data-beat="4"] .jc-hub,.jc[data-layer="map"][data-beat="4"] .jc-hub-t,.jc[data-layer="map"][data-beat="4"] .jc-ship{opacity:1}
.jc[data-beat="4"] .jc-pin text{opacity:.35}
@keyframes jc-draw{to{stroke-dashoffset:0}}
/* ---------- VII: the design screen ---------- */
.jc-l-draw{display:flex;align-items:center;justify-content:center;padding:calc(var(--hdr,64px) + 20px) 18px 38vh;background:radial-gradient(80% 60% at 50% 40%,#2E231C,#1A1310)}
.jc-screen{width:min(92vw,620px);aspect-ratio:32/22;border-radius:14px;padding:10px;background:linear-gradient(160deg,#2a211b,#141010);box-shadow:0 30px 60px -30px #000,inset 0 0 0 1px rgba(212,166,42,.3)}
.jc-screen svg{display:block;width:100%;height:100%;border-radius:8px;background:#0F1114}
.jc-grid path{fill:none;stroke:rgba(243,234,220,.06);stroke-width:.6}
.jc-axis{fill:none;stroke:rgba(212,166,42,.18);stroke-width:.6;stroke-dasharray:3 3}
.jc-d *{fill:none;stroke:#D4A62A;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.jc-d{opacity:0}
.jc-l-draw.on .jc-d,.jc-pic-draw .jc-d{animation:jc-style 9s infinite}
.jc-l-draw.on .jc-d *,.jc-pic-draw .jc-d *{animation:jc-ink 9s infinite}
.jc-d1,.jc-d1 *{animation-delay:3s!important}.jc-d2,.jc-d2 *{animation-delay:6s!important}
@keyframes jc-style{0%{opacity:1}30%{opacity:1}34%,100%{opacity:0}}
@keyframes jc-ink{0%{stroke-dashoffset:1}18%,100%{stroke-dashoffset:0}}
.jc-ui rect,.jc-ui circle{fill:rgba(243,234,220,.08)}
.jc-ui circle:first-of-type{fill:#D4A62A;opacity:.7}
/* ---------- IV: rough stones in colour, one is chosen ---------- */
.jc-l-sort{display:flex;align-items:center;justify-content:center;padding:calc(var(--hdr,64px) + 20px) 14px 38vh;background:radial-gradient(80% 60% at 50% 40%,#2E231C,#1A1310)}
.jc-sort{width:min(94vw,640px)}
.jc-sort svg{display:block;width:100%;height:auto;overflow:visible}
.jc-st{transform-box:fill-box;transform-origin:center;transition:opacity 1s .9s,transform 1.4s cubic-bezier(.16,1,.3,1) .9s}
.jc-st polygon{fill-opacity:.82;stroke:rgba(251,247,240,.35);stroke-width:.6;stroke-linejoin:round}
.jc-st path{fill:none;stroke:rgba(251,247,240,.22);stroke-width:.5}
.jc-st .jc-st-hi{fill:url(#jcsg);fill-opacity:0;stroke:none}
.jc-st-glow{opacity:0;transition:opacity 1.2s 1.2s}
.jc-l-sort.on .jc-st,.jc-pic-sort .jc-st{opacity:.3}
.jc-l-sort.on .jc-st-c,.jc-pic-sort .jc-st-c{opacity:1;transform:translateY(-8px) scale(1.2);filter:drop-shadow(0 0 6px rgba(120,130,230,.65))}
.jc-l-sort.on .jc-st-glow,.jc-pic-sort .jc-st-glow{opacity:1}
.jc-pic-sort{display:flex;align-items:center;justify-content:center;padding:14px;background:radial-gradient(80% 60% at 50% 45%,#2E231C,#1A1310)}
.jc-pic-sort *{transition:none!important}
/* ---------- XI: the black envelope, the X seal, the passport ---------- */
.jc-l-env{display:flex;align-items:center;justify-content:center;padding-bottom:30vh;background:radial-gradient(70% 55% at 50% 42%,#4A3A2C 0%,#2A1F19 50%,#1A1310 100%)}
.jc-env{width:min(64vw,300px);aspect-ratio:4/5;position:relative}
.jc-env-in{position:absolute;inset:0}
.jc-env-in>*{position:absolute}
.jc-env-back{inset:0;border-radius:4px;background:linear-gradient(160deg,#2b211b,#1A1310 70%);box-shadow:0 40px 60px -30px #000,inset 0 0 0 1px rgba(212,166,42,.35)}
.jc-env-front{left:0;right:0;bottom:0;height:72%;z-index:3;border-radius:0 0 4px 4px;background:linear-gradient(175deg,#2a201a,#1d1612 60%,#1A1310);clip-path:polygon(0 0,50% 36%,100% 0,100% 100%,0 100%)}
.jc-env-flap{left:0;right:0;top:0;height:46%;z-index:4;transform-origin:50% 0;background:linear-gradient(180deg,#30251d,#1c1511);clip-path:polygon(0 0,100% 0,50% 100%);transition:transform 1.4s cubic-bezier(.5,.1,.2,1) .5s}
.jc-seal{left:50%;top:40%;width:26%;z-index:5;transform:translate(-50%,-50%);filter:drop-shadow(0 0 14px rgba(212,166,42,.6));transition:opacity .6s .2s,transform 1s .2s}
.jc-pass{left:14%;width:72%;bottom:10%;z-index:2;border-radius:3px;box-shadow:0 20px 40px -20px #000;transition:transform 1.6s cubic-bezier(.16,1,.3,1) 1.4s}
.jc-l-env.on .jc-seal,.jc-pic-env .jc-seal{opacity:0;transform:translate(-50%,-50%) scale(1.5) rotate(25deg)}
.jc-l-env.on .jc-env-flap,.jc-pic-env .jc-env-flap{transform:rotateX(180deg);z-index:1}
.jc-l-env.on .jc-pass,.jc-pic-env .jc-pass{transform:translateY(-38%);z-index:6}
@media (max-width:899px){.jc[data-jc-end] .jc-l-env.on{opacity:.22}}
/* owner 2.12: on a phone the risen passport went under the header (half a passport). The envelope now starts below
   the header with room for the passport's rise (38% of its height), and is sized from the screen height too. */
@media (orientation:portrait){
  .jc-l-env{align-items:flex-start;padding:calc(var(--hdr,64px) + min(26vw,112px)) 0 0}
  .jc-env{width:min(56vw,250px,30svh)}
}  /* phone: the closing line and the buttons scroll over the envelope */
.jc-env-shut .jc-seal{opacity:1!important;transform:translate(-50%,-50%)!important}
.jc-env-shut .jc-env-flap{transform:none!important;z-index:4!important}
/* ---------- the "Why LUX" card ---------- */
.jc-why{position:relative;display:block;overflow:hidden;max-width:980px;margin:30px auto 10px;min-height:220px;border-radius:22px;color:#FBF7F0;text-decoration:none;background:#1A1310;box-shadow:0 30px 60px -34px rgba(0,0,0,.9),inset 0 0 0 1px rgba(212,166,42,.3)}
.jc-why-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.75;transition:transform 6s cubic-bezier(.16,1,.3,1)}
.jc-why .jc-ill{top:12px;bottom:auto;left:auto;right:12px;z-index:2}
.jc-why:hover .jc-why-bg{transform:scale(1.06)}
.jc-why::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(26,19,16,.9),rgba(26,19,16,.2))}
.jc-why-t{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;padding:34px 26px}
.jc-why-t small{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#D4A62A}
.jc-why-t b{max-width:12em;font:400 clamp(26px,6.6vw,40px)/1.1 "Bodoni Moda","Times New Roman",serif}
html[data-lang="th"] .jc-why-t b{font-family:"Anuphan",system-ui,sans-serif;font-weight:500;line-height:1.3}
.jc-why-go{display:inline-flex;align-items:center;gap:10px;margin-top:6px;font-size:14px}
.jc-why-go i{width:34px;height:34px;border-radius:50%;border:1px solid #D4A62A;background:radial-gradient(circle,#D4A62A 0 0) center/0 0 no-repeat;position:relative}
.jc-why-go i::after{content:"";position:absolute;left:13px;top:10px;border-left:10px solid #D4A62A;border-top:7px solid transparent;border-bottom:7px solid transparent}
/* ---------- still mode (reduced motion, Save-Data): eleven pictures, no video ---------- */
.jc-still .jc-track{margin-top:0}
.jc-still .jc-intro{min-height:0;padding:70px 22px 30px}
.jc-still .jc-b{min-height:0;display:block;padding:0 18px 40px}
.jc-still .jc-cap{opacity:1;transform:none;margin-top:16px}
.jc-pic{position:relative;margin:0 auto;max-width:720px;aspect-ratio:4/5;border-radius:20px;overflow:hidden;background:#241A15}
@media (min-width:760px){.jc-pic{aspect-ratio:16/9}}
.jc-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.jc-pic .jc-ill{top:10px;bottom:auto;left:auto;right:10px}
.jc-pic-map{display:flex;align-items:center;padding-bottom:20px;background:radial-gradient(90% 70% at 60% 55%,#3A2C22,#1A1310)}
.jc-pic-map .jc-map-note{opacity:.8;top:auto;bottom:10px}
.jc-pic-map .jc-route{stroke-dashoffset:0}
.jc-pic-map .jc-hub,.jc-pic-map .jc-hub-t{opacity:1}
.jc-pic-draw{display:flex;align-items:center;justify-content:center;padding:14px}
.jc-pic-draw .jc-d,.jc-pic-draw .jc-d *{animation:none!important;opacity:1;stroke-dashoffset:0}
.jc-pic-draw .jc-d1,.jc-pic-draw .jc-d2{display:none}
.jc-pic-env{display:flex;align-items:center;justify-content:center;background:radial-gradient(70% 55% at 50% 42%,#4A3A2C,#1A1310)}
.jc-pic-env .jc-env-in *{transition:none!important}
@media (prefers-reduced-motion:reduce){.jc *,.jc *::before,.jc *::after{animation:none!important;transition:none!important}}
/* ---------- wide screens ---------- */
@media (min-width:900px){
  .jc-b{padding:0 6vw}
  .jc-cap{top:56vh;top:56svh;margin:0;text-align:left;max-width:560px}
  .jc-cta{justify-content:flex-start}
  .jc-credits{margin-left:0}
  .jc-l-draw{padding-bottom:12vh;justify-content:flex-end;padding-right:8vw}
  .jc-stage .jc-ill{left:auto;right:24px;bottom:96px}  /* wide: the line and "Discover" use the left edge; above the LINE bubble */
  .jc-l-sort{padding-bottom:12vh;justify-content:flex-end;padding-right:6vw}
  .jc-sort{width:min(52vw,720px)}
  .jc-l-env{padding-bottom:0;justify-content:flex-end;padding-right:16vw}
  .jc-pin text,.jc-hub-t{font-size:3.6px}
  .jc-stage .jc-map{inset:auto;left:24%;top:10%;width:74%;height:62%}
  .jc-stage .jc-map-note{left:24%;right:2%;top:auto;bottom:26%}
  .jc-b-te{padding:48vh 6vw 40vh}
}
