/* MARTE-D V10.7 — Ambient Space Motion.
 * Subtle decoration only; never interfere with live scientific tools.
 * No external assets, no telemetry simulation, no layout shift.
 */
.md-ambient-scene{position:relative;isolation:isolate;}
.md-ambient-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block;pointer-events:none!important;z-index:0;opacity:.91;contain:strict;}
/* Real content stays in front; existing photographic backgrounds stay behind. */
.md-ambient-scene > .container,
.md-ambient-scene > .cx-manifesto-wrap,
.md-ambient-scene > .cx-hero-content,
.md-ambient-scene > .cx-hero-bottom,
.md-ambient-scene > .cx-film-copy,
.md-ambient-scene > .cx-scene-rail,
.md-ambient-scene > .cx-eyebrow,
.md-ambient-scene > h2,
.md-ambient-scene > p,
.md-ambient-scene > a {z-index:2;}
.md-ambient-scene > .container,
.md-ambient-scene > .cx-manifesto-wrap,
.md-ambient-scene > .cx-eyebrow,
.md-ambient-scene > h2,
.md-ambient-scene > p,
.md-ambient-scene > a {position:relative;}
/* Fade stars behind the important imagery and copy. */
.cx-home-hero .md-ambient-canvas{
 -webkit-mask-image:radial-gradient(ellipse 75% 80% at 23% 26%,#000 0%,rgba(0,0,0,.8) 40%,transparent 94%);
 mask-image:radial-gradient(ellipse 75% 80% at 23% 26%,#000 0%,rgba(0,0,0,.8) 40%,transparent 94%);
}
.cx-film-scene .md-ambient-canvas{
 opacity:.54;
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.75) 44%,transparent 86%);
 mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.75) 44%,transparent 86%);
}
.cx-manifesto .md-ambient-canvas{opacity:.47}
.cx-closing .md-ambient-canvas{opacity:.56}
/* On technical pages, reserve the left side for explanatory text. */
main:not(.cx-home-main) .md-ambient-canvas{
 opacity:.63;
 -webkit-mask-image:linear-gradient(90deg,transparent 4%,rgba(0,0,0,.18) 30%,#000 70%);
 mask-image:linear-gradient(90deg,transparent 4%,rgba(0,0,0,.18) 30%,#000 70%);
}
/* Very slow photographic breathing, only while a scene is visible. */
@keyframes md-space-breathe{
 from{transform:scale(1.035) translate3d(0,0,0)}
 to{transform:scale(1.072) translate3d(-.7%,.35%,0)}
}
@media(min-width:721px) and (prefers-reduced-motion:no-preference){
 .cx-film-scene.md-ambient-active .cx-film-background img{
  animation:md-space-breathe 38s ease-in-out infinite alternate;
  transform-origin:58% 52%;
 }
 /* A warm, faint movement in the horizontal rule, without moving text. */
 .cx-manifesto.md-ambient-active .cx-manifesto-rule{
  background-size:240% 100%;
  animation:md-rule-light 18s ease-in-out infinite alternate;
 }
}
@keyframes md-rule-light{
 from{background-position:100% 0}
 to{background-position:0 0}
}
@media(max-width:720px){
 .md-ambient-canvas{opacity:.68}
 .cx-film-scene .md-ambient-canvas{opacity:.35}
 .cx-manifesto .md-ambient-canvas{opacity:.32}
 main:not(.cx-home-main) .md-ambient-canvas{opacity:.38}
}
@media(prefers-reduced-motion:reduce){
 .md-ambient-canvas{display:none!important}
 .cx-film-scene.md-ambient-active .cx-film-background img,
 .cx-manifesto.md-ambient-active .cx-manifesto-rule{animation:none!important;transition:none!important}
}
