/* Saltlane rework 6: speed on the Iris Xe laptop (linked last on every page). Every moving look here runs on transform
   or opacity only, so the compositor draws it and the main thread has nothing to do per frame. Nothing repaints a
   photograph every frame; nothing animates a custom property, object-view-box, object-position or a filter. */

/* the ground: the glow at the foot holds still (it was a 52vh fixed layer rescaled every frame); the heat bands keep
   drifting, on a smaller layer */
.mo body::after { animation: none; opacity: .85; transform: none; }
.heat { inset: -8vh -8vw; }
@keyframes drift { from { transform: translate3d(-5vw, 2vh, 0); } to { transform: translate3d(5vw, -3vh, 0); } }

/* the slow pushes inside picture boxes: a scale from the right edge (compositor) instead of object-view-box driven by
   registered custom properties (main thread, repaint and resample of the photograph on every frame) */
@supports (object-view-box: inset(1%)) {
  .walk .l-front img, .piece .frame img, .route > .frame img, .ph .frame img, .walk .under img { object-view-box: none !important; transform-origin: 100% 50%; }
  .mo .walk .l-front img, .mo .ph.bleed.on .frame img, .mo .page-hero .ph .frame img { animation: r6push 14s cubic-bezier(.22, .61, .36, 1) both; }
  .mo .piece .frame img.kb, .mo .route > .frame img, .mo .walk .under img { animation: r6kb 16s ease-in-out infinite alternate; }
  .mo .piece:nth-child(2n) .frame img.kb { animation-duration: 19s; animation-direction: alternate-reverse; }
}
.piece .frame, .route > .frame, .ph .frame { overflow: hidden; }
@keyframes r6push { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes r6kb { from { transform: scale(1.01); } to { transform: scale(1.08); } }

/* home order ground: the push stays (compositor); the brightness flicker (a filter stepped 9 times every 1.7 s, a
   repaint of a full-width photograph each step) is now an opacity step on a warm light laid over it */
.mo .order-bg .flick img { animation: sl-pushr 9s cubic-bezier(.45, 0, .55, 1) infinite alternate; filter: brightness(1.2) saturate(1.15); }
.mo .order-bg .flick { animation: r6flick 1.7s steps(9, jump-none) infinite; }
@keyframes r6flick { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .2; } 55% { opacity: .8; } 70% { opacity: .1; } 85% { opacity: .6; } 100% { opacity: 0; } }

/* visit first screen: a slow push from the right edge and the lamp breathing, instead of a pan of object-position and
   object-view-box on the full-screen photograph (a main-thread repaint every frame) */
.mo .p5h-visit .p5h-media img { animation: r6visit 22s ease-in-out infinite alternate !important; transform-origin: 100% 40%; object-view-box: none; }
@keyframes r6visit { from { scale: 1; } to { scale: 1.1; } } /* the scale property, which the older "transform: none !important" on this picture does not block */

/* office first screen: the push stays a transform; its old object-view-box keyframes are not used */
.mo .p5-slats { will-change: transform; }

/* an infinite animation whose element is off screen is paused (r6.js sets the class), so nothing ticks unseen */
.r6-off, .r6-off::before, .r6-off::after, .r6-off img { animation-play-state: paused !important; }

/* visit lamp: a plain warm light over the room (normal blending), not a screen blend, which costs a second full-screen
   pass on every frame it breathes */
.p5-lamp { mix-blend-mode: normal; background: radial-gradient(40% 50% at 28% 24%, rgb(255 190 90 / .2), rgb(255 190 90 / 0) 70%); }

/* home order ground: the flickering second copy of the photograph (a full-width masked layer, a second render pass)
   is gone; the photograph keeps its push, and the flame is carried by the film in the order card's ground (r6) */
.order-bg .flick { display: none !important; }

/* review 5 serious 13: the phone menu first screen. The three dish rows stack close under the header (no empty band of
   ground above the words) */
@media (max-width: 700px) {
  .p5h-menu .p5-rows { inset: 70px 0 auto 0; grid-auto-rows: auto; align-content: start; gap: 10px; transform: skewY(-7deg); }
  .p5h-menu .p5-row img { height: 150px; }
}

/* review 5 small 6: the veg / non-veg square and the chillies sit on a cream tag, so they read on the red ground
   (they were brown and red on red). The unlit chillies are faded by opacity only (no grayscale filter per mark). */
.dish .marks .fm, .dish .marks .spice { background: var(--cream); border-radius: 6px; padding: 3px 5px; }
.dish .marks .fm { width: 26px; height: 26px; box-sizing: border-box; padding: 3px; }
.spice svg.off { filter: none; opacity: .28; }
/* review 5 small 13: "Clean, and checked." stands clear of its paragraph */
.hyg h2 { margin-bottom: 18px; line-height: .98; }

/* review 5 small 2: on wide screens (1700 px and up) the first screen's copy grows with the screen */
@media (min-width: 1700px) {
  .slh-h1 { font-size: clamp(44px, 2.6vw, 56px); }
  .slh-h1, .slh-copy .price { max-width: min(27vw, 560px); }
  .slh-copy .price { font-size: 19px; }
  .slh-copy .routes-btns .btn { font-size: 17px; padding: 15px 22px; }
}
/* review 5 small 3: at 360 the two routes keep 16 px clear of the right edge */
@media (max-width: 379px) {
  .slh-copy .routes-btns .btn { font-size: 13px; padding: 9px 8px; }
  .slh-copy { padding-right: 16px; }
}

/* review 5 small 4: on scroll SALT and LANE part only a little and stay whole on the screen (they ran off both edges) */
.slh .slh-name { --part: calc(var(--k, 0) * 3.5vw); }
@media (max-width: 700px) { .slh .slh-name { --part: 0px; } }

/* review 5 small 8: the routes' heading and line fade out as they reach the header, so no cut line peeks under it */
.mo .routes .sec-head.fly-head { opacity: clamp(0, calc((1 - var(--f, 0)) * 5), 1); }

/* review 5 small 9: no band of 120 to 150 px of plain ground between sections (section padding 96 -> 72 px at 1440) */
:root { --sec: clamp(40px, 5vw, 76px); }
.slh-lede { padding: clamp(36px, 4.6vw, 68px) 0; }

/* review 5 small 10: menu first screen at desktop. The words and the button stand on a clean red panel; the dish rows
   show whole to the right of it (no tile under the button, no muddy half-shaded tiles) */
@media (min-width: 701px) {
  .p5h-menu .p5h-shade { background: linear-gradient(90deg, rgb(110 22 12 / .97) 0, rgb(110 22 12 / .95) 42%, rgb(110 22 12 / .35) 56%, rgb(110 22 12 / 0) 70%), linear-gradient(0deg, rgb(31 24 20 / .4), rgb(31 24 20 / 0) 40%); }
}

/* review 5 small 11: a section with an odd number of dishes ends on a full-width row, not a lone dish beside a hole */
@media (min-width: 1101px) { .mlist > .mi:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* review 5 small 12: our kitchen "Off the tawa" tiles. The pushes are the light r6push (not the 20 per cent zoom that
   left tiles soft mid-move); the flame tile is framed on the bread and the flame */
.p5-tawa .ph .frame img { object-fit: cover; width: 100%; height: 100%; object-position: 50% 62%; }

/* review 5 small 16: credits wall. Each photograph is a 4:5 tile again (a general ".p5h-media img { height: 100% }"
   had stretched each one to the full screen height, so every column read as one magnified blur); the shade is lighter
   so the tiles read as pictures round the words */
.p5-wall .p5-col img { height: auto !important; aspect-ratio: 4 / 5; }
.p5h-credits .p5h-shade { background: radial-gradient(48% 58% at 50% 52%, rgb(31 24 20 / .92) 0, rgb(31 24 20 / .8) 55%, rgb(31 24 20 / .3) 100%); }

/* review 5 serious 10 and small 7: the order ground is framed on the bread and the flame (they sat off to the side and
   the blurred bottles behind filled the screen); the push grows from the flame, not from the right edge */
.order-bg img { object-position: 70% 60%; }
.mo .order-bg img { transform-origin: 58% 62%; }
@media (max-width: 700px) { .order-bg img { object-position: 58% 62%; } }
@media (max-width: 700px) {
  .order { padding-top: 44vh; background: var(--char); }
  .order-bg { bottom: auto; height: 58vh; }
  .order-bg img { object-position: 63% 60%; }
  .order-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(31 24 20 / 0) 60%, var(--char) 100%); }
}

/* rework 6b (speed): the catering first screen's three films are ONE pre-rendered film (our own cut of the same three
   clips, each panel playing in turn while the other two hold, exactly as the three players did), laid over the three
   panels once their opening has run. One decoder and one video layer, never started and stopped: switching between
   three players stalled the page for up to 0.58 s each time a film started. */
.p5-tri { position: absolute; }
.p5-tri-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mo .p5-tri-film { animation: p5fade .01s 1.35s both; }
@media (max-width: 700px) { .p5-tri-film { display: none; } }

/* rework 6c (speed): every film is drawn by the compositor with the page, never promoted to its own video overlay. On
   this chip each promotion (when a film starts on scroll) set up a video processor and stalled the frame by 60 to 73 ms
   (trace: DCLayerTree::InitializeVideoProcessor). An opacity a hair under 1 keeps a film off the overlay path; it looks
   the same. */
video { opacity: .995; }
.mo .p5-tri-film { animation-name: r6fadev; } /* the catering film's fade-in ends at the same .995 (an animation's end value would otherwise set 1) */
@keyframes r6fadev { from { opacity: 0; transform: translateY(14px); } to { opacity: .995; transform: none; } }

/* rework 6c, review 5 serious 5: "One kitchen, two jobs" shows both jobs as pictures that move: the buffet for catering
   (left, in place of the drawn box diagram) and the steel lunch box for office lunches (right), each on a slow push
   (transform only; paused off screen by r6.js) */
.proof .r6-job .frame { overflow: hidden; }
.mo .proof .r6-job .frame img { animation: r6kb 15s ease-in-out infinite alternate; transform-origin: 50% 55%; }
.mo .proof .r6-job + div + .r6-job .frame img, .mo .proof .proof-grid > .r6-job:last-child .frame img { animation-duration: 18s; animation-direction: alternate-reverse; }
.proof .r6-job figcaption { margin-top: 10px; }

/* rework 6c, review 5 serious 7: visit at phone width. The waiter and his platter whole across the top of the screen
   (its own crop), the words below on the dark ground; the slow push stays */
@media (max-width: 700px) {
  .p5h-visit .p5h-media picture { position: absolute; inset: 0 0 auto 0; display: block; }
  .p5h-visit .p5h-media img { height: auto; aspect-ratio: 780 / 715; object-fit: cover; object-position: 50% 0; }
  .mo .p5h-visit .p5h-media img { transform-origin: 50% 30%; }
  .p5h-visit .p5h-shade { background: linear-gradient(0deg, rgb(31 24 20 / 1) 0, rgb(31 24 20 / .96) 48%, rgb(31 24 20 / .2) 62%, rgb(31 24 20 / 0) 72%); }
}

/* rework 6c (speed), home dish screen: the frame no longer changes its width on every scroll frame (a layout of the
   frame and a resize of the playing film each frame, the largest cost of the home scroll). It stays full width and is
   shown through a window that widens from 70 to 100 per cent (scaleX on the frame, the inverse on the film, so the film
   is never squeezed); the reveal reads the same. Transform only: the compositor draws it. */
.ds-frame { --s: calc(.7 + var(--p, 0) * .3); width: 100%; transform-origin: 50% 0; transform: translate3d(0, calc((1 - var(--p, 0)) * 4vh), 0) scaleX(var(--s)); }
.ds-frame > .ds-film, .ds-frame > picture { transform: scaleX(calc(1 / var(--s))); transform-origin: 50% 0; }
@media (max-width: 700px) { .ds-frame { --s: calc(.86 + var(--p, 0) * .14); width: 100%; } }
.rm .ds-frame { transform: none; } .rm .ds-frame > .ds-film, .rm .ds-frame > picture { transform: none; }

/* rework 6c (speed): the heat bands' drift has its own compositor layer from the first frame (traces showed it
   restyled on every frame) */
.mo .heat { will-change: transform; }
/* the two pictures stand as tall as the facts beside them (no plain ground under them at 1440) */
@media (min-width: 1101px) { .proof .r6-job .frame { aspect-ratio: 4 / 5 !important; } }
/* visit phone: the photograph's foot fades into the dark ground under the words (no hard edge) */
@media (max-width: 700px) { .p5h-visit .p5h-media picture { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); } }
