/* THE IRREVERSE — shared styles
   Layout: sticky top bar (title left, menu right), then a two-column hero on Home
   (text left, video right) and a single text column on the other pages.
   Black and white only for now: change the colour tokens below to re-theme. */
:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: #5a5a5a;
  --rule: #e2e2e2;
  --soft: #f5f5f5;

  /* Helvetica throughout, to match the IR artwork */
  --display: "Helvetica Neue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  --mono: "Helvetica Neue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;

  --max: 1120px;
  --bar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, video { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Top bar ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper);
}
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.bar .wrap {
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; align-items: center; }

.menu a {
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

/* Projects dropdown (soft panel, as on the Fleck site) */
.menu .has-sub { position: relative; }
.menu .has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.menu .caret { transition: transform .2s; }
.menu .has-sub:hover .caret, .menu .has-sub:focus-within .caret { transform: rotate(180deg); }
.menu .sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 14px); left: -14px; min-width: 220px;
  background: var(--paper); border: 1px solid #eee; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: none; flex-direction: column;
}
.menu .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu .sub a { display: block; padding: 8px 12px; border-radius: 8px; border-bottom: 0; white-space: nowrap; }
.menu .sub a:hover { background: #f6f6f6; color: var(--ink); }
.menu .sub a[aria-current="page"] { border-bottom: 0; background: #f6f6f6; }
.menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub { display: flex; }
.menu a:focus-visible, .menu-btn:focus-visible, .brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Menu button: only shown on narrow screens */
.menu-btn {
  display: none;
  background: none; border: 1px solid var(--ink); border-radius: 0;
  font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); padding: 9px 12px; cursor: pointer;
  align-items: center; gap: 10px;
}
.menu-btn .bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .2s, top .2s;
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
.bar.open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
.bar.open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero { padding-block: 72px 88px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .soft { display: block; font-weight: 300; letter-spacing: -.02em; }
.hero .lead {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.45;
  max-width: 26em;
  margin: 0;
  text-wrap: pretty;
}
.hero .lead strong { font-weight: 700; }

.film { margin: 0; }
.film video {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  background: var(--paper);
}

/* ---------- Inner pages ---------- */
.page-head { padding-block: 64px 8px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 12px;
}
.page-head p { color: var(--muted); margin: 0; max-width: 38em; }
.page-body { padding-block: 40px 88px; }
.prose { max-width: 38em; }
.prose p { margin: 0 0 18px; }
.prose a { text-underline-offset: 3px; }

.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 38em; }
.topics li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.topics .k { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 2.5em; }

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 46em; }
.projects li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.projects h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.projects h2 a { text-decoration: none; }
.projects h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.projects p { margin: 0; color: var(--muted); }

.placeholder {
  border: 1px dashed var(--muted); padding: 28px; color: var(--muted);
  max-width: 38em; font-size: 15px;
}
.placeholder code { font-family: var(--mono); font-size: 14px; color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--ink); padding-block: 24px 36px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .mono { font-family: var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .film { max-width: 340px; }
  .menu { gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .brand { font-size: 17px; letter-spacing: .1em; }
  .menu-btn { display: inline-flex; }
  /* The menu becomes a panel that drops down on the right */
  .menu {
    display: none;
    position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(var(--bar) - 1px);
    flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid #eee; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    min-width: 220px; padding: 8px;
  }
  .bar.open .menu { display: flex; align-items: stretch; }
  .menu .sub { display: flex; position: static; border: 0; padding: 0 0 4px; min-width: 0; }
  .menu .sub::before, .menu .caret { display: none; }
  .menu .sub { box-shadow: none; }
  .menu .sub a { padding: 8px 12px 8px 28px; font-size: 15px; }
  .menu .has-sub > a { display: flex; }
  .menu a { display: block; padding: 10px 12px; border-bottom: 0; border-radius: 8px; font-size: 16px; }
  .menu a:hover { background: #f6f6f6; }
  .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
  .bar .wrap { position: relative; }
  .hero { padding-block: 40px 56px; }
  .page-head { padding-top: 40px; }
}

/* ---------- Projects index ---------- */
.project-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.project-link {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 220px; padding: 28px;
  border: 1px solid var(--ink); text-decoration: none;
  transition: background .2s, color .2s;
}
.project-link .t { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.project-link .m { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.project-link .arrow { font-size: 22px; color: var(--ink); transition: transform .2s; }
.project-link:hover, .project-link:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.project-link:hover .m, .project-link:hover .arrow,
.project-link:focus-visible .m, .project-link:focus-visible .arrow { color: var(--paper); }
.project-link:hover .arrow { transform: translateX(6px); }

/* ---------- Gallery (Atlas) ---------- */
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.gallery { display: flex; flex-direction: column; gap: 120px; padding-block: 48px 120px; }
.plate { margin: 0; }
.plate img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.plate figcaption, .credit {
  margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted);
}
.plate figcaption strong { color: var(--ink); font-weight: 700; }
.pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.pair .doc { align-self: center; }
.doc .thumb {
  display: block; width: min(100%, 260px);
  border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule);
}
.doc .thumb img { display: block; width: 100%; height: auto; }
.doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 24px 0 6px; }
.doc p { margin: 0; color: var(--muted); font-size: 15px; }
.dl {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 11px 18px; border: 1px solid var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.dl:hover, .dl:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.spread { display: flex; flex-direction: column; gap: 40px; }
.section-label {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--ink); padding-top: 12px; margin: 0 0 28px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center;
  padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  background: none; border: 1px solid var(--ink); padding: 8px 12px; font: 600 13px/1 var(--body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; gap: 72px; }
  .gallery { gap: 80px; }
}
@media (max-width: 640px) {
  .project-links { grid-template-columns: 1fr; }
  .project-link { min-height: 160px; }
  .gallery { gap: 64px; padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-btn .bars::before, .menu-btn .bars::after { transition: none; }
}
.doc .credit { margin-top: 14px; }

/* ---------- Atlas texts ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.definition {
  margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty;
}
.definition strong { font-weight: 700; }
.definition em { font-style: italic; color: var(--muted); }
.statement-text p, .essay-text p { margin: 0 0 1em; text-wrap: pretty; }
.statement-text p:last-child, .essay-text p:last-child { margin-bottom: 0; }
.essay-text { columns: 2; column-gap: 64px; font-size: 16px; line-height: 1.65; }
.essay-text p { break-inside: avoid; }
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; gap: 28px; }
  .essay-text { columns: 1; }
}

/* ---------- Insurance Forms ---------- */
.work { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 80px; align-items: start; }
.work-card { position: sticky; top: calc(var(--bar) + 32px); display: flex; flex-direction: column; gap: 14px; }
.work-card p { margin: 0; }
.work-title { font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
.work-meta { font-size: 15px; }
.work-meta strong { font-weight: 700; }
.work-venue { font-size: 24px; line-height: 1.2; margin-top: 12px !important; }
.work-venue em { font-size: 15px; line-height: 1.4; }
.work-desc { font-size: 15px; color: var(--muted); margin-top: 8px !important; }
.work-card .dl { align-self: flex-start; margin-top: 6px; }
.letters { max-width: 40em; display: flex; flex-direction: column; gap: 56px; }
.letter { padding-block: 40px; border-top: 2px solid var(--ink); font-size: 16px; line-height: 1.6; }
.letter p { margin: 0 0 1.1em; }
.letter p:last-child { margin-bottom: 0; }
.letter p:first-child { margin-bottom: 1.6em; }
.letter--mono {
  font-family: "Andale Mono", AndaleMono, Monaco, "Lucida Console", "Courier New", ui-monospace, monospace;
  font-size: 14px; line-height: 1.7; border-top-style: dashed; border-top-width: 1px;
}
ol.roman { list-style: none; counter-reset: r; margin: -0.4em 0 1.1em; padding: 0 0 0 3.2em; }
ol.roman li { counter-increment: r; position: relative; margin-bottom: .35em; }
ol.roman li::before { content: "(" counter(r, lower-roman) ")"; position: absolute; left: -3.2em; width: 2.8em; }
.letters-end { margin: 0; }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; gap: 40px; }
  .work-card { position: static; }
}

.page-head p.wide { max-width: none; }

/* ---------- Research: publications & talks ---------- */
.tabs { display: flex; gap: 10px; margin: 0 0 12px; border-bottom: 1px solid var(--ink); padding-bottom: 20px; }
.tab {
  display: inline-flex; align-items: center; padding: 10px 20px; border: 1px solid var(--ink);
  text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.tab:hover { background: var(--soft); }
.tab[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding-block: 26px; border-bottom: 1px solid var(--rule); align-items: start; }
.pub-body { max-width: 48em; }
.pub h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 8px; text-wrap: balance; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pub p { margin: 0; font-size: 15px; line-height: 1.5; }
.pub-authors { color: var(--muted); }
.pub-authors strong { color: var(--ink); font-weight: 700; }
.pub-authors a { color: inherit; }
.pub-venue { margin-top: 4px !important; }
.pub-links { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px !important; }
.pub-links a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.pub-links a:hover { color: var(--muted); border-color: var(--muted); }
.pub-preview { display: block; width: 100%; border: 1px solid var(--rule); }
.pub-preview img { display: block; width: 100%; height: auto; }
.pub-preview:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .pub { grid-template-columns: 1fr; gap: 14px; }
  .pub-side:empty { display: none; }
  .pub-preview { width: 140px; }
  .pub-preview--slide { width: 200px; }
  .tab { padding: 9px 16px; }
}
.pub-preview img[data-full] { cursor: zoom-in; }

/* Shorter thumbnails so more entries fit on screen */
.pub { padding-block: 22px; }
.pub-preview img { height: 120px; object-fit: cover; object-position: top center; }
.pub-preview--slide img { height: auto; object-fit: contain; }
@media (max-width: 640px) { .pub-preview img { height: 110px; } .pub-preview--slide img { height: auto; } }

/* Softer corners on the Publications / Talks buttons */
.tab { border-radius: 6px; }

/* About */
.about-text p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0; }
.dl.cv { margin-top: 28px; border-radius: 6px; }

/* Slightly rounded talk previews */
.pub-preview--slide { border-radius: 6px; overflow: hidden; }

/* Cracks continuing out of the home-page video */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
#cracks {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to left, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%), linear-gradient(to left, transparent 0, #000 12%);
  mask-composite: intersect;
}

/* Current page in the menu: black, no underline */
.menu a[aria-current="page"] { border-bottom-color: transparent; }
@media (max-width: 640px) { .menu a[aria-current="page"] { text-decoration: none; } }

/* About: smaller text */
.about-text p { font-size: 15px; line-height: 1.65; }

/* Publication previews at their natural proportions */
.pub-preview:not(.pub-preview--slide) img { height: auto; object-fit: initial; }

/* Talk previews: softened contrast */
.pub-preview--slide img { filter: contrast(.78) brightness(1.13); }

/* Links on the same line as the journal and date */
.pub-venue--links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.pub-links-inline { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.pub-links-inline a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.pub-links-inline a:hover { color: var(--muted); border-color: var(--muted); }
@media (max-width: 640px) { .pub-preview:not(.pub-preview--slide) { width: 140px; } .pub-preview:not(.pub-preview--slide) img { height: auto; } }

/* No rules under the top bar or the Publications / Talks buttons */
.bar { border-bottom: 0; }
.tabs { border-bottom: 0; padding-bottom: 8px; }

/* Lower-case menu */
.menu a, .menu-btn { text-transform: lowercase; }

/* Pages without a heading start a little lower */
main > .page-body:first-child { padding-top: 64px; }

/* Video: lift its off-white background to the page white so its edge disappears */
.film video { filter: brightness(1.02); }

/* About: photo beside the text */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Projects: cover images as buttons */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 48px; }
.cover { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.cover img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); transition: transform .25s ease, box-shadow .25s ease; margin-bottom: 10px; }
.cover:hover img, .cover:focus-visible img { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.cover:focus-visible { outline: none; }
.cover-t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.cover-m { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .covers { grid-template-columns: 1fr 1fr; gap: 20px; } .cover-t { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .cover img { transition: none; } }

/* About: affiliations */
.affiliations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.aff p { margin: 0; font-size: 14px; line-height: 1.6; }
.aff .aff-role { text-decoration: underline; text-underline-offset: 3px; margin-bottom: 6px; }
.aff a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 640px) { .affiliations { grid-template-columns: 1fr; } }

/* Grey footer rule */
footer { border-top-color: var(--rule); }
/* The crack layer sits above the video so lines can start just inside its edge */
#cracks { z-index: 2; }

/* About: affiliations below the bio */
.affiliations--below { margin: 28px 0 0; padding: 24px 0 0; border-bottom: 0; border-top: 1px solid var(--rule); }

/* Publications as a gallery: two columns of works on a wall, with a small label underneath each */
.gallery-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px 80px; }
.work-item { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wall { height: clamp(260px, 30vw, 400px); display: flex; align-items: center; justify-content: center; background: var(--paper); }
.wall a { display: contents; }
.art { display: block; max-width: 80%; max-height: 100%; width: auto; height: auto; }
.art--page { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 32px rgba(0,0,0,.10); }
.art--work { box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 16px 36px rgba(0,0,0,.14); cursor: zoom-in; }
.art--blank { width: auto; height: 100%; aspect-ratio: 210 / 297; background: var(--soft); border: 1px solid var(--rule); }
.wall a:hover .art, .art--work:hover { transform: translateY(-3px); }
.art { transition: transform .25s ease; }
.label { max-width: 34em; }
.label h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; text-wrap: balance; }
.label h3 a { text-decoration: none; }
.label h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.label p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.label-authors strong { color: var(--ink); font-weight: 600; }
.label-venue { margin-top: 2px !important; }
.label-links { margin-top: 8px !important; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.label-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.label-links a:hover { color: var(--muted); border-color: var(--muted); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; gap: 64px; } .wall { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .art { transition: none; } }

/* Publications: three columns, no shadows */
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 48px; }
.wall { height: clamp(220px, 21vw, 300px); }
.art--page, .art--work { box-shadow: none; }
.art--page { border: 1px solid var(--rule); }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wall { height: clamp(220px, 30vw, 320px); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; gap: 56px; } .wall { height: 300px; } }

/* Slightly narrower page */
:root { --max: 1000px; }
/* Publications: previews sit flush left, in line with their labels */
.wall { justify-content: flex-start; }
.art { max-width: 100%; }

/* Publications: text list on the left, a wall of pictures on the right */
.pubs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; margin-top: 12px; }
.pub--text { grid-template-columns: minmax(0, 1fr); }
.photo-wall { position: sticky; top: calc(var(--bar) + 24px); display: flex; flex-direction: column; gap: 40px; padding-top: 26px; }
.hung { margin: 0; }
.hung img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.hung figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .pubs-layout { grid-template-columns: 1fr; gap: 48px; }
  .photo-wall { position: static; flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .hung { width: min(240px, 100%); }
}

/* Talks: previews greyed out until hovered */
.pub-preview--slide img { filter: grayscale(1) contrast(.78) brightness(1.13); transition: filter .25s ease; }
.pub-preview--slide:hover img, .pub-preview--slide:focus-visible img { filter: contrast(.78) brightness(1.13); }
@media (prefers-reduced-motion: reduce) { .pub-preview--slide img { transition: none; } }
.covers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 640px) { .covers { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Site typeface: a light, narrow grotesk in the manner of Diatype Light (Hanken Grotesk as the free stand-in) */
:root {
  --display: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { font-size: 17px; font-weight: 300; letter-spacing: -.005em; }
.hero h1 { letter-spacing: -.02em; }
.page-head h1 { letter-spacing: -.02em; }
.pub h3, .label h3, .cover-t, .work-title { font-weight: 500; letter-spacing: -.005em; }

/* Titles 1pt smaller, tighter list, natural line breaks */
.pub h3 { font-size: 18.7px; text-wrap: pretty; margin-bottom: 6px; }
.pub { padding-block: 15px; }
/* Menu: current page black but not bold */
.menu a[aria-current="page"] { font-weight: 500; }

/* Light, elegant weights throughout: medium for emphasis instead of bold */
strong, b { font-weight: 500; }
.pub h3, .label h3, .cover-t, .work-title, .menu a[aria-current="page"], .tab, .dl { font-weight: 500; }
.hero h1 { font-weight: 500; letter-spacing: -.025em; }
.hero h1 .soft { font-weight: 300; }
.page-head h1 { font-weight: 500; }
.brand { font-weight: 500; }
.menu a { font-weight: 400; }
.pub-venue em, .label-venue em { font-weight: 300; }

/* Publications / talks switch: quiet lowercase text, like the menu */
.tabs { gap: 28px; padding-bottom: 4px; }
.tab { border: 0; border-radius: 0; padding: 0; background: none; font-size: 16px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.tab:hover { background: none; color: var(--ink); }
.tab[aria-current="page"] { background: none; color: var(--ink); font-weight: 500; }

/* Picture wall: not zoomable */
.hung img { cursor: default; }

/* About: paragraph breaks */
.about-text p + p { margin-top: 1em; }

/* Title in the top left: bold, spaced capitals */
.brand { font-weight: 700; letter-spacing: .12em; }

/* Project covers keep their own proportions */
.cover img { height: auto; }
.cover img { aspect-ratio: 7 / 9; object-fit: cover; object-position: top center; }
.cover[href^="https://fleck"] img { object-position: bottom center; }

/* Atlas: book introduction under the title */
.book-intro { padding-block: 8px 24px; }
.book-blurb { max-width: 38em; }
.book-blurb p { margin: 0 0 1em; font-size: 18px; line-height: 1.55; }
.book-funding { max-width: 46em; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.book-links { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.book-links .dl { margin-top: 0; }
.book-url { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.book-url a { color: var(--muted); text-underline-offset: 3px; }
.book-url a:hover { color: var(--ink); }

/* Feather the video's edges so the square dissolves into the drawn cracks */
.film video {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 96%, transparent 100%), linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 96%, transparent 100%), linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}

/* Atlas: funding note full width under the title, then the definition */
.book-funding--top { max-width: none; margin: 0 0 40px; padding-top: 0; border-top: 0; font-size: 17px; color: var(--ink); }
.statement-wrap { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.funders { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--rule); }
.funders img { height: 90px; width: auto; }

/* Publications / talks: boxed like the "Download the book" button */
.tab { border: 1px solid var(--ink); border-radius: 0; padding: 11px 18px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--ink); background: none; }
.tab:hover { background: var(--ink); color: var(--paper); }
.tab[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 500; }
.tabs { gap: 10px; }

/* Insurance Forms: installation photos above the letters */
.install-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install-photos figure { margin: 0; }
.install-photos img { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .install-photos { grid-template-columns: 1fr; } }

/* Home: give the video's fine cracks more contrast (white stays white) */
.film video { filter: none; }   /* tone curve is baked into the video file */
.work-invite a { color: inherit; text-underline-offset: 3px; }
