/* Shared project framing: measured against the approved Averlo reference. */
:root { --project-gap:10px; --project-radius:5px; }
body.portfolio-page { --case-gap:var(--project-gap); }
body.home-page #work .work-gallery,
.portfolio-page .case-related-grid,
.portfolio-page .case-media-pair,
.portfolio-page .case-visuals { gap:var(--project-gap); }
.home-page .work-tile,
.portfolio-page .case-media,
.home-page .pixel-hero .hero-showreel,
.home-page .hero-showreel video { border-radius:var(--project-radius); overflow:hidden; }
@media(max-width:639px) { :root { --project-gap:5px; } }

/* One weighted cursor for every route, with native input on touch/reduced motion. */
.ez-site-cursor {
 position:fixed; top:0; left:0; width:15px; height:15px;
 margin:-7.5px 0 0 -7.5px; border-radius:50%; background:#fff;
 mix-blend-mode:exclusion; pointer-events:none; z-index:2147483646; opacity:0;
 transform:translate3d(-100px,-100px,0); will-change:transform;
 transition:transform 240ms cubic-bezier(.2,.8,.2,1),width 240ms cubic-bezier(.2,.8,.2,1),height 240ms cubic-bezier(.2,.8,.2,1),margin 240ms cubic-bezier(.2,.8,.2,1),opacity 120ms;
}
.ez-site-cursor[data-visible] { opacity:1; }
.ez-site-cursor[data-interactive] { width:35px; height:35px; margin:-17.5px 0 0 -17.5px; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 html.ez-cursor-active, html.ez-cursor-active * { cursor:none!important; }
 html.ez-cursor-active .work-tile .work-overlay { opacity:0!important; }
}
