/*
  The walk down Main Street.

  The street is a stage that stays on screen while the page scrolls past it:
  scrolling walks you along, from morning at the signpost to evening at the
  Millwright office. Layers move at different speeds (far rooftops slowest,
  the lamp posts in front fastest), so the street has depth.

  js/walk.js sets the measurements on .walk-stage:
    --u       pixels per drawing unit (every building is 280 units tall)
    --ground  where the pavement starts, from the top of the stage
  and the time of day as colours on .street-cam.

  html.walk-on is set in the page head unless the visitor prefers reduced
  motion; walk.js removes it if the animation library fails to load. Without
  it, the street is the plain row it always was.
*/

/* The motion curves are the site's own (css/styles.css). */

/* Lenis (smooth scrolling) needs these. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Without the walk: the street as a plain row ---------- */

html:not(.walk-on) [data-walk-only],
html:not(.walk-on) .walk-sky,
html:not(.walk-on) .walk-heavens,
html:not(.walk-on) .walk-far,
html:not(.walk-on) .walk-clouds,
html:not(.walk-on) .walk-ground,
html:not(.walk-on) .walk-near,
html:not(.walk-on) .walk-dusk,
html:not(.walk-on) .walk-hud,
html:not(.walk-on) .walk-caption,
html:not(.walk-on) .walk-progress,
html:not(.walk-on) .walk-cue { display: none; }

html:not(.walk-on) .walk-stage { position: relative; display: flex; flex-direction: column; }
html:not(.walk-on) .walk-intro { order: -1; }
html:not(.walk-on) .walk-intro { max-width: var(--wrap); margin-inline: auto; padding: clamp(36px, 6vw, 84px) var(--gut) clamp(28px, 4vw, 48px); }
html:not(.walk-on) .walk-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 13em; }
html:not(.walk-on) .walk-lead { margin-top: 22px; max-width: 34em; }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* ---------- The stage ---------- */

html.walk-on .street-view { overflow: visible; overflow-anchor: none; padding-bottom: 0; height: calc(var(--walk-vh, 100svh) + var(--walk-len, 5200px)); }
html.walk-on .street-tools { display: none; }

/* The ground line and the room under the scene are set when the street is measured, for
   the walk, and stay put: a phone's opening scene is that layout slid into the opening's
   places (js/walk.js), not laid out again. Left to inherit from the stage, a change
   restyled all 1,200 shapes of the street, so they are registered as not inherited, and
   js/walk.js writes them straight onto the stage and the nine layers that use them. A
   browser without @property inherits them as before. */
@property --ground { syntax: "*"; inherits: false; }
@property --scene-bottom { syntax: "*"; inherits: false; }
/* Until walk.js has measured, the layers take the stage's starting ground line. */
html.walk-on :is(.walk-heavens, .walk-stars, .walk-far, .walk-ground, .street-scroll) { --ground: 70svh; }

html.walk-on .walk-stage {
  --u: 1.6;
  --ground: 70svh;
  position: sticky; top: 0; height: var(--walk-vh, 100svh); overflow: clip;
  background: #cfe3da;
  isolation: isolate;
}

/* The stage already clips to this box. Keeping the camera on its own layer
   means stepping through a door starts without re-rastering the street. */
html.walk-on .street-cam { position: absolute; inset: 0; transform-origin: 50% 50%; contain: paint; will-change: transform; }

.walk-sky { position: absolute; inset: 0; background: linear-gradient(#f6e2bd, #cfe3da 70%); }

/* The scenery, rather than a rectangular sky crop, hides the setting bodies. */
.walk-heavens { position: absolute; left: 0; right: 0; top: 0; height: var(--ground); overflow: visible; isolation: isolate; pointer-events: none; }
.walk-sun, .walk-moon { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.walk-sun { width: clamp(64px, 7vw, 104px); aspect-ratio: 1; background: var(--mustard); border: var(--line) solid var(--ink); box-shadow: 0 0 0 var(--sun-halo-inner, 14px) rgba(227, 167, 47, 0.18), 0 0 0 var(--sun-halo, 30px) rgba(227, 167, 47, 0.08); }
/* Compact landscape suns keep their halo in proportion to the disc. */
@media (max-width: 759px) {
  .walk-sun { box-shadow: 0 0 0 var(--sun-halo-inner, 8px) rgba(227, 167, 47, 0.18), 0 0 0 var(--sun-halo, 12px) rgba(227, 167, 47, 0.08); }
}
/* Small drawn details travel with the sun; its wrapper owns the orbit. */
.walk-sun-art { position: absolute; inset: calc(var(--sun-line, var(--line)) * -1); width: calc(100% + var(--sun-line, var(--line)) * 2); height: calc(100% + var(--sun-line, var(--line)) * 2); overflow: visible; }
.walk-sun-rays { fill: none; stroke: var(--ink); stroke-width: var(--sun-ray-stroke, 2px); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.walk-sun-shade { fill: var(--brick); opacity: 0.16; }
.walk-sun-highlight { fill: none; stroke: var(--mustard-wash); stroke-width: 5; stroke-linecap: round; }
.walk-moon { width: clamp(44px, 4.6vw, 70px); aspect-ratio: 1; background: #fff6dc; border: var(--line) solid var(--ink); opacity: 0; box-shadow: 0 0 0 16px rgba(255, 246, 220, 0.08); }
.walk-moon::before, .walk-moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(34, 50, 44, 0.12); }
.walk-moon::before { width: 22%; height: 22%; left: 24%; top: 30%; }
.walk-moon::after { width: 14%; height: 14%; left: 58%; top: 56%; }
.walk-stars {
  position: absolute; inset: 0 0 auto; height: calc(var(--ground) - var(--u) * 150px); overflow: hidden; opacity: 0;
}
.walk-stars svg { display: block; width: 100%; height: 100%; fill: #fff6dc; }

/* Distant rooftops and hills: no outlines, paler as they recede. */
.walk-far { position: absolute; left: 0; right: 0; bottom: calc(100% - var(--ground)); height: calc(var(--u) * 200px); pointer-events: none; }
.walk-far-layer { position: absolute; left: 0; bottom: 0; height: 100%; display: flex; will-change: transform; }
.walk-far-layer svg { display: block; height: 100%; width: auto; max-width: none; flex: none; }

/* Both opaque bands paint after the isolated heavens: sun, moon and stars stay behind. */
.walk-clouds { --cloud-start: max(740px, 36vw); position: absolute; inset: 0 0 auto 0; height: 40%; isolation: isolate; pointer-events: none; }
.walk-clouds-track, .walk-cloud-band { position: absolute; inset: 0; }
.walk-cloud-band { will-change: transform; }
.walk-cloud { position: absolute; left: calc(var(--cloud-start) + var(--cloud-x)); top: max(var(--cloud-top, 86px), var(--cloud-y)); width: calc(clamp(92px, 11vw, 180px) * var(--cloud-size)); }
.walk-cloud svg { display: block; width: 100%; height: auto; overflow: visible; }
.walk-cloud path { fill: var(--cloud-fill, var(--white)); stroke: var(--cloud-stroke, var(--ink)); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.walk-cloud-band-far path { fill: var(--cloud-far-fill, #e5ede5); stroke: var(--cloud-far-stroke, #82958d); stroke-width: 1.4; }
@media (max-width: 759px) {
  .walk-clouds { --cloud-start: 32vw; }
}
/* Birds: a loose flock crossing the sky every 40 seconds, flapping out of step. */
.walk-birds { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.6s ease; }
.walk-flock { position: absolute; left: var(--cloud-start); top: calc(max(var(--cloud-top, 86px), 11svh) - 7svh); width: 12vw; opacity: 0; animation: flock 40s linear 1.4s infinite; will-change: transform, opacity; }
.walk-bird { position: absolute; left: var(--bx); top: var(--by); width: calc(clamp(14px, 1.3vw, 22px) * var(--bs)); }
.walk-bird svg { display: block; width: 100%; height: auto; overflow: visible; animation: flap 0.62s ease-in-out var(--bd) infinite alternate; transform-origin: 50% 70%; }
.walk-bird path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.35) translateY(1px); } }
@keyframes flock {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  4% { opacity: 1; }
  50% { opacity: 1; }
  56%, 100% { transform: translate3d(calc(104vw - var(--cloud-start)), -2vh, 0); opacity: 0; }
}
@media (max-width: 759px) {
  .walk-birds { display: none; }
}

/* Pavement and road. */
.walk-ground { position: absolute; left: 0; right: 0; top: var(--ground); bottom: 0; background: var(--paper-2); border-top: calc(var(--u) * 2.5px) solid var(--ink); }
/* On the walk the ground's colour and ink line are a layer of their own (js/walk.js),
   which a phone's opening lowers with the rest of the street. */
html.walk-on .walk-ground { background: none; border-top-color: transparent; }
.walk-ground-fill { position: absolute; inset: calc(var(--u) * -2.5px) 0 0; background: var(--paper-2); border-top: calc(var(--u) * 2.5px) solid var(--ink); will-change: transform; }
.walk-paving { position: absolute; left: 0; top: 0; height: calc(66% - var(--scene-bottom, 0px) * 0.66); pointer-events: none; will-change: transform; }
.walk-paving svg { display: block; width: 100%; height: 100%; max-width: none; overflow: hidden; }
/* Drawing-unit strokes scale with the shops; ink stays legible as the fills dim. */
.walk-paving path { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: miter; }
.walk-paving .pave-joints { opacity: 0.52; }
.walk-paving .pave-cracks { stroke-width: 1.15; opacity: 0.75; }
.walk-paving .pave-replaced { fill: var(--paper); opacity: 0.55; }
.walk-paving .pave-worn { fill: var(--ink); opacity: 0.035; }
.walk-paving .pave-kerb-face { fill: var(--ink); opacity: 0.13; }
.walk-paving .pave-kerb-top { fill: var(--white); opacity: 0.65; }
.walk-paving .pave-kerb-joints { opacity: 0.6; }
.walk-paving .pave-kerb-edge { stroke-width: 2.5; }
.walk-paving .pave-cover, .walk-paving .pave-drain { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.walk-paving .pave-metal { fill: var(--paper-2); }
.walk-paving .pave-cover-inset { fill: var(--paper); stroke-width: 1.1; }
.walk-paving .pave-cover path { stroke-width: 1.5; }
.walk-paving .pave-drain path { stroke-width: 1.8; }
.walk-road { position: absolute; left: 0; right: 0; bottom: 0; height: calc(34% + var(--scene-bottom, 0px) * 0.66); background: var(--ink); overflow: hidden; will-change: transform; }
.walk-road::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: #3a4a43; }
.walk-dashes { position: absolute; left: 0; top: calc(54% - var(--scene-bottom, 0px) * 0.54); width: calc(100% + 160px); height: 4px; background: repeating-linear-gradient(90deg, rgba(247, 240, 223, 0.55) 0 64px, transparent 64px 160px); will-change: transform; }
/* Near lane, behind the foreground. walk.js sizes the outlined silhouette
   to the street and keeps its roof clear of the pavement. */
.walk-van { position: absolute; left: 0; bottom: 6px; width: 0; visibility: hidden; z-index: 3; transform: translateX(-200%); will-change: transform; pointer-events: none; }
.walk-van .van-svg { display: block; width: 100%; height: auto; }
.walk-van .van-svg :where(rect, path, circle) { stroke-width: 1.25; }
.van-svg .van-body { fill: var(--green); fill: color-mix(in srgb, var(--green) 68%, var(--paper-2)); }
.walk-van .van-wheel { transform-box: fill-box; transform-origin: 50% 50%; }
.walk-van .van-well { fill: color-mix(in srgb, var(--ink) 70%, #000); stroke: none; }
.walk-van .van-wall { fill: none; stroke: color-mix(in srgb, var(--ink) 60%, var(--paper-2)); stroke-width: 0.6; }
.walk-van .van-rim { fill: var(--paper-2); stroke-width: 1; }
.walk-van .van-hole { fill: color-mix(in srgb, var(--ink) 80%, var(--paper-2)); stroke: none; }
.walk-van .van-hub { fill: var(--paper); stroke-width: 0.8; }
.walk-van .van-nut { fill: var(--ink); stroke: none; }

/* The street itself. Every piece is sized in drawing units, so it scales with the screen. */
html.walk-on .street-scroll { position: absolute; left: 0; right: 0; top: 0; height: var(--ground); overflow: visible; }
html.walk-on .street-scroll::before { display: none; }
html.walk-on .street-row {
  position: absolute; left: 0; bottom: calc(var(--u) * -8px);
  display: flex; align-items: flex-end;
  min-width: 0; max-width: none; margin: 0; padding: 0;
  will-change: transform;
}
html.walk-on .street-row > * { flex: none; width: calc(var(--w) * var(--u) * 1px); margin-right: calc(var(--u) * 8px); position: relative; }
html.walk-on .street-prop::after { display: none; }
html.walk-on .street-b { overflow: visible; border-radius: 0; }
html.walk-on .street-b:focus-visible { outline-offset: 6px; }
html.walk-on .street-label {
  position: absolute; left: 50%; top: calc(100% - var(--u) * 2px); transform: translateX(-50%);
  height: auto; padding: 0; background: none; border: 0; white-space: nowrap;
}
html.walk-on .street-name { background: var(--white); border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
html.walk-on .street-kind { display: none; }
html.walk-on .street-ws { text-decoration: none; color: inherit; }
html.walk-on .street-ws .street-name { background: var(--green); color: var(--white); }

/* The Millwright office: stone piers over a steel frame. */
.street-ws .office-stone, .street-ws .office-sill { fill: var(--paper-2); }
/* Brand charcoal separates the office from Accounting's bottle-green facade. */
/* Time-varying stone pigment keeps the charcoal and its shaded return in the scene palette. */
.street-ws .office-metal { fill: color-mix(in srgb, #1f1f1f 88%, var(--paper-2)); }
.street-ws .office-return { fill: color-mix(in srgb, #1f1f1f 96%, var(--paper-2)); }
.street-ws .office-edge { stroke: color-mix(in srgb, var(--paper-2) 40%, var(--ink)); stroke-width: 1.25; }
.street-ws .office-joints { stroke: var(--ink); stroke-width: 1.25; opacity: 0.75; }
.street-ws .office-lamp { fill: var(--white); stroke-width: 1; }
.street-ws .office-bar { fill: var(--paper-2); stroke-width: 1 !important; }
.is-evening .street-ws .office-lamp { fill: var(--lit); }
.street-ws .mw-mullion { stroke: color-mix(in srgb, #1f1f1f 88%, var(--paper-2)); stroke-width: 2; }
/* Furniture reads as quiet silhouettes against day glass and lit rooms alike. */
.street-ws :is(.mw-furn, .mw-desk, .mw-shelf, .mw-lampshade) { fill: color-mix(in srgb, var(--ink) 78%, var(--sky)); stroke: none; }
.street-ws .mw-desk { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.25; }
.street-ws .mw-leg { stroke: color-mix(in srgb, var(--ink) 78%, var(--sky)); stroke-width: 1.25; }
.street-ws .mw-shelf + .mw-leg { stroke: var(--paper-2); stroke-width: 1; }
.street-ws .mw-leaf { fill: var(--green); stroke: none; }
.street-ws .mw-pot { fill: var(--brick); stroke: none; }
.street-ws .mw-blind { fill: var(--paper-2); stroke: none; opacity: 0.9; }
.street-ws .mw-person { fill: color-mix(in srgb, var(--ink) 84%, var(--sky)); stroke: none; }
.street-ws .mw-sheet { fill: var(--white); stroke: color-mix(in srgb, var(--ink) 60%, var(--sky)); stroke-width: 0.5; }
/* The office's people and their props; walk.js poses them every frame. */
.street-ws .mw-hair { fill: color-mix(in srgb, var(--ink) 96%, var(--sky)); stroke: none; }
.street-ws .mw-actor .mw-far .mw-person { fill: color-mix(in srgb, var(--ink) 70%, var(--sky)); }
.street-ws .mw-mug { fill: var(--brick); stroke: none; }
.street-ws .mw-phone { fill: var(--ink); stroke: none; }
.street-ws .mw-screen { fill: color-mix(in srgb, var(--white) 55%, var(--sky)); stroke: none; }
.is-evening .street-ws .mw-screen { fill: #dceeff; }
.street-ws .mw-led { fill: color-mix(in srgb, var(--ink) 60%, var(--green)); stroke: none; }
.street-ws .mw-led.is-on { fill: #7fe08a; }

/* The rooftop sign: the supplied wordmark, given depth by stacked copies.
   By day its face is brand ink; at dusk the letters light in night ink.
   The diamond stays brand rust throughout. */
.street-ws .mw-glyph { stroke: none; fill: inherit; }
/* By day the face is brand ink. walk.js sets --sign-light (0 to 1, from the
   hour) and the pools of lamplight laid over the faces. */
.street-ws { --sign-light: 0; --sign-face: #1f1f1f; --sign-side: #918b7c; }
.street-ws .mw-face { fill: var(--sign-face); }
.street-ws .mw-pool-l { fill: url(#mw-pool-l); pointer-events: none; }
.street-ws .mw-pool-r { fill: url(#mw-pool-r); pointer-events: none; }
.street-ws .mw-side { fill: var(--sign-side); }
.street-ws .mw-beam { fill: url(#mw-beam); stroke: none; opacity: var(--sign-light); mix-blend-mode: screen; }
.street-ws .mw-lens { fill: color-mix(in srgb, #ffffff calc(var(--sign-light) * 100%), var(--white)); stroke-width: 1; }
.street-ws .mw-dot { fill: #ab4027; }
.street-ws .mw-dot-side { fill: color-mix(in srgb, #ab4027 55%, #1f1f1f); }
.street-ws .mw-truss { stroke: color-mix(in srgb, #1f1f1f 80%, var(--paper-2)); stroke-width: 1.6; }

/* Evening: the lights come on one building after another. */
html.walk-on .street-row .win, .walk-near .win { transition: fill 0.6s ease var(--wd, 0s); }
html.walk-on .is-evening .win { fill: var(--lit) !important; }

/* The shop you're standing at opens up. */
html.walk-on .street-b.is-here .win { fill: var(--lit) !important; transition-delay: 0s; }
html.walk-on .street-b.is-here { --door-angle: 62deg; --door-light: 1; }
html.walk-on .street-b.is-here .opensign { fill: var(--white) !important; }
html.walk-on .street-b.is-here .sign { animation: bounce 0.55s ease; }
html.walk-on .street-b.is-here .street-name { background: var(--mustard); color: var(--ink); }

/* Life on the street: small figures drawn in their host prop's units (walk.js). */
.walk-life { position: absolute; left: 0; bottom: calc(var(--u) * -8px); height: calc(var(--u) * 280px); width: 0; pointer-events: none; will-change: transform; }
.walk-life-item { position: absolute; display: block; }
.walk-life .life-svg { display: block; width: 100%; height: auto; overflow: visible; }
.walk-life .life-svg :where(path, circle) { stroke-width: 1.4; }
.walk-life .life-thin { stroke-width: 0.8; fill: none; }
.walk-life .life-dot { fill: var(--ink); stroke: none; }

/* People and animals drawn into their host prop's drawing (walk.js "Life on the street"). */
.life-cast :where(path, circle, ellipse) { stroke-width: 1.1; }
.life-cast .life-thin, .life-cast .lf-feature { fill: none; stroke-width: 0.55; }
.life-cast .lf-eye, .walk-cyclist .lf-eye { fill: var(--ink); stroke: none; }
.life-cast .lf-glint { fill: var(--white); stroke: none; }
.life-cast .lf-grey { fill: color-mix(in srgb, var(--paper-2) 72%, var(--ink-soft)); stroke-width: 0.6; }
.life-cast .lf-glasses { fill: none; stroke-width: 0.5; }
.life-cast .lf-hair { fill: var(--ink-soft); stroke-width: 0.6; }
.life-cast .lf-trouser { fill: var(--ink-soft); }
.life-cast .lf-trouser.lf-far { fill: color-mix(in srgb, var(--ink-soft) 70%, var(--ink)); }
.life-cast .lf-uniform { fill: var(--sky); }
.life-cast .lf-uniform.lf-far { fill: color-mix(in srgb, var(--sky) 72%, var(--ink)); }
.life-cast .lf-strap { fill: none; stroke: var(--brick-deep); stroke-width: 1.1; }
.life-cast .lf-leather { fill: color-mix(in srgb, var(--brick) 70%, var(--ink)); stroke-width: 0.8; }
.life-cast .lf-letter { fill: var(--white); stroke-width: 0.5; }
/* Jointed limbs: the outline is painted under the fill, so joints read as one shape. */
.life-cast .lf-limb.lf-limb { paint-order: stroke; stroke-width: 2.1; }
.walk-cyclist .lf-limb.lf-limb { paint-order: stroke; stroke-width: 1.3; }

/* The reader's paper; a turning page darkens as it goes edge-on. */
.life-reader .lf-page { fill: var(--white); stroke-width: 0.7; }
.life-reader .lf-head { fill: var(--ink); stroke: none; }
.life-reader .lf-photo { fill: var(--sky); stroke-width: 0.35; }
.life-reader .lf-text { fill: none; stroke-width: 0.38; opacity: 0.6; }
.life-reader .lf-fold { stroke-width: 0.5; opacity: 0.45; }
.life-reader .lf-shade { fill: var(--ink); stroke: none; }
.life-reader .lf-cup { fill: var(--white); stroke-width: 0.8; }
.life-reader .lf-steam { fill: none; stroke: var(--ink-soft); stroke-width: 0.7; opacity: 0; animation: lf-steam 3.6s ease-in-out infinite; }
.life-reader .lf-steam-b { animation-delay: -1.8s; }
@keyframes lf-steam { 0% { opacity: 0; transform: translateY(2px); } 35% { opacity: 0.4; } 100% { opacity: 0; transform: translateY(-4px); } }

.life-cat .lf-ginger { fill: var(--mustard); stroke-width: 0.9; }
.life-cat .lf-ginger.lf-far { fill: color-mix(in srgb, var(--mustard) 72%, var(--brick)); }
.life-cat .lf-cream-fur { fill: var(--paper); stroke: none; }
.life-cat .lf-stripe { fill: none; stroke: color-mix(in srgb, var(--mustard) 40%, var(--brick)); stroke-width: 0.7; }
.life-cat .lf-ear-in { fill: var(--blush); stroke: none; }
.life-cat .lf-cat-eye { fill: var(--green-wash); stroke-width: 0.4; transition: fill 0.6s ease; }
.life-cat .lf-pupil { fill: var(--ink); stroke: none; }
.is-evening .life-cat .lf-cat-eye { fill: #ffe9a6; }
.life-cat .lf-nose-pink { fill: var(--blush); stroke-width: 0.35; }
.life-cat .lf-mouth { fill: var(--brick-deep); stroke-width: 0.4; }
.life-cat .lf-tongue { fill: var(--blush); stroke: none; }
.life-cat .lf-whisker { fill: none; stroke: var(--white); stroke-width: 0.3; opacity: 0.85; }
.life-cat .lf-tail-o { fill: none; stroke-width: 3.2; }
.life-cat .lf-tail { fill: none; stroke: var(--mustard); stroke-width: 1.9; }
.life-cat .lf-tail-s { fill: none; stroke: color-mix(in srgb, var(--mustard) 40%, var(--brick)); stroke-width: 1.9; stroke-dasharray: 0.9 1.6; stroke-linecap: butt; }

.life-squirrel .lf-sq { fill: color-mix(in srgb, var(--ink) 38%, var(--paper-2)); stroke-width: 0.8; }
.life-squirrel .lf-sq-belly { fill: none; stroke: var(--paper); stroke-width: 0.6; }
.life-squirrel .lf-sq-tail-o { fill: none; stroke-width: 4.6; }
.life-squirrel .lf-sq-tail { fill: none; stroke: color-mix(in srgb, var(--ink) 38%, var(--paper-2)); stroke-width: 3; }
.life-squirrel .lf-sq-tail-h { fill: none; stroke: var(--paper-2); stroke-width: 0.9; opacity: 0.45; }
.life-squirrel .lf-acorn-cap { fill: var(--ink-soft); stroke-width: 0.5; }

.walk-life-item.life-leaf { animation: leaf-fall 10s linear infinite; opacity: 0; }
@keyframes leaf-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  3% { opacity: 1; }
  12% { transform: translate(calc(var(--u) * 6px), calc(var(--u) * var(--fall) * 0.3px)) rotate(50deg); }
  22% { transform: translate(calc(var(--u) * -3px), calc(var(--u) * var(--fall) * 0.65px)) rotate(-25deg); }
  31% { transform: translate(calc(var(--u) * 4px), calc(var(--u) * var(--fall) * 1px)) rotate(20deg); opacity: 1; }
  40%, 100% { transform: translate(calc(var(--u) * 4px), calc(var(--u) * var(--fall) * 1px)) rotate(20deg); opacity: 0; }
}

/* Moths only come out once the lamps are lit. */
.life-moths { opacity: 0; transition: opacity 0.8s ease; }
.walk-life.is-evening .life-moths { opacity: 1; }
.life-moths .moth { transform-box: view-box; transform-origin: 22px 166px; animation: moth 2s linear infinite; }
.life-moths .moth-dot { fill: #f6f0dc; stroke: none; }
@keyframes moth { from { transform: rotate(0deg) scaleY(0.7); } to { transform: rotate(360deg) scaleY(0.7); } }
html.walk-on .is-evening .prop-lamp.lamp-flicker .lamp-glass { animation: lamp-flicker 5.3s steps(1, end) infinite; }
@keyframes lamp-flicker { 0%, 58% { opacity: 1; } 60% { opacity: 0.25; } 61% { opacity: 1; } 63% { opacity: 0.35; } 65%, 84% { opacity: 1; } 85% { opacity: 0.5; } 86%, 100% { opacity: 1; } }

/* The cyclist shares the road with the van, in the far lane. Drawn light
   on dark so it reads against the road: cream frame, pale rims, white shoes. */
.walk-cyclist { position: absolute; left: 0; top: 0; width: 0; z-index: 2; visibility: hidden; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.walk-cyclist .cyc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.walk-cyclist .cyc-svg :where(path, circle, ellipse) { stroke-width: 0.7; }
.walk-cyclist .cyc-tyre { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.walk-cyclist .cyc-tyre-edge { fill: none; stroke: var(--paper-2); stroke-width: 0.45; opacity: 0.7; }
.walk-cyclist .cyc-rim { fill: none; stroke: var(--paper-2); stroke-width: 0.9; }
.walk-cyclist .cyc-spokes { fill: none; stroke: var(--paper-2); stroke-width: 0.28; opacity: 0.85; }
.walk-cyclist .cyc-hub { fill: var(--paper-2); stroke-width: 0.5; }
.walk-cyclist .cyc-guard { fill: none; stroke: var(--paper-2); stroke-width: 1.3; }
.walk-cyclist .cyc-chain { fill: none; stroke: var(--paper-2); stroke-width: 0.5; stroke-dasharray: 0.6 0.5; stroke-linecap: butt; opacity: 0.8; }
.walk-cyclist .cyc-ring { fill: none; stroke: var(--paper-2); stroke-width: 0.9; stroke-dasharray: 0.7 0.5; stroke-linecap: butt; }
.walk-cyclist .cyc-frame { fill: none; stroke: var(--paper); stroke-width: 1.8; }
.walk-cyclist .cyc-head-tube { fill: none; stroke: var(--paper); stroke-width: 2.6; }
.walk-cyclist .cyc-metal, .walk-cyclist .cyc-bar { fill: none; stroke: var(--paper-2); stroke-width: 1.2; }
.walk-cyclist .cyc-crank { fill: var(--paper-2); stroke-width: 0.4; }
.walk-cyclist .cyc-crank.cyc-far { fill: color-mix(in srgb, var(--paper-2) 60%, var(--ink)); }
.walk-cyclist .cyc-pedal { fill: var(--ink-soft); stroke: var(--paper-2); stroke-width: 0.3; }
.walk-cyclist .cyc-saddle { fill: var(--brick-deep); stroke-width: 0.6; }
.walk-cyclist .cyc-basket { fill: color-mix(in srgb, var(--mustard) 55%, var(--brick)); stroke-width: 0.6; }
.walk-cyclist .cyc-weave, .walk-cyclist .cyc-feature { fill: none; stroke-width: 0.35; }
.walk-cyclist .cyc-weave { opacity: 0.55; }
.walk-cyclist .cyc-thin { stroke-width: 0.5; }
.walk-cyclist .cyc-jacket { fill: var(--brick); }
.walk-cyclist .cyc-jacket.cyc-far { fill: var(--brick-deep); }
.walk-cyclist .cyc-jeans { fill: var(--sky); }
.walk-cyclist .cyc-jeans.cyc-far { fill: color-mix(in srgb, var(--sky) 62%, var(--ink)); }
.walk-cyclist .cyc-shoe { fill: var(--white); stroke-width: 0.5; }
.walk-cyclist .cyc-shoe.cyc-far { fill: var(--paper-2); }
.walk-cyclist .cyc-hand { fill: var(--blush); stroke-width: 0.5; }
.walk-cyclist .cyc-hand.cyc-far { fill: color-mix(in srgb, var(--blush) 78%, var(--brick)); }
.walk-cyclist .cyc-grip { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.walk-cyclist .cyc-pack { fill: var(--green); }
.walk-cyclist .cyc-strap { fill: none; stroke: var(--green-deep); stroke-width: 0.9; }
.walk-cyclist .cyc-helmet { fill: var(--mustard); stroke-width: 0.6; }
.walk-cyclist .cyc-hair { fill: var(--ink-soft); stroke-width: 0.5; }
.walk-cyclist .cyc-lamp { fill: var(--white); stroke-width: 0.5; }
.walk-cyclist .cyc-rear { fill: var(--brick); stroke-width: 0.4; }
.walk-cyclist .cyc-beam { fill: url(#cyc-beam-g); stroke: none; opacity: 0; transition: opacity 0.8s ease; }
.walk-cyclist.is-evening .cyc-beam { opacity: 0.5; }
.walk-cyclist.is-evening .cyc-lamp { fill: var(--lit); }
.walk-cyclist.is-evening .cyc-rear { animation: cyc-blink 0.9s steps(1, end) infinite; }
@keyframes cyc-blink { 0%, 49% { fill: var(--brick); } 50%, 100% { fill: var(--ink); } }

@media (prefers-reduced-motion: reduce) {
  .walk-life * { animation: none !important; }
}

/* Sparse street-edge details pass closest to the camera. */
.walk-near { position: absolute; inset: 0 0 var(--scene-bottom, 0px); pointer-events: none; z-index: 3; }
.walk-near-track { position: absolute; left: 0; bottom: 0; height: 100%; will-change: transform; }
.walk-near-item { position: absolute; bottom: -2%; }
.walk-near-item svg { width: 100%; height: auto; overflow: visible; }
.walk-near-item .f-near { fill: var(--ink) !important; }
.walk-near-item .f-near-green { fill: var(--green-deep) !important; }
.walk-near-shrub path:not([class]) { stroke: color-mix(in srgb, var(--ink) 60%, var(--green-deep)); stroke-width: 2.5; }

/* Dusk falls over everything but the lit windows' glow. */
.walk-dusk { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(120% 80% at 50% 100%, rgba(255, 196, 120, 0.22), transparent 60%); opacity: 0; }

/* ---------- What sits over the stage ---------- */

html.walk-on .walk-hud {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity 200ms var(--ease-snap), transform 200ms var(--ease-snap);
}
/* On a touch screen the bar stays drawn until it has faded: hidden at once, it vanished
   while "Skip the street", which fades by itself, was left behind for a moment. */
html.walk-touch.walk-on .walk-hud { transition: opacity 200ms var(--ease-snap), transform 200ms var(--ease-snap), visibility 0s linear 200ms; }
/* On a touch screen it comes down from above as the sign comes up from below, a
   little slower, as the opening settles on the law firm (js/walk.js, openingAt).
   It leaves at its usual pace, ahead of the headline coming back. */
html.walk-touch.walk-on .walk-hud:not(.is-visible) { transform: translateY(-10px); }
html.walk-on .walk-hud.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
html.walk-touch.walk-on .walk-hud.is-visible { transition-delay: 0s; }
html.walk-touch.walk-on .walk-hud.is-visible:not(.is-immediate) { transition-duration: 320ms, 320ms, 0s; }
html.walk-on .walk-hud.is-immediate { transition: none; }
.walk-intro, .walk-caption, .walk-progress { transition: opacity 0.3s ease; }
/* The headline's fade is already eased with the opening: a second ease left it behind its own lift. */
html.walk-touch .walk-intro { transition: none; }
html.walk-on .is-zooming .walk-intro,
html.walk-on .is-zooming .walk-hud,
html.walk-on .is-zooming .walk-caption,
html.walk-on .is-zooming .walk-progress { opacity: 0; pointer-events: none; }

html.walk-on .walk-intro {
  position: absolute; z-index: 6; left: var(--gut); top: clamp(88px, 13svh, 150px);
  width: min(640px, 52vw);
  will-change: transform, opacity;
}
html.walk-on .walk-title { font-size: clamp(2.5rem, 5.2vw, 4.8rem); line-height: 1.02; max-width: 12em; }
html.walk-on .walk-lead { margin-top: 20px; max-width: 30em; }
.walk-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(22px, 4svh, 40px); font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.walk-cue-mouse { position: relative; width: 22px; height: 34px; border: 2px solid var(--ink); border-radius: 12px; }
.walk-cue-mouse span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--brick); animation: cue 1.6s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* Stops, top right. */
html.walk-on .walk-hud { position: absolute; z-index: 7; top: 18px; right: var(--gut); display: flex; align-items: center; gap: 12px; }
.walk-map { display: flex; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.walk-stop { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 3px 12px 3px 8px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 0.84rem; color: var(--ink-soft); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.walk-stop:active { transform: scale(0.97); }
.walk-stop-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; transition: background-color 0.2s ease; }
.walk-stop.is-past .walk-stop-dot { background: var(--ink); }
.walk-stop.is-here { background: var(--ink); color: var(--white); }
.walk-stop.is-here .walk-stop-dot { background: var(--mustard); border-color: var(--mustard); }
@media (hover: hover) and (pointer: fine) {
  .walk-stop:not(.is-here):hover { background: var(--paper-2); color: var(--ink); }
}

/* The sign for the shop you're standing at. */
html.walk-on .walk-caption { position: absolute; z-index: 7; left: var(--gut); top: clamp(84px, 12svh, 140px); width: min(440px, 38vw); pointer-events: none; }
html.walk-on { scroll-behavior: auto; } /* Lenis does the smoothing */
.walk-card.is-leaving { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.walk-card {
  pointer-events: auto;
  padding: clamp(18px, 2vw, 26px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-md);
  box-shadow: 0 6px 0 var(--ink);
}
.walk-card-n { font-weight: 700; font-size: 0.86rem; color: var(--brick-deep); }
.walk-card-name { margin-top: 6px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.walk-card-h { margin-top: 10px; font-size: 1.02rem; line-height: 1.45; color: var(--ink-soft); }
/* What you'll see inside, in order. The last stage is the one a person signs off. */
.walk-card-flow { position: relative; display: grid; gap: 6px; margin-top: 16px; }
.walk-card-flow::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; border-left: 2px dotted rgba(34, 50, 44, 0.4); }
.walk-card-flow li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; }
.walk-card-fn { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font-size: 0.74rem; font-weight: 800; }
.walk-card-flow li:last-child .walk-card-fn { background: var(--mustard); }
.walk-card-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.walk-card-acts .btn:active { transform: translateY(3px) scale(0.98); }
.walk-card-skip { font-size: 0.88rem; color: var(--ink-soft); }

/* How far along the street you are. */
html.walk-on .walk-progress { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(247, 240, 223, 0.18); }
.walk-progress span { display: block; height: 100%; background: var(--mustard); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Inside a shop: a room over the street ---------- */

.inside {
  position: fixed; inset: 0; z-index: 60;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  padding-block: 0 clamp(48px, 7vw, 96px);
}
.inside[hidden] { display: none; }
html.inside-open { overflow: hidden; }
.inside-bar {
  position: sticky; top: 0; z-index: 4;
  margin-inline: calc(-1 * var(--gut)); padding: 12px var(--gut);
  background: rgba(247, 240, 223, 0.94);
  border-bottom: 2px solid rgba(34, 50, 44, 0.1);
}
@supports (backdrop-filter: blur(6px)) {
  .inside-bar { background: rgba(247, 240, 223, 0.82); backdrop-filter: blur(8px); }
}
.inside-scene { top: 96px; }

/* The AI reads the request: a light passes down it and each phrase it uses lights up in turn. */
.is-scanning .req { position: relative; overflow: hidden; }
.is-scanning .req::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(227, 167, 47, 0.22) 70%, rgba(227, 167, 47, 0.5) 96%, transparent);
  transform: translateY(-100%);
  animation: scan 1.4s var(--ease-in-out) 0.1s forwards;
  pointer-events: none;
}
@keyframes scan { to { transform: translateY(240%); } }
.is-scanning mark { animation: hit 0.5s var(--ease-out) both; animation-delay: calc(min(var(--m, 0), 10) * 90ms + 220ms); }
@keyframes hit {
  from { background-color: transparent; box-shadow: 0 0 0 0 rgba(227, 167, 47, 0); }
  50% { background-color: var(--mustard); box-shadow: 0 0 0 4px rgba(227, 167, 47, 0.35); }
  to { background-color: var(--mustard-wash); box-shadow: 0 0 0 0 rgba(227, 167, 47, 0); }
}

/* The phrases the AI lifted fly into the prepared card. */
.fly-chip {
  position: fixed; z-index: 80; pointer-events: none;
  padding: 1px 6px; margin: -1px 0 0 -6px; border-radius: 6px;
  background: var(--mustard); border: 2px solid var(--ink);
  font-weight: 700; font-size: 0.95rem; line-height: 1.35; white-space: nowrap; color: var(--ink);
  box-shadow: 0 6px 14px rgba(34, 50, 44, 0.18);
  will-change: transform, opacity;
}
.glance .field.landed .field-v { animation: landed 0.9s var(--ease-out); }
@keyframes landed { from { background-color: var(--mustard); box-shadow: 0 0 0 4px var(--mustard); } to { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }

/* ---------- Phones ---------- */

@media (max-width: 759px) {
  html.walk-on .walk-intro { left: 16px; right: 16px; width: auto; top: clamp(76px, 10svh, 110px); }
  html.walk-on .walk-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  html.walk-on .walk-lead { font-size: 1rem; margin-top: 14px; }
  .hero-acts { margin-top: 20px; }
  .walk-cue { display: none; }
  html.walk-on .walk-hud { top: 12px; left: 16px; right: 16px; justify-content: space-between; gap: 8px; }
  .walk-map { gap: 2px; }
  .walk-stop { padding: 3px 5px; gap: 0; }
  .walk-stop-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .walk-stop.is-here { padding-right: 10px; gap: 6px; }
  .walk-stop.is-here .walk-stop-t { position: static; width: auto; height: auto; clip: auto; }
  html.walk-on .walk-caption { top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; }
  .walk-card.is-leaving { top: auto; bottom: 0; }
  .walk-card { padding: 14px 16px; border-radius: var(--r-sm); box-shadow: 0 4px 0 var(--ink); }
  .walk-card-name { font-size: 1.45rem; }
  .walk-card-h { font-size: 0.94rem; margin-top: 6px; }
  .walk-card-flow { display: none; }
  .walk-card-acts { margin-top: 12px; }
  .walk-card-acts .btn { flex: 1 1 auto; }
  .walk-card-skip { display: none; }
  .inside-scene { top: 80px; }
}

/* A compact sign can overlap the near lane edge. The remaining road is one
   vehicle deep, and the reclaimed height belongs to the storefronts. */
@media (max-width: 759px) {
  .walk-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 12px; padding: 12px 14px; }
  .walk-card-n { grid-column: 1; grid-row: 1; font-size: 0.8125rem; }
  .walk-card-name { grid-column: 1; grid-row: 2; align-self: start; margin-top: 4px; font-size: 1.5rem; }
  .walk-card-h { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; font-size: 0.9375rem; line-height: 1.4; }
  .walk-card-acts { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-self: center; gap: 8px; margin-top: 0; }
  .walk-card-acts .btn { min-height: 44px; padding: 8px 12px; font-size: 0.9375rem; }
  .walk-card-acts .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; }
  /* The office's sign has a second action, "Walk it again". Stacked under the button it
     made the top of the sign two buttons tall, with a hole under the name; it goes beside
     the closing words, at the foot of the sign. */
  .walk-card:has(.walk-card-acts .text-link) .walk-card-acts { display: contents; }
  .walk-card:has(.walk-card-acts .text-link) .walk-card-acts .btn { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .walk-card:has(.walk-card-acts .text-link) .walk-card-acts .text-link { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; }
  .walk-card:has(.walk-card-acts .text-link) .walk-card-h { grid-column: 1; }
  .walk-paving { height: calc(45% - var(--scene-bottom, 0px) * 0.45); }
  .walk-road { height: calc(55% + var(--scene-bottom, 0px) * 0.45); }
  html.walk-on .walk-hud { align-items: center; }
  .walk-map-nav { flex: 1; min-width: 0; }
  .walk-map { justify-content: space-between; gap: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; }
  .walk-map::-webkit-scrollbar { display: none; }
  .walk-map li { flex: none; }
  .walk-stop, .walk-stop.is-here { justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 10px; gap: 6px; font-size: 0.8125rem; white-space: nowrap; }
  /* The label goes at once when the stop changes, so the dark behind it must too: fading, it showed for a frame or two as a blot beside the new one. */
  .walk-stop, .walk-stop-dot { transition: none; }
  .walk-stop.is-here .walk-stop-t { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
}

/* Use the upper sky on short phones; keep the approved type and CTA sizes. */
@media (max-width: 759px) and (max-height: 700px) {
  html.walk-on .walk-intro { top: 24px; }
  html.walk-on .walk-lead { margin-top: 12px; }
  html.walk-on .hero-acts { margin-top: 16px; gap: 12px 24px; }
}

/* Very shallow wide views have room for two columns, but not a hero stack.
   The cut-off sits below ordinary laptop windows (a 1440x900 screen leaves
   about 690px), so the lead stays under the headline there. js/walk.js
   uses the same 560px for the skyline and clouds behind the copy. */
@media (min-width: 760px) and (max-height: 560px) {
  html.walk-on .walk-intro { top: 24px; left: 24px; right: 24px; width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
  html.walk-on .walk-title { grid-column: 1; grid-row: 1; font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
  html.walk-on .walk-lead { grid-column: 2; grid-row: 1; font-size: 1rem; margin: 0; }
  html.walk-on .hero-acts { grid-column: 1; grid-row: 2; margin: 0; gap: 12px 24px; }
  .walk-cue { display: none; }
}

/* Short wide views keep a compact stop card, clear of the storefronts. */
@media (min-width: 760px) and (max-height: 700px) {
  html.walk-on .walk-caption { top: 76px; left: 16px; width: min(320px, 36vw); }
  .walk-card { padding: 12px 16px; }
  .walk-card-name { font-size: 1.5rem; }
  .walk-card-h { font-size: 0.9375rem; line-height: 1.4; }
  .walk-card-flow { display: none; }
  .walk-card-acts { margin-top: 12px; }
  .walk-card-acts .btn { min-height: 44px; }
  .walk-card-skip { display: none; }
}

/* Keep one type scale and one set of anchors through desktop aspect ratios. */
@media (min-width: 760px) and (min-height: 561px) {
  /* The hero keeps growing with tall, wide screens, so ultra-wide views aren't a small headline in a large sky. */
  html.walk-on .walk-intro { top: clamp(40px, 7svh, 140px); width: min(1700px, 70vw); }
  html.walk-on .walk-title { font-size: clamp(3.25rem, min(6.4vw, 11.5svh), 10rem); line-height: 0.98; max-width: 11em; }
  html.walk-on .walk-lead { font-size: clamp(1.2rem, min(1.5vw, 2.5svh), 2rem); max-width: 32em; margin-top: 0.9em; }
  html.walk-on .hero-acts { margin-top: 1.2em; font-size: clamp(1rem, 1.6svh, 1.5rem); }
  html.walk-on .hero-acts :is(.btn, .text-link) { font-size: inherit; }
  html.walk-on .hero-acts .btn { min-height: 3em; padding: 0.6em 1.5em; }
  .walk-cue { margin-top: 16px; }
}

@media (min-width: 760px) and (min-height: 701px) {
  /* The stop card and the stops bar grow with tall screens too. --cu is
     16px up to 900px tall, so every size below matches the usual design. */
  html.walk-on { --cu: clamp(1rem, 1.78svh, 1.6rem); }
  /* Tall and narrow (a tablet held upright), height alone made everything over the stage
     too large for the width: the stops bar ran off the left edge. On a touch screen the
     width has a say too. */
  html.walk-touch.walk-on { --cu: clamp(1rem, min(1.78svh, 1.4vw), 1.6rem); }
  html.walk-on .walk-caption { top: clamp(84px, 12svh, 200px); width: min(calc(var(--cu) * 27.5), 38vw); }
  .walk-card { padding: clamp(calc(var(--cu) * 1.125), 2vw, calc(var(--cu) * 1.625)); box-shadow: 0 calc(var(--cu) * 0.375) 0 var(--ink); border-radius: calc(var(--cu) * 1.125); }
  .walk-card-n { font-size: calc(var(--cu) * 0.86); }
  .walk-card-name { margin-top: calc(var(--cu) * 0.375); font-size: clamp(calc(var(--cu) * 1.7), 2.6vw, calc(var(--cu) * 2.3)); }
  .walk-card-h { margin-top: calc(var(--cu) * 0.625); font-size: calc(var(--cu) * 1.02); }
  .walk-card-flow { gap: calc(var(--cu) * 0.375); margin-top: calc(var(--cu) * 1); }
  .walk-card-flow::before { left: calc(var(--cu) * 0.625); top: calc(var(--cu) * 0.75); bottom: calc(var(--cu) * 0.75); }
  .walk-card-flow li { gap: calc(var(--cu) * 0.625); font-size: calc(var(--cu) * 0.9); }
  .walk-card-fn { width: calc(var(--cu) * 1.375); height: calc(var(--cu) * 1.375); font-size: calc(var(--cu) * 0.74); }
  .walk-card-acts { gap: calc(var(--cu) * 0.625) calc(var(--cu) * 1.125); margin-top: calc(var(--cu) * 1.125); }
  .walk-card-acts :is(.btn, .text-link) { font-size: calc(var(--cu) * 1); }
  .walk-card-acts .btn { min-height: calc(var(--cu) * 3); padding: calc(var(--cu) * 0.625) calc(var(--cu) * 1.5); }
  .walk-card-skip { font-size: calc(var(--cu) * 0.88); }
  html.walk-on .walk-hud { top: calc(var(--cu) * 1.125); gap: calc(var(--cu) * 0.75); }
  .walk-map { gap: calc(var(--cu) * 0.25); padding: calc(var(--cu) * 0.25); box-shadow: 0 calc(var(--cu) * 0.1875) 0 var(--ink); }
  .walk-stop { gap: calc(var(--cu) * 0.4375); min-height: calc(var(--cu) * 2); padding: calc(var(--cu) * 0.1875) calc(var(--cu) * 0.75) calc(var(--cu) * 0.1875) calc(var(--cu) * 0.5); font-size: calc(var(--cu) * 0.84); }
  .walk-stop-dot { width: calc(var(--cu) * 0.625); height: calc(var(--cu) * 0.625); }
}

/* ---------- Touch screens: one swipe, one shop ----------
   js/walk.js sets html.walk-touch on a touch screen with no mouse, and places
   a snap point (.walk-snap) at the top of the page and at each stop.
   html.walk-snapping is on while the page rests or is being swiped, and off
   while the page moves itself. */
html.walk-touch.walk-snapping:not(.inside-open) { scroll-snap-type: y proximity; }
.walk-snap { position: absolute; left: 0; width: 1px; height: 0; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
/* The page below the office: one snap area, taller than the screen, from a little
   past the office to the very end of the page (walk.js sizes it, --below-h). Every
   position where it fills the screen is a valid place to rest, so a swipe out of
   the office comes to rest wherever it ends; it is not a stop a flick must make. */
.walk-snap.is-below { height: var(--below-h, 0px); scroll-snap-stop: normal; }
/* Once the street has left the top, the header comes back fixed and the page gains
   scroll-padding for it (css/home.css), which would move every snap point up by the
   header's height. The header switches at the moment the street leaves the top, so a
   snap point there moved away, the page followed, the header switched back, and the
   page bounced between the two for as long as it rested. The snap points move down
   by the same height, so they stay where they are; the page below keeps its end. */
html.head-back .walk-snap { margin-top: var(--head-h, 0px); }
html.head-back .walk-snap.is-below { height: max(0px, calc(var(--below-h, 0px) - var(--head-h, 0px))); }
/* Sideways swipes on the street are the walk's own; upright ones and pinching stay the page's. */
html.walk-touch .walk-stage { touch-action: pan-y pinch-zoom; }
/* While the street is on the stage the walk moves the page for a finger that starts
   on it, one shop a swipe (js/walk.js, dragMove), so the browser does not scroll for
   it. A pinch still zooms, and the stops bar still scrolls sideways. */
html.walk-touch.walk-paging .walk-stage { touch-action: pinch-zoom; }
html.walk-touch.walk-paging .walk-map { touch-action: pan-x pinch-zoom; }

/* A way past the walk, under the right-hand end of the stops bar: a small pill in the
   bar's style, leaving the bar its full width. Its tap area reaches 6px past the pill
   all round (48px tall). At the office it steps aside: it would cover the rooftop
   sign, and the next swipe leaves the street anyway. Not on a wheel or trackpad,
   whose walk is quick to scroll through. */
.walk-skip { display: none; }
html.walk-touch .walk-skip {
  position: absolute; right: 0; top: calc(100% + 10px); display: inline-flex; align-items: center;
  min-height: 36px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); box-shadow: 0 3px 0 var(--ink);
  font-weight: 600; font-size: 0.8125rem; color: var(--ink); white-space: nowrap; cursor: pointer;
  transition: opacity 200ms var(--ease-snap), visibility 200ms;
}
html.walk-touch .walk-skip::before { content: ""; position: absolute; inset: -6px; }
html.walk-touch .walk-skip:active { transform: scale(0.97); }
html.walk-touch .walk-hud.is-end .walk-skip { opacity: 0; visibility: hidden; pointer-events: none; }

/* The cue names the gesture. */
.walk-cue-touch, html.walk-touch .walk-cue-wheel { display: none; }
/* Nothing is scrolled on a touch screen: the sign's "or keep scrolling" goes at every width. */
html.walk-touch .walk-card-skip { display: none; }
html.walk-touch .walk-cue-touch { display: inline; }
/* On a touch screen, a track the dot rises along, as a finger would. */
html.walk-touch .walk-cue-mouse { width: 4px; height: 30px; margin-inline: 5px; border: 0; border-radius: 2px; background: rgba(34, 50, 44, 0.18); }
html.walk-touch .walk-cue-mouse span { top: auto; bottom: 0; animation-name: cue-up; }
@keyframes cue-up { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(-23px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
/* A phone's hero has no room for it under the buttons: it stands on the pavement
   instead, centred, where js/walk.js places it (--cue-top). */
@media (max-width: 759px) {
  html.walk-touch .walk-cue { display: flex; position: absolute; left: 0; right: 0; top: var(--cue-top, 100%); width: fit-content; margin: 0 auto; padding: 4px 14px 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
}

/* On the narrowest phones the six stops did not fit the bar, and the last was cut in
   half: the dots stand a little closer (still 44px tall to tap). */
@media (max-width: 359px) {
  html.walk-on .walk-hud { left: 12px; right: 12px; }
  .walk-stop { min-width: 32px; padding: 6px; }
  .walk-stop.is-here { padding: 6px 8px; gap: 5px; font-size: 0.75rem; }
}

/* On the narrowest phones there is no room beside the office's closing words: "Walk it
   again" goes under them. */
@media (max-width: 379px) {
  .walk-card:has(.walk-card-acts .text-link) .walk-card-h { grid-column: 1 / -1; }
  .walk-card:has(.walk-card-acts .text-link) .walk-card-acts .text-link { grid-column: 1 / -1; grid-row: 4; justify-self: start; min-height: 36px; }
}

/* Reduced motion never gets html.walk-on; the room and its reveals follow styles.css. */
@media (prefers-reduced-motion: reduce) {
  html.walk-on .walk-hud { transition: none; transform: none; }
  .fly-chip { display: none; }
}
