/* Approved V45 extension. Display and tour share the mineral world; product RGB stays untouched. */
body header .brand{font:400 25px/1 Cormorant,Georgia,serif;letter-spacing:.04em}
body header .brand small{font:9px/1.5 Manrope,sans-serif;letter-spacing:.12em;margin-top:9px}
.mineral-object{left:64%;top:8%;height:83%;aspect-ratio:2/3;transform-origin:44% 38%}
.mineral-object .mineral-stand{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.mineral-object canvas{position:absolute;left:24%;top:2.1%;height:75%;width:auto;aspect-ratio:1040/3080}
.mineral-object:after{display:none}
#mineral-presentation[data-chapter=details] .mineral-object{transform:translateX(-50%) scale(1.4) translateY(9%)}
#mineral-presentation[data-chapter=details] .mineral-world{transform:scale(1.06) translateX(-1%)}
.mineral-chapters button[aria-pressed=true]{border-right:0;text-decoration:underline;text-underline-offset:8px;padding-right:0}
.brand-tour .copy,.brand-tour #navigation{display:none!important}
body.brand-tour header{background:linear-gradient(#14110de8,transparent);border:0}
#brand-ending{overflow:clip;background:#18140f;isolation:isolate;touch-action:pan-x pan-y pinch-zoom}
.tour-world{position:absolute;inset:-2%;z-index:-2;background:url('media/caverna-hd/essencia.webp') center/cover;transform:scale(1.01);transform-origin:78% 59%;transition:transform 1.6s cubic-bezier(.16,1,.3,1),background-position 1.6s cubic-bezier(.16,1,.3,1)}
.tour-light{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#100d0be6 0%,#100d0b9e 33%,transparent 66%),linear-gradient(0deg,#100d0bec,transparent 28%);pointer-events:none}
#brand-ending[data-room=rafael] .tour-world{transform:scale(1.09) translateX(-2%)}
#brand-ending[data-room=olhar] .tour-world{transform:scale(1.14) translateX(-4%)}
#brand-ending[data-room=atendimento] .tour-world{transform:scale(1.2) translateX(-6%)}
.tour-content{position:absolute;left:7%;top:25%;width:42%;max-height:calc(75% - 140px);overflow:auto;scrollbar-width:thin;scrollbar-color:#bba482 #241c14;padding:0 15px 6px 0;overscroll-behavior:contain}
.tour-content h1{font:400 clamp(46px,5.8vw,84px)/.98 Cormorant,Georgia,serif;letter-spacing:-.025em;text-wrap:balance;text-shadow:none;max-width:14ch}
.tour-content h1:focus{outline:none}
#tour-copy{margin:24px 0 25px;max-width:44ch}
#tour-copy p{font-size:14px;line-height:1.85;color:#eadcc8;margin:0 0 14px}
.tour-action{display:inline-flex;align-items:center;gap:30px;min-height:48px;padding:10px 0;border-bottom:1px solid #bda584;color:#fff1db;font-size:13px;text-align:left}
.tour-action:hover svg{transform:translateX(4px)}
.tour-action svg{transition:transform .2s}
.tour-photograph{position:absolute;left:58%;top:17%;height:62%;width:25%;margin:0}
.tour-photograph img{display:block;object-fit:contain;width:100%;height:100%;filter:none;background:#171510;border:7px solid #62513b;box-shadow:10px 16px 35px #07050380}
.tour-photograph figcaption{font-size:11px;line-height:1.7;margin-top:12px;color:#f1dfc3}
.tour-quiet{position:absolute;right:18%;top:37%;font:italic 400 clamp(32px,4vw,60px)/1.15 Cormorant,Georgia,serif;color:#f4e3c9;text-shadow:0 3px 16px #100b06}
.tour-navigation{position:absolute;left:4.4%;right:4.4%;bottom:max(26px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:30px}
.tour-navigation button{min-height:44px;display:flex;align-items:center;gap:12px;font-size:12px;text-align:left}
#tour-back svg{transform:rotate(180deg)}
#tour-next{margin-left:auto}
.tour-stops{display:flex;align-items:center;gap:22px}
.tour-stops a{min-height:44px;display:flex;align-items:center;color:#e7d5b9;font-size:12px;border-bottom:1px solid transparent;transition:color .18s}
.tour-stops a[aria-current=step]{color:#fff4df;border-bottom-color:#e4c99e}
.tour-stops a:hover{color:#fff4df;background:#f3ddb614}
.tour-stops a:focus-visible{outline:2px solid #f2d7a8;outline-offset:5px}
.tour-guide{position:absolute;bottom:90px;left:7%;color:#dcc8aa;font-size:11px;line-height:1.6}
#brand-ending [hidden]{display:none!important}
.motion-reduced .tour-world,.motion-reduced .tour-action svg{transition:none!important}
.motion-reduced button,.motion-reduced a{transition:none!important}
.mineral-bottom button,.mineral-chapters button,.mineral-opening #motion{font-size:11px}
.stops a span{font-size:11px}
@media(max-width:1000px){.tour-navigation{gap:15px}.tour-stops{gap:14px}.tour-navigation button{font-size:11px}.tour-stops a{font-size:11px}.tour-content{top:23%;width:46%}.tour-content h1{font-size:58px}.tour-photograph{left:60%;width:30%;height:55%;top:23%}.tour-quiet{right:12%}}
@media(max-width:650px){
 body header .brand{font-size:18px}body header .brand small{font-size:7px}
 .mineral-world{background-size:auto 125%;background-position:64% bottom}
 .mineral-object{left:54%;top:12%;height:54%}
 .mineral-caption{bottom:149px}
 #mineral-presentation h1{font-size:40px}
 #mineral-presentation[data-chapter=details] .mineral-object{top:13%;height:49%;width:auto;aspect-ratio:2/3;overflow:visible;transform:translateX(-50%) scale(1.18);transform-origin:50% 26%}
 #mineral-presentation[data-chapter=details] .mineral-object canvas{position:absolute;left:24%;top:2.1%;height:75%;width:auto;margin:0;transform:none}
 .tour-world{background-position:70% center}
 .tour-light{background:linear-gradient(0deg,#100d0bf5 0%,#100d0bc9 43%,#100d0b45 80%)}
 .tour-content{left:7%;top:26%;width:86%;max-height:calc(74% - 165px);padding-right:8px}
 .tour-content h1{font-size:48px;max-width:15ch}
 #tour-copy{margin:21px 0 17px;max-width:39ch}#tour-copy p{font-size:13px;line-height:1.8;margin-bottom:13px}
 .tour-action{font-size:12px;gap:20px}
 .tour-navigation{left:7%;right:7%;bottom:max(18px,env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:space-between;gap:8px}
 .tour-stops{order:-1;width:100%;justify-content:space-between;gap:8px;border-top:1px solid #b09a7445;padding-top:4px}
 .tour-navigation button{max-width:49%;font-size:11px;gap:8px}
 .tour-guide{bottom:130px;left:7%;right:7%;font-size:11px}
 .tour-quiet{right:9%;top:17%;font-size:25px;line-height:1.15}
 #brand-ending[data-room=rafael] .tour-content{top:36%;max-height:calc(64% - 165px)}
 #brand-ending[data-room=rafael] .tour-content h1{font-size:40px}
 .tour-photograph{left:53%;top:15%;height:27%;width:36%}
 .tour-photograph img{border-width:4px}.tour-photograph figcaption{display:none}
 #brand-ending[data-room=olhar] .tour-content{top:43%;max-height:calc(57% - 165px)}
 #brand-ending[data-room=olhar] .tour-content h1{font-size:38px}
 #brand-ending[data-room=olhar] #tour-copy p{font-size:12px}
}
@media(max-height:620px){.tour-content{top:110px;max-height:calc(100% - 235px)}.tour-content h1{font-size:42px}#tour-copy{margin:14px 0}#tour-copy p{font-size:12px}.tour-guide{bottom:84px}.mineral-object{top:14%;height:73%}}
@media(max-height:620px) and (max-width:650px){
 .mineral-object{left:75%;top:17%;height:42%}.mineral-caption{bottom:142px;width:65%}#mineral-presentation h1{font-size:32px}
 .tour-content,#brand-ending[data-room=rafael] .tour-content,#brand-ending[data-room=olhar] .tour-content{top:110px;max-height:calc(100% - 255px)}
 .tour-photograph,.tour-quiet{display:none!important}.tour-guide{bottom:127px}.tour-content h1,#brand-ending[data-room=olhar] .tour-content h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){.tour-world,.tour-action svg{transition:none!important}}
