/* Motion: a few quiet moves on one easing curve. Off entirely under prefers-reduced-motion (.mo is never set).
   First-paint hiding lives inline in each page head so nothing flashes before this file loads. */
:root{--ease:cubic-bezier(.625,.05,0,1)}

/* Photos: .cl carries the unveil clip, .pi carries the scroll drift, the img carries the settle */
.photo .cl{position:absolute;inset:0;overflow:hidden}
.photo .pi{position:absolute;inset:0;display:block}
.photo.px .pi{inset:-6% 0}
/* above the fold: rises from the bottom with the headline; on scroll: opens downward as it enters */
.mo .photo.rv .cl{clip-path:inset(0 0 100% 0);opacity:0;transition:clip-path 1.1s var(--ease),opacity .45s var(--ease)}
.mo .screen>.photo.rv .cl{clip-path:inset(100% 0 0 0);transition-duration:1s}
.mo .photo.rv img{transform:scale(1.05);transition:transform 1.1s var(--ease)}
.mo .photo.rv.in .cl{clip-path:inset(0 0 0 0);opacity:1}
.mo .photo.rv.in img{transform:scale(1)}
.mo .photo.rv.px img,.mo .photo.rv.px.in img{transform:none;transition:none} /* drift photos: wipe + drift only, no zoom */
.mo .photo.rv.above .cl,.mo .photo.rv.above img{transition-delay:.2s} /* type leads, photo follows */
@media (max-width:820px){.mo .photo.rv .cl{transition-duration:.8s}.mo .photo.rv.above .cl,.mo .photo.rv.above img{transition-delay:.15s}}
.photo.px .pi{will-change:transform}
.mo .photo.now .cl,.mo .photo.now img{transition:none}

/* Landing photo: after the unveil it follows the pointer a few pixels */
.mo .screen>.photo.rv img{transform:scale(1.07)}
.mo .screen>.photo.rv.in img{transform:translate3d(var(--dx,0px),var(--dy,0px),0) scale(1.03)}
.mo .screen>.photo.live img{transition:none}

/* Headlines: each line rises out of its own mask, once */
.ln{display:block;overflow:hidden;padding:0 .04em .12em;margin:0 -.04em -.12em}
.ln>span{display:inline-block}
.mo .ln>span{transform:translateY(110%);animation:mo-rise 1s var(--ease) forwards;animation-delay:calc(var(--i,0) * .08s)}
.mo h1.ptitle .ln>span{animation-duration:.8s}
.settled .ln>span{animation:none;transform:none}
@keyframes mo-rise{to{transform:none}}

/* Landing: Arabic line and links fade in behind the headline (opacity only); the logo does not move */
.mo .hero .ar,.mo .hero .mlinks{opacity:0;animation:mo-in .6s var(--ease) forwards}
.mo .hero .ar,.mo .hero .mlinks{animation-delay:.45s}
@keyframes mo-in{to{opacity:1}}

/* Underlines: draw in from the left (.7s), leave to the right (.5s); text colour moves with them */
.top nav a,.links a,.mlinks a{transition:color .5s var(--ease)}
@media (hover:hover){.top nav a:hover,.links a:hover,.mlinks a:hover{color:inherit}}
.top nav a::after,.links a::after,.mlinks a::after{transform-origin:right center!important;transition:transform .5s var(--ease)!important}
@media (hover:hover){.top nav a:hover::after,.links a:hover::after,.mlinks a:hover::after{transform-origin:left center!important;transition-duration:.7s!important}}
.top nav a:focus-visible::after,.links a:focus-visible::after,.mlinks a:focus-visible::after{transform-origin:left center!important;transition-duration:.7s!important}
.mlinks a:active::after{transform:scaleX(1);transform-origin:left center!important;transition-duration:.35s!important}
.top nav a[aria-current]::after{transform-origin:left center!important}

/* Send buttons: the ivory fill blooms from where the pointer enters, sized to reach the far corner */
.bill .send,.mbar .send2{position:relative;isolation:isolate;overflow:hidden;transition:none}
.bill .send::before,.mbar .send2::before{content:"";position:absolute;left:var(--x,50%);top:var(--y,50%);width:var(--r,240%);aspect-ratio:1;border-radius:50%;background:#e9dfc8;transform:translate(-50%,-50%) scale(0);transition:transform .7s var(--ease);z-index:-1}
@media (hover:hover){.bill .send:hover::before,.mbar .send2:hover::before{transform:translate(-50%,-50%) scale(1)}}
.bill .send:focus-visible::before,.mbar .send2:focus-visible::before{transform:translate(-50%,-50%) scale(1)}
.bill .send:active::before,.mbar .send2:active::before{transform:translate(-50%,-50%) scale(1);transition-duration:.25s}

/* Catering total: only the digits that changed roll, each carrying its old digit out of the mask */
.sum .n,#mtotal .n{position:relative;display:inline-block;clip-path:inset(0 -.6em);vertical-align:bottom;padding:.04em 0 .1em;margin:-.04em 0 -.1em;font-variant-numeric:lining-nums tabular-nums}
.n i{display:inline-block;position:relative;font-style:normal}
.n i.c::before{content:attr(data-o);position:absolute;left:0;top:-100%}
.n.dn i.c::before{top:100%}
.mo .n i.c{animation:mo-roll .5s var(--ease) calc(var(--k,0) * .03s) both}
.mo .n.dn i.c{animation-name:mo-roll-dn}
@keyframes mo-roll{from{transform:translateY(100%)}to{transform:none}}
@keyframes mo-roll-dn{from{transform:translateY(-100%)}to{transform:none}}

/* Set menus: a quiet tint behind the row and the choose link turns gold */
.carte{isolation:isolate}
.carte::before{content:"";position:absolute;inset:1px calc(-1 * clamp(12px,1.6vw,24px)) 0;background:rgba(20,18,16,.055);opacity:0;transition:opacity .5s var(--ease);z-index:-1;pointer-events:none}
.carte .pick-btn[aria-pressed=false]{border-bottom:0;padding-bottom:5px;background:linear-gradient(var(--gold),var(--gold)) right bottom/0 1px no-repeat,linear-gradient(rgba(20,18,16,.3),rgba(20,18,16,.3)) left bottom/100% 1px no-repeat;transition:background-size .5s var(--ease),color .5s var(--ease)}
@media (hover:hover){.carte:hover::before{opacity:1;transition-duration:.7s}.carte:hover .pick-btn[aria-pressed=false]{color:var(--gold-d);background-position:left bottom,left bottom;background-size:100% 1px,100% 1px;transition-duration:.7s}}
.tick::before{transition:background .35s var(--ease),border-color .35s var(--ease)}

/* Older page transitions brought onto the one curve */
.catbar a{transition:color .5s var(--ease),border-color .7s var(--ease)!important}
.tl,.cat-line a,.foot nav a,.carte .pp,.count button,.seg button,.fld input,.fld textarea{transition-timing-function:var(--ease)!important;transition-duration:.5s!important}
.mbar{transition:transform .6s var(--ease)!important}
.top nav .lang{transition:color .5s var(--ease)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  .photo .pi{transform:none!important}
}
