/* Pickle and Pie, Yaxham. A 3-scene 3D film mock-up (Tier 2C,
   ~/studio/assets/3d-playbook.md). One lead effect: a pie's lattice weaves
   itself and a slice lifts out in the first 3 seconds. Then the camera turns to
   the chalkboard menu, and goes out of the door into warm daylight.

   Five colours (playbook "Colour palettes"):
     1 anchor  #0E2D42  their logo's navy, deepened (#144E73, the logo itself, is its lighter shade)
     2 neutral #F9F8EC  the pale cream of their logo's lettering, lightened
     3 family  #3A6626  dill-pickle green
     4 family  #A6CC55  gherkin green
     5 accent  #F2B23A  pastry gold: the call button and nothing else
   The call button always sits on navy, so the header, the hero's blocks and the
   phone's bottom bar are navy in both modes.
   Hero layout: object centre stage (playbook "Hero layouts", layout 3).
   Mobile first. */

@font-face {
  font-family: "Young Serif";
  src: url("assets/fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Size-matched stand-in while the font arrives, so the big headline doesn't reflow. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;

  --anchor: #0e2d42;
  --anchor-up: #1c394c;
  --anchor-up2: #2b4658;
  --anchor-deep: #0a2233;
  --logo: #144e73;
  --neutral: #f9f8ec;
  --deep: #3a6626;
  --bright: #a6cc55;
  --gold: #f2b23a;
  --gold-hover: #f6c463;
  --gold-deep: #a8792a;

  --paper: var(--neutral);
  --ink: var(--anchor);
  --ink-soft: #506672;
  --line: #d3d6cc;
  --sheet-alt: #ebece2;
  --green: var(--deep);
  --wash: rgb(166 204 85 / 0.08);
  --focus: var(--anchor);
  --focus-gap: var(--neutral);
  --mark: rgb(166 204 85 / 0.38);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Young Serif", "Serif Fallback", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 3.6rem;
  --dock-h: 4.25rem;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1rem, 0.98rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: var(--anchor);
    --ink: var(--neutral);
    --ink-soft: #b7bfbc;
    --line: var(--anchor-up2);
    --sheet-alt: var(--anchor-up);
    --green: var(--bright);
    --wash: rgb(166 204 85 / 0.05);
    --focus: var(--bright);
    --focus-gap: var(--anchor);
    --mark: rgb(166 204 85 / 0.22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
body {
  margin: 0;
  padding-bottom: var(--dock-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset, blockquote, address { margin: 0; padding: 0; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem); }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
i { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-gap);
  border-radius: 2px;
}

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.stars { letter-spacing: 0.08em; margin-left: 0.2rem; }

.skip-link {
  position: fixed; left: 0.75rem; top: -4rem; z-index: 60;
  padding: 0.75rem 1rem; background: var(--neutral); color: var(--anchor); font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.demo-banner {
  position: relative; z-index: 11;
  padding: 0.4rem var(--gutter);
  background: var(--anchor-deep);
  color: var(--neutral);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

/* --- Header: navy in both modes, the call button always here --------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--anchor);
  color: var(--neutral);
  border-bottom: 1px solid var(--anchor-up2);
  --focus: var(--bright);
  --focus-gap: var(--anchor);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; text-decoration: none; min-width: 0; }
.logo-mark { flex: none; }
.mark-disc { fill: var(--logo); }
.mark-ring { fill: none; stroke: var(--neutral); stroke-width: 1.1; }
.mark-lattice { fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; }
.logo-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; white-space: nowrap; }
.logo-trade { display: block; margin-top: 0.22rem; font-family: var(--font-sans); font-weight: 650; font-size: 0.7rem; color: #b7bfbc; }
nav { display: none; }
.label-long { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.65rem;
  font-size: var(--step--1); font-weight: 650; text-decoration: none; text-underline-offset: 0.3em;
}
.nav-list a:hover, .nav-list a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--bright); }
@media (max-width: 21.9rem) { .logo-trade { display: none; } }
@media (min-width: 40rem) { .label-long { display: inline; } .logo-name { font-size: 1.35rem; } .logo-trade { font-size: 0.76rem; } }
@media (min-width: 64rem) { nav { display: block; } }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { fill: currentColor; flex: none; }
/* The one accent: the call button. Always on navy. */
.btn-call { background: var(--gold); color: var(--anchor); box-shadow: 0 3px 0 var(--gold-deep); }
.btn-call:hover { background: var(--gold-hover); }
.btn-call:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn-small { min-height: 44px; padding: 0.4rem 0.95rem; font-size: var(--step--1); }
.btn-big { min-height: 56px; padding: 0.75rem 1.6rem; font-size: 1.1rem; }
/* Book and send are not the call button, so they are green or ink, never gold. */
.btn-book { background: var(--deep); color: var(--neutral); }
.btn-book:hover { background: #2f541f; }
.btn-book:active { transform: scale(0.97); }
.btn-send { background: var(--ink); color: var(--paper); }
.btn-send:hover { background: var(--green); color: var(--paper); }
.btn-send:active { transform: scale(0.97); }
.btn-ghost { border-color: var(--anchor); color: var(--anchor); background: transparent; }
.btn-ghost:hover { background: var(--anchor); color: var(--neutral); }
.btn-ghost:active { transform: scale(0.97); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: var(--deep); }
.text-link:hover { text-decoration-thickness: 3px; }

/* --- The film ----------------------------------------------------------------
   One 3D world behind the whole page (film.js). The words never live in it:
   each section is a solid sheet that scrolls over the film, the hero's blocks
   are solid navy, and each later scene gets a "stage" where the film is the
   picture. Without the film (reduced motion, Save-Data, weak devices, no
   JavaScript) every scene shows a still frame rendered from the film. */
.film {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  pointer-events: none;
  overflow: hidden;
  background: var(--neutral);
}
html.film-on .film { display: block; }
.film canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 400ms ease; }
html.film-ready .film canvas { opacity: 1; }

/* --- Hero: object centre stage ----------------------------------------------
   Phones: the headline block on top, the pie in its box, then two small fact
   blocks side by side, the call button, and Paula's review. Every block is
   solid navy; only the pie's box shows the film. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--anchor);
  color: var(--neutral);
  --focus: var(--bright);
  --focus-gap: var(--anchor);
}
html.film-on .hero { background: transparent; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head head" "scene scene" "open rating" "call call" "review review";
}
.hero-left, .hero-right { display: contents; }
.hero-head, .fact, .hero-call, .hero-review { background: var(--anchor); position: relative; z-index: 2; }
.hero-head { grid-area: head; padding: 0.8rem var(--gutter) 0.85rem; }
.hero-where { font-size: var(--step--1); font-weight: 650; color: #b7bfbc; }
h1 { margin-top: 0.3rem; color: var(--neutral); font-size: clamp(2.2rem, min(11.6vw, 6.6svh), 3.6rem); line-height: 0.98; letter-spacing: -0.025em; }
.h1-line { display: block; }
.hero-lede { display: none; }
.h1-green { color: var(--bright); }

.hero-scene { grid-area: scene; position: relative; height: clamp(9rem, 29svh, 20rem); overflow: clip; background: var(--neutral); }
html.film-on .hero-scene { background: transparent; }
.hero-frame { position: absolute; inset: 0; pointer-events: none; }
.hero-still, .frames, .fr { position: absolute; inset: 0; }
.hero-still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.frames { display: none; z-index: 1; overflow: hidden; }
.fr { background-size: cover; background-position: 50% 36%; }
html.film-on .frames { display: block; }
html.film-on .fr-a { background-image: url("assets/film/on-a.webp"); }
html.film-on .fr-b { background-image: url("assets/film/on-b.webp"); opacity: 0; }
html.film-on .fr-c { background-image: url("assets/film/on-c.webp"); opacity: 0; }
html.film-on .fr-d { background-image: url("assets/film/on-d.webp"); opacity: 0; }
html.film-on .fr-e { background-image: url("assets/film/on-e.webp"); opacity: 0; }
html.film-on .hero-still { z-index: 2; opacity: 0; }

.fact { padding: 0.7rem 0.5rem 0.75rem var(--gutter); font-size: 0.82rem; line-height: 1.3; color: #c9d0cd; border-top: 1px solid var(--anchor-up2); }
.fact strong { display: block; font-family: var(--font-display); font-weight: 400; line-height: 1; color: var(--neutral); letter-spacing: -0.01em; }
.fact-open { grid-area: open; }
.fact-open .open-now { font-size: 1.15rem; margin-bottom: 0.3rem; color: var(--bright); min-height: 2em; }
.fact-rating { grid-area: rating; padding-left: 0.75rem; padding-right: var(--gutter); border-left: 1px solid var(--anchor-up2); }
.fact-rating strong { font-size: 2.1rem; color: var(--gold); }
.hero-call { grid-area: call; padding: 0.15rem var(--gutter) 0.75rem; }
.btn-hero { width: 100%; min-height: 58px; font-size: 1.08rem; white-space: nowrap; }
.btn-hero svg { width: 22px; height: 22px; }
.call-n { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0; }
.hero-review { grid-area: review; padding: 0 var(--gutter) 1.1rem; }
.hero-review blockquote { padding-left: 0.85rem; border-left: 3px solid var(--bright); }
.hero-review p { font-size: var(--step--1); line-height: 1.45; color: #dfe3df; }
.hero-review mark { background: none; color: var(--neutral); font-weight: 800; }
.hero-review figcaption { margin-top: 0.35rem; padding-left: 0.85rem; font-size: 0.82rem; font-weight: 700; }

/* The still film: the bare filling, the lattice laid strip by strip, then the
   slice lifting. In step with the 3D's own opening (film.js INTRO_START,
   WEAVE_END), so when the 3D takes over part-way nothing jumps back.
   Opacity and transform only. */
@media (prefers-reduced-motion: no-preference) {
  html.film-on .fr-b { animation: frame-in 0.22s linear 0.88s both; }
  html.film-on .fr-c { animation: frame-in 0.22s linear 1.5s both; }
  html.film-on .fr-d { animation: frame-in 0.22s linear 2.1s both; }
  html.film-on .fr-e { animation: frame-in 0.2s linear 2.55s both; }
  html.film-on .hero-still { animation: frame-in 0.2s linear 2.9s both; }
  html.film-on .frames, html.film-on .hero-still img { animation: settle 3.2s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 50% 60%; }
  /* The headline settles into place as the slice lifts out beside it. */
  .h1-line { animation: from-slice 760ms cubic-bezier(.2, .7, .2, 1) 2.2s both; }
  .h1-green { animation-delay: 2.32s; }
}
.hero.is-paused .fr, .hero.is-paused .frames, .hero.is-paused .hero-still, .hero.is-paused .hero-still img { animation-play-state: paused; }
.hero.is-paused .h1-line { animation: none; }
html.film-ready .frames, html.film-ready .hero-still { opacity: 0 !important; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; animation: none; }
@keyframes frame-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes from-slice { from { transform: translateY(0.32em); } to { transform: none; } }

/* Short phones (360x640 and the like): a smaller pie box and headline, so the
   hero's call button is on the first screen above the bottom bar. */
@media (max-width: 39.99rem) and (max-height: 44rem) {
  .hero-scene { height: clamp(7.5rem, 23svh, 12rem); }
  h1 { font-size: clamp(2rem, min(10.4vw, 6svh), 3rem); }
  .hero-head { padding-block: 0.6rem 0.65rem; }
  .fact { padding-block: 0.5rem 0.55rem; }
  .fact-rating strong { font-size: 1.8rem; }
  .fact-open .open-now { font-size: 1.02rem; }
  .btn-hero { min-height: 52px; }
  .demo-banner { font-size: 0.72rem; padding-block: 0.3rem; }
}

/* Tablets: more room, the pie box taller. */
@media (min-width: 40rem) {
  .hero-scene { height: clamp(12rem, 36svh, 24rem); }
  .hero-head { padding-top: 1.1rem; }
  h1 { font-size: clamp(3rem, 7.4vw, 4.6rem); }
  .fact-rating strong { font-size: 2.6rem; }
  .btn-hero { width: auto; padding-inline: 1.8rem; }
  .hero-review p { font-size: var(--step-0); }
}

/* Wide screens: three columns. Left, a navy block with the name, the headline
   and the review; middle, the pie (the film is framed on this column); right,
   a navy block with the open line, the rating and the big call button. */
@media (min-width: 64rem) and (min-aspect-ratio: 1/1) {
  :root { --header-h: 3.9rem; }
  .hero { height: calc(100svh - var(--header-h) - 2rem); min-height: 34rem; background: var(--neutral); }
  .hero-grid {
    position: relative; z-index: 2; height: 100%;
    grid-template-columns: 31% minmax(0, 1fr) 27%;
    grid-template-areas: "left . right";
    gap: 0; padding: clamp(1.25rem, 3.4svh, 2.5rem) var(--gutter);
  }
  .hero-left, .hero-right { display: flex; flex-direction: column; background: var(--anchor); border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgb(14 45 66 / 0.7); position: relative; z-index: 2; }
  .hero-left { grid-area: left; justify-content: space-between; padding: clamp(1.4rem, 4svh, 2.6rem) clamp(1.25rem, 2vw, 2.25rem); }
  .hero-right { grid-area: right; justify-content: space-between; align-self: center; padding: clamp(1.2rem, 3svh, 2rem) clamp(1.1rem, 1.8vw, 2rem); gap: 1rem; }
  .hero-head, .fact, .hero-call, .hero-review { background: none; padding: 0; border: 0; }
  .hero-where { font-size: var(--step-0); }
  h1 { margin-top: 0.8rem; font-size: clamp(3rem, min(4.6vw, 10svh), 5.6rem); }
  .hero-lede { display: block; margin-top: clamp(0.9rem, 2.4svh, 1.6rem); max-width: 26ch; font-size: var(--step-1); line-height: 1.4; color: #dfe3df; }
  .hero-review { margin-top: 1.5rem; }
  .hero-review p { font-size: clamp(1rem, 0.75rem + 0.5vw, 1.25rem); line-height: 1.42; }
  .fact { font-size: var(--step--1); }
  .fact-open .open-now { font-size: clamp(1.3rem, 1.7vw, 1.75rem); }
  .fact-rating { display: flex; align-items: center; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--anchor-up2); }
  .fact-rating strong { font-size: clamp(2.8rem, 3.8vw, 3.8rem); }
  .fact-rating span { max-width: 8rem; }
  .hero-call { padding-top: 0.25rem; }
  .btn-hero { width: 100%; min-height: 72px; padding: 0.6rem 1.2rem; display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 0.8rem; text-align: left; border-radius: 1.2rem; }
  .btn-hero svg { grid-row: 1 / 3; width: 28px; height: 28px; align-self: center; }
  .btn-hero .call-k { font-size: var(--step--1); line-height: 1.1; align-self: end; }
  .btn-hero .call-n { font-size: clamp(1.45rem, 1.9vw, 2rem); line-height: 1; align-self: start; }
  /* The pictures fill the whole hero; the film is framed on the middle column. */
  .hero-scene { position: absolute; inset: 0; height: auto; z-index: 0; }
  .hero-frame { left: 34%; width: 32%; right: auto; }
  html.film-on .fr-a, html.film-on .fr-b { background-image: url("assets/film/onw-a.webp"); }
  html.film-on .fr-c, html.film-on .fr-d { background-image: url("assets/film/onw-b.webp"); }
  html.film-on .fr-e { background-image: url("assets/film/onw-c.webp"); }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes from-slice-wide { from { transform: translateX(0.35em); } to { transform: none; } }
    .h1-line { animation-name: from-slice-wide; }
  }
}
@media (min-width: 64rem) and (min-aspect-ratio: 1/1) and (max-height: 44rem) {
  .hero-review p { font-size: var(--step--1); }
}

/* --- Scene titles ------------------------------------------------------------ */
.scene-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 11vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: calc(100vw - 2 * var(--gutter));
  color: var(--neutral);
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.08em var(--anchor);
  pointer-events: none;
  user-select: none;
}
.scene-title span { color: var(--bright); }
@media (prefers-reduced-motion: no-preference) {
  /* Slides in from the right and comes to rest at the left margin. It only ever
     moves right of its resting place, and the slide is short on phones, so it
     never runs off either edge (checked from 320px up). */
  .scene-title { --slide: 4vw; transform: translateX(calc((1 - var(--p, 1)) * var(--slide))); will-change: transform; }
  @media (min-width: 40rem) { .scene-title { --slide: 12vw; } }
}

/* --- Stages ------------------------------------------------------------------ */
.stage { position: relative; overflow-x: clip; background: var(--sheet-alt); color: var(--anchor); --focus: var(--anchor); --focus-gap: var(--neutral); }
html.film-on .stage { background: transparent; }
.stage-inner { position: relative; }
html.film-on .stage--board { height: 330svh; }
html.film-on .stage--out { height: 230svh; }
html.film-on .stage-inner {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: clip;
}
html.film-on .stage-still { position: absolute; inset: 0; z-index: -1; }
html.film-on .stage-still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
html.film-ready .stage-still { display: none; }
html:not(.film-on) .stage-still img { width: 100%; max-height: 80svh; object-fit: cover; object-position: 50% 40%; }

.scene-title--board, .scene-title--out { position: absolute; left: var(--gutter); top: 0.7rem; z-index: 1; }

/* The stage's real words: a solid card low on the scene. */
.stage-card {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--dock-h) + 0.75rem);
  max-width: 30rem;
  padding: 0.85rem 1rem 0.95rem;
  background: var(--neutral);
  color: var(--anchor);
  border-radius: var(--radius);
  border-top: 4px solid var(--deep);
  box-shadow: 0 18px 40px -20px rgb(14 45 66 / 0.75);
  --focus: var(--anchor); --focus-gap: var(--neutral);
}
html:not(.film-on) .stage-card { position: relative; left: auto; right: auto; bottom: auto; margin: -2.5rem var(--gutter) 2.5rem; }
.stage-card h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); color: var(--anchor); }
.stage-card > p { margin-top: 0.35rem; font-size: var(--step--1); font-weight: 600; color: #34495a; }
.out-card { max-width: 24rem; }
.out-card .btn { margin-top: 0.7rem; }

/* The menu card: their own food words. With the film running, the item on
   the board is the one shown (on phones the others fold away, so the board
   stays in view); the words all stay in the page for search and screen readers. */
.menu-lede { margin-top: 0.3rem !important; }
.board-list { margin-top: 0.55rem; display: grid; gap: 0.3rem; counter-reset: dish; }
.board-list li { position: relative; padding: 0.35rem 0.6rem 0.4rem 0.75rem; border-left: 3px solid #cfd5c3; border-radius: 0 var(--radius) var(--radius) 0; transition: border-color 200ms ease, background-color 200ms ease; }
.board-list h3 { display: inline; font-size: 1.15rem; color: var(--anchor); line-height: 1.2; }
.board-list p { display: inline; font-size: var(--step--1); line-height: 1.4; color: #2c3f4d; }
html.film-on .board-list[data-at="1"] li:nth-child(1),
html.film-on .board-list[data-at="2"] li:nth-child(2),
html.film-on .board-list[data-at="3"] li:nth-child(3),
html.film-on .board-list[data-at="4"] li:nth-child(4),
html.film-on .board-list[data-at="5"] li:nth-child(5),
html.film-on .board-list[data-at="6"] li:nth-child(6) { border-left-color: var(--deep); background: rgb(166 204 85 / 0.22); }
.placeholder { margin-top: 0.55rem; padding: 0.45rem 0.65rem; border: 2px dashed #9aa79a; border-radius: var(--radius); font-size: 0.84rem; color: #34495a; }
.menu-actions { margin-top: 0.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
@media (max-width: 63.99rem), (max-aspect-ratio: 1/1) {
  html.film-on .board-list li { display: none; }
  html.film-on .board-list[data-at="1"] li:nth-child(1),
  html.film-on .board-list[data-at="2"] li:nth-child(2),
  html.film-on .board-list[data-at="3"] li:nth-child(3),
  html.film-on .board-list[data-at="4"] li:nth-child(4),
  html.film-on .board-list[data-at="5"] li:nth-child(5),
  html.film-on .board-list[data-at="6"] li:nth-child(6) { display: block; }
  html.film-on .menu-card .placeholder { font-size: 0.8rem; padding-block: 0.35rem; }
  .menu-actions .btn { flex: 1 1 auto; }
}

/* --- The dock: call and pause, always on screen ------------------------------ */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--dock-h);
  padding: 0.5rem max(var(--gutter), env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--anchor);
  border-top: 1px solid var(--anchor-up2);
  --focus: var(--bright); --focus-gap: var(--anchor);
}
.dock-call { flex: 1 1 auto; min-width: 0; min-height: 52px; font-size: 1.05rem; padding-inline: 0.75rem; white-space: nowrap; }
.dock-cafe { display: none; }
/* Below 384px the number won't fit beside the pause button, so the bar just
   says "Call". It still rings the café. */
@media (max-width: 23.99rem) { .dock-num { display: none; } .dock-cafe { display: inline; } }
.motion-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  background: var(--anchor);
  color: var(--neutral);
  border: 2px solid var(--neutral);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.motion-toggle[hidden], html:not(.film-on) .motion-toggle { display: none; }
.motion-toggle:hover { background: var(--anchor-up2); }
.motion-toggle:active { transform: scale(0.95); }
.motion-toggle svg { fill: currentColor; }
.ml-long { display: none; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: inline; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* Desktops with a mouse: the header carries the call button, so the dock is
   only the pause button, bottom right. */
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  :root { --dock-h: 0rem; }
  .dock { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 0.9rem; min-height: 0; padding: 0; background: none; border: 0; }
  .dock-call { display: none; }
  .ml-long { display: inline; }
  .motion-toggle { box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.6); }
}
@media (min-width: 64rem) and (min-aspect-ratio: 1/1) {
  .stage-card { right: auto; bottom: 2rem; width: min(30rem, 34vw); }
  html.film-on .menu-card { top: clamp(7rem, 20svh, 11rem); bottom: auto; }
  .scene-title--board, .scene-title--out { font-size: clamp(3rem, min(6.4vw, 11svh), 6.5rem); top: 1.1rem; }
}

/* --- Sections: solid sheets that slide over the film ------------------------ */
.section {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(165deg, var(--wash), transparent 50%) var(--paper);
}
.section-proof, .section-visit { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Ask for a table. */
.section-book { background: linear-gradient(195deg, var(--wash), transparent 55%) var(--sheet-alt); }
.book-layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.book-lede { margin-top: 1rem; font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }
.xmas { margin-top: 1.5rem; max-width: 28rem; padding: 1rem 1.1rem 1.05rem; background: var(--anchor); color: var(--neutral); border-radius: var(--radius); border-top: 4px solid var(--bright); --focus: var(--bright); --focus-gap: var(--anchor); }
.xmas h3 { color: var(--neutral); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.xmas p { margin-top: 0.4rem; }
.xmas .small { color: #b7bfbc; }
.book-form { display: grid; gap: 0.95rem; padding: clamp(1.1rem, 3vw, 2rem); border: 2px solid var(--ink); border-top: 5px solid var(--green); border-radius: var(--radius); background: var(--paper); }
.field { min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.field-row .field:first-child { grid-column: 1 / -1; }
.book-form label { display: block; font-weight: 800; font-size: var(--step--1); margin-bottom: 0.3rem; }
.optional { font-weight: 500; color: var(--ink-soft); }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], textarea {
  display: block; width: 100%; min-height: 48px; padding: 0.55rem 0.75rem;
  background: var(--paper);
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
textarea { resize: vertical; }
::placeholder { color: var(--ink-soft); opacity: 1; }
input:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; box-shadow: none; }
.field.is-valid input { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.field.is-invalid input { border-color: var(--ink); border-style: dashed; }
.field-msg { min-height: 1.3em; margin-top: 0.2rem; font-size: var(--step--1); font-weight: 700; color: var(--ink); }
.book-form .btn { justify-self: start; }
.form-note { margin-top: -0.3rem; }
.form-note a { font-weight: 700; overflow-wrap: anywhere; }
.form-done { padding: 0.9rem 1rem; border-left: 4px solid var(--green); background: var(--sheet-alt); }
.form-done[hidden] { display: none; }
.form-done p + p { margin-top: 0.3rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr 1fr; } .field-row .field:first-child { grid-column: auto; } }
@media (min-width: 62rem) { .book-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); align-items: start; } }

/* From their kitchen: their own photos, different sizes, the pies leading. */
.section-kitchen { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.photos { margin-top: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sheet-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--lead img { object-position: 50% 72%; }
.photo--lead { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.photo:not(.photo--lead):not(.photo--wide) { aspect-ratio: 3 / 4; }
.photo--wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.photo figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; max-width: calc(100% - 1.2rem); padding: 0.3rem 0.6rem; background: var(--anchor); color: var(--neutral); border-radius: 0.35rem; font-size: var(--step--1); font-weight: 700; line-height: 1.3; }
.photo-credit { margin-top: 0.75rem; }
@media (min-width: 56rem) {
  .photos { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; }
  .photo--lead { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .photo--wide { grid-column: 2 / 4; aspect-ratio: 16 / 9; }
}
/* A photo opens out as it arrives: it starts a little smaller, then settles. */
html.scenes-on [data-scene="photo"] img { transform: scale(1.12); transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
html.scenes-on [data-scene="photo"] { transform: scale(0.94); opacity: 0.001; transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 420ms ease; }
html.scenes-on [data-scene="photo"].is-in, html.scenes-on [data-scene="photo"].is-in img { transform: none; opacity: 1; }
html.scenes-on .photos [data-scene="photo"]:nth-child(2) { transition-delay: 90ms; }
html.scenes-on .photos [data-scene="photo"]:nth-child(3) { transition-delay: 180ms; }
html.scenes-on .photos [data-scene="photo"]:nth-child(4) { transition-delay: 270ms; }

/* The proof: the big figures count up, the reviews rise one by one. */
.nums { margin-top: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; }
.num { display: grid; gap: 0.4rem; align-items: end; }
.num-big { display: block; padding-bottom: 0.08em; font-family: var(--font-display); font-weight: 400; font-size: clamp(6.5rem, 32vw, 14rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--green); font-variant-numeric: tabular-nums; }
.num-small .num-big { font-size: clamp(4rem, 18vw, 7rem); color: var(--ink); }
.num-k { font-size: var(--step-1); font-weight: 650; line-height: 1.25; max-width: 22ch; }
@media (min-width: 48rem) { .num { grid-template-columns: auto 1fr; gap: 2rem; } .num-k { padding-bottom: 0.6rem; } .nums { grid-template-columns: 1.4fr 1fr; align-items: end; } }

.reviews-list { margin-top: clamp(2.5rem, 6vw, 5rem); display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.review blockquote p { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; font-weight: 500; }
.review--lead blockquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.85rem); line-height: 1.36; }
.review mark { background: var(--mark); color: inherit; font-weight: 700; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.review--lead mark { font-weight: 400; }
.review figcaption { margin-top: 0.6rem; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); padding-left: 1.6rem; position: relative; }
.review figcaption::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 1rem; height: 3px; background: var(--green); }
.review .stars { color: var(--green); }
@media (min-width: 62rem) {
  .reviews-list { grid-template-columns: 1fr 1fr; }
  .review--lead { grid-column: 1 / -1; max-width: 62rem; }
}

/* Visit: address, hours (today picked out), numbers. */
.section-visit { background: linear-gradient(165deg, var(--wash), transparent 50%) var(--sheet-alt); }
.visit-layout { display: grid; gap: 2rem 3rem; }
.address { margin-top: 1.1rem; font-size: var(--step-1); line-height: 1.45; }
.visit-actions { margin-top: 1rem; }
.hours-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.hours { margin-top: 0.75rem; width: 100%; max-width: 26rem; border-collapse: collapse; caption-side: bottom; }
.hours caption { text-align: left; margin-top: 0.5rem; }
.hours th, .hours td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 500; color: var(--ink-soft); }
.contact-list { border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.contact-list li > :last-child { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); line-height: 1.1; min-width: 0; }
.contact-list a { text-underline-offset: 0.18em; text-decoration-color: var(--green); text-decoration-thickness: 3px; display: inline-block; padding-block: 0.3rem; margin-block: -0.3rem; }
.contact-email { overflow-wrap: anywhere; }
.contact-k { color: var(--ink-soft); font-weight: 650; font-size: var(--step--1); }
@media (min-width: 56rem) { .visit-layout { grid-template-columns: 1fr 1fr; } .contact-list { grid-column: 1 / -1; } .contact-list li { grid-template-columns: 12rem 1fr; } }

.site-footer { position: relative; z-index: 1; padding-block: 1.5rem 1.75rem; background: var(--anchor-deep); color: var(--neutral); font-size: var(--step--1); --focus: var(--bright); --focus-gap: var(--anchor); }
.site-footer a { color: inherit; text-underline-offset: 0.2em; overflow-wrap: anywhere; display: inline-block; padding-block: 0.4rem; margin-block: -0.4rem; }
.site-footer .small { color: #b7bfbc; margin-top: 0.5rem; }

/* Scroll scenes. Visible in the HTML; only once script.js has set them up do
   they wait to arrive. Each reveal suits its content: the figures count up,
   the reviews rise one by one, the contact lines step in. */
html.scenes-on [data-scene="quote"] { transform: translateY(1.5rem); opacity: 0; transition: transform 560ms cubic-bezier(.2,.7,.2,1), opacity 420ms ease; }
html.scenes-on [data-scene="quote"].is-in { transform: none; opacity: 1; }
html.scenes-on [data-scene="steps"] li { transform: translateX(-1.25rem); opacity: 0; transition: transform 480ms cubic-bezier(.2,.7,.2,1), opacity 360ms ease; }
html.scenes-on [data-scene="steps"] li:nth-child(2) { transition-delay: 90ms; }
html.scenes-on [data-scene="steps"] li:nth-child(3) { transition-delay: 180ms; }
html.scenes-on [data-scene="steps"] li:nth-child(4) { transition-delay: 270ms; }
html.scenes-on [data-scene="steps"].is-in li { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .film, .stage-still, .hero-still, .frames, .scene-title, .dock { display: none !important; }
}

/* Still-frame capture (film.js ?still=J): only the film shows. */
html.film-capture body > :not(.film) { visibility: hidden; }
html.film-capture .film { z-index: 1; }
html.film-capture .film canvas { transition: none; }
html.film-capture { scrollbar-width: none; }
html.film-capture::-webkit-scrollbar { display: none; }
