/* Myway Catering — home "Events catered across the UK": the lettered plate (index.html only).
   The title lives on the plate image (assets/img/plate-events.webp, built in Affinity); the h2 is kept for screen readers. */
.ep{--pen:#b3261e;--mono:"IBM Plex Mono",ui-monospace,monospace;--sans:"IBM Plex Sans",system-ui,sans-serif;--hand:"Caveat",cursive;position:relative;z-index:1;background:var(--paperw,#f6f1ea);color:var(--ink,#26252b);padding:clamp(40px,6vw,90px) 0 clamp(60px,8vw,120px);overflow:hidden}
.ep__in{width:min(1240px,calc(100% - 68px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(30px,5vw,84px);align-items:center}
.ep__plate{position:relative;margin:0;aspect-ratio:1;transition:opacity .8s,transform 1.4s var(--ease,cubic-bezier(.2,.7,.2,1))}
.ep__plate img{display:block;width:104%;max-width:none;height:auto;margin:-2% 0 0 -2%;filter:drop-shadow(14px 26px 28px rgba(30,22,16,.2))}
.ep__kick{display:flex;align-items:center;gap:14px;margin:0 0 20px;font:600 11.5px/1 var(--mono);letter-spacing:.24em;text-transform:uppercase;opacity:.65}
.ep__kick::after{content:"";flex:1;border-top:2px dotted currentColor;opacity:.6}
.ep__p{margin:0 0 14px;max-width:52ch;font:400 clamp(13.5px,1.05vw,15.5px)/1.7 var(--mono)}
.ep__p strong{font-weight:600}
.ep__q{margin:22px 0 28px;max-width:30ch;font:400 clamp(25px,2.2vw,32px)/1.1 var(--hand);color:var(--pen);rotate:-2deg;transform-origin:0 50%}
.ep__btn{display:inline-flex;align-items:center;justify-content:center;gap:.7em;height:54px;padding:0 30px;border-radius:6px;background:#28272b;color:var(--paperw,#f6f1ea);font:600 16px/1 var(--sans);text-decoration:none;transition:gap .35s var(--ease,ease),background .25s}
.ep__btn:hover{gap:1.1em;background:#000}
.ep__txt>*{transition:opacity .7s,transform .9s var(--ease,cubic-bezier(.2,.7,.2,1))}
.js .ep:not(.in) .ep__plate{opacity:0;transform:translateX(-40px) rotate(-26deg)}
.js .ep:not(.in) .ep__txt>*{opacity:0;transform:translateY(22px)}
.ep.in .ep__txt>:nth-child(2){transition-delay:.12s}.ep.in .ep__txt>:nth-child(3){transition-delay:.22s}.ep.in .ep__txt>:nth-child(4){transition-delay:.34s}.ep.in .ep__txt>:nth-child(5){transition-delay:.46s}
@media (max-width:820px){
  .ep{padding:30px 0 56px}
  .ep__in{grid-template-columns:1fr;width:calc(100% - 36px);gap:22px}
  .ep__plate{width:min(100%,440px);margin:0 auto}
  .ep__p{font-size:13.5px;line-height:1.6}
  .ep__q{font-size:28px;margin:16px 0 22px}
  .ep__btn{width:100%;height:50px}
}
@media (prefers-reduced-motion:reduce){.ep__plate,.ep__txt>*{transition:none!important}}
/* ===== the plate was swapped for a silver cloche: the tray sits still, the dome lid lifts off it as the section arrives ===== */
.ep__h{margin:0 0 20px;max-width:14ch;font:700 clamp(34px,4.2vw,60px)/1.02 var(--sans);letter-spacing:-.015em}
.ep__cl{position:relative;margin:0;aspect-ratio:1/.98}
.ep__tray{position:absolute;left:0;bottom:2%;width:100%;height:auto;filter:drop-shadow(10px 22px 22px rgba(30,22,16,.22))}
.ep__lid{position:absolute;left:9%;bottom:40%;width:82%;height:auto;transform-origin:85% 100%;transform:translateY(-6%) rotate(-9deg);filter:drop-shadow(8px 30px 26px rgba(30,22,16,.2));transition:transform 1.5s cubic-bezier(.3,.9,.3,1) .25s,filter 1.5s .25s}
.js .ep:not(.in) .ep__lid{transform:translateY(31%) rotate(0deg);filter:drop-shadow(4px 6px 6px rgba(30,22,16,.25))}
.ep.in .ep__txt>:nth-child(6){transition-delay:.58s}
@media (max-width:820px){.ep__cl{width:min(100%,420px);margin:0 auto}.ep__h{font-size:36px;margin-bottom:14px}}
@media (prefers-reduced-motion:reduce){.ep__lid{transition:none!important}}
.ep .ep__h{text-transform:none}
.ep__cl{aspect-ratio:1/1.15}
.ep__tray{mix-blend-mode:multiply;filter:none}
.ep__lid{bottom:44%}
.js .ep:not(.in) .ep__lid{transform:translateY(49%) rotate(0deg)}
/* the lid follows .open (toggled as the cloche enters and leaves the middle of the screen), not the one-off .in */
.js .ep:not(.open) .ep__lid{transform:translateY(49%) rotate(0deg);filter:drop-shadow(4px 6px 6px rgba(30,22,16,.25));transition-delay:0s;transition-duration:1.1s}
/* the "Reserved" tent card standing on the tray, uncovered when the lid lifts */
.ep__card{position:absolute;left:29%;bottom:23%;width:42%;height:auto;rotate:-3deg;filter:drop-shadow(5px 9px 7px rgba(20,16,12,.35));transition:transform .9s cubic-bezier(.3,.9,.3,1) .5s}
.js .ep:not(.open) .ep__card{transform:translateY(6%) scale(.96);transition-delay:0s}
@media (prefers-reduced-motion:reduce){.ep__card{transition:none!important}}
/* phones: less empty space between the docket above and the cloche */
@media (max-width:820px){.ep{padding-top:0}.ep__cl{margin-top:-24px}}
@media (max-width:820px){.ep{overflow:visible;overflow-x:clip}}
