/* R300: keep a single readable statement when animations are disabled. */
@media (prefers-reduced-motion: reduce) {
  body.la-subpage .r222-kinetic-words > span { opacity: 0 !important; visibility: hidden !important; }
  body.la-subpage .r222-kinetic-words > span:first-child { opacity: 1 !important; visibility: visible !important; }
}

/* R406 | Short landscape screens: the subpage menu must scroll inside the viewport. */
@media (orientation:landscape) and (max-height:650px) and (max-width:1023px) {
  .site-header .main-nav.is-open {
    max-height:calc(100vh - 90px);
    max-height:calc(100dvh - 90px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

/* R408: reserve the final cinema scene height before deferred JS mounts it.
   Removing the temporary margin when the real section is adjacent prevents
   the abrupt content jump, without modifying photos, copy or animation.
   On no-JS browsers, each subpage has a <noscript> no-gap fallback. */
@media (max-width:767px){
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:145svh;}
  body.r97-contact .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:115svh;}
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(.r222-upgraded){height:104px!important;min-height:104px!important;}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:max(540px,100svh);}
  body.r97-contact .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:clamp(540px,75svh,690px);}
}
