/* Início — história curta antes do mapa (primeira visita) */
.inicio { display: none; position: fixed; inset: 0; z-index: 300; background: #121a14; color: var(--papel); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: default; }
html.com-inicio .inicio { display: block; }
html.com-inicio body { overflow: hidden; }

.in-cena { position: absolute; inset: 0; visibility: hidden; }
.in-cena.on { visibility: visible; }
.in-escura { background: radial-gradient(120% 95% at 72% 70%, #26361f 0%, #17221a 45%, #101710 100%); }

/* foto em tela cheia, com véu para o texto */
.in-foto { position: absolute; inset: 0; overflow: hidden; background: #101710; }
.in-foto img { width: 100%; height: 100%; object-fit: cover; transform-origin: 62% 50%; will-change: transform; }
.in-foto::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 14, 9, .86) 0%, rgba(9, 14, 9, .6) 34%, rgba(9, 14, 9, .12) 70%, rgba(9, 14, 9, 0) 100%),
              linear-gradient(0deg, rgba(9, 14, 9, .5) 0%, rgba(9, 14, 9, 0) 42%); }

/* texto */
.in-txt { position: absolute; z-index: 2; left: clamp(22px, 6vw, 104px); bottom: clamp(96px, 15vh, 160px); width: min(1000px, 90vw); }
.in-rot { margin: 0 0 22px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lima); }
.in-tit { margin: 0; font-weight: 300; font-size: clamp(40px, 5.4vw, 86px); line-height: 1.02; letter-spacing: -.035em; font-variation-settings: 'opsz' 72; }
.in-tit b { font-weight: 300; font-style: italic; color: #d9e6a6; }
@media (min-width: 761px) { .in-tit .linha-mask > span { white-space: nowrap; } }
.in-num { margin: 0; font-weight: 200; font-size: clamp(74px, 11.5vw, 184px); line-height: .92; letter-spacing: -.05em; font-variation-settings: 'opsz' 72; white-space: nowrap; }
.in-num b { font-weight: 200; }
.in-num .un { font-style: normal; font-weight: 300; font-size: .42em; letter-spacing: -.025em; }
.in-num small { font-size: .2em; font-weight: 400; letter-spacing: 0; margin-right: .45em; vertical-align: .32em; font-family: var(--sans); color: rgba(243, 240, 232, .78); }
.in-sub { margin: 26px 0 0; font: 400 clamp(16px, 1.45vw, 20px)/1.5 var(--sans); color: rgba(243, 240, 232, .88); max-width: 42ch; text-wrap: pretty; }
.in-fonte { margin: 30px 0 0; font-size: 11px; color: rgba(243, 240, 232, .5); padding-top: 14px; border-top: 1px solid rgba(243, 240, 232, .16); width: fit-content; }

/* árvore desenhada (cena 1) */
.in-arvore { position: absolute; right: 3vw; bottom: 0; height: 96vh; width: min(70vw, 96vh); overflow: visible; }
.in-arvore .galhos path { fill: none; stroke: #e9e4d4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: var(--d, 1); }
.in-arvore .folhas circle { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
  transition: transform .9s var(--ease) var(--a, 0s), opacity .6s var(--ease) var(--a, 0s); }
.in-arvore.folhou .folhas circle { transform: scale(1); opacity: var(--o, .9); }
.in-arvore .chao { stroke: rgba(233, 228, 212, .25); stroke-width: 1; }

/* placa (cena 6) */
.in-placa { position: relative; margin: 30px 0 0; width: min(400px, 82vw); aspect-ratio: 1140 / 510; overflow: hidden; border-radius: 6px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(243, 240, 232, .1); }
.in-placa .placa-cena { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transform-origin: 0 0; }
.in-placa .placa-cena img { width: 100%; height: 100%; display: block; }

/* final: floresta vista de cima */
.in-final { background: #1d2818; }
.in-floresta { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 70% 50%; }
.in-final.on .in-floresta { animation: in-zoom 12s linear both; }
@keyframes in-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.in-final::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 18, 11, .9) 0%, rgba(12, 18, 11, .62) 40%, rgba(12, 18, 11, .1) 80%); }
.in-ir { margin-top: 34px; padding: 15px 22px; font-size: 15px; background: var(--lima); color: var(--tinta); pointer-events: auto; }
.in-ir::before { background: var(--papel); }
.in-ir:hover { background: var(--lima); }

/* interface: barras de progresso, marca, pular */
.in-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.in-barras { position: absolute; top: 18px; left: clamp(22px, 6vw, 104px); right: clamp(22px, 6vw, 104px); display: flex; gap: 6px; }
.in-barras i { flex: 1; height: 2px; border-radius: 2px; background: rgba(243, 240, 232, .2); overflow: hidden; }
.in-barras b { display: block; height: 100%; background: var(--papel); transform-origin: left; transform: scaleX(0); }
.in-topo { position: absolute; top: 40px; left: clamp(22px, 6vw, 104px); right: clamp(22px, 6vw, 104px); display: flex; align-items: center; justify-content: space-between; }
.in-marca { font: 400 22px/1 var(--serif); letter-spacing: -.015em; }
.in-pular { pointer-events: auto; border: 0; padding: 11px 17px; border-radius: 999px; background: rgba(243, 240, 232, .1); color: var(--papel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 13px/1 var(--sans);
  transform: translate(var(--mx, 0), var(--my, 0)); transition: background .3s, transform .5s var(--ease); }
.in-pular:hover { background: rgba(243, 240, 232, .22); }
.in-pular span { display: inline-block; transition: transform .4s var(--ease); }
.in-pular:hover span { transform: translateX(3px); }
.in-dica { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(243, 240, 232, .5); white-space: nowrap; transition: opacity .8s var(--ease); }
.inicio.andou .in-dica { opacity: 0; }
.in-pausa { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.96); margin: 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 14, 10, .5); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.inicio.pausado .in-pausa { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* "rever" no painel do mapa */
.pc-rever { display: inline-flex; gap: 6px; margin-top: 14px; font: 450 12.5px/1 var(--sans); color: var(--mudo); text-decoration: none; }
.pc-rever:hover { color: var(--tinta); }

@media (max-width: 760px) {
  .in-txt { bottom: 82px; }
  .in-foto::after { background: linear-gradient(0deg, rgba(9, 14, 9, .92) 0%, rgba(9, 14, 9, .7) 45%, rgba(9, 14, 9, .15) 80%); }
  .in-final::after { background: linear-gradient(0deg, rgba(12, 18, 11, .94) 0%, rgba(12, 18, 11, .6) 55%, rgba(12, 18, 11, .2) 100%); }
  .in-arvore { right: 50%; transform: translateX(50%); height: 64vh; width: 110vw; bottom: 34vh; }
  .in-sub { margin-top: 18px; }
  .in-fonte { margin-top: 20px; }
  .in-placa { margin-top: 20px; width: min(300px, 78vw); }
  .in-dica { bottom: 24px; }
  .in-num { font-size: clamp(64px, 19vw, 96px); }
  .in-tit { font-size: clamp(30px, 8.6vw, 44px); letter-spacing: -.03em; }
}
