/* PLUMVEX motion layer (1.2.0). Hidden start states apply only under html.mx, which the <head>
   sets when motion is allowed; js/motion.js adds .mx-ready, or the head drops .mx after 2.5 s. */
:root {
  --mx-ease: cubic-bezier(.16, 1, .3, 1);
  --mx-ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --mx-dur: 1000ms;
  --mx-step: 80ms;
}

/* ---------- scroll progress ---------- */
.mx-progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(225, 184, 208, .6);
}
body.admin-bar .mx-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mx-progress { top: 46px; } }

/* ---------- header: glass on scroll, hides going down ---------- */
.mx .site-header {
  transition: transform 520ms var(--mx-ease), background-color 300ms ease, backdrop-filter 300ms ease;
}
.mx .site-header.mx-scrolled {
  background: rgba(20, 23, 28, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.mx .site-header.mx-hide { transform: translateY(-110%); }
.mx .desktop-nav a:after { transition: transform 420ms var(--mx-ease), background 200ms; }

/* ---------- masked words (headings) ---------- */
.mx-split .mx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mx-split .mx-w > span { display: inline-block; will-change: transform; }
.mx [data-mx=words] .mx-w > span {
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform var(--mx-dur) var(--mx-ease);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.mx [data-mx=words].is-in .mx-w > span { transform: none; }

/* ---------- rise ---------- */
.mx [data-mx=up] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 800ms var(--mx-ease), transform var(--mx-dur) var(--mx-ease);
  transition-delay: calc(var(--i, 0) * var(--mx-step));
}
.mx [data-mx=up].is-in { opacity: 1; transform: none; }

/* ---------- wipe (image frames) ---------- */
.mx [data-mx=wipe] {
  clip-path: inset(100% 0 0 0 round var(--radius, 4px));
  transition: clip-path 1300ms var(--mx-ease-in-out);
}
.mx [data-mx=wipe] > img {
  scale: 1.18;
  transition: scale 1800ms var(--mx-ease), transform 700ms var(--mx-ease), opacity 400ms;
}
.mx [data-mx=wipe].is-in { clip-path: inset(0 0 0 0 round var(--radius, 4px)); }
.mx [data-mx=wipe].is-in > img { scale: 1; }

/* ---------- home hero ---------- */
.mx-hero { overflow: hidden; }
.mx-hero .campaign-inner { opacity: calc(1 - var(--hero-out, 0) * 1.4); translate: 0 calc(var(--hero-out, 0) * -80px); }
.mx-hero .campaign-media { overflow: hidden; }
.mx-hero .campaign-media img { transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1)); will-change: transform; }
.mx .mx-hero .campaign-media { clip-path: inset(0 0 0 100%); transition: clip-path 1500ms var(--mx-ease-in-out) 150ms; }
.mx .mx-hero .campaign-media img { scale: 1.25; filter: brightness(.4) saturate(.6); transition: scale 2400ms var(--mx-ease) 150ms, filter 1800ms ease 300ms; }
.mx.mx-loaded .mx-hero .campaign-media { clip-path: inset(0 0 0 0); }
.mx.mx-loaded .mx-hero .campaign-media img { scale: 1; filter: none; }
.mx .mx-hero .eyebrow { transition-delay: 350ms; }
.mx .mx-hero .eyebrow:before { width: 0; transition: width 900ms var(--mx-ease) 600ms; }
.mx .mx-hero .eyebrow.is-in:before { width: 24px; }
.mx .mx-hero h1 .mx-w > span { transition-duration: 1200ms; transition-delay: calc(450ms + var(--w, 0) * 70ms); }
.mx .mx-hero .lead { transition-delay: 800ms; }
.mx .mx-hero .button-row { transition-delay: 950ms; }

/* light that follows the pointer across the hero */
.mx-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 40%), rgba(225, 184, 208, .14), transparent 60%);
  transition: opacity 600ms;
}
.mx-hero > .campaign-media { z-index: -1; }
.mx-hero .mx-glow { mix-blend-mode: screen; }

/* scroll cue */
.mx-cue {
  position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 800ms ease 1400ms;
}
.mx-loaded .mx-cue { opacity: calc(1 - var(--hero-out, 0) * 4); }
.mx-cue i { position: relative; display: block; width: 64px; height: 1px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.mx-cue i:after { content: ''; position: absolute; inset: 0; background: var(--lavender); transform: translateX(-100%); animation: mx-cue 2.2s var(--mx-ease-in-out) infinite 1.6s; }
@keyframes mx-cue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* product / page intro titles play on load */
.mx .product-copy h1 .mx-w > span, .mx .page-intro h1 .mx-w > span { transition-delay: calc(120ms + var(--w, 0) * 80ms); }

/* ---------- proof strip ---------- */
.proof-list li { position: relative; }
.mx .proof-list li:after {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--lavender), transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1200ms var(--mx-ease) calc(200ms + var(--i, 0) * 120ms);
}
.mx .proof-list li.is-in:after { transform: scaleX(1); }
.proof-list strong { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- tilt + glare ---------- */
.mx-tilt, .mx [data-mx=wipe].mx-tilt {
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 700ms var(--mx-ease), clip-path 1300ms var(--mx-ease-in-out), box-shadow 500ms;
  transform-style: preserve-3d;
}
.mx-tilt.is-tilting, .mx [data-mx=wipe].mx-tilt.is-tilting { transition: transform 120ms linear, clip-path 1300ms var(--mx-ease-in-out), box-shadow 500ms; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.mx-tilt > img { transition: scale 1800ms var(--mx-ease), transform 700ms var(--mx-ease), opacity 400ms; }
.mx-tilt.is-tilting > img { transform: translateZ(30px) scale(1.04); }
.mx-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 55%);
  transition: opacity 400ms;
}
.mx-tilt.is-tilting .mx-glare { opacity: 1; }
#rigs .model-photo { position: relative; }
#rigs .model-photo:before {
  content: ''; position: absolute; inset: auto 15% 8% 15%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 184, 208, .16), transparent);
  filter: blur(8px); opacity: 0; transition: opacity 600ms;
}
#rigs .model-card-link:hover .model-photo:before { opacity: 1; }
.model-name { transition: letter-spacing 600ms var(--mx-ease), color 300ms; }
#rigs .model-card-link:hover .text-link { text-decoration: none; background-size: 100% 1px; }
#rigs .model-card-link:hover .model-name { letter-spacing: .04em; color: var(--purple); }

/* ---------- buttons: magnet + sheen ---------- */
.mx-magnet { position: relative; overflow: hidden; isolation: isolate; translate: var(--tx, 0) var(--ty, 0); transition: translate 400ms var(--mx-ease), background var(--fast), border-color var(--fast), transform var(--fast); }
.mx-magnet:hover { transition: translate 120ms linear, background var(--fast), border-color var(--fast), transform var(--fast); }
.button.mx-magnet:before {
  content: ''; position: absolute; z-index: -1; top: 50%; left: var(--bx, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lavender); transform: translate(-50%, -50%) scale(0); transition: transform 600ms var(--mx-ease);
}
.button.mx-magnet:hover:before { transform: translate(-50%, -50%) scale(1); }
.button.mx-magnet:hover { color: var(--paper-ink); }
.paper .button.mx-magnet:before { background: var(--purple); }
.paper .button.mx-magnet:hover { color: #fff; }
.button .od-icon, .text-link .od-icon { transition: transform 400ms var(--mx-ease); }
.button:hover .od-icon { transform: translateX(4px); }
.button-secondary { position: relative; overflow: hidden; }
.button-secondary:after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
  transform: translateX(-120%);
}
.button-secondary:hover:after { transform: translateX(120%); transition: transform 900ms var(--mx-ease); }

/* animated underline for text links */
.text-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(50% + .8em); transition: background-size 500ms var(--mx-ease), color 200ms; }
@media (hover: hover) {
  .text-link:hover, .nav-compare:hover { text-decoration: none; background-size: 100% 1px; }
}

/* ---------- lists & cards ---------- */
.movement-grid li, .included-item, .value, .resource-card { position: relative; }
.movement-grid li:before, .included-item:before, .value:before {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px;
  background: var(--purple); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 600ms var(--mx-ease);
}
.deep .value:before, .section:not(.paper) .included-item:before { background: var(--lavender); }
.movement-grid li h3, .included-item h3, .value h3 { transition: transform 500ms var(--mx-ease); }
@media (hover: hover) {
  .movement-grid li:hover:before, .included-item:hover:before, .value:hover:before { transform: scaleX(1); }
  .movement-grid li:hover h3, .included-item:hover h3, .value:hover h3 { transform: translateX(8px); }
}
.feature-item summary .od-icon { transition: transform 500ms var(--mx-ease); }
.feature-item[open] > p, .faq-item[open] .faq-answer { animation: mx-open 600ms var(--mx-ease); }
@keyframes mx-open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- configurator ---------- */
.config-option { transition: border-color 300ms, background 300ms, transform 400ms var(--mx-ease); }
.config-option:active { transform: scale(.985); }
.config-option .radio-mark { transition: transform 500ms var(--mx-ease), background 200ms; }
.config-option[aria-checked=true] .radio-mark { animation: mx-pop 500ms var(--mx-ease); }
@keyframes mx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.mx-swap { animation: mx-swap 900ms var(--mx-ease); }
@keyframes mx-swap { from { opacity: 0; filter: blur(12px); transform: translateY(24px) scale(.94); } }
.mx-swap-badge { animation: mx-badge 700ms var(--mx-ease); }
@keyframes mx-badge { from { opacity: 0; transform: translateY(-14px); letter-spacing: .4em; } }
.mx-flash { animation: mx-flash 900ms ease; }
@keyframes mx-flash { 0% { color: var(--lavender); } 100% { } }
.paper .mx-flash { animation-name: mx-flash-paper; }
@keyframes mx-flash-paper { 0% { color: var(--purple); } 100% { } }
.swatch-dot { transition: transform 400ms var(--mx-ease); }
.swatch[aria-pressed=true] .swatch-dot { transform: scale(1.25); }

/* ---------- engineering detail: parallax inside a frame ---------- */
.engineering-detail { overflow: hidden; border-radius: var(--radius); }
.engineering-detail > img, .page-intro .split > img { transform: translate3d(0, var(--py, 0), 0) scale(var(--ps, 1.08)); will-change: transform; }
.page-intro .split > img { border-radius: var(--radius); }

/* ---------- marquee before the footer ---------- */
.mx-marquee {
  overflow: hidden; background: var(--deep); border-top: 1px solid rgba(184, 189, 198, .16);
  padding-block: clamp(28px, 5vw, 64px); user-select: none;
}
.mx-marquee-track { display: flex; width: max-content; will-change: transform; }
.mx-marquee-track > div { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); white-space: nowrap; }
.mx-marquee span {
  font: 400 clamp(44px, 8vw, 128px)/1 var(--display); letter-spacing: -.04em; text-transform: uppercase; color: #fff;
}
.mx-marquee span.o { color: transparent; -webkit-text-stroke: 1.5px var(--lavender); }
.mx-marquee b { font-size: clamp(20px, 2.5vw, 36px); color: var(--lavender); font-weight: 400; }

/* ---------- footer statement ---------- */
.footer-statement .mx-w > span { transition-duration: 1100ms; }

/* ---------- touch screens: lighter ---------- */
@media (hover: none) {
  .mx-glow { display: none; }
}
@media (max-width: 767px) {
  .mx [data-mx=up] { transform: translate3d(0, 24px, 0); }
  .mx-cue { display: none; }
  .mx .mx-hero .campaign-media { clip-path: inset(100% 0 0 0); }
}

/* ---------- never move for people who asked not to, and never in print ---------- */
@media (prefers-reduced-motion: reduce) {
  .mx-progress, .mx-glow, .mx-cue, .mx-glare { display: none !important; }
  .mx-marquee-track { transform: none !important; }
}
@media print {
  .mx-progress, .mx-glow, .mx-cue, .mx-marquee { display: none !important; }
  [data-mx], [data-mx] *, .mx-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important; }
}
