/* =====================================================
   PARTE 2 · LEONIDA — viagem entre as regiões
   ===================================================== */
.leonida { position: relative; }
.leonida__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #07030d; isolation: isolate; }

.leo-stage { position: absolute; inset: -4%; z-index: 0; will-change: transform; }
.leo-layer { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.leo-layer[data-r="0"] { clip-path: none; }
.leo-layer canvas { width: 100%; height: 100%; display: block; }
.leo-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,3,13,.78) 0%, rgba(7,3,13,.2) 50%, rgba(7,3,13,0) 70%),
    linear-gradient(0deg, rgba(7,3,13,.7) 0%, rgba(7,3,13,0) 35%),
    linear-gradient(180deg, rgba(7,3,13,.55) 0%, rgba(7,3,13,0) 22%);
}

/* ---------- intro do mapa ---------- */
.leo-intro {
  position: absolute; inset: 0; z-index: 4; background: #0d0717;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: 4vw; padding: 12vh clamp(20px, 6vw, 110px) 8vh;
}
.leo-intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 72% 55%, rgba(155,71,224,.28), transparent 70%);
}
.leo-intro__copy { position: relative; }
.leo-kicker {
  display: flex; align-items: center; gap: 12px;
  font: 700 11px/1 var(--fonte-texto); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.leo-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vi-rosa); box-shadow: 0 0 14px var(--vi-rosa); }
.leo-intro__title {
  margin-top: 2.4vh; font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, min(7vw, 13vh), 124px); line-height: .9;
}
.leo-intro__title span { display: block; }
.grad { background: var(--grad-vi); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .14em; margin-top: -.14em; }
.leo-intro__lead { margin-top: 2.6vh; max-width: 36ch; color: var(--cor-suave); font-size: clamp(15px, 1.2vw, 19px); }

.leo-map { position: relative; }
.leo-map--big { height: min(76vh, 46vw); aspect-ratio: 4 / 5; justify-self: center; transform-origin: 50% 50%; will-change: transform; }
.map-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.map-land { fill: url(#mapLand); fill-opacity: .2; stroke: url(#mapLand); stroke-width: 2; stroke-linejoin: round; }
.map-lake { fill: #0d0717; stroke: rgba(255,255,255,.25); }
.map-keys ellipse { fill: rgba(255,176,98,.35); stroke: #ffb062; stroke-width: 1; }
.map-route-bg { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 4 6; }
.map-route { fill: none; stroke: var(--vi-rosa); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--vi-rosa)); }
.map-pin circle { fill: #0d0717; stroke: #fff; stroke-width: 2; transition: fill .4s; }
.map-pin text { fill: rgba(255,255,255,.75); font: 700 11px var(--fonte-texto); letter-spacing: .12em; text-transform: uppercase; }
.map-pin.is-on circle { fill: var(--vi-rosa); }
.map-pin.is-now circle { fill: #fff; stroke: var(--vi-rosa); stroke-width: 3; }
.map-blip { fill: #fff; filter: drop-shadow(0 0 8px #fff); }

/* ---------- texto das regiões ---------- */
.leo-copy { position: absolute; z-index: 3; left: clamp(20px, 5vw, 80px); bottom: clamp(70px, 15vh, 150px); width: min(640px, 86vw); }
.leo-item { position: absolute; left: 0; bottom: 0; width: 100%; visibility: hidden; }
.leo-item .num { font-family: var(--fonte-titulo); font-size: 13px; color: var(--vi-rosa); letter-spacing: .1em; }
.leo-name {
  margin: 1.8vh 0 0; font-family: var(--fonte-titulo); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, min(9vw, 16vh), 160px); line-height: .86; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 8px 50px rgba(0,0,0,.45);
}
.leo-name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.leo-name .ch { display: inline-block; will-change: transform; }
.leo-desc { margin-top: 2.2vh; max-width: 40ch; font-size: clamp(15px, 1.2vw, 18px); color: rgba(255,244,236,.86); }

/* ---------- radar ---------- */
.radar { position: absolute; z-index: 5; right: clamp(16px, 3vw, 48px); bottom: clamp(18px, 5vh, 56px); width: clamp(130px, min(15vw, 26vh), 210px); }
.radar__disc {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: rgba(13,7,23,.72); border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 0 0 5px rgba(13,7,23,.5), 0 16px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.radar__map { position: absolute; left: 0; top: 0; width: 400%; aspect-ratio: 4 / 5; will-change: transform; }
.radar__map .map-pin text { font-size: 15px; }
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,79,163,.35), transparent 22%);
  animation: sweep 3.2s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__player {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; translate: -50% -60%;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 18px solid #fff;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.8));
}
.radar__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; }
.radar__bars i { height: 6px; border-radius: 2px; background: #3ecf6c; box-shadow: 0 0 8px rgba(62,207,108,.6); }
.radar__bars .ar { background: #4d9bff; box-shadow: 0 0 8px rgba(77,155,255,.6); }
.radar__label { margin-top: 10px; text-align: center; font: 900 12px/1 var(--fonte-titulo); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- lista de destinos ---------- */
.waypoints {
  position: absolute; z-index: 5; right: clamp(16px, 3vw, 48px); top: 50%; translate: 0 -70%;
  list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: end;
}
.waypoints button {
  all: unset; display: inline-flex; align-items: center; gap: 12px; padding: 6px 0;
  font: 700 11px/1 var(--fonte-texto); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45);
  transition: color .4s, transform .5s var(--ease-out);
}
.waypoints button span { font-family: var(--fonte-titulo); font-size: 11px; color: rgba(255,255,255,.3); transition: color .4s; }
.waypoints button:hover, .waypoints button:focus-visible { color: #fff; }
.waypoints .is-now button { color: #fff; transform: translateX(-10px); }
.waypoints .is-now button span { color: var(--vi-rosa); }
.waypoints .is-now button::before { content: ""; width: 26px; height: 2px; background: var(--grad-vi); }

/* ---------- barra de viagem ---------- */
.trip {
  position: absolute; z-index: 5; left: clamp(20px, 5vw, 80px); bottom: clamp(24px, 5vh, 56px);
  display: flex; align-items: center; gap: 14px; width: min(460px, 60vw);
  font: 700 10px/1 var(--fonte-texto); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.trip span { white-space: nowrap; }
.trip__bar { flex: 1; height: 2px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.trip__bar i { position: absolute; inset: 0; background: var(--grad-vi); transform-origin: left; transform: scaleX(0); }
.trip__to { color: #fff; }

@media (max-width: 1100px) { .waypoints { display: none; } }
@media (max-width: 820px) {
  .leo-intro { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; justify-items: start; padding-top: 13vh; gap: 3vh; }
  .leo-map--big { height: auto; width: min(72vw, 40vh); justify-self: center; }
  .leo-copy { bottom: auto; top: 14vh; }
  .leo-item { bottom: auto; top: 0; }
  .leo-name { font-size: clamp(44px, 14vw, 110px); }
  .leo-shade { background: linear-gradient(180deg, rgba(7,3,13,.88) 0%, rgba(7,3,13,.2) 55%, rgba(7,3,13,.65) 100%); }
  .trip { width: calc(100% - 40px - 140px); }
  .trip__from { display: none; }
  .radar { width: 116px; }
  .radar__label { font-size: 10px; }
}
@media (max-height: 640px) {
  .leo-copy { bottom: 66px; }
  .leo-desc { font-size: 14px; margin-top: 10px; }
  .radar { width: 116px; }
  .radar__label, .radar__bars { display: none; }
}
@media (prefers-reduced-motion: reduce) { .radar__sweep { animation: none; } }
