/* CAPARI TAVOLA / V4 — additive motion layer; V3 layout stays unchanged. */
@keyframes capari-cloth-unfold {
  0% {opacity:0;clip-path:inset(0 100% 0 0);transform:scale(1.2) rotate(-10deg) translateX(6%);}
  55% {opacity:.12}
  100% {opacity:.19;clip-path:inset(0 0 0 0);transform:scale(1.15) rotate(-7deg) translateX(0);}
}
@keyframes capari-intro-mark {
  0% {opacity:0;transform:translateY(34px) scale(.96)}
  65% {opacity:1}
  100% {opacity:1;transform:translateY(0) scale(1)}
}
@keyframes capari-intro-filigree {
  from {opacity:0;transform:scaleX(0)}
  to {opacity:1;transform:scaleX(1)}
}
.motion-enhanced .tavola-intro-visible .tavola-onboarding-grid{animation:capari-cloth-unfold 1.28s cubic-bezier(.16,1,.3,1) both}
.motion-enhanced .tavola-intro-visible .tavola-onboarding-center{animation:capari-intro-mark .86s .12s cubic-bezier(.16,1,.3,1) both}
.motion-enhanced .tavola-intro-visible .intro-sub::after{content:'';display:block;width:110px;height:1px;background:#f2dbb9;margin:20px auto -8px;opacity:0;transform-origin:center;animation:capari-intro-filigree .75s .45s ease forwards}
@media(min-width:921px) and (pointer:fine){
  .motion-enhanced .tabletop-cloth{transform:translate3d(calc(var(--motion-x,0px)*-.24),calc(var(--motion-y,0px)*-.24),0) scale(1.03);transition:transform .3s cubic-bezier(.2,.8,.3,1)}
  .motion-enhanced .tabletop-pasta-place .tabletop-dish img{transform:translate3d(calc(var(--motion-x,0px)*.72),calc(var(--motion-y,0px)*.72),0);transition:transform .35s ease-out}
  .motion-enhanced .tabletop-pizza-place .tabletop-dish img{transform:translate3d(calc(var(--motion-x,0px)*1.12),calc(var(--motion-y,0px)*1.12),0);transition:transform .34s ease-out}
  .motion-enhanced .tabletop-burger-place .tabletop-dish img{transform:translate3d(calc(var(--motion-x,0px)*.9),calc(var(--motion-y,0px)*.9),0);transition:transform .35s ease-out}
}
@keyframes capari-folio-open{
  0%{transform:scaleX(1);opacity:1}
  72%{opacity:.97}
  100%{transform:scaleX(0);opacity:0}
}
.motion-enhanced .folio-frame.motion-sheet-opening::after{content:'';position:absolute;inset:-1px;z-index:11;background:#e9dfce;border-left:2px solid #c7b29a;box-shadow:-15px 0 30px #4b302121;transform-origin:right center;pointer-events:none;animation:capari-folio-open 1.05s cubic-bezier(.64,.02,.18,1) forwards}
@keyframes capari-photo-window{
  0%{clip-path:inset(0 0 20% 0);opacity:.75}
  100%{clip-path:inset(0 0 0 0);opacity:1}
}
.motion-enhanced .story-station-photo.motion-photo-revealed{animation:capari-photo-window 1s cubic-bezier(.22,.9,.27,1) both}
.motion-enhanced .story-station.motion-photo-depth .story-station-photo img{transform:scale(var(--capari-story-scale,1.018));transition:none}
@keyframes capari-ink-arrival{
  0%{opacity:.28;filter:blur(2px);transform:translateY(6px)}
  100%{opacity:1;filter:blur(0);transform:translateY(0)}
}
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-eyebrow,
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-title,
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-description,
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-price{animation:capari-ink-arrival .33s ease both}
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-title{animation-delay:.05s}
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-description{animation-delay:.09s}
.motion-enhanced .tabletop-receipt.motion-ink-reveal #dish-price{animation-delay:.13s}
@media(hover:hover) and (pointer:fine){
  .motion-enhanced .service-ticket{transition:transform .38s cubic-bezier(.2,.83,.28,1),box-shadow .38s ease}
  .motion-enhanced .service-ticket:focus-visible{outline:3px solid #2a2520;outline-offset:5px}
  .motion-enhanced .service-ticket:hover .ticket-graphic{transition:transform .45s cubic-bezier(.18,.9,.25,1);transform:translateY(-7px) rotate(-5deg)}
  .motion-enhanced .hero-utility-row a:hover .utility-arrow{transition:transform .25s ease;transform:translate(3px,-3px)}
}
@keyframes capari-count-tap{0%,100%{transform:scale(1)}45%{transform:scale(1.3)}}
.motion-enhanced .cart-count.motion-count-bump{animation:capari-count-tap .34s cubic-bezier(.2,.8,.2,1)}
.motion-enhanced .toast.motion-toast-arrive{animation:capari-toast-arrive .35s cubic-bezier(.2,.8,.2,1)}
@keyframes capari-toast-arrive{from{translate:0 12px}to{translate:0 0}}
@media(prefers-reduced-motion:reduce){
  .motion-enhanced .tavola-onboarding-grid,
  .motion-enhanced .tavola-onboarding-center,
  .motion-enhanced .folio-frame.motion-sheet-opening::after,
  .motion-enhanced .story-station-photo.motion-photo-revealed,
  .motion-enhanced .tabletop-receipt.motion-ink-reveal *,
  .motion-enhanced .cart-count.motion-count-bump,
  .motion-enhanced .toast.motion-toast-arrive{animation:none!important}
  .motion-enhanced .folio-frame.motion-sheet-opening::after{display:none!important}
}