/* SISTEM OFFICE — black sheet, white line; or the same drawing inverted.
   Two voices, taken from the logo: a tight grotesk for statements,
   a monospace for everything that labels the drawing. */

/* The colours are registered so that switching mode fades instead of jumping.
   The matching colours of the drawing itself are in js/main.js (THEMES). */
@property --bg    { syntax: "<color>"; inherits: true; initial-value: #000; }
@property --ink   { syntax: "<color>"; inherits: true; initial-value: #f2f0ea; }
@property --mute  { syntax: "<color>"; inherits: true; initial-value: rgba(242, 240, 234, .62); }
@property --faint { syntax: "<color>"; inherits: true; initial-value: rgba(242, 240, 234, .36); }
@property --rule  { syntax: "<color>"; inherits: true; initial-value: rgba(242, 240, 234, .16); }

:root {
  /* dark mode (default): ink on black */
  --bg: #000;
  --ink: #f2f0ea;
  --mute: rgba(242, 240, 234, .62);
  --faint: rgba(242, 240, 234, .36);
  --rule: rgba(242, 240, 234, .16);
  color-scheme: dark;
  /* same curve and time as the drawing's own fade (smoothstep, 0.45 s) */
  transition: --bg .45s cubic-bezier(.3333, 0, .6667, 1), --ink .45s cubic-bezier(.3333, 0, .6667, 1),
              --mute .45s cubic-bezier(.3333, 0, .6667, 1), --faint .45s cubic-bezier(.3333, 0, .6667, 1),
              --rule .45s cubic-bezier(.3333, 0, .6667, 1);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --accent: #00b050;                 /* the office's green: solid marks only, never text or thin lines */
  --pad: clamp(18px, 2.6vw, 40px);
  --move: 1.25;                      /* screens of scrolling between two drawings */
}

/* light mode: the two colours trade places */
:root[data-theme="light"] {
  --bg: #f2f0ea;
  --ink: #0a0a0a;
  --mute: rgba(10, 10, 10, .66);
  --faint: rgba(10, 10, 10, .44);
  --rule: rgba(10, 10, 10, .18);
  color-scheme: light;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── the drawing ─────────────────────────────────────────── */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--bg);
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.2, .7, .2, 1);
}
.ready #scene { opacity: 1; }

/* Each stage is only scroll length: its hold, then the travel to the next drawing. */
.stage {
  position: relative;
  height: calc((var(--hold, .7) + var(--move)) * 100vh);
}
.stage:last-of-type { height: calc((var(--hold, .7) + 1) * 100vh); }

/* ── label tape: every small piece of text sits on its own black plate ── */
.tape {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  background: var(--bg);
  color: var(--ink);
  padding: .62em .85em .58em;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape--dim { color: var(--mute); }

/* ── header ──────────────────────────────────────────────── */
.bar {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--pad);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { color: var(--mute); transition: color .25s; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
.bar nav a[aria-current="page"]::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
}
/* phones: the page links fold into a menu */
.menu-btn {
  display: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
}
.menu-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.menu {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--pad) * 4) var(--pad) var(--pad);
  background: var(--bg);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a {
  padding: 10px 0 12px;
  border-top: 1px solid var(--rule);
  font: 500 clamp(38px, 11.5vw, 64px)/1.08 var(--sans);
  letter-spacing: -.035em;
}
.menu nav a[aria-current="page"] { color: var(--mute); }
.menu-foot {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.menu-open, .menu-open body { overflow: hidden; }
/* dark / light switch: a half-filled disc at the end of the menu */
.mode {
  appearance: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
  color: var(--mute);
  padding-left: .72em;
  padding-right: .72em;
  transition: color .25s;
}
.mode:hover { color: var(--ink); }
.mode:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.mode i {
  display: block;
  width: 11px; height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.brand svg { height: 11px; width: auto; display: block; }
.brand span { color: var(--mute); }
.bar a:focus-visible, .sheet a:focus-visible, .page a:focus-visible, .foot a:focus-visible, .menu a:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ── opening mark ────────────────────────────────────────
   Plain logo in the middle of the plan. The drawing is dimmed right under it and
   released smoothly around it; that falloff is done in the renderer (js/main.js,
   LOOK.quiet…), so there is no overlay here. */
.mark {
  position: fixed;
  z-index: 6;
  left: 50%; top: 50%;
  width: clamp(240px, 30vw, 440px);
  transform: translate(-50%, -50%);
  color: var(--ink);
  pointer-events: none;
  will-change: opacity, transform;
}
.mark h1 { font-size: inherit; }
.mark svg { display: block; width: 100%; height: auto; }
.mark p {
  position: relative;
  left: 50%;
  width: max-content;
  max-width: min(92vw, 52em);
  transform: translateX(-50%);
  margin-top: clamp(20px, 2.1vw, 30px);
  text-align: center;
  text-wrap: balance;
  font: 500 11px/1.35 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.brand { will-change: opacity; }

/* ── panels (text that belongs to one drawing) ───────────── */
.panel {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  --v: 0;
}
.panel.is-live { visibility: visible; }

.panel--hero .hero-cue {
  position: absolute;
  left: 50%;
  bottom: var(--pad);
  transform: translateX(-50%);
  color: var(--mute);
}
.hero-cue i {
  display: block;
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 100% 0 / 200% 100%;
  animation: cue 2.4s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes cue { to { background-position: -100% 0; } }

.sheet {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(340px, 39vw, 600px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  padding: calc(var(--pad) * 3.2) var(--pad) calc(var(--pad) * 1.6);
  background: var(--bg);
}
.panel.is-on .sheet { pointer-events: auto; }
.sheet--left { left: 0; border-right: 1px solid var(--rule); }
.sheet--right { right: 0; border-left: 1px solid var(--rule); }
.sheet > * {
  transform: translateY(calc((1 - var(--v)) * 22px));
}

.eyebrow {
  display: flex;
  gap: 1.1em;
  align-items: baseline;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: auto;            /* pins the label to the top, the statement to the bottom */
}
.eyebrow b { font-weight: 500; color: var(--ink); }

h2 {
  font: 500 clamp(32px, 3.5vw, 58px)/1.02 var(--sans);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  color: var(--mute);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.52;
  text-wrap: pretty;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font: 400 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.counts div { padding: 16px 0 0; }
.counts dt {
  font: 500 clamp(26px, 2.5vw, 40px)/1 var(--sans);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
/* the green full stop that closes every main title */
.stop {
  display: inline-block;
  width: .15em; height: .15em;
  margin-left: .07em;
  background: var(--accent);
}
/* the count that the green module in the drawing stands for */
.counts .is-accent dd::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .6em;
  background: var(--accent);
}
.counts dd {
  margin-top: 8px;
  font: 400 10.5px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.index { border-top: 1px solid var(--rule); counter-reset: n; }
.index li { counter-increment: n; border-bottom: 1px solid var(--rule); }
.index li > a, .index li > div {
  display: grid;
  grid-template-columns: 2.6em 1fr auto 5.2em;
  align-items: baseline;
  gap: 0 14px;
  padding: 15px 0 14px;
}
.index li > a::before, .index li > div::before {
  content: counter(n, decimal-leading-zero);
  font: 400 11px/1 var(--mono);
  color: var(--faint);
}
.index a:hover span, .index a:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

/* a link that leads on: label and a line with an arrowhead */
.more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  gap: .9em;
  padding: .3em 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.more i {
  position: relative;
  width: 34px; height: 1px;
  background: currentColor;
  transition: width .3s cubic-bezier(.2, .7, .2, 1);
}
.more i::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.more:hover i, .more:focus-visible i { width: 52px; }
.more:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.index span { font-size: clamp(16px, 1.25vw, 20px); letter-spacing: -.01em; line-height: 1.25; }
.index em, .index time {
  font: 400 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.index time { text-align: right; }

/* a frame with no sheet: the drawing fills the screen and the text sits on a plate
   just above the drawing label, with the same title size as the other frames */
.note {
  position: absolute;
  left: var(--pad);
  bottom: calc(var(--pad) + 38px);
  max-width: min(38em, calc(100vw - var(--pad) * 2));
  display: grid;
  gap: 20px;
  padding: 26px 30px 28px;
  background: var(--bg);
  transform: translateY(calc((1 - var(--v)) * 18px));
}
.note .eyebrow { margin: 0; }
.note h2 { max-width: 9em; }                 /* two lines, like the titles of the other frames */
.note .lede { max-width: 27em; }

/* closing sheet: a band across the foot of the page */
.sheet--foot {
  top: auto; left: 0; right: 0; bottom: 0;
  width: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "say reach" "legal legal";
  align-items: end;
  gap: 30px var(--pad);
  padding: calc(var(--pad) * 1.4) var(--pad) var(--pad);
  border-top: 1px solid var(--rule);
}
.sheet--foot > div:first-child { grid-area: say; display: grid; gap: 22px; }
.sheet--foot .eyebrow { margin: 0; }
.reach { grid-area: reach; border-top: 1px solid var(--rule); }
.reach div {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.reach dt {
  font: 400 11px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
.reach dd { font-size: clamp(16px, 1.25vw, 20px); letter-spacing: -.01em; }
.legal {
  grid-area: legal;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── drawing label: follows the free part of the screen ──── */
.hud {
  position: fixed;
  z-index: 15;
  left: calc(var(--rx0, 0) * 100vw + var(--pad));
  bottom: calc((1 - var(--ry1, 1)) * 100vh + var(--pad));
  display: flex;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s .4s;
}
.ready .hud { opacity: 1; }
/* at rest on the opening view the label is just number + name */
#hud-proj { transition: opacity .35s; }
.is-opening #hud-proj { opacity: 0; }
/* held views (stills, tuning) appear without the fade-in */
.still #scene, .still .hud, .still #hud-proj { transition: none; }

/* ── small screens: sheets become a block at the foot ────── */
@media (max-width: 860px), (orientation: portrait) {
  :root { --move: 1.1; }
  .mark { width: clamp(210px, 60vw, 320px); }
  .mark p { font-size: 10px; letter-spacing: .08em; }
  .panel--hero .hero-cue { left: auto; right: var(--pad); transform: none; }   /* clear of the drawing label */
  .bar nav a { padding-left: .6em; padding-right: .6em; }
  .brand span { display: none; }
  .sheet,
  .sheet--left,
  .sheet--right {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto;
    gap: 16px;
    padding: 22px var(--pad) calc(var(--pad) + 30px);
    border: 0;
    border-top: 1px solid var(--rule);
  }
  .eyebrow { margin-bottom: 4px; }
  .note { right: var(--pad); max-width: none; padding: 20px 20px 22px; gap: 14px; }
  h2 { font-size: clamp(28px, 7.4vw, 40px); }
  .lede { font-size: 15px; }
  .facts { padding-top: 14px; }
  .counts { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .counts dt { font-size: 26px; }
  .counts dd { letter-spacing: .05em; }
  .index li > a, .index li > div { grid-template-columns: 2.2em 1fr auto; padding: 11px 0 10px; }
  .index em { display: none; }
  .sheet--foot { display: flex; align-items: stretch; }
  .sheet--foot > div:first-child { gap: 12px; }
  .reach div { grid-template-columns: 8.5em 1fr; padding: 10px 0 9px; }
  #hud-proj { display: none; }
}

/* phones: page links fold into the menu */
@media (max-width: 760px) {
  .bar nav .navlink { display: none; }
  .menu-btn { display: inline-flex; }
  .brand span { display: none; }
}

/* short, wide screens (a phone on its side) */
@media (max-height: 540px) and (orientation: landscape) {
  .sheet { gap: 14px; padding-top: calc(var(--pad) * 2.6); padding-bottom: var(--pad); }
  .sheet--foot { padding-top: var(--pad); gap: 14px var(--pad); }
  h2 { font-size: clamp(22px, 6.4vh, 34px); }
  .lede { font-size: 13.5px; line-height: 1.42; }
  .sheet .facts, .sheet .legal { display: none; }
  .index li > a, .index li > div, .reach div { padding: 8px 0 7px; }
  #hud-proj { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html { scroll-behavior: auto; }
  .hero-cue i { animation: none; }
  #scene { transition: none; }
}

/* without WebGL the page is still a readable, black page */
.no-gl #scene, .no-gl .hud { display: none; }
.no-gl .stage { height: auto; }
.no-gl .panel { position: static; opacity: 1 !important; visibility: visible; }
.no-gl .mark { position: static; transform: none !important; margin: 22vh auto 6vh; opacity: 1 !important; visibility: visible !important; }
.no-gl .brand { opacity: 1 !important; visibility: visible !important; }
.no-gl .sheet { position: static; width: auto; border: 0; padding: 12vh var(--pad); }
.no-gl .note { position: static; max-width: none; padding: 12vh var(--pad); transform: none; }
.no-gl .panel--hero p { position: static; transform: none; margin: 0 var(--pad) 10vh; }


/* ════════════════════════════════════════════════════════════
   Inner pages: work, projects, research, teaching, studio, contact.
   Ordinary scrolling pages on the same sheet: a solid header, a band
   of the drawing, then words and pictures on a 12-column grid.
   ════════════════════════════════════════════════════════════ */
.is-page .bar {
  position: sticky;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  pointer-events: auto;
}
.page { --gap: clamp(12px, 1.4vw, 22px); }

/* the band: one fixed 2D view of the D surface per page */
.band {
  position: relative;
  height: clamp(170px, 34vh, 360px);
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.band #scene { position: absolute; }
.no-gl .band { display: none; }

/* page head */
.p-head {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
  padding: clamp(36px, 6vw, 96px) var(--pad) clamp(30px, 4.5vw, 64px);
}
.p-head h1 {
  max-width: 12em;
  font: 500 clamp(46px, 8.2vw, 132px)/.94 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.p-head--project h1 { font-size: clamp(40px, 6.4vw, 104px); }
.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .6em 1.3em;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.kicker a { color: var(--ink); }
.kicker a:hover { text-decoration: underline; text-underline-offset: .2em; }
.kicker > * + *::before { content: "/"; margin-right: 1.3em; color: var(--faint); }
.intro {
  max-width: 30em;
  font: 400 clamp(20px, 1.9vw, 30px)/1.28 var(--sans);
  letter-spacing: -.016em;
  text-wrap: pretty;
}
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px var(--gap);
  margin-top: clamp(8px, 1vw, 18px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.meta > div { display: grid; gap: 8px; align-content: start; }
.meta dt, .rows dt, .refs span {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.meta dd { max-width: 26em; font-size: 15px; line-height: 1.4; }

/* sections: a label in the margin, the content beside it */
.sec {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(26px, 3.4vw, 48px) var(--pad);
  border-top: 1px solid var(--rule);
}
.sec > .label {
  grid-column: 1 / span 3;
  position: sticky;
  top: 78px;
  align-self: start;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  text-wrap: balance;
}
.sec > .label b { margin-right: 1.1em; font-weight: 500; color: var(--ink); }
.sec > .body { grid-column: 4 / -1; display: grid; gap: 1.15em; min-width: 0; }
.sec > .body > p {
  max-width: 36em;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--mute);
  text-wrap: pretty;
}
.sec > .body > p.sub {
  max-width: 18em;
  font: 500 clamp(26px, 2.6vw, 42px)/1.06 var(--sans);
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
}

/* lists of facts: year or label, then the statement */
.rows > div, .refs li {
  display: grid;
  grid-template-columns: minmax(7em, 2fr) minmax(0, 7fr);
  gap: 4px 18px;
  align-items: baseline;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--rule);
}
.rows > div:first-child, .refs li:first-child { padding-top: 0; }
.rows > div:last-child, .refs li:last-child { padding-bottom: 0; border-bottom: 0; }
.rows dd, .refs p { max-width: 44em; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.42; }
.rows--wide dd b { display: block; font-weight: 500; }
.rows--wide dd span { display: block; margin-top: 4px; color: var(--mute); }
.rows--say dd { max-width: 34em; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.34; letter-spacing: -.012em; }
.refs a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.plain { display: grid; gap: .5em; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.42; }
.tbc {
  display: inline-block;
  padding: .5em .8em;
  border: 1px dashed var(--faint);
  font: 400 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.index--page li > a, .index--page li > div { grid-template-columns: 2.6em 1fr 8em; }

/* pictures */
.hero { margin: 0; padding: 0 var(--pad) clamp(26px, 3.4vw, 48px); }
.hero img { display: block; width: min(100%, calc(84vh * var(--ar, 1.6))); height: auto; }
.hero figcaption, .fig figcaption {
  padding-top: 9px;
  font: 400 11px/1.45 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero--none {
  display: grid;
  place-items: center;
  aspect-ratio: 21 / 7;
  margin: 0 var(--pad) clamp(26px, 3.4vw, 48px);
  padding: 0;
  border: 1px solid var(--rule);
  background: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 12px);
}
.hero--none span, .thumb--none span {
  padding: .7em 1em;
  background: var(--bg);
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.figs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(22px, 2.6vw, 40px) var(--gap);
  padding: clamp(26px, 3.4vw, 48px) var(--pad);
  border-top: 1px solid var(--rule);
}
.figs--in { margin-top: .5em; padding: 0; border: 0; }
.fig { margin: 0; grid-column: span var(--span, 12); min-width: 0; }
.fig img { display: block; width: 100%; height: auto; }
.fig--row .row { display: flex; gap: clamp(8px, 1vw, 14px); }
.fig--row .cell { flex: var(--ar) 1 0; min-width: 0; }

/* drawings sit on the page as paper in light mode; in dark mode a plate stays a
   white sheet and a pure line drawing is inverted to light lines on black */
:root[data-theme="light"] .is-plate img, :root[data-theme="light"] .is-line img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .is-line img { filter: invert(1) hue-rotate(180deg); }

/* work index */
.filters { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 var(--pad) clamp(20px, 2.4vw, 34px); }
.filters button {
  appearance: none;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  cursor: pointer;
  color: var(--mute);
  transition: color .2s, background-color .2s, border-color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters button:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 3.6vw, 60px) var(--gap);
  padding: 0 var(--pad) clamp(44px, 6vw, 90px);
}
.card[hidden] { display: none; }
.card a { display: block; }
.thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule); }
.thumb img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.card a:hover .thumb img, .editions a:hover .thumb img { transform: scale(1.025); }
.thumb.is-plate img, .thumb.is-line img { object-fit: contain; padding: 7%; }
.thumb.is-line, :root[data-theme="light"] .thumb.is-plate { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
:root[data-theme="dark"] .thumb.is-plate { background: #fff; }
.thumb--none {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 10px);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font: 400 11px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.card h2 { margin-top: 9px; font: 500 clamp(21px, 1.9vw, 29px)/1.08 var(--sans); letter-spacing: -.022em; }
.card a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.card-text { max-width: 30em; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--mute); }

/* teaching: the five editions side by side */
.editions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--pad) clamp(34px, 4vw, 60px);
}
.editions a { display: block; }
.editions .thumb { aspect-ratio: 1 / 1; }
.editions time { display: block; margin-top: 12px; font: 500 clamp(26px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -.03em; }
.editions h3 { margin: 8px 0 0; font: 500 16px/1.22 var(--sans); letter-spacing: -.01em; }
.editions p { margin-top: 7px; font: 400 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* research: the two approaches, side by side */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: .4em 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.compare > div { padding: 24px 24px 24px 0; }
.compare > div + div { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--rule); }
.compare h3 { margin: 0; font: 500 clamp(20px, 1.8vw, 27px)/1.1 var(--sans); letter-spacing: -.02em; }
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 14px 0 18px;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chain i { position: relative; width: 22px; height: 1px; background: currentColor; }
.chain i::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.compare ul { display: grid; gap: 6px; font-size: 15px; line-height: 1.4; color: var(--mute); }
.compare ul + ul { margin-top: 12px; }
.compare li { position: relative; padding-left: 1.5em; }
.compare li::before { position: absolute; left: 0; font-family: var(--mono); color: var(--faint); }
.plus li::before { content: "+"; }
.minus li::before { content: "\2212"; }
.compare .links { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 18px; }
.compare .links a {
  padding: .62em .85em .58em;
  border: 1px solid var(--rule);
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.compare .links a:hover { color: var(--ink); border-color: var(--ink); }

/* previous / next project */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.pager a { display: grid; gap: 12px; padding: clamp(26px, 3.4vw, 48px) var(--pad); }
.pager a + a { border-left: 1px solid var(--rule); text-align: right; }
.pager span { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pager b { font: 500 clamp(22px, 2.6vw, 40px)/1.05 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.pager a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

/* footer */
.foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 34px clamp(12px, 1.4vw, 22px);
  padding: clamp(44px, 6vw, 96px) var(--pad) var(--pad);
  border-top: 1px solid var(--rule);
}
.foot-mark { grid-column: 1 / span 3; max-width: 280px; }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-say {
  grid-column: 5 / span 5;
  max-width: 20em;
  font: 400 clamp(17px, 1.45vw, 23px)/1.28 var(--sans);
  letter-spacing: -.014em;
  color: var(--mute);
}
.foot-nav {
  grid-column: 10 / -1;
  display: grid;
  justify-items: end;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot .legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--rule); }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec > .label { grid-column: 1 / span 4; }
  .sec > .body { grid-column: 5 / -1; }
}
@media (max-width: 760px) {
  .band { height: clamp(130px, 24vh, 210px); }
  .sec { display: block; }
  .sec > .label { position: static; margin-bottom: 18px; }
  .rows > div, .refs li { grid-template-columns: 1fr; }
  .index--page li > a, .index--page li > div { grid-template-columns: 2.2em 1fr auto; }
  .cards { grid-template-columns: 1fr; }
  .fig { grid-column: 1 / -1; }
  .fig--row .row { flex-wrap: wrap; }
  .fig--row .cell { flex: var(--ar) 1 calc(var(--ar) * 150px); }
  .editions {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62vw;
    overflow-x: auto;
    padding-bottom: 28px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .editions li { scroll-snap-align: start; }
  .compare { grid-template-columns: 1fr; }
  .compare > div { padding-right: 0; }
  .compare > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
  .foot { grid-template-columns: 1fr; gap: 26px; }
  .foot > * { grid-column: 1 / -1; }
  .foot-mark { max-width: 220px; }
  .foot-nav { justify-items: start; }
  .hero--none { aspect-ratio: 16 / 9; }
}
