/* Xpense motion layer: first-visit logo intro, page-change curtain, scroll progress, reveals and hover polish.
   Pairs with /motion/motion.js and the inline head script that sets html.xm-intro / html.xm-nav before first paint. */
:root { --xm-navy: #0d1460; --xm-orange: #f37c3a; --xm-ease: cubic-bezier(.22, 1, .36, 1); }

/* covers paint before any script runs, so no flash of the page under the intro or curtain */
html.xm-intro::after, html.xm-nav::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; }
html.xm-intro::after { background: #fffefa; }
html.xm-nav::after { background: var(--xm-navy); }
/* the hero waits for its entrance so it never flashes in before animating */
html.xm-js #hero, html.xm-js .detail-hero { opacity: 0; }

.xm-ov { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.xm-intro-ov { background: #fffefa; }
.xm-curtain { background: var(--xm-navy); clip-path: inset(100% 0 0 0); }
.xm-glow { position: absolute; inset: -20%; }
.xm-intro-ov .xm-glow { background: radial-gradient(32% 32% at 50% 50%, rgba(243,124,58,.24), rgba(243,124,58,0) 70%), radial-gradient(60% 45% at 50% 120%, rgba(28,61,181,.18), rgba(28,61,181,0) 70%); }
.xm-curtain .xm-glow { background: radial-gradient(40% 40% at 50% 50%, rgba(243,124,58,.3), rgba(243,124,58,0) 70%), radial-gradient(60% 60% at 0% 100%, rgba(37,95,210,.5), rgba(37,95,210,0) 70%); }
.xm-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.xm-logo { position: relative; width: min(340px, 70vw); aspect-ratio: 1000 / 315; }
.xm-curtain .xm-logo { width: min(220px, 56vw); }
.xm-logo i { position: absolute; inset: 0; background: url(/motion/logo.png) 0 0 / 100% 100% no-repeat; }
.xm-logo .xm-icon { clip-path: inset(0 70% 0 0); transform-origin: 15.4% 50%; }
.xm-logo .xm-word { clip-path: inset(0 0 0 32%); }
.xm-curtain .xm-word { filter: brightness(0) invert(1); }
.xm-bar { width: 140px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(17,26,45,.1); }
.xm-curtain .xm-bar { width: 110px; background: rgba(255,255,255,.14); }
.xm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59349, var(--xm-orange)); transform: scaleX(0); transform-origin: 0 50%; }

/* reading progress */
.xm-progress { position: fixed; left: 0; top: 0; z-index: 1000; width: 100%; height: 2px; background: linear-gradient(90deg, var(--xm-orange), #f59349); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* header: lifts away while reading down, returns when scrolling up */
.site-header, body > header { transition: transform .5s var(--xm-ease), box-shadow .4s; }
html.xm-scrolled .site-header, html.xm-scrolled body > header { box-shadow: 0 10px 30px -18px rgba(17,26,45,.35); }
html.xm-down .site-header, html.xm-down body > header.xm-sticky { transform: translateY(-110%); }

/* word reveal (static homepage headings) */
.xm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.xm-wi { display: inline-block; will-change: transform; }

/* hover polish */
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--xm-ease); pointer-events: none; }
.button:hover::after { transform: translateX(130%); }
.button svg, .button span[aria-hidden], .text-link svg, .depth-link svg { transition: transform .4s var(--xm-ease); }
.button:hover svg, .button:hover span[aria-hidden], .text-link:hover svg, .depth-link:hover svg { transform: translateX(4px); }
.product-card, .depth-card, .workflow-card, .related-grid > *, .highlight-grid > *, .more-grid > article, .pricing-terms > div { transition: transform .55s var(--xm-ease), box-shadow .55s var(--xm-ease), border-color .3s; }
.product-card:hover, .depth-card:hover, .related-grid > *:hover, .more-grid > article:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -30px rgba(17,26,45,.35); }
.product-figure img, .depth-image img, .story-poster img, .screen-expand img { transition: transform .9s var(--xm-ease); }
.screen-expand:hover img, .story-poster:hover img { transform: scale(1.025); }

/* homepage app section: copy and store badges only, centred */
#mobile .mobile-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
#mobile .mobile-layout .section-heading { max-width: 660px; }
#mobile .app-links { justify-content: center; }

/* customer logos: colour marks in an endless strip moving left to right */
.customer-strip > h2 { margin-left: auto; margin-right: auto; }
.customer-logos.xm-marquee { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.xm-track { display: flex; width: max-content; animation: xm-marquee 42s linear infinite; }
.xm-set { display: flex; flex: none; align-items: center; gap: 76px; padding-right: 76px; }
.customer-logos.xm-marquee img { flex: none; width: auto; max-width: none; height: 46px; object-fit: contain; }
.customer-logos.xm-marquee .xm-logo-ashapura { height: 64px; }
.customer-logos.xm-marquee .xm-logo-raymond { height: 58px; }
.customer-logos.xm-marquee .xm-logo-raymond-lifestyle { height: 48px; }
.customer-logos.xm-marquee .xm-logo-raymond-realty { height: 38px; }
.customer-logos.xm-marquee .xm-logo-jk-maini-aerospace, .customer-logos.xm-marquee .xm-logo-jk-maini-precision { height: 48px; }
.customer-logos.xm-marquee .xm-logo-orient-ceratech { height: 40px; }
.customer-logos.xm-marquee .xm-logo-saatvik { height: 34px; }
@keyframes xm-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 900px) {
  .xm-track { animation-duration: 30s; }
  .xm-set { gap: 44px; padding-right: 44px; }
  .customer-logos.xm-marquee img { height: 32px; }
  .customer-logos.xm-marquee .xm-logo-ashapura { height: 44px; }
  .customer-logos.xm-marquee .xm-logo-raymond { height: 40px; }
  .customer-logos.xm-marquee .xm-logo-raymond-lifestyle { height: 33px; }
  .customer-logos.xm-marquee .xm-logo-raymond-realty { height: 26px; }
  .customer-logos.xm-marquee .xm-logo-jk-maini-aerospace, .customer-logos.xm-marquee .xm-logo-jk-maini-precision { height: 33px; }
  .customer-logos.xm-marquee .xm-logo-orient-ceratech { height: 28px; }
  .customer-logos.xm-marquee .xm-logo-saatvik { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .xm-track { animation: none; width: auto; }
  .xm-set[aria-hidden] { display: none; }
  .xm-set { flex-wrap: wrap; justify-content: center; gap: 24px 40px; padding: 0; }
  .xm-ov, .xm-progress { display: none !important; }
  html.xm-intro::after, html.xm-nav::after { display: none; }
  .button::after { display: none; }
}
