/* LUX 2.0 · visual pages, store side (public/store/visual/visual.js). Brand book v1: velluto #241A15 stage, notte #1A1310 at
   the edges (never pure black), oro-luce #D4A62A on dark, Bodoni Moda display. Mobile first (LINE in-app browser).
   Each scene is a tall block with a sticky full-screen stage; visual.js writes its scroll progress as --p (0 → 1).
   Without JavaScript --p falls back to .5: every line is visible and nothing moves. */
.vx-cine,.vx-teaser,.vx-lb,.vx-aga-peek,.vx-cert{--vx-velluto:#241A15;--vx-moka:#3A2C22;--vx-notte:#1A1310;--vx-luce:#D4A62A;--vx-oro:#9A7432;--vx-on:#F3EADC;--vx-on2:#CDBFA9;--vx-carta:#FBF7F0;--vx-bodoni:"Bodoni Moda","Instrument Serif","Times New Roman",serif;--vx-ease:cubic-bezier(.16,1,.3,1)}
.vx-cine{position:relative;background:var(--vx-notte);color:var(--vx-on)}
.vx-cine-page{margin:14px calc(var(--gutter,20px) * -1) 0}
.vx-scene{position:relative;height:200vh;height:200svh}
.vx-open{height:130vh;height:130svh}
.vx-perlei{height:170vh;height:170svh}
.vx-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(120% 80% at 50% 30%,var(--vx-moka) 0%,var(--vx-velluto) 52%,var(--vx-notte) 100%)}
.vx-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transform:scale(calc(1.16 - var(--p,.5) * .16)) translate3d(0,calc((var(--p,.5) - .5) * -5%),0);will-change:transform}
video.vx-media{background:var(--vx-velluto)}
.vx-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(26,19,16,.55) 0%,rgba(26,19,16,0) 24%,rgba(26,19,16,.18) 46%,rgba(26,19,16,.62) 68%,rgba(26,19,16,.92) 100%)}
.vx-txt{position:relative;z-index:3;width:100%;max-width:680px;padding:0 24px calc(56px + env(safe-area-inset-bottom,0px));text-align:center;
  opacity:min(clamp(0,(var(--p,.5) - .2) * 9,1),clamp(0,(.8 - var(--p,.5)) * 9,1));transform:translate3d(0,calc((1 - clamp(0,(var(--p,.5) - .2) * 9,1)) * 28px),0)}
.vx-perlei .vx-txt{opacity:clamp(0,(var(--p,.5) - .2) * 9,1)}
.vx-kick{margin:0 0 14px;font-size:12.5px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--vx-luce)}
.vx-title{margin:0;font-family:var(--vx-bodoni);font-weight:400;font-size:clamp(40px,11vw,92px);line-height:1.02;color:var(--vx-on);text-wrap:balance}
.vx-num,.vx-kick{text-shadow:0 1px 14px rgba(26,19,16,.9)}
.vx-num{margin:0 0 10px;font-family:var(--vx-bodoni);font-size:15px;letter-spacing:.2em;color:var(--vx-on2)}
.vx-it{font-style:italic;letter-spacing:.04em;font-size:19px;color:var(--vx-luce)}
.vx-cine .vx-line{margin:0;font-family:var(--vx-bodoni);font-weight:400;font-size:clamp(32px,8.6vw,68px);line-height:1.06;color:var(--vx-on);text-wrap:balance;text-shadow:0 2px 24px rgba(26,19,16,.55)}
html[lang="th"] .vx-cine .vx-line,html[lang="th"] .vx-title{font-family:"Anuphan","Noto Sans Thai",system-ui,sans-serif;font-weight:500;line-height:1.25;font-size:clamp(28px,7.6vw,58px)}
.vx-ill{position:absolute;z-index:3;right:12px;bottom:10px;padding:0;border:0;background:none;color:var(--vx-on);opacity:.55;font-size:11px;letter-spacing:.08em;line-height:1.35;white-space:nowrap;pointer-events:none} /* UX council 2.12 (#20): a discreet caption at the foot of the picture, not a badge at the top */
/* "Discover": the one place where a chapter has more words. Scoped to the cinematic journey (tour v2 29.11): unscoped,
   these rules turned the brand voice's .vx-more controls into grey pills and its .vx-line into a huge headline. */
.vx-cine .vx-more{margin:22px auto 0;max-width:30em}
.vx-cine .vx-more summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid rgba(212,166,42,.65);color:var(--vx-on);font-size:14px;font-weight:600;letter-spacing:.08em;cursor:pointer;list-style:none;background:rgba(26,19,16,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.vx-cine .vx-more summary::-webkit-details-marker{display:none}
.vx-cine .vx-more summary::after{content:"";width:9px;height:9px;border-right:1.5px solid var(--vx-luce);border-bottom:1.5px solid var(--vx-luce);transform:translateY(-2px) rotate(45deg);transition:transform .4s var(--vx-ease)}
.vx-cine .vx-more[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.vx-cine .vx-more p{margin:14px 0 0;padding:16px 18px;border-radius:16px;background:rgba(26,19,16,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(243,234,220,.12);font-size:15.5px;line-height:1.6;color:var(--vx-on);text-align:left;animation:vx-up .5s var(--vx-ease)}
@keyframes vx-up{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.vx-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 24px;margin-top:22px}
.vx-cta .btn{margin:0}
html .vx-cine .btn.solid,html.lux2 .vx-cine .btn.solid{background:var(--vx-luce);border-color:var(--vx-luce);color:var(--vx-velluto)}
.vx-link{color:var(--vx-on);font-weight:600;font-size:15px;text-decoration:none;border-bottom:1px solid var(--vx-luce);padding-bottom:2px}
/* the chapter bar: seven threads of light, the current one lit */
.vx-bar{position:absolute;z-index:3;left:16px;right:16px;top:calc(var(--ann,0px) + 72px);display:flex;gap:5px;list-style:none;margin:0;padding:0}
.vx-bar li{flex:1;height:2px;border-radius:2px;background:rgba(243,234,220,.22)}
.vx-bar li.on{background:linear-gradient(90deg,var(--vx-luce) calc(clamp(0,(var(--p,.5) - .2) * 1.67,1) * 100%),rgba(243,234,220,.22) 0)}
.vx-scene:nth-child(n+3) .vx-bar li:nth-child(1),.vx-scene:nth-child(n+4) .vx-bar li:nth-child(2),.vx-scene:nth-child(n+5) .vx-bar li:nth-child(3),
.vx-scene:nth-child(n+6) .vx-bar li:nth-child(4),.vx-scene:nth-child(n+7) .vx-bar li:nth-child(5),.vx-scene:nth-child(n+8) .vx-bar li:nth-child(6){background:rgba(212,166,42,.75)}
/* opening: light rising from the dark */
.vx-open .vx-stage{align-items:center}
.vx-open .vx-txt{opacity:clamp(0,(.72 - var(--p,.5)) * 6,1);transform:translate3d(0,calc(var(--p,.5) * -60px),0);padding-bottom:0}
.vx-motes i{position:absolute;bottom:-10px;width:3px;height:3px;border-radius:50%;background:var(--vx-luce);box-shadow:0 0 12px var(--vx-luce);opacity:0;animation:vx-rise 7s linear infinite}
.vx-motes i:nth-child(1){left:18%}.vx-motes i:nth-child(2){left:34%;animation-delay:-2.2s}.vx-motes i:nth-child(3){left:52%;animation-delay:-4.1s;width:2px;height:2px}
.vx-motes i:nth-child(4){left:66%;animation-delay:-1.3s}.vx-motes i:nth-child(5){left:80%;animation-delay:-5.4s;width:2px;height:2px}.vx-motes i:nth-child(6){left:44%;animation-delay:-3.3s}
@keyframes vx-rise{0%{transform:translateY(0);opacity:0}15%{opacity:.9}100%{transform:translateY(-92vh);opacity:0}}
.vx-cue{display:flex;flex-direction:column;align-items:center;gap:10px;margin:34px 0 0;font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--vx-on2)}
.vx-cue i{display:block;width:1px;height:46px;background:linear-gradient(180deg,var(--vx-luce),transparent);transform-origin:top;animation:vx-cue 2.4s var(--vx-ease) infinite}
@keyframes vx-cue{0%{transform:scaleY(0);opacity:1}70%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1);opacity:0}}
/* III: three rough crystals at three depths, their black studio ground melted into the stage */
.vx-rough{transform:none}
.vx-r{position:absolute;display:block;height:auto;-webkit-mask-image:radial-gradient(closest-side,#fff 58%,transparent 100%);mask-image:radial-gradient(closest-side,#fff 58%,transparent 100%);will-change:transform}
.vx-r0{left:-6%;top:4%;width:62%;transform:translate3d(0,calc((.5 - var(--p,.5)) * 26vh),0)}
.vx-r1{right:-14%;top:16%;width:80%;transform:translate3d(0,calc((.5 - var(--p,.5)) * 12vh),0) rotate(calc((var(--p,.5) - .5) * 8deg))}
.vx-r2{left:18%;top:34%;width:44%;transform:translate3d(0,calc((.5 - var(--p,.5)) * 44vh),0)}
/* VI: the finished stone, turning with the scroll (the store's gem engine when the device can, else its rendered still) */
.vx-gem{display:flex;align-items:center;justify-content:center;transform:none}
.vx-gem::before{content:"";position:absolute;width:90vmin;height:90vmin;border-radius:50%;background:radial-gradient(closest-side,rgba(212,166,42,.22),transparent);opacity:calc(.4 + var(--p,.5) * .6)}
.vx-gem-box{position:relative;width:min(96vw,60vh);aspect-ratio:1;margin-bottom:22vh;transform:scale(calc(.82 + var(--p,.5) * .22)) rotate(calc((var(--p,.5) - .5) * 24deg));-webkit-mask-image:radial-gradient(closest-side,#fff 64%,transparent 100%);mask-image:radial-gradient(closest-side,#fff 64%,transparent 100%)}
.vx-gem-box img,.vx-gem-box canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.vx-gem-box canvas{display:none;touch-action:pan-y}
.vx-gem-box.live canvas{display:block}.vx-gem-box.live img{display:none}
.vx-banco video.vx-media{object-position:38% 50%}
.vx-tagliata video.vx-media{object-position:46% 50%}
.vx-finita .vx-veil{background:linear-gradient(180deg,rgba(26,19,16,0) 50%,rgba(26,19,16,.8) 100%)}
/* the home trailer */
.vx-teaser{position:relative;height:86vh;height:86svh;min-height:520px;max-height:860px;overflow:hidden;background:var(--vx-notte);color:var(--vx-on)}
.vx-teaser .vx-stage{position:absolute;inset:0;height:auto}
.vx-teaser .vx-txt{opacity:1;transform:none;padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))}
.vx-teaser .vx-ill{bottom:8px}
.vx-teaser .vx-title{font-size:clamp(36px,9.4vw,80px)}
.vx-play{display:inline-flex;align-items:center;gap:14px;margin-top:26px;min-height:48px;color:var(--vx-on);font-size:15px;font-weight:600;letter-spacing:.06em;text-decoration:none}
.vx-play i{position:relative;width:52px;height:52px;border-radius:50%;border:1px solid var(--vx-luce);background:rgba(26,19,16,.4)}
.vx-play i::after{content:"";position:absolute;left:21px;top:17px;border-left:14px solid var(--vx-luce);border-top:9px solid transparent;border-bottom:9px solid transparent}
.vx-play i::before{content:"";position:absolute;inset:-7px;border-radius:50%;border:1px solid rgba(212,166,42,.45);animation:vx-ring 2.6s ease-out infinite}
@keyframes vx-ring{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.35);opacity:0}}
@media (min-width:760px){
  .vx-txt{padding-bottom:84px}
  .vx-r0{left:4%;top:6%;width:30%}.vx-r1{right:2%;top:10%;width:44%}.vx-r2{left:38%;top:40%;width:22%}
  .vx-gem-box{width:min(46vw,58vh);margin-bottom:16vh}
  .vx-bar{left:50%;right:auto;width:420px;transform:translateX(-50%)}
}
/* ---------- the AGA sample ---------- */
.vx-aga-peek{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 2px;padding:8px;border:1px solid #E6D8C2;border-radius:12px;background:#FFFCF5;color:inherit;font:inherit;text-align:left;cursor:zoom-in}
.vx-aga-peek img{flex:none;width:96px;height:auto;aspect-ratio:720/509;object-fit:cover;border-radius:8px;background:#F3EADC}
.vx-aga-peek span{display:grid;gap:2px;font-size:14px;font-weight:600}
.vx-aga-peek small{font-weight:400;font-size:12.5px;color:#6D5F51}
.vx-cert{margin:0;display:grid;gap:10px;align-content:center}
.vx-cert-btn{display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:16px;overflow:hidden;box-shadow:0 22px 50px -28px rgba(46,33,25,.55)}
.vx-cert-btn img{display:block;width:100%;height:auto;background:#fff}
.vx-cert figcaption{font-size:13px;color:#6D5F51;text-align:center;font-style:italic}
html.vx-lock{overflow:hidden}
.vx-lb{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(26,19,16,.86);opacity:0;transition:opacity .35s}
.vx-lb.on{opacity:1}
.vx-lb-in{position:relative;width:min(960px,100%);max-height:100%;overflow:auto;padding:16px 16px 18px;border-radius:18px;background:var(--vx-carta);color:#2E2119;transform:translateY(12px);transition:transform .45s var(--vx-ease)}
.vx-lb.on .vx-lb-in{transform:none}
.vx-lb-in img{display:block;width:100%;height:auto;border-radius:10px;background:#fff}
.vx-lb-in p{margin:12px 4px 0;font-size:14px;text-align:center;font-style:italic;color:#6D5F51}
.vx-lb-in .vx-lb-sub{margin-top:4px;font-style:normal;font-size:13.5px}
.vx-lb-x{position:absolute;right:10px;top:10px;z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(46,33,25,.75);color:#FBF7F0;font-size:26px;line-height:1;cursor:pointer}
/* ---------- reduced motion and no-JS: still pictures, every line readable ---------- */
html.vx-still .vx-media,html.vx-still .vx-r,html.vx-still .vx-gem-box,html.vx-still .vx-txt{transform:none!important}
html.vx-still .vx-txt{opacity:1!important}
html.vx-still .vx-scene{height:100vh;height:100svh}
@media (prefers-reduced-motion:reduce){
  .vx-cine *,.vx-teaser *{animation:none!important;transition:none!important}
  .vx-motes{display:none}
}
