/* ---------- passeio 3D: seção alta, palco preso; a rolagem é o vídeo ---------- */
.voo {
  position: relative;
  height: 880vh;
  background: #0b0f15;
  color: var(--creme);
}

.voo__palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.voo__reserva,
.voo__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.voo__reserva {
  object-fit: cover;
  opacity: 0.55;
}

.voo--pronto .voo__reserva {
  display: none;
}

.voo__canvas {
  opacity: 0;
  visibility: hidden;
}

/* faixas de cinema e vinheta: dá cara de vídeo */
.voo__vinheta {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 15, 21, 0.75), rgba(11, 15, 21, 0) 18%),
    linear-gradient(to top, rgba(11, 15, 21, 0.85), rgba(11, 15, 21, 0) 34%),
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.35));
}

.voo__topo {
  position: absolute;
  top: calc(var(--nav-h) + 18px);
  left: var(--margem);
  right: calc(var(--margem) + 170px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.voo__dica {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.voo__legendas {
  position: absolute;
  left: var(--margem);
  right: var(--margem);
  bottom: calc(48px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0;
  list-style: none;
}

.voo__legenda {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 520px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.voo__legenda.ativa {
  opacity: 1;
  transform: none;
}

.voo__legenda span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--oliva-claro, #e0a868);
}

.voo__legenda h3 {
  margin: 8px 0 10px;
  font-family: var(--ff-titulo);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
}

.voo__legenda p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.82;
}

.voo__legenda a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.voo__nota {
  position: absolute;
  right: var(--margem);
  top: calc(var(--nav-h) + 22px);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.voo__barra {
  position: absolute;
  left: var(--margem);
  right: calc(var(--margem) + 86px);
  bottom: calc(24px + env(safe-area-inset-bottom));
  height: 2px;
  background: rgba(244, 238, 228, 0.16);
}

.voo__barra i {
  position: absolute;
  inset: 0;
  background: var(--oliva, #bf782f);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- lateral: a foto real do cômodo ao lado da maquete ---------- */
.voo__fotos {
  position: absolute;
  top: calc(var(--nav-h) + 64px);
  right: var(--margem);
  bottom: 96px;
  width: min(34vw, 520px);
  pointer-events: none;
}

.voo__foto {
  position: absolute;
  right: 0;
  top: 50%;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: translate(40px, -50%) scale(0.97);
  transition: opacity 0.7s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.voo__foto.ativa {
  opacity: 1;
  transform: translate(0, -50%);
}

.voo__foto img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(244, 238, 228, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* a varanda ganha destaque: mais alta */
.voo__foto[data-i='4'] img {
  aspect-ratio: 3 / 4.4;
}

.voo__foto figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

@media (max-width: 760px) {
  .voo__fotos {
    top: calc(var(--nav-h) + 52px);
    bottom: auto;
    right: 16px;
    width: 38vw;
    height: 52vw;
  }

  .voo__foto {
    top: 0;
    transform: translateX(30px);
  }

  .voo__foto.ativa {
    transform: none;
  }

  .voo__foto img,
  .voo__foto[data-i='4'] img {
    aspect-ratio: 3 / 4;
  }

  .voo__foto figcaption {
    display: none;
  }

  .voo {
    height: 700vh;
  }

  .voo__dica {
    display: none;
  }

  .voo__legenda h3 {
    font-size: 38px;
  }

  .voo__legenda p {
    font-size: 14px;
  }

  .voo__nota {
    top: auto;
    left: 16px;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .voo {
    height: 300vh;
  }
}

