/* MAZI slide: the founders in black and white, bleeding off the right edge and dissolving into the black field. */
#mazi .mazi-founders{position:absolute;right:-14%;bottom:0;height:76%;width:auto;min-width:68%;max-width:96%;aspect-ratio:1916/1078;overflow:hidden;pointer-events:none;
 -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000c 14%,#000 30%),linear-gradient(180deg,transparent 0%,#000 13%);-webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,transparent 0%,#000c 14%,#000 30%),linear-gradient(180deg,transparent 0%,#000 13%);mask-composite:intersect}
#mazi .mazi-media{position:absolute;inset:0;opacity:.78;transform-origin:62% 55%;animation:mazi-drift 22s ease-in-out infinite alternate}
#mazi .mazi-media img,#mazi .mazi-media video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
/* Hover: the still comes alive (slow-motion, silent, ping-pong loop), crossfading in and back out. */
#mazi .mazi-media video{opacity:0;transition:opacity .7s ease}
#mazi.is-founders-live .mazi-media video{opacity:1}
@keyframes mazi-drift{from{transform:scale(1.03) translate3d(0,0,0)}to{transform:scale(1.12) translate3d(-2.2%,-1.2%,0)}}
#mazi:not(.is-visible) .mazi-media,.motion-paused #mazi .mazi-media{animation-play-state:paused}
/* Logo moves to the left column (the founders now hold the right), aligned with the caption. */
#mazi .mazi-logo{z-index:3;right:auto;left:var(--edge);top:max(118px,13.5%);width:clamp(260px,27vw,440px);translate:-11.3% 0} /* the webp has 11.3% empty space before the M */
@media(max-width:700px){#mazi .mazi-logo{top:118px;width:180px}}
#mazi .project-caption{z-index:4}
@media(max-width:700px){#mazi .mazi-founders{width:150%;height:auto;min-width:0;max-width:none;right:-30%;bottom:auto;top:24%;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 38%,#000 62%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 38%,#000 62%,transparent 100%)}}
@media(prefers-reduced-motion:reduce){#mazi .mazi-media{animation:none;transform:scale(1.03)}#mazi .mazi-media video{display:none}}
/* Nov 23: a line on the facelift under the title (CJ: "add something more descriptive, so it feels more pro") */
#mazi .project-caption .mazi-sub{max-width:36ch;margin:18px 0 0;font-size:clamp(17px,1.35vw,21px);line-height:1.5;color:#f1ece2d9;text-wrap:pretty}
@media(max-width:640px){#mazi .project-caption .mazi-sub{font-size:15px;margin-top:12px;max-width:none}}
