/* Páginas provisórias das pastas 3D e IA. */
:root {
  --creme: #F6E7DC;
  --tangerina: #DE5A16;
  --pessego: #D48053;
  --ouro: #C8A284;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: var(--creme); }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  display: grid; grid-template-rows: auto 1fr; min-height: 100svh;
  background: radial-gradient(ellipse at 50% 45%, rgba(222, 90, 22, .12), transparent 60%), #000;
}
header { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 5vw, 64px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--creme); }
.logo img { width: 34px; height: 34px; }
.tag { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--pessego); }

main { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px 10svh; }
.pasta { width: clamp(150px, 20vw, 240px); animation: chegar .9s cubic-bezier(.2, .8, .2, 1.2) .25s both; }
h1 {
  margin: 8px 0 6px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 300;
  font-size: clamp(36px, 6vw, 72px); letter-spacing: .01em;
  animation: subir .8s ease .45s both;
}
main p { margin: 4px 0; color: var(--pessego); letter-spacing: .08em; animation: subir .8s ease .55s both; }
main p.breve { color: var(--ouro); margin-top: 18px; }
.voltar {
  margin-top: 36px; color: var(--creme); text-decoration: none; border-bottom: 1px solid var(--tangerina);
  padding-bottom: 2px; animation: subir .8s ease .65s both;
}
.voltar:hover { color: var(--tangerina); }

@keyframes chegar { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* a personagem da página inicial, no canto inferior esquerdo, como guia: olha para o mouse */
#cena.guia {
  position: fixed; left: clamp(0px, 1.5vw, 28px); bottom: 0; z-index: 1;
  width: clamp(170px, 22vw, 340px); height: clamp(200px, 27vw, 420px);
  opacity: 0; transition: opacity 1.4s ease .6s; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
#cena.guia.pronta { opacity: 1; }
#cena.guia canvas { display: block; width: 100%; height: 100%; }
main { position: relative; z-index: 2; }

/* continua a transição do clique: o preto se desfaz a partir do centro */
.revelar {
  position: fixed; inset: 0; pointer-events: none; background: #000;
  animation: revelar .8s cubic-bezier(.7, 0, .2, 1) both;
  -webkit-mask: radial-gradient(circle at 50% 45%, transparent var(--r, 0%), #000 calc(var(--r, 0%) + 1%));
          mask: radial-gradient(circle at 50% 45%, transparent var(--r, 0%), #000 calc(var(--r, 0%) + 1%));
}
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes revelar { from { --r: 0%; } to { --r: 150%; } }

@media (prefers-reduced-motion: reduce) {
  .pasta, h1, main p, .voltar, .revelar { animation: none; }
  .revelar { display: none; }
}
