/* Myway Catering — home hero "daylight pass" (index.html only; loads after site.css).
   A thermal receipt clipped to a steel ticket rail over a bright buffet photo, then three occasion cards, on warm off-white.
   Namespaced: .phdr (home header) · .pass / .pass__* (hero block) · .pbtn (receipt buttons) · .pcard (occasion cards).

   Units (every size is "one mockup pixel" scaled to the viewport):
     desktop  --u = min(width/1748, block height/900)          the 1748x900 desktop mockup
              --r = receipt scale, also limited by the room between the rail and 66% of the block (short laptops)
     phones   --m = min(width/390, first-screen height/844)    designed at 390x844; the first screen is exactly 100svh
   Vertical positions are fractions of the block, as in the mockup.
   The photo band is a size container: the photo (hero-dinner.webp, 1942x809) is placed with explicit cover maths
   (--s scale, --ox/--oy offsets), so the steam sits on the food in IMAGE pixels at any ratio. */

.home{--cream:#f6efe6;--paperw:#f6f1ea;--thermal:#161514;--pmono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;--psans:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;
  --pH:clamp(640px,100vh,1600px)}
@supports (height:100svh){.home{--pH:clamp(640px,100svh,1600px)}}

/* ---------- header: on the off-white, near-black; scrolls away (the site's menu button takes over) ---------- */
.phdr{--hu:min(100vw / 1748,var(--pH) / 900);position:absolute;z-index:30;top:0;left:0;right:0;height:max(52px,calc(var(--pH) * .07));display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 1.3vw 0 3.1vw;color:var(--thermal);font-family:var(--psans)}
.phdr a{text-decoration:none;color:inherit}
.phdr__brand{font:700 max(13px,calc(28 * var(--hu)))/1 var(--psans);letter-spacing:.16em;white-space:nowrap}
.phdr__nav{display:flex;align-items:center;gap:calc(52 * var(--hu))}
.phdr__link{position:relative;font:600 max(12.5px,calc(18 * var(--hu)))/1 var(--psans);padding:8px 0}
.phdr__link::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.phdr__link:hover::after,.phdr__link:focus-visible::after{transform:scaleX(1);transform-origin:left}
.phdr__cta{display:inline-flex;align-items:center;height:max(30px,calc(38 * var(--hu)));padding:0 calc(24 * var(--hu));margin-left:calc(-15 * var(--hu));border:2px solid var(--thermal);border-radius:calc(8 * var(--hu));background:var(--thermal);color:#f6f1ea!important;font:600 max(12.5px,calc(18 * var(--hu)))/1 var(--psans);white-space:nowrap;transition:background .2s,color .2s,transform .15s}
.phdr__cta:hover{background:transparent;color:var(--thermal)!important}
.phdr__cta:active{transform:translateY(1px) scale(.985)}
.phdr :focus-visible{outline:2px solid var(--thermal);outline-offset:4px}
.phdr__burger{display:none;padding:0;border:0;background:none;color:var(--thermal);cursor:pointer}
.phdr__burger .ico{display:block;width:100%;height:100%;overflow:visible}

/* ---------- block ---------- */
.pass{--u:min(100cqw / 1748,var(--pH) / 900);--rt:calc(var(--pH) * .078);--rh:calc(40 * var(--u));--rtop:calc(var(--rt) + var(--rh) / 2);
  --r:min(100cqw * .362 / 633,(var(--pH) * .661 - var(--rtop)) / 505);--rw:calc(633 * var(--r));
  position:relative;z-index:1;height:var(--pH);overflow:hidden;isolation:isolate;container-type:inline-size;background:var(--paperw);color:var(--thermal)}

/* photo band: from under the rail to ~70% of the block. Dish (image x 1343, food y 380) at 71.5% across / 56% down;
   always covers the right edge (+14px for pointer parallax); any gap at the left fades into the band's pale wash */
.pass__photo{position:absolute;z-index:0;left:0;right:0;top:var(--rtop);bottom:30.2%;overflow:hidden;container-type:size;background:#ebe5dc;pointer-events:none}
.pass__par{position:absolute;inset:0}
.pass__scene{position:absolute;inset:0;--s:max(100cqh * 1.12 / 809,100cqw * .93 / 1942);--ox:max(100cqw + 14px - 1942 * var(--s),71.5cqw - 1343 * var(--s));--oy:clamp(100cqh + 10px - 809 * var(--s),56cqh - 380 * var(--s),-7cqh)}
.pass__plate{position:absolute;left:var(--ox);top:var(--oy);width:calc(1942 * var(--s));height:auto;max-width:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 calc(110 * var(--s)));mask-image:linear-gradient(90deg,transparent 0,#000 calc(110 * var(--s)))}
/* faint light wash on the left only, to separate the receipt from the photo */
.pass__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(246,241,234,.42) 0,rgba(246,241,234,.12) 30%,rgba(246,241,234,0) 45%)}
/* steam off the rice and chicken trays (image pixels) — rises into the darker lid interior */
.pass__steam{position:absolute;left:calc(var(--ox) + var(--x) * var(--s));top:calc(var(--oy) + var(--y) * var(--s));width:0;height:0}
.pass__steam i{position:absolute;left:calc(-50 * var(--s));bottom:0;width:calc(100 * var(--s));height:calc(240 * var(--s));border-radius:50%;opacity:0;will-change:transform,opacity;
  background:radial-gradient(48% 42% at 50% 62%,rgba(255,255,255,.62),rgba(255,255,255,.18) 55%,rgba(255,255,255,0) 72%);filter:blur(calc(10 * var(--s)));transform-origin:50% 100%;animation:passSteam 6.6s cubic-bezier(.3,.1,.4,1) infinite}
.pass__steam i:nth-child(2){left:calc(-10 * var(--s));animation-duration:7.8s;animation-delay:-2.4s}
.pass__steam i:nth-child(3){left:calc(-90 * var(--s));width:calc(80 * var(--s));animation-duration:5.9s;animation-delay:-4.1s}
.pass__steam--b i{animation-delay:-1.2s}
.pass__steam--b i:nth-child(2){animation-delay:-3.7s}
.pass__steam--b i:nth-child(3){animation-delay:-5.6s}
@keyframes passSteam{
  0%{opacity:0;transform:translate3d(0,8%,0) scale(.55,.5) rotate(0)}
  20%{opacity:.8}
  55%{opacity:.45;transform:translate3d(-14%,-34%,0) scale(.95,.95) rotate(-6deg)}
  100%{opacity:0;transform:translate3d(-30%,-76%,0) scale(1.3,1.2) rotate(-12deg)}}
.pass.is-off .pass__steam i{animation-play-state:paused}

/* ---------- ticket rail: full width under the header (end caps fixed, brushed middle stretches) ---------- */
.pass__rail{position:absolute;z-index:4;left:.45%;right:.45%;top:var(--rt);height:var(--rh);border-style:solid;border-width:0 calc(var(--rh) * .608);
  border-image:url("../assets/img/ticket-rail.webp") 0 90 fill stretch;filter:saturate(.85) brightness(1.04) drop-shadow(0 2px 2px rgba(40,28,18,.3)) drop-shadow(0 8px 10px rgba(40,28,18,.16))}

/* ---------- receipt ---------- */
.pass__hang{position:absolute;z-index:3;left:2.1%;width:var(--rw);top:var(--rtop);height:calc(479 * var(--r))}
.pass__sway{position:absolute;inset:0;transform-origin:50% 0}
/* the feed clips everything above the rail's slot, so the paper can "print" down out of it */
.pass__feed{position:absolute;inset:0;clip-path:inset(0 -120px -160px -120px)}
.pass__sheet{position:absolute;inset:0;filter:drop-shadow(0 1px 1px rgba(60,40,25,.22)) drop-shadow(0 10px 14px rgba(60,40,25,.2)) drop-shadow(0 30px 34px rgba(60,40,25,.14))}
.pass__paper{--k:var(--r);position:absolute;inset:0;overflow:hidden;
  background:linear-gradient(90deg,rgba(70,45,30,.06),rgba(255,255,255,0) 16%,rgba(255,255,255,0) 84%,rgba(70,45,30,.07)),linear-gradient(rgba(255,251,246,.6),rgba(255,251,246,.6)),#f5eee8 url("../assets/img/receipt-paper.webp") 50% 0/auto 290% no-repeat;
  /* shape: slightly wider toward the bottom (hangs toward you), bottom-right corner curled up */
  clip-path:polygon(calc(27 * var(--k)) 0,calc(100% - 27 * var(--k)) 0,calc(100% - 24 * var(--k)) calc(100% - 400 * var(--k)),calc(100% - 22 * var(--k)) calc(100% - 300 * var(--k)),calc(100% - 18 * var(--k)) calc(100% - 200 * var(--k)),calc(100% - 11 * var(--k)) calc(100% - 120 * var(--k)),calc(100% - 3 * var(--k)) calc(100% - 78 * var(--k)),calc(100% - 0.0 * var(--k)) calc(100% - 60.0 * var(--k)),calc(100% - 4.6 * var(--k)) calc(100% - 58.2 * var(--k)),calc(100% - 4.3 * var(--k)) calc(100% - 51.9 * var(--k)),calc(100% - 10.6 * var(--k)) calc(100% - 51.5 * var(--k)),calc(100% - 11.2 * var(--k)) calc(100% - 45.7 * var(--k)),calc(100% - 17.4 * var(--k)) calc(100% - 46.6 * var(--k)),calc(100% - 18.4 * var(--k)) calc(100% - 40.4 * var(--k)),calc(100% - 24.7 * var(--k)) calc(100% - 42.0 * var(--k)),calc(100% - 26.5 * var(--k)) calc(100% - 36.0 * var(--k)),calc(100% - 32.5 * var(--k)) calc(100% - 37.8 * var(--k)),calc(100% - 34.1 * var(--k)) calc(100% - 31.7 * var(--k)),calc(100% - 40.2 * var(--k)) calc(100% - 33.1 * var(--k)),calc(100% - 41.7 * var(--k)) calc(100% - 27.0 * var(--k)),calc(100% - 47.8 * var(--k)) calc(100% - 28.4 * var(--k)),calc(100% - 49.5 * var(--k)) calc(100% - 22.3 * var(--k)),calc(100% - 55.4 * var(--k)) calc(100% - 24.2 * var(--k)),calc(100% - 57.4 * var(--k)) calc(100% - 18.3 * var(--k)),calc(100% - 63.4 * var(--k)) calc(100% - 20.3 * var(--k)),calc(100% - 65.4 * var(--k)) calc(100% - 14.3 * var(--k)),calc(100% - 71.2 * var(--k)) calc(100% - 16.6 * var(--k)),calc(100% - 74.0 * var(--k)) calc(100% - 11.0 * var(--k)),calc(100% - 79.6 * var(--k)) calc(100% - 13.8 * var(--k)),calc(100% - 82.4 * var(--k)) calc(100% - 8.2 * var(--k)),calc(100% - 88.1 * var(--k)) calc(100% - 11.0 * var(--k)),calc(100% - 91.3 * var(--k)) calc(100% - 5.5 * var(--k)),calc(100% - 96.4 * var(--k)) calc(100% - 9.1 * var(--k)),calc(100% - 100.0 * var(--k)) calc(100% - 4.0 * var(--k)),calc(100% - 105.2 * var(--k)) calc(100% - 7.6 * var(--k)),calc(100% - 108.8 * var(--k)) calc(100% - 2.5 * var(--k)),calc(100% - 114.0 * var(--k)) calc(100% - 6.1 * var(--k)),calc(100% - 117.6 * var(--k)) calc(100% - 1.0 * var(--k)),calc(100% - 122.7 * var(--k)) calc(100% - 4.7 * var(--k)),calc(100% - 126.5 * var(--k)) calc(100% - 0.0 * var(--k)),calc(100% - 131.5 * var(--k)) calc(100% - 3.4 * var(--k)),calc(100% - 135.3 * var(--k)) calc(100% - 0.0 * var(--k)),calc(100% - 140.0 * var(--k)) calc(100% - 0.0 * var(--k)),0 100%,calc(4 * var(--k)) calc(100% - 60 * var(--k)),calc(9 * var(--k)) calc(100% - 120 * var(--k)),calc(15 * var(--k)) calc(100% - 200 * var(--k)),calc(24 * var(--k)) calc(100% - 400 * var(--k)));
  /* pinked (zigzag) tear along the bottom */
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 4 * var(--k) + 1px) no-repeat,conic-gradient(from -45deg at 50% 100%,#000 90deg,#0000 0) 0 100%/calc(9 * var(--k)) calc(4.4 * var(--k)) repeat-x;
          mask:linear-gradient(#000 0 0) top/100% calc(100% - 4 * var(--k) + 1px) no-repeat,conic-gradient(from -45deg at 50% 100%,#000 90deg,#0000 0) 0 100%/calc(9 * var(--k)) calc(4.4 * var(--k)) repeat-x}
/* shading under the rail's slot + the curled corner (lit lip, grey crease) */
.pass__paper::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(44 * var(--k));background:linear-gradient(180deg,rgba(40,30,22,.28),rgba(40,30,22,.06) 50%,rgba(40,30,22,0))}
.pass__curl{position:absolute;right:0;bottom:0;width:calc(300 * var(--k));height:calc(120 * var(--k));pointer-events:none;
  background:linear-gradient(157deg,rgba(80,62,50,0) 59%,rgba(80,62,50,.08) 65%,rgba(80,62,50,.16) 69.5%,rgba(255,255,255,.9) 72%,rgba(246,241,236,.96) 74%,rgba(170,158,148,.65) 76%)}

.pass__body{--k:var(--r);position:absolute;top:0;left:calc(54 * var(--k));width:calc(527 * var(--k));padding-top:calc(76 * var(--k));color:var(--thermal)}
.pass__brand{font:600 calc(22 * var(--k))/1 var(--pmono);letter-spacing:.36em;text-indent:.36em;text-align:center;white-space:nowrap}
.pass__dots{display:block;height:max(2px,calc(3 * var(--k)));margin:calc(20 * var(--k)) calc(12 * var(--k)) 0;background:radial-gradient(circle closest-side,var(--thermal) 80%,rgba(22,21,20,0)) 0 0/calc(11.4 * var(--k)) 100% space no-repeat}
.pass__h1{margin-top:calc(16 * var(--k));font:700 calc(61 * var(--k))/.98 var(--psans);letter-spacing:-.018em;text-transform:none;color:var(--thermal)}
.pass__h1l{display:block;white-space:nowrap}
.pass__lede{margin-top:calc(16 * var(--k));font:400 calc(22 * var(--k))/calc(31 * var(--k)) var(--pmono);letter-spacing:.01em;max-width:none}
.pass__lede+.pass__dots{margin-top:calc(26 * var(--k))}
.pass__br{display:none}
.pass__ctas{display:grid;grid-template-columns:1fr 1fr;gap:calc(27 * var(--k));margin-top:calc(26 * var(--k))}

/* receipt buttons: invert + press (same behaviour as the quote-form ticket button) */
.pbtn{display:inline-flex;align-items:center;justify-content:center;height:calc(56 * var(--k));padding:0 .5em;border:max(1.5px,calc(2.2 * var(--k))) solid var(--thermal);border-radius:calc(7 * var(--k));background:transparent;color:var(--thermal);font:600 calc(23 * var(--k))/1 var(--psans);text-decoration:none;white-space:nowrap;transition:background .2s,color .2s,transform .15s}
.pbtn--solid{background:var(--thermal);color:#f6f1ea}
.pbtn:hover{background:var(--thermal);color:#f6f1ea}
.pbtn--solid:hover{background:transparent;color:var(--thermal)}
.pbtn:active{transform:translateY(1px) scale(.985)}
.pbtn:focus-visible{outline:2px solid var(--thermal);outline-offset:4px}

/* ---------- bulldog clip, centred on the receipt, straddling the rail ---------- */
.pass__clip{position:absolute;z-index:5;display:block;width:calc(96 * var(--u));left:calc(2.1% + var(--rw) / 2 - 48 * var(--u));top:calc(var(--rt) - 12 * var(--u));transform-origin:50% 25%}
.pass__clip img{position:relative;z-index:1;display:block;width:100%;height:auto;filter:drop-shadow(0 2px 2px rgba(40,25,10,.4)) drop-shadow(0 5px 6px rgba(40,25,10,.22))}
.pass__clip::after{content:"";position:absolute;left:4%;right:4%;bottom:-6%;height:16%;border-radius:50%;background:radial-gradient(closest-side,rgba(40,25,12,.4),rgba(40,25,12,0));filter:blur(2px)}

/* ---------- occasion cards ---------- */
.pass__occ{position:absolute;z-index:3;left:1.4%;right:1.4%;top:72.5%;bottom:1.5%}
.pass__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3cqw;height:100%;margin:0;padding:0;list-style:none}
.pass__cards li{min-width:0;height:100%}
/* occasion cards: the title is printed on the photo and an "Explore" button is carved out of the bottom-right corner
   (.pcard__cut is page-coloured, with concave corners where it meets the photo) */
.pcard{--cr:max(16px,calc(28 * var(--u)));position:relative;display:block;height:100%;isolation:isolate;--br:max(4px,calc(7 * var(--u)));border-radius:var(--cr) var(--cr) var(--br) var(--cr);color:var(--thermal);text-decoration:none}
/* the photo is clipped in its own box, so the carved corner can overhang the card edge by a hair and no sliver of the photo ever shows beside the button */
.pcard__ph{position:absolute;inset:0;overflow:hidden;border-radius:inherit;background:#1c1b1f;-webkit-mask-image:-webkit-radial-gradient(white,black)}
.pcard img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform 1.2s var(--ease)}
.pcard__cut{position:absolute;z-index:2;right:-2px;bottom:-2px;padding:max(8px,calc(13 * var(--u))) 2px 2px max(8px,calc(13 * var(--u)));background:var(--paperw);border-radius:var(--cr) 0 0 0}
.pcard__cut::before,.pcard__cut::after{content:"";position:absolute;width:var(--cr);height:var(--cr);background:radial-gradient(circle at 0 0,rgba(0,0,0,0) calc(var(--cr) - .5px),var(--paperw) var(--cr))}
.pcard__cut::before{left:calc(1px - var(--cr));bottom:0;height:calc(var(--cr) + 2px);background-size:100% var(--cr);background-repeat:no-repeat;border-bottom:2px solid var(--paperw);box-sizing:border-box}
.pcard__cut::after{right:0;top:calc(1px - var(--cr));width:calc(var(--cr) + 2px);background-size:var(--cr) 100%;background-repeat:no-repeat;border-right:2px solid var(--paperw);box-sizing:border-box}
.pcard__btn{display:flex;align-items:center;gap:.65em;height:max(34px,calc(54 * var(--u)));padding:0 max(15px,calc(26 * var(--u)));border:max(1.5px,calc(2.2 * var(--u))) solid #2d2c30;border-radius:var(--br);font:600 max(13px,calc(18 * var(--u)))/1 var(--psans);white-space:nowrap;transition:background .3s,color .3s,gap .4s var(--ease)}
.pcard__btn i{font-style:normal}
.pcard:hover img,.pcard:focus-visible img{transform:scale(1.06)}
.pcard:hover .pcard__btn,.pcard:focus-visible .pcard__btn{background:#28272b;color:#f6f1ea;gap:1.15em}
.pcard:focus-visible{outline:2px solid var(--thermal);outline-offset:3px}

/* the pinned call-now button waits off-canvas while the hero is on screen (JS toggles .is-wait on the home page) */
.home .callnow.is-wait{opacity:0;visibility:hidden;transform:translateX(calc(100% + 40px));transition:opacity .3s var(--ease),transform .5s var(--ease),visibility 0s .5s}
/* the site's floating menu button stays hidden while the receipt is on screen (unless the menu is open) */
html.pass-fab-hold:not(.menu-open) .menu-fab{transform:scale(0);pointer-events:none}

/* small desktops / landscape tablets: keep the nav on one line */
@media (max-width:1180px) and (min-width:768px) and (orientation:landscape){.phdr__nav{gap:calc(36 * var(--hu))}}

/* ---------- phones + portrait tablets: the 887-wide phone mockup (unit --m = width/887), natural height:
   header, rail + clip, receipt over the photo band (blurred venue behind, chafing dish across the lower part),
   then the three cards stacked on the off-white ---------- */
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .phdr{--hm:calc(100vw / 887);height:calc(75 * var(--hm));padding:0 calc(55 * var(--hm)) 0 calc(62 * var(--hm))}
  .phdr__brand{font-size:max(13px,calc(34 * var(--hm)));letter-spacing:.12em}
  .phdr__nav{display:none}
  .phdr__burger{display:block;width:calc(36 * var(--hm));height:calc(26 * var(--hm));min-width:22px;min-height:16px}

  .pass{--m:calc(100cqw / 887);--u:var(--m);--r:var(--m);--rt:calc(85 * var(--m));--rh:calc(40 * var(--m));height:calc(1403 * var(--m))}
  /* photo band 105-1080: the dish lands with its lid top at ~614 and trays at ~800-945 (image scale .72);
     above it (behind the receipt) a blurred, enlarged copy of the same photo stands in for the venue */
  .pass__photo{bottom:auto;height:calc(930 * var(--m));background:#e9e6e0}
  .pass__photo::before{content:"";position:absolute;inset:-24px;background:url("../assets/img/hero-dinner.webp") 0 0/cover no-repeat;filter:blur(14px) saturate(1.05) brightness(1.03)}
  .pass__scene{--s:calc(.72 * var(--m));--ox:calc(-463 * var(--m));--oy:calc(495 * var(--m))}
  .pass__plate{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 calc(120 * var(--s)));mask-image:linear-gradient(180deg,transparent 0,#000 calc(120 * var(--s)))}
  .pass__shade{display:none}

  .pass__rail{left:calc(12 * var(--m));right:calc(14 * var(--m))}
  .pass__hang{left:calc(40 * var(--m));width:calc(818 * var(--m));height:calc(573 * var(--m))}
  .pass__clip{width:calc(95 * var(--m));left:calc(395 * var(--m));top:calc(62 * var(--m))}
  .pass__paper{--k:calc(var(--m) * .8)}
  .pass__body{--k:var(--m);left:calc(68 * var(--k));width:calc(682 * var(--k));padding-top:calc(65 * var(--k))}
  .pass__brand{font-size:max(11px,calc(26 * var(--k)));letter-spacing:.38em}
  .pass__dots{height:max(1.5px,calc(4 * var(--k)));margin:calc(25 * var(--k)) calc(25 * var(--k)) 0;background-size:calc(14.2 * var(--k)) 100%}
  .pass__h1{margin:calc(18 * var(--k)) 0 0 calc(20 * var(--k));font-size:calc(74 * var(--k));line-height:.88}
  .pass__lede{margin:calc(26 * var(--k)) calc(-10 * var(--k)) 0 calc(24 * var(--k));font-size:max(12px,calc(27 * var(--k)));line-height:calc(38 * var(--k));letter-spacing:-.012em}
  .pass__lede+.pass__dots{margin-top:calc(28 * var(--k))}
  .pass__br{display:inline}
  .pass__ctas{gap:calc(36 * var(--k));margin-top:calc(29 * var(--k))}
  .pbtn{height:calc(75 * var(--k));font-size:max(13px,calc(32 * var(--k)));border-radius:calc(10 * var(--k));border-width:max(1.5px,calc(3 * var(--k)))}

  .pass__occ{top:calc(1060 * var(--m));bottom:auto;left:0;right:0}
  /* one row that swipes sideways, each card snapping into place; the next card peeks in at the right */
  .pass__cards{display:flex;gap:calc(20 * var(--m));height:auto;padding:0 calc(42 * var(--m)) calc(34 * var(--m));overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:calc(42 * var(--m));overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .pass__cards::-webkit-scrollbar{display:none}
  .pass__cards li{flex:0 0 calc(640 * var(--m));height:calc(300 * var(--m));scroll-snap-align:start}
  .pass__cards::after{content:"";flex:0 0 calc(22 * var(--m))}
  .pcard{--cr:calc(44 * var(--m));--br:calc(9 * var(--m))}
    .pcard__cut{padding:calc(18 * var(--m)) 2px 2px calc(18 * var(--m))}
  .pcard__btn{height:max(34px,calc(78 * var(--m)));padding:0 calc(36 * var(--m));font-size:max(13px,calc(29 * var(--m)))}
}

/* load-in guard: hidden only with JS + motion allowed until js/hero-pass.js has set the start state (failsafe 4s) */
@media (prefers-reduced-motion:no-preference){
  .js .pass:not(.is-live) .pass__hang,.js .pass:not(.is-live) .pass__clip,.js .pass:not(.is-live) .pass__occ{visibility:hidden;animation:passFail 0s 4s forwards}
}
@keyframes passFail{to{visibility:visible}}
@media (prefers-reduced-motion:reduce){.pass__steam{display:none}}
/* ===== realism pass on the hanging receipt (to match the contact-page ticket) ===== */
.pass{--thermal:#232226}
/* real paper: a textured sheet (grain, fibres, mottling, two embossed roll creases are IN the image) */
.pass__paper{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?v=1796358931") 50% 0/cover no-repeat}
/* slot shadow where the sheet leaves the rail */
.pass__paper::before{height:calc(64 * var(--k));background:linear-gradient(180deg,rgba(20,16,14,.5),rgba(20,16,14,.2) 22%,rgba(20,16,14,.07) 55%,rgba(20,16,14,0))}
/* the sheet falls away from the light toward the bottom */
.pass__paper::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:multiply;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(70,64,66,.1) 88%,rgba(70,64,66,.2) 100%)}
.pass__paper .pass__hl{position:absolute;inset:0;pointer-events:none}
/* thermal print: ink sinks into the paper, slightly uneven, never pure black */
.pass__body{mix-blend-mode:multiply;
  /* how the print head laid the ink down: dot rows, grain break-up, pin-holes, paler patches and the thin
     pale streaks of worn elements running down the print */
  -webkit-mask:url("../assets/img/receipt-print-mask.webp?v=1796358931") 0 0/100% 100% no-repeat;mask:url("../assets/img/receipt-print-mask.webp?v=1796358931") 0 0/100% 100% no-repeat}
/* tile + no clip, so glyphs that overhang the text box (the headline's comma) are printed too */
.pass__body{-webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-clip:no-clip;mask-clip:no-clip}
.pass{--thermal:#26252b}
/* (the print mask on .pass__body gives the printed look; no per-element SVG filters, so the DOM receipt and
   the 3D sheet are the same picture at the hand-over) */
.pass__brand,.pass__lede,.pass__dots,.pass__h1{opacity:.96}
.pbtn--solid{background:#28272b;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.pbtn{border-color:#2d2c30}
/* deeper, softer cast shadow under the sheet */
.pass__sheet{filter:drop-shadow(0 1px 1px rgba(60,40,25,.22)) drop-shadow(0 calc(3 * var(--r)) calc(3 * var(--r)) rgba(30,22,16,.22)) drop-shadow(0 10px 14px rgba(60,40,25,.2)) drop-shadow(calc(10 * var(--r)) calc(26 * var(--r)) calc(26 * var(--r)) rgba(30,22,16,.28)) drop-shadow(0 30px 34px rgba(60,40,25,.14))}
/* performance: every shadow/filter lives INSIDE the swaying layer, so the sway is a compositor-only rotation
   of an already-painted layer (a filter on an ancestor of the sway would be re-rendered on every frame) */
.pass__sway{will-change:transform;backface-visibility:hidden}
/* the sheet is its own compositor layer, so showing it at the hand-over is an opacity flip with no repaint */
.pass__sheet{will-change:opacity}
/* ===== smaller print on the receipt (client request): text and buttons down ~18%, spacing opened up to suit ===== */
.pass__body{padding-top:calc(86 * var(--k))}
.pass__brand{font-size:calc(18 * var(--k))}
.pass__dots{margin-top:calc(24 * var(--k))}
.pass__h1{margin-top:calc(22 * var(--k));font-size:calc(50 * var(--k))}
.pass__lede{margin-top:calc(20 * var(--k));font-size:calc(18.5 * var(--k));line-height:calc(27 * var(--k))}
.pass__ctas{width:84%;gap:calc(20 * var(--k));margin-top:calc(30 * var(--k))}
.pbtn{height:calc(46 * var(--k));font-size:calc(19 * var(--k));border-radius:calc(6 * var(--k))}
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .pass__body{padding-top:calc(76 * var(--k))}
  .pass__brand{font-size:max(10px,calc(22 * var(--k)))}
  .pass__dots{margin-top:calc(27 * var(--k))}
  .pass__h1{margin-top:calc(24 * var(--k));font-size:calc(62 * var(--k));line-height:.9}
  .pass__lede{margin-top:calc(28 * var(--k));font-size:max(11px,calc(23 * var(--k)));line-height:calc(33 * var(--k))}
  .pass__ctas{width:86%;gap:calc(26 * var(--k));margin:calc(32 * var(--k)) 0 0 calc(20 * var(--k))}
  .pbtn{height:calc(62 * var(--k));font-size:max(12px,calc(27 * var(--k)));border-radius:calc(8 * var(--k))}
}
/* ===== the receipt can be picked up and dragged about (js/hero-pass.js) ===== */
.pass.is-live .pass__sheet{cursor:grab;touch-action:pan-y}
.pass.is-live .pass__sheet.is-grab{cursor:grabbing}
.pass__body{-webkit-user-select:none;user-select:none}
.pass__sheet a{cursor:pointer}
/* ===== the occasion cards under the hero were removed: the hero now ends at the bottom of the photo ===== */
.pass{height:calc(var(--pH) * .698)}
.pass__photo{bottom:0}
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .pass{height:calc(1035 * var(--m))}
  .pass__photo{bottom:auto}
}
/* ===== home: white page background and browser toolbar (was peach) ===== */
html:has(.home),body.home,.home{background-color:#fff}
/* ===== the hero fills the screen again: under the photo, the top half of a lettered plate rises from the bottom edge
   (assets/img/plate-hero.webp, built in Affinity: cuisines printed round the rim, centre left blank) ===== */
.pass{height:var(--pH)}
.pass__photo{bottom:30.2%}
.pass__dish{--d:calc(var(--pH) * .78);position:absolute;z-index:1;left:50%;bottom:0;width:calc(var(--d) + 160px);height:calc(var(--d) / 2 + 70px);margin-left:calc(var(--d) / -2 - 80px);padding-top:70px;overflow:hidden;display:flex;justify-content:center;align-items:flex-start;pointer-events:none}
.pass__dish img{flex:none;display:block;width:var(--d);height:auto;max-width:none;filter:drop-shadow(0 3px 4px rgba(30,22,16,.25)) drop-shadow(10px 22px 26px rgba(30,22,16,.3))}
.js .pass__dish img{animation:passDish 1.5s cubic-bezier(.2,.7,.2,1) 1.5s both}
@keyframes passDish{from{transform:translateY(52%) rotate(-38deg)}to{transform:none}}
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .pass{height:calc(1385 * var(--m))}
  .pass__photo{bottom:auto}
  .pass__dish{--d:calc(760 * var(--m));width:100%;margin-left:-50%;height:calc(var(--d) / 2 + 40px);padding-top:40px}
}
@media (prefers-reduced-motion:reduce){.js .pass__dish img{animation:none}}
/* the half plate keeps its own layer above the photo (Safari could paint the photo's animated layers over it) */
.pass__dish{z-index:2;transform:translateZ(0);isolation:isolate}
/* phones: the photo slides down from behind the rail together with the receipt (same start, length and easing as the feed) */
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .js .pass__photo::before,.js .pass__scene{animation:passPhotoDown 1.6s cubic-bezier(.45,0,.55,1) .95s both}
}
@keyframes passPhotoDown{from{translate:0 -102%}to{translate:0 0}}
@media (prefers-reduced-motion:reduce){.js .pass__photo::before,.js .pass__scene{animation:none}}
/* desktop too: the photo slides down from behind the rail together with the receipt */
.js .pass__photo::before,.js .pass__scene{animation:passPhotoDown 1.6s cubic-bezier(.45,0,.55,1) .95s both}
@media (prefers-reduced-motion:reduce){.js .pass__photo::before,.js .pass__scene{animation:none}}
/* no grey block while the photo slides in: the photo's frame is see-through until the photo covers it */
.pass .pass__photo{background:none}
/* ===== a place setting either side of the half plate: fork left, knife and spoon right (cut out of a studio shot) ===== */
.pass__cut{position:absolute;z-index:2;width:auto;max-width:none;pointer-events:none;filter:drop-shadow(0 2px 2px rgba(30,22,16,.22)) drop-shadow(8px 16px 14px rgba(30,22,16,.26))}
.pass__cut--fork{height:calc(var(--pH) * .58);top:76.5%;right:calc(50% + var(--pH) * .39 + 64px)}
.pass__cut--knife{height:calc(var(--pH) * .63);top:71.5%;left:calc(50% + var(--pH) * .39 + 64px)}
.pass__cut--spoon{height:calc(var(--pH) * .53);top:81.5%;left:calc(50% + var(--pH) * .4665 + 100px)}
.js .pass__cut{animation:passCut 1.1s cubic-bezier(.2,.7,.2,1) 2.2s both}
.js .pass__cut--knife{animation-delay:2.32s}.js .pass__cut--spoon{animation-delay:2.44s}
@keyframes passCut{from{transform:translateY(60%);opacity:0}to{transform:none;opacity:1}}
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){.pass__cut{display:none}}
@media (prefers-reduced-motion:reduce){.js .pass__cut{animation:none}}
/* multiply: the faint white fringe left from the studio backdrop disappears into the page */
.pass__cut{mix-blend-mode:multiply}
/* the studio shot carries its own soft shadow; a CSS one on top showed a pale edge round it */
.pass__cut{filter:none}
/* Safari: the plate's box clipped its own shadow into a visible rectangle (the hero already clips the bottom),
   and blend modes on the animated cutlery did not apply, so the tint is baked into the images instead */
.pass__dish{overflow:visible}
.pass__cut{mix-blend-mode:normal}
/* the plate and cutlery fade into the page at the bottom of the hero instead of ending in a hard cut */
.pass::after{content:"";position:absolute;z-index:3;left:0;right:0;bottom:0;height:clamp(50px,9vh,90px);background:linear-gradient(rgba(246,241,234,0),rgba(246,241,234,.6) 60%,#f6f1ea);pointer-events:none}
/* phones: the hero always fills the screen, so the next section's heading starts below the fold.
   The photo stretches to take up the extra height; the half plate stays at the bottom edge. */
@media (max-width:767px),(max-width:1023px) and (orientation:portrait){
  .pass{height:max(calc(1385 * var(--m)),100vh);height:max(calc(1385 * var(--m)),100svh)}
  .pass .pass__photo{height:auto;bottom:calc(380 * var(--m) - 13px)}
  .pass .pass__scene{--oy:calc(100cqh - 435 * var(--m))}
}
