@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f3f1;
  --ink: #171717;
  --signal: #fd5a0a;      /* only ever marks a gap */
  --graphite: #6a6a66;    /* secondary text: 4.9:1 on the paper */
  --hairline: #cdcdc8;

  /* One layout unit that follows whichever side of the window is tighter:
     14.4px at 1440×900, 17.3px at 1920×1080. */
  --u: min(1vw, 1.6vh);
  --gutter-start: 4.6vw;
  --gutter-end: 2.6vw;

  /* The page hangs from three verticals: A is the left gutter, C is where the
     right-hand column of the first screen starts, and B sits halfway between them. */
  --line-c: 62.8vw;
  --gap: calc(var(--u) * 2.2);
  --col: calc((var(--line-c) - var(--gutter-start)) / 2 - var(--gap));
  --tracks: var(--col) var(--col) minmax(0, 1fr);
  --rise: calc(var(--u) * 11.5);   /* the silence above each section */

  --logo-h: clamp(64px, calc(var(--u) * 7), 132px);
  --bar-h: calc(var(--u) * 1.05 + var(--logo-h) * 0.903);

  --t-fine: clamp(13px, calc(var(--u) * 0.95), 16.5px);
  --t-small: clamp(14px, calc(var(--u) * 1.04), 18px);
  --t-body: clamp(16px, calc(var(--u) * 1.22), 21px);
  --t-lead: clamp(19px, calc(var(--u) * 1.62), 28px);
  --t-h3: clamp(22px, calc(var(--u) * 2.1), 36px);
  --t-h2: clamp(30px, calc(var(--u) * 3.3), 58px);
  --t-statement: clamp(34px, calc(var(--u) * 4.6), 82px);
  --t-display: clamp(40px, calc(var(--u) * 6), 124px);

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

cite {
  font-style: normal;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  z-index: 5;
  left: var(--gutter-start);
  top: 0;
  padding: 0.75em 1.1em;
  background: var(--ink);
  color: #fff;
  font-size: var(--t-small);
  transform: translateY(-110%);
}

.skip:focus {
  transform: none;
}

/* A place where the terrain is drawn. The first screen has one from the start;
   the others stay empty and hidden until a script mounts a scene in them. */
.scene[hidden] {
  display: none;
}

/* ───────────────────────── top bar ───────────────────────── */

/* It lies over the top of the first screen and scrolls away with it. */
.bar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: calc(var(--u) * 1.05) var(--gutter-end) 0 var(--gutter-start);
}

.brand {
  display: block;
  /* the artwork sits inside a margin baked into the SVG; pull it back out so the
     wordmark lines up with the text below it */
  height: var(--logo-h);
  margin: calc(var(--logo-h) * -0.097) 0 0 calc(var(--logo-h) * -0.097);
}

.brand .mark {
  display: block;
  height: 100%;
  width: auto;
  overflow: visible;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  height: clamp(44px, calc(var(--u) * 4.15), 76px);
  font-size: clamp(15px, calc(var(--u) * 1.3), 23px);
  letter-spacing: 0.005em;
}

.nav a {
  position: relative;
  padding: 0.4em 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

/* reached with the keyboard, the line is simply there: Tab is pressed far too often to wait on */
.nav a:focus-visible::after {
  transform: scaleX(1);
  transition: none;
}

/* a finger has no hover: on a touch screen the line would stick after every tap */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after {
    transform: scaleX(1);
  }

  .nav .nav__contact:hover {
    background: transparent;
    color: var(--ink);
  }
}

.nav .nav__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-left: calc(var(--u) * 2.6);
  padding: 0 calc(var(--u) * 2.6);
  border-radius: calc(var(--u) * 1.55);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}

.nav .nav__contact::after {
  content: none;
}

/* it gives a little under the press, from the moment the press begins */
.nav .nav__contact:active {
  transform: scale(0.97);
}

/* ───────────────────────── first screen ───────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

/* with the mouse on the range the cursor is a hand: pressing there does something */
.hero.is-over {
  cursor: pointer;
}

.copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: calc(var(--line-c) - var(--gutter-start)) minmax(0, 1fr);
  align-items: start;
  padding: calc(var(--bar-h) + var(--u) * 3.3) var(--gutter-end) 0 var(--gutter-start);
}

.headline {
  font-size: var(--t-display);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.045em;
  font-feature-settings: "liga" 1;
}

.headline span {
  display: block;
  white-space: nowrap;
}

.aside {
  /* the first line of the right-hand column sits on the cap line of the headline */
  padding-top: calc(var(--u) * 0.5);
}

.moment {
  max-width: 15.5em;
  font-size: clamp(20px, calc(var(--u) * 2.05), 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.summary {
  max-width: 27em;
  margin-top: calc(var(--u) * 1.45);
  color: var(--graphite);
  font-size: clamp(15px, calc(var(--u) * 1.2), 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

.summary strong {
  font-weight: 400;
  color: var(--ink);
}

/* ───────────────────────── terrain ───────────────────────── */

/* The range lies behind the whole first screen: sky behind the copy, ground under it. */
.scene--hero {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.terrain {
  position: absolute;
  inset: 0;
}

/* the point of the range the camera looks at falls here */
.scene__aim {
  position: absolute;
  left: 0;
  top: 73%;
  width: 0;
  height: 0;
}

/* the script pins the height to a whole number of pixels so the mesh is never resampled;
   the canvas only shows while there is a surface drawn in it */
.terrain__canvas {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.is-live .terrain__canvas {
  visibility: visible;
}

/* one drawn frame of the range, for when it cannot be drawn live: as wide as its box
   and standing on the bottom edge (css/still.css puts the markers on it) */
.terrain__still {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

.scene__note {
  position: absolute;
  z-index: 2;
  right: var(--gutter-end);
  bottom: calc(var(--u) * 1.3);
  color: var(--graphite);
  font-size: var(--t-fine);
  line-height: 1;
  white-space: nowrap;
}

/* once the range is drawn the note lies on its dark foreground */
.is-live .scene__note {
  color: var(--paper);
  opacity: 0.62;
}

/* Markers ride on the surface. Each pin is a zero-size point that the script moves;
   its dot and label hang off it. They only exist once the surface is drawn. */
.pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  will-change: transform;
}

.is-live .pin {
  visibility: visible;
}

/* a venue arrives the way its label hangs: up out of its own point on the ground */
.pin--venue .tag,
.pin--venue .pin__dot {
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.pin--venue .tag {
  transform: translate(-50%, 8px) scale(0.96);
}

.pin--venue .pin__dot {
  transform: scale(0.9);
}

.pin--venue + .pin--venue .tag,
.pin--venue + .pin--venue .pin__dot {
  transition-delay: 0.07s;
}

.is-up .pin--venue .tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-up .pin--venue .pin__dot {
  opacity: 1;
  transform: none;
}

.pin__dot {
  position: absolute;
  --d: clamp(8px, calc(var(--u) * 0.66), 13px);
  /* half a pixel over: the stem is the pixel to the right of the point, and the dot centres on it */
  left: calc(var(--d) / -2 + 0.5px);
  top: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 calc(var(--d) * 0.55) rgba(243, 243, 241, 0.18);
}

/* the ring a venue lets go of when a trade leaves it or lands on it; the script makes it and plays it */
.pin__ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: 0;
}

/* The stem from a label down to its point belongs to the marker itself, not to the label:
   a label is centred by half its own width, which is rarely a whole number of pixels, and a
   stem carried along with it would never sit square on the screen. */
.pin--venue {
  --stem: clamp(20px, calc(var(--u) * 2.3), 42px);
}

.pin--venue::before,
.pin--peak::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: var(--stem);
  opacity: 0;
}

.pin--venue::before {
  background: linear-gradient(var(--paper), rgba(243, 243, 241, 0.25));
  transition: opacity 0.4s var(--ease-out);
}

.is-up .pin--venue::before {
  opacity: 1;
}

.tag {
  position: absolute;
  left: 0;
  bottom: var(--stem);
  transform-origin: 50% calc(100% + var(--stem));
  display: grid;
  gap: 0.36em;
  padding: 0.66em 0.86em 0.6em;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: clamp(11px, calc(var(--u) * 0.92), 16.5px);
  line-height: 1;
  white-space: nowrap;
}

.tag__name {
  color: var(--graphite);
  letter-spacing: 0.02em;
}

.tag__price {
  font-size: 1.38em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* The gap. The only colour on the screen, and only for as long as the gap is open. */
.pin--peak .pin__dot {
  --d: clamp(9px, calc(var(--u) * 0.76), 15px);
  background: var(--signal);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 calc(var(--d) * 1.6) calc(var(--d) * 0.3) rgba(253, 90, 10, 0.55);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.pin--peak {
  --stem: clamp(16px, calc(var(--u) * 1.7), 30px);
}

.pin--peak::before {
  background: var(--signal);
  transition: opacity 0.18s var(--ease-out), background-color 0.2s ease;
}

.pin--peak.is-on::before {
  opacity: 1;
  transition-duration: 0.28s, 0.2s;
}

.pin--peak.is-settled::before {
  background: var(--ink);
}

.chip {
  position: absolute;
  left: 0;
  bottom: var(--stem);
  display: grid;
  justify-items: center;
  padding: 0.5em 0.82em 0.52em;
  border-radius: 3px;
  background: var(--signal);
  color: var(--ink);
  font-size: clamp(12px, calc(var(--u) * 1.02), 18.5px);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
  transform-origin: 50% calc(100% + var(--stem));
  /* leaving is quicker than arriving */
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

/* Once the trade has settled the label stays where the summit was, and this keeps it
   standing on the ground as the ground falls away: the script stretches it down to it. */
.pin__stem {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100px;
  background: var(--ink);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: opacity 0.18s var(--ease-out);
}

.pin--peak.is-on.is-settled .pin__stem {
  opacity: 1;
}

/* the two things the label can say share one cell, so it keeps its size as one gives way to the other */
.chip__open,
.chip__done {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.chip__open {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.chip__name {
  font-weight: 500;
}

.chip__value {
  font-size: 1.22em;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.chip__done {
  align-self: center;
  font-weight: 600;
  opacity: 0;
  filter: blur(3px);
}

.pin--peak.is-on .pin__dot {
  opacity: 1;
  transform: none;
}

.pin--peak.is-on .chip {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-duration: 0.28s, 0.28s, 0.2s, 0.2s;
}

/* The trade settles: the gap is gone, and everything orange goes with it.
   The label says so for a moment, where the summit was. */
.pin--peak.is-settled .chip {
  background: var(--ink);
  color: var(--paper);
}

.pin--peak.is-settled .chip__open {
  opacity: 0;
  filter: blur(3px);
}

.pin--peak.is-settled .chip__done {
  opacity: 1;
  filter: none;
}

.pin--peak.is-settled .pin__dot {
  opacity: 0;
  transform: scale(0.9);
  transition-duration: 0.14s;
}

/* asked for more contrast: the small print stops being pale */
@media (prefers-contrast: more) {
  .is-live .scene__note {
    opacity: 1;
  }

  .tag__name {
    color: var(--ink);
  }
}

/* a held frame (reduced motion, or ?t=) has nothing to ease into */
.is-held .chip,
.is-held .chip *,
.is-held .pin::before,
.is-held .tag,
.is-held .pin__dot,
.is-held .pin__stem {
  transition: none;
}

/* ───────────────────────── the opening ───────────────────────── */

/* One sequence, once, as the page arrives: the blocks of the mark run in behind the orange
   one, the headline comes up line by line, the rest follows, and the range rises under it
   (that part is the script's). Declared as animations so that it plays on its own, with or
   without script, and off the main thread while the page is still loading. After it, the
   copy never moves again. */
@media (prefers-reduced-motion: no-preference) {
  .mark__lead,
  .mark__blocks path {
    animation: block-in 0.85s var(--ease-out) backwards;
  }

  .mark__blocks path:nth-child(1) { animation-delay: 0.05s; }
  .mark__blocks path:nth-child(2) { animation-delay: 0.09s; }
  .mark__blocks path:nth-child(3) { animation-delay: 0.13s; }
  .mark__blocks path:nth-child(5) { animation-delay: 0.17s; }
  .mark__blocks path:nth-child(4) { animation-delay: 0.21s; }

  .mark__name {
    animation: fade-in 0.6s var(--ease-out) 0.4s backwards;
  }

  .headline span {
    animation: line-in 1.05s var(--ease-out) backwards;
  }

  .headline span:nth-child(1) { animation-delay: 0.1s; }
  .headline span:nth-child(2) { animation-delay: 0.17s; }
  .headline span:nth-child(3) { animation-delay: 0.24s; }

  .moment {
    animation: rise-in 0.9s var(--ease-out) 0.4s backwards;
  }

  .summary {
    animation: rise-in 0.9s var(--ease-out) 0.47s backwards;
  }

  .nav {
    animation: fade-in 0.7s var(--ease-out) 0.3s backwards;
  }
}

/* with reduced motion nothing travels: the copy only fades up, briefly */
@media (prefers-reduced-motion: reduce) {
  .brand,
  .nav,
  .copy {
    animation: fade-in 0.3s ease backwards;
  }
}

/* a frame held by hand (?t=) is looked at as it stands, not as it arrives */
.is-frozen .mark *,
.is-frozen .headline span,
.is-frozen .moment,
.is-frozen .summary,
.is-frozen .nav,
.is-frozen .brand,
.is-frozen .copy {
  animation: none;
}

@keyframes block-in {
  from { transform: translateX(-460px); opacity: 0; }
}

/* a line rises into place from behind its own baseline */
@keyframes line-in {
  from { transform: translateY(104%); clip-path: inset(-20% -5% 104% -5%); }
  to { transform: none; clip-path: inset(-20% -5% -20% -5%); }
}

@keyframes rise-in {
  from { transform: translateY(14px); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* ───────────────────────── below the first screen ───────────────────────── */

/* The page goes on from the foot of the range. Right under it the ground is still ink: the
   machine is explained down there. The record of what it has done is on paper again, and the
   page ends on the ground. Orange keeps the meaning it has on the first screen: something is
   in flight. It shows while a gap is open or a trade is crossing, and is gone after. */
:root {
  --ash: #8f8f8a;                         /* secondary text on the ink: 5.6:1 */
  --mist: #c4c4bf;                        /* body text on the ink */
  --rule-ink: rgba(243, 243, 241, 0.15);  /* a hairline on the ink */
  --tick: #a9a9a4;                        /* ruler ticks on the paper */
}

.section {
  padding: var(--rise) var(--gutter-start) 0;
  /* reached from the menu, a section lands with half of that silence above it, not all */
  scroll-margin-top: calc(var(--rise) * -0.5);
}

.title {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.statement {
  font-size: var(--t-statement);
  font-weight: 620;
  line-height: 1.01;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.intro {
  font-size: var(--t-lead);
  line-height: 1.36;
  letter-spacing: -0.012em;
}

/* a figure and its unit stay on one line */
.keep {
  white-space: nowrap;
}

/* ───────── the ground: how a trade happens, and what it runs on ───────── */

.ground {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--u) * 8.5) var(--gutter-start) var(--rise);
}

.ground ::selection {
  background: var(--paper);
  color: var(--ink);
}

.ground :focus-visible {
  outline-color: var(--paper);
}

/* reached from the menu, the title lands with some of the ground above it */
.trade {
  scroll-margin-top: calc(var(--u) * 5.5);
}

/* Four panels of one range, in a row, one phase of the trade in each. The range is the one on
   the first screen, seen low from the front and drawn as its own cross-sections, and the signs
   are the same: a tag for each venue, an orange peak for a gap, a streak for the trade. The
   panels play in turn, one at a time, and what each one shows is written under it. Each one,
   standing still, is the picture of its phase. */
.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: calc(var(--u) * 1.1);
  margin-top: calc(var(--u) * 4.2);
}

.phase h3 {
  margin-top: calc(var(--u) * 1.5);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.phase p {
  max-width: 21em;
  margin-top: calc(var(--u) * 0.75);
  padding-right: var(--gap);
  color: var(--mist);
  font-size: var(--t-body);
  line-height: 1.55;
}

.frame {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

/* the edge of the plate, over whatever is drawn on it */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--rule-ink);
  pointer-events: none;
}

.frame__stage {
  position: absolute;
  inset: 0;
}

/* Each panel on a layer of its own, from the start: the one playing is repainted every frame,
   and so is nothing else on the page around it. Made ready before the panels play, so that the
   first moment of playing does not have to make them too. */
@media (prefers-reduced-motion: no-preference) {
  .frame__stage {
    will-change: opacity;
  }
}

.art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.trade__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* the frame's number, small, in the corner of the plate */
.frame__no {
  position: absolute;
  left: 3.4cqw;
  top: 3cqw;
  color: var(--paper);
  font-size: clamp(10px, 3.6cqw, 13px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

/* ── the range: each row hides the ground behind it ── */
.art use {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1px;
}

/* the peak: an arch on each row it stands on, each rising from its own row */
.arch {
  transform-box: view-box;
}

.arch--6 { transform-origin: 200px 143.5px; }
.arch--7 { transform-origin: 200px 152.1px; }
.arch--8 { transform-origin: 200px 161.7px; }
.arch--9 { transform-origin: 200px 172.4px; }
.arch--10 { transform-origin: 200px 184.5px; }
.arch--11 { transform-origin: 200px 198.1px; }
.arch--12 { transform-origin: 200px 213.3px; }
.arch--13 { transform-origin: 200px 230.4px; }

.art .arch__fill {
  stroke: none;
}

.art .arch__edge,
.art .arch__hot {
  stroke-width: 1.2;
}

.art .arch__edge {
  fill: none;
}

/* the gap is orange where it stands high, and fades into the ground at its foot */
.art .arch__hot {
  fill: none;
  stroke: url(#trade-hot);
}

/* ── the venues, as on the first screen: a point on the ground, a stem, a tag ── */
.venue,
.summit {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 0;
  height: 0;
  --d: clamp(6px, 2.3cqw, 9px);
}

.venue {
  --stem: 6.6cqw;
}

.venue--a { --x: 17.5; --y: 75.27; }
.venue--b { --x: 82.5; --y: 75.8; }

.venue::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: var(--stem);
  background: linear-gradient(var(--paper), rgba(243, 243, 241, 0.3));
}

.venue::after,
.venue__ring,
.summit__dot {
  content: "";
  position: absolute;
  left: calc(var(--d) / -2 + 0.5px);
  top: calc(var(--d) / -2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
}

.venue::after {
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink);
}

/* what a venue lets go of when the engine reads it, or a trade leaves it or lands on it */
.venue__ring {
  box-shadow: inset 0 0 0 1.5px var(--paper);
  opacity: 0;
}

.phase--settle .venue__ring {
  box-shadow: inset 0 0 0 1.5px var(--signal);
}

.venue__tag {
  position: absolute;
  left: 0;
  bottom: var(--stem);
  display: grid;
  gap: 0.34em;
  padding: 0.6em 0.74em 0.55em;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: clamp(9.5px, 3.25cqw, 13px);
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.venue__name {
  color: var(--graphite);
  letter-spacing: 0.02em;
}

.venue__price {
  font-size: 1.34em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* the last two figures of a price turn over in place: the old ones out, the new ones in */
.tick {
  display: inline-grid;
  overflow: hidden;
  vertical-align: top;
}

.tick__was,
.tick__now {
  grid-area: 1 / 1;
}

.tick__was {
  opacity: 0;
}

/* ── the gap: the only orange while it is open ── */
/* The summit's box runs from the summit down to the foot of the peak, so that moving it by its
   own height carries everything on it down to the ground, or up from it, with the peak. */
.summit {
  --x: 50;
  --y: 23.33;
  --stem: 4.6cqw;
  --d: clamp(7px, 2.6cqw, 10px);
  height: 30.56%;
}

.summit__stem,
.summit__post {
  position: absolute;
  left: 0;
  width: 1px;
}

.summit__stem {
  bottom: 100%;
  height: var(--stem);
  background: var(--signal);
  transform-origin: 50% 100%;
}

.summit__dot {
  background: var(--signal);
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 calc(var(--d) * 1.6) calc(var(--d) * 0.3) rgba(253, 90, 10, 0.55);
}

.summit__chip {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--stem));
  padding: 0.5em 0.78em 0.52em;
  border-radius: 3px;
  background: var(--signal);
  color: var(--ink);
  font-size: clamp(10px, 3.5cqw, 14px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.summit__chip b {
  margin-left: 0.3em;
  font-size: 1.2em;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Settled: the gap is gone and the orange with it. The label stays where the summit was,
   standing on a line down to the ground, as on the first screen. */
.summit__post {
  top: calc(var(--stem) * -1);
  bottom: 0;
  background: rgba(243, 243, 241, 0.5);
  transform-origin: 50% 0;
}

.summit__say {
  display: grid;
  justify-items: center;
}

.summit__open,
.summit__done {
  grid-area: 1 / 1;
}

.summit__open {
  display: flex;
  align-items: baseline;
}

.summit__done {
  align-self: center;
  font-weight: 600;
}

.summit--settle .summit__stem,
.summit--settle .summit__dot,
.summit--settle .summit__open {
  opacity: 0;
}

.summit--settle .summit__chip {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(243, 243, 241, 0.55);
  color: var(--paper);
}

/* ── 1 Watch: the feed goes by over the range, and every block it carries updates the pools it touches ── */
.feed__belt {
  transform-box: view-box;
}

.art .feed__belt rect {
  fill: var(--paper);
  fill-opacity: 0.62;
}

.feed__rail,
.drop,
.level {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.feed__rail {
  stroke-opacity: 0.18;
}

/* a word written on the drawing sits on a scrap of ground, clear of the lines under it */
.feed__label,
.level-label,
.verdict {
  padding: 0.2em 0.35em;
  border-radius: 2px;
  background: var(--ink);
}

.feed__label {
  position: absolute;
  right: calc(3.4cqw - 0.35em);
  top: calc(3cqw - 0.2em);
  color: var(--ash);
  font-size: clamp(10px, 3cqw, 12px);
  line-height: 1;
}

.pool {
  fill: var(--paper);
  fill-opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
}

/* a block read: a line down from it to each pool it changed. It grows down by scaling, so its
   width is in the drawing's units, which scaling down the line's length leaves alone. */
.drop {
  stroke-width: 1.25;
  vector-effect: none;
  stroke-opacity: 0.42;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.drop.is-lit {
  opacity: 1;
}

/* ── 2 Find: pool fees, then gas, are taken off the bottom of the gap ── */
.tide,
.level {
  transform-box: view-box;
}

.level {
  stroke-opacity: 0.72;
}

.level-label {
  position: absolute;
  left: 67%;
  top: calc(var(--y) * 1%);
  color: var(--mist);
  font-size: clamp(10px, 3cqw, 12px);
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.level-label--fees { --y: 46.89; }
.level-label--gas { --y: 41.22; }

/* ── 3 Simulate and 4 Settle: the route of the trade, and the one transaction it is ── */
.art .replay,
.art .replay__head,
.art .streak,
.art .streak__glow,
.art .streak__head {
  fill: none;
  stroke-linecap: round;
}

/* a dry run is drawn, not sent */
.art .replay {
  stroke: var(--paper);
  stroke-opacity: 0.85;
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
  stroke-linecap: butt;
}

.replay__reveal {
  transform-box: view-box;
  transform-origin: 0 0;
}

.art .replay__head {
  stroke: var(--paper);
  stroke-width: 5;
  opacity: 0;
}

/* the trade itself: white-hot where it is, orange behind, cooling */
.art .streak {
  stroke: var(--signal);
  stroke-width: 2;
  opacity: 0;
}

.art .streak__glow {
  stroke: var(--signal);
  stroke-width: 7;
  stroke-opacity: 0.26;
  opacity: 0;
}

.art .streak__head {
  stroke: var(--paper);
  stroke-width: 3.2;
  opacity: 0;
}

.phase--settle .arch {
  opacity: 0;
}

.tx {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 87%;
  height: 9%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(243, 243, 241, 0.32);
  border-radius: 3px;
  background: var(--ink);
  font-size: clamp(10px, 2.9cqw, 12px);
  line-height: 1;
}

.tx__fill {
  position: absolute;
  inset: 0;
  background: rgba(243, 243, 241, 0.09);
  transform-origin: 0 50%;
}

.tx__step {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--mist);
}

.tx__step + .tx__step {
  box-shadow: inset 1px 0 rgba(243, 243, 241, 0.14);
}

.tx--dry {
  border-style: dashed;
  border-color: rgba(243, 243, 241, 0.42);
}

.tx--dry .tx__fill {
  display: none;
}

.tx--dry .tx__step {
  color: var(--paper);
}

.verdict {
  position: absolute;
  right: calc(5% - 0.35em);
  bottom: calc(13% + 0.7em);
  color: var(--mist);
  font-size: clamp(10px, 2.9cqw, 12px);
  line-height: 1;
}

/* ── one at a time ── */
/* Once the panels play, the one playing is lit and the others hold their picture, dimmed.
   Under each, a hairline fills as its phase runs; the ones already run stay filled. */
.phase__clock {
  display: block;
  height: 1px;
  margin-top: calc(var(--u) * 1.1);
  background: var(--rule-ink);
  visibility: hidden;
}

.phase__run {
  display: block;
  height: 100%;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.is-playing .phase__clock {
  visibility: visible;
}

.is-playing .phase.is-past .phase__run {
  transform: none;
  opacity: 0.4;
}

.is-playing .frame__stage {
  opacity: 0.32;
  transition: opacity 0.6s ease;
}

.is-playing .phase.is-now .frame__stage {
  opacity: 1;
  transition-duration: 0.3s;
}

/* the moment the feed shows standing still is played, not shown, once it plays */
.is-playing .drop.is-lit {
  opacity: 0;
}

.note {
  margin-top: calc(var(--u) * 3.4);
  color: var(--ash);
  font-size: var(--t-fine);
  line-height: 1.4;
}

/* what it runs on */
.infra {
  display: grid;
  grid-template-columns: var(--tracks);
  column-gap: var(--gap);
  align-items: baseline;
  padding-top: var(--rise);
  scroll-margin-top: calc(var(--rise) * -0.5);
}

.infra .statement {
  grid-column: 1 / 3;
  max-width: 11em;
}

.infra .intro {
  grid-column: 3;
  max-width: 31em;
  color: var(--mist);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: 0;
}

/* a data sheet: what it is on line B, what it says on line C */
.specs {
  grid-column: 2 / -1;
  margin-top: calc(var(--u) * 5.4);
}

.specs > div {
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding: calc(var(--u) * 1.05) 0 calc(var(--u) * 1.2);
  border-top: 1px solid var(--rule-ink);
}

.specs dt {
  color: var(--ash);
  font-size: var(--t-small);
  line-height: 1.4;
}

.specs dd {
  max-width: 31em;
  font-size: var(--t-body);
  line-height: 1.5;
}

/* ───────── networks, and the time each one took ───────── */

.networks__list {
  display: grid;
  grid-template-columns: calc(var(--col) * 2 + var(--gap)) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: start;
  margin-top: calc(var(--u) * 4.4);
}

.network h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.network__head p {
  margin-top: 0.62em;
  color: var(--graphite);
  font-size: var(--t-small);
  line-height: 1.4;
}

/* a filled mark for the network that is running, an empty one for the one that is not */
.network__head p::before {
  content: "";
  display: inline-block;
  width: 0.58em;
  height: 0.58em;
  margin-right: 0.62em;
  background: var(--ink);
}

.network--paused .network__head p::before {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--graphite);
}

.network > p {
  max-width: 34em;
  margin-top: calc(var(--u) * 1.7);
  font-size: var(--t-body);
  line-height: 1.55;
}

/* The same distance three times over, drawn to one scale of milliseconds. */
.race {
  display: grid;
  grid-template-columns: var(--tracks);
  column-gap: var(--gap);
  margin-top: calc(var(--rise) * 0.62);
}

.race__title {
  grid-column: 1;
  max-width: 9.5em;
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.race__body {
  grid-column: 2 / -1;
  /* one millisecond of the run */
  --per: calc(100% / 160);
}

.lanes {
  display: grid;
  row-gap: calc(var(--u) * 1.7);
  margin-top: calc(var(--u) * 2.2);
}

.lane {
  position: relative;
}

.lane--135 { --ms: 135; }
.lane--40 { --ms: 40; }
.lane--10 { --ms: 10; }

.lane__name {
  display: block;
  color: var(--graphite);
  font-size: var(--t-small);
  line-height: 1.4;
}

/* the run is exactly as long as the time; the bar slides along inside it, its head first */
.lane__run {
  position: relative;
  display: block;
  width: calc(var(--per) * var(--ms));
  height: 5px;
  margin-top: 0.7em;
  overflow: hidden;
  /* the faint track it is about to run along */
  background: rgba(23, 23, 23, 0.07);
}

.lane__bar {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

/* the head of a run in flight: hot at the front, cooling behind (the script adds it) */
.lane__head {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 72px);
  background: linear-gradient(to right, rgba(253, 90, 10, 0), var(--signal) 78%, #ffd9bd);
  opacity: 0;
}

.lane__value {
  position: absolute;
  left: calc(var(--per) * var(--ms) + 14px);
  bottom: calc(2.5px - 0.5em);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* armed by the script: nothing has run yet */
.race.is-armed .lane__bar {
  transform: translateX(-100%);
}

.race.is-armed .lane__value {
  opacity: 0;
}

/* it holds its line from the start, so nothing moves when it shows */
.race__again {
  grid-column: 2 / -1;
  margin-top: calc(var(--u) * 2.4);
  color: var(--graphite);
  font-size: var(--t-fine);
  line-height: 1.4;
  transition: opacity 0.3s ease, visibility 0s;
}

.race.is-armed .race__again:not(.is-shown) {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.race__again button {
  margin: 0 0 0 0.6em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--hairline);
  cursor: pointer;
  transition: text-decoration-color 0.2s ease;
}

/* ───────── the log: one ruled line for each entry, the latest on top ───────── */

/* A ledger on the page's own verticals: the date at the margin, what happened on line B. */
.entries {
  margin-top: calc(var(--u) * 4.4);
  border-bottom: 1px solid var(--hairline);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding: calc(var(--u) * 1.05) 0 calc(var(--u) * 1.2);
  border-top: 1px solid var(--hairline);
}

.entry time {
  display: block;
  font-size: var(--t-h3);
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* wide enough that most entries take a single line; the long ones break without leaving a word alone */
.entry p {
  max-width: calc(var(--t-body) * 45);
  font-size: var(--t-body);
  line-height: 1.55;
  text-wrap: pretty;
}

/* every entry is from this year: it is there to be read out, not to be seen on every line */
.entry__year {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* the latest entry is the state of things today */
.entry--live p {
  font-size: var(--t-lead);
  line-height: 1.36;
  letter-spacing: -0.012em;
}

/* the network the latest entry reports from, still trading: the mark the networks above use for
   it. It stands on the same line as the second line of the entry beside it (Geist sets its
   baseline 0.355em below the middle of a line). */
.entry__state {
  display: block;
  margin-top: calc(var(--t-lead) * 1.36 - var(--t-h3) * 0.195 - var(--t-small) * 1.055);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.4;
}

.entry__state::before {
  content: "";
  display: inline-block;
  width: 0.58em;
  height: 0.58em;
  margin-right: 0.62em;
  background: var(--ink);
}

/* While the log is in sight, a trade crosses the rule over the latest entry every few seconds,
   the way one crosses the range on the first screen: the testnet that entry reports on is
   trading as it is read. The script lays the streak on the rule and sends it. */
.entry__trade {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  /* hot at the front, cooling behind, as the runs in the race above */
  background: linear-gradient(to right, rgba(253, 90, 10, 0), rgba(253, 90, 10, 0.45) 60%, var(--signal) calc(100% - 16px), #ffd9bd);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}

/* ───────── a short history of speed, to scale ───────── */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: calc(var(--u) * 4.4);
}

.year {
  display: block;
  font-size: var(--t-h2);
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  max-width: 17.5em;
  margin-top: calc(var(--u) * 1.1);
  font-size: var(--t-body);
  line-height: 1.55;
}

.plate {
  margin-top: calc(var(--u) * 3.4);
}

.plate__window {
  overflow: hidden;
}

.plate__print {
  position: relative;
}

/* the print comes already in the page's ink and paper */
.plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* One phase at a time: while the plate crosses the window, one frame is clear and the paper
   is laid over the others. The twelve frames are 99.4 of the print's 1200 pixels apart. */
.plate__shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.25%;
  width: 8.283%;
  display: none;
  box-shadow: 0 0 0 100vmax rgba(243, 243, 241, 0.62);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plate.is-stepping .plate__print {
  overflow: hidden;
}

.plate.is-stepping .plate__shutter {
  display: block;
}

.plate.is-open .plate__shutter {
  opacity: 1;
}

.plate figcaption {
  margin-top: 0.95em;
  color: var(--graphite);
  font-size: var(--t-fine);
  line-height: 1.4;
}

/* ───────── what comes next, founder ───────── */

.pair {
  display: grid;
  grid-template-columns: var(--tracks);
  column-gap: var(--gap);
  align-items: start;
  padding: var(--rise) var(--gutter-start) var(--rise);
}

.next {
  grid-column: 1 / 3;
}

.founder {
  grid-column: 3;
}

.pair .intro {
  max-width: 27em;
  margin-top: calc(var(--u) * 1.9);
}

.founder strong {
  font-weight: 600;
}

.links {
  display: flex;
  gap: 1.7em;
  margin-top: calc(var(--u) * 1.6);
  font-size: var(--t-body);
}

.links a,
.mail a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.2s ease;
}

.mail a {
  text-decoration-color: rgba(243, 243, 241, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .links a:hover,
  .mail a:hover,
  .race__again button:hover {
    text-decoration-color: currentColor;
  }
}

/* ───────────────────────── the limit ───────────────────────── */

/* Back on the ground. The line, the speed of light under it, and how to reach us. The line
   stands as far from the top of the ground as the phrase stands from the line. */
.limit {
  padding: calc(var(--u) * 3.2) var(--gutter-start) calc(var(--u) * 2.4);
  background: var(--ink);
  color: var(--paper);
}

.limit ::selection {
  background: var(--paper);
  color: var(--ink);
}

.limit :focus-visible {
  outline-color: var(--paper);
}

.limit__phrase {
  margin-top: calc(var(--u) * 3.2);
  font-size: var(--t-display);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.045em;
}

.limit__phrase span {
  display: block;
  white-space: nowrap;
}

/* The line runs from edge to edge of the window. Each time the page is scrolled while it is
   in view, a trade's streak runs along it, in the direction of the scroll: left to right on
   the way down, right to left on the way up. The script lays two lanes on it, so a new streak
   can leave while the last one is still cooling. */
.limit__rule {
  position: relative;
  height: 1px;
  margin: 0 calc(var(--gutter-start) * -1);
  background: var(--rule-ink);
}

.limit__lane {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
}

.limit__lane.is-back {
  transform: scaleX(-1);
}

.limit__streak {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(253, 90, 10, 0), rgba(253, 90, 10, 0.5) 55%, var(--signal) 96%, #ffe2cc);
  box-shadow: 0 0 10px rgba(253, 90, 10, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

.limit__small {
  display: grid;
  grid-template-columns: var(--tracks);
  column-gap: var(--gap);
  align-items: baseline;
  padding-top: calc(var(--u) * 4.4);
}

.mail {
  font-size: var(--t-lead);
  letter-spacing: -0.012em;
}

.fine {
  max-width: 30em;
  color: var(--ash);
  font-size: var(--t-fine);
  line-height: 1.45;
}

/* one line across the foot: the address at the left margin, the notice in the middle of the
   page, the copyright at the right margin */
@media (min-width: 821px) {
  .limit__small {
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  }

  .limit__small .fine {
    justify-self: center;
  }

  .limit__small .fine:last-child {
    justify-self: end;
  }

  /* the address sits level with the middle of the notice's two lines, a touch below */
  .limit__small .mail {
    align-self: center;
    position: relative;
    top: 0.18em;
  }
}

/* a window too narrow for four frames abreast, too wide for one column: two by two */
@media (min-width: 821px) and (max-width: 1180px) {
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: calc(var(--u) * 4.4);
  }
}

/* ───────────────────────── small screens ───────────────────────── */

@media (max-width: 820px) {
  :root {
    --u: min(2.4vw, 1.25vh);
    --gutter-start: 5.4vw;
    --gutter-end: 5.4vw;
    --gap: 20px;
    --rise: clamp(76px, 22vw, 120px);
    --logo-h: clamp(46px, 13.4vw, 64px);
    --bar-h: calc(12px + var(--logo-h) * 0.903);

    --t-fine: 13px;
    --t-small: 14px;
    --t-body: clamp(16px, 4.2vw, 18px);
    --t-lead: clamp(19px, 5.1vw, 23px);
    --t-h3: clamp(22px, 6vw, 28px);
    --t-h2: clamp(30px, 8.6vw, 46px);
    --t-statement: clamp(34px, 10vw, 54px);
  }

  /* ── top bar: the mark, and the three links in one row ── */
  .bar {
    align-items: center;
    padding-top: 12px;
  }

  .nav {
    gap: clamp(12px, 4.4vw, 26px);
    height: 36px;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .nav .nav__contact {
    margin-left: 0;
    padding: 0 clamp(11px, 3.6vw, 18px);
    border-radius: 12px;
  }

  /* a link is as easy to hit as the button beside it: the row is 36px tall, a finger wants 44 */
  .nav a::before,
  .links a::before,
  .mail a::before {
    content: "";
    position: absolute;
    inset: -12px -5px;
  }

  .links a,
  .mail a {
    position: relative;
  }

  /* ── first screen: the copy, then the range under it; as tall as it needs to be ── */
  .hero {
    display: grid;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .copy {
    grid-template-columns: minmax(0, 1fr);
    padding-top: calc(var(--bar-h) + 22px);
  }

  .headline {
    font-size: clamp(30px, 10.6vw, 68px);
  }

  .aside {
    padding-top: 20px;
  }

  .moment {
    font-size: clamp(19px, 5.4vw, 26px);
    line-height: 1.16;
  }

  .summary {
    margin-top: 10px;
    font-size: clamp(14.5px, 3.9vw, 17px);
    line-height: 1.48;
  }

  /* What the range shows hangs from the point the camera looks at and grows with the width
     of the page: a gap's label tops out about 12.6vw + 70px above that point, and the venues
     stand up to 23.6vw below it. So the point is held a fixed way under the copy, however
     tall the screen is, and the ground runs on from there down to the foot of the first screen. */
  .scene--hero {
    --above: calc(12.6vw + 118px);
    position: static;
    min-height: calc(var(--above) + 23.6vw + 96px);
  }

  .scene__aim {
    position: static;
    display: block;
    margin-top: var(--above);
  }

  .scene__note {
    bottom: 14px;
  }

  /* ── below the first screen: one column ── */
  .ground {
    padding-top: 64px;
  }

  .phases {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
    margin-top: 30px;
  }

  .phase__clock {
    margin-top: 12px;
  }

  /* one under the other, the panel being read is often not the one playing: it stays legible */
  .is-playing .frame__stage {
    opacity: 0.5;
  }

  .phase h3 {
    margin-top: 14px;
  }

  .phase p {
    max-width: 34em;
    margin-top: 6px;
    padding-right: 0;
  }

  .note {
    margin-top: 30px;
  }

  .infra,
  .specs,
  .networks__list,
  .race,
  .pair,
  .limit__small {
    display: block;
  }

  .infra .intro {
    margin-top: 22px;
  }

  .specs {
    margin-top: 34px;
  }

  .specs > div {
    display: block;
    padding: 12px 0 16px;
  }

  .specs dd {
    margin-top: 3px;
  }

  .networks__list {
    margin-top: 34px;
  }

  .network + .network {
    margin-top: 52px;
  }

  .network > p {
    margin-top: 14px;
  }

  .race {
    margin-top: 64px;
  }

  .race__body {
    margin-top: 22px;
  }

  /* at this width a millisecond is two pixels: only every fifth keeps its tick */
  .ticks__fine {
    display: none;
  }

  /* the value sits on the same line as the name: there is no room after the longest run */
  .lane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: baseline;
  }

  .lane__run {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .lane__value {
    position: static;
    grid-row: 1;
    grid-column: 2;
    line-height: 1.4;
  }

  .race__again {
    margin-top: 22px;
  }

  /* the button is a line of small print: a finger gets more than that to aim at */
  .race__again button {
    position: relative;
  }

  .race__again button::before {
    content: "";
    position: absolute;
    inset: -14px -8px;
  }

  /* the log: the date over each entry */
  .entries {
    margin-top: 30px;
  }

  .entry {
    display: block;
    padding: 14px 0 18px;
  }

  .entry time {
    display: inline;
  }

  .entry__state {
    display: inline;
    margin: 0 0 0 1em;
  }

  .entry p {
    margin-top: 6px;
  }

  .timeline {
    display: block;
    margin-top: 34px;
  }

  .timeline > li + li {
    margin-top: 30px;
  }

  .timeline p {
    max-width: 34em;
    margin-top: 8px;
  }

  /* the plate is wider than the screen: it runs off the right edge and slides under a finger */
  .plate {
    margin-top: 34px;
  }

  .plate__window {
    margin-right: calc(var(--gutter-start) * -1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .plate__window::-webkit-scrollbar {
    display: none;
  }

  .plate img {
    width: 260vw;
    max-width: none;
  }

  .pair .intro {
    margin-top: 16px;
  }

  .founder {
    margin-top: var(--rise);
  }

  .links {
    margin-top: 16px;
  }

  .limit {
    padding-top: 26px;
  }

  .limit__phrase {
    margin-top: 26px;
    font-size: clamp(30px, 9.6vw, 68px);
  }

  .limit__small {
    padding-top: 34px;
  }

  .limit__small .fine {
    margin-top: 18px;
  }
}

/* the narrowest phones: the menu closes up so it keeps clear of the mark */
@media (max-width: 350px) {
  .nav {
    gap: 10px;
  }

  .nav .nav__contact {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* reduced motion: what travels or changes size stops doing so; colours still cross-fade */
@media (prefers-reduced-motion: reduce) {
  .nav a::after {
    transition: none;
  }

  .nav .nav__contact {
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav .nav__contact:active {
    transform: none;
  }
}
