/* The site on Knop's design system (kits/design/design.css, linked first): its keys, tiles, covers, icons and states,
   in the tokens' colours, which brand.css (made from site.json) sets for the colourway picked. What's the site's own
   is here: the frame every page shares (the bar, the footer), the picker, the range, the crew and the motion. */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}
body {
  /* A hairline between parts, in the words' colour */
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  font-variation-settings: 'opsz' 14;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
fieldset,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
a:not(.key):focus-visible,
.screens-track:focus-visible {
  border-radius: 8px;
}
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---- the colourways: on the front page the radios stay reachable by keyboard and their labels are the buttons people
   press; on every other page they only hold the stored colour */
.colours {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  padding: 0;
}
.colour {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

/* ---- every wordmark: the design system's (.mark). On the front page its knop is pressed by the label over it, which
   picks the next colourway (brand.css places it and shows the one for the next). Only the label takes a press, so the
   knop goes down with it (:active, or site.js's down until its click has picked) and with nothing else on the page. On
   every other page the whole wordmark is the link to the front page, and its knop goes down with it. */
.logo {
  display: block;
  position: relative;
  pointer-events: none;
}
a.logo {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.press {
  position: absolute;
}
.press label {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* A small wordmark's knop reaches a little past its edge, so a finger finds it */
.bar .press label,
.foot .press label {
  inset: -7px;
}
.wordmark-text {
  font-weight: 750;
  font-size: 28px;
  letter-spacing: -0.02em;
}

/* ---- the bar at the top of every page: the wordmark, the sound key and on a post the way back to the blog (on the
   first screen, the tab that says hi) */
.bar {
  --bar-top: max(16px, env(safe-area-inset-top));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: var(--bar-top);
  padding-bottom: 16px;
}
.bar .logo {
  width: 92px;
  margin: 6px auto 0 0;
}
/* The sound key is a key like any other: lit while the sound is on, so on the front page it's lit beside the tab
   that says hi */
.sound {
  min-width: 112px;
  white-space: nowrap;
}
.back-key {
  white-space: nowrap;
}
/* The tab that says hi hangs from the page's top edge past the bar's padding: lit, flat on top, the word at its
   foot */
.tab {
  margin-top: calc(-1 * var(--bar-top));
  margin-right: auto;
}
.tab summary {
  list-style: none;
  position: relative;
  align-items: flex-end;
  min-width: 64px;
  height: 60px;
  padding: 0 16px 12px;
  border-radius: 0 0 18px 18px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
/* It reaches past the edge, so pressed in it slides down without a gap above it. The reach overlaps the face by a
   pixel, or a seam shows between the two while the tab drops in. */
.tab summary::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 17px;
  background: inherit;
}
.tab summary::-webkit-details-marker {
  display: none;
}
/* Open, the tab's key stays down */
.tab[open] > summary {
  translate: 0 var(--travel);
  box-shadow: 0 calc(var(--depth) - var(--travel)) 0 var(--key-lip);
}
.tab p {
  margin-top: 18px;
  max-width: 30em;
  padding: 16px 18px;
  font-size: 17px;
  line-height: 1.45;
}

/* ---- the first screen */
.hero {
  position: relative;
  padding-top: 24px;
  padding-bottom: 80px;
}
.hero .logo {
  width: min(100%, 860px);
}
.say {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}
.say b {
  font-weight: 700;
  color: var(--ink);
}
.hero h1 {
  margin-top: 48px;
  font-weight: 750;
  font-size: clamp(54px, 15.5vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 28;
  max-width: 9ch;
}
.subline {
  margin-top: 16px;
  font-weight: 650;
  font-size: clamp(24px, 6.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.4;
  max-width: 26em;
}

/* The picker: a knop per colourway, drawn like the o: its top in the colourway's ground, on a side in its knop whose
   edges run straight down from the top's widest point. Pressed, the top sinks and the side gets shorter. */
.picker {
  margin-top: 36px;
}
.picker-name,
.hint {
  font-size: 16px;
  color: var(--muted);
}
.picker-name b {
  display: none;
  color: var(--ink);
  font-weight: 700;
}
.hint {
  margin-top: 14px;
}
.swatches {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  margin-left: -6px;
}
.swatch {
  position: relative;
  width: 62px;
  height: 66px;
  display: grid;
  place-items: start center;
  padding-top: 10px;
  cursor: pointer;
  border-radius: 14px;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.puck {
  --w: 50px;
  --h: 34px;
  --rise: 11px;
  --depth: calc(var(--rise) - var(--picked, 0) * 7px);
  position: relative;
  display: block;
  width: var(--w);
  height: calc(var(--h) + var(--depth));
  transform: translateY(calc(var(--rise) - var(--depth)));
  border-radius: calc(var(--w) / 2) / calc(var(--h) / 2);
  background: var(--s);
  box-shadow: 0 0 0 1.5px var(--rule);
}
.puck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--h);
  border-radius: 50%;
  background: var(--t);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.swatch:active .puck,
.swatch.down .puck {
  --depth: 3px;
}
/* The picked one stays pressed in, with a dot under it */
.swatch::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: var(--picked, 0);
}

/* ---- the sections */
section {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: var(--line) solid var(--rule);
}
h2 {
  font-weight: 750;
  font-size: clamp(38px, 10vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 28;
  max-width: 14ch;
}
.body {
  margin-top: 22px;
  max-width: 34em;
  font-size: 19px;
}
.body + .body {
  margin-top: 14px;
}
.body small {
  display: block;
  font-size: 16px;
  color: var(--muted);
}
.who h2 {
  max-width: 13ch;
}

/* ---- the range: the design system's tiles (.key.deep), the big one first, each app's in its own colours with a lip
   in its accent, then the blank keys */
.keys {
  grid-column: 1 / -1;
  margin-top: 44px;
  display: grid;
  gap: calc(var(--gap) + var(--depth-tile)) var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
/* A tile holds words, not a label: laid out as a block, its text at the reading weight */
.keys > .key,
.crew-key {
  position: relative;
  display: block;
  min-height: 0;
  border-radius: var(--round-tile);
  font-weight: 400;
  text-align: left;
}
/* A tile holding keys and links of its own goes down by its own press only (site.js's down), never as one of those is
   pressed */
:is(.keys > .deep, .crew-key):active:not(.down) {
  translate: none;
  box-shadow: 0 var(--depth) 0 var(--key-lip);
}
/* An app's tile, and the big key's, wear the app's colours as a colourway of their own, so the parts on them (the
   status, the keys) work theirs out from it */
.app,
.lead {
  --ground: var(--a-ground);
  --panel: var(--a-ground);
  --ink: var(--a-ink);
  --muted: var(--a-muted);
  --knop: var(--a-badge);
  --on-knop: var(--a-ground);
  --side: var(--a-side);
  --key-lip: var(--a-side);
}
.key.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 26px 24px 0;
}
/* Pressed, an app's key goes down on its lip and opens to its line and screens, or closes (its details element) */
.app a,
.app .screens {
  position: relative;
  z-index: 2;
}
/* Every tile in the range is a button laid over all of it, under an app's links and screens */
.key-press {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  list-style: none;
}
.key-press::-webkit-details-marker {
  display: none;
}
.key-press:focus-visible {
  outline: none;
}
.crew-key:has(.crew-press:focus-visible),
.key:has(> .key-press:focus-visible, > .key-open > .key-press:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
/* An app's disclosure is the tile's own size, its summary the button over it */
.key-open {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* Closed, an app's key shows its name and intro. Open, it spans the row. */
.app:not(:has(.key-open[open])) :is(.app-more, .screens) {
  display: none;
}
.app:has(.key-open[open]) {
  grid-column: 1 / -1;
}
.app-intro {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--muted);
}
.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}
.app-wordmark {
  height: 30px;
  width: auto;
}
.app-name {
  font-size: 28px;
  font-weight: 750;
}
.app-line {
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 20;
  max-width: 30em;
}
.app-points {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.app-points li {
  position: relative;
  padding-left: 18px;
}
.app-points li + li {
  margin-top: 6px;
}
.app-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--side);
}
.app-meta {
  margin-top: 22px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 16px;
  color: var(--muted);
}
.app-guides {
  margin-top: -10px;
  padding-bottom: 26px;
  font-size: 17px;
  font-weight: 650;
}

/* An app's screens: a strip that snaps a screen at a time, with the next one peeking in, each set into its slide as a
   cover in a well. The cover's inset sits around the screen's width, not inside it, so a screen's label is as large as
   it was drawn for (README: the smallest sizes). */
.screens {
  --screen-inset: 10px;
  margin: 0 -24px;
  padding-bottom: 26px;
}
.screens-track {
  display: flex;
  gap: calc(14px + 2 * var(--screen-inset));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  padding: 4px 24px 6px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.screens-track::-webkit-scrollbar {
  display: none;
}
.screen {
  flex: 0 0 min(84%, 560px);
  scroll-snap-align: start;
}
/* Each picture keeps its own shape (its width and height in the page), whole, never cropped: a mockup's label sits in
   its bottom right corner, which the cover's rounding stays clear of. The caption, count and keys sit below it. */
.screen-cover {
  display: block;
  background: var(--well);
}
.screens .screen-cover {
  --inset: var(--screen-inset);
  margin-inline: calc(-1 * var(--screen-inset));
}
.screen-cover picture {
  overflow: hidden;
}
.screen-cover img {
  display: block;
  width: 100%;
  height: auto;
}
/* A dark picture is dark on purpose: it sits on a dark slide, as it is */
.is-dark .screen-cover {
  background: #0b0a09;
}
.screen-caption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}
.screen-n {
  margin-right: 6px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.screens-nav {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 0 24px;
}
/* The one chevron, turned for the way back */
.screens-step[data-step='-1'] .icon {
  scale: -1 1;
}

/* A teaser's key is a named tile, and a key for each app still to come a dashed place: both keep their knop blank */
.key.blank {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 180px;
  padding: 26px 24px;
}
.key.next {
  --key-lip: transparent;
  --travel: var(--travel-small);
  background: none;
  border: var(--line) dashed var(--rule);
  color: var(--muted);
}
.blank b {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.blank p {
  margin-top: 4px;
}
/* Pressed, a blank key gives a little and its knop tries to come up, in the page's colours, then stays blank */
.puck-blank {
  width: 50px;
  height: 34px;
  border-radius: 50%;
  border: var(--line) dashed var(--rule);
}
.blank.tried .puck-blank {
  border: 0;
  background: var(--knop);
  box-shadow: 0 var(--depth-button) 0 var(--side);
}
.teaser-meta {
  margin-top: 14px;
}

/* The big key: a teaser's picture set in across the top as a cover, in whole pixels (2 to 7 times its size as the key
   grows, the sides cropped), its name and line under it */
.key.lead {
  grid-column: 1 / -1;
  padding: 0;
}
.lead-picture {
  container-type: inline-size;
  overflow: hidden;
  background: #0d1129;
}
.scene {
  --k: 2;
  display: block;
  width: calc(208px * var(--k));
  height: calc(64px * var(--k));
  max-width: none;
  margin-left: calc(50% - 104px * var(--k));
}
@container (min-width: 330px) {
  .scene {
    --k: 3;
  }
}
@container (min-width: 440px) {
  .scene {
    --k: 4;
  }
}
@container (min-width: 550px) {
  .scene {
    --k: 5;
  }
}
@container (min-width: 660px) {
  .scene {
    --k: 6;
  }
}
@container (min-width: 770px) {
  .scene {
    --k: 7;
  }
}
/* Before the press, nothing has gone up yet */
.scene :is(.up, .blink, .thrust, .smoke, .f2, .f3, .g2) {
  visibility: hidden;
}
.lead.launched .scene .up {
  visibility: visible;
}
.lead.launched .scene :is(.beacon, .rocket) {
  visibility: hidden;
}
.lead-text {
  padding: 12px 24px 26px;
}
.lead-name {
  display: block;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.lead-text p {
  margin-top: 4px;
  font-size: 17px;
  color: var(--muted);
}
.lead .teaser-meta {
  margin-top: 14px;
}

/* ---- who does what: two tiles, the agents' in the page's panel and the human's lit. Every task on them is a key that
   stays down, lit, once pressed. The tile presses all of its tasks, or lets them all up (site.js). */
.crew {
  display: grid;
  gap: calc(var(--gap) + var(--depth-tile));
  margin-top: 44px;
}
.crew-key {
  padding: 28px 24px 30px;
}
/* Latched, with all its tasks down, a tile stays pressed in as a pressed key does, under a pointer too: the selector
   outweighs the kit's hover lift (keys.css), which doesn't see the inner button's aria-pressed */
.crew-key.key:has(.crew-press[aria-pressed='true']) {
  translate: 0 var(--travel);
  box-shadow: 0 calc(var(--depth) - var(--travel)) 0 var(--key-lip);
}
.crew h3 {
  font-weight: 750;
  font-size: clamp(36px, 9.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 28;
}
/* The tile's own button covers all of it, and its tasks sit above */
.crew-press {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.crew-press::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--round-tile);
}
.crew-press:focus-visible {
  outline: none;
}
.crew-do {
  margin-top: 8px;
  font-size: 19px;
}
.crew-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10px + var(--depth-button)) 10px;
  margin-top: 24px;
}
/* A task is a chip that latches: lit while it's down. On the lit tile, a lit task turns the other way round. */
.task {
  --task-ground: var(--knop);
  position: relative;
  z-index: 1;
  padding-left: 12px;
  font-size: 17px;
  line-height: 1.2;
  /* A drawing that leaves (the letter, the rocket) goes out of sight at the key's edge */
  overflow: hidden;
}
.crew-human .task[aria-pressed='true'] {
  --task-ground: var(--on-knop);
  --key-lip: color-mix(in srgb, var(--on-knop) 55%, #000);
  background: var(--task-ground);
  color: var(--knop);
}

/* Each task's drawing acts out its task when pressed and rests again when up, at the icon set's size and line weight.
   A drawing's cut-outs take the pressed key's face, --task-ground. */
.task-icon {
  flex: none;
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--line);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.task-icon * {
  transform-box: fill-box;
  transform-origin: center;
}
.task .rays,
.task .waves,
.task .flame {
  opacity: 0;
}
.task[aria-pressed='true'] :is(.rays, .waves, .flame) {
  opacity: 1;
}
.task[aria-pressed='true'] .glass {
  fill: currentColor;
}
.task .line {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.task[aria-pressed='true'] .line {
  opacity: 1;
  stroke-dashoffset: 0;
}
.task .top {
  opacity: 0.45;
  stroke-dasharray: 2 3;
}
.task[aria-pressed='true'] .top {
  opacity: 1;
  stroke-dasharray: none;
}
.task .flame {
  transform-origin: 50% 0;
}
/* The rays burst from the middle of the bulb */
.task .rays {
  transform-box: view-box;
  transform-origin: 12px 10px;
}
.task[aria-pressed='true'] :is(.face, .envelope) {
  fill: currentColor;
}
.task[aria-pressed='true'] :is(.euro, .flap) {
  stroke: var(--task-ground);
}
/* ---- the footer */
.foot {
  border-top: var(--line) solid var(--rule);
  padding-top: 56px;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}
.foot .logo {
  width: 150px;
}
.foot-line {
  margin-top: 16px;
  font-size: 18px;
  max-width: 24em;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10px + var(--depth-button)) 10px;
  margin-top: 22px;
}
.foot-note {
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
}

/* ---- the imprint, the privacy page, an app's own pages and the missing page */
.doc-head {
  padding-top: 24px;
  padding-bottom: 48px;
}
.doc h1 {
  font-weight: 750;
  font-size: clamp(48px, 13vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 28;
}
.prose {
  padding-bottom: 88px;
  max-width: calc(40em + 48px);
  margin-left: max(0px, calc((100% - 1240px) / 2));
}
.prose h2 {
  margin-top: 48px;
  font-size: clamp(28px, 7vw, 40px);
}
.prose h3 {
  margin-top: 28px;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.prose p,
.prose ul {
  margin-top: 14px;
}
.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}
.prose li + li {
  margin-top: 8px;
}
.updated {
  margin-top: 40px !important;
  color: var(--muted);
}
.identity {
  border-top: var(--line) solid var(--ink);
}
.identity div {
  display: grid;
  gap: 4px;
  padding: 16px 0 18px;
  border-bottom: var(--line) solid var(--rule);
}
.identity dt {
  font-size: 16px;
  color: var(--muted);
}
.identity dd {
  font-size: 22px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
/* The missing page: the design system's problem state, with the way to the front page */
.missing main {
  padding-top: 24px;
  padding-bottom: 120px;
}
.missing .state {
  min-height: 360px;
}
.missing .state h1 {
  margin-top: 8px;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.app-page .lede {
  font-size: 21px;
  max-width: 34em;
}
.page-open {
  margin-top: 28px !important;
}
.page-screen {
  margin-top: 40px;
}
.page-screen figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* ---- wider screens */
@media (min-width: 760px) {
  .wrap {
    padding-left: max(48px, env(safe-area-inset-left));
    padding-right: max(48px, env(safe-area-inset-right));
  }
  .lede {
    font-size: 23px;
  }
  .hero h1 {
    margin-top: 64px;
    font-size: clamp(64px, 11vw, 112px);
  }
  .swatches {
    gap: 8px;
  }
  .swatch {
    width: 76px;
    height: 84px;
    padding-top: 12px;
  }
  .puck {
    --w: 64px;
    --h: 44px;
  }
  section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0 64px;
  }
  .split h2 {
    grid-column: 1;
  }
  .split .side-text {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .split .side-text .body:first-child {
    margin-top: 0;
  }
  .keys {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .key.app:has(.key-open[open]) {
    padding: 34px 34px 0;
  }
  .lead-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding: 16px 34px 30px;
  }
  .lead-text p {
    margin-top: 0;
  }
  .lead .teaser-meta {
    margin: 0 0 0 auto;
  }
  .app .screens {
    margin: 0 -34px;
  }
  .app .screens-track {
    scroll-padding: 0 34px;
    padding-left: 34px;
    padding-right: 34px;
  }
  .app .screens-nav {
    padding: 0 34px;
  }
  .crew {
    grid-template-columns: 1.2fr 1fr;
  }
  .crew-key {
    padding: 36px 34px 38px;
  }
  .identity div {
    grid-template-columns: 12em 1fr;
    align-items: baseline;
    gap: 24px;
  }
}

/* Two columns for the first screen only once the picker's column holds all its knoppen in a row, and the app's
   screens beside its words once both have room: below that, on a tablet, they stay stacked. */
@media (min-width: 1200px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: 'mark picker' 'say picker' 'h1 lede';
    column-gap: 64px;
  }
  .hero-foot {
    display: contents;
  }
  .hero .logo {
    grid-area: mark;
    width: 100%;
  }
  .say {
    grid-area: say;
  }
  .hero hgroup {
    grid-area: h1;
    align-self: end;
  }
  .hero h1 {
    font-size: clamp(64px, 7.4vw, 112px);
  }
  .hero .lede {
    grid-area: lede;
    align-self: end;
    margin-bottom: 10px;
  }
  .hero .picker {
    grid-area: picker;
    align-self: end;
    justify-self: start;
    margin: 0 0 4px;
  }
  .app.has-screens:has(.key-open[open]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    column-gap: 40px;
  }
  .app.has-screens .screens {
    margin: 0 -34px 0 0;
    padding-top: 0;
    align-self: end;
  }
  .app.has-screens .screens-track {
    padding-left: calc(4px + var(--screen-inset));
    scroll-padding-left: calc(4px + var(--screen-inset));
  }
  .app.has-screens .screens-nav {
    padding-left: 4px;
  }
}

/* ---- motion: the design system's timings, and none of it when motion is reduced */
html,
body,
.tab p,
.key.next,
.puck::before {
  transition:
    background-color var(--recolour) ease,
    color var(--recolour) ease,
    border-color var(--recolour) ease;
}
.puck,
.puck-blank {
  transition:
    transform var(--press) ease-out,
    height var(--press) ease-out,
    translate var(--press) ease-out,
    background-color var(--recolour) ease;
}
@media (prefers-reduced-motion: no-preference) {
  /* A blank key's knop comes up with a bounce and sinks back slowly */
  .blank.tried .puck-blank {
    animation: try 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  @keyframes try {
    from {
      translate: 0 var(--depth-button);
    }
  }

  /* On arrival the letters settle, the tab drops in, the bar's keys and the words follow */
  .hero .wordmark .letters {
    animation: settle 0.8s var(--ease-in) backwards;
  }
  .tab summary {
    animation: drop 0.6s 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
  }
  body:has(.hero) .bar .key:not(summary),
  .say,
  .hero-foot > * {
    animation: rise 0.7s var(--ease-in) backwards;
  }
  .say {
    animation-delay: 0.15s;
  }
  .hero hgroup {
    animation-delay: 0.22s;
  }
  .hero .lede {
    animation-delay: 0.3s;
  }
  body:has(.hero) .bar .key:not(summary),
  .hero .picker {
    animation-delay: 0.38s;
  }
  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(180px);
    }
  }
  @keyframes drop {
    from {
      transform: translateY(calc(-100% - var(--depth)));
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
  }

  /* A new colour floods the page from the knop that was pressed (site.js sets where) */
  .flooding,
  .flooding * {
    transition: none !important;
  }
  /* Only the colours change at once: the knops still move the way they went down */
  .flooding .mark {
    transition: --knop-depth var(--press) ease-out !important;
  }
  .flooding .puck {
    transition:
      transform var(--press) ease-out,
      height var(--press) ease-out !important;
  }
  ::view-transition-old(root) {
    animation: none;
  }
  ::view-transition-new(root) {
    animation: flood 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
  }
  @keyframes flood {
    from {
      clip-path: circle(0 at var(--flood-x, 50%) var(--flood-y, 0));
    }
    to {
      clip-path: circle(var(--flood-r, 150vmax) at var(--flood-x, 50%) var(--flood-y, 0));
    }
  }

  /* A task's drawing acts as it goes down: these play each time it's pressed */
  .task-icon * {
    transition:
      opacity 0.2s ease,
      translate 0.2s ease,
      scale 0.2s ease,
      stroke-dashoffset 0.2s ease;
  }
  .task[aria-pressed='true'] .rays {
    animation: burst 0.45s ease-out;
  }
  .task[aria-pressed='true'] .line {
    transition: stroke-dashoffset 0.5s ease-in-out;
  }
  .task[aria-pressed='true'] .pencil {
    animation: scribble 0.5s ease-in-out;
  }
  .task[aria-pressed='true'] .top {
    animation: land 0.45s cubic-bezier(0.3, 0, 0.4, 1);
  }
  .task[aria-pressed='true'] .letter {
    animation: send 0.6s ease-in-out;
  }
  .task[aria-pressed='true'] .coin {
    animation: flip 0.6s ease-out;
  }
  .task[aria-pressed='true'] .horn {
    animation: call 0.4s ease-out;
  }
  .task[aria-pressed='true'] .waves {
    animation: ring 0.5s ease-out 2;
  }
  .task[aria-pressed='true'] .rocket {
    animation: lift-off 0.9s ease-in-out;
  }
  .task[aria-pressed='true'] .flame {
    animation: flicker 0.15s steps(2) 6;
  }
  @keyframes burst {
    from {
      opacity: 0;
      scale: 0.4;
    }
    60% {
      scale: 1.25;
    }
  }
  @keyframes scribble {
    25% {
      translate: -2px 1px;
      rotate: -8deg;
    }
    50% {
      translate: 1px -1px;
      rotate: 6deg;
    }
    75% {
      translate: 2px 1px;
      rotate: -4deg;
    }
  }
  @keyframes land {
    from {
      opacity: 0;
      translate: 0 -14px;
    }
    55% {
      opacity: 1;
      translate: 0 1px;
    }
    75% {
      translate: 0 -1.5px;
    }
  }
  /* Out through the top, and the next one up from below */
  @keyframes send {
    40% {
      opacity: 0;
      translate: 3px -24px;
    }
    41% {
      opacity: 0;
      translate: 0 24px;
    }
  }
  @keyframes flip {
    from {
      translate: 0 0;
      rotate: y 0deg;
    }
    40% {
      translate: 0 -10px;
      rotate: y 400deg;
    }
    to {
      translate: 0 0;
      rotate: y 720deg;
    }
  }
  @keyframes call {
    30% {
      rotate: -12deg;
      scale: 1.12;
    }
  }
  @keyframes ring {
    from {
      opacity: 0;
      translate: -3px 0;
    }
  }
  @keyframes lift-off {
    10%,
    30% {
      translate: 0 0;
    }
    15%,
    25% {
      translate: -0.8px 0;
    }
    20% {
      translate: 0.8px 0;
    }
    60% {
      opacity: 1;
      translate: 0 -64px;
    }
    61% {
      opacity: 0;
      translate: 0 -64px;
    }
    62% {
      opacity: 0;
      translate: 0 16px;
    }
    80% {
      opacity: 1;
    }
  }
  @keyframes flicker {
    50% {
      scale: 1 1.35;
    }
  }

  /* The big key's picture lives: the fire flickers in three frames, its light on the ground in two, the stars twinkle,
     the rocket's light blinks and the creatures blink now and then */
  .scene :is(.f1, .f2, .f3, .g1, .g2) {
    visibility: visible;
  }
  .lead:not(.in-view) .scene * {
    animation-play-state: paused;
  }
  .scene :is(.f1, .f2, .f3) {
    animation: third 0.45s steps(1) infinite;
  }
  .scene .f2 {
    animation-delay: -0.15s;
  }
  .scene .f3 {
    animation-delay: -0.3s;
  }
  .scene :is(.g1, .g2) {
    animation: half 0.9s steps(1) infinite;
  }
  .scene .g2 {
    animation-delay: -0.45s;
  }
  .scene :is(.s1, .s2, .s3) {
    animation: twinkle 3.6s steps(1) infinite;
  }
  .scene .s2 {
    animation-delay: -1.2s;
  }
  .scene .s3 {
    animation-delay: -2.4s;
  }
  .scene .beacon {
    animation: half 1.6s steps(1) infinite;
  }
  .scene .blink {
    animation: blink 5.3s steps(1) infinite;
  }
  .scene .c1 .blink {
    animation-delay: -1.1s;
  }
  .scene .c2 .blink {
    animation-delay: -3.2s;
  }
  .scene .c3 .blink {
    animation-delay: -4.6s;
  }
  @keyframes third {
    33.3% {
      opacity: 0;
    }
  }
  @keyframes half {
    50% {
      opacity: 0;
    }
  }
  @keyframes twinkle {
    66.6% {
      opacity: 0.4;
    }
  }
  @keyframes blink {
    0% {
      visibility: visible;
    }
    3% {
      visibility: hidden;
    }
  }
  /* Pressed, the rocket shakes on its pad, goes up in smoke and is gone, while every eye follows it */
  .lead.launched .scene .rocket {
    visibility: visible;
    animation: lift 2.6s cubic-bezier(0.5, 0, 0.85, 0.5) forwards;
  }
  .lead.launched .scene .thrust {
    visibility: visible;
    animation: half 0.16s steps(1) infinite;
  }
  .lead.launched .scene .t2 {
    animation-delay: -0.08s;
  }
  .lead.launched .scene .m1 {
    animation: puff 0.5s steps(1) 0.3s;
  }
  .lead.launched .scene .m2 {
    animation: puff 1.4s steps(1) 0.8s;
  }
  .lead.launched .scene .blink {
    animation: none;
  }
  @keyframes lift {
    0% {
      transform: translate(0, 0);
    }
    5% {
      transform: translate(1px, 0);
    }
    10% {
      transform: translate(-1px, 0);
    }
    15% {
      transform: translate(1px, 0);
    }
    20% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(0, -72px);
    }
  }
  @keyframes puff {
    0% {
      visibility: visible;
    }
  }

  /* The tiles rise as they scroll into view */
  @supports (animation-timeline: view()) {
    .keys > .key,
    .crew-key {
      animation: rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }

  /* The wordmark's knop goes in a little under a pointer, as a tile does (and through the flood after a press, which
     takes the page's hover away until it's done) */
  @media (hover: hover) {
    .logo:has(.press label:hover):not(:active, .down) > .mark,
    .flooding .logo.pressed > .mark {
      --knop-depth: var(--knop-hover);
    }
  }
}
