/* Keep the original film and scroll choreography, with less magnification.
   The poster, video and navigation snapshot must share the same frame. */
.ambient-scene{opacity:1}
.maono-ambient{opacity:.72}
.maono-ambient-scrim{opacity:.5}
/* Only one image supplies the soft edges: avoid a second planet showing
   through the video mask when its position differs from the first frame. */
#ambient-scene[data-ready=true] picture,
html.motion-resume-snapshot #ambient-scene picture{visibility:hidden}
@media(min-width:601px){
  #ambient-scene{inset:0 0 0 auto;margin-block:auto;width:min(100vw,1280px);height:min(56.25vw,720px);background:transparent}
  #ambient-scene .ambient-poster,#ambient-scene .maono-ambient-poster,
  #ambient-scene video,html.motion-resume-snapshot #ambient-scene::after{
    mask-image:linear-gradient(180deg,transparent,#000 6%,#000 92%,transparent);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 6%,#000 92%,transparent)
  }
}
@media(max-width:600px){
  :root{--motion-frame-top:calc(155px + clamp(129.6px,33.696vw,200.88px));--motion-frame-height:min(84vw,480px)}
  #ambient-scene{opacity:1;background:#07090d}
  #ambient-scene .ambient-poster,
  #ambient-scene .maono-ambient-poster{inset:var(--motion-frame-top) 0 auto;height:var(--motion-frame-height)}
  #ambient-scene .ambient-poster img,
  #ambient-scene .maono-ambient-poster img{inset:0;height:100%;object-fit:cover;object-position:100% center}
  #ambient-scene video{inset:var(--motion-frame-top) 0 auto;height:var(--motion-frame-height);object-fit:cover;object-position:100% center}
  html.motion-resume-snapshot #ambient-scene::after{inset:var(--motion-frame-top) 0 auto;height:var(--motion-frame-height);background-size:cover;background-position:100% center}
  /* Fade the rectangular film edges, not the illuminated planet. */
  #ambient-scene .ambient-poster,#ambient-scene .maono-ambient-poster,
  #ambient-scene video,html.motion-resume-snapshot #ambient-scene::after{
    mask-image:linear-gradient(180deg,transparent,#000 7%,#000 90%,transparent);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 7%,#000 90%,transparent)
  }
  .scene-scrim{background:transparent}
  body.has-ambient-motion #ambient-scene{opacity:.85}
  .maono-ambient-scrim{opacity:1;background:linear-gradient(90deg,#07090d40,#07090d14)}
  .motion-toggle,.ambient-motion-toggle{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;font-size:0}
  .motion-toggle::after,.ambient-motion-toggle::after{content:"Ⅱ";font-size:17px;line-height:1}
  .motion-toggle[aria-pressed=true]::after,.ambient-motion-toggle[aria-pressed=true]::after{content:"▷"}
}
@media(max-width:360px){:root{--motion-frame-top:320px}}
@media(max-width:600px){
  /* An unobstructed view between the headline and its supporting copy. */
  body:not(.has-ambient-motion) .hero h1{margin-bottom:calc(var(--motion-frame-height) + 12px)}
  body:not(.has-ambient-motion) .hero h1,.hero-description{text-shadow:0 2px 18px #07090d}
  body:not(.has-ambient-motion) .hero-visual{background:rgba(7,9,13,.3)}
  /* Let the fixed film remain visible through the page as it scrolls.
     Only the backgrounds fade; copy and controls retain full contrast. */
  body:not(.has-ambient-motion) :is(.intro-strip,.experience-section,.integrations-section,.approach-section,.faq-section,.owners-door,.contact-section,.site-footer){background:rgba(7,9,13,.36)}
  body:not(.has-ambient-motion) .motion-story{background:linear-gradient(90deg,rgba(7,9,13,.42),rgba(7,9,13,.2))}
  body:not(.has-ambient-motion) .offer-section{background:rgba(11,16,24,.22)}
  body:not(.has-ambient-motion) :is(.offer-card,.offer-card-optional,.service-explore a){background:rgba(17,25,35,.62)}
  body:not(.has-ambient-motion) .integration-workbench{background:rgba(16,22,31,.3)}
  body:not(.has-ambient-motion) .integration-panel{background:rgba(16,22,31,.45)}
  body.ambient-services :is(.scope-panel,.steps li){background:rgba(16,23,34,.64)}
  body.ambient-owners :is(.demo-section,.roles-section){background:rgba(7,9,13,.36)}
  body.ambient-owners .offer-sheet{background:rgba(17,26,37,.64)}
}
@media(prefers-reduced-motion:reduce){
  .maono-ambient{opacity:.5}
  #ambient-scene[data-ready=true] picture{visibility:visible}
}

.hero-visual .floating-interface,
.hero-visual .floating-interface:hover {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 2px 10px #07090d;
}
.hero-visual .floating-interface > span { display: block; }
.hero-visual .floating-interface small {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #d7e1ed;
}
.hero-visual .floating-interface strong {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #f5f7fb;
}
.hero-visual .floating-interface:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
.hero-visual .floating-interface:focus-visible,
#motion-toggle:focus-visible {
  outline: 2px solid #e4edf6;
  outline-offset: 4px;
}
.hero-visual .float-motion { text-align: right; }

#motion-toggle:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f5f7fb;
  font-size: 13px;
  line-height: 1.3;
  text-shadow: 0 1px 7px #07090d, 0 1px 3px #07090d;
}
#motion-toggle .motion-toggle-icon { font-size: 16px; }
#motion-toggle:hover .motion-toggle-label {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 600px) {
  body:not(.has-ambient-motion) .hero-visual {
    gap: 20px;
    padding-block: 8px;
    border: 0;
    background: transparent;
  }
  .hero-visual .floating-interface,
  .hero-visual .floating-interface:hover {
    padding: 0;
    border: 0;
    text-align: left;
  }
  .hero-visual .floating-interface > span:not(.float-icon) { display: block; }
  .hero-visual .floating-interface strong { font-size: clamp(26px, 7vw, 38px); }
  #motion-toggle:not([hidden]) {
    position: static;
    display: flex;
    width: max-content;
    margin-top: 8px;
    padding-inline: 0;
  }
  #motion-toggle::after { content: none; }
  .motion-story {
    height: auto;
    min-height: 0;
  }
  .story-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-block: 80px;
  }
}
