/* Authored after the pinned cinematic CSS. Single pause treatment for home, Foundation, AGS and solutions. */
body.scroll-experience #film-pause,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion {
  display: inline-grid !important;
  position: relative;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(227, 236, 215, 0.14);
  border-radius: 50%;
  background: transparent;
  color: #e3ecd7;
  box-shadow: none;
  cursor: pointer;
  opacity: var(--pause-opacity, 0.25);
  transition: background 180ms ease, opacity 180ms ease;
}

/* The runtime moves AGS/solution pauses from transport into the scene. */
:is(body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion.scene-motion {
  position: absolute;
}

@media (max-width: 700px) {
  body.scroll-experience #film-pause,
  :is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion {
    --pause-opacity: 0.35;
  }
}

/* A paused state stays legible even after the pointer/focus leaves. */
body.scroll-experience #film-pause[aria-pressed="true"],
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion[aria-pressed="true"] {
  --pause-opacity: 0.9;
}

/* A 44px hit area without a 44px painted disc. */
body.scroll-experience #film-pause::after,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion::after {
  content: "";
  position: absolute;
  inset: -7px;
}

body.scroll-experience #film-pause svg,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Reveal with nearby transport controls too, including reparented pauses. */
body.scroll-experience .film-controls:hover #film-pause,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .journey-transport:hover .pause-motion,
:is(body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .journey-stage:has(.journey-controls:hover) .pause-motion,
body.scroll-experience #film-pause:is(:hover, :focus-visible),
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion:is(:hover, :focus-visible) {
  --pause-opacity: 1;
}

body.scroll-experience #film-pause:is(:hover, :focus-visible) svg,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion:is(:hover, :focus-visible) svg {
  opacity: 1;
}

body.scroll-experience #film-pause:focus-visible,
:is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion:focus-visible {
  outline: 2px solid #e3ecd7;
  outline-offset: 4px;
}

/* Keep one working journey pause, including when Explore is open. */
body[data-route="foundation"] .content-motion-control,
body:has(.solutions-story) .content-motion-control {
  display: none !important;
}
body[data-route="foundation"] .journey-transport {
  display: flex;
}
body[data-route="foundation"] .journey-controls {
  padding-bottom: env(safe-area-inset-bottom);
}

/* The offering tour already follows page motion and reduced motion. Keep its
   pinned runtime intact without painting a second, dedicated pause control. */
body.scroll-experience #solutions .ot-pause,
.suite-motion-control:disabled {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.scroll-experience #film-pause,
  :is(body[data-route="foundation"] .service-story, body[data-route="atlas-growth-suite"] .journey.service-story, body .solutions-story) .pause-motion { transition: none; }
}
