@font-face { font-family: 'Walk Display'; src: url('fonts/display.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Walk Text'; src: url('fonts/text.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

/* Two arrangements, chosen by the shape of the window, not by the device:
     feed  one thing per screen, swiped. Phones, tablets held upright, small or squarish windows.
     wide  chapters side by side, one scroll per item. Any landscape window at least 900 by 480.
   A feed that is wider than tall (a phone held sideways) puts the words beside the picture.
   Sizes follow the box each screen actually gets (cqw, cqh), so there is no list of device sizes. */
:root { color-scheme: dark; --char: #120a06; --mustard: #ffbe1a; --cream: #fff4e2; --soft: #dccfbd; --accent: #ffbe1a; --tabs: 48px; --out: cubic-bezier(.16, 1, .3, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: var(--char); color: var(--cream); font: 16px/1.45 'Walk Text', system-ui, sans-serif; }
::selection { background: var(--mustard); color: var(--char); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, .num, .brand { font-family: 'Walk Display', 'Arial Narrow', sans-serif; font-stretch: 75%; font-weight: 800; letter-spacing: -.015em; line-height: .92; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.sr, .now span, .tabs svg, .send span, .pager .on span.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.app { position: relative; display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.top { position: absolute; z-index: 4; inset: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: calc(8px + env(safe-area-inset-top)) 10px 0 18px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { font-size: 24px; white-space: nowrap; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
body:not(.first) .brand { visibility: hidden; }
.chapters, .pager, .cursor { display: none; }
.now { display: flex; gap: 8px; margin-left: auto; transition: opacity 1.2s; }
.now button { display: none; place-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; }
body.moves .now [data-pause], body.loud .now [data-sound] { display: grid; }
.now [aria-pressed='true'] { color: var(--mustard); }

.walk { grid-area: 1 / 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.walk::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .walk { scroll-behavior: smooth; } }
.moment { --field: #1a0f09; --on: var(--cream); --pop: var(--mustard); container-type: size; position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--field); color: var(--on); }

/* every burger and plate gets its own colour, so the next swipe always looks new */
.f0 { --field: #b3180a; }
.f1 { --field: #ffbe1a; --on: #17090a; --pop: #9c1206; }
.f2 { --field: #14452c; }
.f3 { --field: #5b1246; }
.f4 { --field: #c2470a; --pop: #ffe08a; }
.f5 { --field: #10284f; }

.shot { position: absolute; inset: 0; overflow: hidden; }
.shot > img, .shot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot > video { opacity: 0; transition: opacity .5s var(--out); }
.shot > video.on { opacity: 1; }
.film .shot::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .65) 45%, rgb(0 0 0 / .9)); transition: opacity 1s; }
/* a thin line says this is a film and how far it has played; a ring turns while it is arriving. Neither is touched */
.progress { position: absolute; z-index: 2; inset: 0 0 auto; height: 4px; background: rgb(255 255 255 / .28); pointer-events: none; transition: opacity .3s; }
.progress i { display: block; height: 100%; background: var(--mustard); transform-origin: left; scale: 0 1; transition: scale .25s linear; }
.shot > video:not(.on) ~ .progress, .watching .progress { opacity: 0; }
.wait { position: absolute; z-index: 2; left: 50%; top: 42%; width: 46px; height: 46px; margin: -23px; border: 4px solid rgb(255 255 255 / .3); border-top-color: #fff; border-radius: 50%; box-shadow: 0 0 14px rgb(0 0 0 / .5); opacity: 0; pointer-events: none; }
.busy > .wait { opacity: 1; transition: opacity .2s .35s; } /* a film that starts at once never shows it */
@media (prefers-reduced-motion: no-preference) { .busy > .wait { animation: spin .8s linear infinite; } }
@keyframes spin { to { rotate: 1turn; } }
/* food pictures: walk.js sizes and places the image; the soft copy fills whatever the whole dish does not */
.framed { position: absolute; inset: 0; overflow: hidden; }
.framed::before { content: ''; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(30px) brightness(.6) saturate(1.4); }
.framed > img { position: absolute; max-width: none; width: 100%; height: 100%; object-fit: cover; }
.film { --on: #fff; --field: #000; }
.tap { position: absolute; inset: 0; width: 100%; }
.tap:focus-visible { outline-offset: -6px; }

.words { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 8px; display: grid; gap: 4px; justify-items: start; pointer-events: none; transition: opacity 1s; }
.words > * { pointer-events: auto; }
.words p { max-width: 38ch; }
.words .line { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.28; }
.words .meta { font-weight: 700; }
.num { line-height: .76; color: var(--pop); }

.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.step { min-height: 48px; padding: 10px 22px; border-radius: 999px; background: var(--on); color: var(--field); font-weight: 800; font-size: 16px; transition: transform .25s var(--out); }
.step:hover { transform: translateY(-2px); }
.step:active { transform: scale(.97); }
.maplink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15px; text-underline-offset: 6px; }
.send { display: inline-grid; place-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.send svg { width: 20px; height: 20px; }
.abroad { padding: 1px 8px; border-radius: 999px; background: var(--char); color: var(--cream); font-size: .85em; }

/* ---- feed: food */
.moment.food { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.moment.food .shot { position: relative; inset: auto; min-height: 0; }
.food .words { position: static; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; align-items: end; padding: 8px 18px 6px; }
.food .words > :not(.num, h2, .price) { grid-column: 1 / -1; }
.food .num { grid-row: span 2; align-self: center; font-size: clamp(54px, min(34cqw, 17cqh), 150px); }
.food .words h2 { align-self: end; font-size: clamp(20px, min(7.4cqw, 3.8cqh), 42px); }
.food .words:not(:has(.num)) h2 { grid-column: 1 / -1; }
.food .words .price { grid-column: 2; align-self: start; font: 800 clamp(24px, min(13cqw, 6.4cqh), 58px)/1 'Walk Display'; font-stretch: 75%; color: var(--pop); }
.food .words .price.none { font: 700 clamp(13px, 2.2cqh, 18px)/1.4 'Walk Text'; color: var(--on); }
.food .words .line { margin-top: 6px; font-size: clamp(14px, min(5.4cqw, 2.5cqh), 22px); }
.food .words .meta { font-size: clamp(11px, 1.7cqh, 14px); }
.food .acts .step, .film .acts .step { min-height: 44px; padding: 8px 0; border-radius: 0; background: none; color: var(--pop); font-size: 15px; text-decoration: underline; text-underline-offset: 6px; }
.food .acts { width: 100%; }
.headline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* still read aloud; never over a burger */
/* how much wording a picture leaves room for (walk.js picks 0, 1 or 2 for each one) */
.moment.food[data-words='1'] .words .line { margin-top: 2px; -webkit-line-clamp: 2; }
.moment.food[data-words='1'] .words .meta { display: none; }
.moment.food[data-words='1'] .words .num { font-size: clamp(48px, min(24cqw, 12cqh), 110px); }
.moment.food[data-words='2'] .words { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; padding: 4px 14px; }
.moment.food[data-words='2'] .words .num { font-size: clamp(40px, min(17cqw, 9cqh), 80px); }
.moment.food[data-words='2'] .words h2 { font-size: clamp(18px, min(6cqw, 3.4cqh), 30px); }
.moment.food[data-words='2'] .words .price { font-size: clamp(18px, min(7cqw, 4cqh), 32px); }
.moment.food[data-words='2'] .words .line, .moment.food[data-words='2'] .words .meta { display: none; }
.moment.food[data-words='2'] .words .acts { grid-column: 3; grid-row: 1 / span 2; width: auto; align-self: center; flex-wrap: nowrap; gap: 12px; }
.moment.food[data-words='2'] .acts .step { font-size: 13px; }
.moment.food[data-words='2'] .words:not(:has(.num)) h2 { grid-column: 1 / 3; grid-row: 1; }

/* ---- feed: the countdown. Pictures arrive their own way; words lie over the foot */
.moment.reel { --field: #0b0604; --on: #fff; --pop: var(--mustard); }
.reel__stage { position: absolute; inset: 0; overflow: hidden; }
.reel__stage::after { content: ''; position: absolute; z-index: 1; inset: auto 0 0; /* under the words, which sit at 2 */ height: 30cqh; background: linear-gradient(transparent, rgb(0 0 0 / .85)); }
.cut { position: absolute; inset: 0; overflow: hidden; }
.cut::before { content: ''; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(34px) brightness(.55) saturate(1.5); }
.cut .framed::before { display: none; } /* the cut already has its soft copy behind everything */
.reel .tap { position: absolute; inset: 0; z-index: 1; }
.reel .words { z-index: 2; pointer-events: none; text-shadow: 0 2px 14px rgb(0 0 0 / .85); }
.reel__mark { display: flex; align-items: center; gap: 16px; }
.reel__mark .num { font-size: clamp(48px, min(34cqw, 16cqh), 150px); }
.reel__mark .what { display: grid; gap: 2px; }
.reel__mark b { font: 800 clamp(20px, min(8cqw, 3.8cqh), 40px)/1 'Walk Display'; font-stretch: 75%; }
.reel__mark .price { font: 800 clamp(20px, min(12cqw, 5.8cqh), 54px)/1 'Walk Display'; font-stretch: 75%; color: var(--mustard); }
.reel .words h2 { font-size: clamp(15px, 2.4cqh, 22px); }
.reel .words .line { display: none; }
.moment.reel[data-words='1'] .words h2, .moment.reel[data-words='2'] .words h2 { display: none; }
.moment.reel[data-words='2'] .reel__mark .num { font-size: clamp(40px, 11cqh, 70px); }
.moment.reel[data-words='2'] .reel__mark .what { display: flex; align-items: baseline; gap: 12px; }
.moment.reel[data-words='2'] .reel__mark b { font-size: 20px; }
.moment.reel[data-words='2'] .reel__mark .price { font-size: 24px; }
.moment.reel[data-words='2'] .reel__stage::after { height: 22cqh; }

/* ---- feed: films */
.film .words h2, .film .words p { text-shadow: 0 2px 14px rgb(0 0 0 / .7); }
.film .words h2 { font-size: clamp(22px, min(8.4cqw, 4.6cqh), 46px); }
.film .words .line { display: none; }
.film .words .meta { color: var(--soft); font-size: clamp(11px, 1.7cqh, 14px); }
.film .words .acts { width: 100%; }
.film .acts .step { color: var(--accent); }

/* every whole clip of a night or place, chosen from a row of pictures */
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.strip button { flex: none; width: 64px; display: grid; justify-items: center; align-content: start; gap: 1px; scroll-snap-align: start; font-size: 11px; font-weight: 800; line-height: 1.2; color: rgb(255 244 226 / .85); }
.strip img { width: 64px; height: 52px; object-fit: cover; border-radius: 10px; opacity: .7; background: rgb(255 244 226 / .18); }
.strip b { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip small { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .85; }
.strip [aria-current='true'] { color: var(--mustard); }
.strip [aria-current='true'] img { opacity: 1; outline: 3px solid var(--mustard); outline-offset: -3px; }
.film.has-strip { --strip: 98px; }
.moment.film > .strip { position: absolute; z-index: 3; inset: auto 0 4px; padding: 0 18px; }
.moment.film.has-strip .words { bottom: var(--strip); }
.film .acts button.maplink { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
/* watching a whole clip: nothing lies over it, and it keeps its own play bar */
.watching .shot > video { opacity: 1; }
.watching .shot::after, .watching .tap { display: none; }
.moment.film.watching { display: grid; grid-template: minmax(0, 1fr) auto auto / minmax(0, 1fr); background: #000; }
.moment.film.watching .shot { position: relative; inset: auto; grid-area: 1 / 1; min-height: 0; }
.moment.film.watching .shot > img, .moment.film.watching .shot > video { object-fit: contain; }
.moment.film.watching .words { position: static; grid-area: 2 / 1; padding: 6px 18px; max-width: none; }
.moment.film.watching .words h2 { font-size: clamp(17px, 2.8cqh, 26px); }
.moment.film.watching .words .line { display: -webkit-box; -webkit-line-clamp: 2; font-size: 13px; }
.moment.film.watching .words .meta { display: none; }
.moment.film.watching > .strip { position: static; grid-area: 3 / 1; padding-bottom: 4px; }
.moment.film.watching .acts { flex-wrap: nowrap; gap: 12px; }
.moment.film.watching .acts .step, .moment.film.watching .acts .maplink { font-size: 13px; }
body:has(.moment.here.watching) .now { display: none; } /* the clip has its own sound and pause */
/* on a short screen the clip gets the room, not its note */
@container (max-height: 640px) { .moment.film.watching .words .line { display: none; } }

.side { position: absolute; z-index: 2; right: 8px; bottom: 16px; display: grid; gap: 4px; transition: opacity 1s; }
.side button { display: grid; justify-items: center; gap: 2px; min-width: 60px; min-height: 48px; padding: 4px 2px; border-radius: 16px; font-size: 11.5px; font-weight: 800; }
.side button[aria-pressed='true'] { color: var(--pop); }
.side button[aria-pressed='true'].keep svg, .keepers [aria-pressed='true'].keep svg { fill: currentColor; }
.keepers button { gap: 8px; }

/* ---- pick your side */
.versus { --field: #ffbe1a; --on: #17090a; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: min(14px, 2cqh); padding: 8px 14px; text-align: center; }
.versus h2 { font-size: clamp(24px, min(11cqw, 7cqh), 76px); }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 900px); }
.duel button { display: grid; gap: 6px; align-content: start; color: var(--on); min-width: 0; }
.duel figure { position: relative; height: min(56cqh, 64cqw); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 34px rgb(0 0 0 / .3); transition: transform .3s var(--out), opacity .3s; }
.duel button:hover:not(:disabled) figure { transform: translateY(-6px) rotate(-1deg); }
.duel button:disabled { cursor: default; }
.duel b { font: 800 clamp(16px, min(5.4cqw, 3.6cqh), 34px)/1 'Walk Display'; font-stretch: 75%; }
.duel .lost figure { opacity: .45; }
.duel .picked figure { box-shadow: 0 0 0 6px #9c1206; }
.duel .badge { position: absolute; z-index: 1; left: 0; bottom: 0; padding: 0 12px 4px; background: var(--char); color: var(--mustard); border-radius: 0 14px 0 0; font: 800 clamp(32px, 8cqh, 56px)/1 'Walk Display'; font-stretch: 75%; }
.answer { min-height: min(100px, 15cqh); display: grid; justify-items: center; align-content: start; gap: 6px; font-weight: 800; font-size: clamp(13px, 2.2cqh, 17px); max-width: 44ch; }
.versus .step { background: var(--char); color: var(--cream); min-height: 44px; }
.crowd { display: block; font-weight: 600; }
.crowd:empty { display: none; }
.versus h3 { font-size: clamp(22px, min(9cqw, 6.5cqh), 52px); max-width: 14ch; }
.crowdboard { width: min(100%, 560px); font-size: clamp(12px, 2cqh, 17px); text-align: left; }
.crowdboard h4 { margin: 0 0 .5em; text-align: center; }
.crowdboard ol { width: max-content; max-width: 100%; margin: 0 auto; padding-left: 1.6em; display: grid; gap: .3em; }
.crowdboard li b { margin-right: .5em; }
.again { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.end .privacy { max-width: 34ch; font-size: 13px; color: var(--soft); }
.end .privacy[hidden] { display: none; }

/* ---- the table */
.table { --field: #fff4e2; --on: #17090a; display: flex; flex-direction: column; gap: min(12px, 1.6cqh); padding: 10px 12px; }
.table h2 { font-size: clamp(24px, min(10cqw, 7cqh), 72px); }
.moment.table:not(.track > *) h2 { padding-right: 0; }
.tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tiles button { position: relative; overflow: hidden; border-radius: 10px; min-height: 0; }
.under { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; flex: none; }
.under > * { flex: none; }
.table .step { min-height: 44px; padding-block: 6px; }
.watch { min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font-weight: 800; }

.end { --field: var(--char); display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.end h2 { font-size: clamp(32px, min(14cqw, 10cqh), 64px); }

.tabs { grid-area: 2 / 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); transition: opacity 1.2s; }
.tabs button { font-size: 14px; font-weight: 800; color: rgb(255 244 226 / .65); }
.tabs button[hidden] { display: none; }
.tabs [aria-current='true'] { color: var(--cream); text-decoration: underline 3px var(--mustard); text-underline-offset: 8px; }

/* one hint at a time, for a first visit */
.hint { position: fixed; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--char); font-weight: 800; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }
.hint[hidden] { display: none; }
.hint.swipe { left: 16px; top: calc(48px + env(safe-area-inset-top)); pointer-events: none; } /* under the name, off the dish */
.hint.hear { right: 10px; top: calc(60px + env(safe-area-inset-top)); }
@media (prefers-reduced-motion: no-preference) { .hint.swipe svg { animation: nudge 1.1s ease-in-out infinite alternate; } }
@keyframes nudge { to { translate: 0 -7px; } }

/* ---- a feed wider than it is tall: words beside the picture */
@media (min-aspect-ratio: 6/5) and (max-width: 899px), (min-aspect-ratio: 6/5) and (max-height: 479px) {
  :root { --tabs: 40px; }
  .moment.food { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(220px, 42cqw); }
  .moment.food .words { align-content: center; padding: 8px 16px; overflow: hidden; }
  .food .num { font-size: clamp(44px, 22cqh, 130px); }
  .food .words h2 { font-size: clamp(18px, 8cqh, 40px); }
  .food .words .price { font-size: clamp(22px, 12cqh, 52px); }
  .food .words .line { font-size: clamp(13px, 4.6cqh, 20px); }
  .moment.food[data-words='2'] .words { grid-template-columns: auto minmax(0, 1fr); }
  .moment.food[data-words='2'] .words .acts { grid-column: 1 / -1; grid-row: auto; }
  .reel__stage { right: 40cqw; }
  .reel__stage::after { display: none; }
  .reel .words { left: 62cqw; top: 0; bottom: 0; align-content: center; }
  .reel__mark .num { font-size: clamp(44px, 24cqh, 140px); }
  .moment.film .shot > img, .moment.film .shot > video { object-fit: contain; }
  .moment.film .shot::before { content: ''; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(26px) brightness(.5) saturate(1.3); }
  .moment.film .shot::after { inset: 0 45% 0 0; background: linear-gradient(90deg, rgb(0 0 0 / .85), transparent); }
  .moment.film .words { right: auto; max-width: 34cqw; top: 0; align-content: center; }
  .film .words h2 { font-size: clamp(20px, 9cqh, 40px); }
  .film.has-strip { --strip: 66px; }
  .strip img { height: 38px; }
  .strip small { display: none; }
  .moment.film.watching { grid-template: minmax(0, 1fr) auto / minmax(0, 1fr) 40cqw; }
  .moment.film.watching .shot { grid-area: 1 / 1 / 3 / 2; }
  .moment.film.watching .words { grid-area: 1 / 2; align-self: end; align-content: end; }
  .moment.film.watching > .strip { grid-area: 2 / 2; }
  .versus { gap: 4px; }
  .versus h2 { font-size: clamp(20px, 9cqh, 40px); }
  .duel { width: min(100%, 150cqh); }
  .duel figure { height: 54cqh; }
  .answer { min-height: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
  .tiles { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}

/* ---- wide: chapters, a solid bar above, a rail beside, nothing laid over the content */
@media (min-width: 900px) and (min-height: 480px) and (min-aspect-ratio: 6/5) {
  :root { --bar: clamp(54px, 9vh, 78px); --rail: clamp(58px, 5.5vw, 92px); }
  .app { grid-template: var(--bar) minmax(0, 1fr) / minmax(0, 1fr) var(--rail); }
  .top { position: static; grid-area: 1 / 1 / 2 / 3; gap: clamp(16px, 3vw, 40px); padding: 0 clamp(14px, 2vw, 32px); background: var(--char); }
  .brand, body:not(.first) .brand { visibility: visible; font-size: clamp(22px, 4.4vh, 34px); }
  .tabs, .now, .where, .hint { display: none; }
  .chapters { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .chapters button { flex: none; min-height: 40px; padding: 0 clamp(10px, 1.2vw, 18px); border-radius: 999px; font-weight: 800; }
  .chapters [aria-current='true'] { background: var(--cream); color: var(--char); }
  .walk { grid-area: 2 / 1; }
  .pager { grid-area: 2 / 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; background: var(--char); min-height: 0; }
  .pager > button { flex: none; display: grid; place-content: center; width: 44px; height: 44px; border-radius: 50%; }
  .pager .back { box-shadow: inset 0 0 0 2px rgb(255 244 226 / .35); }
  .pager .on { background: var(--mustard); color: var(--char); }
  /* one dot for every section, with its name */
  .dots { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: min(12px, 1.6vh); overflow: hidden; }
  .dots button { display: grid; justify-items: center; gap: 4px; min-height: 36px; padding: 2px 3px; font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; color: rgb(255 244 226 / .65); }
  .dots button::before { content: ''; width: 10px; height: 10px; border-radius: 10px; background: rgb(255 244 226 / .4); transition: width .25s var(--out), background-color .25s; }
  .dots button:hover { color: var(--cream); }
  .dots [aria-current='true'] { color: var(--cream); }
  .dots [aria-current='true']::before { width: 28px; background: var(--mustard); }
  .coming { flex: none; min-height: 1.4em; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--soft); }
  body.calm .pager .on { background: var(--cream); }
  body.calm .dots [aria-current='true']::before { background: var(--cream); }

  /* each chapter holds still while the scroll steps through it: one step, one burger, film or page */
  .track { position: relative; }
  .track > .moment { position: sticky; top: 0; height: var(--view); scroll-snap-align: none; }
  .track > .snap { position: absolute; left: 0; width: 1px; height: var(--view); scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }

  .moment.board { display: grid; grid-template: minmax(0, 1fr) / clamp(176px, 19cqw, 330px) minmax(0, 1fr) clamp(280px, 31cqw, 600px); transition: background-color .4s var(--out); }
  .ladder { display: flex; flex-direction: column; justify-content: center; gap: .6cqh; min-height: 0; padding: 1.6cqh 8px 1.6cqh 14px; }
  .ladder button { flex: 1 1 0; min-height: 0; max-height: 96px; display: grid; grid-template: minmax(0, 1fr) / auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: .5cqh 8px; border-radius: 14px; text-align: left; overflow: hidden; }
  .ladder button:hover { background: rgb(0 0 0 / .12); }
  .ladder [aria-current='true'], .ladder [aria-current='true']:hover { background: var(--on); color: var(--field); }
  .ladder .place { font: 800 clamp(18px, 4.4cqh, 34px)/1 'Walk Display'; font-stretch: 75%; text-align: center; min-width: .8em; }
  .ladder img { width: clamp(30px, 8cqh, 60px); aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
  .ladder b { display: block; font-size: clamp(12px, 2.3cqh, 17px); line-height: 1.15; }
  .ladder small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(11px, 1.8cqh, 13px); }
  .moment.food.board .shot { position: relative; inset: auto; }
  .moment.food.board .words { position: static; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: clamp(4px, 1.6cqh, 16px); min-height: 0; padding: 1.6cqh clamp(14px, 2cqw, 36px); overflow: auto; scrollbar-width: thin; }
  .board .headline { position: static; width: auto; height: auto; clip-path: none; font-size: clamp(24px, min(6cqh, 3cqw), 52px); }
  .board .title { display: flex; align-items: flex-end; gap: 16px; }
  .board .num { font-size: clamp(60px, 15cqh, 160px); }
  .board .words h2:not(.headline) { font-size: clamp(26px, min(7cqh, 3.8cqw), 68px); }
  .board .words .line { -webkit-line-clamp: 3; font-size: clamp(14px, 2.7cqh, 21px); max-width: 46ch; }
  .board .facts { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1cqh 14px; width: 100%; padding: 1.2cqh 0; border-block: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
  .board .facts dt, .board .say h3 { color: var(--pop); font-weight: 800; }
  .board .facts dd { font-size: clamp(18px, 3.6cqh, 30px); }
  .board .say h3 { font-size: clamp(15px, 2.6cqh, 22px); margin: 0; }
  .board .say p, .board .review { color: inherit; font-size: clamp(13px, 1.9cqh, 16px); max-width: 52ch; }
  .board .review { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .board .count { font-size: 13px; font-weight: 700; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font-weight: 800; text-decoration: none; }
  .board .step { min-height: 44px; }
  .board .side { position: static; display: flex; }
  @container (max-height: 700px) { .board .review, .board .count { display: none; } }
  @container (max-height: 520px) { .board .headline, .board .say p { display: none; } .board .say h3 { display: none; } }

  .versus { padding: 2cqh 3cqw; }
  .versus h2 { font-size: clamp(32px, 10cqh, 96px); }
  .duel { gap: 3cqw; width: auto; grid-template-columns: repeat(2, min(40cqw, 78cqh)); }
  .duel figure { height: 56cqh; }

  .table { padding: 2cqh 3cqw; }
  .tiles { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1.2cqh; }
  @container (min-aspect-ratio: 3/2) { .tiles { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); } } /* upright tiles suit upright photos */

  /* nights and places: one film as large as the window allows, its words beside it, and what is next */
  .moment.stage { --field: var(--char); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr) clamp(180px, 20cqw, 360px); gap: 2cqw; padding: 2cqh 1.6cqw; isolation: isolate; }
  .stage::before { content: ''; position: absolute; z-index: -1; inset: -60px; background: var(--bg) center / cover; filter: blur(50px) brightness(.42) saturate(1.4); }
  .stagebox { position: relative; min-height: 0; min-width: 0; container-type: size; }
  .stage .film { display: grid; height: 100cqh; grid-template: minmax(0, 1fr) auto auto / minmax(0, 1fr) auto; column-gap: 3cqw; padding-left: 2cqw; }
  /* the row of whole clips sits under the words, so the film keeps the full height */
  .stage .film > .strip { grid-column: 1; grid-row: 3; min-width: 0; padding-top: 1.4cqh; }
  .stage .strip button { width: clamp(70px, 7cqw, 112px); font-size: 12px; }
  .stage .strip img { width: 100%; height: clamp(40px, 8.5cqh, 76px); }
  .stage .film.has-strip { --strip: calc(clamp(40px, 8.5cqh, 76px) + 42px); }
  .stage .film .shot { position: relative; inset: auto; grid-column: 2; grid-row: 1 / -1; align-self: center; height: min(100cqh, 100cqw); aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); background: #000; }
  .stage .film .shot::after { display: none; }
  .stage .film .progress { inset: auto 0 0; }
  .stage .film .words { position: static; grid-column: 1; grid-row: 1; align-self: center; gap: 2cqh; min-width: 0; }
  .stage .film .words h2 { font-size: clamp(28px, min(11cqh, 6cqw), 100px); }
  .stage .film .words .line { display: block; font-size: clamp(14px, 3cqh, 22px); }
  .stage .film .words .meta { font-size: clamp(12px, 2.2cqh, 15px); }
  .stage .film .acts .step { min-height: 44px; padding: 8px 22px; border-radius: 999px; background: var(--accent); color: var(--char); text-decoration: none; }
  .stage .film .side { position: static; grid-column: 1; grid-row: 2; justify-self: start; display: flex; }
  /* a film made wide for this arrangement fills the stage, with its words on its foot */
  .stage .film.land { display: block; position: relative; padding: 0; --h: calc(100cqh - var(--strip, 0px)); }
  .stage .film.land .shot { position: absolute; inset: 0 0 var(--strip, 0px); margin: auto; width: min(100cqw, var(--h) * 1.7778); height: auto; aspect-ratio: 16 / 9; }
  .stage .film.land .shot::after { display: block; border-radius: 18px; }
  .stage .film.land .words { position: absolute; left: max(18px, calc((100cqw - min(100cqw, var(--h) * 1.7778)) / 2 + 22px)); right: 40%; bottom: calc(var(--strip, 0px) + max(64px, (var(--h) - min(var(--h), 56.25cqw)) / 2 + 64px)); }
  .stage .film.land .words h2 { font-size: clamp(24px, min(8cqh, 4cqw), 64px); }
  .stage .film.land .words .line { display: none; }
  .stage .film.land .side { position: absolute; left: max(10px, calc((100cqw - min(100cqw, var(--h) * 1.7778)) / 2 + 12px)); bottom: calc(var(--strip, 0px) + max(6px, (var(--h) - min(var(--h), 56.25cqw)) / 2 + 6px)); }
  .stage .film.land > .strip { position: absolute; inset: auto 0 0; justify-content: safe center; }
  .queue { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: thin; list-style: none; transition: opacity 1s; }
  .queue h2 { font-size: clamp(20px, 4.6cqh, 32px); }
  .queue button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 5px; border-radius: 12px; text-align: left; }
  .queue button:hover { background: rgb(255 255 255 / .14); }
  .queue [aria-current='true'], .queue [aria-current='true']:hover { background: var(--cream); color: var(--char); }
  .queue img { width: clamp(30px, 6cqh, 52px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
  .queue b { display: block; line-height: 1.15; font-size: 14px; }
  .queue small { display: block; font-size: 12px; opacity: .85; }
  .stage .film[data-wild='true'] .acts .step { background: none; color: var(--cream); box-shadow: inset 0 0 0 2px rgb(255 244 226 / .5); }

  .end { min-height: 100%; }
}
/* the pointer keeps its normal shape; over a picture a small label says what a click does */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor.on { display: block; position: fixed; z-index: 30; left: 0; top: 0; translate: var(--mx, -99px) var(--my, -99px); margin: 18px 0 0 18px; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--char); font-weight: 800; font-size: 13px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
}

/* ---- movement */
@media (prefers-reduced-motion: no-preference) {
  .moment.here .words h2 { animation: rise .8s var(--out) both; }
  .moment.here .num { animation: slam .7s var(--out) both; }
  /* a still dish is kept alive: it lands, then breathes, never past the framing that shows all of it */
  body:not(.still) .moment.here.food .framed > img { transform-origin: var(--ox, 50%) var(--oy, 50%); animation: land .7s var(--out) both, breathe 4.5s .7s ease-in-out infinite alternate; }
  body:not(.still) .moment.here.food .shot::before { content: ''; position: absolute; z-index: 1; inset: -20% -60%; background: linear-gradient(105deg, transparent 44%, rgb(255 244 214 / .22) 50%, transparent 56%); pointer-events: none; animation: sheen 5.5s .6s ease-in-out infinite; }
  body:not(.still) .cut:last-child.fx0 { animation: punch .55s var(--out) both; }
  body:not(.still) .cut:last-child.fx1 { animation: wipe .55s var(--out) both; }
  body:not(.still) .cut:last-child.fx2 { animation: lift .6s var(--out) both; }
  body:not(.still) .cut:last-child.fx3 { animation: iris .65s var(--out) both; }
  body:not(.still) .cut:last-child .framed > img { animation: drift 1.6s linear both; }
  body:not(.still) .reel__mark .num { animation: slam .45s var(--out) both; }
  .stage.here .film .shot { animation: unveil .65s var(--out) both; }
  .tiles button { animation: turn .65s var(--out) both; animation-delay: calc(var(--i) * 45ms); }
  .moment.here[data-wild='true'] .words h2 { animation: fade 1.6s ease both; }
}
@keyframes land { from { transform: scale(.86) rotate(-1.4deg); } to { transform: scale(.955); } }
@keyframes breathe { from { transform: scale(.955); } to { transform: scale(1) rotate(.25deg); } }
@keyframes sheen { from { translate: -45% 0; } 45%, to { translate: 45% 0; } }
@keyframes punch { from { transform: scale(1.18) rotate(2deg); opacity: 0; } }
@keyframes wipe { from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); } to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); } }
@keyframes lift { from { transform: translateY(100%) skewY(6deg); } }
@keyframes iris { from { clip-path: circle(0 at 50% 55%); } to { clip-path: circle(120% at 50% 55%); } }
@keyframes drift { from { transform: scale(.97); } }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(26px); } to { clip-path: inset(-20% -10% -20% -10%); transform: none; } }
@keyframes slam { from { transform: scale(1.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes unveil { from { clip-path: polygon(0 100%, 100% 82%, 100% 100%, 0 100%); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes turn { from { transform: perspective(900px) rotateY(-88deg) scale(.85); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---- a finished film waits before the walk moves on, with the time left shown */
.upnext { position: fixed; z-index: 7; left: 50%; top: calc(58px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 6px 6px 9px 16px; border-radius: 18px; overflow: hidden; background: rgb(18 10 6 / .9); color: var(--cream); font-weight: 800; font-size: 13px; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }
.upnext[hidden] { display: none; }
.upnext .stay { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cream); color: var(--char); font-weight: 800; }
.upnext i { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--mustard); transform-origin: left; animation: fill var(--wait) linear both; }
@keyframes fill { from { transform: scaleX(0); } }
@media (min-width: 900px) and (min-height: 480px) and (min-aspect-ratio: 6/5) { .upnext { top: calc(var(--bar) + 12px); } }
@media (prefers-reduced-motion: no-preference) {
  /* quiet invitations: the sound button rings a few times while there is something to hear and it is off */
  body.loud:not(.sounding) .now [data-sound], body:not(.sounding) .stage.here .side [data-sound] { animation: ring 1.8s ease-out 1s 4; }
  /* a night or place just reached: the first whole clip lifts, twice; when the film ends, the row waves */
  .here.film:not(.watching) .strip button:nth-child(2), .stage.here .film:not(.watching) .strip button:nth-child(2) { animation: nudge .5s ease-in-out 2.5s 4 alternate; }
  .film.ended .strip button { animation: nudge .55s ease-in-out 6 alternate; }
  .film.ended .strip button:nth-child(2n) { animation-delay: .12s; }
  .film.ended .strip button:nth-child(3n) { animation-delay: .24s; }
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgb(255 190 26 / .95); } 75%, 100% { box-shadow: 0 0 0 16px rgb(255 190 26 / 0); } }

/* ---- places are calm everywhere: no colour tint, slow arrivals, and everything around them steps back */
.moment.quiet .shot::after { opacity: .3; }
.moment.quiet .words > :not(h2) { opacity: 0; }
.moment.quiet .words h2 { opacity: .55; transition: opacity 1s; }
.moment.quiet .side, .moment.quiet .queue, .moment.quiet .strip { opacity: .14; }
.moment.quiet:focus-within .words > *, .moment.quiet:focus-within .side, .moment.quiet:focus-within .queue, .moment.quiet:focus-within .strip, .queue:hover, .strip:hover { opacity: 1 !important; }
.strip { transition: opacity 1s; }
.film[data-wild='true'] .acts .step { color: var(--cream); }
body.calm .tabs [aria-current='true'] { text-decoration-color: rgb(255 244 226 / .7); }
body.hushed .tabs, body.hushed .now { opacity: .25; }
body.hushed .tabs:focus-within, body.hushed .now:focus-within { opacity: 1; }

/* ---- details */
.story { width: min(1180px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: auto; border: 0; background: var(--char); color: var(--cream); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 900px) and (min-height: 640px) { .story { height: min(92dvh, 980px); border-radius: 22px; } }
.story::backdrop { background: rgb(10 4 0 / .85); }
@media (prefers-reduced-motion: no-preference) { .story[open] { animation: up .45s var(--out); } }
@keyframes up { from { transform: translateY(6%); opacity: .3; } }
.close { position: sticky; z-index: 5; top: 12px; float: right; margin: 12px 12px -60px 0; display: grid; place-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(0 0 0 / .75); }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sheet__shot { position: relative; height: 70dvh; background: #000; }
.sheet__shot > * { width: 100%; height: 100%; object-fit: cover; }
.sheet__shot > video { object-fit: contain; }
@media (min-width: 700px) and (min-aspect-ratio: 6/5) { .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sheet__shot { position: sticky; top: 0; height: min(100dvh, 980px); } }
.pad { padding: clamp(20px, 3.5vw, 48px); display: grid; gap: 18px; align-content: start; }
.pad h1 { font-size: clamp(36px, 5.4vw, 84px); }
.pad p { max-width: 62ch; color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.facts dt { font-size: 13px; color: var(--soft); }
.facts dd { font: 800 32px/1.05 'Walk Display'; font-stretch: 75%; }
.say h3 { font-size: 28px; color: var(--mustard); margin-bottom: 4px; }
.say p { color: var(--cream); font-size: 19px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.links a, .links button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 2px var(--mustard); }
.stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px; }
.stills img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.stills figcaption { padding: 10px 14px 20px; }
.stills figcaption p { color: var(--soft); }
.stills h3 { font-size: 28px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; padding: 0 4px; }
.wall button { aspect-ratio: 3 / 4; overflow: hidden; }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.big img { width: 100%; max-height: 72dvh; object-fit: contain; background: #000; }
.next { position: relative; display: block; width: 100%; height: 46dvh; text-align: left; clear: both; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next span { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 90px 24px 24px; background: linear-gradient(transparent, rgb(0 0 0 / .9)); }
.next b { font: 800 clamp(32px, 6vw, 52px)/.95 'Walk Display'; font-stretch: 75%; }
.next small { font-size: 15px; font-weight: 800; color: var(--mustard); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--cream); color: var(--char); font-weight: 800; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.toast:empty { display: none; }
