/*
 * AME Studio V3.7 — real WebGL mercury from the user-supplied Animorio reference.
 * Metal is rendered by a fragment shader in runtime/mercury-webgl.js.
 * Only the LEFT CTA bubble keeps its original continuous CSS micro-motion.
 */
.ame-webgl-mercury-canvas{
 position:absolute!important;display:block!important;left:50%!important;top:50%!important;
 transform:translate(-50%,-50%)!important;pointer-events:none!important;
 z-index:0!important;max-width:none!important;max-height:none!important;
 opacity:1!important;mix-blend-mode:normal!important;filter:none!important;
 contain:paint!important;overflow:visible!important
}
/* Real metal replaces every prior CSS pseudo-chrome layer on selected controls. */
html body .ame-mercury-webgl,
html body #siteHeader .menu-button.ame-chrome-button.ame-mercury-webgl,
html body .ame-floating-compose:not(.reference-restored).ame-mercury-control:not(.reference-restored).ame-mercury-webgl,
html body .ame-contact-next.ame-mercury-webgl,
html body .ame-contact-back.ame-mercury-webgl{
 position:relative!important;isolation:isolate!important;overflow:visible!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 animation:none!important;text-decoration:none!important;
 color:#1b1a19!important
}
html body .ame-mercury-webgl::before,
html body .ame-mercury-webgl::after,
html body .ame-floating-compose:not(.reference-restored).ame-mercury-control:not(.reference-restored).ame-mercury-webgl::before,
html body .ame-floating-compose:not(.reference-restored).ame-mercury-control:not(.reference-restored).ame-mercury-webgl::after,
html body #siteHeader .menu-button.ame-chrome-button.ame-mercury-webgl::before{
 content:none!important;display:none!important;animation:none!important;
 background:none!important;box-shadow:none!important
}
html body .ame-mercury-webgl>*:not(.ame-webgl-mercury-canvas){
 position:relative!important;z-index:2!important
}
html body .ame-mercury-webgl:hover{box-shadow:none!important;background:transparent!important}
html body .ame-mercury-webgl:focus-visible{
 outline:2px solid #522124!important;outline-offset:7px!important
}
.ame-contact-next.ame-mercury-webgl,.ame-contact-back.ame-mercury-webgl{
 min-height:46px!important;padding:8px 22px!important;border-radius:999px!important
}
#siteHeader .menu-button.ame-chrome-button.ame-mercury-webgl{
 transform:none!important;border-radius:999px!important;overflow:visible!important
}
#siteHeader .ame-chrome-dots{z-index:2!important;pointer-events:none}
#siteHeader .ame-chrome-dots i{background:#141519!important;box-shadow:0 1px 0 #ffffff88!important}
/* Only this bubble remains CSS, with the native orbit animation retained. */
.ame-floating-compose:not(.reference-restored).ame-mercury-webgl .ame-floating-compose__icon{
 position:relative!important;z-index:3!important;overflow:hidden!important;
 flex:0 0 36px!important;width:36px!important;height:36px!important;
 border-radius:50%!important;
 background:radial-gradient(circle at 22% 19%,#fffdfa 0%,#b5a69d 29%,#74645d 51%,#e6d4ca 78%,#b49b93 100%)!important;
 box-shadow:inset 0 1px 2px #fff,inset -2px -2px 5px #43352c40!important;
 animation:ame-mercury-css-bubble 4.8s ease-in-out infinite alternate!important
}
.ame-floating-compose:not(.reference-restored).ame-mercury-webgl .ame-floating-compose__icon :is(.ame-liquid-orbit,.ame-liquid-glint){
 animation-play-state:running!important
}
@keyframes ame-mercury-css-bubble{
 0%{transform:rotate(-6deg) scale(.96);border-radius:56% 44% 59% 41%/47% 53% 46% 54%}
 55%{transform:rotate(8deg) scale(1.04);border-radius:45% 55% 47% 53%/57% 42% 58% 43%}
 100%{transform:rotate(-3deg) scale(.98);border-radius:52% 48% 62% 38%/45% 55% 49% 51%}
}
.ame-floating-compose:not(.reference-restored).ame-mercury-webgl .ame-floating-compose__label,
.ame-floating-compose:not(.reference-restored).ame-mercury-webgl .ame-floating-compose__arrow{
 color:#1c1b19!important;text-shadow:0 1px 0 #ffffff88!important
}
/* Native page dynamics — reveal the CSS variables already being written in app.js.
   The legacy layout/placement is preserved; only movement amplitude is restored. */
html body:not(.case-open) .cinema-stage{
 --image-scale:1;--title-scale:1;--image-y:56;
}
html body:not(.case-open) .cinema-photo{
 transform:translate(-50%,-50%) scale(var(--image-scale,1))!important;
 opacity:var(--image-opacity,1)!important;
 will-change:transform,opacity!important
}
html body:not(.case-open) .cinema-heading{
 transform:translateY(-50%) scale(var(--title-scale,1))!important;
 opacity:var(--title-opacity,1)!important;
 will-change:transform,opacity!important
}
html body:not(.case-open) .cinema-stage{opacity:var(--stage-opacity,1)!important}
/* Do not force project tiles back into a static transform. */
html body:not(.case-open) .allwork-stage .allwork-tile{
 will-change:transform!important;transform-style:preserve-3d
}
/* Restore original AME SVG cursor on fine/any-mouse devices, including hybrid devices. */
html body.custom-cursor #brandCursor{
 display:block!important;z-index:2000!important;visibility:visible!important;
 pointer-events:none!important;position:fixed!important;
 opacity:0;transition:opacity .14s ease!important
}
html body.custom-cursor #brandCursor.visible{opacity:.98!important}
html body.custom-cursor,html body.custom-cursor a,html body.custom-cursor button,
html body.custom-cursor .ame-side-menu,html body.custom-cursor .ame-side-menu *{
 cursor:none!important
}
/* Numbered index: readable separate superscripts. */
html body #mobileMenu.ame-side-menu nav a{
 gap:clamp(12px,1.15vw,22px)!important
}
html body #mobileMenu.ame-side-menu nav a sup{
 min-width:21px!important;display:inline-block!important;
 text-align:right!important;letter-spacing:.05em!important;
 top:clamp(8px,1.1vw,15px)!important;flex:0 0 21px!important
}
@media(max-width:760px){
 html body #mobileMenu.ame-side-menu nav a{gap:14px!important}
 html body #mobileMenu.ame-side-menu nav a sup{flex-basis:19px!important;min-width:19px!important;top:10px!important}
}
@media(prefers-reduced-motion:reduce){
 .ame-floating-compose:not(.reference-restored).ame-mercury-webgl .ame-floating-compose__icon{animation:none!important}
 html body:not(.case-open) .cinema-photo,html body:not(.case-open) .cinema-heading{will-change:auto!important}
}