/* Fleece case study · /case-studies/fleece/ (markup: src/fleece.html, made by tools/fleece_page.py · motion: static/js/fleece.js)
   Coded from the Figma page "Fleece app case study · Map" (HPF case studies, node 74:649): 15 map sheets, each 1920 wide.
   1200 px and wider: every sheet keeps its Figma artboard. --kp is one Figma px in screen px, min(1, page width / 1920), set by the
   page's inline script, and every .at element sits at its Figma x, y (style="--x; --y", in px of its sheet). Type has a floor, so no
   text drops under 11 px. Below 1200 the same markup reflows into one column. Type: Overpass, the Figma family; the type specimens
   on sheet 5 show SF Pro where it is installed. */

:root { --kp: min(1px, calc(100vw / 1920)); }
.fl { --street: #F7F4EE; --ink: #1A1A1A; --ink2: #5A554C; --lime: #C6F135; --night: #121416; --nink: #F5F5F5; --nink2: #A9A59C;
  --fe: cubic-bezier(.22, 1, .36, 1);
  --ff: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sh-card: 0 calc(2 * var(--kp)) calc(4 * var(--kp)) rgb(46 36 20 / .12), 0 calc(10 * var(--kp)) calc(20 * var(--kp)) rgb(46 36 20 / .10), 0 calc(28 * var(--kp)) calc(56 * var(--kp)) rgb(46 36 20 / .10);
  --sh-pin: 0 calc(2 * var(--kp)) calc(4 * var(--kp)) rgb(46 36 20 / .12), 0 calc(8 * var(--kp)) calc(16 * var(--kp)) rgb(46 36 20 / .10);
  display: block; background: var(--street); color: var(--ink); font-family: var(--ff); font-weight: 400; }
.fl h1, .fl h2, .fl h3, .fl p, .fl ul, .fl ol, .fl li, .fl figure { margin: 0; padding: 0; }
.fl ul, .fl ol { list-style: none; }
.fl img { max-width: none; }
.fl .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the top band: room for the fixed nav, then the breadcrumb (Case studies > Fleece) on the content's left edge */
.fl__band { padding: calc(var(--bar-top) + 64 * var(--u)) var(--gut) calc(16 * var(--u)); }
@media (max-width: 899px) { .fl__band { padding-top: calc(var(--bar-top) + 80 * var(--u)); } }

/* ---------- sheets ---------- */
.fm { position: relative; isolation: isolate; overflow: clip; background: var(--street); }
.fm--night { background: var(--night); color: var(--nink); --ink2: var(--nink2); }
.fm__stage { position: relative; isolation: isolate; }
.fm__map { position: absolute; display: block; pointer-events: none; user-select: none; }
.nl, .fm__route { display: none; }
.fm__dusk { position: absolute; inset: 0; z-index: 8; background: var(--street); opacity: 0; pointer-events: none; }

/* ---------- type ---------- */
.fl-display, .fl-title, .fl-number { font-weight: 700; color: inherit; }
.fl-display { font-size: calc(112 * var(--kp)); line-height: 1; letter-spacing: -.025em; }
.fl-title { font-size: calc(80 * var(--kp)); line-height: 1.05; letter-spacing: -.02em; }
.fl-number { font-size: calc(200 * var(--kp)); line-height: .98; letter-spacing: -.03em; }
.fl .l { display: block; white-space: nowrap; }
.fl-lead { font-size: max(16px, calc(28 * var(--kp))); line-height: 1.4286; color: var(--ink2); white-space: nowrap; }
.fl-kicker { width: calc(var(--w) * var(--kp)); text-align: right; font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; color: var(--ink2); }
.fl-small { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; }
.fl-grid { font-weight: 600; font-size: max(11px, calc(14 * var(--kp))); line-height: 1.1429; letter-spacing: .04em; }
.fl-place { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.fl-foot { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; color: var(--ink2); }
.fl-logo { display: block; width: calc(var(--w) * var(--kp)); height: auto; }

/* ---------- components ---------- */
/* phone: 421 x 880 in Figma; every part is drawn in units of the phone's own width (--pu), so one component serves every size */
.ph { position: relative; width: calc(var(--w) * var(--kp)); aspect-ratio: 421 / 880; container-type: inline-size; rotate: var(--r, 0deg); transform-origin: 0 0; }
.ph__body { --pu: calc(100cqw / 421); position: absolute; inset: 0; border-radius: calc(69 * var(--pu)); border: calc(1.5 * var(--pu)) solid transparent;
  background: linear-gradient(#0A0A0B, #0A0A0B) padding-box, linear-gradient(135deg, #A3A3A8, #2A2A2E) border-box;
  box-shadow: inset 0 0 0 calc(2.5 * var(--pu)) #2B2B2F, 0 calc(2 * var(--pu)) calc(4 * var(--pu)) rgb(46 36 20 / .16), 0 calc(8 * var(--pu)) calc(16 * var(--pu)) rgb(46 36 20 / .12),
    0 calc(22 * var(--pu)) calc(40 * var(--pu)) rgb(46 36 20 / .12), 0 calc(48 * var(--pu)) calc(88 * var(--pu)) rgb(46 36 20 / .10); }
.fm--night .ph__body { box-shadow: inset 0 0 0 calc(2.5 * var(--pu)) #2B2B2F, 0 calc(2 * var(--pu)) calc(4 * var(--pu)) rgb(0 0 0 / .5), 0 calc(10 * var(--pu)) calc(20 * var(--pu)) rgb(0 0 0 / .4),
    0 calc(28 * var(--pu)) calc(56 * var(--pu)) rgb(0 0 0 / .35), 0 calc(56 * var(--pu)) calc(110 * var(--pu)) rgb(0 0 0 / .3); }
.ph__body::before, .ph__body::after { content: ''; position: absolute; z-index: -1; width: calc(3 * var(--pu)); border-radius: calc(1.5 * var(--pu)); background: #2C2C30; }
.ph__body::before { left: calc(-3.5 * var(--pu)); top: calc(166.5 * var(--pu)); height: calc(204 * var(--pu));   /* action, volume up, volume down */
  background: linear-gradient(#2C2C30 0 calc(34 * var(--pu)), transparent 0 calc(66 * var(--pu)), #2C2C30 0 calc(128 * var(--pu)), transparent 0 calc(142 * var(--pu)), #2C2C30 0); }
.ph__body::after { left: calc(419.5 * var(--pu)); top: calc(260.5 * var(--pu)); height: calc(98 * var(--pu)); }
.ph__body img { position: absolute; left: calc(12.5 * var(--pu)); top: calc(12.5 * var(--pu)); width: calc(393 * var(--pu)); height: calc(852 * var(--pu)); border-radius: calc(55 * var(--pu)); display: block; background: #F5F5F5; }
.ph__island { position: absolute; left: calc(147.5 * var(--pu)); top: calc(23.5 * var(--pu)); width: calc(124 * var(--pu)); height: calc(36 * var(--pu)); border-radius: calc(18 * var(--pu)); background: #0A0A0B; }

/* map pins: store (60 pill, 18 stem, 16 dot) and home (52, 18, 18); a pin is a zero-width column, so it stays centred on its dot at any text size */
.mpin { width: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 100%; }
.mpin__tag { display: flex; align-items: center; gap: calc(12 * var(--kp)); min-height: calc(60 * var(--kp)); padding: calc(7 * var(--kp)) calc(20 * var(--kp)) calc(9 * var(--kp)) calc(8 * var(--kp));
  border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--sh-pin); white-space: nowrap; }
.mpin--best .mpin__tag { background: var(--lime); }
.mpin__tag img { display: block; flex: none; width: calc(40 * var(--kp)); height: calc(40 * var(--kp)); border-radius: 50%; background: #fff; }
.mpin__t { display: flex; flex-direction: column; }
.mpin__n { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; }
.mpin__p { font-weight: 700; font-size: max(13px, calc(22 * var(--kp))); line-height: 1.0909; }
.mpin__stem { position: relative; flex: none; width: max(1px, calc(2 * var(--kp))); height: calc(18 * var(--kp)); background: var(--ink); }
.mpin__stem::after { content: ''; position: absolute; left: 50%; top: 100%; width: calc(16 * var(--kp)); height: calc(16 * var(--kp)); margin-left: calc(-8 * var(--kp));
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 calc(3 * var(--kp)) #fff; }
.mpin--home .mpin__tag { min-height: calc(52 * var(--kp)); gap: calc(8 * var(--kp)); padding: calc(11 * var(--kp)) calc(22 * var(--kp)) calc(13 * var(--kp)) calc(16 * var(--kp)); background: var(--ink); color: #fff; }
.mpin--home .icon { flex: none; width: calc(24 * var(--kp)); height: calc(24 * var(--kp)); }
.mpin--home .mpin__n { font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }
.mpin--home .mpin__stem::after { width: calc(18 * var(--kp)); height: calc(18 * var(--kp)); margin-left: calc(-9 * var(--kp)); }

/* stops: 32 with a 6 ring, tab roots 44, terminus 48 with a 9 ring */
.stop { display: block; width: calc(32 * var(--kp)); height: calc(32 * var(--kp)); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 calc(6 * var(--kp)) var(--ink); }
.stop--big { width: calc(44 * var(--kp)); height: calc(44 * var(--kp)); box-shadow: inset 0 0 0 calc(8 * var(--kp)) var(--ink); }
.stop--end { width: calc(48 * var(--kp)); height: calc(48 * var(--kp)); box-shadow: inset 0 0 0 calc(9 * var(--kp)) var(--ink); }

.mtag { display: inline-block; padding: calc(5 * var(--kp)) calc(14 * var(--kp)) calc(7 * var(--kp)); border-radius: 999px; background: var(--lime); color: var(--ink);
  font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: max(14px, calc(20 * var(--kp))); white-space: nowrap; }
.cap { display: grid; align-content: start; gap: calc(4 * var(--kp)); width: calc(var(--w) * var(--kp)); }
.cap b { font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }
.cap span { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; color: var(--ink2); }

.photo { width: calc(var(--w) * var(--kp)); aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--rr) * var(--kp)); background: #fff; box-shadow: var(--sh-card); rotate: var(--r, 0deg); transform-origin: 0 0; }
.photo img, .piece img { display: block; width: 100%; height: 100%; object-fit: cover; }
.piece { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); overflow: hidden; border-radius: calc(var(--rr) * var(--kp)); background: #fff; box-shadow: var(--sh-card); }
.art { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); overflow: hidden; border-radius: calc(16 * var(--kp)); background: #fff; box-shadow: var(--sh-card); rotate: var(--r, 0deg); transform-origin: 0 0; }
.art img { display: block; width: 100%; height: auto; }

/* sheet 1: scale bar and north arrow */
.fl-north { display: block; width: calc(16 * var(--kp)); height: calc(16 * var(--kp)); }
.fl-north .icon { display: block; width: 100%; height: 100%; rotate: -90deg; }
.fl-sbar { display: block; width: calc(var(--w) * var(--kp)); height: calc(10 * var(--kp)); background: linear-gradient(90deg, var(--ink) 0 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0);
  box-shadow: inset 0 0 0 max(1px, calc(2 * var(--kp))) var(--ink); }

/* sheet 2: price scale ($1 = 300 px, $10 at x 200) */
.pscale { width: calc(var(--w) * var(--kp)); height: calc(16 * var(--kp));
  background: linear-gradient(90deg, var(--ink) 0 19.23%, #fff 0 38.46%, var(--ink) 0 57.69%, #fff 0 76.92%, var(--ink) 0 96.15%, #fff 0);
  box-shadow: inset 0 0 0 max(1px, calc(2 * var(--kp))) var(--ink); }
.pn { width: calc(var(--w) * var(--kp)); text-align: center; }
.leader { width: max(1px, calc(2 * var(--kp))); height: calc(124 * var(--kp)); background: var(--ink); }
.dim__line { width: calc(var(--w) * var(--kp)); height: max(1px, calc(2 * var(--kp))); background: var(--ink); }
.dim__tick { width: max(1px, calc(2 * var(--kp))); height: calc(28 * var(--kp)); background: var(--ink); }
.dim__l { width: calc(var(--w) * var(--kp)); padding: calc(4 * var(--kp)) 0 calc(6 * var(--kp)); background: var(--street); text-align: center;
  font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }

/* sheets 4 and 14: mlegend cards */
.mlegend { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); border-radius: calc(24 * var(--kp)); background: #fff; color: var(--ink); box-shadow: var(--sh-card); }
.mlegend__t { font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }
.mlegend__s { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; white-space: nowrap; }
.mlegend__note { color: var(--ink2); white-space: normal; }
.lg-trip { display: block; width: calc(56 * var(--kp)); height: calc(20 * var(--kp)); border-radius: calc(10 * var(--kp)); background: var(--lime); box-shadow: inset 0 0 0 calc(4 * var(--kp)) var(--ink); }
.lg-line { display: block; width: calc(56 * var(--kp)); height: calc(6 * var(--kp)); border-radius: calc(3 * var(--kp)); background: var(--ink); }
.lg-stop { display: block; width: calc(28 * var(--kp)); height: calc(28 * var(--kp)); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 calc(6 * var(--kp)) var(--ink); }
.lg-thumb { display: block; width: calc(18 * var(--kp)); height: calc(40 * var(--kp)); border-radius: calc(3 * var(--kp)); object-fit: cover; object-position: top; box-shadow: 0 0 0 1px #E4E0D8; }
.lg-lane { display: block; width: calc(40 * var(--kp)); height: calc(40 * var(--kp)); border-radius: calc(8 * var(--kp)); background: #F5F5F5; box-shadow: inset 0 0 0 1px #E4E0D8; }

/* sheet 4: the transit map */
.lane__n { display: grid; gap: calc(4 * var(--kp)); white-space: nowrap; }
.lane__n b { font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }
.lane__n b span { display: inline-block; margin-right: calc(10 * var(--kp)); }
.lane__n > span { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; color: var(--ink2); }
.ln { display: block; width: calc(var(--w) * var(--kp)); height: calc(6 * var(--kp)); border-radius: calc(3 * var(--kp)); background: var(--ink); transform-origin: 0 50%; }
.stn__l { display: flex; flex-direction: column; width: calc(var(--w) * var(--kp)); white-space: nowrap; }
.stn__l--c { align-items: center; text-align: center; }
.stn__l--l, .stn__l--o { align-items: flex-start; }
.stn__l--o > span { padding-left: calc(24 * var(--kp)); }
.stn__l > span { font-weight: 600; font-size: max(11px, calc(14 * var(--kp))); line-height: 1.1429; color: var(--ink2); }
.stn__l b { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; }

/* sheet 5: the design system card */
.dscard { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); border-radius: calc(40 * var(--kp)); background: #fff; box-shadow: var(--sh-card); }
.dsb__t { font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; }
.dsb__s { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; color: var(--ink2); }
.swr { display: flex; align-items: center; gap: calc(16 * var(--kp)); }
.sw { flex: none; width: calc(64 * var(--kp)); height: calc(64 * var(--kp)); border-radius: calc(16 * var(--kp)); background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px #E4E0D8; }
.swr > span { display: grid; gap: calc(2 * var(--kp)); }
.swr b { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; }
.swr span span { font-weight: 600; font-size: max(11px, calc(14 * var(--kp))); line-height: 1.1429; letter-spacing: .04em; color: var(--ink2); }
.spec { display: flex; justify-content: space-between; align-items: baseline; width: calc(728 * var(--kp)); }
.spec__s { font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: max(11px, calc(var(--fs) * var(--kp))); font-weight: var(--fw); line-height: calc(var(--lh) * var(--kp)); }
.spec__l { font-weight: 600; font-size: max(11px, calc(16 * var(--kp))); line-height: 1.25; color: var(--ink2); }
.dsscale__bar { display: block; width: calc(var(--w) * var(--kp)); height: calc(14 * var(--kp));
  background: linear-gradient(90deg, var(--ink) 0 12.5%, #fff 0 25%, var(--ink) 0 37.5%, #fff 0 50%, var(--ink) 0 62.5%, #fff 0 75%, var(--ink) 0);
  box-shadow: inset 0 0 0 max(1px, calc(2 * var(--kp))) var(--ink); }
.dsscale__n .fl-grid { width: calc(var(--w) * var(--kp)); text-align: center; color: var(--ink2); }
.rad { display: grid; justify-items: center; gap: calc(10 * var(--kp)); width: calc(72 * var(--kp)); }
.rad i { display: block; width: calc(72 * var(--kp)); height: calc(72 * var(--kp)); border-radius: calc(var(--rr) * var(--kp)); background: var(--lime); }
.rad span { font-weight: 600; font-size: max(11px, calc(14 * var(--kp))); line-height: 1.1429; color: var(--ink2); }
.dsicons { display: grid; grid-template-columns: repeat(6, calc(104 * var(--kp))); gap: calc(16 * var(--kp)); }
.dsicons li { display: grid; place-items: center; height: calc(80 * var(--kp)); border-radius: calc(16 * var(--kp)); background: #F3F0EA; }
.dsicons .icon { width: calc(26 * var(--kp)); height: calc(26 * var(--kp)); }

/* sheet 14: the prototype board from above */
.fl-place span { margin-left: .25em; color: var(--ink2); }
.aerial { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); overflow: hidden; border-radius: calc(24 * var(--kp)); background: #F5F5F5; box-shadow: var(--sh-card); }
.aerial img { display: block; width: 100%; height: auto; }

/* sheet 15: title block */
.titleblock { width: calc(var(--w) * var(--kp)); height: calc(var(--hh) * var(--kp)); border-radius: calc(16 * var(--kp)); background: #fff; box-shadow: var(--sh-card); }
.titleblock__a { font-weight: 600; font-size: max(14px, calc(22 * var(--kp))); line-height: 1.2727; white-space: nowrap; }
.titleblock__b { font-size: max(13px, calc(20 * var(--kp))); line-height: 1.4; color: var(--ink2); white-space: nowrap; }
.titleblock__c { font-weight: 600; font-size: max(11px, calc(14 * var(--kp))); line-height: 1.1429; letter-spacing: .04em; color: var(--ink2); white-space: nowrap; }

/* ---------- 1200 and wider: the Figma sheets ---------- */
@media (min-width: 1200px) {
  .bar--case .bar__in { width: calc(1680 * var(--kp)); margin-left: calc((100% - 1920 * var(--kp)) / 2 + 120 * var(--kp)); }
  .fl__band { padding-left: calc((100% - 1920 * var(--kp)) / 2 + 120 * var(--kp)); }
  .fm { height: calc(var(--h) * var(--kp)); }
  .fm__stage { width: calc(1920 * var(--kp)); height: 100%; margin: 0 auto; }
  .fl .g { display: contents; }
  .fl .at { position: absolute; left: calc(var(--x) * var(--kp)); top: calc(var(--y) * var(--kp)); }
  .fm__map { left: calc(48 * var(--kp)); top: calc(var(--y) * var(--kp)); width: calc(1824 * var(--kp)); height: calc(var(--mh) * var(--kp)); z-index: -3; }
  .fm__route { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
  .fm__route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .fm__route .rc { stroke: var(--ink); stroke-width: 20; }
  .fm__route .rl { stroke: var(--lime); stroke-width: 12; }
  .fm__route .rl--dash { stroke-dasharray: 27.4 17.6; stroke-dashoffset: 13.7; }
  .ln { z-index: -1; }
  .mpin, .fm--m04 .stop, .m11-end .stop { z-index: 1; }

  /* neatline: edges, a tick every 240 and the row numbers in the 48 px margins */
  .nl { display: block; position: absolute; inset: 0; z-index: -2; pointer-events: none; color: var(--ink); }
  .fm--night .nl { color: #6E6B66; }
  .nl::before, .nl::after { content: ''; position: absolute; top: calc(var(--t) * var(--kp)); height: calc((var(--b) - var(--t)) * var(--kp)); width: max(1px, calc(2 * var(--kp))); background: currentColor; }
  .nl::before { left: calc(47 * var(--kp)); }
  .nl::after { left: calc(1871 * var(--kp)); }
  .nl__h { position: absolute; left: calc(35 * var(--kp)); top: calc((var(--y) - 1) * var(--kp)); width: calc(1850 * var(--kp)); height: max(1px, calc(2 * var(--kp)));
    background: linear-gradient(90deg, currentColor 0 calc(12 * var(--kp)), transparent 0 calc(100% - 12 * var(--kp)), currentColor 0); }
  .nl__x { position: absolute; left: calc(47 * var(--kp)); top: calc(var(--y) * var(--kp)); width: calc(1826 * var(--kp)); height: max(1px, calc(2 * var(--kp))); background: currentColor; }
  .nl__v { position: absolute; left: calc((var(--x) - 1) * var(--kp)); top: calc(var(--y) * var(--kp)); width: max(1px, calc(2 * var(--kp))); height: calc(12 * var(--kp)); background: currentColor; }
  .nl__n { position: absolute; left: 0; right: 0; top: calc(var(--y) * var(--kp)); height: 0; }
  .nl__n::before, .nl__n::after, .nl__c { content: attr(data-n); position: absolute; top: 0; width: calc(48 * var(--kp)); translate: 0 -50%; text-align: center;
    font: 600 max(11px, calc(14 * var(--kp)))/1 var(--ff); letter-spacing: .04em; color: var(--ink2); }
  .nl__n::before { left: 0; }
  .nl__n::after { right: 0; }
  .nl__c { left: calc((var(--x) - 24) * var(--kp)); top: calc(var(--y) * var(--kp)); }
}

/* ---------- below 1200: one column ---------- */
@media (max-width: 1199px) {
  .fl { --kp: .72px; }
  .fm { padding: 104px var(--gut) 112px; }
  .fm__stage { position: static; display: flex; flex-direction: column; gap: 40px; max-width: 1040px; margin: 0 auto; }
  .fm__map { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -1; }
  .fl .at { position: relative; }
  .fl-display { font-size: clamp(40px, 6.6vw, 72px); line-height: 1.04; text-wrap: balance; }
  .fl-title { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; text-wrap: balance; }
  .fl-number { font-size: clamp(44px, 11.5vw, 104px); line-height: 1; text-wrap: balance; }
  .fl .l { display: inline; white-space: normal; }
  .fl-lead { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; white-space: normal; max-width: 36em; text-wrap: pretty; }
  .fm__head { display: flex; flex-direction: column; gap: 16px; }
  .fl-kicker { width: auto; text-align: left; font-size: 14px; }
  .fl-logo { width: 130px; }
  .mtag { align-self: flex-start; padding: 4px 12px 5px; font-size: 14px; line-height: 20px; }
  .cap { width: auto; gap: 4px; }
  .cap b { font-size: 17px; line-height: 24px; }
  .cap span { font-size: 15px; line-height: 22px; }
  .cap br { display: none; }
  .ph, .photo, .art { transform-origin: 50% 50%; }

  /* pins become chips */
  .mpin { width: auto; display: inline-flex; }
  .mpin__stem { display: none; }
  .mpin__tag { min-height: 48px; gap: 10px; padding: 6px 16px 6px 6px; }
  .mpin__tag img { width: 36px; height: 36px; }
  .mpin__n { font-size: 12px; line-height: 16px; }
  .mpin__p { font-size: 17px; line-height: 20px; }
  .mpin--home .mpin__tag { min-height: 44px; padding: 8px 16px 8px 12px; }
  .mpin--home .icon { width: 20px; height: 20px; }
  .mpin--home .mpin__n { font-size: 15px; line-height: 20px; }
  .stop { width: 28px; height: 28px; box-shadow: inset 0 0 0 5px var(--ink); }

  /* sheet 1 */
  .cov-head { display: flex; flex-direction: column; gap: 16px; }
  .cov-head .fl-display { margin-top: 8px; }
  .cov-phones { display: flex; justify-content: center; gap: 4%; padding: 8px 0 16px; }
  .cov-phones .ph { width: min(42%, 300px); }
  .cov-pins, .ppins, .m10-pin, .m11-end, .m15-end { display: flex; flex-wrap: wrap; gap: 10px; }
  .cov-pins .mpin--home { order: -1; }
  .cov-scale { display: none; }

  /* sheet 2 */
  .prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .prod { display: flex; flex-direction: column; gap: 16px; }
  .prod .photo { width: 100%; }
  .prices { display: flex; flex-direction: column; gap: 12px; }
  .pscale { width: 100%; height: 12px; }
  .pscale__n { display: flex; justify-content: space-between; margin-right: 3.85%; }
  .pn { width: auto; font-size: 12px; }
  .leader, .dim__line, .dim__tick { display: none; }
  .ppins { margin-top: 12px; }
  .dim__l { width: auto; padding: 0; background: none; text-align: left; font-size: 17px; line-height: 24px; }

  /* sheet 3: timeline */
  .fm--m03 .mtag { margin-bottom: -16px; }
  .mtl { position: relative; display: flex; flex-direction: column; gap: 28px; }
  .mtl::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 12px; border-radius: 6px; background: var(--lime); box-shadow: 0 0 0 4px var(--ink); }   /* the route, run top to bottom */
  .mtl__i { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; align-items: start; }
  .mtl__i .stop { z-index: 1; }
  .mtl-media { display: flex; gap: 24px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 12px var(--gut) 32px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .mtl-media > * { flex: none; scroll-snap-align: start; }
  .mtl-media .art { width: 280px; height: 200px; }
  .mtl-media .ph { width: 140px; }

  /* sheet 4: each lane is a list of its screens */
  .fm--m04 .mlegend { width: 100%; max-width: 480px; height: auto; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 20px 24px; }
  .fm--m04 .mlegend__t { grid-column: 1 / -1; }
  .fm--m04 .mlegend__s { white-space: normal; font-size: 15px; line-height: 22px; }
  .lg-trip, .lg-line { width: 56px; } .lg-trip { height: 20px; border-radius: 10px; box-shadow: inset 0 0 0 4px var(--ink); } .lg-line { height: 6px; border-radius: 3px; }
  .lg-stop { width: 28px; height: 28px; margin-left: 14px; box-shadow: inset 0 0 0 6px var(--ink); }
  .net { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .lane { display: flex; flex-direction: column; gap: 12px; }
  .lane__n b { font-size: 19px; line-height: 24px; }
  .lane__n > span { font-size: 15px; line-height: 20px; }
  .ln { display: none; }
  .stns { display: flex; flex-direction: column; gap: 10px; padding-left: 13px; border-left: 0; position: relative; }
  .stns::before { content: ''; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
  .stn { position: relative; display: flex; align-items: center; gap: 12px; margin-left: -13px; }
  .stn .stop { flex: none; width: 26px; height: 26px; box-shadow: inset 0 0 0 5px var(--ink); }
  .stn--trip .stop { background: var(--lime); }
  .stn__l { width: auto; flex-direction: row; align-items: baseline; gap: 8px; white-space: normal; }
  .stn__l--o > span { padding-left: 0; }
  .stn__l > span { font-size: 12px; }
  .stn__l b { font-size: 15px; line-height: 20px; }

  /* sheet 5 */
  .dscard { width: 100%; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; padding: 40px; border-radius: 32px; }
  .dsb { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .dsb__t { font-size: 19px; line-height: 24px; }
  .dsb__s { font-size: 15px; line-height: 22px; margin-bottom: 16px; }
  .sws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sw { width: 52px; height: 52px; border-radius: 14px; }
  .swr b { font-size: 14px; line-height: 18px; }
  .swr span span { font-size: 12px; line-height: 16px; letter-spacing: .02em; }
  .specs { display: flex; flex-direction: column; gap: 14px; }
  .spec { width: auto; gap: 16px; }
  .spec__s { font-size: max(12px, calc(var(--fs) * 1px)); line-height: calc(var(--lh) * 1px); min-width: 0; }
  .spec__l { font-size: 13px; flex: none; }
  .dsscale { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 24px; }
  .dsscale__bar { width: 100%; height: 12px; }
  .dsscale__n { position: relative; height: 14px; }
  .dsscale__n .fl-grid { position: absolute; width: auto; translate: -50% 0; font-size: 11px; }
  .dsscale__n .fl-grid:nth-child(1) { left: 0; } .dsscale__n .fl-grid:nth-child(2) { left: 12.5%; } .dsscale__n .fl-grid:nth-child(3) { left: 25%; } .dsscale__n .fl-grid:nth-child(4) { left: 37.5%; }
  .dsscale__n .fl-grid:nth-child(5) { left: 50%; } .dsscale__n .fl-grid:nth-child(6) { left: 62.5%; } .dsscale__n .fl-grid:nth-child(7) { left: 75%; } .dsscale__n .fl-grid:nth-child(8) { left: 100%; translate: -100% 0; }
  .dsscale__n .fl-grid:nth-child(1) { translate: 0 0; }
  .rads { display: flex; flex-wrap: wrap; gap: 16px; }
  .rad { width: 56px; gap: 8px; }
  .rad i { width: 56px; height: 56px; border-radius: calc(var(--rr) * .78px); }
  .rad span { font-size: 12px; }
  .dsicons { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .dsicons li { height: 64px; border-radius: 14px; }
  .dsicons .icon { width: 24px; height: 24px; }

  /* sheet 6 */
  .pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
  .pc { display: flex; flex-direction: column; gap: 16px; }
  .piece { width: 100%; height: auto; aspect-ratio: var(--w) / var(--hh); border-radius: 18px; }
  .piece[style*="--rr:58.8"] { border-radius: 999px; }

  /* the legs: a row of stops on one lime line, a phone and its caption under each */
  .legs { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 8px var(--gut) 32px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .legs::-webkit-scrollbar, .mtl-media::-webkit-scrollbar { display: none; }
  .leg { position: relative; flex: none; width: 260px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 48px; }
  .leg::before { content: ''; position: absolute; top: 10px; left: -12px; right: -12px; height: 20px; background: var(--lime); border-block: 4px solid var(--ink); }   /* ink casing top and bottom only, so neighbouring legs join without a seam */
  .leg:first-child::before { left: 0; border-left: 4px solid var(--ink); border-radius: 10px 0 0 10px; }
  .leg:last-child::before { right: 0; border-right: 4px solid var(--ink); border-radius: 0 10px 10px 0; }
  .leg .stop { position: absolute; top: 6px; left: 116px; }
  .leg .ph { width: 236px; margin-left: 12px; }
  .legs--night .leg { padding-top: 8px; }
  .legs--night .leg::before { display: none; }
  .fm--legs .mtag { margin-bottom: -16px; }
  .m08-photos { display: flex; gap: 16px; order: -1; }
  .m08-photos .photo { width: 96px; }
  .fm--m08 .fm__head { order: -2; }
  .fm--m09 .fl-number .l:first-child { display: block; }

  /* sheet 14 */
  .districts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .fl-place { font-size: 12px; }
  .aerial { width: 100%; height: auto; aspect-ratio: 1680 / 1080; border-radius: 20px; }
  .fl-foot { font-size: 15px; line-height: 22px; margin-top: -24px; }
  .mlegend--m14 { width: 100%; max-width: 480px; height: auto; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 20px 24px; }
  .mlegend--m14 .mlegend__t, .mlegend--m14 .mlegend__note { grid-column: 1 / -1; }
  .mlegend--m14 .mlegend__s { white-space: normal; font-size: 15px; line-height: 22px; }
  .mlegend--m14 .mlegend__note br { display: none; }
  .lg-thumb { width: 18px; height: 40px; margin-left: 11px; }
  .lg-lane { width: 40px; height: 40px; }
  .fm--m14 .mlegend { order: 5; }

  /* sheet 15 */
  .fm--m15 .fl-logo { margin-top: -8px; }
  .m15-end { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 32px; align-items: center; }
  .m15-end .stop { display: none; }
  .m15-end .ph { grid-row: span 2; width: min(46vw, 260px); }
  .m15-end .mpin { align-self: end; }
  .m15-end .cap { align-self: start; }
  .m11-end .stop { display: none; }
  .titleblock { width: auto; height: auto; max-width: 400px; display: grid; gap: 4px; padding: 20px 24px; }
  .titleblock__a { font-size: 17px; line-height: 24px; }
  .titleblock__b { font-size: 15px; line-height: 22px; white-space: normal; }
  .titleblock__c { font-size: 12px; line-height: 16px; white-space: normal; }
}
@media (max-width: 699px) {
  .fl { --kp: .6px; }
  .fm { padding: 80px var(--gut) 88px; }
  .fm__stage { gap: 32px; }
  .cov-phones { gap: 2%; }
  .cov-phones .ph { width: 46%; }
  .prods { gap: 10px; }
  .prod .cap b { font-size: 15px; line-height: 20px; }
  .prod .cap span { font-size: 13px; line-height: 18px; }
  .net { grid-template-columns: minmax(0, 1fr); }
  .dscard { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 24px; gap: 40px; }
  .sws { gap: 14px 12px; }
  .dsicons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec__s { font-size: max(12px, calc(var(--fs) * .8px)); line-height: calc(var(--lh) * .8px); }
  .pieces { grid-template-columns: minmax(0, 1fr); }
  .leg { width: 232px; }
  .leg .ph { width: 208px; }
  .leg .stop { left: 102px; }
  .m15-end { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .m15-end .ph { grid-row: auto; width: 220px; margin-left: 8px; }
}

/* ---------- motion (static/js/fleece.js adds .is-in, .is-on and .is-armed); nothing hides without JS or with reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .fl [data-fr] { transition: opacity .9s var(--fe), translate 1s var(--fe), background-size 1.4s var(--fe); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .fl [data-fr]:not(.is-in) { opacity: 0; translate: 0 calc(40 * var(--kp)); }
  .js .fl [data-pop] { transition: opacity .45s var(--fe), scale .7s var(--fe); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .fl [data-pop]:not(.is-in) { opacity: 0; scale: .5; }
  .js .fl .pscale, .js .fl .dsscale__bar { background-repeat: no-repeat; background-size: 100% 100%; }   /* the scale bars fill from the left inside their outline */
  .js .fl .pscale[data-fr]:not(.is-in), .js .fl .dsscale__bar[data-fr]:not(.is-in) { background-size: 0% 100%; opacity: 1; translate: none; }
  .js .fl .rad[data-fr]:not(.is-in) i { border-radius: 0; }
  .js .fl .rad i { transition: border-radius 1s var(--fe) calc(var(--i, 0) * 110ms + 250ms); }
  .js .fl .fm--m14 .aerial img { will-change: transform; }
  .js .fl .stop--end::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(198 241 53 / .9); opacity: 0; }
  .js .fl .stop--end.is-on::after { animation: fl-ring 1.6s var(--fe) .2s 3; }
  .fm--m13.is-vis .rl--dash { animation: fl-ants 1.1s linear infinite; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .js .fl .is-armed [data-stop] { transition: scale .55s var(--fe), opacity .3s ease; }
  .js .fl .is-armed [data-stop]:not(.is-on) { scale: 0; opacity: 0; }
  .js .fl .is-armed .stop:not(.stop--end).is-on { animation: fl-lit .9s var(--fe); }
  .js .fl .fm--m04.is-armed .ln { transition: scale .9s var(--fe) calc(var(--i, 0) * 130ms); }
  .js .fl .fm--m04.is-armed:not(.is-net) .ln { scale: 0 1; }
  .js .fl .fm--m04.is-armed .lane__n, .js .fl .fm--m04.is-armed .stn__l { transition: opacity .6s ease calc(var(--i, 0) * 130ms + 200ms), translate .8s var(--fe) calc(var(--i, 0) * 130ms + 200ms); }
  .js .fl .fm--m04.is-armed:not(.is-net) .lane__n, .js .fl .fm--m04.is-armed:not(.is-net) .stn__l { opacity: 0; translate: 0 calc(12 * var(--kp)); }
}
@keyframes fl-lit { 0% { background: var(--lime); } 60% { background: var(--lime); } 100% { background: #fff; } }
@keyframes fl-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgb(198 241 53 / .9); } 100% { opacity: 0; box-shadow: 0 0 0 calc(28 * var(--kp)) rgb(198 241 53 / 0); } }
@keyframes fl-ants { to { stroke-dashoffset: -31.3; } }
