/* Static-motion mode for all site pages except index.html. */
html {
  scroll-behavior: auto !important;
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

/* Keep staged and scroll-revealed content fully visible without entrance effects. */
.test-page .test-hero-media,
.test-page .test-hero-media img,
.test-page .test-display i,
.test-page .test-hero .test-kicker,
.test-page .test-hero-note,
.test-page [data-test-reveal],
.test-page [data-v4-reveal],
.test-page .v4-word,
.test-page .test-rule,
.test-page .test-step {
  opacity: 1 !important;
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  clip-path: none !important;
  visibility: visible !important;
}

/* Remove scroll parallax from editorial photos. */
.test-page :is(#language, #heart, #thinking, #compute, #ai-generation, #human) figure img,
.test-page :is(#language, #heart, #thinking, #compute, #ai-generation, #human) .test-portrait img {
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
}

/* Keep the AIXESL navigation visible when its video section enters view. */
body.test-page.video-in-focus .nav {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Present the technology cards as a regular grid instead of a scroll-driven rail. */
.ai-page .ai-stack-scroll {
  height: auto !important;
}

.ai-page .ai-stack-scroll-pin {
  position: static !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  overflow: visible !important;
  padding-top: 0 !important;
}

.ai-page .ai-stack-scroll .ai-stack-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  transform: none !important;
  will-change: auto !important;
}

.ai-page .ai-stack-scroll .ai-stack-card {
  flex: initial !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

/* Turn the animated AIXESL ribbon into a readable, static, wrapping row. */
.ai-page .ai-master-ribbon.ai-master-marquee {
  overflow: visible !important;
  white-space: normal !important;
}

.ai-page .ai-master-track {
  display: block !important;
  width: auto !important;
  transform: none !important;
}

.ai-page .ai-master-group {
  display: flex !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
}

.ai-page .ai-master-group[aria-hidden="true"] {
  display: none !important;
}

.ai-page .ai-master-group span {
  white-space: normal !important;
}

/* Ensure the seven-stage diagram is visible when its scroll animation is disabled. */
body.test-page #esl-levels .journey147-slice,
body.test-page #esl-levels .journey147-stage {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1100px) {
  .ai-page .ai-stack-scroll .ai-stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .ai-page .ai-stack-scroll .ai-stack-grid {
    grid-template-columns: 1fr !important;
  }
}
