/* ---------- Tokens ---------- */
:root {
  /* Colours are built from two values, paper and ink. The dark mode (at the foot of this file) swaps them. */
  --bg-rgb: 255 255 255;
  --ink-rgb: 21 20 15;
  --shade-rgb: 21 20 15;      /* shadows: dark in either mode */
  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --room-a: #ffffff; --room-b: #f7f6f2; --room-c: #e9e7e1;   /* the room, from its lit corner to its dark one */
  --blank: #e0ded8;           /* an image that has not loaded yet */
  --wrong: #9c3a25;           /* a field that is not right */
  --ink-body: #34322c;        /* running text on article pages */
  --ink-soft: #5f5c53;
  --line: rgb(var(--ink-rgb) / 0.14);
  --accent: #b5452d;
  --rope: var(--ink);         /* rope and knots are all black */

  /* Scale. One unit sizes the whole composition: it follows the window's width, and once the window is wider
     than 16:10 it follows the height instead. Sizes below are expressed in it, so the page keeps its
     proportions on a laptop, a large monitor or a projector. */
  --u: min(1vw, 1.6vh);

  /* Layout */
  --gutter: clamp(20px, 3.2vw, 96px);
  --frame-max: 175vh;         /* very wide windows: the composition stays together, centred */
  --side: max(var(--gutter), calc((100vw - var(--frame-max)) / 2));
  --col-text: 4.6fr;          /* text column and image column, shared by the landing page and the article pages */
  --col-media: 7.4fr;
  --col-gap: clamp(28px, calc(var(--u) * 5.2), 130px);
  --bar-h: clamp(156px, calc(var(--u) * 5.4 + 90px), 216px);  /* bottom bar, at the foot of each page */
  --logo-h: clamp(96px, calc(var(--u) * 3.4 + 47px), 132px);  /* the partner logos in it are sized from this */
  --page-pad: clamp(18px, calc(var(--u) * 1.8), 44px);        /* space between the lifted rope and an article */

  /* Type */
  --fs-title: calc(clamp(32px, calc(var(--u) * 4.1), 112px) * var(--ts, 1));       /* highlight title */
  --fs-h1: calc(clamp(34px, calc(var(--u) * 3.7), 96px) * var(--ts, 1));           /* article title */
  --fs-lead: calc(clamp(17px, calc(var(--u) * 1.5), 34px) * var(--ts, 1));         /* highlight text */
  --fs-read: calc(clamp(18.5px, calc(0.5vw + 13.6px), 26px) * var(--ts, 1));       /* article text; follows the width only */
  --fs-label: calc(clamp(12px, calc(var(--u) * 0.9), 21px) * var(--ts, 1));        /* small capital labels */
  --fs-link: calc(clamp(14px, calc(var(--u) * 1.15), 26px) * var(--ts, 1));

  /* Objects */
  --rope-w: clamp(5px, calc(var(--u) * 0.36), 9px);           /* rope thickness */
  --ctrl: clamp(30px, calc(var(--u) * 2.3), 42px);            /* arrow and pause buttons */
  --frame-off: clamp(10px, calc(var(--u) * 0.85), 20px);      /* how far the colour frame shows behind an image */
  --shadow-fall: clamp(18px, calc(var(--u) * 1.6), 40px);
  /* A print on the wall: a tight contact edge plus the same long fall as the rope's shadow */
  --print-shadow:
    0 2px 3px rgb(var(--shade-rgb) / 0.10),
    0 var(--shadow-fall) calc(var(--shadow-fall) * 1.1) calc(var(--shadow-fall) * -0.25) rgb(var(--shade-rgb) / 0.20);

  /* The room: white base; the diagonal gradient darkens toward bottom-right for depth, a soft highlight lifts the
     centre, and a floor at the bottom: a light horizon where it meets the back wall, then a soft shadow toward the viewer. */
  --room:
    linear-gradient(to top, rgb(var(--ink-rgb) / 0.20) 0%, rgb(var(--ink-rgb) / 0.09) 12%, rgb(var(--ink-rgb) / 0) 36%),
    linear-gradient(to top, rgb(var(--bg-rgb) / 0) 34%, rgb(var(--bg-rgb) / 0.75) 39%, rgb(var(--bg-rgb) / 0) 46%),
    radial-gradient(110vw 26vh at 50% 100%, rgb(var(--ink-rgb) / 0.14), rgb(var(--ink-rgb) / 0) 70%),
    radial-gradient(60vmax 45vmax at 50% 50%, rgb(var(--bg-rgb) / 0.9), rgb(var(--bg-rgb) / 0) 70%),
    radial-gradient(70vmax 70vmax at 100% 100%, rgb(var(--ink-rgb) / 0.14), rgb(var(--ink-rgb) / 0) 60%),
    linear-gradient(135deg, var(--room-a) 0%, var(--room-b) 45%, var(--room-c) 100%);

  --font-serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --fade: cubic-bezier(0.45, 0, 0.55, 1);   /* gentle ease-in-out for crossfades: no jump at either end */
}

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

/* Keyboard focus is always shown, on every link, button and field */
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.page:focus, .home:focus { outline: none; }   /* they take the focus when a page opens, without a ring */
/* The first stop for the keyboard: straight to the content, past the menu */
.skip-link {
  position: fixed;
  left: var(--side); top: 10px;
  z-index: 80;
  padding: 0.7em 1.2em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  font: inherit;
  color: var(--bg);
  cursor: pointer;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* The home page scrolls; the rope down the right side shows how far, so the browser's own scrollbar is left out */
html {
  background-color: var(--bg);
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;   /* a phone turned sideways keeps the type sizes set here */
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html::-webkit-scrollbar { display: none; }
/* While a page is open the home page stays where it was left */
html.is-locked, html.menu-lock { overflow: hidden; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-serif);   /* one typeface throughout */
  font-size: calc(clamp(14px, 0.3vw + 11px, 17px) * var(--ts, 1));
}
/* The room (--room) stays put while the page scrolls */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--room);
  background-color: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(18px, calc(var(--u) * 1.9), 44px) var(--side);
}
/* Once the home page is scrolled the bar gets the same light ground as the bottom bar, so text passes behind it cleanly
   (--fall runs from 0 to 1 as the rope falls, on the home page and on the People page; set by script.js) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--bg-rgb) / 0.72);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  opacity: calc(var(--fall, 0) * 3);
  pointer-events: none;
}
.site-nav { display: flex; gap: clamp(22px, calc(var(--u) * 2.6), 60px); }
.site-nav a {
  padding: 5px 0;                /* a target at least 24px high */
  font-size: calc(clamp(14px, calc(var(--u) * 0.5 + 8px), 21px) * var(--ts, 1));
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.site-nav a:hover { color: var(--ink); }

/* Three-line menu button (hidden on wide screens) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin: -10px -10px -10px 0;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.brand {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: calc(clamp(21px, calc(var(--u) * 1.1 + 9px), 38px) * var(--ts, 1));
  letter-spacing: -0.01em;
}
.brand a { color: inherit; text-decoration: none; }

/* ---------- Stage ---------- */
/* The first screen of the home page: the highlights */
.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
}

/* ---------- Rope ---------- */
/* Fixed over the window, in front of everything: wherever the rope moves, it passes over what is on the page,
   the top bar and the bottom bar included */
.rope {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Soft shadow cast onto the floor below the rope */
  filter: drop-shadow(0 22px 18px rgb(var(--shade-rgb) / 0.10));
}
.rope-line {
  fill: none;
  stroke: var(--rope);
  stroke-width: var(--rope-w);
  stroke-linecap: round;
}
/* A faint light along the top edge gives the cord roundness */
.rope-highlight {
  fill: none;
  stroke: rgb(var(--bg-rgb) / 0.28);
  stroke-width: calc(var(--rope-w) * 0.24);
  stroke-linecap: round;
  transform: translateY(calc(var(--rope-w) * -0.26));
}

/* Knots are beads strung on the cord: black, with a thin light rim lifting them off the rope (radius set by script.js) */
.knot-ball {
  fill: var(--rope);
  stroke: rgb(var(--bg-rgb) / 0.85);
  stroke-width: calc(var(--rope-w) * 0.3);
}
.knot.is-active .knot-ball {
  stroke-width: calc(var(--rope-w) * 0.4);
}


/* ---------- Hit targets over the knots ---------- */
.carousel {
  position: fixed;
  inset: 0;
  z-index: 56;
  margin: 0; padding: 0;
  list-style: none;
  pointer-events: none;
}
.carousel li {
  position: absolute;
  left: 0; top: 0;
  pointer-events: auto;
  translate: -50% -50%;
  transform: translate(var(--x), var(--y));
}
.carousel li.is-hidden { pointer-events: none; }
.point {
  width: 56px; height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.carousel li.is-active .point { cursor: default; }

/* ---------- Hero frame ---------- */
/* The hero is the whole zone between the top bar and the resting rope (--rope-rest, set by script.js):
   text column left, image right. The image fills its side of the zone, so it is as large as the window allows. */
.hero {
  position: absolute;
  left: var(--side); right: var(--side);
  top: calc(var(--header-h, 80px) + clamp(4px, calc(var(--u) * 0.8), 20px));
  bottom: calc(100% - var(--rope-rest, 72%) + var(--frame-off) + clamp(16px, calc(var(--u) * 1.6), 40px));
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  grid-template-rows: minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
  pointer-events: none;
}
/* Entries stack in one grid cell so the column sizes to the tallest entry and they can crossfade */
.content {
  display: grid;
}
/* Text fades out fully before the next entry fades in, so headings never print over each other */
.entry {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.8s var(--fade), transform 0.8s var(--fade);
}
.entry.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 1.4s var(--fade) 0.7s, transform 1.4s var(--fade) 0.7s;
}

.entry-eyebrow {
  display: flex;
  gap: 1.1em;
  margin-bottom: 1.2em;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.entry-link {
  display: inline-block;
  margin-top: 1.5em;
  font-size: var(--fs-link);
  color: var(--ink);
  text-decoration: none;
  border-bottom: max(1px, 0.06em) solid var(--ink);
  padding-bottom: 0.15em;
}
.entry h2 {
  margin: 0 0 0.38em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-title);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.entry p {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.entry-more { display: none; }   /* more of the article: shown on phones (see the phone layout) */

/* ---------- Media area ---------- */
/* The image's side of the hero zone. The print inside takes all the room it can get: it fills the column,
   between 16:9 on wide windows and a slightly upright 5:6 on tall ones. Images crossfade with their entry. */
.media {
  container-type: size;
  display: grid;
  align-self: stretch;
  justify-items: end;
  align-items: center;
  min-width: 0;
  min-height: 0;
}
.media-item {
  grid-area: 1 / 1;
  position: relative;           /* anchors the colour frame pseudo-element */
  isolation: isolate;           /* keeps the colour frame behind this print only */
  margin: 0;
  width: 100%;                  /* fallback where container units are unknown */
  aspect-ratio: 3 / 2;
  max-height: 100%;
  background: var(--blank);          /* shown until the image loads */
  box-shadow: var(--print-shadow);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 1.6s var(--fade), transform 1.6s var(--fade);
}
@supports (width: 1cqw) {
  .media-item {
    aspect-ratio: auto;
    max-height: none;
    width: min(100cqw, 100cqh * 16 / 9);
    height: min(100cqh, 100cqw * 1.2);
  }
}
.media-item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 1.9s var(--fade) 0.1s, transform 1.9s var(--fade) 0.1s;
}
/* Half frame: a colour plane offset behind the image, showing along its right and bottom edges */
.media-item::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: var(--frame-off) var(--frame-off);
  transition: translate 0.5s var(--ease);
  background: var(--frame);
  box-shadow: var(--print-shadow);
  z-index: -1;
}
/* The photo's window: clips the drifting image and carries the light on its surface */
.media-shot {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  overflow: hidden;
  isolation: isolate;           /* keeps the tint blending with the photo only */
}
/* One grade for every photo, so any set reads as a series.
   Each photo starts slightly enlarged and settles very slowly while its item is shown; it resets unseen after fading out. */
.media-item img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 0.8s var(--fade), transform 0s linear 1.7s;
}
.media-item img.is-loaded { opacity: 1; }
.media-item.is-active img {
  transform: none;
  transition: opacity 0.8s var(--fade), transform 8s cubic-bezier(0.2, 0.55, 0.3, 1);
}
/* A trace of the item's colour in the photo, tying it to its frame */
.media-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--frame);
  mix-blend-mode: soft-light;
  opacity: 0.16;
}
/* The room's light on the print: brighter toward the top left, a little shade bottom right, and a hairline edge */
.media-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 38%, rgba(21, 20, 15, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(21, 20, 15, 0.10);
}

/* ---------- Sections ---------- */
/* Below the highlights, one section per menu item. Each starts at a fine line that runs toward its knot on the fallen rope;
   title and text keep the two columns of the highlights above. */
.sections {
  margin: 0 var(--side);
  padding: 18vh 0 calc(var(--bar-h) + 4vh);
}
.section {
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  column-gap: var(--col-gap);
  align-items: start;
  padding: clamp(18px, calc(var(--u) * 1.7), 40px) 0 clamp(80px, 17vh, 220px);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.3);
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-body {
  font-size: var(--fs-read);
  /* the first line of text shares its baseline with the title, as on the text pages */
  padding-top: calc(var(--fs-h1) * 0.87 - var(--fs-read) * 1.16);
}
.section-body p {
  margin: 0;
  max-width: 36em;
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}
/* The People section shows the team in small: round portraits with name and role */
.mini-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(128px, calc(var(--u) * 11.5), 220px), 1fr));
  gap: 1.8em 1.4em;
  margin: 2em 0 0.4em;
  padding: 0;
  max-width: 46em;
  list-style: none;
}
.mini-portrait { width: clamp(84px, calc(var(--u) * 8), 132px); margin-bottom: 1.15em; }
.mini-people strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.16em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.mini-people em {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-serif);
  font-size: 0.98em;
  line-height: 1.3;
  color: var(--ink-soft);
}
/* The Blog section shows the newest posts in small: picture, kind and date, title */
.mini-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* five posts and the empty frame: two rows of three */
  gap: 2em 1.4em;
  margin: 2em 0 0.4em;
  padding: 0;
  max-width: 46em;
  list-style: none;
}
.mini-posts .post-media { margin-bottom: 0.8em; }
.mini-posts .post-meta { font-size: 0.82em; margin-bottom: 0.25em; }
.mini-posts .post-title { font-size: 1.12em; line-height: 1.2; letter-spacing: -0.01em; }
.mini-posts .post-day { font-size: 0.8em; }
.mini-posts .post-day b { font-size: 2.9em; }
.mini-posts .post-media.is-plain { padding: 0.8em 0.9em; }
.mini-posts .post-play { left: 0.7em; bottom: 0.7em; font-size: 0.72em; }
/* The sixth place: an empty frame the size of a picture, with a small arrow in it. It leads to all the posts. */
.post-more .post-media {
  background: none;
  border: 1.5px dashed rgb(var(--ink-rgb) / 0.35);
  transition: border-color 0.3s;
}
.post-more .post-media::after {
  content: "\2192";
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  font-size: 1.5em;
  color: var(--ink-soft);
  transition: translate 0.4s var(--ease), color 0.3s;
}
.post-more:hover .post-media, .post-more:focus-visible .post-media { border-color: var(--ink); }
.post-more:hover .post-media::after, .post-more:focus-visible .post-media::after { translate: -30% -50%; color: var(--ink); }

/* Publications as rows: the year, then the title with its authors and where it appeared.
   The Publications section of the home page shows the newest three of them. */
.pub-list {
  margin: 0 0 1.6em;
  padding: 0;
  max-width: 40em;
  list-style: none;
}
.pub-list li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  column-gap: 1em;
  align-items: baseline;
  padding: 0 0 1.25em;
}
.pub-year { font-style: italic; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pub-title { display: block; font-weight: 400; font-size: 1.12em; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
a.pub-title { text-decoration: underline; text-decoration-thickness: max(1px, 0.05em); text-underline-offset: 0.16em; }
.pub-body em { display: block; margin-top: 0.25em; font-size: 0.92em; line-height: 1.4; color: var(--ink-soft); }
.mini-pubs { margin: 1.8em 0 0.2em; }
.mini-pubs li { padding-bottom: 1em; }
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em 2em;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}
.section-links a {
  display: inline-block;
  font-size: 0.88em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: max(1px, 0.06em) solid var(--ink);
  padding-bottom: 0.15em;
}

/* ---------- While a page is open ---------- */
/* The highlights are not faded: the rope wipes them away as it rises (clip set by script.js).
   Only the controls fade, since they sit below the rope from the start; they also go as the rope starts to fall (--fall, set by script.js). */
.controls { opacity: calc(1 - var(--fall, 0) * 5); transition: opacity 0.3s var(--ease); }
body.is-page .controls { opacity: 0; pointer-events: none; }
body.is-page .entry, body.is-page .media-item { pointer-events: none; }

/* ---------- Inner page ---------- */
/* Sits below the lifted rope; scrolls on its own */
.page {
  position: fixed;
  left: 0; right: 0;
  top: var(--page-top, 140px);
  bottom: 0;
  z-index: 30;
  overflow-y: auto;
  overscroll-behavior: contain; /* reaching its end does not scroll the home page behind it */
  /* the foot of the page leaves room for the bottom bar, which comes into view there */
  padding: var(--page-pad) var(--side) calc(var(--bar-h) + clamp(56px, 10vh, 140px));
  opacity: 0;
  pointer-events: none;
}
/* Visible whenever the rope is off its resting height: it is uncovered as the rope rises
   and covered again as it comes down (clip set by script.js) */
body.is-page .page, body.rope-up .page { opacity: 1; }
body.is-page .page { pointer-events: auto; }

/* Same two columns as the landing page: the title keeps the text column and stays in view while reading,
   the article takes the image column. Narrower windows use one centred column (see below). */
.page-inner {
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  column-gap: var(--col-gap);
  align-items: start;
}
.page-head {
  position: sticky;
  top: 0;
}
.page-eyebrow {
  display: flex;
  gap: 1.1em;
  margin-bottom: 1.2em;
  font-size: var(--fs-label);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.page h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Reading text: sized for long reading, about 70 characters to the line */
.page-body {
  font-size: var(--fs-read);
}
/* Text-only pages: the first line of text shares its baseline with the title
   (0.87 and 1.16 are where the first baseline falls in a line of each typeface, per unit of font size) */
.page-inner.is-text .page-body {
  padding-top: calc(var(--fs-h1) * 0.87 - var(--fs-read) * 1.16);
}
/* ---------- Article ---------- */
/* Made for reading: one column of about 70 characters to the line, centred. Title on top, the text beneath it,
   figures in the run of the text and a little wider than it, references at the foot. */
.article {
  max-width: calc(var(--fs-read) * 35);
  margin: 0 auto;
  font-size: var(--fs-read);
}
.article-head { margin-bottom: 2.6em; }
.article h1 { margin-bottom: 0.55em; }
/* the opening lines, a size up */
.page p.article-lead {
  margin: 0;
  max-width: none;
  font-size: 1.24em;
  line-height: 1.45;
  color: var(--ink);
}
.article p { max-width: none; }
.article h2 {
  margin: 2em 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.article sup { font-size: 0.68em; line-height: 0; padding-left: 0.08em; color: var(--ink-soft); }
/* Images and graphs: plain, with a numbered caption, reaching a little past the text on either side where there is room */
.article figure {
  margin: 2.6em calc(clamp(0px, (100vw - var(--fs-read) * 35 - var(--side) * 2) / 2, 96px) * -1) 2.8em;
}
.article figure img, .figure-blank {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--blank);
}
.article figcaption {
  margin-top: 0.85em;
  font-size: 0.88em;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}
.article figcaption b { font-style: normal; font-weight: 500; color: var(--ink-body); }
.article-refs { margin: 3.4em 0 2.4em; }
.article-refs ol {
  margin: 0;
  padding-left: 1.5em;
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--ink-body);
}
.article-refs li { margin-bottom: 0.7em; padding-left: 0.3em; text-wrap: pretty; }
.article-refs li::marker { color: var(--ink-soft); }

.page p {
  margin: 0 0 1.2em;
  max-width: 36em;
  line-height: 1.6;
  color: var(--ink-body);
  text-wrap: pretty;
}
/* Gone the instant the return to the landing page begins (no fade) */
body:not(.is-page) .page-back { visibility: hidden; }
.page-back {
  display: inline-block;
  margin-top: 1.2em;
  font-size: 0.88em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: max(1px, 0.06em) solid var(--ink);
  padding-bottom: 0.15em;
}

/* ---------- Blog ---------- */
/* The index of posts. The search field, the kinds and topics and the two views stand under the title, in the run of
   the page: they scroll away with it and never lie over the posts. */
.blog { font-size: var(--fs-read); }
.blog-head { margin-bottom: clamp(22px, calc(var(--u) * 2.4), 52px); }
.blog button {
  all: unset;
  cursor: pointer;
}
.blog button:focus-visible, .blog-search:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.blog-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75em 2em;
  align-items: center;
  margin: 0 0 clamp(30px, calc(var(--u) * 3.4), 72px);
}
.blog-search {
  width: min(100%, 22em);
  padding: 0.3em 0;
  border: 0;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.35);
  border-radius: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s;
}
.blog-search::placeholder { font-style: italic; color: var(--ink-soft); }
.blog-search:focus { border-bottom-color: var(--ink); }
.blog-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 2.6em;
  align-items: baseline;
}
.blog-tabs, .blog-topics, .blog-views { display: flex; flex-wrap: wrap; gap: 0.4em 1.5em; }
/* a choice is plain text; the chosen one is dark and underlined */
.blog-tabs button, .blog-topics button, .blog-views button {
  padding: 0.15em 0;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.blog-topics button, .blog-views button { font-style: italic; }
.blog-tabs span { font-size: 0.8em; }
.blog-bar button:hover { color: var(--ink); }
.blog-bar button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.blog-count {
  margin: 0 0 1.6em;
  font-style: italic;
  color: var(--ink-soft);
}
.page .blog-count { max-width: none; }
.blog-count button { color: var(--ink); border-bottom: 1px solid rgb(var(--ink-rgb) / 0.35); }

/* A post, as a card: picture, then kind, date and length, the title, a line of text, the topic */
.post { display: block; color: inherit; text-decoration: none; }
.post-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 1.05em;
  overflow: hidden;
  background: var(--blank);
}
.post-media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.post:hover .post-media img { transform: scale(1.035); }
/* no picture: the date, large, on a panel in the post's own colour */
.post-media.is-plain {
  display: flex;
  align-items: flex-end;
  padding: 1em 1.15em;
  background: color-mix(in srgb, var(--tone) 52%, #fff);
}
.post-day { font-size: 0.95em; line-height: 1.2; color: #15140f; }
.post-day b {
  display: block;
  margin-bottom: 0.04em;
  font-weight: 400;
  font-size: calc(clamp(56px, calc(var(--u) * 6.4), 132px) * var(--ts, 1));
  line-height: 0.9;
  letter-spacing: -0.035em;
}
/* videos carry a play mark */
.post-play {
  position: absolute;
  left: 1em; bottom: 1em;
  width: 2.9em; height: 2.9em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}
.post-play::after {
  content: "";
  position: absolute;
  left: 54%; top: 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 0.5em 0 0.5em 0.82em;
  border-color: transparent transparent transparent #15140f;
}
.post-body { display: block; }
.post-meta { display: block; margin-bottom: 0.4em; font-size: 0.9em; font-style: italic; color: var(--ink-soft); }
.post-title {
  display: block;
  font-weight: 400;
  font-size: calc(clamp(22px, calc(var(--u) * 2.05), 46px) * var(--ts, 1));
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.post:hover .post-title, .post-row:hover .post-title, .post-nav a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.05em);
  text-underline-offset: 0.16em;
}
.post-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.5em;
  line-height: 1.5;
  color: var(--ink-body);
}
.post-topic { display: block; margin-top: 0.6em; font-size: 0.9em; color: var(--ink-soft); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, calc(var(--u) * 25), 420px), 1fr));
  gap: clamp(40px, calc(var(--u) * 4.6), 96px) clamp(24px, calc(var(--u) * 2.8), 60px);
}
/* The newest post leads the page, large, with its picture beside the text */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
  margin-bottom: clamp(48px, calc(var(--u) * 6), 120px);
}
.post-feature .post-media { margin: 0; aspect-ratio: 16 / 10; }
.post-feature .post-title { font-size: calc(clamp(30px, calc(var(--u) * 3.5), 88px) * var(--ts, 1)); line-height: 1.06; letter-spacing: -0.02em; }
.post-feature .post-text { -webkit-line-clamp: 5; margin-top: 0.7em; font-size: 1.08em; }
/* The same posts as a compact list, one line each, for reading down quickly */
.post-list { display: grid; }
.post-row {
  display: grid;
  grid-template-columns: 7.2em 4.4em minmax(0, 1fr) auto;
  column-gap: 1.6em;
  align-items: baseline;
  padding: 0.62em 0;
  color: inherit;
  text-decoration: none;
}
.post-row time, .post-row .post-topic { margin: 0; font-size: 0.9em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.post-kind { font-size: 0.9em; font-style: italic; color: var(--ink-soft); }
.post-row .post-title { font-size: 1.22em; line-height: 1.25; letter-spacing: -0.01em; }
.blog-more {
  display: block;
  width: max-content;
  margin: clamp(44px, calc(var(--u) * 5), 100px) auto 0;
  padding-bottom: 0.15em;
  border-bottom: max(1px, 0.06em) solid var(--ink);
  color: var(--ink);
}
.blog .blog-more { display: block; }
.blog-more span { margin-left: 0.5em; font-style: italic; color: var(--ink-soft); }
.blog > .page-back { margin-top: clamp(48px, calc(var(--u) * 5), 100px); }

/* A post's own page: a video stands above its text; at the foot, the posts either side of it */
.post-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 calc(clamp(0px, (100vw - var(--fs-read) * 35 - var(--side) * 2) / 2, 96px) * -1) 2.6em;
  overflow: hidden;
  background: #15140f;
}
.post-video img, .post-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.post-video .post-play { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; font-size: 1.7em; }
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em 2.4em;
  margin: 3.6em 0 2.2em;
}
.post-nav a { color: inherit; text-decoration: none; }
.post-nav a:last-child { text-align: right; }
.post-nav em { display: block; margin-bottom: 0.25em; font-size: 0.9em; color: var(--ink-soft); }
.post-nav strong { font-weight: 400; font-size: 1.22em; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- People ---------- */
/* The rope falls on this page too (script.js): it hangs down the right side with one knot per person.
   Each person's row starts at a fine line that runs toward their knot, and keeps the two columns of every other page:
   the portrait, in colour, in the title column; role, name and text beside it. */
.page.is-people {
  /* once the rope has fallen (--drop goes from 0 to 1; set by script.js) the page reaches up to the top bar,
     so rows pass under the bar as the sections of the home page do; its content stays where it was */
  top: calc(var(--page-top, 140px) - (var(--page-top, 140px) - var(--header-h, 80px)) * var(--drop, 0));
  padding-top: calc(var(--page-pad) + (var(--page-top, 140px) - var(--header-h, 80px)) * var(--drop, 0));
}
/* in view while it changes places with the home page under the hanging rope */
body.page-slide .page { opacity: 1; }
.people-intro {
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  column-gap: var(--col-gap);
  align-items: start;
  margin-bottom: clamp(56px, 11vh, 150px);
}
.people-intro-body {
  font-size: var(--fs-read);
  padding-top: calc(var(--fs-h1) * 0.87 - var(--fs-read) * 1.16);   /* first line level with the title, as on the text pages */
}
.people-intro-body p { margin-bottom: 0.5em; }
.people-list {
  margin: 0; padding: 0;
  list-style: none;
}
.person {
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  column-gap: var(--col-gap);
  align-items: start;
  padding: clamp(18px, calc(var(--u) * 1.7), 40px) 0 clamp(48px, 9vh, 120px);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.3);
}
/* A portrait is round, like the knot it belongs to, and stands in front of a disc in the person's own colour (--tone) */
.person-portrait, .mini-portrait {
  position: relative;
  isolation: isolate;            /* keeps the disc behind this portrait only */
  display: block;
  aspect-ratio: 1;
}
.person-portrait { width: min(88%, clamp(180px, calc(var(--u) * 20), 300px)); }
.person-portrait::before, .mini-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--tone, var(--blank));
  translate: 12% 9%;
  transition: translate 0.9s var(--ease);
}
.person:hover .person-portrait::before { translate: 15% 11%; }
.person-portrait img, .mini-portrait img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blank);          /* shown until the portrait loads */
}
.person-portrait img { opacity: 0; transition: opacity 0.8s var(--fade); }
.person-portrait img.is-loaded { opacity: 1; }

/* Name large, role in italic beneath it, then the text, then the ways to reach the person as one quiet line */
.people p, .group-list, .person-contact {
  font-family: var(--font-serif);
  font-size: var(--fs-read);
  line-height: 1.6;
}
.person-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(clamp(32px, calc(var(--u) * 3.7), 96px) * var(--ts, 1));
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.person-role {
  display: block;
  margin: 0.35em 0 1.05em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: calc(clamp(18px, calc(var(--u) * 1.65), 38px) * var(--ts, 1));
  line-height: 1.2;
  color: var(--ink-soft);
}
.person-text p { margin: 0; max-width: 33em; }
.person-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 1.7em;
  margin: 1.25em 0 0;
  padding: 0;
  list-style: none;
  font-style: italic;
  color: var(--ink-soft);
}
/* Short lists of label and value: a person's contact details, the facts of the project */
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55em 2em;
  align-items: baseline;
  margin: 2em 0 0;
  max-width: 36em;
  font-size: 0.88em;
}
.facts div { display: contents; }
.facts dt {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd { margin: 0; color: var(--ink-body); overflow-wrap: anywhere; }
/* Links in running text and lists: a fine underline that darkens under the pointer */
.facts a, .page-body p a, .group-list a, .contact-people a, .person-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: max(1px, 0.06em) solid rgb(var(--ink-rgb) / 0.35);
  padding-bottom: 0.1em;
  transition: border-color 0.25s;
}
.facts a:hover, .page-body p a:hover, .group-list a:hover, .contact-people a:hover, .person-contact a:hover { border-bottom-color: var(--ink); }
.page-body .facts { margin-bottom: 2.2em; }
/* An image on a text page: plain, the full width of the column, with a caption beneath */
.page-body figure { margin: 2.2em 0 2.4em; max-width: 46em; }
.page-body figure img { display: block; width: 100%; height: auto; background: var(--blank); }
.page-body figcaption {
  margin-top: 0.8em;
  font-size: 0.88em;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}
.page-body ul:not([class]) {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  max-width: 36em;
  line-height: 1.6;
  color: var(--ink-body);
}
.page-body ul:not([class]) li { margin-bottom: 0.7em; }

/* Boards and collaborators: the title in the title column, the members beside it, each with their affiliation */
.group-list {
  margin: 0; padding: 0;
  list-style: none;
  max-width: 36em;
  /* first name level with the title */
  padding-top: calc(clamp(32px, calc(var(--u) * 3.7), 96px) * 0.87 - var(--fs-read) * 1.087);
}
.group-list li { padding: 0 0 0.85em; line-height: 1.45; }
.group-list span { display: block; font-style: italic; font-size: 0.92em; color: var(--ink-soft); }
.person.is-group .person-name { margin: 0; }
/* A name on the People page leads to that person's own page */
.person-name a, a.person-portrait { color: inherit; text-decoration: none; }
.person-text { font-size: var(--fs-read); }
.person-text .page-back { margin-top: 1.4em; }

/* ---------- Profile ---------- */
/* A person's own page. The head is their row from the People page, larger; below it each part is a row that starts
   at a fine line, title in the title column and content beside it. */
.profile-head, .profile-section {
  display: grid;
  grid-template-columns: minmax(0, var(--col-text)) minmax(0, var(--col-media));
  column-gap: var(--col-gap);
  align-items: start;
}
.profile-head { margin-bottom: clamp(56px, 10vh, 140px); }
.profile-head .person-portrait { width: min(88%, clamp(200px, calc(var(--u) * 23), 330px)); }
.profile-head .person-role { margin-top: 0.5em; }
.profile-section {
  padding: clamp(18px, calc(var(--u) * 1.7), 40px) 0 clamp(48px, 9vh, 120px);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.3);
}
.profile-body {
  max-width: 36em;
  /* first line level with the title */
  padding-top: calc(clamp(32px, calc(var(--u) * 3.7), 96px) * 0.87 - var(--fs-read) * 1.16);
}
.profile-body p { margin: 0 0 1em; max-width: none; }
.profile-list {
  margin: 0; padding: 0;
  list-style: none;
  font-family: var(--font-serif);
  font-size: var(--fs-read);
  line-height: 1.6;
  color: var(--ink-body);
}
.profile-list li { padding: 0 0 0.75em; text-wrap: pretty; }
/* publications: every line after the first is set in, as in a reference list */
.profile-list.is-cited li { padding-left: 1.6em; text-indent: -1.6em; }

/* A page that replaces another comes in softly */
.page.is-swap > * { animation: swap-in 0.6s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Contact ---------- */
/* The form: each field a label and a line to write on. A field that is not right turns red and says why beneath it. */
.contact-form { max-width: 34em; margin-bottom: clamp(56px, 9vh, 120px); }
.field { margin-bottom: 1.5em; }
.field label {
  display: block;
  margin-bottom: 0.1em;
  font-size: 0.92em;
  font-style: italic;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.field:focus-within label { color: var(--ink); }
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  padding: 0.4em 0 0.5em;
  border: 0;
  border-bottom: 1.5px solid rgb(var(--ink-rgb) / 0.3);
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 1.14em;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s;
}
.field textarea { min-height: 7.5em; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 1.6em;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315140f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0.2em center / 0.7em auto;
}
.field input:hover, .field textarea:hover, .field select:hover { border-bottom-color: rgb(var(--ink-rgb) / 0.55); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--ink); }
.field.is-wrong input, .field.is-wrong textarea { border-bottom-color: var(--accent); }
.field-fault { font-size: 0.92em; color: var(--wrong); }
.page p.field-fault { margin: 0.4em 0 0; }
/* a field people never see: only a machine fills it in */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The human check: pull the knot to the end of the rope */
.human { margin: 2.2em 0 2em; }
.page p.human-note { margin: 0 0 0.2em; font-size: 0.92em; font-style: italic; line-height: 1.4; color: var(--ink-soft); }
.human.is-wrong .human-note { color: var(--wrong); }
.human-track {
  position: relative;
  height: 4.2em;
  max-width: 24em;
  touch-action: pan-y;           /* a finger on the rope can still scroll the page; the knot itself is pulled sideways */
  user-select: none;
  -webkit-user-select: none;
}
.human-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.human-rope { fill: none; stroke: var(--ink); stroke-width: calc(var(--rope-w) * 0.7); stroke-linecap: round; }
.human-goal { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 3.6; transition: fill 0.4s; }
.human.is-ok .human-goal { fill: var(--ink); stroke-dasharray: none; }
.human-knot {
  position: absolute;
  left: 0; top: 0;
  width: 2.5em; height: 2.5em;
  margin: -1.25em 0 0 -1.25em;
  padding: 0;
  border: 2px solid rgb(var(--bg-rgb) / 0.9);
  border-radius: 50%;
  background: var(--ink);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 6px 14px -6px rgb(var(--shade-rgb) / 0.5);
}
.human-knot:active { cursor: grabbing; }
.human-knot:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.human.is-ok .human-knot { cursor: default; }
.human-track { cursor: pointer; }   /* the rope can also be clicked along, a step at a time */

.contact-send {
  display: inline-block;
  padding: 0.85em 2em 0.9em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  font: inherit;
  font-size: 1.05em;
  color: var(--bg);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s;
}
.contact-send:hover { opacity: 0.86; }
.contact-send:active { transform: scale(0.97); }
.contact-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact-send:disabled { opacity: 0.5; cursor: default; }
.page p.contact-status { margin: 1em 0 0; font-style: italic; color: var(--ink-soft); }
.contact-done { max-width: 34em; margin-bottom: clamp(56px, 9vh, 120px); }
.page p.contact-done-title { margin: 0 0 0.3em; font-size: calc(clamp(30px, calc(var(--u) * 3.2), 76px) * var(--ts, 1)); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }

/* The team's own addresses, below the form */
.contact-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, calc(var(--u) * 14), 260px), 1fr));
  gap: 2.2em 1.6em;
  margin: 0 0 2.4em;
  padding: 0;
  max-width: 46em;
  list-style: none;
}
.contact-people strong { display: block; font-weight: 400; font-size: 1.16em; line-height: 1.2; letter-spacing: -0.01em; }
.contact-people em { display: block; margin: 0.2em 0 0.45em; font-size: 0.98em; line-height: 1.3; color: var(--ink-soft); }
.contact-people a { font-size: 0.92em; overflow-wrap: anywhere; }

/* ---------- Controls ---------- */
.controls {
  position: absolute;
  left: var(--side);
  bottom: clamp(22px, calc(var(--u) * 2.4), 56px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(4px, calc(var(--u) * 0.5), 12px);
  color: var(--ink-soft);
}
/* Kept quiet: small grey marks with no ring or ground, which darken under the pointer or the keyboard */
.ctrl {
  width: var(--ctrl); height: var(--ctrl);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: calc(var(--ctrl) * 0.5);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.ctrl:hover, .ctrl:focus-visible { color: var(--ink); }
.ctrl:active { transform: scale(0.9); }
.counter {
  margin: 0 0.3em;
  font-family: var(--font-serif);
  font-size: calc(clamp(13px, calc(var(--u) * 0.95), 19px) * var(--ts, 1));
  font-variant-numeric: tabular-nums;
}
.counter .sep { margin: 0 0.3em; }

/* ---------- Bottom bar ---------- */
/* Sits at the foot of whatever is being read: the home page, or an opened page. It is fixed to the window's bottom edge
   and script.js keeps it pushed down out of view by as much as there is still left to scroll, so it comes up with the
   last of the page exactly as if it stood at its end. */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: var(--bar-h);
  /* Two lines on the left, the links and under them the copyright line; the partner logos stand on the right,
     centred on the bar's height. Plain white ground: the NWO logo in colour may only stand on white. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 2em;
  row-gap: 0.5em;
  padding: 0 var(--side);
  background: var(--bg);
  font-size: calc(clamp(14px, calc(var(--u) * 0.45 + 8.5px), 19px) * var(--ts, 1));
  color: var(--ink-soft);
}
/* The NWO mark is portrait, the EUR mark landscape; each keeps clear space around it (NWO asks for half its own width) */
.footer-logos {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  gap: clamp(30px, calc(var(--u) * 3), 64px);
}
.footer-logos img { display: block; width: auto; }
.logo-eur { height: calc(var(--logo-h) * 0.5625); }
.logo-nwo { height: calc(var(--logo-h) * 0.708); }

.copyright { grid-column: 1; grid-row: 2; font-size: 0.88em; }
.footer-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: clamp(24px, calc(var(--u) * 2.4), 56px);
  font-size: 1.14em;
  color: var(--ink);
}
.footer-nav a {
  position: relative;
  padding: 3px 0;
  color: inherit;
  text-decoration: none;
}
/* Underline grows in on hover and stays on the link whose page is open */
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Article pages on narrower windows: one centred reading column ---------- */
@media (max-width: 999px) {
  .page-inner {
    display: block;
    max-width: calc(var(--fs-read) * 36);
    margin: 0 auto;
  }
  .page-head { position: static; margin-bottom: clamp(22px, 3.4vw, 36px); }
  .page-inner.is-text .page-body { padding-top: 0; }
}
/* Too little height to keep the title pinned */
@media (max-height: 560px) {
  .page-head { position: static; }
}

/* ---------- Folded menu ---------- */
/* The menu folds into the three-line button wherever its words do not fit beside the site's name: on phones, on
   narrower tablets, and with large text (script.js measures this and sets .nav-fold on <html>).
   Opened, it is a full-window panel. */
html.nav-probe .brand, html.nav-probe .site-nav { flex: none; white-space: nowrap; }
html.nav-probe .site-nav, html.nav-probe .site-nav a { transition: none !important; }
html.nav-fold .site-header { align-items: center; }
html.nav-fold .menu-toggle { display: flex; position: relative; z-index: 70; }
html.nav-fold .brand { position: relative; z-index: 70; }   /* the site's name stays in view over the open menu */
html.nav-fold .site-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 3vh, 28px);
  padding: var(--header-h, 64px) var(--side) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--fade), visibility 0s 0.4s;
}
html.nav-fold .site-nav a {
  font-family: var(--font-serif);
  font-size: calc(clamp(26px, 4.6vh, 40px) * var(--ts, 1));
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--fade), transform 0.5s var(--fade);
}
html.nav-fold body.menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity 0.4s var(--fade); }
/* the open menu covers the rope */
html.nav-fold body.menu-open .rope, html.nav-fold body.menu-open .carousel { z-index: 40; }
html.nav-fold body.menu-open .site-nav a { opacity: 1; transform: none; }
html.nav-fold body.menu-open .site-nav a:nth-child(2) { transition-delay: 0.05s; }
html.nav-fold body.menu-open .site-nav a:nth-child(3) { transition-delay: 0.10s; }
html.nav-fold body.menu-open .site-nav a:nth-child(4) { transition-delay: 0.15s; }
html.nav-fold body.menu-open .site-nav a:nth-child(5) { transition-delay: 0.20s; }
html.nav-fold body.menu-open .site-nav a:nth-child(6) { transition-delay: 0.25s; }
html.nav-fold body.menu-open .site-nav a:nth-child(7) { transition-delay: 0.30s; }
html.nav-fold body.menu-open .site-nav a:nth-child(8) { transition-delay: 0.35s; }
/* a low window (a phone held sideways): the eight words stand in two columns */
@media (max-height: 560px) {
  html.nav-fold .site-nav {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    grid-template-columns: repeat(2, max-content);
    align-content: center;
    justify-content: start;
    justify-items: start;
    gap: 12px clamp(40px, 12vw, 140px);
  }
  html.nav-fold .site-nav a { font-size: calc(clamp(22px, 7vh, 30px) * var(--ts, 1)); }
}

/* ---------- Tablets held upright ---------- */
/* The same composition as on a desktop. The first screen is tall here, so the highlight's text gets a little more of
   the width and the print may stand taller. */
@media (min-width: 721px) and (max-width: 1100px) and (min-height: 561px) and (orientation: portrait) {
  :root { --col-text: 5fr; --col-media: 7fr; --col-gap: clamp(24px, 3.6vw, 44px); }
  .section-body, .people-intro-body, .person-text, .profile-body { overflow-wrap: break-word; }
}

/* ---------- Phones ---------- */
/* Narrow windows, and low ones (a phone held sideways). The rope does not fall or rise here: it stays under the top
   bar, with its points, on every page (script.js). Everything else is one column that scrolls beneath it. */
@media (max-width: 720px), (max-height: 560px) {
  :root {
    --bar-h: 188px;
    --logo-h: 76px;
    --ctrl: 32px;
    --frame-off: 8px;
    --fs-read: calc(17px * var(--ts, 1));
    --fs-h1: calc(clamp(30px, 8.4vw, 42px) * var(--ts, 1));
    --fs-label: calc(11px * var(--ts, 1));
  }
  .site-header { padding: 18px var(--side); }
  .brand { font-size: calc(18px * var(--ts, 1)); }
  /* The top bar and the rope under it stand on the room's own ground, which ends softly just below the rope:
     whatever scrolls up goes out of sight there */
  .site-header::before {
    position: fixed;
    inset: 0;
    opacity: 1;
    border: 0;
    background: var(--room);
    background-color: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--page-top, 112px) - 6px), transparent calc(var(--page-top, 112px) + 16px));
    mask-image: linear-gradient(to bottom, #000 calc(var(--page-top, 112px) - 6px), transparent calc(var(--page-top, 112px) + 16px));
  }

  /* The highlight: the print, then its kind, title and text, and more of the article it leads to.
     It is as tall as it needs to be; the sections follow it. */
  .stage {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: calc(var(--page-top, 112px) + 20px) var(--side) 0;
  }
  .hero { display: contents; }
  .media {
    grid-area: 1 / 1;
    container-type: normal;
    display: block;
    position: relative;
    align-self: start;
    aspect-ratio: 3 / 2;
    margin: 0 var(--frame-off) calc(var(--frame-off) + 20px) 0;   /* the colour plane ends at the page's margin */
  }
  .media-item {
    position: absolute;
    inset: 0;
    width: auto; height: auto;
    aspect-ratio: auto;
    max-height: none;
    transform: none;
  }
  .content { grid-area: 2 / 1; }
  .entry { transform: none; }
  .entry-eyebrow {
    align-items: center;
    min-height: var(--ctrl);
    margin-bottom: 4px;
    gap: 14px;
  }
  .entry-eyebrow span:first-child { display: none; }   /* the counter beside it gives the number */
  .entry h2 {
    margin-bottom: 0.5em;
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }
  .entry p {
    max-width: none;
    font-size: var(--fs-read);
    line-height: 1.6;
  }
  .entry-body > p { font-size: calc(19px * var(--ts, 1)); line-height: 1.5; color: var(--ink); }
  .entry-more { display: block; margin-top: 1em; }
  .entry-more p { color: var(--ink-body); }
  /* the second paragraph trails off after three lines: the article goes on behind the link */
  .entry-more p + p {
    margin-top: 1em;
    max-height: 4.8em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 8%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 8%, transparent 96%);
  }
  .entry-link { margin-top: 0.5em; font-size: calc(16px * var(--ts, 1)); border-bottom-width: 1px; }

  /* The rope's points are tapped and the highlight is swiped, so the arrows go; the counter and the pause mark stand
     on the line of the highlight's kind, at its right end */
  .controls {
    position: static;
    grid-area: 2 / 1;
    align-self: start;
    justify-self: end;
    z-index: 3;
    height: var(--ctrl);
    gap: 2px;
    margin-right: -8px;
  }
  .ctrl.prev, .ctrl.next { display: none; }
  .counter { font-size: calc(14px * var(--ts, 1)); }
  .scroll-cue { display: none; }

  /* Sections: one column */
  .sections { padding: 64px 0 calc(var(--bar-h) + 32px); }
  .section { display: block; padding: 16px 0 64px; }
  .section:last-child { padding-bottom: 40px; }
  .section-title { margin-bottom: 0.5em; }
  .section-body { padding-top: 0; }
  .mini-people { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1.6em 1em; }
  .mini-posts { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 1.6em 1em; }
  .mini-portrait { width: 84px; }

  /* Pages reach up under the top bar and the rope, as the home page does, and scroll beneath them */
  .page, .page.is-people {
    top: 0;
    padding: calc(var(--page-top, 112px) + 22px) var(--side) calc(var(--bar-h) + 56px);
  }
  .home.is-swap > * { animation: swap-in 0.6s var(--ease) both; }
  .page-head { position: static; margin-bottom: 22px; }
  .page-eyebrow { gap: 14px; margin-bottom: 12px; }
  .page h1 { line-height: 1.08; letter-spacing: -0.015em; }
  .page-inner.is-text .page-body { padding-top: 0; }
  .page p { line-height: 1.65; }
  .article-head { margin-bottom: 2em; }
  .article figure img, .figure-blank { aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.1em 0; }
  .facts dd { margin-bottom: 0.9em; }

  /* Blog: one column; the list view stacks date and kind above the title */
  .blog-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 0.9em 1.2em; }
  .blog-search { width: 100%; }
  .blog-filters { gap: 0.6em 1.6em; }
  .blog-tabs, .blog-topics, .blog-views { gap: 0.3em 1.3em; }
  .blog-tabs button, .blog-topics button, .blog-views button { padding: 0.3em 0; }
  .post-feature { display: block; }
  .post-feature .post-media { margin-bottom: 1.05em; aspect-ratio: 3 / 2; }
  .post-feature .post-title { font-size: calc(30px * var(--ts, 1)); }
  .post-title { font-size: calc(24px * var(--ts, 1)); }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 44px 24px; }
  .post-row { grid-template-columns: auto 1fr; column-gap: 0.9em; row-gap: 0.1em; padding: 0.7em 0; }
  .post-row .post-title { grid-column: 1 / -1; }
  .post-row .post-topic { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }

  /* People: the portrait above the text */
  .people-intro { display: block; margin-bottom: 44px; }
  .people-intro-body { padding-top: 0; margin-top: 14px; }
  .person, .profile-section, .profile-head { display: block; }
  .person, .profile-section { padding: 16px 0 56px; }
  .profile-head { margin-bottom: 48px; }
  .profile-body { padding-top: 0; margin-top: 14px; }
  .person-portrait, .profile-head .person-portrait { width: min(56%, 220px); margin-bottom: 40px; }
  .person-name { font-size: calc(clamp(30px, 8vw, 38px) * var(--ts, 1)); }
  .person-role { font-size: calc(19px * var(--ts, 1)); }
  .person-contact { gap: 0.15em 1.5em; }
  .person-contact a { display: inline-block; padding: 0.2em 0; overflow-wrap: anywhere; }
  .group-list { padding-top: 0; margin-top: 14px; }
  .profile-list.is-cited li { overflow-wrap: break-word; }

  /* Contact */
  .contact-people { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .human-track { max-width: none; }
  .contact-send { width: 100%; text-align: center; }

  /* Bottom bar: the partner logos first, then the links, then the copyright line */
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0;
    font-size: calc(14px * var(--ts, 1));
  }
  .footer-logos { grid-column: 1; grid-row: 1; justify-self: start; gap: 30px; margin-bottom: 14px; }
  .footer-nav { grid-row: 2; gap: 26px; }
  .footer-nav a { padding: 6px 0; }
  .copyright { grid-row: 3; margin-top: 4px; }

  .a11y { bottom: calc(var(--foot-up, 0px) + 14px); }
}

/* A phone held sideways, or any low, wide window: the highlight's text and its print stand side by side, and the
   bottom bar goes back to one line with the logos at its right end */
@media (max-height: 560px) and (min-width: 600px) {
  :root { --bar-h: 92px; --logo-h: 62px; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); align-items: start; }
  .media { grid-area: 1 / 2; margin-bottom: var(--frame-off); }
  .content, .controls { grid-area: 1 / 1; }
  .sections { padding-top: 48px; }
  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 0.35em;
  }
  .footer-logos { grid-column: 2; grid-row: 1 / 3; justify-self: end; margin: 0; }
  .footer-nav { grid-row: 1; }
  .copyright { grid-row: 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page.is-swap > * { animation: none; }
  .media-item img, .media-item.is-active img { transform: none; transition: opacity 0.8s var(--fade); }
}

/* ---------- Scroll cue ---------- */
/* At the foot of the first screen, in the middle. It says "there is more below" without a word, by three things the
   eye does on its own:
   - it follows a line past the edge of a frame: the thread does not end, it runs off the bottom of the window;
   - it reads a falling thing as "down": the knot gathers speed like something dropped, and leaves through the edge;
   - it notices a movement that starts, not one that never stops: the knot falls, then there is a rest before the next.
   It fades as soon as the page is scrolled (--fall). */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 40;
  translate: -50% 0;
  width: 44px;
  height: clamp(54px, 7.4vh, 96px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;              /* the knot leaves through the bottom edge */
  opacity: calc(1 - var(--fall, 0) * 5);
  transition: opacity 0.3s var(--ease);
  animation: cue-arrive 1.2s var(--fade) 1.4s both;   /* it comes in after the page has settled */
}
body.is-page .scroll-cue { opacity: 0; pointer-events: none; }
/* the thread: it begins out of nothing and is at its strongest where it meets the edge */
.scroll-cue-thread {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  margin-left: -0.75px;
  background: linear-gradient(to bottom, rgb(var(--ink-rgb) / 0), rgb(var(--ink-rgb) / 0.42) 60%, rgb(var(--ink-rgb) / 0.42));
  transition: filter 0.3s;
}
.scroll-cue-thread::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  animation: cue-fall 3.6s linear 2.6s infinite;
}
@keyframes cue-arrive { from { opacity: 0; } }
/* one fall takes just over a second, then two seconds of rest */
@keyframes cue-fall {
  0% { top: 8%; opacity: 0; animation-timing-function: var(--fade); }
  9% { top: 8%; opacity: 1; animation-timing-function: cubic-bezier(0.6, 0, 1, 0.5); }   /* held for a moment, then let go */
  36% { top: 112%; opacity: 1; }
  37%, 100% { top: 112%; opacity: 0; }
}
@media (hover: hover) {
  .scroll-cue:hover .scroll-cue-thread { filter: contrast(3); }
}
.scroll-cue:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .scroll-cue-thread::after { animation: none; top: 62%; opacity: 1; } }
html[data-motion="off"] .scroll-cue-thread::after { top: 62%; opacity: 1; }

/* ---------- Pause ---------- */
/* Beside the arrows: stops the highlights from moving on by themselves, and starts them again */
.ctrl.pause { position: relative; font-size: 0; }
.ctrl.pause::before, .ctrl.pause::after {
  content: "";
  position: absolute;
  top: 34%; bottom: 34%;
  width: 7%;
  background: currentColor;
}
.ctrl.pause::before { left: 39%; }
.ctrl.pause::after { right: 39%; }
/* stopped: the two bars become a play mark */
.ctrl.pause[aria-pressed="true"]::before {
  left: 41%; top: 32%; bottom: auto;
  width: 0; height: 0;
  background: none;
  border-style: solid;
  border-width: calc(var(--ctrl) * 0.16) 0 calc(var(--ctrl) * 0.16) calc(var(--ctrl) * 0.25);
  border-color: transparent transparent transparent currentColor;
}
.ctrl.pause[aria-pressed="true"]::after { display: none; }

/* ---------- Accessibility menu ---------- */
/* A round button in the bottom right corner, above the bottom bar when that is in view (--foot-up, set by script.js).
   It opens a small panel of choices; each choice is kept for the next visit. */
.a11y {
  position: fixed;
  right: var(--side);
  bottom: calc(var(--foot-up, 0px) + clamp(14px, calc(var(--u) * 1.6), 28px));
  z-index: 70;
  font-size: calc(16px * var(--ts, 1));
}
.a11y-toggle {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgb(var(--shade-rgb) / 0.55);
}
.a11y-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.a11y-panel {
  position: absolute;
  right: 0; bottom: calc(100% + 12px);
  width: min(21em, calc(100vw - var(--side) * 2));
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - var(--foot-up, 0px) - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.3em 1.4em 1.4em;
  border: 1px solid rgb(var(--ink-rgb) / 0.25);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
  box-shadow: 0 24px 60px -20px rgb(var(--shade-rgb) / 0.45);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 0.8em; font-weight: 400; font-size: 1.5em; letter-spacing: -0.015em; }
.a11y-group { margin: 0 0 1em; padding: 0; border: 0; }
.a11y-group legend { padding: 0; margin-bottom: 0.4em; font-style: italic; color: var(--ink-soft); }
.a11y-choice { display: flex; gap: 0.5em; }
.a11y-panel button {
  min-height: 40px;
  padding: 0.45em 0.9em;
  border: 1.5px solid rgb(var(--ink-rgb) / 0.3);
  border-radius: 999px;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.a11y-choice button { flex: 1; }
.a11y-panel button:hover { border-color: var(--ink); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.a11y-switches { display: grid; gap: 0.5em; margin-bottom: 1.1em; }
.a11y-switches button { text-align: left; }
.a11y-switches button::after { content: "Off"; float: right; margin-left: 1em; font-style: italic; opacity: 0.75; }
.a11y-switches button[aria-pressed="true"]::after { content: "On"; }
.a11y-reset { border-color: transparent !important; text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Reader's choices (set on <html> by the accessibility menu) ---------- */
/* Text size: every type size is multiplied by --ts */
html[data-text="2"] { --ts: 1.15; }
html[data-text="3"] { --ts: 1.3; }
/* More contrast: no soft greys; lines and edges darker */
html[data-contrast="more"][data-contrast] { --ink-soft: var(--ink); --ink-body: var(--ink); --line: rgb(var(--ink-rgb) / 0.55); }   /* also over the dark mode's greys */
html[data-contrast="more"] .section, html[data-contrast="more"] .person, html[data-contrast="more"] .profile-section { border-top-color: var(--ink); }
/* Wider text spacing, to the measures WCAG names: lines 1.5, paragraphs 2, letters 0.12, words 0.16 */
html[data-spacing="wide"] body * { line-height: 1.6 !important; letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }
html[data-spacing="wide"] p, html[data-spacing="wide"] li { margin-bottom: 2em !important; }
html[data-spacing="wide"] .post-text { -webkit-line-clamp: unset; }
/* Underlined links */
html[data-links="on"] a { text-decoration: underline; text-decoration-thickness: max(1px, 0.06em); text-underline-offset: 0.16em; }
/* A plain typeface instead of the serif */
html[data-font="plain"] { --font-serif: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
/* No movement: nothing animates (script.js also stops the rope's drift, the glides and the highlights moving on) */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

/* ---------- Dark mode ---------- */
/* The same site with paper and ink changed over: white becomes black, black becomes white. Photographs, the colour
   discs and anything written on them keep their own colours. */
html[data-theme="dark"] {
  --bg-rgb: 0 0 0;
  --ink-rgb: 242 241 236;
  --ink-body: #dad8d0;
  --ink-soft: #aeaba1;
  --room-a: #000000; --room-b: #0b0b09; --room-c: #1a1916;
  --blank: #2b2a26;
  --wrong: #f2937c;
  --accent: #f2937c;
  color-scheme: dark;
}
/* The room at night: black, with one soft light falling from above the middle of the window. No floor, no grey. */
html[data-theme="dark"] {
  --room:
    radial-gradient(120vmax 78vmax at 50% -18%, rgb(255 250 240 / 0.11) 0%, rgb(255 250 240 / 0.05) 34%, rgb(255 250 240 / 0) 68%),
    #000;
}
/* The Erasmus signature turns white; the NWO logo, which may only stand on white, keeps a white field with its clear space */
html[data-theme="dark"] .logo-eur { filter: invert(1); }
html[data-theme="dark"] .logo-nwo {
  box-sizing: content-box;
  padding: calc(var(--logo-h) * 0.2);
  background: #fff;
}
html[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f1ec' stroke-width='1.4'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .field select option { background: #000; color: #f2f1ec; }

/* ---------- Under the pointer ---------- */
/* Whatever can be clicked answers the pointer plainly, with no grey ground behind it:
   a knot under a menu word, an arrow beside a link that leads on, a darker line under a link in text.
   Only where there is a pointer that can hover. */
@media (hover: hover) {
  /* The menu and the site's name: a small knot appears under the word */
  .site-nav a, .brand a { position: relative; }
  .site-nav a::after, .brand a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -0.3em;
    width: 0.38em; height: 0.38em;
    margin-left: -0.19em;
    border-radius: 50%;
    background: var(--ink);
    scale: 0;
    transition: scale 0.3s var(--ease);
  }
  .brand a::after { bottom: -0.38em; width: 0.26em; height: 0.26em; margin-left: -0.13em; }
  .site-nav a:hover::after, .brand a:hover::after { scale: 1; }
  .site-nav a:hover { color: var(--ink); }

  /* Links that lead on (More, Home, Contact the team…): the line under them runs on and an arrow arrives on it */
  .entry-link, .page-back, .section-links a {
    position: relative;
    transition: padding-right 0.35s var(--ease);
  }
  .entry-link::after, .page-back::after, .section-links a::after {
    content: "\2192";
    position: absolute;
    right: 0; top: 0;
    opacity: 0;
    translate: -0.5em 0;
    transition: opacity 0.25s, translate 0.35s var(--ease);
  }
  .entry-link:hover, .page-back:hover, .section-links a:hover,
  .hero:has(.entry.is-active:hover, .media-item.is-active:hover) .entry.is-active .entry-link { padding-right: 1.35em; }
  .entry-link:hover::after, .page-back:hover::after, .section-links a:hover::after,
  .hero:has(.entry.is-active:hover, .media-item.is-active:hover) .entry.is-active .entry-link::after { opacity: 1; translate: 0 0; }
  /* A person's name: the arrow arrives after it */
  .person-name a::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.3em;
    font-size: 0.62em;
    opacity: 0;
    translate: -0.4em 0;
    transition: opacity 0.25s, translate 0.35s var(--ease);
  }
  .person-name a:hover::after, .person:has(a.person-portrait:hover) .person-name a::after { opacity: 1; translate: 0 0; }
  /* Links in running text and lists: their line turns dark and a little heavier */
  .facts a:hover, .page-body p a:hover, .group-list a:hover, .contact-people a:hover, .person-contact a:hover,
  .blog-count button:hover { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); color: var(--ink); }
  .blog-more:hover { box-shadow: 0 1px 0 var(--ink); }

  /* The highlight in view, pointed at on its text or its photo: its title is underlined and the colour plane
     steps out further (and its knot swells, and its link gets the arrow: script.js and the rule above) */
  .hero:has(.entry.is-active:hover, .media-item.is-active:hover) .entry.is-active h2 {
    text-decoration: underline;
    text-decoration-thickness: max(1.5px, 0.04em);
    text-underline-offset: 0.12em;
  }
  .hero:has(.entry.is-active:hover, .media-item.is-active:hover) .media-item.is-active::before {
    translate: calc(var(--frame-off) * 1.9) calc(var(--frame-off) * 1.9);
  }

  /* Cards and portraits */
  .post .post-media { transition: box-shadow 0.4s var(--ease); }
  .post:hover .post-media { box-shadow: 0 0 0 2px var(--ink); }
  .post-more:hover .post-media { box-shadow: none; }
  a.person-portrait img { transition: opacity 0.8s var(--fade), scale 0.6s var(--ease); }
  a.person-portrait:hover img { scale: 1.04; }

  /* Buttons: they move or grow, with no ground behind them */
  .ctrl { transition: color 0.3s, translate 0.3s var(--ease), scale 0.3s var(--ease); }
  .ctrl.prev:hover { translate: -4px 0; }
  .ctrl.next:hover { translate: 4px 0; }
  .ctrl.pause:hover { scale: 1.25; }
  .contact-send { transition: transform 0.3s var(--ease), opacity 0.25s, box-shadow 0.3s; }
  .contact-send:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(var(--shade-rgb) / 0.6); }
  .a11y-toggle { transition: scale 0.3s var(--ease); }
  .a11y-toggle:hover { scale: 1.1; }
  .human-knot { transition: scale 0.3s var(--ease); }
  .human:not(.is-ok) .human-knot:hover { scale: 1.14; }
  .blog-bar button:hover { border-bottom-color: rgb(var(--ink-rgb) / 0.4); }
  .a11y-panel button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .menu-toggle:hover span { background: var(--ink-soft); }
}
