/* Made in Medina v4.88 - clearly visible, layout-safe cinematic effects. */
:root{--mim-vfx-speed:850ms;--mim-vfx-ease:cubic-bezier(.22,1,.36,1);--mim-vfx-halo:.13}
body.mim-vfx-mode-cinematic{--mim-vfx-speed:1080ms;--mim-vfx-halo:.23}

/* Persistently visible scroll progress; no effect on layout. */
#mim-vfx-progress{position:fixed;top:0;left:0;width:100%;height:3px;z-index:2147480000;pointer-events:none;transform-origin:left center;transform:scaleX(var(--mim-vfx-progress,0));background:linear-gradient(90deg,#b47f79,#e4dcd0 66%,#fff6d9);box-shadow:0 0 15px rgba(228,220,208,.7)}

/* A gentle entrance, including first paint for desktop and mobile. */
body.mim-vfx-ready .site-header .mim-zh-header-logo{animation:mim-vfx-logo-in 950ms var(--mim-vfx-ease) both}
body.mim-vfx-ready .site-header .header-right{animation:mim-vfx-nav-in 950ms var(--mim-vfx-ease) 100ms both}
@keyframes mim-vfx-logo-in{from{opacity:.3;filter:blur(2px);translate:0 -9px}to{opacity:1;filter:none;translate:0 0}}
@keyframes mim-vfx-nav-in{from{opacity:.35;translate:0 -8px}to{opacity:1;translate:0 0}}

/* Use own scroll target set, never override editorial-motion's transforms. */
.mim-cinematic-vfx .mim-vfx-enter{opacity:0;translate:0 24px;transition:opacity var(--mim-vfx-speed) ease,translate var(--mim-vfx-speed) var(--mim-vfx-ease);transition-delay:var(--mim-vfx-delay,0ms)}
.mim-cinematic-vfx .mim-vfx-enter.mim-vfx-in{opacity:1;translate:0 0}
body.mim-vfx-mode-cinematic .mim-vfx-enter{translate:0 34px}
body.mim-vfx-mode-cinematic .mim-vfx-enter.mim-vfx-in{translate:0 0}

/* Reveal accent appears on section headings as you enter them, incl. touch screens. */
.mim-cinematic-vfx :is(.mim-v474-heading,.services-heading,.portfolio-head,.video-section .section-head,.clients-section .section-head){position:relative}
.mim-cinematic-vfx .mim-vfx-reveal-line{display:block!important;width:0;height:1px;max-width:110px;margin:14px auto 0;background:linear-gradient(90deg,transparent,#E4DCD0,transparent);opacity:.9;transition:width 1000ms var(--mim-vfx-ease)}
.mim-cinematic-vfx .mim-vfx-line-in>.mim-vfx-reveal-line{width:min(110px,45%)}

/* Service cards: easy-to-see illuminated border sweep and offset on hover. */
.mim-cinematic-vfx .services-list .service-row{position:relative;isolation:isolate;overflow:hidden;transition:translate 520ms var(--mim-vfx-ease),border-color .35s,box-shadow .5s!important}
.mim-cinematic-vfx .services-list .service-row::before{content:"";position:absolute;z-index:1;pointer-events:none;left:0;bottom:0;height:2px;width:0;background:linear-gradient(90deg,#bb847e,#E4DCD0,#bb847e);transition:width 800ms var(--mim-vfx-ease)}
.mim-cinematic-vfx .services-list .service-row.mim-vfx-line-in::before{width:100%}
.mim-cinematic-vfx .services-list .service-row:is(:hover,:focus-within){translate:0 -5px;border-color:rgba(228,220,208,.65)!important;box-shadow:0 18px 36px rgba(8,0,5,.28)}
.mim-cinematic-vfx .services-list .service-row:is(:hover,:focus-within)::before{height:3px;background:#E4DCD0}

/* On scroll, photo/reel tile edge glows once and settles; hover gently zooms media. */
.mim-cinematic-vfx :is(.gallery-tile,.reel-tile){position:relative;transition:translate .6s var(--mim-vfx-ease),box-shadow .6s ease,border-color .55s ease}
.mim-cinematic-vfx :is(.gallery-tile,.reel-tile).mim-vfx-tile-in{animation:mim-vfx-card-ring 920ms ease-out 1}
@keyframes mim-vfx-card-ring{0%{box-shadow:0 0 0 rgba(228,220,208,0)}45%{box-shadow:0 0 0 2px rgba(228,220,208,.34)}100%{box-shadow:0 0 0 rgba(228,220,208,0)}}
@media(hover:hover) and (pointer:fine){
 .mim-cinematic-vfx :is(.gallery-tile,.reel-tile):is(:hover,:focus-within){translate:0 -7px;border-color:rgba(228,220,208,.7)!important;box-shadow:0 20px 45px rgba(8,0,6,.33)}
 .mim-cinematic-vfx .gallery-tile .gallery-open:is(:hover,:focus-visible) .gallery-photo img{scale:1.065!important;filter:saturate(1.08) brightness(1.05)!important;transition:scale .75s var(--mim-vfx-ease),filter .5s ease}
 .mim-cinematic-vfx :is(.service-row,.mim-v474-ai-card,.mim-v474-capability,.contact-method){position:relative;isolation:isolate}
 .mim-vfx-spotlight{position:absolute;inset:0;pointer-events:none;z-index:0;border-radius:inherit;opacity:0;background:radial-gradient(350px circle at var(--mim-vfx-x,50%) var(--mim-vfx-y,50%),rgba(228,220,208,var(--mim-vfx-halo)),transparent 72%);transition:opacity .28s ease}
 .mim-cinematic-vfx :is(.service-row,.mim-v474-ai-card,.mim-v474-capability,.contact-method):is(:hover,:focus-within)>.mim-vfx-spotlight{opacity:1}
 .mim-cinematic-vfx :is(.service-row,.mim-v474-ai-card,.mim-v474-capability,.contact-method)>:not(.mim-vfx-spotlight){position:relative;z-index:1}
 .mim-cinematic-vfx .mim-v474-ai-card:is(:hover,:focus-within){translate:0 -6px;border-color:rgba(228,220,208,.75)!important;box-shadow:0 24px 50px rgba(6,0,5,.32)}
 .mim-cinematic-vfx .mim-v474-ai-card .mim-v474-ai-media img{transition:scale .75s var(--mim-vfx-ease),filter .5s ease}
 .mim-cinematic-vfx .mim-v474-ai-card:is(:hover,:focus-within) .mim-v474-ai-media img{scale:1.045;filter:brightness(1.06)}
}
.mim-cinematic-vfx .mim-v474-ai-card,.mim-cinematic-vfx .mim-v474-compare-card{transition:translate .55s var(--mim-vfx-ease),box-shadow .55s ease,border-color .5s ease}
.mim-cinematic-vfx .mim-v474-ai-card.mim-vfx-tile-in,.mim-cinematic-vfx .mim-v474-compare-card.mim-vfx-tile-in{animation:mim-vfx-card-ring 920ms ease-out 1}
@media(prefers-reduced-motion:no-preference){
 .mim-cinematic-vfx .mim-v480-project-dialog[open]{animation:mim-vfx-dialog-in .45s var(--mim-vfx-ease) both}
 .mim-cinematic-vfx .mim-v480-project-dialog[open]::backdrop{animation:mim-vfx-backdrop-in .4s ease both}
}
@keyframes mim-vfx-dialog-in{from{opacity:.15;translate:0 20px;scale:.99}to{opacity:1;translate:0 0;scale:1}}
@keyframes mim-vfx-backdrop-in{from{opacity:0}to{opacity:1}}
@media(max-width:760px){#mim-vfx-progress{height:2px}.mim-cinematic-vfx .mim-vfx-enter{translate:0 14px}.mim-vfx-spotlight{display:none!important}.mim-cinematic-vfx .services-list .service-row:is(:hover,:focus-within){translate:none}}
@media(prefers-reduced-motion:reduce){
 #mim-vfx-progress{display:none!important}
 .mim-cinematic-vfx .mim-vfx-enter{opacity:1!important;translate:none!important;transition:none!important}
 .mim-vfx-reveal-line{width:80px!important;transition:none!important}
 .mim-cinematic-vfx .services-list .service-row::before{width:100%!important;transition:none!important}
 .mim-cinematic-vfx :is(.gallery-tile,.reel-tile,.mim-v474-ai-card,.mim-v474-compare-card){animation:none!important;translate:none!important}
 .mim-cinematic-vfx .mim-v480-project-dialog[open],.mim-cinematic-vfx .mim-v480-project-dialog[open]::backdrop{animation:none!important}
}
