/* Leading Across Perspectives — styles */

:root {
  --ink: #16181d;
  --muted: #5b6270;
  --line: #dfe2e8;
  --soft: #f1f3f7;
  --paper: #fff;
  /* One colour family: blue for anything you can click, deep blue surfaces where the project itself speaks, a pale wash behind pictures */
  --blue: #2242b3;
  --navy: #0f1a4d;
  --wash: #f3f6fd;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 3.25rem;
  --ease: cubic-bezier(0.65, 0, 0.2, 1);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 0.95rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
h1:focus { outline: none; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Skip link: the first stop for keyboard users, hidden until focused */
.skip {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 30;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-250%);
}
.skip:focus { transform: none; outline-color: #fff; outline-offset: -5px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Header: a glass bar that floats over the pages. Light by default, dark while the home photo is behind it */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.82); color: var(--ink);
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.45s, border-color 0.45s, color 0.45s;
}
.header.is-over-hero { background: rgb(15 26 77 / 0.64); color: #fff; border-bottom-color: rgb(255 255 255 / 0.14); }
.header.is-open { background: var(--paper); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter);
}
.header :focus-visible { outline-color: currentColor; }
.wordmark { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.025em; color: inherit; text-decoration: none; white-space: nowrap; }
.nav { position: relative; display: flex; align-items: center; gap: clamp(1.1rem, 2.3vw, 2.1rem); height: 100%; }
.nav a { padding: 0.4rem 0; font-size: 0.8125rem; color: inherit; text-decoration: none; opacity: 0.78; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.is-over-hero .nav a { opacity: 0.9; }
.is-over-hero .nav a:hover, .is-over-hero .nav a[aria-current="page"] { opacity: 1; }
/* One line that glides to the current page */
.nav__marker { position: absolute; left: 0; bottom: 0.8rem; width: 0; height: 1.5px; border-radius: 1px; background: currentColor; }
.nav__marker.is-ready { transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.menu-toggle { display: none; }

/* Stage and pages: the stage is the camera, each page a face in 3D space */
.stage {
  position: fixed; inset: 0;
  overflow: hidden;
  perspective: max(1200px, 110vw);
  background: #f5f7fb; /* the space between pages; only seen while they move */
}
.page {
  position: absolute; inset: 0;
  overflow: hidden auto; overscroll-behavior: contain;
  scroll-padding: calc(var(--header-h) + 1rem) 0 5.5rem;
  background: var(--paper);
  visibility: hidden;
}
.page.is-active { visibility: visible; }
.page.is-arriving { z-index: 1; }
.stage.is-moving { pointer-events: none; }
/* While pages move they get a hairline edge and a soft shadow, so each reads as a face of a block */
.stage.is-moving .page { will-change: transform, opacity; box-shadow: 0 0 0 1px rgb(15 26 77 / 0.05), 0 1rem 3rem rgb(15 26 77 / 0.08); }

.wrap {
  max-width: 76rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 6rem;
}

/* Every page opens on the same deep-blue band with its title and one line of introduction.
   The band is equally tall everywhere, so while one page travels or turns to the next the two
   bands line up as a single stripe. Overviews are blue; detail pages are a shade darker,
   like the next face of the same block */
.masthead {
  --band: 34 66 179; /* the blue of --blue, as numbers, so it can fade */
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; min-height: clamp(17rem, 42vh, 24rem);
  padding-top: var(--header-h);
  background: rgb(var(--band)); color: #fff;
}
.masthead--detail { --band: 15 26 77; }
/* A photo fills the right part of the band and dissolves into the blue towards the text */
.masthead__photo { position: absolute; top: 0; right: 0; width: 44%; height: 100%; object-fit: cover; }
.masthead:has(.masthead__photo)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgb(var(--band)) 58%, rgb(var(--band) / 0.55) 74%, rgb(var(--band) / 0.18));
}
.masthead__inner { position: relative; z-index: 1; width: 100%; max-width: 76rem; margin: 0 auto; padding: 2rem var(--gutter) clamp(2rem, 4.5vw, 3.5rem); }
.masthead:has(.masthead__photo) h1 { max-width: 62%; }
.masthead h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.masthead--detail h1 { max-width: 17em; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.masthead .lead { max-width: 36em; margin: 1rem 0 0; color: rgb(255 255 255 / 0.86); }
.masthead a { color: inherit; }
.masthead :focus-visible { outline-color: #fff; }
.masthead + .section { border-top: 0; }

/* Shared pieces */
.lead { margin-top: 1.25rem; }
.lead { max-width: 38em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--muted); }
.meta { margin: 0; font-size: 0.875rem; color: var(--muted); }

.button {
  display: inline-block; padding: 0.65rem 1.2rem;
  background: var(--blue); color: #fff;
  border: 1.5px solid var(--blue); border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}
.button:active, .chip:active, .hero__nav button:active, .a11y button:active { transform: scale(0.96); }
.button:hover { background: #1a3391; border-color: #1a3391; }
.button--outline { background: none; color: var(--blue); }
.button--outline:hover { color: #fff; }

/* Blog items: thumbnail, type and date, title, summary */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 3rem 1.75rem; }
.post { position: relative; }
.post__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 1rem; border-radius: 12px; background: var(--soft); }
.post__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1); }
.post:hover .post__thumb img { transform: scale(1.04); }
.post__thumb--video::after {
  content: ""; position: absolute; left: 0.9rem; bottom: 0.9rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgb(0 0 0 / 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6v12l10-6z'/%3E%3C/svg%3E") center / 55% no-repeat;
}
.post h3 { font-size: 1.2rem; margin: 0.35rem 0 0.5rem; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h3 a { color: var(--blue); }
.post > p:last-child { margin: 0; color: var(--muted); }

/* People: .photo is a stand-in until real portraits arrive */
.photo {
  aspect-ratio: 4 / 5; border-radius: 12px;
  background:
    radial-gradient(circle at 50% 38%, var(--photo-ink, #cfd3dc) 0 16%, transparent 16.5%),
    radial-gradient(ellipse 40% 28% at 50% 100%, var(--photo-ink, #cfd3dc) 0 99%, transparent 100%),
    var(--photo-bg, var(--soft));
}
img.photo { display: block; width: 100%; object-fit: cover; object-position: center 20%; }

/* People page: a list, portrait on the left, short bio and contact details on the right */
.person {
  display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr; gap: clamp(1.5rem, 4.5vw, 4rem); align-items: start;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--line);
}
.person:first-child { padding-top: 0; border-top: 0; }
.person h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.1; }
.person__title { margin: 0.35rem 0 1.1rem; color: var(--muted); }
.person > div > p { max-width: 46em; }
.person .lines { margin: 1.5rem 0 1.75rem; }
.person .line, .prose .lines--wide .line { padding: 0.9rem 0; }
.person .line h3 { font-size: 1.05rem; }

/* Blog search and filter */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.search { flex: 1 1 18rem; }
.search input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1px solid #7c8391; border-radius: 8px;
  background: none; font: inherit; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:hover { border-color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.chip { min-width: 1.5rem; padding: 0.3rem 0; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 0.95rem; color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.12s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }
#blog-count { margin-bottom: 2rem; }

/* Home: full-width highlights. The frame stays put; each picture glides in behind a moving edge */
.hero {
  position: relative; height: clamp(32rem, 88dvh, 58rem);
  background: var(--navy); color: #fff;
  touch-action: pan-y;
}
.slide { position: absolute; inset: 0; overflow: hidden; }
/* Hide by exception, so slides still inherit "hidden" when the home page itself is hidden */
.slide:not(.is-active, .is-leaving) { visibility: hidden; }
.slide.is-active { z-index: 1; }
.slide__media {
  position: absolute; inset: 0;
  translate: calc(var(--px, 0) * -1.5%) calc(var(--py, 0) * -1.5%); scale: 1.04; /* --px, --py: pointer position, -1 to 1 */
  transition: translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slide__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(15 26 77 / 0.92), rgb(20 36 108 / 0.66) 45%, rgb(34 66 179 / 0) 82%),
    linear-gradient(to right, rgb(15 26 77 / 0.35), rgb(15 26 77 / 0) 60%);
}
.slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); }
.slide.is-active img, .slide.is-leaving img { animation: drift 18s cubic-bezier(0.2, 0, 0.3, 1) both; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.slide__text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 76rem; margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.75rem, 6vw, 4.5rem);
}
.slide h2 {
  max-width: 11.5em;
  font-size: clamp(2.25rem, 5.6vw, 5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.03;
  text-wrap: balance;
}
.slide h2, .slide p { text-shadow: 0 1px 1.5rem rgb(15 26 77 / 0.55); }
.slide h2 a { color: inherit; text-decoration: none; }
.slide h2 a::after { content: ""; position: absolute; inset: 0; }
.slide p {
  max-width: 32em; margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.45; color: rgb(255 255 255 / 0.86);
  text-wrap: pretty;
}
/* Slideshow controls: three round glass buttons */
.hero__nav {
  position: absolute; z-index: 3;
  right: max(var(--gutter), calc((100% - 76rem) / 2 + var(--gutter))); bottom: clamp(2.25rem, 5vw, 4rem);
  display: flex; gap: 0.5rem;
}
.hero__nav button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: #fff; background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 0.2s, transform 0.12s;
}
.hero__nav button:hover { background: rgb(255 255 255 / 0.3); }
.hero__nav svg { grid-area: 1 / 1; width: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__nav .icon-play { fill: currentColor; stroke-width: 1.5; }
.hero__nav .icon-play, .hero__nav .is-stopped .icon-pause { visibility: hidden; }
.hero__nav .is-stopped .icon-play { visibility: visible; }

/* The timer: a wire of frosted glass, the same material as the top bar, along the whole lower edge
   of the hero. The wire is drawn from the left as time goes by; the ring marks where it has got to */
.fuse { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 0.5rem; transform: translateY(50%); pointer-events: none; overflow-x: clip; }
.fuse::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(255 255 255 / 0.22); } /* the way ahead */
.fuse__rest { /* the wire */
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.26));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -1px 0 rgb(255 255 255 / 0.16), 0 2px 12px rgb(15 26 77 / 0.22);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.fuse__burn { position: absolute; inset: 0; } /* slides across; its left edge is the present moment */
.fuse__burn i { /* the marker: a fine needle of light that crosses the wire and fades out at both ends */
  position: absolute; left: 0; top: 50%; width: 2px; height: 2.75rem; margin: -1.375rem 0 0 -1px;
  background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / 0.95) 36%, rgb(255 255 255 / 0.95) 64%, rgb(255 255 255 / 0));
}
.fuse__burn i::before { /* where needle and wire meet: a small cut-glass diamond */
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.6rem; height: 0.6rem; margin: -0.3rem;
  transform: rotate(45deg);
  border: 1px solid rgb(255 255 255 / 0.95);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.25) 55%, rgb(255 255 255 / 0.5));
  box-shadow: 0 1px 8px rgb(15 26 77 / 0.4);
  -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
}
.fuse__burn i::after { /* the wire catches more light just behind the needle */
  content: ""; position: absolute; right: 100%; top: 50%; width: 9rem; height: 0.5rem; margin-top: -0.25rem;
  background: linear-gradient(to left, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0));
}
.fuse.is-still .fuse__burn { display: none; }
.hero :focus-visible { outline-color: #fff; }

/* Home: one section per page. The label column stays in view while its content scrolls past */
.section { border-top: 1px solid var(--line); }
.section--wash { background: var(--wash); --photo-bg: #fff; --photo-ink: #dbe1f0; }
.section--voice { background: var(--blue); color: #fff; --rule: rgb(255 255 255 / 0.3); --quiet: rgb(255 255 255 / 0.8); }
.section--close { background: var(--navy); }
.section--wash, .section--voice, .section--wash + .section, .section--voice + .section { border-top: 0; }
.section__inner {
  display: grid; grid-template-columns: minmax(11rem, 1fr) 3.2fr; gap: 2rem clamp(2rem, 5vw, 5rem);
  max-width: 76rem; margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter);
}
.section__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.section__head h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; line-height: 1.1; }
.section__head p { margin: 0.6rem 0 0; color: var(--muted); }
.section__head a { display: inline-block; margin-top: 1rem; font-weight: 500; text-decoration: none; }
.section__head a:hover, .section--voice .section__head a { text-decoration: underline; }
.section--voice a { color: inherit; }
.section--voice :focus-visible { outline-color: #fff; }

/* The project in its own words: one large paragraph and a few key facts */
.statement {
  max-width: 22em; margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  text-wrap: pretty;
}
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--rule, var(--line));
}
.facts dt { font-size: 0.875rem; color: var(--quiet, var(--muted)); }
.facts dd { margin: 0.25rem 0 0; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }

/* Lines: a narrow column for the year or kind, then title and detail */
.lines { border-bottom: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.line__aside { grid-row: span 2; padding-top: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.line h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.025em; transition: color 0.2s, transform 0.3s var(--ease); }
.line p { max-width: 44em; margin: 0.35rem 0 0; color: var(--muted); }
.line__aside { transition: color 0.2s; }
a.line:hover h3, a.line:focus-visible h3 { color: var(--blue); transform: translateX(0.35rem); }
a.line:hover .line__aside, a.line:focus-visible .line__aside { color: var(--ink); }
a.line:active h3 { transform: translateX(0.15rem); }
.line--pair { grid-template-columns: 1fr 1.7fr; align-items: baseline; }
.line--pair p { margin: 0; }
.line--stack { grid-template-columns: 1fr; }
.lines--wide .line { grid-template-columns: 11rem 1fr; }
.line h3 a { font-weight: 500; }
.prose { max-width: 46rem; }
.prose > .lead { margin-bottom: 2rem; }
.prose > .lines { margin-top: 2.5rem; }

/* Publications on the home page: a dark band with the heading across the top and the list
   grouped under large years. The years sit in the same column as the labels of other sections */
.pubs__inner { max-width: 76rem; margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); }
.pubs__head {
  display: grid; grid-template-columns: minmax(11rem, 1fr) 3.2fr; gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.pubs__head h2 { grid-column: 1 / -1; font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -0.045em; line-height: 1; }
.pubs__head p { grid-column: 2; max-width: 34em; margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--quiet); }
.pubs__head a { grid-column: 1; grid-row: 2; font-weight: 500; }
.year {
  display: grid; grid-template-columns: minmax(11rem, 1fr) 3.2fr; gap: 0.5rem clamp(2rem, 5vw, 5rem); align-items: start;
  padding-top: 1.75rem; border-top: 1px solid var(--rule);
}
.year + .year { margin-top: clamp(2rem, 4vw, 3.25rem); }
.year__number {
  position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #9db1ff;
}
.pubs .lines { border-bottom: 0; }
.pubs .line { padding: 0 0 1.75rem; border-top: 0; }
.pubs .line:last-child { padding-bottom: 0; }
.pubs .line h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.pubs .line p { color: var(--quiet); }
.pubs .line--latest h3 { max-width: 20em; font-size: clamp(1.7rem, 3.4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.pubs .line--latest p { margin-top: 0.75rem; }
.line__flag { justify-self: start; margin-bottom: 0.6rem; font-size: 0.875rem; font-weight: 500; color: #9db1ff; }
.pubs a.line::after { display: none; }
.pubs a.line:hover h3, .pubs a.line:focus-visible h3 { color: #c3d0ff; }

/* Blog on the home page: one large item beside two smaller ones */
.posts--feature { grid-template-columns: 1.55fr 1fr; gap: 2.5rem 2rem; }
.posts--feature .post:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.posts--feature .post:first-child .post__thumb { flex: 1; aspect-ratio: auto; min-height: 16rem; }
.posts--feature .post:first-child h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -0.03em; }
.posts--feature .post:not(:first-child) > p:last-child { display: none; }

.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.25rem; }
.face { color: inherit; text-decoration: none; }
.face .photo { transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1); }
.face:hover .photo { transform: scale(1.02); }
.face h3 { font-size: 1.05rem; margin-top: 0.9rem; transition: color 0.2s; }
.face:hover h3 { color: var(--blue); }
.face p { margin: 0.1rem 0 0; color: var(--muted); }

.statement--short { max-width: 30em; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; letter-spacing: -0.02em; }

/* Personal page: the portrait stands in the band, left of the name */
.masthead--person .masthead__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: end; }
.portrait { width: auto; height: clamp(8rem, 24vh, 11.5rem); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 12px; }
.masthead--person .back { margin-bottom: 0.75rem; }
.masthead--person .lead { margin-top: 0.5rem; }

/* Detail pages */
.back { display: inline-block; margin-bottom: 1.25rem; padding: 0.2rem 0; font-size: 0.9rem; font-weight: 500; }
.details { margin: 0; display: grid; gap: 1.1rem; } /* a few facts in the label column */
.details dt { font-size: 0.875rem; color: var(--muted); }
.details dd { margin: 0.1rem 0 0; font-weight: 500; }
.details dd a { display: inline-block; padding: 0.1rem 0; vertical-align: top; }
.media {
  aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
  background: var(--soft); border-radius: 12px; color: var(--muted);
}
.media--video::before {
  content: "";
  border-left: 1.5rem solid var(--muted);
  border-top: 0.95rem solid transparent; border-bottom: 0.95rem solid transparent;
}
/* Previous and next item: two large links under a rule */
.siblings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  max-width: calc(76rem - 2 * var(--gutter)); margin: 0 auto 6rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.siblings a { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: inherit; text-decoration: none; transition: color 0.2s; }
.siblings a:hover, .siblings a:focus-visible { color: var(--blue); }
.siblings a[rel="next"] { grid-column: 2; text-align: right; }
.siblings span { display: block; margin-bottom: 0.3rem; font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* Pointing at an item, or tabbing to it, draws a blue line across it from the left:
   the same gesture as the hero timer and the line in the menu */
.line, .post, .face { position: relative; }
a.line::after, .post::after, .face::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease); pointer-events: none;
}
a.line::after { top: -1px; }
.post::after, .face::after { bottom: -0.85rem; }
a.line:hover::after, a.line:focus-visible::after,
.post:hover::after, .post:has(a:focus-visible)::after,
.face:hover::after, .face:focus-visible::after { transform: scaleX(1); }
.post:has(a:focus-visible) .post__thumb img { transform: scale(1.04); }
.post:has(a:focus-visible) h3 a, .face:focus-visible h3 { color: var(--blue); }
.face:focus-visible .photo { transform: scale(1.02); }

/* Contact form: a clear label above each generous field, no rules between them */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; max-width: 46rem; }
.field { display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label, .field__label { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--paper); border: 1.5px solid #7c8391; border-radius: 12px;
  font: inherit; font-size: 1.05rem; color: var(--ink); resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(34 66 179 / 0.25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field p { margin: 0; }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.field__error { font-size: 0.95rem; font-weight: 500; color: #b3261e; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__end p { margin: 0; font-weight: 500; }

/* Recipient: pick a person by portrait and name */
.recipients { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.5rem 1.5rem; }
.recipient { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 0.4rem 0; cursor: pointer; }
.recipient input { position: absolute; opacity: 0; }
.recipient__photo { position: relative; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; outline: 2.5px solid transparent; outline-offset: 3px; transition: outline-color 0.2s; }
.recipient__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.recipient__photo::after { /* a tick on the chosen portrait */
  content: ""; position: absolute; right: -0.3rem; bottom: -0.3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
  border: 2px solid var(--paper); transform: scale(0); transition: transform 0.25s var(--ease);
}
.recipient strong { display: block; font-weight: 500; transition: color 0.2s; }
.recipient small { display: block; font-size: 0.875rem; color: var(--muted); }
.recipient:hover .recipient__photo { outline-color: #7c8391; }
.recipient input:checked ~ .recipient__photo { outline-color: var(--blue); }
.recipient input:checked ~ .recipient__photo::after { transform: none; }
.recipient input:checked ~ span strong { font-weight: 600; color: var(--blue); }
.recipient:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }

/* Captcha: three words and three parts of a ring hang at different depths. Seen from the side
   they drift apart; from one point of view they close into a single ring */
.captcha__scene {
  display: grid; place-items: center; height: 15rem; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--paper), var(--wash) 75%); border-radius: 16px;
  perspective: 38rem;
}
.captcha__space { position: relative; width: 11.5rem; height: 11.5rem; transform-style: preserve-3d; transform: rotateY(var(--view, 0deg)); transition: transform 0.25s ease-out; }
.captcha__layer { position: absolute; inset: 0; display: grid; place-items: center; }
/* each layer is scaled so that, seen straight on, all three look the same size: (38 - z) / 38 */
.captcha__layer:nth-child(1) { transform: translateZ(-5.5rem) scale(1.1447); }
.captcha__layer:nth-child(3) { transform: translateZ(5.5rem) scale(0.8553); }
.captcha__layer svg { position: absolute; inset: 0; fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 180 400; transition: stroke 0.4s, stroke-dasharray 0.6s var(--ease); }
.captcha__layer:nth-child(1) svg { transform: rotate(-150deg); }
.captcha__layer:nth-child(2) svg { transform: rotate(-30deg); stroke: var(--blue); }
.captcha__layer:nth-child(3) svg { transform: rotate(90deg); stroke: #8fa6f2; }
.captcha__layer b { position: relative; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.025em; color: var(--navy); }
.captcha__layer:nth-child(1) b { top: -1.55rem; }
.captcha__layer:nth-child(2) b { color: var(--blue); }
.captcha__layer:nth-child(3) b { top: 1.55rem; }
.is-solved .captcha__layer svg { stroke: var(--blue); stroke-dasharray: 194 386; }
.is-solved .captcha__layer b { color: var(--blue); }
.captcha__control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; font-weight: 500; }
.captcha__control input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; margin: 0;
  background: linear-gradient(#7c8391, #7c8391) center / 100% 3px no-repeat; cursor: pointer;
}
.captcha__control input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--blue), 0 2px 8px rgb(15 26 77 / 0.3);
}
.captcha__control input::-moz-range-thumb {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--blue), 0 2px 8px rgb(15 26 77 / 0.3);
}
.captcha__control input:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 999px; }
.captcha__status { font-weight: 500; }
.is-solved .captcha__status { color: #156f3b; }

/* Bottom bar: the institutions behind the project */
.footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  max-width: 76rem; margin: 0 auto; padding: 2.25rem calc(var(--gutter) + 3rem) 2.25rem var(--gutter);
}
.footer p { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.footer__logos img { display: block; height: 2.25rem; width: auto; }
.footer__logos .footer__nwo { height: 4.75rem; } /* NWO's logo is upright, so it needs more height to be legible */

/* Accessibility options: floating button and panel, bottom right */
.a11y { position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 20; }
.a11y__toggle {
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  background: var(--blue); color: #fff;
  border: 2px solid #fff; border-radius: 50%; box-shadow: 0 4px 16px rgb(15 26 77 / 0.3);
  transition: background-color 0.2s, transform 0.12s;
}
.a11y__toggle:hover, .a11y__toggle[aria-expanded="true"] { background: var(--navy); }
.a11y__toggle svg { width: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(19rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 6rem); overflow-y: auto;
  padding: 1.25rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgb(15 26 77 / 0.22);
}
.a11y__panel h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.a11y__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; width: 100%; min-height: 3rem; padding: 0.4rem 0;
  background: none; border: 0; border-top: 1px solid var(--line);
  text-align: left;
}
.a11y__switch { flex: none; position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #7c8391; transition: background-color 0.2s; }
.a11y__switch::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; transition: transform 0.2s; }
[aria-checked="true"] > .a11y__switch { background: var(--blue); }
[aria-checked="true"] > .a11y__switch::after { transform: translateX(1.1rem); }
.a11y__stepper { display: flex; align-items: center; gap: 0.4rem; }
.a11y__stepper output { min-width: 3.2rem; text-align: center; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.a11y__stepper button, .a11y__reset { min-height: 2rem; padding: 0.3rem 0.7rem; background: none; border: 1px solid #7c8391; border-radius: 8px; font-size: 0.875rem; transition: border-color 0.2s, transform 0.12s; }
.a11y__stepper button:hover, .a11y__reset:hover { border-color: var(--ink); }
.a11y__stepper button:disabled { opacity: 0.45; cursor: default; }
.a11y__reset { margin-top: 0.9rem; }

/* Choices made in the accessibility panel */
.a11y-contrast { --ink: #000; --muted: #2c3038; --line: #5f6673; --blue: #0a2a8c; --wash: #fff; --soft: #e9ebf0; }
.a11y-contrast .header { background: #fff; border-bottom-color: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
.a11y-contrast .header.is-over-hero { background: var(--navy); border-bottom-color: #fff; }
.a11y-contrast .nav a { opacity: 1; }
.a11y-contrast .slide__media::after { background: rgb(8 14 46 / 0.8); }
.a11y-contrast .slide p, .a11y-contrast .facts dt { color: #fff; }
.a11y-underline a, .a11y-underline .line h3, .a11y-underline .face h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.a11y-underline .line, .a11y-underline .face { text-decoration: none; }
.a11y-underline .nav__marker { display: none; }
.a11y-spacing :is(p, li, dt, dd, time, input, button, .nav a, .line__aside) { line-height: 1.9; letter-spacing: 0.08em; word-spacing: 0.16em; }
.a11y-spacing :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0.01em; word-spacing: 0.1em; }
.a11y-spacing p { margin-bottom: 1.6em; }
.a11y-calm *, .a11y-calm *::before, .a11y-calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small screens: the menu becomes a full-height sheet */
@media (max-width: 64rem) {
  .masthead__photo { width: 100%; }
  .masthead:has(.masthead__photo)::after { background: rgb(var(--band) / 0.84); }
  .masthead:has(.masthead__photo) h1 { max-width: none; }
}
@media (max-width: 60rem) {
  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 2.75rem; height: 2.75rem; margin-right: -0.8rem;
    background: none; border: 0; color: inherit;
  }
  .menu-toggle span { width: 1.15rem; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.45s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.75rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--paper);
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s, visibility 0s 0.35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s; }
  .nav a, .nav a:hover, .nav a[aria-current="page"] {
    padding: 0.5rem 0;
    font-size: 1.75rem; font-weight: 600; letter-spacing: -0.035em; color: var(--muted);
    opacity: 0; transform: translateY(0.75rem);
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav.is-open a {
    opacity: 1; transform: none;
    transition: opacity 0.5s calc(var(--i) * 45ms + 90ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 45ms + 90ms);
  }
  .nav a:nth-child(1) { --i: 0; } .nav a:nth-child(2) { --i: 1; } .nav a:nth-child(3) { --i: 2; } .nav a:nth-child(4) { --i: 3; }
  .nav a:nth-child(5) { --i: 4; } .nav a:nth-child(6) { --i: 5; } .nav a:nth-child(7) { --i: 6; } .nav a:nth-child(8) { --i: 7; }
  .nav__marker { display: none; }
  .header__inner { gap: 0.75rem; }
}
@media (max-width: 22rem) {
  .wordmark { font-size: 0.92rem; }
}
@media (max-width: 48rem) {
  .section__head .photo { max-width: 12rem; }
  .lines--wide .line, .form { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person .photo { max-width: 11rem; }
  .siblings { margin-inline: var(--gutter); }
  .slide__text { padding-bottom: 6rem; }
  .hero__nav { right: auto; left: var(--gutter); bottom: 1.75rem; }
  .posts--feature { grid-template-columns: 1fr; }
  .posts--feature .post:first-child .post__thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .faces { grid-template-columns: repeat(2, 1fr); }
  .section__inner, .pubs__head, .year { grid-template-columns: 1fr; }
  .pubs__head p, .pubs__head a { grid-column: 1; grid-row: auto; }
  .year__number { position: static; }
  .section__head { position: static; }
  .line, .line--pair { grid-template-columns: 1fr; }
  .line__aside { grid-row: auto; padding: 0 0 0.3rem; font-size: 0.875rem; }
  .line--pair p { margin-top: 0.35rem; }
}
