/* Camada temática da expedição */

/* ------------------------------------------------ curvas de nível + lanterna do mouse */
.topo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.topo::before, .topo::after { content: ""; position: absolute; inset: 0; background-image: var(--topo); background-size: 1400px 1000px; background-repeat: repeat; }
.topo::before { opacity: .13; }
.topo-cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; will-change: transform; }
.topo.has-cv::before { display: none; }
.s4 .topo-cv { opacity: .12; }
.light .topo-cv { filter: invert(1); opacity: .08; }
.topo::after { opacity: 0; transition: opacity .5s var(--ease);
  -webkit-mask-image: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 50%), #000, transparent 75%);
          mask-image: radial-gradient(260px circle at var(--lx, 50%) var(--ly, 50%), #000, transparent 75%); }
.topo.is-lit::after { opacity: .7; }
.s4 .topo::before { opacity: .12; }
.panel > :not(.topo), .s4 > :not(.topo), .plans > :not(.topo), .int-body > :not(.topo), .others > :not(.topo) { position: relative; z-index: 1; }
.s4 > .deco, .s4 > .glass-blob { position: absolute; }
.s4 > .glass-blob { z-index: 1; } .s4 > .deco { z-index: 2; } .s4 > .wrap { z-index: 3; }   /* mapa e bússola por cima do vidro: sempre nítidos */
.light .topo::before { filter: invert(1); opacity: .08; }
.light .topo::after { filter: invert(1); }

/* ------------------------------------------------ abertura */
/* loading: palavras em sequência + 0–100% + logo revelado pela luz; termina no preto da abertura do hero */
.preloader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #050805; color: #fff;
  transition: opacity 1.2s cubic-bezier(0.28, 0.11, 0.32, 1), visibility 0s linear 1.2s; }
.preloader.is-gone { opacity: 0; visibility: hidden; }
.pre-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.pre-w { position: absolute; font-size: clamp(56px, 9vw, 140px); line-height: 1; opacity: 0; filter: blur(12px); transform: scale(1.06);
  transition: opacity 1.2s cubic-bezier(0.28, 0.11, 0.32, 1), filter 1.2s cubic-bezier(0.28, 0.11, 0.32, 1), transform 1.6s cubic-bezier(0.28, 0.11, 0.32, 1); }
.pre-w.on { opacity: 1; filter: none; transform: none; }
.pre-w.off { opacity: 0; filter: blur(8px); transform: scale(.97); }
.pre-w:nth-child(3) { color: var(--lime); }
.pre-logo { position: absolute; width: min(360px, 62vw); height: auto; opacity: 0;
  -webkit-mask: linear-gradient(100deg, #000 40%, transparent 60%) 120% 0 / 300% 100% no-repeat; mask: linear-gradient(100deg, #000 40%, transparent 60%) 120% 0 / 300% 100% no-repeat; }
.pre-logo.on { opacity: 1; animation: pre-sweep 2.8s cubic-bezier(0.45, 0, 0.25, 1) both; }
.pre-logo.go { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; animation: pre-lift 1.4s cubic-bezier(0.28, 0.11, 0.32, 1) both; }
@keyframes pre-sweep { from { -webkit-mask-position: 120% 0; mask-position: 120% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes pre-lift { to { transform: scale(.92); opacity: 0; filter: blur(8px); } }
.pre-pr { position: absolute; left: 50%; bottom: 12vh; translate: -50% 0; width: min(320px, 70vw); text-align: center; transition: opacity .6s; }
.pre-pr b { display: block; font: 500 13px var(--body); letter-spacing: .12em; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.pre-pr i { display: block; height: 2px; margin-top: 12px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pre-pr s { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.preloader.is-done .pre-pr { opacity: 0; }
/* enquanto o loading está na tela, a abertura do hero espera (o título entra quando ele sai) */
.pre-hold .cintro, .pre-hold .cintro * { animation-play-state: paused !important; }

/* ------------------------------------------------ marcos de acampamento */
.camp-mark { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.camp-mark svg { width: 12px; height: 14px; color: var(--green-mid); }
.camp-mark span { opacity: .55; }
.camp-mark b { font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-dark .camp-mark svg, .s4 .camp-mark svg, .glass-box .camp-mark svg { color: var(--lime-soft); }
.panel-dark .camp-mark b, .s4 .camp-mark b, .glass-box .camp-mark b { color: var(--lime-soft); }
.s4 .camp-mark { justify-content: center; margin-bottom: 22px; color: #fff; }
.glass-box .camp-mark { color: #fff; }

/* ------------------------------------------------ cume */
.summit-toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; font-size: 13px; color: #fff;
  background: rgba(10, 16, 8, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(211, 251, 169, .3);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1), opacity .5s; pointer-events: none; }
.summit-toast svg { width: 13px; height: 15px; color: var(--lime-soft); }
.summit-toast b { color: var(--lime-soft); font-weight: 600; }
.summit-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.descend { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 13px; font-weight: 560; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color .2s; }
.descend:hover { background: rgba(255, 255, 255, .18); }
.descend i { font-size: 16px; }
.light .descend { color: var(--forest); background: #eef2ea; box-shadow: none; }

@media (max-width: 760px) {
  .summit-toast { bottom: 76px; }
}

/* marcos "Acampamento N — altitude" retirados junto com o altímetro */
.camp-mark { display: none !important; }

/* sessão 4: a topografia não passa por trás do vidro desfocado (bússola e mapa);
   os "buracos" acompanham o deslize dos objetos (--cy / --my vêm do motion.js) */
.s4 .topo {
  --hole: radial-gradient(circle var(--lens-r, 0px) at 50% 50%, transparent 88%, #000 100%);
  -webkit-mask-image: var(--hole); mask-image: var(--hole);
}
