/* Motion layer shared by the six menus. Behaviour only: every colour comes
   from the menu's own tokens (--fx-accent, --brand, --shadow), and nothing
   here runs unless fx.js has added .fx (never with reduced motion). */

/* Reading progress: a hairline under the sticky rail, in the menu's accent. */
.fx .menu-tools::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--fx-accent,var(--brand));transform-origin:0 50%;transform:scaleX(var(--fx-p,0));pointer-events:none;transition:background .4s ease}
.fx .menu-tools{transition:box-shadow .35s ease}
.fx .menu-tools.fx-stuck{box-shadow:0 12px 26px -18px var(--shadow,rgba(0,0,0,.3))}

/* Photos arrive softly instead of popping in. */
.fx img.fx-loading{opacity:0;filter:blur(10px)}
.fx img{transition:opacity .7s ease,filter .9s ease}

/* Category titles rise word by word from behind a mask. */
.fx-w{display:inline-block;overflow:hidden;vertical-align:top;padding:.16em .02em .14em;margin:-.16em -.02em -.14em}
.fx-w>span{display:inline-block;transition:transform 1s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0) * 70ms)}
.fx :is(.menu-section,.l-moment):not(.fx-in) .fx-w>span{transform:translateY(110%)}

/* Category pictures unveil from the bottom edge. */
.fx .menu-section .category-photo:not(.p-circles):not(.y-imagePanel):not(.g-imageCol),
.fx .g-imgSegment{transition:clip-path 1.2s cubic-bezier(.16,1,.3,1);clip-path:inset(-14px)}
.fx .menu-section:not(.fx-in) .category-photo:not(.p-circles):not(.y-imagePanel):not(.g-imageCol),
.fx .g-section:not(.fx-in) .g-imgSegment{clip-path:inset(calc(100% + 14px) -14px -14px -14px)}
.fx .g-imgSegment:nth-child(2){transition-delay:.12s}
.fx .g-imgSegment:nth-child(3){transition-delay:.24s}

/* Le Pêcheur: its own entrance, the side circles sliding out from behind the centre one. */
.fx .p-circle{transition:translate .9s cubic-bezier(.16,1,.3,1),scale .9s cubic-bezier(.16,1,.3,1),opacity .9s ease}
.fx .p-c1{transition-delay:.05s}.fx .p-c2{transition-delay:.1s}
.fx .p-section:not(.fx-in) .p-circle{opacity:0;scale:.8}
.fx .p-section:not(.fx-in) .p-c0{translate:45px 0}
.fx .p-section:not(.fx-in) .p-c2{translate:-45px 0}
.fx .p-pill{transition:scale .7s cubic-bezier(.16,1,.3,1) .15s}
.fx .p-section:not(.fx-in) .p-pill{scale:.85}

/* Popeys: its own slide entrance, photos from the left, words from the right. */
.fx .y-imagePanel,.fx .y-header{transition:translate .8s cubic-bezier(.25,1,.5,1),opacity .8s cubic-bezier(.25,1,.5,1)}
.fx .y-section:not(.fx-in) .y-imagePanel{opacity:0;translate:-40px 0}
.fx .y-section:not(.fx-in) .y-header{opacity:0;translate:60px 0}

/* Palm: the ornamental panel opens like a page; photos unveil one by one. */
.fx .l-header{transition:clip-path 1.1s cubic-bezier(.16,1,.3,1);clip-path:inset(0)}
.fx .l-section:not(.fx-in) .l-header{clip-path:inset(0 100% 0 0)}
.fx .menu-items__divider i{transition:rotate 1s cubic-bezier(.16,1,.3,1) .3s,scale 1s cubic-bezier(.16,1,.3,1) .3s}
.fx .l-section:not(.fx-in) .menu-items__divider i{rotate:-180deg;scale:0}
.fx .menu-item__media{transition:clip-path 1.2s cubic-bezier(.16,1,.3,1);clip-path:inset(0 round 3px)}
.fx .menu-item__media:not(.fx-in){clip-path:inset(100% 0 0 0 round 3px)}
.fx .l-moment-number,.fx .l-moment .kicker,.fx .l-moment p{transition:opacity .9s ease .25s,translate .9s cubic-bezier(.16,1,.3,1) .25s}
.fx .l-moment:not(.fx-in) :is(.l-moment-number,.kicker,p){opacity:0;translate:0 14px}

/* Footers settle in. */
.fx footer>*{transition:opacity 1s ease,translate 1s cubic-bezier(.16,1,.3,1)}
.fx footer:not(.fx-in)>*{opacity:0;translate:0 24px}

/* Scroll-linked depth, where the browser can drive it off the main thread. */
@supports (animation-timeline: view()){
  /* Photos drift inside their frames as they cross the screen. */
  .fx :is(.category-photo:not(.y-imagePanel),.g-imgSegment,.p-circle,.menu-item__photo,.dish-photo) img{scale:1.16;animation:fx-drift linear both;animation-timeline:view()}
  @keyframes fx-drift{from{translate:0 -7%}to{translate:0 7%}}

  /* Leaving the cover: each venue's opening picture recedes as the menu comes up. */
  .fx .hero-figure,.fx .l-hero-image,.fx .p-logo,.fx .y-names,.fx .l-hero-content,.fx .g-center{animation-timeline:scroll(root);animation-fill-mode:both;animation-timing-function:linear}
  .fx .hero-figure{animation-name:fx-arch;animation-range:0 420px}
  @keyframes fx-arch{to{translate:0 26px;scale:.9}}
  .fx .l-hero-image{animation-name:fx-sink;animation-range:0 380px}
  @keyframes fx-sink{to{translate:0 22%}}
  .fx .l-hero-content{animation-name:fx-lift;animation-range:0 340px}
  @keyframes fx-lift{to{translate:0 -40px;opacity:.15}}
  .fx .p-logo{animation-name:fx-turn;animation-range:0 420px}
  @keyframes fx-turn{to{rotate:-14deg;scale:.82}}
  .fx .y-names{animation-name:fx-part;animation-range:0 380px}
  @keyframes fx-part{to{scale:.9;translate:0 30px}}
  .fx .g-center{animation-name:fx-lift;animation-range:0 70svh}
  .fx .g-heroPhoto{animation-name:g-fade,fx-grano;animation-duration:1.2s,auto;animation-delay:.5s,0s;animation-timing-function:ease,linear;animation-fill-mode:both,both;animation-timeline:auto,scroll(root);animation-range:normal,0 100svh}
  @keyframes fx-grano{to{scale:1.14;translate:0 -6%}}
  .fx .g-logo{animation-name:g-logo,fx-logo;animation-duration:.5s,auto;animation-delay:.2s,0s;animation-timing-function:ease,linear;animation-fill-mode:both,both;animation-timeline:auto,scroll(root);animation-range:normal,0 70svh}
  @keyframes fx-logo{to{scale:.7;translate:0 -50px}}
}

/* Le Pêcheur's corner brackets draw themselves on arrival. */
.fx .p-hero .p-corner{animation:fx-corner 1s cubic-bezier(.16,1,.3,1) .2s both}
@keyframes fx-corner{from{opacity:0;scale:.3}to{opacity:.7;scale:1}}
.fx .p-tl{transform-origin:0 0}.fx .p-tr{transform-origin:100% 0}.fx .p-bl{transform-origin:0 100%}.fx .p-br{transform-origin:100% 100%}

/* Searching shows results at once: no reveals, no masks. */
.fx .is-searching .fx-w>span,.fx.is-searching .fx-w>span{transform:none;transition:none}
body.is-searching :is(.y-imagePanel,.y-header,.l-header,.category-photo){translate:none!important;opacity:1!important;clip-path:none!important}
body.is-searching .fx-w>span{transform:none!important}
body[data-menu="restaurant"]{--fx-accent:#6c511b}

/* Laptop: Chichkhan's dotted leaders and name width cap are its own look, not these menus'. */
@media (min-width:1024px){
  .legacy .dish-rule{display:none!important}
  .legacy .dish h3{max-width:none}
  .legacy .sidebar-heading{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
  .legacy .sidebar-heading h2,.legacy .sidebar-heading>span{white-space:nowrap}
  .pecheur .section-title>span,.popeys .section-title>span{border:0;padding:0;border-radius:0}
}
