/* Myway Catering — home "Made your way": the amended docket (index.html only). A kitchen ticket beside the photo,
   corrected in the chef's red pen: the set options are struck out and "your way" is written in. Namespaced .yw / .yw__*.
   The pen marks draw themselves when the section scrolls into view (class .in, set by js/your-way.js); each mark
   waits its turn through --d. Without JS, or with reduced motion, everything is simply shown. */
.yw{--ink:#26252b;--cream:#f6f1ea;--pen:#b3261e;--mono:"IBM Plex Mono",ui-monospace,monospace;--sans:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;--hand:"Caveat","Segoe Script","Bradley Hand",cursive;--ease:cubic-bezier(.2,.7,.2,1);--cr:clamp(20px,2.2vw,32px);
  position:relative;z-index:1;overflow:hidden;background:var(--paperw,#f6f1ea);color:var(--ink);font-family:var(--sans);padding:clamp(48px,8vh,96px) 0 clamp(56px,9vh,104px)}
.yw *{box-sizing:border-box}
.yw__grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);align-items:center;max-width:1500px;margin:0 auto;padding:0 3.2%}

/* ---- photo ---- */
.yw__ph{position:relative;margin:0;aspect-ratio:1488/1000;max-height:78vh;border-radius:var(--cr) var(--cr) var(--cr) 6px;overflow:hidden;background:#1c1b1f;-webkit-mask-image:-webkit-radial-gradient(white,black)}
.yw__ph img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:35% 55%;transform:scale(1.04);transition:transform 1.8s var(--ease)}
.js .yw:not(.in) .yw__ph img{transform:scale(1.14)}
.yw__cap{position:absolute;left:0;bottom:0;padding:10px 18px 9px 16px;background:var(--paperw,#f6f1ea);border-radius:0 14px 0 0;font:600 11.5px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase}

/* ---- docket ---- */
.yw__dk{position:relative;z-index:2;width:min(100%,500px);margin:0 auto 0 -7%;rotate:1.4deg;filter:drop-shadow(0 1px 1px rgba(60,40,25,.22)) drop-shadow(0 3px 3px rgba(30,22,16,.2)) drop-shadow(10px 24px 26px rgba(30,22,16,.26));transition:opacity .7s,transform 1.1s var(--ease)}
.js .yw:not(.in) .yw__dk{opacity:0;transform:translateY(46px) rotate(-2deg)}
.yw__paper{position:absolute;inset:0;background:linear-gradient(90deg,rgba(40,34,30,.15),rgba(40,34,30,0) 9%,rgba(255,255,255,.08) 46%,rgba(40,34,30,0) 88%,rgba(40,34,30,.17)),#ececea url("../assets/img/receipt-paper-hero.webp") 70% 40%/190% auto;clip-path:polygon(0 6px,1.136% 0,2.273% 6px,3.409% 0,4.545% 6px,5.682% 0,6.818% 6px,7.955% 0,9.091% 6px,10.227% 0,11.364% 6px,12.500% 0,13.636% 6px,14.773% 0,15.909% 6px,17.045% 0,18.182% 6px,19.318% 0,20.455% 6px,21.591% 0,22.727% 6px,23.864% 0,25.000% 6px,26.136% 0,27.273% 6px,28.409% 0,29.545% 6px,30.682% 0,31.818% 6px,32.955% 0,34.091% 6px,35.227% 0,36.364% 6px,37.500% 0,38.636% 6px,39.773% 0,40.909% 6px,42.045% 0,43.182% 6px,44.318% 0,45.455% 6px,46.591% 0,47.727% 6px,48.864% 0,50.000% 6px,51.136% 0,52.273% 6px,53.409% 0,54.545% 6px,55.682% 0,56.818% 6px,57.955% 0,59.091% 6px,60.227% 0,61.364% 6px,62.500% 0,63.636% 6px,64.773% 0,65.909% 6px,67.045% 0,68.182% 6px,69.318% 0,70.455% 6px,71.591% 0,72.727% 6px,73.864% 0,75.000% 6px,76.136% 0,77.273% 6px,78.409% 0,79.545% 6px,80.682% 0,81.818% 6px,82.955% 0,84.091% 6px,85.227% 0,86.364% 6px,87.500% 0,88.636% 6px,89.773% 0,90.909% 6px,92.045% 0,93.182% 6px,94.318% 0,95.455% 6px,96.591% 0,97.727% 6px,98.864% 0,100.000% 6px,100% calc(100% - 6px),98.864% 100%,97.727% calc(100% - 6px),96.591% 100%,95.455% calc(100% - 6px),94.318% 100%,93.182% calc(100% - 6px),92.045% 100%,90.909% calc(100% - 6px),89.773% 100%,88.636% calc(100% - 6px),87.500% 100%,86.364% calc(100% - 6px),85.227% 100%,84.091% calc(100% - 6px),82.955% 100%,81.818% calc(100% - 6px),80.682% 100%,79.545% calc(100% - 6px),78.409% 100%,77.273% calc(100% - 6px),76.136% 100%,75.000% calc(100% - 6px),73.864% 100%,72.727% calc(100% - 6px),71.591% 100%,70.455% calc(100% - 6px),69.318% 100%,68.182% calc(100% - 6px),67.045% 100%,65.909% calc(100% - 6px),64.773% 100%,63.636% calc(100% - 6px),62.500% 100%,61.364% calc(100% - 6px),60.227% 100%,59.091% calc(100% - 6px),57.955% 100%,56.818% calc(100% - 6px),55.682% 100%,54.545% calc(100% - 6px),53.409% 100%,52.273% calc(100% - 6px),51.136% 100%,50.000% calc(100% - 6px),48.864% 100%,47.727% calc(100% - 6px),46.591% 100%,45.455% calc(100% - 6px),44.318% 100%,43.182% calc(100% - 6px),42.045% 100%,40.909% calc(100% - 6px),39.773% 100%,38.636% calc(100% - 6px),37.500% 100%,36.364% calc(100% - 6px),35.227% 100%,34.091% calc(100% - 6px),32.955% 100%,31.818% calc(100% - 6px),30.682% 100%,29.545% calc(100% - 6px),28.409% 100%,27.273% calc(100% - 6px),26.136% 100%,25.000% calc(100% - 6px),23.864% 100%,22.727% calc(100% - 6px),21.591% 100%,20.455% calc(100% - 6px),19.318% 100%,18.182% calc(100% - 6px),17.045% 100%,15.909% calc(100% - 6px),14.773% 100%,13.636% calc(100% - 6px),12.500% 100%,11.364% calc(100% - 6px),10.227% 100%,9.091% calc(100% - 6px),7.955% 100%,6.818% calc(100% - 6px),5.682% 100%,4.545% calc(100% - 6px),3.409% 100%,2.273% calc(100% - 6px),1.136% 100%,0.000% calc(100% - 6px))}
.yw__paper::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,0) 57.4%,rgba(255,255,255,.34) 58%,rgba(40,34,30,.12) 58.5%,rgba(40,34,30,0) 60.5%),linear-gradient(180deg,rgba(0,0,0,0) 60%,rgba(70,64,66,.14) 100%)}
.yw__body{position:relative;padding:clamp(30px,3vw,44px) clamp(26px,2.7vw,40px) clamp(38px,3.6vw,54px)}
.yw__print{mix-blend-mode:multiply;-webkit-mask:url("../assets/img/receipt-print-mask.webp") 0 0/420px auto repeat;mask:url("../assets/img/receipt-print-mask.webp") 0 0/420px auto repeat}
.yw__top{display:flex;justify-content:space-between;gap:12px;margin:0;font:600 12px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase}
.yw__dots{display:block;height:2px;margin:16px 0;background:radial-gradient(circle closest-side,rgba(38,37,43,.8) 80%,rgba(38,37,43,0)) 0 0/7px 2px repeat-x}
.yw__items{margin:0;padding:0;list-style:none}
.yw__it{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.5em;font:600 clamp(16px,1.35vw,20px)/2.15 var(--mono);letter-spacing:.02em;text-transform:uppercase}
.yw__h{margin:6px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.28em;font:700 clamp(36px,3.5vw,54px)/1.05 var(--sans);letter-spacing:-.02em;text-transform:none}

/* struck-out print + the red pen */
.yw__x{position:relative;white-space:nowrap;opacity:.5}
.yw__x::after{content:"";position:absolute;left:-.18em;right:-.18em;top:52%;height:max(1.5px,.045em);border-radius:2px;background:var(--pen);rotate:-2.2deg;transform-origin:0 50%;transition:transform .32s cubic-bezier(.5,0,.3,1) var(--d,0s)}
.yw__it:nth-child(2) .yw__x::after{rotate:1.6deg}
.yw__pen{position:relative;display:inline-block;font:500 1.62em/1 var(--hand);letter-spacing:0;text-transform:none;color:var(--pen);rotate:-3.5deg;white-space:nowrap;clip-path:inset(-30% -8% -30% -4%);transition:clip-path .55s cubic-bezier(.4,0,.3,1) calc(var(--d,0s) + .3s)}
.yw__it:nth-child(2) .yw__pen{rotate:-1.5deg}
.yw__h .yw__pen{font-size:1.5em;rotate:-5deg;margin:.04em 0 .1em .18em;padding:0 .2em}
.yw__ring{position:absolute;left:-6%;top:-12%;width:112%;height:128%;overflow:visible;pointer-events:none}
.yw__ring path{fill:none;stroke:var(--pen);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset .75s cubic-bezier(.5,0,.3,1) calc(var(--d,0s) + .95s)}
.js .yw:not(.in) .yw__x::after{transform:scaleX(0)}
.js .yw:not(.in) .yw__pen{clip-path:inset(-30% 104% -30% -4%)}
.js .yw:not(.in) .yw__ring path{stroke-dashoffset:1}

.yw__p{margin:0 0 12px;font:400 clamp(13.5px,1.02vw,15.5px)/1.65 var(--mono)}
.yw__sig{display:block;margin:2px 0 18px;font:500 clamp(22px,1.9vw,28px)/1 var(--hand);color:var(--pen);rotate:-2deg;transform-origin:0 50%;transition:opacity .5s calc(var(--d,0s) + .2s)}
.js .yw:not(.in) .yw__sig{opacity:0}
.yw__btn{display:flex;align-items:center;justify-content:center;gap:.7em;height:54px;border-radius:6px;background:#28272b;color:var(--cream);font:600 16px/1 var(--sans);text-decoration:none;transition:gap .35s var(--ease),background .25s}
.yw__btn:hover{gap:1.2em;background:#000}

/* ---- phones: photo on top, the docket overlapping its bottom edge ---- */
@media (max-width:820px){
  .yw{padding:40px 0 60px}
  .yw__grid{display:block;padding:0 16px}
  .yw__ph{aspect-ratio:4/3;max-height:none}
  .yw__cap{font-size:10.5px;padding:9px 14px 8px 12px}
  .yw__dk{width:auto;margin:-46px 10px 0;rotate:.8deg}
  .yw__body{padding:28px 22px 38px}
  .yw__top{font-size:11px}
  .yw__dots{margin:13px 0}
  .yw__it{font-size:13.5px;line-height:1.5;padding:7px 0;column-gap:.35em}
  .yw__it .yw__pen{font-size:1.7em}
  .yw__h{font-size:38px;margin-top:8px}
  .yw__p{font-size:13.5px;line-height:1.6}
  .yw__btn{height:50px}
}
@media (prefers-reduced-motion:reduce){.yw__dk,.yw__ph img,.yw__x::after,.yw__pen,.yw__ring path,.yw__sig{transition:none!important}}

/* new photo (garden reception): keep the skewers and the reaching hand in frame */
.yw__ph img{object-position:50% 50%}
/* the "Tailored to you" tab was removed: the photo gets a full rounded bottom-left corner */
.yw__ph{border-radius:var(--cr)}
