/* scope: every selector carries :root (beats the Elementor kit styles that load later). */
/* Maruchi Restaurant – motion layer. Every rule needs html.mx-on, which motion.js only sets when
   motion is welcome (never for prefers-reduced-motion, ?static=1 or inside the Elementor editor). */

/* Headlines: each word flips up like a letter on a menu board */
:root.mx-on .mr-split .w{overflow:visible;perspective:520px;padding-bottom:.06em}
:root.mx-on .mr-split .w>span{opacity:0;transform:translate3d(0,.45em,0) rotateX(-96deg);transform-origin:50% 100%;backface-visibility:hidden;transition:transform 1.05s cubic-bezier(.2,.9,.25,1.18),opacity .45s ease}
:root.mx-on .mr-split.is-in .w>span{opacity:1;transform:none}

/* Photos open to full size on scroll, like lifting a cover off a plate */
:root.mx-on .mx-ph.mx-ph{clip-path:inset(calc((1 - var(--mx-p,0)) * 13%) calc((1 - var(--mx-p,0)) * 17%) round calc(24px + (1 - var(--mx-p,0)) * 44px));transition:none}
:root.mx-on .mx-ph img{scale:calc(1.22 - var(--mx-p,0) * .22)}

/* Cards stand up off the table, then tilt toward the pointer with warm glare */
:root.mx-on .mx-card{transform-origin:50% 100%;transition:opacity .7s ease,transform 1.25s cubic-bezier(.16,1,.3,1),background .4s,box-shadow .5s;transition-delay:var(--mx-d,0s)}
:root.mx-on .mx-card:not(.mx-up){opacity:0;transform:perspective(1000px) translate3d(0,90px,0) rotateX(-58deg) rotateY(0deg)}
:root.mx-on .mx-card.mx-up{opacity:1;transform:perspective(1000px) translate3d(0,0,0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
:root.mx-on .mx-card.mx-live{transform-origin:50% 50%;transition:transform .45s cubic-bezier(.2,.8,.2,1),background .4s,box-shadow .5s;transition-delay:0s}
:root.mx-on .mx-card--tile{transform-style:preserve-3d}
:root.mx-on .mx-card--tile>*{transform:translateZ(0);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
:root.mx-on .mx-card--tile.mx-hot>*{transform:translateZ(34px)}
:root.mx-on .mx-card--tile.mx-hot{background:rgba(246,235,217,.09);box-shadow:0 40px 70px -40px rgba(0,0,0,.8)}
:root.mx-on .mr-card-l.mx-hot{box-shadow:0 1px 0 var(--mr-line),0 44px 80px -50px rgba(30,18,12,.75)}
:root .mx-glare{position:absolute;inset:0;z-index:4;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .4s;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,226,180,.32),rgba(255,226,180,0) 58%)}
:root .mx-hot>.mx-glare{opacity:1}
:root.mx-on .mr-card-l .mx-glare{background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(200,38,30,.07),rgba(200,38,30,0) 60%)}

/* Phones: the breakfast / lunch / dinner cards stack like order tickets */
@media (max-width:767px){
  :root.mx-on .mr-day__grid.mx-deck{display:block}
  :root.mx-on .mr-day__grid.mx-deck>*{position:sticky;top:calc(84px + var(--i,0) * 14px);margin:0 0 20px;background:var(--mr-ink-2);box-shadow:0 -18px 40px -24px rgba(0,0,0,.7);transform-origin:50% 0}
  :root.mx-on .mr-day__grid.mx-deck>*:last-child{margin-bottom:0}
}

/* Hero depth: words, glow and ghost type move at their own speed against the photo */
:root.mx-on .mx-hero .mr-hero__copy{translate:calc(var(--mx-px,0) * 14px) calc(var(--mx-h,0) * -90px + var(--mx-py,0) * 10px);opacity:calc(1 - var(--mx-h,0) * 1.15)}
:root.mx-on .mx-hero .mr-hero__glow{translate:calc(var(--mx-px,0) * 70px) calc(var(--mx-h,0) * 180px + var(--mx-py,0) * 40px)}
:root.mx-on .mx-hero .mr-hero__ghost{translate:calc(var(--mx-h,0) * -16vw + var(--mx-px,0) * -30px) 0}

/* Buttons lean toward the pointer */
:root.mx-on .mx-btn{transition:transform .4s cubic-bezier(.2,.8,.2,1),background .3s,box-shadow .3s;will-change:transform}

/* Warm cursor ring (mouse only; the normal pointer stays) */
:root .mx-cursor{position:fixed;left:0;top:0;z-index:99999;pointer-events:none;opacity:0;transition:opacity .3s}
:root .mx-cursor.is-on{opacity:1}
:root .mx-cursor i{position:absolute;left:-18px;top:-18px;width:36px;height:36px;border-radius:50%;border:1.5px solid rgba(200,38,30,.6);background:rgba(200,38,30,.05);transition:transform .4s cubic-bezier(.2,.8,.2,1),background .3s,border-color .3s,opacity .3s}
:root .mx-cursor i::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;opacity:0;transition:opacity .3s;background:linear-gradient(#fff,#fff) 50% 50%/14px 2px no-repeat,linear-gradient(#fff,#fff) 50% 50%/2px 14px no-repeat}
:root .mx-cursor.is-link i{transform:scale(1.75);background:rgba(200,38,30,.12);border-color:rgba(200,38,30,.3)}
:root .mx-cursor.is-view i{transform:scale(2.3);background:rgba(200,38,30,.85);border-color:transparent}
:root .mx-cursor.is-view i::after{opacity:1;transform:scale(.45)}
:root .mx-cursor.is-text i{opacity:0}
:root .mx-cursor.is-down i{transform:scale(.8)}

/* Gliding wheel scroll drives the page itself; cards mid-animation never widen the page */
html:root.mx-gliding{scroll-behavior:auto!important}
:root.mx-on main{overflow-x:clip}
