/* Saltlane Kitchen, rework 1 (21 Nov 2026). Loaded after fix.css on every page. Answers S1 to S10 of
   look-again-1/GAPS.md. The colour stays around the food, never on it: no overlay on any food picture. */

/* ================= HERO: SALT / plate / LANE ================= */
.home.r1 .top { position: fixed; left: 0; right: 0; }
.slh { --k: 0; --px: 0; --py: 0; position: relative; height: 200vh; padding: 0; background: var(--field); }
.slh-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--field); }
.slh-c { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.c-back { z-index: 1; } .n-salt { z-index: 2; } .slh-plate { z-index: 3; } .c-mid { z-index: 4; } .n-lane { z-index: 5; } .c-front { z-index: 6; } .slh-stk { z-index: 7; } .slh-copy { z-index: 8; } .slh-pin .marquee { z-index: 9; }
.slh-name { position: absolute; top: 19vh; margin: 0; font: 900 200px/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--cream); white-space: nowrap; pointer-events: none;
  --part: calc(var(--k) * 12vw); }
.slh-name span { display: block; font-size: inherit; }
.n-salt { left: 4vw; transform: translate3d(calc(var(--part) * -1 + var(--px) * -8px), calc(var(--py) * -5px), 0); }
.n-lane { right: 4vw; transform: translate3d(calc(var(--part) + var(--px) * -8px), calc(var(--py) * -5px), 0); }
.n-salt span, .n-lane span { font-size: inherit; }
/* the plate box: where the 3D plate stands (read by hero3d.js) and the flat cut-out when there is no WebGL */
.slh-plate { position: absolute; left: 58.5%; top: calc(19vh + 0.44 * var(--nh, 30vh)); width: min(35vw, 58vh); aspect-ratio: 1; translate: -50% -50%; perspective: 1200px; pointer-events: none; }
.slh-flat { width: 100%; height: 100%; transform: rotateX(42deg) rotateZ(calc(var(--k) * -40deg)); filter: drop-shadow(12px 26px 22px rgb(40 6 2 / .45)); transition: opacity .5s; }
.has3d .slh-flat { opacity: 0; }
.slh-rim { position: absolute; left: 58.5%; top: calc(19vh + 0.44 * var(--nh, 30vh)); width: min(35vw, 58vh); translate: -50% -50%; z-index: 3; overflow: visible; pointer-events: none; transform: scaleY(.53); opacity: 0; }
.slh-rim circle { fill: none; stroke: var(--cream); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* stickers: our facts, set on the type, the nearest layer */
.slh-stk { position: absolute; inset: 0; pointer-events: none; }
.slh-stk .stk { position: absolute; display: grid; place-items: center; text-align: center; font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--char);
  border: 3px solid var(--char); box-shadow: 5px 6px 0 var(--char); transform: translate3d(calc(var(--px) * 14px), calc(var(--k) * -1.3 * 60vh + var(--py) * 10px), 0) rotate(var(--r)); }
.slh-stk .stk b { display: block; font-size: 1.7em; line-height: .9; }
.stk-a { --r: -12deg; left: 21vw; top: calc(19vh + var(--nh, 30vh) * .62); width: 150px; height: 150px; border-radius: 50%; background: var(--turmeric); padding: 18px; }
.stk-b { --r: 8deg; left: 63vw; top: calc(19vh - 26px); padding: 12px 20px 10px; border-radius: 999px; background: var(--cream); color: var(--field-lo); }
.stk-c { --r: -6deg; right: 5vw; top: calc(19vh + var(--nh, 30vh) * .8); padding: 12px 18px 10px; border-radius: 10px; background: var(--turmeric); }
/* the line and the two routes under the name */
.slh-copy { position: absolute; left: 0; right: 0; bottom: calc(64px + 9vh); display: grid; justify-items: center; gap: 14px; padding: 0 var(--pad); text-align: center;
  transform: translate3d(0, calc(var(--k) * -14vh), 0); opacity: calc(1 - var(--k) * 1.4); }
.slh-h1 { font: 900 clamp(28px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--cream); }
.slh-h1 em { font-style: normal; color: var(--turmeric); }
.slh-copy .routes-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.slh-copy .price { margin: 0; font-size: 16px; color: rgb(246 238 221 / .9); }
.slh-pin .marquee { bottom: 0; }
.slh-lede { background: var(--field); padding: clamp(48px, 8vw, 110px) 0; }
.lede-big { margin: 0; max-width: 30ch; font: 700 clamp(26px, 3vw, 44px)/1.18 var(--sans); color: var(--cream); }

/* opening: rim draws, plate fills, the name slams in from the sides, stickers drop (max 1.6 s; any scroll or key ends it) */
.op-run .slh-rim { opacity: 1; }
.op-run .slh-rim circle { animation: rimdraw .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.op-run .slh-plate, .op-run .c-mid { animation: platein .6s cubic-bezier(.22, 1, .36, 1) .35s both; }
.op-run .n-salt span { animation: slamL .5s cubic-bezier(.16, 1, .3, 1) .55s both; }
.op-run .n-lane span { animation: slamR .5s cubic-bezier(.16, 1, .3, 1) .55s both; }
.op-run .slh-stk .stk { animation: drop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.op-run .slh-stk .stk-a { animation-delay: 1s; } .op-run .slh-stk .stk-b { animation-delay: 1.15s; } .op-run .slh-stk .stk-c { animation-delay: 1.3s; }
.op-run .c-back, .op-run .c-front { animation: fadein .5s ease .7s both; }
.op-run .slh-rim { animation: rimout .3s ease 1s forwards; }
@keyframes rimdraw { to { stroke-dashoffset: 0; } }
@keyframes rimout { to { opacity: 0; } }
@keyframes platein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slamL { from { transform: translateX(-60vw); } to { transform: none; } }
@keyframes slamR { from { transform: translateX(60vw); } to { transform: none; } }
@keyframes drop { from { opacity: 0; translate: 0 -80px; scale: 1.3; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .slh-name { top: 76px; left: 5vw; right: auto; font-size: 120px; }
  .n-lane { top: calc(76px + var(--nh, 110px) * 1.72); left: auto; right: 5vw; }
  .n-salt { transform: translate3d(calc(var(--part) * -1), 0, 0); } .n-lane { transform: translate3d(var(--part), 0, 0); }
  .slh-plate, .slh-rim { top: calc(76px + var(--nh, 110px) * 1.36); width: min(66vw, 260px); }
  .slh-plate, .slh-rim { left: 50%; }
  .stk-a b { font-size: 1.15em; }
  .stk-a { left: 2vw; right: auto; top: calc(76px + var(--nh, 110px) * 2.1); width: 118px; height: 118px; font-size: 14px; padding: 14px; }
  .stk-b { right: auto; left: 3vw; top: calc(76px + var(--nh, 110px) * 1.02); font-size: 16px; padding: 9px 14px 8px; }
  .slh-stk .stk-c { display: none; }
  .slh-copy { bottom: calc(56px + 52px + 10px); gap: 10px; }
  .slh-h1 { font-size: 27px; }
  .slh-copy .routes-btns { gap: 8px; flex-wrap: nowrap; }
  .slh-copy .routes-btns .btn { font-size: 14px; min-height: 46px; padding: 10px 12px; gap: 6px; }
  .slh-copy .price { font-size: 14px; line-height: 1.35; }
  .slh-pin .marquee { bottom: 56px; }
  .slh-pin .marquee::before { font-size: 18px; padding: 8px 0; }
}
.rm .slh { height: auto; } .rm .slh-pin { position: relative; }

/* ================= S8 + flying ingredients: "Two ways in" ================= */
.r1-routes { background: var(--char); }
.fly-head { position: relative; --f: .5; }
.fly-head h2 { position: relative; z-index: 2; font-size: clamp(64px, 9vw, 150px); line-height: .86; }
.fly { position: absolute; inset: -60px 0 -60px 0; pointer-events: none; overflow: hidden; }
.fly .fl { position: absolute; width: clamp(90px, 11vw, 170px); height: auto; z-index: 3; filter: drop-shadow(8px 14px 10px rgb(0 0 0 / .35)); }
.fly .fl.behind { z-index: 1; }
.fly .fl-1 { left: 6%; top: 10%; transform: translate3d(calc((var(--f) - .5) * 60vw), calc((var(--f) - .5) * -120px), 0) rotate(calc(var(--f) * 220deg)); }
.fly .fl-2 { left: 30%; top: 30%; transform: translate3d(calc((var(--f) - .5) * 90vw), calc((var(--f) - .5) * 60px), 0) rotate(calc(var(--f) * -320deg)); width: clamp(70px, 8vw, 130px); }
.fly .fl-3 { left: 18%; top: -10%; transform: translate3d(calc((var(--f) - .5) * 38vw), calc((var(--f) - .5) * 160px), 0) rotate(calc(var(--f) * 140deg)); }
.r1-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.r1-card { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--char); background: var(--cream); border-radius: 14px; overflow: hidden; box-shadow: 8px 10px 0 var(--field); }
.r1-card.yel { background: var(--turmeric); }
.r1-card .frame { aspect-ratio: auto !important; width: 100%; height: min(72vh, 680px); overflow: hidden; border-radius: 0; }
.r1-card .frame picture { display: block; width: 100%; height: 100%; }
.r1-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e-out); }
.r1-card:hover .frame img { transform: scale(1.04); }
.r1-card .body { padding: clamp(20px, 2.6vw, 34px); }
.r1-card h2 { font-size: clamp(40px, 4.4vw, 72px); color: var(--field-lo); margin-bottom: 10px; }
.r1-card p { color: var(--char); max-width: 40ch; }
.r1-card .more { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; border-bottom: 3px solid currentColor; padding-bottom: 2px; }
@media (max-width: 900px) { .r1-cards { grid-template-columns: 1fr; } .r1-card .frame { aspect-ratio: 4 / 4; } }

/* catering page: three hands photographs in a row */
.r1-hands { padding-top: 0; }
.r1-hrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.r1-hrow .frame { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; box-shadow: var(--hard); }
.r1-hrow img { width: 100%; height: 100%; object-fit: cover; }
.r1-hrow p { margin: 12px 0 0; font: 900 26px/1 var(--display); text-transform: uppercase; }
@media (max-width: 760px) { .r1-hrow { grid-template-columns: 1fr; } }

/* ================= S6: one dish at full size before the list ================= */
.dscreen { --p: 0; position: relative; height: 220vh; padding: 0; background: var(--paper); color: var(--char); }
.ds-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 96px; }
.ds-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 24ch); align-items: end; column-gap: 40px; }
.ds-head .kicker { grid-column: 1 / -1; color: var(--field); }
.ds-name { font: 900 clamp(56px, 8.4vw, 124px)/.86 var(--display); text-transform: uppercase; color: var(--char); }
.ds-name em { font-style: normal; color: var(--field); }
.ds-line { margin: 0 0 8px; max-width: 26ch; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); }
.ds-fig { margin: 24px 0 0; display: grid; justify-items: center; align-items: start; min-height: 0; }
.ds-frame { position: relative; width: calc(70% + var(--p) * 30%); height: 100%; border-radius: 0 0 calc((1 - var(--p)) * 18px) calc((1 - var(--p)) * 18px); overflow: hidden; transform: translate3d(0, calc((1 - var(--p)) * 4vh), 0); }
.ds-frame picture, .ds-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steam { position: absolute; left: 40%; bottom: 35%; width: 22%; height: 65%; overflow: visible; pointer-events: none; }
.steam .st { fill: none; stroke: rgb(255 255 255 / .8); stroke-width: 30; stroke-linecap: round; filter: url(#stb); stroke-dasharray: .35 1; }
.mo .steam .st { animation: steam 4.2s linear infinite; } .mo .steam .st2 { animation-duration: 5.1s; animation-delay: -1.7s; } .mo .steam .st3 { animation-duration: 4.6s; animation-delay: -3s; }
@keyframes steam { from { stroke-dashoffset: 1.35; opacity: 0; } 15% { opacity: 1; } 80% { opacity: .8; } to { stroke-dashoffset: 0; opacity: 0; } }
.rm .steam .st { stroke-dasharray: .3 .12; }
.rm .dscreen { height: auto; } .rm .ds-pin { position: relative; height: auto; } .rm .ds-frame { height: 70vh; }
@media (max-width: 700px) { .dscreen { height: 180vh; } .ds-pin { padding-top: 84px; } .ds-head { grid-template-columns: 1fr; } .ds-name { font-size: 48px; } .ds-frame { width: calc(86% + var(--p) * 14%); } }

/* the four discs: on hover each turns 8 degrees and its price lifts as a sticker */
.dish .frame { transition: transform .45s var(--e-out); }
.dish:hover .frame { transform: rotate(8deg); }
.dish .pr { display: inline-block; transition: transform .3s var(--e-out), background .3s, box-shadow .3s; padding: 2px 8px; border-radius: 6px; }
.dish:hover .pr { transform: translateY(-8px) rotate(-6deg); background: var(--turmeric); color: var(--char); box-shadow: 3px 4px 0 var(--char); }

/* ================= S9: the order card on a living picture ================= */
.order { position: relative; padding: clamp(90px, 14vw, 200px) 0; overflow: hidden; isolation: isolate; }
.order-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.order-bg picture, .order-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo .order-bg img { animation: push8 8s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes push8 { from { object-view-box: inset(0% 0% 0% 0%); } to { object-view-box: inset(3% 2% 5% 6%); } } /* zooms inside the image box, so the box never grows past the window */
.order-card { position: relative; max-width: 520px; margin-left: auto; margin-right: -1vw; padding: clamp(26px, 3vw, 44px); background: var(--paper); color: var(--char); border-radius: 6px; transform: rotate(-3deg);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55), 0 0 0 1px rgb(31 24 20 / .1); outline: 1px solid var(--char); outline-offset: -12px; }
.mo .order-card.rv { opacity: 0; transform: translate3d(0, 40px, 0) rotate(-3deg); transition: opacity .6s var(--e-out), transform .8s var(--e-out); }
.mo .order-card.rv.in { opacity: 1; transform: rotate(-3deg); }
.oc-k { font: 800 15px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--field); margin-bottom: 14px; }
.order-card h2 { color: var(--char); font-size: clamp(38px, 4vw, 60px); margin-bottom: 14px; }
.oc-p { color: var(--ink-2); }
.oc-rows { list-style: none; margin: 18px 0 16px; padding: 0; border-top: 1px solid var(--char); }
.oc-rows a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--char); text-decoration: none; font: 900 clamp(24px, 2vw, 30px)/1 var(--display); text-transform: uppercase; color: var(--char); transition: color .2s, padding .3s var(--e-out); }
.oc-rows a .arr { transition: transform .35s var(--e-out); }
.oc-rows a:hover { color: var(--field); padding-left: 10px; } .oc-rows a:hover .arr { transform: translateX(10px); }
.oc-wa { margin: 0; font-size: 16px; }
.order-card .textlink { color: var(--field-lo); }
@media (max-width: 700px) { .order-card { transform: rotate(-2deg); } .mo .order-card.rv.in { transform: rotate(-2deg); } }

/* ================= S4: inner page heroes: the headline on the field, the picture below it, uncovered ================= */
.page-hero { display: block; min-height: 0; overflow: visible; padding-top: clamp(110px, 14vh, 150px); }
.page-hero > .wrap { padding-top: 0; padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero > figure { z-index: 0; }
.page-hero > figure .frame { position: relative; inset: auto; aspect-ratio: 21 / 9 !important; }
.page-hero > figure .frame::after, .char-page .page-hero > figure .frame::after { content: none; display: none; }
.page-hero .h-page, .page-hero .lede { text-shadow: none; }
@media (max-width: 700px) { .page-hero > figure .frame { aspect-ratio: 4 / 3 !important; } }
.route > .frame::after { content: none; }

/* ================= S7: moving wave edges ================= */
.has-wave { position: relative; z-index: 1; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(26px, 3.4vw, 52px); overflow: hidden; pointer-events: none; z-index: 1; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave-top { bottom: calc(100% - 1px); }
.wave-foot { top: calc(100% - 1px); }

/* ================= page to page: the new page wipes up from the bottom in a wave shape ================= */
::view-transition-new(root) { animation: wavewipe .7s cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-old(root) { animation: none; }
@keyframes wavewipe {
  from { clip-path: polygon(0% 106%, 10% 103%, 20% 106%, 30% 109%, 40% 106%, 50% 103%, 60% 106%, 70% 109%, 80% 106%, 90% 103%, 100% 106%, 100% 120%, 0% 120%); }
  to { clip-path: polygon(0% -6%, 10% -9%, 20% -6%, 30% -3%, 40% -6%, 50% -9%, 60% -6%, 70% -3%, 80% -6%, 90% -9%, 100% -6%, 100% 120%, 0% 120%); }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation: none; } }
.rm *, .rm *::before, .rm *::after { animation-duration: 0s !important; animation-delay: 0s !important; }
.pieces.r1-wave::before { display: none; }
/* before r1.js starts the opening, the hero layers wait unseen (motion path only), so nothing flashes at rest first */
.mo .slh:not(.op-run):not(.op-done) :is(.slh-stk, .slh-name, .slh-plate, .c-mid, .c-back, .c-front) { opacity: 0; }
