/* Neoretina motion layer — styles for assets/motion.js (all pages). Inert without JS or with reduced motion. */

/* Lenis smooth scrolling (base rules from lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* parallax targets: keep transforms instant, other transitions intact */
  .nr-px { will-change: transform; transition-property: opacity, clip-path, box-shadow, filter !important; }

  /* ---- heading words rise from a mask ---- */
  .nr-wsplit .nr-wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .02em .14em; margin: -.06em -.02em -.14em; }
  .nr-wsplit .nr-wi { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; opacity: 0;
    transition: transform .9s cubic-bezier(.2,.75,.15,1), opacity .5s ease; transition-delay: calc(var(--w, 0) * 55ms); }
  .nr-wsplit.is-in .nr-wi { transform: none; opacity: 1; }
  .nr-wsplit .nr-accent { display: inline-block; }
  .nr-pagehero h1.nr-wsplit { animation: none; }
  .nr-pagehero h1.nr-wsplit .nr-wi { transition-delay: calc(120ms + var(--w, 0) * 60ms); }

  /* ---- image wipes ---- */
  .js .nr-wipe { clip-path: inset(0 0 100% 0 round 18px); transition: clip-path 1.15s cubic-bezier(.7,0,.2,1); }
  .js .nr-wipe.is-in { clip-path: inset(-60px -60px -60px -60px round 18px); }
  .js .nr-wipe.is-done { clip-path: none; }
  .js .nr-wipe > img { transition: transform 1.6s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
  .js img.nr-wipe { transition: clip-path 1.15s cubic-bezier(.7,0,.2,1), transform .6s var(--nr-ease), box-shadow .4s; }
  .js .nr-wipe:not(.is-in) > img:not(.nr-px) { transform: scale(1.18); }

  /* ---- list items slide in one after another ---- */
  .js .nr-list-in > * { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--nr-ease), transform .6s var(--nr-ease); transition-delay: calc(var(--li, 0) * 60ms); }
  .js .nr-list-in.is-in > * { opacity: 1; transform: none; }
  .nr-intro__chips.nr-list-in > *, .nr-intl__tags.nr-list-in > * { transform: translateY(10px) scale(.94); }

  /* ---- card tilt: smooth follow + moving sheen ---- */
  .nr-card, .nr-doc, .nr-job, .nr-mv li, .nr-info__item, .nr-checks li, .nr-post, .nr-facility, .nr-why__item, .nr-steps > li, .nr-pager__link, .nr-gallery a { transform-style: preserve-3d; }
  .nr-gallery a { transition: transform .35s var(--nr-ease), box-shadow .35s; }
  .nr-tilting { transition-duration: .12s, .3s, .3s !important; }
  .nr-card::after, .nr-job::after, .nr-info__item::after, .nr-steps > li::after, .nr-mv li::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(107,79,158,.09), transparent 60%);
  }
  .nr-job, .nr-info__item, .nr-steps > li { position: relative; }
  .nr-tilting::after, .nr-mv li.nr-tilting::before { opacity: 1; }
  .nr-card__link::after { z-index: 1; }

  /* ---- magnetic buttons ---- */
  .nr-btn, .nr-arrow, .nr-social, .nr-enquire { transition-property: background-color, color, border-color, transform, box-shadow, translate, padding; }
  .nr-btn, .nr-arrow, .nr-social { transition-duration: .2s, .2s, .2s, .2s, .2s, .35s; }

  /* ---- pointer spotlight on dark bands ---- */
  .nr-spot { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s; border-radius: inherit;
    background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(143,214,220,.16), transparent 60%); }
  .nr-spot.is-on { opacity: 1; }
  .nr-pagehero > .nr-container, .nr-cta > .nr-container { position: relative; z-index: 1; }

  /* ---- small extras ---- */
  .nr-card__icon, .nr-info__icon, .nr-stat__icon, .nr-why__icon, .nr-facility__icon { transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
  .nr-card:hover .nr-card__icon, .nr-info__item:hover .nr-info__icon, .nr-stat:hover .nr-stat__icon, .nr-why__item:hover .nr-why__icon, .nr-mv li:hover .nr-card__icon { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
  .nr-crumbs a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--nr-ease), color .2s; text-decoration: none !important; }
  .nr-crumbs a:hover { background-size: 100% 1px; }
  .nr-prose a:not(.nr-btn):not(.nr-pager__link):not(.nr-video) { transition: color .2s, text-decoration-color .2s, text-underline-offset .2s; }
  .nr-prose a:not(.nr-btn):not(.nr-pager__link):not(.nr-video):hover { text-underline-offset: 5px; }
  .nr-video__play { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
  .nr-video:hover .nr-video__play { transform: scale(1.12); }
  .nr-footer__grid a { transition: color .2s, padding-left .25s var(--nr-ease); }
  .nr-footer__grid li a:hover { padding-left: 6px; }
}
