/* Homepage category cards. Selectors carry an extra .mxv.mxv so they outrank the page's own
   #mx-home rules, which are printed inline later in the document. */
#mx-home .mx-cats{perspective:1200px}
#mx-home .mx-cats .mx-cat.mxv.mxv{isolation:isolate;min-height:196px;display:flex;flex-direction:column;justify-content:flex-end;transform:perspective(900px) rotateX(var(--mxv-rx,0deg)) rotateY(var(--mxv-ry,0deg)) translateY(var(--mxv-lift,0px)) scale(var(--mxv-s,1));transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .4s ease;will-change:transform}
#mx-home .mx-cats .mx-cat.mxv.mxv:hover,#mx-home .mx-cats .mx-cat.mxv.mxv:focus-visible{--mxv-lift:-8px;box-shadow:0 34px 60px -30px rgba(0,0,0,.55)}
#mx-home .mx-cats .mx-cat.mxv.mxv.is-tilting{transition:transform .12s linear,box-shadow .4s ease}
#mx-home .mx-cats .mx-cat.mxv.mxv:active{--mxv-s:.985}
#mx-home .mx-cats .mx-cat.mxv.mxv:focus-visible{outline:3px solid #f07800;outline-offset:3px}

/* Layers: motion scene, the card's own shading on top of it, then a pointer glare. */
#mx-home .mx-cats .mx-cat.mxv .mxv-layer{position:absolute;inset:0;border-radius:inherit;pointer-events:none}
#mx-home .mx-cats .mx-cat.mxv .mxv-media{z-index:0;overflow:hidden;opacity:0;transition:opacity .45s ease}
#mx-home .mx-cats .mx-cat.mxv .mxv-media canvas,#mx-home .mx-cats .mx-cat.mxv .mxv-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#mx-home .mx-cats .mx-cat.mxv .mxv-shade{z-index:1;background:inherit;opacity:1;transition:opacity .45s ease}
#mx-home .mx-cats .mx-cat.mxv.is-playing .mxv-media{opacity:1}
#mx-home .mx-cats .mx-cat.mxv.is-playing .mxv-shade{opacity:var(--mxv-shade,.66)}
#mx-home .mx-cats .mx-cat.mxv:nth-child(4n+3){--mxv-shade:.6}
#mx-home .mx-cats .mx-cat.mxv .mxv-glare{z-index:2;overflow:hidden;opacity:0;transition:opacity .35s ease;background:radial-gradient(circle at var(--mxv-gx,50%) var(--mxv-gy,30%),rgba(255,255,255,.26),rgba(255,255,255,0) 46%)}
#mx-home .mx-cats .mx-cat.mxv:nth-child(4n+3) .mxv-glare{background:radial-gradient(circle at var(--mxv-gx,50%) var(--mxv-gy,30%),rgba(240,120,0,.14),rgba(240,120,0,0) 50%)}
#mx-home .mx-cats .mx-cat.mxv.is-tilting .mxv-glare{opacity:1}

/* Content sits above the layers. */
#mx-home .mx-cats .mx-cat.mxv>:not(.mxv-layer):not(.mx-arr){position:relative;z-index:3}
#mx-home .mx-cats .mx-cat.mxv .mx-arr{z-index:3}
#mx-home .mx-cats .mx-cat.mxv .mx-ic{margin-bottom:auto;transition:transform .45s cubic-bezier(.2,.8,.2,1.3),background .25s,color .25s}
#mx-home .mx-cats .mx-cat.mxv:hover .mx-ic{transform:translateZ(20px) scale(1.08) rotate(-4deg)}
#mx-home .mx-cats .mx-cat.mxv .mx-cat-t{margin-top:26px;font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
#mx-home .mx-cats .mx-cat.mxv p{margin-top:6px;font-size:13.5px;font-weight:500;letter-spacing:.01em;opacity:.82}
#mx-home .mx-cats .mx-cat.mxv .mx-arr{transition:transform .35s cubic-bezier(.2,.8,.2,1.3),color .25s}
#mx-home .mx-cats .mx-cat.mxv:hover .mx-arr{transform:translate(4px,-4px) scale(1.15)}
/* Text stays legible over moving scenes. */
#mx-home .mx-cats .mx-cat.mxv.is-playing:not(:nth-child(4n+3)) .mx-cat-t,#mx-home .mx-cats .mx-cat.mxv.is-playing:not(:nth-child(4n+3)) p{text-shadow:0 1px 12px rgba(0,0,0,.35)}
#mx-home .mx-cats .mx-cat.mxv.is-playing:nth-child(4n+3) .mx-cat-t,#mx-home .mx-cats .mx-cat.mxv.is-playing:nth-child(4n+3) p{text-shadow:0 1px 10px rgba(255,248,238,.9)}

/* Entrance: cards rise in, one after another, with a light sweep once they land. */
#mx-home .mx-cats .mx-cat.mxv.mxv-wait{opacity:0;transform:perspective(900px) rotateX(14deg) translateY(34px) scale(.95)}
#mx-home .mx-cats .mx-cat.mxv.mxv-in{animation:mxv-rise .9s cubic-bezier(.2,.9,.25,1.12) both;animation-delay:calc(var(--mxv-i,0) * 110ms)}
#mx-home .mx-cats .mx-cat.mxv.mxv-in .mxv-glare::before{content:"";position:absolute;inset:-20% -60%;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.38) 50%,transparent 60%);transform:translateX(-120%);animation:mxv-sweep 1.15s ease-in-out both;animation-delay:calc(var(--mxv-i,0) * 110ms + .75s)}
#mx-home .mx-cats .mx-cat.mxv.mxv-in .mxv-glare{opacity:1}
#mx-home .mx-cats .mx-cat.mxv.mxv-in:not(.is-tilting) .mxv-glare{background:none}
@keyframes mxv-rise{from{opacity:0;transform:perspective(900px) rotateX(14deg) translateY(34px) scale(.95)}to{opacity:1;transform:perspective(900px) rotateX(0deg) translateY(0) scale(1)}}
@keyframes mxv-sweep{to{transform:translateX(120%)}}

/* Section header. */
#mx-home .mxv-head{align-items:flex-end;gap:32px}
#mx-home .mxv-head h2{letter-spacing:-.03em;max-width:16ch}
#mx-home .mxv-head .mxv-lede{margin:12px 0 0;max-width:46ch;color:var(--mut,#5f6b65);font-size:16px;line-height:1.6}
#mx-home .mxv-head .mx-link{display:inline-flex;align-items:center;gap:8px;padding:10px 4px 6px;transition:color .2s,gap .25s}
#mx-home .mxv-head .mx-link .mxv-go{display:inline-flex;transition:transform .25s cubic-bezier(.2,.8,.2,1.3)}
#mx-home .mxv-head .mx-link:hover .mxv-go{transform:translateX(4px)}

@media(max-width:760px){
  #mx-home .mx-cats .mx-cat.mxv.mxv{min-height:164px}
  #mx-home .mx-cats .mx-cat.mxv .mx-cat-t{margin-top:18px;font-size:16.5px}
  #mx-home .mxv-head{flex-direction:column;align-items:flex-start;gap:14px}
  #mx-home .mxv-head .mxv-lede{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
  #mx-home .mx-cats .mx-cat.mxv.mxv,#mx-home .mx-cats .mx-cat.mxv .mx-ic,#mx-home .mx-cats .mx-cat.mxv .mx-arr{transition:none;transform:none;animation:none}
  #mx-home .mx-cats .mx-cat.mxv.mxv-wait{opacity:1}
  #mx-home .mx-cats .mx-cat.mxv .mxv-glare::before{display:none}
}
