/* muse_pedra/assets/proposta.css — visita virtual imersiva (publica/tour.php)
   Preto profundo, branco suave e lilás só como luz. Títulos em Cormorant Garamond, textos em Jost.
   Cada capítulo (.cap) é alto e tem um palco preso na tela (.palco); os textos com data-em="início,fim"
   aparecem e somem conforme a rolagem do capítulo (assets/proposta.js). Sem divisórias, sem cartões, sem bordas. */

:root {
  --preto: #050307; --branco: #efe9f5; --branco-2: #b9b0c4; --lilas: #c9a7f2; --lilas-luz: #b38ae8;
  --tit: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--preto); }
body { margin: 0; color: var(--branco); background: var(--preto); font-family: 'Jost', system-ui, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--lilas); color: #1a0f28; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cena 3D fixa atrás de tudo; a opacidade vem do JS (some na imersão, apaga no legado) */
.cena3d { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; display: block; opacity: 0; transition: opacity .2s linear; }
.pronto3d .cena3d { opacity: var(--op3d, 1); }
.pedra-plana { position: fixed; left: 50%; top: 55%; z-index: 0; width: min(70vw, 520px); translate: -50% -50%; opacity: 0; pointer-events: none; transition: opacity 1s; }
.sem3d .pedra-plana { opacity: calc(var(--op3d, 1) * .8); }
.pedra-plana svg { width: 100%; filter: drop-shadow(0 0 60px rgba(179, 138, 232, .5)); }
/* cores da pedra desenhada (as mesmas de publica.css, só para o caso sem 3D) */
.gema { overflow: visible; }
.gema polygon { stroke: rgba(255, 255, 255, .2); stroke-width: .9; }
.gema .g0 { fill: #241040; } .gema .g1 { fill: #46207a; } .gema .g2 { fill: #6c3cae; } .gema .g3 { fill: #9a6ad6; } .gema .g4 { fill: #dcc3fa; }
.gema .aura { fill: #b38ae8; opacity: .2; filter: blur(30px); }
.gema .rocha { fill: #2a2430; } .gema .veio { fill: none; stroke: #e9e0f3; stroke-width: 5; opacity: .7; } .gema .rocha-2 { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.gema .aresta { stroke: rgba(255, 255, 255, .4); } .gema .brilho { display: none; }

/* Topo mínimo, sem fundo nem linha */
.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); pointer-events: none; mix-blend-mode: difference; }
.topo a { pointer-events: auto; text-decoration: none; }
.topo-marca { display: flex; align-items: center; gap: 12px; }
.marca-cristal { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.topo-marca span { font-family: var(--tit); font-size: 1.02rem; line-height: 1.1; letter-spacing: .02em; }
.topo-marca em { display: block; font-style: italic; opacity: .75; }
.topo-links { display: flex; gap: 30px; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.topo-links a { position: relative; }
.topo-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .5s; }
.topo-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Capítulos: altos, com o palco preso na tela */
main { position: relative; z-index: 1; }
.cap { position: relative; }
.cap-1 { height: 190vh; } .cap-2 { height: 300vh; } .cap-3 { height: 220vh; } .cap-4 { height: 320vh; }
.cap-5 { height: 300vh; } .cap-6 { height: 300vh; } .cap-7 { height: 200vh; }
.palco { position: sticky; top: 0; height: 100vh; overflow: hidden; }
[data-em] { opacity: 0; will-change: opacity, transform, filter; }
small { display: block; margin-bottom: 18px; color: var(--lilas); font-family: 'Jost', sans-serif; font-size: .72rem; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--tit); font-weight: 300; line-height: .98; letter-spacing: -.01em; }
h1 em, h2 em, .frase em { font-style: italic; color: #fff; }

/* 1 · A descoberta */
.abertura { position: absolute; left: 50%; top: 13vh; width: 92%; translate: -50% 0; text-align: center; }
.abertura .sobre { color: var(--branco-2); opacity: 0; animation: surge 2.4s 1.6s ease forwards; }
.abertura h1 { font-size: clamp(3rem, 9vw, 8.6rem); text-shadow: 0 0 60px rgba(5, 3, 7, .9); }
.abertura h1 { opacity: 0; animation: surge 3.2s .9s cubic-bezier(.2, .6, .2, 1) forwards; }
@keyframes surge { from { opacity: 0; filter: blur(14px); letter-spacing: .06em; } to { opacity: 1; filter: blur(0); } }
.convite { position: absolute; left: 50%; bottom: 7vh; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--branco-2); font-size: .7rem; letter-spacing: .36em; text-transform: uppercase; }
.convite i { width: 1px; height: 64px; background: linear-gradient(transparent, var(--lilas)); background-size: 100% 200%; animation: escorre 2.6s linear infinite; }
@keyframes escorre { from { background-position: 0 -100%; } to { background-position: 0 100%; } }

/* Frases curtas em lugares diferentes da tela (composição assimétrica) */
.frase { position: absolute; max-width: 430px; margin: 0; font-family: var(--tit); font-size: clamp(1.6rem, 2.6vw, 2.35rem); font-weight: 300; line-height: 1.2; text-shadow: 0 0 40px rgba(5, 3, 7, .95), 0 0 12px rgba(5, 3, 7, .8); }
.frase small { margin-bottom: 22px; }
.f-esq { left: clamp(20px, 8vw, 140px); top: 30vh; }
.f-dir { right: clamp(20px, 8vw, 140px); top: 42vh; text-align: right; }
.f-baixo { left: clamp(20px, 12vw, 220px); bottom: 14vh; max-width: 520px; }
.f-baixo-dir { right: clamp(20px, 8vw, 140px); bottom: 14vh; max-width: 400px; text-align: right; }

/* 3 · O tempo */
.tempo { position: absolute; left: clamp(20px, 7vw, 120px); top: 50%; translate: 0 -50%; margin: 0; font-family: var(--tit); font-weight: 300; line-height: .8; }
.tempo span { display: block; font-size: clamp(8rem, 26vw, 22rem); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 245, .55); }
.tempo em { display: block; margin: 12px 0 0 .4em; font-size: clamp(1.6rem, 3vw, 2.6rem); font-style: italic; }

/* 4 · O legado: fotos soltas, em escalas diferentes, sem moldura */
.leg-foto { position: absolute; display: block; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.85); }
.leg-retrato { left: 8vw; top: 16vh; width: clamp(220px, 26vw, 420px); aspect-ratio: 4 / 5; object-position: 70% 15%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.leg-decreto { right: 9vw; top: 34vh; width: clamp(170px, 17vw, 280px); filter: sepia(.25) brightness(.9); transform-origin: center; rotate: 2deg; box-shadow: 0 40px 80px rgba(0, 0, 0, .7); }
.leg-torre { left: 46vw; top: 46vh; width: clamp(160px, 15vw, 250px); aspect-ratio: 9 / 15; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.leg-nome { position: absolute; left: calc(8vw + clamp(220px, 26vw, 420px) - 60px); top: 52vh; }
.leg-nome h2 { font-size: clamp(3rem, 7vw, 6.4rem); font-style: italic; text-shadow: 0 0 40px rgba(5, 3, 7, .9); }
.leg-nome p { margin: 12px 0 0; color: var(--branco-2); letter-spacing: .04em; }
.leg-1 { right: clamp(20px, 8vw, 140px); top: 14vh; max-width: 420px; text-align: right; }
.leg-2 { left: clamp(20px, 10vw, 180px); bottom: 10vh; max-width: 520px; }

/* 5 · O acervo: rótulos que acompanham as pedras 3D */
.acv-tit { position: absolute; left: clamp(20px, 7vw, 120px); top: 13vh; }
.acv-tit h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.rotulo-peca { position: absolute; left: 0; top: 0; z-index: 2; display: grid; justify-items: center; gap: 2px; min-width: 200px; text-align: center; text-decoration: none; opacity: 0; pointer-events: none; translate: -50% 0; transition: opacity .5s, transform .5s; transform: translateY(10px); }
.rotulo-peca.ver { opacity: 1; pointer-events: auto; transform: none; }
.rotulo-peca b { font-family: var(--tit); font-size: 2rem; font-weight: 400; font-style: italic; }
.rotulo-peca span { color: var(--lilas); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.rotulo-peca small { margin: 4px 0 0; color: var(--branco-2); font-size: .82rem; letter-spacing: .02em; text-transform: none; }
.dica { position: absolute; left: 50%; bottom: 7vh; translate: -50% 0; margin: 0; color: var(--branco-2); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.d-toque { display: none; }
@media (hover: none) { .d-mouse { display: none; } .d-toque { display: inline; } .rotulo-peca small { display: none; } }

/* 6 · A imersão: a faixa de fotos do salão atravessa a tela e cresce, como quem entra */
.pano { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.pano::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, var(--preto) 100%), linear-gradient(180deg, var(--preto), transparent 25%, transparent 75%, var(--preto)); }
.pano-faixa { position: absolute; top: 50%; left: 0; display: flex; height: 76vh; translate: 0 -50%; transform-origin: 50% 50%; will-change: transform; }
.pano-faixa img { height: 100%; width: auto; display: block; filter: saturate(.75) brightness(.8) contrast(1.05); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); margin-right: -6vh; }
.pano-tit { position: absolute; left: clamp(20px, 7vw, 120px); bottom: 14vh; }
.pano-tit h2 { font-size: clamp(3rem, 8vw, 7.4rem); font-style: italic; text-shadow: 0 0 50px rgba(5, 3, 7, .9); }
.pano-convite { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.entrar { position: relative; display: inline-flex; align-items: center; gap: 22px; padding: 10px 34px 10px 10px; border-radius: 999px; background: rgba(5, 3, 7, .55); backdrop-filter: blur(10px); color: #fff; font-size: .95rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; transition: background .4s; }
.entrar:hover { background: rgba(5, 3, 7, .75); }
.anel { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 167, 242, .35), transparent 70%); }
.anel::before, .anel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 167, 242, .7); animation: onda 2.8s ease-out infinite; }
.anel::after { animation-delay: 1.4s; }
@keyframes onda { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.entrar:hover .anel { background: radial-gradient(circle, rgba(201, 167, 242, .6), transparent 70%); }

/* 7 · O encerramento */
.fim { position: absolute; left: 50%; top: 12vh; width: 92%; translate: -50% 0; text-align: center; font-size: clamp(2.6rem, 6.4vw, 6rem); text-shadow: 0 0 50px rgba(5, 3, 7, .9); }
.fim-convite { position: absolute; left: 50%; bottom: 15vh; width: 92%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.fim-convite p { margin: 0; color: var(--branco-2); }
.rodape { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; color: #6f6779; font-size: .72rem; letter-spacing: .06em; text-align: center; }
.rodape a { color: inherit; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topo { padding: 16px 18px; }
  .topo-marca span { font-size: .9rem; }
  .topo-links { gap: 18px; font-size: .68rem; }
  .frase { left: 22px !important; right: 22px !important; max-width: none; font-size: 1.55rem; text-align: left; }
  .f-esq { top: 16vh; } .f-dir { top: auto; bottom: 18vh; } .f-baixo { bottom: 12vh; }
  .leg-retrato { left: 6vw; top: 12vh; width: 56vw; }
  .leg-decreto { right: 6vw; top: 30vh; width: 34vw; }
  .leg-torre { left: auto; right: 10vw; top: 58vh; width: 30vw; }
  .leg-nome { left: 22px; top: 50vh; }
  .leg-1 { top: 12vh; bottom: auto; } .leg-2 { bottom: 8vh; }
  .acv-tit { top: 11vh; }
  .rotulo-peca { min-width: 120px; }
  .rotulo-peca b { font-size: 1.35rem; }
  .pano-faixa { height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition: none !important; }
}
