/* Altímetro — rolar a página é subir a montanha */
.altimeter {
  position: fixed; z-index: 90; right: 20px; top: 16px; bottom: 16px;   /* altura inteira da janela */
  display: flex; flex-direction: column;
  width: 156px; padding: 18px 14px 16px; border-radius: 28px;
  background: rgba(10, 16, 8, .52); color: var(--white);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .25);
  font-size: 10px; line-height: 12px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.alt-head { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }
.alt-track {
  position: relative; flex: 1 1 auto; min-height: 0; margin-top: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.alt-ruler {
  position: absolute; left: 0; right: 0; top: 0; will-change: transform;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 1px, transparent 1px 64px) right 0 top 0 / 26px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 1px, transparent 1px 12.8px) right 0 top 0 / 13px 100% no-repeat;
}
.alt-lbl { position: absolute; right: 34px; transform: translateY(-50%); font-size: 11px; color: rgba(255, 255, 255, .4); }
.alt-lbl.major { color: rgba(255, 255, 255, .78); font-weight: 600; }
.alt-camps { position: absolute; inset: 0; }
.alt-flag { position: absolute; left: 0; display: flex; align-items: center; gap: 4px; transform: translateY(-50%); }
.alt-flag i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(211, 251, 169, .7); transition: background-color .3s, box-shadow .3s; }
.alt-flag b { font-size: 10px; font-weight: 600; color: rgba(211, 251, 169, .75); }
.alt-flag.is-reached i { background: var(--lime-soft); box-shadow: 0 0 0 4px rgba(211, 251, 169, .18); }
.alt-needle { position: absolute; left: -4px; right: -4px; top: 50%; height: 0; border-top: 1px solid var(--lime-soft); }
.alt-needle i { position: absolute; right: 0; top: -5px; width: 0; height: 0; border: 5px solid transparent; border-right-color: var(--lime-soft); }
.alt-read { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.alt-read small { display: block; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); font-size: 9px; }
.alt-read strong { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 38px; letter-spacing: -0.02em; color: var(--lime-soft); }
.alt-read strong em { font-style: normal; font-family: var(--body); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.alt-meta { display: flex; justify-content: space-between; margin-top: 6px; color: rgba(255, 255, 255, .6); }
.alt-meta b { font-weight: 600; color: var(--white); }
.alt-bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.alt-bar i { display: block; height: 100%; background: var(--lime-soft); transform-origin: left; transform: scaleX(0); }
.alt-camp { display: flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 26px; font-size: 11px; line-height: 13px; color: rgba(255, 255, 255, .85); }
.alt-camp-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--lime-soft); }
.alt-camp.is-new .alt-camp-name { animation: camp-in .6s var(--ease); }
.alt-camp.is-new .alt-camp-dot { animation: camp-ping .9s var(--ease); }
@keyframes camp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes camp-ping { 0% { box-shadow: 0 0 0 0 rgba(211, 251, 169, .7); } 100% { box-shadow: 0 0 0 10px rgba(211, 251, 169, 0); } }
.altimeter.is-summit .alt-read strong { animation: summit 1.2s var(--ease); }
@keyframes summit { 30% { text-shadow: 0 0 18px rgba(211, 251, 169, .9); } }

/* parallax da montanha do hero */
.int-hero { background-position: 50% calc(40% + var(--climb, 0px)); }

/* margem lateral curta (1101–1599px): régua fina que cabe na margem */
@media (min-width: 1101px) and (max-width: 1599px) {
  .altimeter { right: 10px; width: 70px; padding: 14px 8px 12px; border-radius: 22px; }
  .alt-head, .alt-meta, .alt-camp, .alt-read small, .alt-flag b { display: none; }
  .alt-track { margin-top: 0; }
  .alt-lbl { right: 20px; font-size: 9px; }
  .alt-ruler { background-size: 16px 100%, 8px 100%; }
  .alt-read { margin-top: 8px; padding-top: 8px; text-align: center; }
  .alt-read strong { justify-content: center; font-size: 17px; line-height: 18px; }
  .alt-read strong em { font-size: 9px; }
  .alt-bar { margin-top: 6px; }
}
/* tablet e celular: só a leitura, num chip no canto */
@media (max-width: 1100px) {
  .altimeter { top: auto; bottom: 12px; right: 12px; flex-direction: row; width: auto; padding: 8px 12px; border-radius: 16px; display: flex; align-items: center; gap: 10px; }
  .alt-head, .alt-track, .alt-meta, .alt-bar { display: none; }
  .alt-read { margin: 0; padding: 0; border: 0; }
  .alt-read strong { font-size: 18px; line-height: 20px; }
  .alt-camp { margin: 0; max-width: 130px; }
  .altimeter { opacity: 0; translate: 0 12px; transition: opacity .4s var(--ease), translate .4s var(--ease); }
  .altimeter.is-on { opacity: 1; translate: 0 0; }   /* chip aparece depois que a subida começa */
}
@media (prefers-reduced-motion: reduce) { .alt-camp.is-new .alt-camp-name, .alt-camp.is-new .alt-camp-dot { animation: none; } }

/* painel lateral retirado: a altitude segue calculada (--alt escurece o céu e acende as estrelas), só não aparece */
.altimeter { display: none !important; }
