/* ==========================================================================
   scroll-motion.css  -  static hooks for scroll-motion.js
   --------------------------------------------------------------------------
   RULE: nothing in this file hides or offsets content. Every initial
   (hidden / shifted) state is applied by scroll-motion.js inside
   gsap.matchMedia(), so if GSAP fails to load, everything stays visible.
   The classes below are only added by scroll-motion.js at runtime.
   ========================================================================== */

/* --------------------------------------------------------------------------
   .ny-lines  -  masked line reveal (desktop only; JS splits the headline)
   Each visual line: <span class="ny-line"><span class="ny-line-inner">.
   The small padding/negative-margin pair keeps descenders and the italic
   overhang from being clipped by the mask with zero net layout change.
   -------------------------------------------------------------------------- */
.ny-lines .ny-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.ny-lines .ny-line-inner {
  display: block;
}

/* --------------------------------------------------------------------------
   .ny-overlap  -  section that overlaps the one before it (static layer).
   The negative margin is static (never animated) so there is no layout
   shift; JS only scrubs a transform (y = this margin's size -> 0) so the
   layer slides up into place without ever opening a gap.
   The `html body` selector ties `html body.home-redesign main > .section` in
   scroll-bg.css and wins by loading later; it also beats `.home-redesign main>.section` and the
   dark-theme page rules without !important (so a later !important
   background from the page-background work still wins).
   -------------------------------------------------------------------------- */
.ny-overlap,
html body main > .section.ny-overlap {
  position: relative;
  z-index: 1;
  margin-top: -48px;
  border-radius: 28px 28px 0 0;
  background: rgba(6, 26, 53, 0.85); /* #061a35 @ 85% (home Strategy/About navy) */
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.55);
}

@media (max-width: 767px) {
  .ny-overlap,
  html body main > .section.ny-overlap {
    margin-top: -32px;
    border-radius: 20px 20px 0 0;
  }
}

/* .ny-rise and .ny-drift need no static CSS. */
