/* ============================================================
   MASTERPLAN MODULE — 7 Pranchetas Imersivas (Órbitas Concentricas)
   Fidelidade Total à Referência PDF (app_masterplan.pdf)
   ============================================================ */

.mp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #E4DFD3;
  color: #272523;
  overflow: hidden;
  display: flex;
  user-select: none;
}

/* Ocultamento temporário dos controles durante a animação inicial da P1 */
.mp__btn-close.is-delayed-hidden,
.mp__side-nav.is-delayed-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Botão Fechar no Canto Superior Direito */
.mp__btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  background-color: #272523;
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  padding: 1.2rem 2.8rem;
  cursor: pointer;
  opacity: 1;
  transition: background-color 200ms ease, opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mp__btn-close:hover {
  background-color: #383431;
}

/* Botões de Navegação Laterais Circulares Escuros (Aumentados) */
.mp__side-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background-color: #272523;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: background-color 200ms ease, transform 200ms ease, opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mp__side-nav:hover {
  background-color: #383431;
  transform: translateY(-50%) scale(1.08);
}

.mp__side-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.mp__side-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.mp__side-nav--prev {
  left: 2.5rem;
}

.mp__side-nav--next {
  right: 2.5rem;
}

.mp__side-nav .icon {
  width: 2.6rem;
  height: 2.6rem;
  stroke: #FFFFFF;
  stroke-width: 2.2;
}

/* ============================================================
   ANIMAÇÃO E EFEITO LÍQUIDO ORGÂNICO VIVO (LIQUID BLOB & GOOEY)
   ============================================================ */

/* Animações de deformação fluida contínua do Círculo Principal (Âncora) */
@keyframes mpLiquidMorphAnchor {
  0% {
    border-radius: 44% 56% 58% 42% / 57% 41% 59% 43%;
  }

  25% {
    border-radius: 58% 42% 43% 57% / 43% 57% 45% 55%;
  }

  50% {
    border-radius: 42% 58% 57% 43% / 58% 42% 56% 44%;
  }

  75% {
    border-radius: 56% 44% 42% 58% / 43% 57% 45% 55%;
  }

  100% {
    border-radius: 44% 56% 58% 42% / 57% 41% 59% 43%;
  }
}

/* Stage Contendo os Círculos e Órbitas */
.mp__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* Círculo Central Âncora Líquido (Dark Charcoal #272523) */
.mp__anchor {
  position: absolute;
  top: 50%;
  left: 0;
  border-radius: 44% 56% 58% 42% / 57% 41% 59% 43%;
  background-color: #272523;
  color: #ddd8ca;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05),
    0 14px 45px rgba(0, 0, 0, 0.35);
  animation: mpLiquidMorphAnchor 11s ease-in-out infinite alternate;
  transition: width 950ms cubic-bezier(0.34, 1.45, 0.64, 1),
    height 950ms cubic-bezier(0.34, 1.45, 0.64, 1),
    transform 2000ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 1200ms ease,
    opacity 600ms ease;
  will-change: transform, width, height, border-radius, opacity;
}

/* Variações geométricas do círculo por Prancheta */
.mp__anchor.is-p1 {
  width: 68vw;
  height: 68vw;
  max-width: 1133px;
  max-height: 1133px;
  transform: translate(-34vw, -50%) scale(1);
  padding-left: 34vw;
  opacity: 1;
}

/* Movimento suave de entrada do Círculo no P1 */
.mp__anchor.is-p1.is-entering {
  transform: translate(-34vw, -50%) scale(0.15);
  opacity: 0.2;
}

/* P2: Círculo estabilizado (10% maior que os 82vw anteriores: 90vw) */
.mp__anchor.is-p2 {
  width: 90vw;
  height: 90vw;
  max-width: 1500px;
  max-height: 1500px;
  transform: translate(-45vw, -50%) scale(1);
  padding-left: 36vw;
  transition: width 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              height 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              max-width 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              max-height 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              padding-left 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efeito Cortina P2 — Fase 1: Expansão Contínua (Cresce até tapar 100% da tela) */
.mp__anchor.is-curtain-closing {
  width: 90vw !important;
  height: 90vw !important;
  max-width: 1500px !important;
  max-height: 1500px !important;
  transform: translate(-45vw, -50%) scale(3.8) !important;
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Efeito Cortina P2 — Fase 2: Contração Orgânica (Murcha lento e suavemente em 3400ms (+2s) até estabilizar na P2: 90vw scale 1) */
.mp__anchor.is-curtain-opening {
  width: 90vw !important;
  height: 90vw !important;
  max-width: 1500px !important;
  max-height: 1500px !important;
  transform: translate(-45vw, -50%) scale(1) !important;
  transition: transform 3400ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* P3: Murchamento Lento e Elegante da P2 (90vw) até o tamanho compacto P3 (48vw) */
.mp__anchor.is-p3 {
  width: 48vw;
  height: 48vw;
  max-width: 780px;
  max-height: 780px;
  transform: translate(-24vw, -50%) scale(1);
  padding-left: 27vw;
  transition: width 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              height 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              max-width 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              max-height 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              padding-left 1400ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mp__anchor.is-p4,
.mp__anchor.is-p5,
.mp__anchor.is-p6 {
  width: 48vw;
  height: 48vw;
  max-width: 780px;
  max-height: 780px;
  transform: translate(-24vw, -50%);
  padding-left: 27vw;
}

.mp__anchor.is-p7 {
  opacity: 0;
  pointer-events: none;
}

.mp__anchor-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  max-width: 460px;
}

.mp__anchor-p2p3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 440px;
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 2500ms cubic-bezier(0.16, 1, 0.3, 1), transform 2500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mp__anchor-p2p3.is-text-revealed {
  opacity: 1;
  transform: translateX(0);
}

.mp__anchor-p2p3.is-hidden {
  opacity: 0;
  transform: translateX(-2rem);
}

/* P1: Grupo Fixo + Carrossel de Subtítulos */
.mp__p1-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: fit-content;
}

/* 2.1 Grupo Fixo: MASTERPLAN (Bold retomado com 4.1rem) */
.mp__anchor-fixed {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.1rem;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ddd8ca;
  -webkit-text-stroke: 1.2px #ddd8ca;
  text-shadow: 0 0 2px #ddd8ca;
  transform: scale(0.01);
  opacity: 0;
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
}

.mp__anchor-fixed.is-stabilized {
  transform: scale(1);
  opacity: 1;
}

/* 2.2 Carrossel de 3 elementos (a, b, c) */
.mp__anchor-carousel {
  position: relative;
  width: 100%;
  height: 11rem;
  margin-top: 0;
}

.mp__carousel-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.mp__carousel-item.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 2.2 a) COM RAÍZES (Sem bold, mantendo tamanho 4.1rem) */
.mp__carousel-item--a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ddd8ca;
}

/* 2.2 b) VIVO (Cor #ddd8ca do MASTERPLAN, bold reduzido 800, alinhado à esquerda) */
.mp__carousel-item--b {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.6rem;
  letter-spacing: 0.06em;
  color: #ddd8ca;
  -webkit-text-stroke: 0.6px #ddd8ca;
  text-align: left;
}

.mp__carousel-item--b span {
  line-height: 1;
}

/* 2.2 c) orientado ao FUTURO (Cor #ddd8ca do MASTERPLAN, bold reduzido 800) */
.mp__carousel-item--c {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.mp__carousel-item--c .mp__c-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ddd8ca;
  width: 100%;
  line-height: 1.05;
}

.mp__carousel-item--c .mp__c-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ddd8ca;
  -webkit-text-stroke: 0.6px #ddd8ca;
  line-height: 1;
}

.mp__anchor-label {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 600;
  font-size: 2.0rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ddd8ca;
}

.mp__anchor-text {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ddd8ca;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.mp__anchor-desc {
  font-family: var(--font-body), sans-serif;
  font-weight: 300;
  font-size: 2.0rem;
  line-height: 1.5;
  color: #a9a294;
  margin: 0;
}

/* Anéis Concentricos Alongados / Elípticos (Órbitas P4, P5, P6) */
.mp__orbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.mp__orbit {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%) scale(0.3);
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 700ms ease;
  pointer-events: auto;
  will-change: transform, opacity;
}

.mp__orbit.is-visible {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Órbita 1: Dourado / Marrom Olívia `#7C6540` (2017-2025) — Texto Reposicionado Mais para a Esquerda */
.mp__orbit--1 {
  left: -21.5vw;
  width: 63vw;
  height: 98vh;
  background-color: #7C6540;
  color: #FFFFFF;
  z-index: 8;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.mp__orbit--1 .mp__orbit-content {
  position: absolute;
  left: 48vw;
  top: 50%;
  transform: translateY(-50%);
  width: 20vw;
}

/* Órbita 2: Verde Florestal `#47503E` (EM PROJETO) — Texto Reposicionado Mais para a Esquerda */
.mp__orbit--2 {
  left: -20.5vw;
  width: 79.5vw;
  height: 116vh;
  background-color: #47503E;
  color: #FFFFFF;
  z-index: 7;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.3);
}

.mp__orbit--2 .mp__orbit-content {
  position: absolute;
  left: 65vw;
  top: 50%;
  transform: translateY(-50%);
  width: 20vw;
}

/* Órbita 3: Grafite Escuro `#272523` (RESIDENCIAL) — Texto Reposicionado Mais a Direita & Fonte Aumentada */
.mp__orbit--3 {
  left: -19.5vw;
  width: 97.5vw;
  height: 138vh;
  background-color: #272523;
  color: #FFFFFF;
  z-index: 6;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.mp__orbit--3 .mp__orbit-content {
  position: absolute;
  left: 84.5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 18vw;
}

.mp__orbit-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

/* Títulos Padronizados das Órbitas (Mesmo Tamanho 2.0rem & Bold Sutil 600) */
.mp__orbit-header {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 600;
  font-size: 2.0rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.mp__orbit--3 .mp__orbit-header {
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #E4DFD3;
  margin-bottom: 0.1rem;
}

.mp__orbit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mp__orbit-list li {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E4DFD3;
  white-space: nowrap;
}

.mp__orbit--3 .mp__orbit-list li {
  font-size: 1.3rem;
}

/* Conteúdos das Pranchetas (P1, P2, P7) */
.mp__content {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mp__content.is-active {
  opacity: 1;
  display: block;
  visibility: visible;
  pointer-events: auto;
}

/* Prancheta 1: Assinatura Marco Casamonte & Antinori (Simétrico com a Referência Inicial) */
.mp__card-p1 {
  position: absolute;
  left: 45vw;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 3000ms cubic-bezier(0.16, 1, 0.3, 1), transform 3000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mp__card-p1.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mp__card-p1 h2 {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.32;
  color: #272523;
  margin: 0;
}

.mp__card-p1 p {
  font-family: var(--font-body), sans-serif;
  font-weight: 300;
  font-size: 1.7rem;
  line-height: 1.5;
  color: #403C39;
  margin: 0;
}

.mp__img-p1 {
  width: 100%;
  max-width: 680px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  margin-top: 0.4rem;
}

.mp__img-p1 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Prancheta 2: Vídeo 7 Frame na Direita — Fade-in Rápido Pós-Estabilização */
.mp__video-frame {
  position: absolute;
  left: 30.5vw;
  right: 7vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 1083px;
  aspect-ratio: 2.214 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mp__content.is-active .mp__video-frame {
  opacity: 1;
}

.mp__video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp__video-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #E53935;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: none;
  /* Apenas referência visual se vídeo falhar */
}

/* Prancheta 7 / PDF P4: CTA Final e Mapa Interativo (Fidelidade 100% à Referência) */
.mp__p7-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mp__p7-box {
  display: flex;
  width: 78vw;
  max-width: 1360px;
  height: 64vh;
  max-height: 680px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mp__p7-map {
  position: relative;
  width: 52%;
  height: 100%;
  overflow: hidden;
}

.mp__p7-map > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp__p7-card {
  width: 48%;
  height: 100%;
  background-color: #21201E;
  color: #FFFFFF;
  padding: 4.2rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem;
  box-sizing: border-box;
}

.mp__p7-card h2 {
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E4DFD3;
  margin: 0;
}

.mp__p7-card p {
  font-family: var(--font-body), sans-serif;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.55;
  color: #C5BEB2;
  margin: 0;
  max-width: 440px;
}

.mp__btn-cta {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 1.35rem 3.4rem;
  background-color: #E4DFD3;
  color: #21201E;
  border: none;
  border-radius: 0;
  font-family: var(--font-display), "Mundial", "Archivo FBR", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(228, 223, 211, 0.4);
  animation: mpPulseGlow 2.2s infinite;
  transition: transform 200ms ease, background-color 200ms ease;
}

.mp__btn-cta:hover {
  background-color: #FFFFFF;
  transform: scale(1.02);
}

.mp__btn-cta:active {
  transform: scale(0.98);
}

@keyframes mpPulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(228, 223, 211, 0.3);
  }

  50% {
    box-shadow: 0 0 35px rgba(228, 223, 211, 0.85);
  }

  100% {
    box-shadow: 0 0 15px rgba(228, 223, 211, 0.3);
  }
}