/* Refinamento premium das cenas — não interfere nos canvases nem no scroll dos frames. */
.scene {
  position: relative;
  background: #08090b;
}

.scene-sticky {
  overflow: hidden;
}

.scene-copy {
  width: min(38vw, 640px) !important;
  max-width: 640px !important;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3.5rem) !important;
  border-left: 1px solid rgba(239, 144, 55, 0.34);
  background: linear-gradient(90deg, rgba(6, 7, 9, 0.82) 0%, rgba(6, 7, 9, 0.52) 66%, rgba(6, 7, 9, 0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.scene-title {
  margin: 0 0 clamp(1.15rem, 2vw, 1.8rem);
  max-width: 12ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.scene-title.amber {
  color: #ef9037;
  background: linear-gradient(135deg, #ffb15f 0%, #ef9037 48%, #d96f20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scene-text {
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  line-height: 1.72;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.scene-copy::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 15%;
  width: 2px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #ef9037 28%, #ffbc72 70%, transparent);
  box-shadow: 0 0 26px rgba(239, 144, 55, 0.6);
  transition: height 1.15s cubic-bezier(.22, 1, .36, 1);
}

.scene-copy.is-visible::before {
  height: 70%;
}

/* Estado inicial da entrada: aplicado por JS para evitar flash e preservar acessibilidade. */
.premium-sections-ready .scene-copy .scene-title,
.premium-sections-ready .scene-copy .scene-text {
  opacity: 0;
  transform: translate3d(-32px, 24px, 0);
  filter: blur(8px);
}

.premium-sections-ready .scene-copy.is-visible .scene-title,
.premium-sections-ready .scene-copy.is-visible .scene-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.premium-sections-ready .scene-copy .scene-title {
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform 1s cubic-bezier(.22, 1, .36, 1),
    filter 1s cubic-bezier(.22, 1, .36, 1);
}

.premium-sections-ready .scene-copy .scene-text {
  transition:
    opacity .9s .14s cubic-bezier(.22, 1, .36, 1),
    transform 1s .14s cubic-bezier(.22, 1, .36, 1),
    filter 1s .14s cubic-bezier(.22, 1, .36, 1);
}

/* Sutil profundidade no fundo, mantendo os frames totalmente visíveis. */
.scene-shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.82) 0%, rgba(4, 5, 7, 0.38) 35%, rgba(4, 5, 7, 0.04) 66%, rgba(4, 5, 7, 0.14) 100%) !important;
}

@media (max-width: 1100px) {
  .scene-copy {
    width: min(44vw, 590px) !important;
  }

  .scene-title {
    font-size: clamp(2.7rem, 6vw, 5rem);
  }
}

@media (max-width: 900px) {
  .scene-copy {
    width: calc(100% - 2rem) !important;
    max-width: 48rem !important;
    margin: 0 auto 1.25rem !important;
    padding: 2rem 1.35rem 2.2rem !important;
    border-left: 0;
    border-top: 1px solid rgba(239, 144, 55, 0.34);
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.68));
  }

  .scene-copy::before {
    left: 12%;
    top: -1px;
    width: 0;
    height: 2px !important;
    transition: width 1.15s cubic-bezier(.22, 1, .36, 1);
  }

  .scene-copy.is-visible::before {
    width: 76%;
  }

  .scene-title {
    max-width: none;
    font-size: clamp(2.55rem, 11vw, 4.5rem);
    line-height: 1;
  }

  .scene-text {
    font-size: clamp(1rem, 4.4vw, 1.16rem);
    line-height: 1.62;
  }

  .premium-sections-ready .scene-copy .scene-title,
  .premium-sections-ready .scene-copy .scene-text {
    transform: translate3d(0, 28px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-sections-ready .scene-copy .scene-title,
  .premium-sections-ready .scene-copy .scene-text,
  .scene-copy::before {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
