.abertura,
.percurso-palco {
  position: relative;
  isolation: isolate;
  background: var(--forest);
  color: var(--paper);
}
.abertura {
  min-height: clamp(39rem, 93svh, 68rem);
  display: grid;
  align-items: center;
  overflow: clip;
}
.abertura-midia,
.abertura-sombra,
.capa-filme,
.abertura-midia video {
  position: absolute;
  inset: 0;
}
.abertura-midia {
  z-index: -2;
  overflow: hidden;
  transform: translateY(var(--filme-y, 0px)) scale(var(--filme-zoom, 1.02));
  transform-origin: 69% 47%;
}
.capa-filme img,
.abertura-midia video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 48%;
}
.abertura-midia video {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.abertura.tem-video video {
  opacity: 1;
}
.abertura-sombra {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 29, 22, 0.94),
      rgba(9, 32, 22, 0.78) 27%,
      rgba(9, 31, 23, 0.17) 62%,
      transparent 87%
    ),
    linear-gradient(
      0deg,
      rgba(5, 24, 17, 0.83),
      transparent 30%,
      transparent 78%,
      rgba(6, 26, 18, 0.56)
    );
  pointer-events: none;
}
.abertura-conteudo {
  padding-block: 8.5rem 7.5rem;
  position: relative;
}
.abertura-texto {
  width: fit-content;
  transform: translateY(var(--tipo-y, 0px));
}
.abertura-texto h1 {
  font-size: clamp(5.1rem, 9vw, 10rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
}
.abertura-texto h1 span,
.abertura-texto h1 em {
  display: block;
}
.abertura-texto h1 em {
  font-size: 1.09em;
  line-height: 1.06;
}
.abertura-texto p {
  max-width: 30rem;
  text-wrap: pretty;
  font-size: clamp(1.05rem, 1.46vw, 1.35rem);
  line-height: 1.44;
  margin: 1.2rem 0 1.75rem;
}
.abertura .hero-actions {
  align-items: center;
}
.abertura .hero-actions a {
  width: fit-content;
}
.abertura-base {
  position: absolute;
  bottom: clamp(1.4rem, 2.8vw, 2.9rem);
  left: 0;
  right: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.descer {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}
.descer .icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.65rem;
  border: 1px solid #f5f2e892;
  border-radius: 50%;
}
.mesa-filme {
  gap: 1rem;
  align-items: center;
}
.planos {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
}
.planos button {
  color: var(--paper);
  font-size: 0.875rem;
  display: grid;
  align-content: center;
  gap: 0.52rem;
  text-align: left;
  min-width: 5.7rem;
  min-height: 2.75rem;
  padding: 0.3rem 0;
}
.planos button[aria-pressed="true"] {
  color: var(--lime);
}
.planos i {
  display: block;
  height: 2px;
  background: #f5f2e86e;
  width: 100%;
  overflow: hidden;
}
.planos b {
  display: block;
  height: 100%;
  background: var(--lime);
  transform: scaleX(var(--progresso, 0));
  transform-origin: left;
}
.controle-filme {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #f5f2e887;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
}
.controle-filme svg {
  fill: currentColor;
  width: 1rem;
}
.controle-filme[data-playing="true"] .ico-play,
.controle-filme[data-playing="false"] .ico-pausa {
  display: none;
}
.abertura :focus-visible,
.percurso-palco :focus-visible {
  outline-color: var(--lime);
}
.percurso {
  background: var(--paper);
}
.percurso-intro {
  position: absolute;
  inset: clamp(5.65rem, 12svh, 7.4rem) 0 auto;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.percurso-intro h2 { font-size: clamp(2rem, 3.8vw, 4.4rem); }
.percurso-intro h2 em { white-space: nowrap; }
.percurso-palco::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0 0 auto;
  height: min(45svh, 21rem);
  background: linear-gradient(#092017d9, #0c221aa1 48%, transparent);
  pointer-events: none;
}
.percurso-intro p {
  max-width: 19rem;
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.42;
}
.percurso-rolagem {
  position: relative;
  background: var(--forest);
  --palco: clamp(28rem, 86svh, 56rem);
  --fixo: 0px;
}
.percurso-pranchas {
  position: relative;
}
.quadro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: var(--palco);
  display: flex;
  align-items: end;
  color: var(--paper);
}
.quadro-foto,
.quadro-sombra {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.quadro-foto {
  z-index: -2;
  overflow: hidden;
}
.quadro-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--foco);
}
.quadro-sombra {
  background:
    linear-gradient(90deg, #081e16d9 0%, #091e177a 39%, transparent 78%),
    linear-gradient(0deg, #071c16ed 0%, #071c1644 45%, transparent 71%);
}
.quadro-dentro {
  padding: 4.8rem 0 7rem;
}
.quadro-legenda {
  max-width: 41rem;
}
.quadro-legenda h3 {
  font: 700 clamp(3.4rem, 7.7vw, 8rem)/0.96 var(--exp);
  letter-spacing: -0.065em;
}
.quadro-legenda h3 em {
  font-weight: 400;
}
.quadro-legenda p {
  max-width: 33rem;
  margin: 0.95rem 0 0;
  font-size: clamp(1.08rem, 1.45vw, 1.36rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.quadro-legenda .link-text {
  color: var(--lime);
  margin-top: 0.75rem;
}
.percurso-mesa {
  position: absolute;
  inset: auto 0 1.65rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}
.percurso-mesa nav {
  display: flex;
  gap: clamp(1.15rem, 2.8vw, 3.5rem);
  border-bottom: 1px solid #f5f2e866;
}
.percurso-mesa a {
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0 0.53rem;
  min-height: 2.8rem;
  font-weight: 600;
}
.percurso-mesa a[aria-current="step"] {
  color: var(--lime);
  border-color: var(--lime);
}
.trilho {
  width: clamp(11rem, 29vw, 31rem);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 3px #102d25);
}
.trilho-guia {
  stroke: #f5f2e8a8;
  stroke-width: 1.3;
  stroke-dasharray: 3 6;
}
.trilho-andado {
  stroke: var(--lime);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.percurso.rolavel .percurso-rolagem {
  height: calc(var(--palco) + 155svh);
}
.rolavel .percurso-palco {
  height: var(--palco);
  position: sticky;
  top: var(--fixo);
  overflow: clip;
}
.rolavel .percurso-pranchas,
.rolavel .quadro {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
}
.rolavel .quadro {
  visibility: hidden;
  isolation: auto;
  overflow: visible;
  pointer-events: none;
}
.rolavel .quadro-foto,
.rolavel .quadro-sombra {
  clip-path: polygon(
    var(--corte-a, 0%) 0,
    100% 0,
    100% 100%,
    var(--corte-b, 0%) 100%
  );
}
.rolavel .quadro-foto {
  z-index: var(--ordem);
}
.rolavel .quadro-sombra {
  z-index: calc(var(--ordem) + 1);
}
.rolavel .quadro-dentro {
  position: relative;
  z-index: 7;
}
.rolavel .quadro[inert] .quadro-dentro {
  visibility: hidden;
}
.rolavel .quadro:not([inert]) .quadro-legenda a {
  pointer-events: auto;
}
.rolavel .percurso-mesa {
  z-index: 8;
}
.rolavel .quadro.visivel {
  visibility: visible;
}
.rolavel .quadro-foto img {
  transform: scale(var(--escala, 1.04)) translateX(var(--quadro-x, 0%));
}
.rolavel .quadro[aria-hidden="false"] .quadro-legenda {
  animation: legenda-etapa 0.32s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes legenda-etapa {
  from {
    opacity: 0.5;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.percurso:not(.rolavel) .percurso-mesa {
  display: none;
}
.percurso:not(.rolavel) .quadro-dentro {
  padding-block: 4rem;
}
@media (prefers-reduced-motion: no-preference) {
  .abertura-texto h1 span,
  .abertura-texto h1 em {
    animation: granex-entrada 0.8s cubic-bezier(0.11, 0.77, 0.21, 1) both;
  }
  .abertura-texto h1 em {
    animation-delay: 0.12s;
  }
  .abertura-texto p,
  .abertura .hero-actions {
    animation: granex-opacidade 0.62s ease both 0.18s;
  }
  @keyframes granex-entrada {
    from {
      clip-path: inset(0 -3% 100% -3%);
      transform: translateY(0.23em);
    }
    to {
      clip-path: inset(-18% -3% -15% -3%);
      transform: none;
    }
  }
  @keyframes granex-opacidade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (max-width: 700px) {
  .abertura {
    min-height: clamp(40rem, 92svh, 53rem);
    align-items: end;
  }
  .capa-filme img,
  .abertura-midia video {
    object-position: 50% 45%;
  }
  .abertura-sombra {
    background:
      linear-gradient(
        0deg,
        #071e16fa 2%,
        #081e16e3 21%,
        #0a2119a8 43%,
        #081e1622 70%,
        #071d1766
      ),
      linear-gradient(90deg, #091d172b, transparent 88%);
  }
  .abertura-conteudo {
    padding: 10rem 0 6.9rem;
  }
  .abertura-texto h1 {
    font-size: clamp(4.4rem, 14vw, 6.8rem);
  }
  .abertura-texto p {
    font-size: 1.05rem;
    margin: 0.9rem 0 1.2rem;
    max-width: 28rem;
  }
  .abertura .hero-actions {
    gap: 0.8rem;
  }
  .abertura-base {
    bottom: 1.05rem;
    align-items: center;
    gap: 0.55rem;
  }
  .descer {
    padding: 0;
  }
  .descer span {
    display: none;
  }
  .descer .icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .mesa-filme {
    gap: 0.65rem;
  }
  .planos {
    gap: 0.5rem;
  }
  .planos button {
    min-width: 2.9rem;
    font-size: 0.825rem;
  }
  .controle-filme {
    width: 2.55rem;
    height: 2.55rem;
  }
  .percurso-intro {
    display: block;
    top: 4.85rem;
  }
  .percurso-intro p {
    font-size: .95rem;
    margin-top: .4rem;
    max-width: 19rem;
  }
  .percurso-rolagem {
    --palco: clamp(28rem, 79svh, 43rem);
  }
  .percurso.rolavel .percurso-rolagem {
    height: calc(var(--palco) + 112svh);
  }
  .quadro-dentro {
    padding: 4rem 0 8.6rem;
  }
  .quadro-legenda h3 {
    font-size: clamp(3.5rem, 13.8vw, 5.8rem);
  }
  .quadro-legenda p {
    font-size: 1.04rem;
    max-width: 27rem;
    margin-top: 0.7rem;
  }
  .quadro-sombra {
    background: linear-gradient(
      0deg,
      #081e17f5 0%,
      #0a2119dd 24%,
      #0b241b7a 54%,
      #0b241b18 83%
    );
  }
  .percurso-mesa {
    bottom: 0.8rem;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.2rem;
  }
  .percurso-mesa nav {
    justify-content: space-between;
    gap: 1rem;
  }
  .percurso-mesa .trilho {
    align-self: end;
    width: 42%;
    max-height: 2.85rem;
  }
  .percurso-mesa a {
    padding: 0.48rem 0 0.35rem;
    font-size: 0.95rem;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .abertura {
    min-height: 30rem;
  }
  .abertura-conteudo {
    padding: 7rem 0 5.4rem;
  }
  .abertura-texto h1 {
    font-size: 4rem;
  }
  .percurso-rolagem {
    --palco: 25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .abertura-midia,
  .abertura-texto {
    transform: none;
  }
  .abertura-midia video {
    transition: none;
  }
  .quadro {
    min-height: clamp(24rem, 67svh, 42rem);
  }
}
