/* ============================================================
   Intrinsic motion — proof objects transform on scroll
   ============================================================ */

/* Act 1 — Discord canvas is the hero (not hidden fore layer) */
.act--hero .act-layer--fore {
  display: block;
}

.act--hero .discord-caption {
  opacity: 1;
}

/* Act 3 — Discord canvas */
.act--discord .act-layer--fore {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

#act-hero-discord-mount,
#act1-discord-mount {
  width: 100%;
  transform-origin: center top;
  will-change: transform, opacity;
}

#act1-discord-mount .ds-app {
  border-radius: 0;
  box-shadow: none;
}

/* Act 4 — pipeline handoff stage */
#pipeline-handoff-stage {
  position: relative;
  width: 100%;
  max-width: min(920px, 96vw);
  margin: 0 auto;
  min-height: min(62vh, 520px);
}

#act2-pipeline-mount {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Act 5 — SOP block focus */
.sop-block {
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  transform-origin: center top;
}

body.cine-intrinsic .sop-block.is-dim {
  opacity: 0.42;
  transform: scale(0.97);
}

body.cine-intrinsic .sop-block.is-focus {
  opacity: 1;
  transform: scale(1);
}

body.cine-intrinsic .sop-block .sop-embed__tech {
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
}

body.cine-intrinsic .sop-block:not(.is-focus) .sop-embed__tech {
  max-height: 0;
  opacity: 0;
}

body.cine-intrinsic .sop-block.is-focus .sop-embed__tech {
  max-height: 1200px;
  opacity: 1;
}

#act4-studio-mount {
  width: 100%;
  max-width: min(900px, 96vw);
  margin: 0 auto;
  transform-origin: center center;
}

.act--cta .act-stage {
  min-height: auto;
  padding: clamp(3rem, 12vh, 6rem) var(--act-pad);
}

.act--cta #act5-cta {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .sop-block.is-dim,
  .sop-block.is-focus {
    opacity: 1;
    transform: none;
  }

  body.cine-intrinsic .sop-block .sop-embed__tech {
    max-height: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sop-block,
  #act-hero-discord-mount,
  #act1-discord-mount,
  #act4-studio-mount {
    transition: none !important;
    transform: none !important;
  }
}
