/* Mack Brands Identity 2026
   One grid of square modules, sixteen across. Six text styles. Four colours.
   Everything moves on the heading, 22.5 degrees, easing out over 400 to 600 ms. */

/* ------------------------------------------------------------------ fonts */
/* The licensed web fonts in assets/fonts come first, so every visitor sees the same thing. A copy installed
   on the machine is only used if those files are missing, then the free stand-ins. See assets/fonts/README.txt. */
@font-face { font-family: "MB Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/PPEditorialNew-Italic.woff2") format("woff2"), local("PP Editorial New Italic"), local("PPEditorialNew-Italic"); }
@font-face { font-family: "MB Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/PPNeueMontreal-Regular.woff2") format("woff2"), local("PP Neue Montreal Regular"), local("PPNeueMontreal-Regular"), local("Neue Montreal Regular"), local("NeueMontreal-Regular"); }
@font-face { font-family: "MB Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/PPNeueMontreal-Bold.woff2") format("woff2"), local("PP Neue Montreal Bold"), local("PPNeueMontreal-Bold"), local("Neue Montreal Bold"), local("NeueMontreal-Bold"); }
/* No Ultralight Italic web font yet, so the deck's quote uses the Italic above. With the file, put it in
   assets/fonts and take the comment marks off this line:
@font-face { font-family: "MB Serif Light"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/PPEditorialNew-UltralightItalic.woff2") format("woff2"); } */
/* stand-ins, SIL Open Font License */
@font-face { font-family: "MB Serif Fallback"; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 108%;
  src: url("../fonts/fallback/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MB Serif Fallback"; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 108%;
  src: url("../fonts/fallback/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MB Sans Fallback"; font-weight: 400; font-display: swap;
  src: url("../fonts/fallback/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "MB Sans Fallback"; font-weight: 700; font-display: swap;
  src: url("../fonts/fallback/inter-tight-latin-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0B0B0B; --paper: #F2F1EE; --white: #FFFFFF; --lime: #DFFF00;
  --m: calc(100vw / 16);               /* the module; site.js sets it from the real width */
  --nav: clamp(52px, calc(var(--m) * .5), 68px);
  --serif: "MB Serif", "MB Serif Fallback", Georgia, serif;
  --serif-light: "MB Serif Light", "MB Serif", "MB Serif Fallback", Georgia, serif;
  --sans: "MB Sans", "MB Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* easing out */
  --t: 520ms;
  /* the heading, 22.5 degrees above west: the way the swallow flies */
  --hx: .9239; --hy: .3827;
  --fg: var(--ink); --bg: var(--paper); --pt: var(--ink); /* pt: colour of the one point on this ground */
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: clamp(16px, calc(var(--m) * .1833), 23px);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; font-feature-settings: "kern", "liga"; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; text-align: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--m); top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ the six text styles
   Every style trims to its capitals: a text box starts at the cap height and ends on the baseline. */
.st, .ti, .hd, .lb { text-box: trim-both cap alphabetic; }
.st { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, calc(var(--m) * 1.6667), 280px); line-height: .92; letter-spacing: -.02em; }
.ti { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, calc(var(--m) * .6), 100px); line-height: 1; letter-spacing: -.01em; }
.hd { font-family: var(--sans); font-weight: 700; font-size: clamp(17px, calc(var(--m) * .25), 40px); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.bd { font-family: var(--sans); font-weight: 400; font-size: clamp(16px, calc(var(--m) * .1833), 23px); line-height: 1.5; }
.sm { font-family: var(--sans); font-weight: 400; font-size: clamp(13px, calc(var(--m) * .15), 19px); line-height: 1.5; }
.bd, .sm { text-wrap: pretty; }   /* running text never leaves one word alone on its last line */
.lb { font-family: var(--sans); font-weight: 700; font-size: clamp(10.5px, calc(var(--m) * .15), 19px); line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.lt { font-family: var(--serif-light); }
.caps { font-family: var(--sans); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.measure { max-width: calc(var(--m) * 6); }
.tnum { font-variant-numeric: lining-nums tabular-nums; }

/* ------------------------------------------------------------------ grounds */
.g-ink   { --fg: var(--paper); --bg: var(--ink);   --pt: var(--lime); background: var(--ink);   color: var(--paper); }
.g-paper { --fg: var(--ink);   --bg: var(--paper); --pt: var(--ink);  background: var(--paper); color: var(--ink); }
.g-white { --fg: var(--ink);   --bg: var(--white); --pt: var(--ink);  background: var(--white); color: var(--ink); }
.g-lime  { --fg: var(--ink);   --bg: var(--lime);  --pt: var(--ink);  background: var(--lime);  color: var(--ink); }

/* ------------------------------------------------------------------ plates: 16 x 9 squares, the margin is one */
.plate { position: relative; display: grid; grid-template-columns: repeat(16, var(--m)); grid-auto-rows: var(--m);
  min-height: calc(var(--m) * 9); overflow: clip; }
.plate > * { grid-column: var(--c, 2 / 16); grid-row: var(--r, auto); min-width: 0; position: relative; }
.plate > .top { grid-row: 2; align-self: start; }            /* titles hang from the top margin */
.plate > .foot { align-self: end; }                         /* notes stand on the bottom margin */
.full { --c: 1 / -1; --r: 1 / 10; }
@media (min-width: 1001px) { .plate > .pane-l ~ figure, .plate > .pane-l ~ p { margin-right: calc(var(--m) * .5); } }   /* text beside a pane stays half a square off it */
.ctr { display: grid; place-items: center; }
.sub-anchor { position: absolute; top: 0; left: 0; }

/* the folio sits in the bottom margin */
.folio { grid-column: 2 / 16; grid-row: 9; align-self: center; display: flex; justify-content: space-between; align-items: center; }

/* ------------------------------------------------------------------ navigation: lives in the top margin */
.nav { position: fixed; z-index: 60; inset: 0 0 auto 0; height: var(--nav); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--m); background: var(--nbg, var(--paper)); color: var(--nfg, var(--ink)); }
.nav[data-ground="ink"]   { --nbg: var(--ink);   --nfg: var(--paper); --npt: var(--lime); }
.nav[data-ground="paper"] { --nbg: var(--paper); --nfg: var(--ink);   --npt: var(--ink); }
.nav[data-ground="white"] { --nbg: var(--white); --nfg: var(--ink);   --npt: var(--ink); }
.nav[data-ground="lime"]  { --nbg: var(--lime);  --nfg: var(--ink);   --npt: var(--ink); }
.nav__mark { display: block; width: clamp(104px, calc(var(--m) * 1.1), 150px); }
.nav__mark svg { width: 100%; height: auto; aspect-ratio: 1025 / 154; fill: currentColor; }
.nav__tabs { display: flex; gap: clamp(14px, calc(var(--m) * .26), 34px); align-items: center; }
.nav__tabs a, .nav__tool { position: relative; display: inline-flex; align-items: center; gap: .6em; padding: 6px 0; }
.nav__tabs a .pt { width: .8em; height: .8em; fill: var(--npt); flex: none; transform: scale(0); transition: transform 300ms var(--ease); }
.nav__tabs a[aria-current="page"] .pt { transform: scale(1); }
.nav__tabs a:hover .lbl, .nav__tool:hover .lbl { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.nav__tools { display: flex; gap: clamp(14px, calc(var(--m) * .26), 34px); align-items: center; margin-left: clamp(14px, calc(var(--m) * .4), 48px); }
.nav__tool[aria-pressed="true"] .lbl { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.nav__menu { display: none; }
.nav__right { display: flex; align-items: center; }

/* the menu on small screens: a Lime field */
.menu { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav) + var(--m) * 2) var(--m) var(--m); }
.menu[open], .menu.is-open { display: flex; }
.menu__close { position: absolute; top: 0; right: var(--m); height: var(--nav); display: flex; align-items: center; gap: .6em; }
.menu__list li + li { margin-top: calc(var(--m) * 1.4); }
.menu__list a { display: flex; align-items: baseline; gap: calc(var(--m) * .8); }
.menu__list .lb { min-width: 2em; }

/* ------------------------------------------------------------------ the grid, shown on request (G) */
.gridlay { position: absolute; z-index: 55; left: 0; top: 0; width: 100%; pointer-events: none; display: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: var(--m) var(--m); mix-blend-mode: difference; }
.show-grid .gridlay { display: block; }

/* ------------------------------------------------------------------ tabs and their entrance */
.tab[hidden] { display: none !important; }
.divider .num { --c: 2 / 9; --r: 2 / 5; align-self: start; }
.divider .name { --c: 2 / 10; --r: 8 / 9; align-self: end; }
.divider .toc { --c: 10 / 16; --r: 2 / 9; align-self: start; }
.toc ol { border-top: 1.5px solid currentColor; }
.toc li { border-bottom: 1.5px solid currentColor; }
.toc a { display: grid; grid-template-columns: calc(var(--m) * .75) 1fr auto; align-items: center; min-height: calc(var(--m) * .4); padding: 10px 0; }
.toc a svg { width: 18px; height: 18px; transform: translateX(-6px); transition: transform 300ms var(--ease); }
.toc a:hover svg { transform: none; }
.toc a:hover .bd { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* the field arrives in sixteen cuts, one module at a time */
.tab.entering .divider { animation: cut16 480ms steps(16, end) both; }
.tab.entering .divider .num, .tab.entering .divider .name { animation: heading 560ms var(--ease) both; animation-delay: 200ms; }
.tab.entering .divider .toc { animation: heading 560ms var(--ease) both; animation-delay: 320ms; }
@keyframes cut16 { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heading { from { transform: translate(calc(var(--m) * var(--hx) * .5), calc(var(--m) * var(--hy) * .5)); } to { transform: none; } }

/* moves in on the heading once, the first time it is seen. No fades: things move, they don't dissolve. */
.js .rv { transform: translate(calc(var(--m) * var(--hx) * .3), calc(var(--m) * var(--hy) * .3)); transition: transform var(--t) var(--ease); }
.js .rv.in { transform: none; }
.js .rv.last { transition-delay: 160ms; }

/* ------------------------------------------------------------------ components: corners cut at 45 degrees */
.btn { --cut: 8px; display: inline-flex; align-items: center; gap: 16px; height: clamp(44px, calc(var(--m) * .4667), 58px); padding: 0 calc(var(--cut) + 15px);
  background: var(--fg); color: var(--bg); position: relative;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.btn svg { width: 24px; height: 24px; flex: none; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.tag { --cut: 6px; display: inline-flex; align-items: center; height: clamp(26px, calc(var(--m) * .2667), 34px); padding: 0 calc(var(--cut) + 7px); position: relative;
  background: var(--fg); color: var(--bg); white-space: nowrap;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.tag--lime { background: var(--lime); color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 12px; }
.link svg { width: 24px; height: 24px; transition: transform 300ms var(--ease); }
.link:hover svg { transform: translateX(4px); }
.list li { display: flex; gap: 16px; align-items: baseline; }
.list li + li { margin-top: .5em; }
.list svg { width: .64em; height: .64em; flex: none; fill: currentColor; transform: translateY(.02em); }
.stat .fig { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(32px, calc(var(--m) * .6), 100px); line-height: 1; letter-spacing: -.01em; text-box: trim-both cap alphabetic; }
.stat--l .fig { font-size: clamp(44px, calc(var(--m) * 1.6667), 280px); line-height: .92; letter-spacing: -.02em; }
.stat .lb { display: block; margin-top: calc(var(--m) * .2); }
.quote q { display: block; font-family: var(--serif-light); font-style: italic; font-size: clamp(32px, calc(var(--m) * .6), 100px); line-height: 1; letter-spacing: -.01em; quotes: "\201C" "\201D"; text-box: trim-both cap alphabetic; }
.quote .lb { display: block; margin-top: calc(var(--m) * .33); }


/* outlines with cut corners: the shape in the ink of the ground, the inside in the ground itself */
.btn--line, .tag--line, .chip { background: var(--fg); color: var(--fg); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); isolation: isolate; }
.btn--line::before, .tag--line::before, .chip::before { content: ""; position: absolute; inset: 1.5px; background: var(--bg); z-index: -1; pointer-events: none; clip-path: polygon(calc(var(--cut) - .62px) 0, calc(100% - calc(var(--cut) - .62px)) 0, 100% calc(var(--cut) - .62px), 100% calc(100% - calc(var(--cut) - .62px)), calc(100% - calc(var(--cut) - .62px)) 100%, calc(var(--cut) - .62px) 100%, 0 calc(100% - calc(var(--cut) - .62px)), 0 calc(var(--cut) - .62px)); }
.chip:hover::before, .btn--line:hover::before { background: var(--fg); }
.chip:hover, .btn--line:hover { color: var(--bg); }

/* download chips */
.dl { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.dl .lb.cap { margin-right: 6px; }
.chip { --cut: 6px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 calc(var(--cut) + 8px); position: relative; white-space: nowrap; }
.chip svg { width: 18px; height: 18px; }
.chip .sz, .btn .sz { opacity: 1; font-weight: 400; letter-spacing: .02em; text-transform: none; }

/* segmented switch for grounds and colourways */
.switch { display: inline-flex; gap: 0; border: 1.5px solid currentColor; }
.switch button { padding: 8px 12px; }
.switch button + button { border-left: 1.5px solid currentColor; }
.switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ------------------------------------------------------------------ hero */
.hero { height: calc(var(--m) * 9); min-height: 0; cursor: pointer; }
.hero canvas, .fill-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .cover-l { --c: 2 / 6; --r: 2 / 3; z-index: 2; }
.hero .cover-r { --c: 12 / 16; --r: 2 / 3; z-index: 2; justify-self: end; text-align: right; }
.hero .cover-b { --c: 2 / 16; --r: 8 / 9; align-self: end; z-index: 2; display: flex; justify-content: space-between; }
.hero .lockup { --c: 6 / 12; --r: 2 / 9; place-self: center; width: calc(var(--m) * 3.4); position: relative; z-index: 2; color: var(--paper); --eye: var(--ink); --star: transparent; }
.hero .lockup .mark { width: 100%; height: auto; aspect-ratio: 744 / 755; fill: currentColor; }
.hero .lockup .star-pt { position: absolute; left: 33.898%; top: 0; width: 4.839%; height: auto; aspect-ratio: 1; color: transparent; --star: var(--lime); }
.hero .hero-field { z-index: 0; }
.js .hero .lockup .mark, .js .hero .lockup .star-pt { visibility: hidden; }
.js .hero.beat-star .star-pt, .js .hero.done .star-pt { visibility: visible; }
.js .hero.beat-mark .mark, .js .hero.done .mark { visibility: visible; }
.hero.beat-star .star-pt { animation: heading 420ms var(--ease) both; }
.hero.beat-mark .mark { animation: heading 520ms var(--ease) both; }
.hero:focus-visible { outline-offset: -6px; }

/* flowing plates: content decides the height, rounded up to whole modules by site.js */
.plate.flow { display: block; padding: var(--m); }
.plate.flow > * { position: relative; }
.plate.flow > * + * { margin-top: calc(var(--m) * .5); }
.flow-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--m); flex-wrap: wrap; }
.flow-head + * { margin-top: calc(var(--m) * 1) !important; }

/* ------------------------------------------------------------------ the contents: halves, the list and the live chapter */
.contents .list5 { --c: 2 / 9; --r: 2 / 9; display: flex; flex-direction: column; justify-content: space-between; }
.contents .pane { --c: 9 / 17; --r: 1 / 10; }
.contents .pane > * { position: absolute; inset: 0; }
.contents .pane .preview { visibility: hidden; z-index: 0; }
.contents .pane .preview.was { visibility: visible; z-index: 1; }
.contents .pane .preview.on { visibility: visible; z-index: 2; animation: cut16 400ms steps(8, end) both; }
.contents li a { display: grid; grid-template-columns: calc(var(--m) * .75) 1fr; align-items: baseline; padding: calc(var(--m) * .08) 0; }
.contents li a .lb { position: relative; }
.contents li a .pt { position: absolute; left: 0; top: 50%; width: 1em; height: 1em; margin-top: -.5em; fill: currentColor; visibility: hidden; }
.contents li a.on .pt { visibility: visible; }
.contents li a.on .no { visibility: hidden; }
.contents li a .ti { transition: transform 360ms var(--ease); display: inline-block; }
.contents li a:hover .ti, .contents li a:focus-visible .ti, .contents li a.on .ti { transform: translateX(calc(var(--m) * .25)); }

/* the quiet box: words that sit over a pattern or a picture get a patch of ground */
.quiet { background: var(--bg); box-shadow: 0 0 0 calc(var(--m) * .16) var(--bg); }

/* the star, constructed */
.construct { position: absolute; inset: 0; width: 100%; height: 100%; }
.construct .ray { stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.construct .lbl { font: 700 17px/1 var(--sans); letter-spacing: .08em; }
.js .construct-host .ray { transition: stroke-dashoffset 1600ms var(--ease); }
.js .construct-host:not(.in) .ray { stroke-dashoffset: var(--len); }
.js .construct-host .body { transition: clip-path 480ms steps(8, end) 700ms; clip-path: inset(0 0 0 0); }
.js .construct-host:not(.in) .body { clip-path: inset(0 100% 0 0); }
.js .construct-host .lbl { transition: visibility 0s 1100ms; }
.js .construct-host:not(.in) .lbl { visibility: hidden; }

/* ------------------------------------------------------------------ media in plates */
.vis { display: grid; place-items: center; }
.vis > svg, .vis > img { width: 100%; height: 100%; object-fit: contain; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.edge { outline: 1.5px solid var(--edge, rgba(11,11,11,.14)); outline-offset: -1.5px; }
.cap { margin-top: calc(var(--m) * .2); }
.cap .lb { display: block; margin-bottom: 6px; }
.cap .sm { display: block; }                                /* its own line height, not the caption's */
figcaption.cap { padding-right: calc(var(--m) * .3); }      /* captions side by side never touch */
.copy { cursor: copy; }
.copied::after { content: "Copied"; position: absolute; left: 0; bottom: calc(100% + 8px); font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); padding: 6px 8px; }

/* lines on the wordmark: one top line, one baseline */
.wm-lines { position: relative; }
.wm-lines .ln { position: absolute; left: calc(var(--m) * -1); right: calc(var(--m) * -1); height: 0; border-top: 1px solid currentColor; transform-origin: left; }
.js .wm-lines .ln { transform: scaleX(0); transition: transform 700ms var(--ease); }
.js .wm-lines.in .ln { transform: none; }
.wm-lines .ln .lb { position: absolute; right: 0; bottom: 8px; font-size: 11px; }

/* clear space */
.clear { position: relative; display: inline-block; padding: var(--x); outline: 1px dashed currentColor; outline-offset: 0; }
.clear .xbox { position: absolute; width: var(--x); height: var(--x); outline: 1px solid currentColor; outline-offset: -1px; display: grid; place-items: center; font: 700 11px/1 var(--sans); }

/* colour bands */
.bands { --c: 1 / -1; --r: 1 / 10; display: grid; grid-template-columns: 4fr 5fr 4fr 3fr; }
.bands > button { position: relative; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 var(--m) var(--m); gap: calc(var(--m) * .25); }
.bands > button:first-child { padding-left: var(--m); }
.bands .vals { min-height: 4.5em; }
.bands > button:hover .lb.hint, .bands > button:focus-visible .lb.hint { visibility: visible; }
.bands .lb.hint { visibility: hidden; position: absolute; top: calc(var(--m) * 1.2); left: var(--m); }

/* type specimens */
.spec .aa { font-size: clamp(110px, calc(var(--m) * 2.1), 340px); line-height: 1; text-box: trim-both cap alphabetic; }
.composer [contenteditable] { outline: none; caret-color: currentColor; }
.composer [contenteditable]:focus { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* logo finder */
.finder .stage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(11,11,11,.12); }
.finder .cell { background: var(--bg); padding: calc(var(--m) * .4); display: flex; flex-direction: column; gap: calc(var(--m) * .3); min-height: calc(var(--m) * 2.4); justify-content: space-between; }
.finder .cell .art { flex: 1; display: grid; place-items: center; min-height: calc(var(--m) * 1.2); }
.finder .cell .art svg { width: 70%; height: auto; max-height: calc(var(--m) * 1.4); }

/* the one-out-of-place tiles */
.tiles4 { --c: 2 / 16; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--m) * .3333); }
.tile .box { position: relative; aspect-ratio: 1; overflow: hidden; }

/* grounds cards */
.grounds5 { --c: 2 / 16; display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--m) * .3333); }
.grounds5 .card { aspect-ratio: 2 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.grounds5 .card svg { width: 22%; }
.grounds5 .no::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) calc(50% - .5px), var(--ink) calc(50% + .5px), transparent calc(50% + 1px)); }

/* contrast matrix */
.matrix { border-collapse: collapse; }
.matrix th, .matrix td { width: var(--m); height: var(--m); text-align: center; padding: 0; position: relative; }
.matrix th { text-align: left; font-weight: 700; }
.matrix td.k-ink { background: var(--ink); } .matrix td.k-paper { background: var(--paper); } .matrix td.k-white { background: var(--white); } .matrix td.k-lime { background: var(--lime); }
.matrix td svg { width: 30%; margin: 0 auto; }
.matrix td .r { position: absolute; right: 6px; bottom: 6px; font-size: 11px; }
.matrix td.bad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) calc(50% - .5px), var(--ink) calc(50% + .5px), transparent calc(50% + 1px)); opacity: .5; }

/* data */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0; height: calc(var(--m) * .5); border-bottom: 1px solid currentColor; }
.table th { height: calc(var(--m) * .4); border-bottom-width: 1.5px; }
.table .n { text-align: right; }
.table tr.hi td { background: var(--lime); color: var(--ink); }
.table tr.tot td { border-bottom: 0; }
.chart { display: flex; align-items: flex-end; gap: calc(var(--m) * .25); height: 100%; }
.chart .bar { flex: 1; position: relative; border: 1.5px solid currentColor; border-bottom: 0; height: var(--h); transform-origin: bottom; }
.js .chart .bar { transform: scaleY(0); transition: transform 600ms var(--ease); }
.js .chart.in .bar { transform: none; }
.js .chart.in .bar.hi { transition-delay: 200ms; }
.chart .bar.hi { background: var(--lime); border-color: var(--lime); }
.chart .yr { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); }
.chart .val { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* icons */
.icons16 { display: grid; grid-template-columns: repeat(4, calc(var(--m) * 2)); grid-auto-rows: var(--m); }
.icons16 a { display: flex; align-items: center; gap: calc(var(--m) * .2); }
.icons16 a svg { width: clamp(24px, calc(var(--m) * .2), 28px); height: auto; }
.icons16 a:hover .sm { text-decoration: underline; text-underline-offset: 4px; }

/* gallery and deck viewer */
.deck .thumbs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: calc(var(--m) * .25); }
.deck .thumbs button { aspect-ratio: 16 / 9; overflow: hidden; outline-offset: 2px; }
.deck .thumbs button[aria-current="true"] { outline: 2px solid currentColor; }
.deck .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal { display: grid; gap: calc(var(--m) * .3333); }
.gal figure img { width: 100%; height: auto; }
.gal figcaption { margin-top: 12px; }

/* downloads */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1.5px solid currentColor; }
.pack { display: grid; grid-template-columns: calc(var(--m) * 1.4) 1fr auto; gap: calc(var(--m) * .3); align-items: center; padding: calc(var(--m) * .3) 0; border-bottom: 1.5px solid currentColor; }
.pack:nth-child(odd) { padding-right: calc(var(--m) * .5); }
.pack:nth-child(even) { padding-left: calc(var(--m) * .5); border-left: 1.5px solid currentColor; }
.pack .thumb { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pack .thumb svg { width: 56%; }
.files { width: 100%; border-collapse: collapse; }
.files th, .files td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid currentColor; vertical-align: middle; }
.files th { border-bottom-width: 1.5px; }
.files .pv { width: calc(var(--m) * 1.1); }
.files .pv div { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 6px; }
.files .pv img { max-height: 100%; width: auto; max-width: 100%; }
.files td.f { white-space: nowrap; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 8px 12px; border: 1.5px solid currentColor; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.use4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--m) * .5); }
.use4 .lb { margin-bottom: 10px; }
.ul { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.pack .btn { white-space: nowrap; }
.pack .thumb[data-engine] { position: relative; }

/* footer */
.foot-plate { min-height: calc(var(--m) * 6); }
.foot-plate .close { --c: 2 / 12; --r: 2 / 5; align-self: start; }
.foot-plate .links { --c: 12 / 16; --r: 2 / 5; align-self: start; }
.foot-plate .links li + li { margin-top: 10px; }
.foot-plate .links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-plate .base { --c: 2 / 16; --r: 5 / 6; align-self: end; display: flex; justify-content: space-between; gap: 20px; }

/* ------------------------------------------------------------------ design system parts */
.modgrid { background-image: linear-gradient(to right, rgba(11,11,11,.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(11,11,11,.16) 1px, transparent 1px);
  background-size: var(--m) var(--m); }
.modnums span { position: absolute; transform: translate(-50%, -50%); font-size: clamp(9px, calc(var(--m) * .11), 13px); }
.pic { overflow: hidden; }
.formats { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(var(--m) * .4); }
.formats figure { width: calc(var(--m) * 2.4); }
.formats svg { width: 100%; height: auto; }
.mini { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.mini > * { min-height: 0; }
.mini-t { position: absolute; left: 6.25%; top: 11%; font-family: var(--serif); font-style: italic; font-size: clamp(11px, calc(var(--m) * .16), 22px); line-height: 1; z-index: 1; }
.typescale { width: 100%; border-collapse: collapse; }
.typescale th, .typescale td { text-align: left; vertical-align: baseline; padding: calc(var(--m) * .22) calc(var(--m) * .2) calc(var(--m) * .22) 0; border-bottom: 1px solid currentColor; }
.typescale th { border-bottom-width: 1.5px; padding-top: 0; }
.typescale td:first-child { width: 64%; }
.typescale .n, .table .n { text-align: right; white-space: nowrap; }
.typescale td:last-child, .typescale th:last-child { padding-right: 0; }
.typescale .st, .typescale .ti, .typescale .hd { display: block; }
.rules6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--m) * .9) calc(var(--m) * .6); }
.rule .ex { margin: calc(var(--m) * .3) 0 calc(var(--m) * .2); }
.compgrid { display: grid; grid-template-columns: repeat(14, 1fr); row-gap: calc(var(--m) * .75); }
.cg { padding-right: calc(var(--m) * .3); }                 /* one group never runs into the next */
.cg .row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.cgl { margin-bottom: calc(var(--m) * .3); }
.stats { gap: calc(var(--m) * .8) !important; align-items: flex-start !important; }
.g-ink .modgrid { filter: invert(1); }

/* ------------------------------------------------------------------ brand world parts */
.voice2, .pics2 { display: grid; grid-template-columns: 6fr 1fr 7fr; }
.voice2 > :last-child, .pics2 > :last-child { grid-column: 3; }
.principles > div + div { margin-top: calc(var(--m) * .45); }
.principles dt { margin-bottom: 8px; }
.notbut .pair + .pair { margin-top: calc(var(--m) * .7); }
.pair { display: grid; grid-template-columns: calc(var(--m) * 1) 1fr; row-gap: calc(var(--m) * .25); align-items: baseline; }
.pair s { text-decoration-thickness: 1px; }
.crop { aspect-ratio: 1; position: relative; overflow: hidden; }
.crop > svg, .crop > img { max-width: none; }               /* a crop is bigger than its frame on purpose */
.oct { --cut: 14%; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.motion-stage { position: relative; overflow: hidden; background: var(--ink); }
.motion-stage .m-star { position: absolute; left: 50%; top: 50%; width: calc(var(--m) * .55); transform: translate(-50%, -50%); fill: var(--lime); visibility: hidden; }
.motion-stage .m-mark { position: absolute; left: 50%; top: 50%; width: calc(var(--m) * 4.2); transform: translate(-50%, -50%); fill: var(--paper); visibility: hidden; }
.motion-stage.beat-star .m-star { visibility: visible; animation: headingc 420ms var(--ease) both; }
.motion-stage.beat-mark .m-star { visibility: hidden; }
.motion-stage.beat-mark .m-mark { visibility: visible; animation: headingc 520ms var(--ease) both; }
@keyframes headingc { from { transform: translate(calc(-50% + var(--m) * var(--hx) * .6), calc(-50% + var(--m) * var(--hy) * .6)); } to { transform: translate(-50%, -50%); } }
.beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--m) * .3); padding-top: calc(var(--m) * .3); }
.beats li { border-top: 1.5px solid currentColor; padding-top: 12px; }
.beats li span { display: block; }
.beats li .lb { margin-bottom: 6px; }
.beats li.on .lb { color: var(--lime); }
.gal.world { grid-template-columns: 1fr 1fr; }
.gal figcaption { margin-top: 12px; }

/* ------------------------------------------------------------------ formats: every one sixteen modules wide, so one unit does for all */
.fmt { position: relative; container-type: inline-size; overflow: hidden; --u: 6.25cqw; --k: 1; }
.fmt.pr { --k: 1.42; } .fmt.card { --k: 3.3; } .fmt.fsig { --k: 2.3; } .fmt.soc { --k: 1.6; } .fmt.froll { --k: 1.9; }
.fa4 { aspect-ratio: 210 / 297; } .card { aspect-ratio: 85 / 55; } .fdl { aspect-ratio: 2 / 1; } .fsig { aspect-ratio: 600 / 278; }
.f45 { aspect-ratio: 4 / 5; } .fban { aspect-ratio: 1584 / 396; } .f169 { aspect-ratio: 16 / 9; } .froll { aspect-ratio: 850 / 2000; }
.fmt .a { position: absolute; left: calc(var(--x, 1) * var(--u)); top: calc(var(--y, 1) * var(--u)); width: calc(var(--w, 14) * var(--u)); margin: 0; }
.fmt .b { position: absolute; left: calc(var(--x, 1) * var(--u)); bottom: calc(var(--yb, 1) * var(--u)); width: calc(var(--w, 14) * var(--u)); margin: 0; }
.fmt svg.a, .fmt svg.b, .fmt img.a { height: auto; }
.f-st { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: calc(var(--u) * 1.6667 * var(--k)); line-height: .92; letter-spacing: -.02em; text-box: trim-both cap alphabetic; }
.f-ti { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: calc(var(--u) * .6 * var(--k)); line-height: 1; letter-spacing: -.01em; text-box: trim-both cap alphabetic; }
.f-mid { font-size: calc(var(--u) * .4 * var(--k)); }
.f-tl { font-family: var(--serif-light); }
.f-hd { font-family: var(--sans); font-weight: 700; font-size: calc(var(--u) * .25 * var(--k)); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.f-bd { font-family: var(--sans); font-weight: 400; font-size: calc(var(--u) * .1833 * var(--k)); line-height: 1.5; }
.f-sm { font-family: var(--sans); font-weight: 400; font-size: calc(var(--u) * .15 * var(--k)); line-height: 1.5; }
.f-lb { font-family: var(--sans); font-weight: 700; font-size: calc(var(--u) * .15 * var(--k)); line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.s-caps { font-size: calc(var(--u) * .463 * var(--k)) !important; letter-spacing: .02em; margin-top: calc(var(--u) * .22 * var(--k)); }
.fol { position: absolute; left: var(--u); right: var(--u); top: calc(var(--u) * 8.5); transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; }
.fol svg { width: calc(var(--u) * 1.1); height: auto; fill: currentColor; }
.fol .mid { position: absolute; left: calc(var(--u) * 6); }
.s-rows { border-top: max(1px, calc(var(--u) * .0125)) solid currentColor; }
.s-rows li { display: grid; grid-template-columns: calc(var(--u) * 2) 1fr; align-items: center; height: var(--u); border-bottom: max(1px, calc(var(--u) * .0125)) solid currentColor; }
.s-rows--tall li { grid-template-columns: calc(var(--u) * 8) 1fr; height: calc(var(--u) * 1.5); }
.s-rows--tall li > span:last-child > span { display: block; }
.s-rows--tall li > span:last-child .f-lb { margin-bottom: calc(var(--u) * .08); }
.s-rows--brand li { grid-template-columns: 1fr auto; height: calc(var(--u) * 1.1); }
.s-stat .f-st, .s-stat .f-lb { display: block; }
.s-stat .f-lb { margin-top: calc(var(--u) * .25); }
.s-pic { display: grid; place-items: center; color: var(--paper);
  background-image: linear-gradient(to top right, transparent calc(50% - 1px), rgba(242,241,238,.32) 50%, transparent calc(50% + 1px)), linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(242,241,238,.32) 50%, transparent calc(50% + 1px)); }
.s-list li { display: flex; gap: calc(var(--u) * .15); align-items: baseline; }
.s-list li + li { margin-top: calc(var(--u) * .12); }
.s-list svg { width: .64em; height: .64em; fill: currentColor; flex: none; }
.s-table { width: 100%; border-collapse: collapse; }
.s-table th, .s-table td { text-align: left; padding: calc(var(--u) * .09) 0; border-bottom: max(1px, calc(var(--u) * .009)) solid currentColor; }
.s-table .n { text-align: right; }
.s-table tr.hi td { background: var(--lime); color: var(--ink); }
.s-table tr.tot td { border-bottom: 0; }
.s-table tr.grp td { padding-top: calc(var(--u) * .35); }
.s-chart { display: flex; align-items: flex-end; gap: calc(var(--u) * .2); color: var(--paper); }
.s-chart i { flex: 1; height: var(--h); border: max(1px, calc(var(--u) * .0125)) solid currentColor; border-bottom: 0; position: relative; }
.s-chart i.hi { background: var(--lime); border-color: var(--lime); }
.s-chart b { position: absolute; bottom: calc(100% + var(--u) * .12); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.s-years { display: flex; gap: calc(var(--u) * .2); color: var(--paper); }
.s-years span { flex: 1; text-align: center; }
.s-cols { display: flex; justify-content: space-between; gap: var(--u); }
.s-copy p + p { margin-top: .9em; }
.s-tag { --cut: calc(var(--u) * .07); height: calc(var(--u) * .42); padding: 0 calc(var(--u) * .13); }
.s-stats4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.s-stats4 span { display: block; }
.s-stats4 b { display: block; font-weight: 400; font-size: calc(var(--u) * 1.1 * var(--k)); }
.s-stats4 i { display: block; font-style: normal; margin-top: calc(var(--u) * .2); }
.s-big { font-size: calc(var(--u) * 6.4) !important; line-height: .8; }
.s-team .tile { aspect-ratio: 390 / 470; display: grid; place-items: center; }
.s-team .f-lb { margin-top: calc(var(--u) * .25); }
.edge-d { outline: 1.5px solid rgba(242,241,238,.22); outline-offset: -1.5px; }
.stat-grid { display: grid; grid-template-columns: 5fr 1fr 8fr; align-items: start; }
.stat-r { grid-column: 3; display: grid; gap: calc(var(--m) * .6); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--m) * .3); }
.env2 { display: grid; grid-template-columns: 7fr 5fr; gap: calc(var(--m) * .3); align-items: start; }
.fmt.fsig { --k: 3.2; }
.docs2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); }
.posts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--m) * .333); }
.vc2 { display: grid; grid-template-columns: 9fr 5fr; gap: calc(var(--m) * .5); }
.ev2 { display: grid; grid-template-columns: 5fr 1fr 8fr; align-items: end; }
.ev2 > :last-child { grid-column: 3; }

/* the deck viewer */
.deck { position: relative; outline-offset: 6px; }
.deck .frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; cursor: e-resize; touch-action: pan-y; }
.deck .slide { position: absolute; inset: 0; visibility: hidden; }
.deck .slide.on { visibility: visible; }
.deck .slide.was { visibility: visible; z-index: 1; }
.deck .slide.in { z-index: 2; animation: cut16 420ms steps(16, end) both; }
.deck .ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: calc(var(--m) * .3); }
.deck .ctrl .dl { gap: 10px; }
.deck .strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: calc(var(--m) * .3); }
.deck .strip button { width: 100%; padding: 10px 0 0; border-top: 1.5px solid currentColor; display: flex; gap: 6px; align-items: baseline; font-size: clamp(9px, calc(var(--m) * .1), 13px); }
.deck .strip button[aria-current="true"] { border-top-width: 4px; padding-top: 7.5px; }
.deck .strip button .pt { width: .9em; height: .9em; fill: var(--lime); visibility: hidden; flex: none; }
.deck .strip button[aria-current="true"] .pt { visibility: visible; }

/* ------------------------------------------------------------------ the cursor (cursor.js): star, grid or swallow, for a mouse only */
.has-cur, .has-cur * { cursor: none !important; }
.has-cur [contenteditable], .has-cur [contenteditable] *, .has-cur input, .has-cur textarea { cursor: text !important; }
.cur { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; contain: strict; --cf: var(--ink); --cb: var(--paper); --cs: var(--ink); }
.cur.off, .cur.txt { visibility: hidden; }
.cur.on-ink   { --cf: var(--paper); --cb: var(--ink);   --cs: var(--paper); }
.cur.on-ink.hot:not(.pattern) { --cs: var(--lime); }   /* on Ink the star turns Lime only where a click does something */
.cur.on-paper { --cf: var(--ink);   --cb: var(--paper); --cs: var(--ink); }
.cur.on-white { --cf: var(--ink);   --cb: var(--white); --cs: var(--ink); }
.cur.on-lime  { --cf: var(--ink);   --cb: var(--lime);  --cs: var(--ink); }
.cur.on-photo { --cf: var(--ink);   --cb: var(--paper); --cs: var(--paper); }
.cur.on-photo .cur-star { stroke: var(--ink); stroke-width: 7px; paint-order: stroke; }
.cur .cur-pt, .cur .cur-lb, .cur .cur-h, .cur .cur-v, .cur .cur-dot { position: absolute; left: 0; top: 0; will-change: transform; }
.cur svg { position: absolute; display: block; overflow: visible; max-width: none; }
.cur .cur-star { width: 16px; height: 16px; left: -8px; top: -8px; fill: var(--cs); transition: transform 320ms var(--ease); }
.cur.hot .cur-star { transform: rotate(22.5deg) scale(1.6); }
.cur.down .cur-star { transform: rotate(22.5deg) scale(1.15); }
.cur .cur-bird { display: none; }
.cur .cur-lb { padding: 7px 8px 6px; background: var(--cb); color: var(--cf); font-size: 11px; white-space: nowrap; clip-path: inset(0 100% 0 0); }
.cur.lab .cur-lb { clip-path: inset(0 0 0 0); transition: clip-path 240ms steps(8, end); }
.cur .cur-h, .cur .cur-v, .cur .cur-dot { display: none; }
.cur.still .cur-star, .cur.still .cur-lb { transition: none; }
/* grid: hairlines on the module lines, the star where they cross, a dot where the pointer really is */
[data-cur="grid"] .cur .cur-h, [data-cur="grid"] .cur .cur-v { display: block; background: var(--cf); }
[data-cur="grid"] .cur .cur-h { width: 100vw; height: 1px; margin-top: -.5px; }
[data-cur="grid"] .cur .cur-v { height: 100vh; width: 1px; margin-left: -.5px; }
[data-cur="grid"] .cur .cur-dot { display: block; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--cf); border-radius: 50%; }
[data-cur="grid"] .cur .cur-star { width: 12px; height: 12px; left: -6px; top: -6px; }
[data-cur="grid"] .cur.hot .cur-star { transform: rotate(22.5deg) scale(1.8); }
[data-cur="grid"] .cur .cur-lb { font-variant-numeric: tabular-nums; }
/* swallow: the bird faces the way it flies; Ink with the Lime eye, Paper with an Ink eye on Ink */
[data-cur="swallow"] .cur .cur-star { display: none; }
[data-cur="swallow"] .cur .cur-bird { display: block; width: 34px; height: 30px; left: -17px; top: -15px; color: var(--cf); fill: currentColor; --star: transparent; --eye: var(--lime); transition: transform 200ms var(--ease); }
[data-cur="swallow"] .cur.on-ink .cur-bird { --eye: var(--ink); }
[data-cur="swallow"] .cur.hot .cur-bird { width: 44px; height: 39px; left: -22px; top: -19px; }

/* ------------------------------------------------------------------ phones and tablets upright: the story format, sixteen across, rows run down */
@media (max-width: 1000px) {
  .hide-m { display: none !important; }
  .rules6 { grid-template-columns: 1fr; }
  .stat-grid, .docs2, .posts3, .vc2, .ev2, .env2 { grid-template-columns: 1fr; row-gap: calc(var(--m) * 1.5); }
  .stat-r, .ev2 > :last-child { grid-column: 1; }
  .deck .strip { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
  .voice2, .pics2 { grid-template-columns: 1fr; row-gap: calc(var(--m) * 2); }
  .voice2 > :last-child, .pics2 > :last-child { grid-column: 1; }
  .beats { grid-template-columns: 1fr 1fr; }
  .gal.world { grid-template-columns: 1fr; }
  .door { grid-template-columns: calc(var(--m) * 5) 1fr !important; }   /* big enough to read the wordmark on it */
  .motion-stage { aspect-ratio: 4 / 5; }
  .m-quiet { background: var(--bg); box-shadow: 0 0 0 calc(var(--m) * .4) var(--bg); }
  .compgrid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .formats { flex-wrap: wrap; justify-content: flex-start; gap: calc(var(--m) * 1); }
  .formats figure { width: calc(var(--m) * 6); }
  .typescale td:first-child { width: auto; }
  .typescale th:nth-child(3), .typescale td:nth-child(3) { display: none; }
  .modnums { display: none; }
  .plate.flow { padding: calc(var(--m) * 3) var(--m); }
  .nav__tabs, .nav__tools { display: none; }
  .nav__menu { display: inline-flex; align-items: center; gap: .6em; }
  .plate { display: flex; flex-direction: column; gap: calc(var(--m) * 2); padding: calc(var(--m) * 3) var(--m) calc(var(--m) * 3); min-height: 0; }
  .plate > * { grid-column: auto; grid-row: auto; }
  .plate > .m-bleed { margin-inline: calc(var(--m) * -1); }
  .plate > .m-last { order: 9; }
  .plate.full-m { padding: 0; min-height: calc(var(--m) * 28.44); }
  .hero { height: auto; min-height: calc(100svh); padding: 0; display: grid; grid-template-columns: var(--m) 1fr var(--m); grid-template-rows: var(--nav) auto 1fr auto var(--m); gap: 0; }
  .hero .cover-l { grid-column: 2; grid-row: 2; margin-top: calc(var(--m) * 1.5); }
  .hero .cover-r { display: none; }
  .hero .lockup { grid-column: 2; grid-row: 3; width: 62%; }
  .hero .cover-b { grid-column: 2; grid-row: 4; }
  .divider { min-height: calc(var(--m) * 28); justify-content: space-between; }
  .divider .toc { order: 3; }
  .contents .pane { position: relative; aspect-ratio: 11 / 9; margin-inline: calc(var(--m) * -1); order: -1; }
  .contents .list5 { gap: calc(var(--m) * .8); }
  .bands { display: flex; flex-direction: column; margin: calc(var(--m) * -3) calc(var(--m) * -1); }
  .bands > button { min-height: calc(var(--m) * 7); padding: var(--m); }
  .bands .lb.hint { display: none; }
  .tiles4, .grounds5 { grid-template-columns: repeat(2, 1fr); }
  .finder .stage { grid-template-columns: 1fr; }
  .icons16 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc(var(--m) * 2.4); }
  .deck .thumbs { grid-template-columns: repeat(6, 1fr); }
  .packs { grid-template-columns: 1fr; }
  .use4 { grid-template-columns: 1fr; }
  .pack { grid-template-columns: calc(var(--m) * 4) 1fr; }
  .pack .btn { grid-column: 1 / -1; justify-self: start; }
  .pack:nth-child(even) { padding-left: 0; border-left: 0; }
  .pack:nth-child(odd) { padding-right: 0; }
  .files .hide-m { display: none; }
  .foot-plate .base { flex-direction: column; }
  .wm-lines .ln .lb { display: none; }
  .matrix th, .matrix td { width: calc(var(--m) * 2.6); height: calc(var(--m) * 2.6); }

  /* on a phone everything runs the full measure, left to right; small controls keep their size */
  .plate:not(.hero) > * { align-self: stretch !important; justify-self: auto !important; }
  .plate > .btn, .plate > .switch, .plate > .link { align-self: flex-start !important; }
  .plate > .center-m { align-self: center !important; }
  .plate > .dl { justify-content: flex-start !important; }
  [style*="max-width:calc(var(--m)"] { max-width: 36em !important; }
  .plate:not(.hero) > p, .plate > .foot > p, .flow-head > p { max-width: 36em; }
  .plate.flow > * + * { margin-top: var(--m); }
  .flow-head + * { margin-top: calc(var(--m) * 1.5) !important; }

  /* columns that only paint a ground step aside: the plate carries the colour */
  .plate > div:empty:not([data-engine]):not(.full):not(.stage) { display: none; }
  /* fields that sit behind the words stay behind them */
  .plate > .full { position: absolute; inset: 0; }
  /* live panes, pictures and drawings lead the plate, edge to edge */
  .plate > .pane-l, .plate > .cover-img, .plate > .construct-host, .plate > .full[data-engine] {
    position: relative; inset: auto; order: -1; width: auto; max-width: none; height: auto;
    margin: calc(var(--m) * -3) calc(var(--m) * -1) 0; }
  .plate > .pane-l, .plate > .full[data-engine] { aspect-ratio: 1; }
  .plate > .cover-img { aspect-ratio: 16 / 10; }
  .plate > .cover-img + .cover-img { margin-top: calc(var(--m) * -2); }
  .plate > .construct-host { aspect-ratio: 1; overflow: hidden; }
  .construct-host .construct { inset: auto; left: -130%; top: -27%; width: 274%; height: 154%; max-width: none; }
  .contents .pane { margin-top: calc(var(--m) * -3); }
  .plate > .pic[data-engine] { order: 9; aspect-ratio: 16 / 9; margin: 0 calc(var(--m) * -1) calc(var(--m) * -3); }

  /* plate by plate */
  .odd-star { left: calc(var(--m) * 13.83) !important; top: auto !important; bottom: calc(var(--m) * 1.33); }
  [data-sub="colour"] .bands { order: 3; margin: 0 calc(var(--m) * -1) calc(var(--m) * -3); }
  .bw-bird { position: relative !important; left: auto !important; top: auto !important; order: -1;
    width: calc(var(--m) * 17) !important; max-width: none; margin: calc(var(--m) * -1.5) 0 calc(var(--m) * -1) calc(var(--m) * .5); }
  .chartbox { order: 5; background: var(--ink); height: calc(var(--m) * 15); margin: 0 calc(var(--m) * -1) calc(var(--m) * -3); padding: calc(var(--m) * 1.5) var(--m) var(--m); }
  .table { width: 100%; }
  .pair { grid-template-columns: calc(var(--m) * 1.8) 1fr; }
  .files, .files tbody, .files tr, .files td { display: block; }
  .files thead { display: none; }
  .files tr { padding: 12px 0 14px; border-bottom: 1px solid currentColor; }
  .files td { border: 0; padding: 0; }
  .files td.f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; text-align: left; white-space: normal; }
}

/* ------------------------------------------------------------------ small laptops and tablets on their side: rows may grow, so nothing collides */
@media (min-width: 1001px) and (max-width: 1279px) {
  .plate:not(.hero):not(.flow) { grid-template-rows: repeat(9, minmax(var(--m), auto)); align-content: start; }
  .plate > .foot { padding-top: calc(var(--m) * .25); }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: none; }
  .tab.entering .divider, .tab.entering .divider * { animation: none !important; }
  .contents .pane .preview.on { animation: none; }
  .js .chart .bar, .js .wm-lines .ln { transform: none; transition: none; }
}

@media print {
  .nav, .menu, .gridlay { display: none !important; }
  .tab[hidden] { display: block !important; }
  .plate { break-inside: avoid; }
}

/* ------------------------------------------------------------------ what a rhumb is: three drawings, read left to right */
.rsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--m) * .3); list-style: none; margin: 0; padding: 0; }
.rsteps li { margin: 0; min-width: 0; }
.rsteps .dg { aspect-ratio: 1; overflow: hidden; }
.rsteps .dg svg { display: block; width: 100%; height: 100%; }
.rsteps .lb { margin: calc(var(--m) * .2) 0 calc(var(--m) * .08); }
@media (max-width: 600px) { .rsteps { grid-template-columns: 1fr; row-gap: var(--m); } .rsteps .dg { aspect-ratio: 4 / 3; } }
