/* The home page hero (index.html, #top), V4 "Pasted up and packed": the menu poster pasted up on the tiled wall. The red
   sheet with the ink strip printed along its top edge, the title, the food stuck on like stickers (the tenders steaming)
   and "Real ones know." in marker. Ported from the prototype the Director approved (public/assets/lab/hero-v4 on
   design/hero-three-versions), its v4- names now hp-. The rules here are the finished poster, as it stands once it is up:
   with motion off, or before any script, everything is simply there. Animate only transform, opacity and clip-path. */

:root { --hp-ease: cubic-bezier(.23, 1, .32, 1); --hp-paste: cubic-bezier(.4, .1, .25, 1);
  --hp-tick-dur: 105s; } /* the strip's loop, shared with its motion-off rule so the words stop where they stand */
.site-head.solid { background: #fff; transition: none; } /* white at once: at 96%, or fading, the peeling poster showed through */

/* ---------- The poster ---------- */
/* The poster is the screen tall (its content box). Under it, the hero runs on by the depth the "Who we are" band comes up
   over its foot along a slope (index.html, .about: 48 px, 72 px from 900 wide), the red sheet with it, so the band meets
   red paper and never covers the poster: "Swipe up for the menu" stays clear. The page's scroll snap still sees only the
   poster (the negative margin), so a short swipe springs back to the top as before, not to the strip's foot. */
.hero { position: relative; display: flex; flex-direction: column; box-sizing: content-box; height: 100svh; min-height: 640px; max-height: 1100px; padding-bottom: var(--hp-under); scroll-margin-bottom: calc(-1 * var(--hp-under)); overflow: hidden; isolation: isolate;
  --hp-under: 48px;
  --hp-l: 68px;  /* where the red sheet meets the wall at the left edge, down from the top of the floor */
  --hp-a: 8deg;  /* the sheet's slope, and the strip's */
  --hp-bh: 34px; /* the strip's height */
  --hp-roll: 34px; }
/* The floor: everything under Order now. The sheet, its strip and the food are measured from its top edge, so they always
   clear the copy above it, however tall the copy grows (status, batch news, site note, New pill). It can be asked how tall it
   is (a size container): where it is too short, its words and food step aside (phones, tablets and desktops, below). */
.hp-floor { position: relative; flex: 1; order: 2; margin-top: 10px; container: hp-floor / size; }
/* The Halloween look's note ("Happy Halloween!" and staff's line, season.js). Where the wall beside the copy is too narrow
   for it, it goes under the copy, in the poster's flow: the floor (the strip, the food, the tagline, the cue) makes room for
   it, so it never covers the copy, Order now or the cue. On desktop (from 900 wide), where the poster is the screen's height
   and the floor would give up the room, it is stuck on the wall at the top left (below). Level with the copy, after it, so
   Order now's shadow stays under it. */
.hero > .season-note:not([hidden]) { position: relative; z-index: 5; order: 1; align-self: center; justify-self: center; max-width: calc(100% - 32px); margin: 12px 16px 0; }
.hp-sheet, .hp-print, .hp-table, .hp-curl, .hp-curl i { position: absolute; inset: 0; }
/* The sheet is a window 12% wider than the poster (the paste-up moves it); it only clips sideways, so the strip can reach a
   little above the floor at the right. The print inside it is back to the poster's width: 12 / 112 of the window. */
.hp-sheet { z-index: 0; right: -12%; bottom: calc(-1 * var(--hp-under)); overflow: hidden; overflow: clip visible; }
.hp-print { right: 10.7143%; }
.hp-table { clip-path: polygon(0 var(--hp-l), 100% calc(var(--hp-l) - 100vw * tan(var(--hp-a))), 100% 100%, 0 100%); }
/* The sheet's loose end, rolled up: only seen while it is being pasted, on the red under the strip */
.hp-curl { z-index: 1; pointer-events: none; clip-path: polygon(0 calc(var(--hp-l) + var(--hp-bh) / 2), 100% calc(var(--hp-l) + var(--hp-bh) / 2 - 100vw * tan(var(--hp-a))), 100% 100%, 0 100%); }
.hp-curl i { right: -12%; transform: translateX(100%); background: linear-gradient(90deg, #922d20 0, #b5493a calc(var(--hp-roll) * .38), #9b3224 calc(var(--hp-roll) * .78), #5a160e var(--hp-roll), rgb(40 8 4 / .26) var(--hp-roll), rgb(40 8 4 / 0) calc(var(--hp-roll) * 2.4)); }

/* The ink strip, printed along the sheet's top edge: a band 126vw wide turned about the screen's left edge. Its words are
   drawn twice so they can drift by in a loop (105 s, filling 2560 wide); they stand still with motion off, off screen, under
   the header and in a hidden tab (hero.js). The dots are drawn (Anton's middle dot reads as a dash). */
.hp-band { position: absolute; left: -12vw; width: 126vw; height: var(--hp-bh); top: calc(var(--hp-l) - var(--hp-bh) / 2); transform-origin: 12vw 50%; transform: rotate(calc(-1 * var(--hp-a))); overflow: hidden; display: flex; align-items: center; box-shadow: 0 10px 20px -14px rgb(19 19 19 / .7); }
.hp-tick { display: flex; flex: none; width: max-content; animation: hp-tick var(--hp-tick-dur) linear infinite; }
@keyframes hp-tick { to { transform: translateX(-50%); } }
.hero.hp-paused .hp-tick, .hero.hp-band-off .hp-tick { animation-play-state: paused; }
.hp-tick span { flex: none; font: 400 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.hp-dot { display: inline-block; width: .3em; height: .3em; margin: 0 .6em; border-radius: 50%; background: currentColor; vertical-align: .2em; }

.hero .scrawl { top: calc(var(--header) + (100% - var(--hp-under)) * .03); right: -20vw; font-size: clamp(9rem, 44vw, 26rem); transform: rotate(-9deg); } /* shares of the poster, not of the strip under it */

/* The copy stands on the wall, Order now at its foot, always on the white. It paints above the stickers (z 4): on short
   desktops the peel lifts them across it, and nothing may cover Order now, scrolled or not (Task 8, D1). */
.hero-copy { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; max-width: 34rem; margin: 0 auto; padding: calc(var(--header) + env(safe-area-inset-top) + 14px) 16px 0; text-align: center; }
/* The status line and the New pill are hidden until the menu is in, and show on almost every visit: their room is kept from
   the first frame (the New pill's until the menu is in), so the poster under Order now does not jump when they come.
   ([hidden] is display: none !important in site.css.) */
.hero-copy > .status[hidden], .hero-copy:has(> .status[hidden]) > .newmac[hidden] { display: flex !important; visibility: hidden; }
/* The batch news (order batches on, the shop open): one slim line under the status, the places left with a pip for each, or
   "Full" with a countdown. It comes with the menu and takes no room when the shop is closed or paused. Tapping it opens the
   batch pop-up, which says the rest. The line is slim; its tap area is 44 px tall, reaching up over the status and down into
   the gap under it (neither can be tapped). */
.hp-batch { position: relative; z-index: 1; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px; min-height: 24px; margin: 4px 0 0; padding: 0 4px; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; text-wrap: balance; touch-action: manipulation; }
.hp-batch::before { content: ""; position: absolute; inset: min(0px, (100% - 44px) / 2) -8px; } /* 44 px tall, or the line's own height if more */
.hp-batch:active { opacity: .7; }
.hp-batch.full .hp-batch-say { color: var(--red); }
.hp-batch-end { display: inline-flex; align-items: center; gap: 6px; } /* too narrow for all of it (a 320 px phone): the pips and the arrow go under the words */
.hp-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.hp-pips:empty { display: none; }
.hp-pips i { width: 8px; height: 8px; border-radius: 2px; background: #1f9d55; }
.hp-pips i.used { background: #d6cfc5; }
.hp-batch .i { width: 14px; height: 14px; margin-left: -2px; rotate: -90deg; opacity: .6; } /* more in the pop-up */
#bbTime { white-space: nowrap; }
[data-season="halloween"] .hp-batch, [data-season="halloween"] .hp-batch.full .hp-batch-say { color: var(--night-soft); } /* on the night wall */
/* The title is printed in two passes: the ink pass (laid under the red h1, unseen once printed) and the red */
.hp-title { position: relative; isolation: isolate; margin: 12px 0 0; }
.hero h1 { margin: 0; color: var(--red); }
.hp-title .small { display: block; font-size: clamp(1.9rem, 9.4vw, 3.6rem); }
.hp-title .big { display: block; font-size: min(24vw, 6.6rem); margin-top: .02em; }
.hp-ink { position: absolute; inset: 0; z-index: -1; color: var(--ink); opacity: 0; pointer-events: none; user-select: none; }
.hero .lede { max-width: 30ch; margin: 10px 0 14px; font-size: clamp(1rem, 4.2vw, 1.2rem); line-height: 1.4; text-wrap: balance; }
.newmac { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: min(100%, 21rem); min-height: 44px; margin: 0 0 14px; padding: 4px 16px 4px 4px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--grout); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: none; transition: transform .16s var(--hp-ease); }
.newmac span { text-wrap: balance; }
.newmac b { flex: none; display: grid; place-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 1.05rem; letter-spacing: .06em; }
.newmac:active { transform: scale(.98); }

/* The food: cut-outs stuck on like stickers, over everything printed on the floor (none sits on a word at rest, and taps go
   through them), under the copy and the Halloween note (z 5). Phone: they crowd the red sheet under Order now. */
.hp-stage { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hp-piece { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: rotate(var(--r)); transform-origin: var(--o, 50% 50%); }
.hp-stick { position: relative; display: block; }
.hp-stick img { display: block; width: 100%; height: auto; }
.hp-box    { --x: 57vw; --r: 7deg;  --o: 0% 100%; }
.hp-basket { --x: -7vw; --r: -8deg; --o: 100% 100%; }
.hp-fries  { --x: 52vw; --r: 10deg; --o: 0% 100%; }
.hp-dips, .hp-cup, .hp-bun { display: none; }
/* Phones: the poster is the visible screen (560 px at least), and grows only when the copy needs it: its floor is never
   shorter than the strip and "Swipe up for the menu" under it need (a short phone with a site note and the batch line would
   leave less). The food's place and size are shares of the room on the floor above the tagline, so a short phone gets the
   whole poster, only smaller food. The tagline's rule below asks the floor's height above the home bar (its padding); the
   floor is a grid row, not a flexed item, because Chrome reads a flexed floor as 0 px tall there once the height is auto.
   The rows: the copy, the Halloween note (empty when it is not showing), the floor. */
@media (max-width: 599px) {
  .hero { display: grid; grid-template-rows: auto auto 1fr; height: auto; min-height: clamp(560px, 100svh, 1100px); }
  .hp-floor { grid-row: 3; --hp-room: calc(100% - 96px - env(safe-area-inset-bottom)); min-height: calc(120px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .hp-piece { top: calc(var(--hp-room) * var(--t)); width: auto; height: min(calc(var(--hp-room) * var(--s)), var(--hv)); }
  .hp-stick, .hp-stick img { width: auto; height: 100%; }
  .hp-box    { --t: .02; --s: .68; --hv: 50vw; } /* --hv: the 390 x 844 size, the most a sticker grows to */
  .hp-basket { --t: .27; --s: .66; --hv: 50vw; }
  .hp-fries  { --t: .58; --s: .42; --hv: 32vw; }
}
@media (max-width: 599px) and (max-height: 760px) { /* short phones: a tighter copy, and the food in a row along the strip */
  .hero-copy { padding-top: calc(var(--header) + env(safe-area-inset-top) + 8px); }
  .hp-title .big { font-size: min(21vw, 6rem); }
  .hero .lede { margin: 8px 0 10px; }
  .newmac { margin-bottom: 10px; }
  .hero .btn-order { min-height: 54px; }
  .hp-box    { --t: .02; --s: .95; --hv: 36vw; --x: 38vw; }
  .hp-basket { --t: .12; --s: .9;  --hv: 32vw; --x: -6vw; }
  .hp-fries  { --t: .4;  --s: .62; --hv: 22vw; --x: 66vw; }
}
@media (max-width: 599px) and (max-height: 620px) { /* SE-class phones while the batch line shows: the copy gives the line's room back, so the food stays */
  .hero-copy > .hp-batch:not([hidden]) { min-height: 20px; margin-top: 2px; }
  .hp-batch:not([hidden]) ~ .hp-title { margin-top: 4px; }
  .hp-batch:not([hidden]) ~ .hp-title .big { font-size: 18.5vw; }
  .hp-batch:not([hidden]) ~ .lede { margin: 6px 0 8px; }
  .hp-batch:not([hidden]) ~ .newmac { margin-bottom: 8px; }
}

/* "Real ones know." in white marker on the red sheet */
.hero .tagline { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(54px + env(safe-area-inset-bottom)); margin: 0; color: #fff; font-size: clamp(1.7rem, 7.4vw, 2.2rem); line-height: 1; text-align: center; transform: rotate(-5deg); pointer-events: none; }
.hero .tagline span { display: inline-block; }

.hero .cue { position: absolute; z-index: 3; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.hero .cue .i { width: 18px; height: 18px; }
.hero .cue:active { opacity: .7; }
/* The keyboard focus (site.css: brand red, white on red or ink): white on the red sheet, and on the Halloween night wall */
.hero .cue:focus-visible, [data-season="halloween"] .hero :focus-visible { outline-color: #fff; }
/* A phone's floor too short for the tagline (it would reach the strip under 157 px) is too short for the food as well (it would
   be crumbs, under 62 px): both step aside, the strip and the cue stay. Hidden, not taken out (display): Chrome asks this
   while it measures the grid's rows, when the floor reads short for a moment, and taking them out even then would cancel and
   restart the entrance and the steam each time the copy above moves. The hidden steam stops rising (paused, so it carries
   on from where it was when the floor grows again). */
@media (max-width: 599px) { @container hp-floor (height < 158px) { .hero .tagline, .hp-stage { visibility: hidden; } .hero .hp-stage .hp-steam i { animation-play-state: paused; } } }
/* The Halloween ghosts on the floor (season.js) float in lanes a share of its height down (26 to 44 %), while the strip
   hangs a fixed distance from its top and the tagline and cue sit a fixed distance from its foot. On a short floor a white
   ghost would sit behind their white words and wash them out, so below the height where every lane is clear (measured with
   every size and float position, Task 7) the ghosts step aside, hidden and still. It is the floor's own height that is asked,
   at every width: the heads-up, staff's site note and the batch line each take 60 to 70 px off it on the same screen. Tablets
   need more: their tagline, bottom left, reaches in under the ghosts' lanes. */
.hp-floor > .season-deco { container: hp-ghosts / size; }
@container hp-ghosts (height < 322px) { .hp-floor .ghost { visibility: hidden; } .hp-floor .ghost, .hp-floor .ghost svg { animation-play-state: paused; } }
@media (min-width: 600px) and (max-width: 899px) { @container hp-ghosts (height < 366px) { .hp-floor .ghost { visibility: hidden; } .hp-floor .ghost, .hp-floor .ghost svg { animation-play-state: paused; } } }

@media (min-width: 600px) and (max-width: 899px) { /* tablet: a bigger title, the food across the strip, the tagline bottom left */
  .hero { --hp-l: 84px; --hp-a: 6deg; --hp-bh: 40px; }
  .hp-tick span { font-size: 20px; }
  .hp-title .small { font-size: 3.6rem; }
  .hp-title .big { font-size: 8.6rem; }
  .hero .lede { font-size: 1.2rem; }
  .newmac { max-width: none; }
  .hp-box    { --w: 34vw; --x: 64vw; --y: 0%; }
  .hp-basket { --w: 50vw; --x: -5vw; --y: 9%; }
  .hp-fries  { --w: 36vw; --x: 56vw; --y: 52%; }
  .hp-dips   { display: block; --w: 21vw; --x: 33vw; --y: 58%; --r: -4deg; --o: 100% 100%; }
  .hero .tagline { left: 5vw; right: auto; bottom: calc(62px + env(safe-area-inset-bottom)); }
}
/* Tablets with staff's site note or the Halloween look (the drips' room, the heads-up), which take 60 to 100 px off the floor:
   the basket and the dips are shares of it, the tagline a fixed height off its foot, so under 165 px + 30vw (measured, 600 to
   899 wide) they would land on its words; it steps aside. Under 270 px (the note with the heads-up: 194 px at 600 x 960, 258
   at 768 x 1024) the dips, 58% down, and the basket's right end reach the cue: the dips step aside, the basket goes small
   (measured, Task 8). The plain poster is as it was. */
@media (min-width: 600px) and (max-width: 899px) {
  @container hp-floor (height < calc(165px + 30vw)) { :is([data-season="halloween"] .hero, .hero:has(#siteNote:not([hidden]))) .tagline { visibility: hidden; } }
  @container hp-floor (height < 270px) { :is([data-season="halloween"] .hero, .hero:has(#siteNote:not([hidden]))) .hp-dips { visibility: hidden; } :is([data-season="halloween"] .hero, .hero:has(#siteNote:not([hidden]))) .hp-basket { --w: 40vw; --x: -8vw; } }
}
@media (min-width: 900px) {
  .hero { --hp-under: 72px; --hp-l: calc(40px + 4.1vw); --hp-a: 4.5deg; --hp-bh: 44px; --hp-roll: 52px; --hp-big: clamp(6rem, min(12vw, 19svh), 13rem); }
  /* As on phones, the poster is the screen tall and grows only when the copy needs it (the floor's guard, below), in a grid:
     Chrome reads a flexed floor wrong in a container query once the height is auto */
  .hero { display: grid; grid-template-rows: auto auto 1fr; height: auto; min-height: clamp(640px, 100svh, 1100px); }
  .hp-floor { grid-row: 3; }
  .hp-tick span { font-size: 22px; }
  .hero .scrawl { top: calc((100% - var(--hp-under)) * .12); right: -6vw; font-size: 22rem; }
  .hero-copy { max-width: 46rem; padding: calc(var(--header) + 3.5vh) 0 0; }
  .hp-title .small { font-size: 4rem; }
  .hp-title .big { font-size: var(--hp-big); }
  .hero .lede { max-width: 34ch; font-size: 1.25rem; }
  .newmac { max-width: none; }
  /* Desktop: the food crowds round the copy and across the strip, none of it under a word or the button. Places are measured
     from the floor's top (Order now's foot); the two up on the wall climb with the title; the two on the table ride up when
     the screen is short, so they are never cut off, and the dips keep clear of the tagline. */
  .hp-cup    { display: block; --w: 9vw;  --x: 18vw; --y: calc(-.92 * var(--hp-big) - 300px); --r: -7deg; --o: 50% 100%; }
  .hp-bun    { display: block; --w: 14vw; --x: 74.5vw; --y: calc(-.92 * var(--hp-big) - 300px); --r: 5deg; --o: 0% 100%; }
  .hp-basket { --w: 31vw; --x: 0vw;  --y: -175px; }
  .hp-box    { --w: 23vw; --x: 72vw; --y: -235px; }
  .hp-dips   { display: block; --w: 19vw; --x: max(28.5vw, 4vw + 352px); --y: min(33%, 100% - 50px - 10.8vw); --hp-lift: 10px; }
  .hp-fries  { --w: 27vw; --x: 57.5vw; --y: min(20%, 100% - 16.3vw); }
  .hero .tagline { left: 4vw; right: auto; bottom: 8%; font-size: min(2.6rem, 2.6rem + (100cqw - 980px) / 16); }
}
/* Short laptops (1280 x 720, 1366 x 768): the dips would ride up onto the strip; they sit small on the red instead, between
   the tagline and the cue, 10 px off the red's foot. Below 1200 wide there is no room between the tagline and the cue (the
   dips covered "Swipe" at 1024 x 768): they sit just over the cue, 20 px up (no higher: the peel would carry them past Order
   now), and never above the floor's top. Where the floor is under 980 px wide the cue's words come in under the small dips'
   cups (2 px of ink at 900 x 700): there the small dips shrink, their top staying put, so the cups end higher. The tagline
   shrinks there too (its rule above), 1 px every 16 px, so "know." ends 16 px or more short of "Swipe" (it ran 20 px into it
   at 900 wide). The floor's width (cqw), not the window's (vw): the cue is centred on the page, which a classic scrollbar
   makes 15 px narrower than the window. Measured, Task 8 step 5. Tall desktops (1920 x 1080): the dips grow into the red that
   is left. */
@media (min-width: 900px) and (max-height: 800px) { .hp-dips { --w: min(12vw, 12vw + (100cqw - 980px) / 8); --y: max(0px, 100% - 6.8vw - var(--hp-lift)); } }
@media (min-width: 900px) and (max-width: 1199px) { .hp-dips { --hp-lift: 20px; } }
@media (min-width: 900px) and (min-height: 1000px) { .hp-dips { --w: 23vw; --x: max(27vw, 4vw + 352px); } }
/* The floor's guard on desktop, in every state: a short laptop screen (960 x 640, 1366 x 657), staff's site note or the
   Halloween look (the drips' room, the heads-up: 60 to 100 px) leave it short. Never shorter than the cue needs to clear the
   strip (it clears it from about 106 px); the poster grows instead, as on phones. The tagline steps aside before it reaches
   the strip (under 92 px + 4.15vw) or the basket comes down on it (31vw wide, hung from the floor's top: under 23.75vw - 168
   px); the dips go small on the red where the big ones would ride up behind the copy, onto the heads-up's words (under 50 px
   + 10.8vw). Measured, Task 8. The ten standard sizes' plain floors are above all three (the lead's ruling, D2). */
@media (min-width: 900px) {
  .hero > .hp-floor { min-height: 120px; }
  @container hp-floor (height < max(92px + 4.15vw, 23.75vw - 168px)) { .hero .tagline { visibility: hidden; } }
  @container hp-floor (height < calc(50px + 10.8vw)) { .hero .hp-dips { --w: min(12vw, 12vw + (100cqw - 980px) / 8); --y: max(0px, 100% - 6.8vw - var(--hp-lift)); } }
}
/* The Halloween note on the wall at the top left: under the status line, and never as far in as the centred lines (the
   batch line and the title reach up to 13rem either side of the middle). Staff's site note, up to 34em wide, reaches
   further in, so while it shows the note keeps 15.5rem from the middle (below 1180 wide, where they would meet).
   Above the food (the stage, z 4): where the cup rides up the wall it reads as a sticker slapped over it, never under it. */
@media (min-width: 900px) {
  .hero > .season-note:not([hidden]) { position: absolute; z-index: 5; left: 4vw; top: calc(var(--header) + 4vh + 16px); max-width: min(18rem, 50% - 4vw - 13rem); margin: 0; }
  .hero:has(#siteNote:not([hidden])) > .season-note:not([hidden]) { max-width: min(18rem, 50% - 4vw - 15.5rem); }
}
/* Short phones on the first visit: the heads-up and the note do not both fit above the strip (the cue would end below the
   screen). The note waits for the scare or Skip; the poster is the same height before and after, so nothing jumps. */
@media (max-width: 599px) and (max-height: 700px) {
  .hero:has([data-scare-heads]:not([hidden])) > .season-note { display: none; }
}

/* Steam: three soft wisps off the tenders, unseen until they rise (opacity and transform only). On the red, a soft warm edge
   (a static filter) keeps them readable; on desktop they rise on the white wall, so they are wider, with a warm-grey edge
   drawn into the wisp itself. */
.hp-steam { position: absolute; left: 40%; top: 0; width: 36%; height: 46%; pointer-events: none; }
.hp-steam i { position: absolute; bottom: 0; width: 26%; aspect-ratio: 24 / 64; opacity: 0; transform-origin: 50% 100%; filter: blur(1px) drop-shadow(0 0 1.5px rgb(80 20 12 / .75)) drop-shadow(0 3px 6px rgb(80 20 12 / .4));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.45' stop-color='%23fff' stop-opacity='.95'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpath d='M12 62C4 50 20 40 12 28S6 10 14 2' fill='none' stroke='url(%23s)' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E") 50% 100% / 100% 100% no-repeat; }
.hp-steam i:nth-child(1) { left: 0; --sx: -6px; }
.hp-steam i:nth-child(2) { left: 36%; --sx: 5px; bottom: 14%; }
.hp-steam i:nth-child(3) { left: 72%; --sx: -3px; }
@media (min-width: 900px) {
  .hp-steam i { width: 34%; filter: blur(1.4px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3ClinearGradient id='e' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a8968f' stop-opacity='0'/%3E%3Cstop offset='.45' stop-color='%23a8968f' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23a8968f' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.45' stop-color='%23fff' stop-opacity='.95'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpath d='M12 62C4 50 20 40 12 28S6 10 14 2' fill='none' stroke='url(%23e)' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M12 62C4 50 20 40 12 28S6 10 14 2' fill='none' stroke='url(%23s)' stroke-width='6.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
}

/* The steam rises three wisps at a time, 3 s a loop, once the tenders' picture is in; it pauses with the idle */
@keyframes hp-steam {
  0%   { opacity: 0; transform: translate3d(0, 25%, 0) scale(.7, .55); }
  35%  { opacity: .8; }
  100% { opacity: 0; transform: translate3d(var(--sx, 4px), -75%, 0) scale(1.15, 1.2); }
}
html[data-motion="on"] .hp-steam i { animation: hp-steam 3s cubic-bezier(.25, .46, .45, .94) infinite; }
html[data-motion="on"] .hp-steam i:nth-child(1) { animation-delay: 1s; }
html[data-motion="on"] .hp-steam i:nth-child(2) { animation-delay: 2s; }
html[data-motion="on"] .hp-steam i:nth-child(3) { animation-delay: 3s; }
.hero.hp-paused .hp-steam i { animation-play-state: paused; }

/* ---------- Entrance: the poster goes up (only with motion on, once per load) ---------- */
/* Only "from" frames (fill: backwards): with motion off, before the gate opens, or once settled (hero.js), everything is
   simply there. The red sheet unrolls from the left along its slope: a moving window (the sheet) over a still print (the
   table and its strip), so the edge travels without repainting, and the rolled end travels with it. */
html[data-motion="on"] .hero:not(.hp-settled) .hp-sheet { animation: hp-sheet .64s var(--hp-paste) backwards; }
html[data-motion="on"] .hero:not(.hp-settled) .hp-print { animation: hp-sheet-hold .64s var(--hp-paste) backwards; }
html[data-motion="on"] .hero:not(.hp-settled) .hp-curl i { animation: hp-roll .64s var(--hp-paste) backwards; }
@keyframes hp-sheet { from { transform: translateX(-100%); } }
@keyframes hp-sheet-hold { from { transform: translateX(112%); } }
@keyframes hp-roll { from { transform: translateX(0); } 70% { opacity: 1; } to { opacity: 0; } } /* the loose end lies flat as it reaches the far edge */

/* The title is printed in two passes, ink then red, a little out of register; they snap together and the ink is covered */
html[data-motion="on"] .hero:not(.hp-settled) .hp-ink { animation: hp-ink .44s linear 60ms both; }
html[data-motion="on"] .hero:not(.hp-settled) h1 { animation: hp-red .2s var(--hp-ease) 120ms backwards; }
@keyframes hp-ink {
  0% { opacity: 0; transform: translate(-5px, 4px); }
  2% { opacity: 1; transform: translate(-5px, 4px); animation-timing-function: steps(1, end); }
  22% { opacity: 1; transform: translate(-5px, 4px); animation-timing-function: var(--hp-ease); }
  62% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes hp-red {
  0% { opacity: 0; transform: translate(4px, -3px); }
  4% { opacity: 1; transform: translate(4px, -3px); }
}

/* The food goes on like stickers: placed lifted (a little bigger, turned) and pressed flat, each just after the sheet has
   passed under it, so they follow the paste from left to right */
html[data-motion="on"] .hero:not(.hp-settled) .hp-stick { animation: hp-stick .44s var(--hp-ease) var(--d, .3s) backwards; }
@keyframes hp-stick {
  0% { opacity: 0; transform: translate(4%, -7%) scale(1.09) rotate(-3deg); }
  12% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.hp-piece { --d: .3s; }
.hp-basket { --d: .2s; }
.hp-dips   { --d: .3s; }
.hp-box    { --d: .36s; }
.hp-fries  { --d: .42s; }
@media (min-width: 900px) {
  .hp-cup    { --d: .18s; }
  .hp-basket { --d: .22s; }
  .hp-dips   { --d: .32s; }
  .hp-fries  { --d: .42s; }
  .hp-box    { --d: .46s; }
  .hp-bun    { --d: .5s; }
}

/* A slow first visit (the gate in index.html's <head>, which puts hp-gate on <html>): the title waits for its face (shown
   plainly if it is late), and the stickers and the steam for their pictures (a picture later than 1.5 s fades in where it
   sits). Without the gate (no JavaScript) nothing is held: the poster goes up as it loads */
html.hp-gate:not(.hp-type) :is(.hp-ink, .hero h1), html.hp-gate:not(.hp-ready) .hp-stick, html.hp-gate .hp-piece:not(.hp-in) .hp-steam i { animation-play-state: paused !important; }
html.hp-plain :is(.hp-ink, .hero h1) { animation: none !important; }
html .hero:not(.hp-settled) .hp-late .hp-stick { animation: none; } /* as specific as the entrance rule, and after it */
html[data-motion="on"] .hp-late img { transition: opacity .3s ease-out; }
.hp-late:not(.hp-in) img { opacity: 0; }

/* The white cue only shows once the red sheet is under it */
html[data-motion="on"] .hero:not(.hp-settled) .cue { animation: hp-show .15s linear .2s backwards; }
@keyframes hp-show { from { opacity: 0; } }

/* "Real ones know." written on in marker, a word at a time, the pen lifting between words */
html[data-motion="on"] .hero:not(.hp-settled) .tagline span { animation: hp-write var(--t) cubic-bezier(.45, .05, .55, .95) var(--d) backwards; }
.hero .tagline span:nth-child(1) { --d: .66s; --t: .16s; }
.hero .tagline span:nth-child(2) { --d: .87s; --t: .16s; }
.hero .tagline span:nth-child(3) { --d: 1.08s; --t: .22s; }
@keyframes hp-write { from { clip-path: inset(-30% 100% -30% -8%); } to { clip-path: inset(-30% -8% -30% -8%); } }

/* Idle: the box's corner lifts a little now and then (first about 3 s after the poster is up, then every 9 s) */
html[data-motion="on"] .hero.hp-settled .hp-box .hp-stick { animation: hp-corner 9s ease-in-out -4.6s infinite; transform-origin: 0% 100%; }
@keyframes hp-corner {
  0%, 86%, 100% { transform: none; }
  91% { transform: rotate(-3deg) translateY(-2%) scale(1.02); }
}
html[data-motion="on"] .hero.hp-settled.hp-paused .hp-box .hp-stick { animation-play-state: paused; } /* as specific as the rule above */
.hero.hp-settled .hp-curl { display: none; } /* nothing left to draw once it is up */

/* ---------- Order now: the poster torn in two and pulled off the page (hero.js) ---------- */
/* Over Dip Dash's button (16) and the cart bar (15) while it runs, under the header (20). Each half reaches 24 px past both
   edges of the screen, so turning it shows no side of the menu on a phone (on a wide screen, a sliver of the same white or
   red). White between: the paper's torn fibres; the lower half's margins are the red of the table, and ink from where the
   "Who we are" band comes over (a screen taller than the poster: --hp-foot). The copies are frozen where they stood (hero.js
   keeps the loops' places) and have no layers of their own: each half is drawn as one picture. In a half, side by side and
   each with its own clip: the paper, the poster's copy, and the copies of what shows over or under it (.hp-over). */
.hp-tear { position: fixed; inset: 0; z-index: 19; overflow: hidden; cursor: pointer; }
.hp-half { position: absolute; left: -24px; width: calc(100% + 48px); will-change: transform; }
.hp-paper, .hp-over { position: absolute; inset: 0; }
.hp-paper { background: #fff; }
.hp-lower .hp-paper { background: linear-gradient(var(--ink) 0 0) bottom / 100% calc(100% - var(--hp-foot, 100%)) no-repeat, linear-gradient(90deg, var(--red) 24px, #fff 24px calc(100% - 24px), var(--red) calc(100% - 24px)); }
.hp-half > .hero { position: absolute; top: 0; bottom: 0; left: 24px; right: 24px; height: auto; min-height: 0; max-height: none; }
.hp-frozen, .hp-frozen * { animation: none !important; transition: none !important; }

/* ---------- Animations off (the header's switch, or the phone's reduce-motion setting): nothing moves ---------- */
/* The strip's words stand still where they are (site.css cuts every animation to .01 ms, which would snap them back); no
   steam, no rolled end, no sticker coming away. */
html[data-motion="off"] .hp-tick { animation-duration: var(--hp-tick-dur) !important; animation-iteration-count: infinite !important; animation-play-state: paused; }
html[data-motion="off"] :is(.hp-steam, .hp-curl) { display: none; }
html[data-motion="off"] .hp-piece { translate: none !important; rotate: none !important; scale: none !important; }
