/* Machine Materials Lab: site styles.
   Colours and fonts are defined once below as variables. */

@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-normal.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-italic.woff2) format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3-normal.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface-2: #f5f4f2;
  --ink: #1b1918;
  --ink-2: #3d3935;
  --muted: #6b6560;
  --line: #e4e1dd;
  --accent: #bc0031;
  --accent-ink: #9a0028;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 24px);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #f6d9e0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(740px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-mid { max-width: calc(1000px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; font-family: var(--sans); }
.skip-link:focus { top: 12px; }

/* the red rule on the left of introductions, as on the university's pages */
.ruled { border-left: 2px solid var(--accent); padding-left: clamp(18px, 2.4vw, 28px); }

.meta { font: 400 14.5px/1.4 var(--sans); color: var(--muted); text-decoration: none; }
a.meta:hover { color: var(--accent); text-decoration: underline; }
.eyebrow { margin: 0 0 10px; font: 600 13.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.more { font: 600 16px/1.4 var(--sans); color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-end { display: flex; justify-content: flex-end; margin-top: 24px; }

/* ------------------------------------------------------------------ header */

.site-header { background: var(--bg); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 18px 14px; }
.inst { justify-self: start; font: 600 13px/1.35 var(--sans); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.inst span { display: block; font-weight: 400; color: var(--muted); }
.inst:hover span { color: var(--ink); }
.site-title { font: 400 31px/1.1 var(--serif); text-decoration: none; text-align: center; }
.header-owner { justify-self: end; font: 400 15px var(--sans); color: var(--muted); }

.site-nav { border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; margin-left: -12px; }
.site-nav a {
  display: block; padding: 10px 12px 11px; margin-bottom: -1px;
  font: 400 17px/1.4 var(--serif); text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="page"]:hover { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; margin-inline: auto; background: currentColor;
  transition: transform .2s, background .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .header-top { grid-template-columns: 1fr auto; grid-template-areas: "inst toggle" "title toggle"; row-gap: 4px; padding-block: 14px; }
  .inst { grid-area: inst; font-size: 11.5px; }
  .inst span { display: inline; }
  .inst span::before { content: " · "; }
  .site-title { grid-area: title; text-align: left; font-size: 25px; }
  .header-owner { display: none; }
  .nav-toggle { grid-area: toggle; display: grid; place-items: center; }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; margin-left: 0; padding-block: 4px 10px; }
  .site-nav li + li a { border-top: 1px solid var(--line); }
  .site-nav a { padding: 12px 0; margin: 0; font-size: 19px; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
}

/* ------------------------------------------------------------------ home */

.hero { position: relative; height: min(70vh, 680px); min-height: 460px; overflow: hidden; background: #222; }
/* Photos are stacked and cross-fade; the active one slowly settles from a slight zoom. */
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s ease, transform 0s linear 1.2s;
}
.hero-img.is-active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 9s ease-out; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .32) 55%, rgba(0, 0, 0, .06)),
              linear-gradient(0deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 50%);
}
.hero-text { position: absolute; left: 0; right: 0; bottom: 11%; z-index: 1; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero-text .ruled { border-left-color: #fff; max-width: 820px; }
.hero-title { font: 600 clamp(36px, 5vw, 62px)/1.06 var(--serif); margin: 0 0 16px; }
.hero-title em { font-style: italic; }
.hero-lead { font: 400 clamp(18px, 1.8vw, 23px)/1.45 var(--serif); margin: 0; max-width: 38em; }

/* What the current photo shows, plus the photo controls (bottom right) */
.hero-meta { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; color: #fff; }
.hero-meta .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hero-credit {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 14px/1.4 var(--sans); color: rgba(255, 255, 255, .88); text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hero-credit:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.hero-controls[hidden] { display: none; }
.hero-dots { display: flex; gap: 5px; }
.hero-dot { position: relative; width: 20px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before, .hero-dot::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
}
.hero-dot::before { right: 0; background: rgba(255, 255, 255, .4); transition: background .2s; }
.hero-dot:hover::before { background: rgba(255, 255, 255, .75); }
.hero-dot[aria-current]::after { width: 100%; background: #fff; }
.hero.is-playing .hero-dot.is-timing::after { animation: hero-progress var(--hero-delay, 7s) linear both; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
.hero-pause {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0; flex: none;
  border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer;
}
.hero-pause:hover { border-color: #fff; background: rgba(0, 0, 0, .4); }
.hero-pause svg { width: 13px; height: 13px; fill: currentColor; }
.hero-pause .i-play, .hero.is-paused .hero-pause .i-pause { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }
.hero-dot:focus-visible, .hero-pause:focus-visible, .hero-credit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .hero { height: auto; min-height: 560px; display: flex; align-items: flex-end; }
  .hero-text { position: relative; padding-block: 120px 92px; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .15)); }
  .hero-meta { bottom: 14px; }
  .hero-meta .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
  .hero-credit { flex: 1 1 100%; font-size: 13.5px; }
  .hero-dot { width: 15px; }
  .hero-dots { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-img.is-active { transform: none; transition: opacity .3s ease; }
}

.section { padding-block: clamp(48px, 6vw, 72px); }
.section-alt { background: var(--surface-2); }
.section-tight { padding-block: clamp(36px, 5vw, 56px) 0; }
.section-title { font: 600 clamp(28px, 3vw, 34px)/1.15 var(--serif); margin: 0 0 28px; }

.about-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-text p { font-size: 20px; line-height: 1.6; margin-bottom: 18px; }
.about-text a { color: var(--accent); }
@media (max-width: 900px) { .about-home { grid-template-columns: 1fr; } }

/* the interactive animation */
.hero-visual { width: 100%; max-width: 460px; margin: 0 auto; }
.lattice {
  width: 100%; aspect-ratio: 1; touch-action: pan-y; cursor: ew-resize;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  transition: opacity .25s;
}
.lattice[data-mode="odd"], .lattice[data-mode="chameleon"] {
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}
.lattice.is-switching { opacity: 0; }
.visual-switch { display: flex; justify-content: center; gap: 24px; margin-top: 4px; }
.visual-switch button {
  font: 600 15px var(--sans); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 6px 0; color: var(--muted); cursor: pointer;
}
.visual-switch button:hover { color: var(--ink); }
.visual-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.visual-caption { max-width: 32em; min-height: 6.2em; margin: 10px auto 0; text-align: center; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.visual-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.visual-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .hero-visual { max-width: 380px; }
  .visual-caption { min-height: 0; }
}

.award-cols { list-style: none; columns: 2; column-gap: 56px; }
.award-cols li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.award-date { display: block; margin-bottom: 2px; font: 600 13.5px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.award-cols a { color: var(--accent); }
@media (max-width: 900px) { .award-cols { columns: 1; } }

.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.join img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.join p { font-size: 19px; }
.join p a { color: var(--accent); }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ page headers */

.page-head { padding-block: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 44px); }
.page-head-center { text-align: center; padding-block: 120px; }
.page-title { font: 600 clamp(36px, 4.6vw, 54px)/1.08 var(--serif); margin: 0 0 14px; max-width: 20em; }
.page-head-center .page-title { margin-inline: auto; }
.page-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 46em; margin: 0; }
.page-head .page-lead + .chips { margin-top: 22px; }
.page-lead a, .prose a, .award-list a:not(.meta), .join-strip a, .lattice-list a, .pub-cite a {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.back { display: inline-block; margin-bottom: 14px; font: 600 15.5px var(--sans); color: var(--accent); text-decoration: none; }
.back:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; }
.chip { padding-bottom: 2px; font: 600 15.5px/1.4 var(--sans); color: var(--accent); text-decoration: none; border-bottom: 2px solid transparent; }
.chip:hover { border-bottom-color: var(--accent); }

.year-label { font: 600 26px/1.2 var(--serif); color: var(--ink); }
.year-block { padding-block: 36px 16px; border-top: 1px solid var(--line); }
.year-block .year-label { margin-bottom: 24px; }
.year-block:last-child { margin-bottom: 48px; }

/* ------------------------------------------------------------------ research cards */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 40px 28px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid-4 { grid-template-columns: 1fr; } }
.card-link { display: block; text-decoration: none; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-media.is-contain { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.card-media.is-contain img { object-fit: contain; padding: 6px; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-date { display: block; margin-bottom: 4px; font: 400 14px var(--sans); color: var(--muted); }
.card-title { font: 600 21px/1.25 var(--serif); margin: 0 0 8px; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-summary {
  margin: 0; font: 400 16px/1.5 var(--serif); color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #efeeeb 0 10px, #e7e5e1 10px 20px); }

/* ------------------------------------------------------------------ article */

.article { padding-bottom: 64px; }
.article-head { padding-top: clamp(32px, 5vw, 56px); }
.article-head .meta { display: block; margin-bottom: 10px; }
.article-title { font: 600 clamp(32px, 4.4vw, 50px)/1.1 var(--serif); margin: 0 0 clamp(24px, 4vw, 36px); }
.article-hero { margin-block: 0 clamp(24px, 4vw, 40px); }
.article-hero img { width: auto; max-width: 100%; max-height: 72vh; margin-inline: auto; object-fit: contain; }
.article-hero figcaption { max-width: 740px; margin: 12px auto 0; font: 400 15px/1.5 var(--sans); color: var(--muted); }
[data-zoom], .prose img, .group-photo img, .about-photo img { cursor: zoom-in; }

.prose { font-size: 19px; line-height: 1.7; }
.prose-lg { font-size: 20px; }
.prose p { margin-bottom: 1.1em; }
.prose img { height: auto; margin-block: 1.5em; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose blockquote { margin: 1.5em 0; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: italic; }

.embed { margin: 1.6em 0; }
.yt-lite, .embed iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  overflow: hidden; cursor: pointer; background: #111 center / cover no-repeat;
}
.embed--video video { width: 100%; background: #000; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .2s;
}
.yt-play::after {
  content: ""; position: absolute; left: 29px; top: 23px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.yt-lite:hover .yt-play { transform: scale(1.08); }
.yt-note { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; background: rgba(0, 0, 0, .65); color: #fff; font: 13px/1.4 var(--sans); }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.pager-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font: 600 18px/1.3 var(--serif); }
.pager-link .meta { font-weight: 600; color: var(--accent); }
.pager-link:hover span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pager-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

/* ------------------------------------------------------------------ people */

.group-photo { margin: 0; }
.group-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.join-strip { margin-block: 36px; }
.join-strip .section-title { margin-bottom: 12px; }
.join-strip p { margin: 0; font-size: 19px; max-width: 48em; }

.pi {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: start; padding-block: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line);
}
.pi-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pi-name { font: 600 clamp(30px, 3.4vw, 40px)/1.1 var(--serif); margin: 0 0 8px; }
.pi a { color: var(--accent); }
@media (max-width: 640px) { .pi { grid-template-columns: 1fr; } .pi-photo { max-width: 260px; } }

.timeline { list-style: none; margin-top: 18px; }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.timeline .meta { padding-top: 2px; font-size: 14px; }
.timeline-sm { margin-top: 8px; }
.timeline-sm li { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.timeline-sm .meta { font-size: 13px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 40px 24px; padding-top: 8px; }
.member { display: flex; flex-direction: column; }
.member-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; background: var(--surface-2); margin-bottom: 12px; }
.member-name { font: 600 20px/1.25 var(--serif); margin: 0 0 4px; }
.member-role { margin: 0 0 4px; font: 600 13px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.member-email { margin: 0; font: 400 14.5px/1.4 var(--sans); overflow-wrap: anywhere; }
.member-email a { color: var(--muted); text-decoration: none; }
.member-email a:hover { color: var(--ink); text-decoration: underline; }
.member-cv { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.member-cv summary { cursor: pointer; display: flex; justify-content: space-between; list-style: none; font: 600 14.5px var(--sans); color: var(--ink-2); }
.member-cv summary::-webkit-details-marker { display: none; }
.member-cv summary::after { content: "+"; color: var(--accent); }
.member-cv[open] summary::after { content: "−"; }
@media (max-width: 560px) {
  .member-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .member-name { font-size: 17px; }
  .timeline-sm li { grid-template-columns: 1fr; gap: 0; }
}

.phd-section { padding-block: clamp(40px, 6vw, 64px) 8px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); }
.section-lead { margin: -16px 0 24px; color: var(--ink-2); }
.thesis-grid.thesis-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 28px 24px; padding-bottom: 0; }
.thesis-grid-compact .thesis-title { font-size: 17px; }
.thesis-grid-compact .thesis img { margin-bottom: 6px; }
.alumni { padding-block: clamp(32px, 5vw, 48px) 72px; }
.alumni-group { margin: 36px 0 10px; font: 600 13.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.alumni .section-title + .alumni-group { margin-top: 0; }
.name-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.name-list li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.name-list strong { font-weight: 600; }
.name-list span { margin-top: 2px; font: 400 14.5px/1.45 var(--sans); color: var(--muted); }

.link-card {
  display: block; margin-block: clamp(40px, 6vw, 64px); padding: 26px 30px;
  background: var(--surface-2); border-left: 2px solid var(--accent); text-decoration: none;
}
.link-card .eyebrow { display: block; margin: 0 0 4px; }
.link-card-title { font: 600 clamp(24px, 3vw, 32px)/1.2 var(--serif); }
.link-card:hover .link-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.thesis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 40px); padding-bottom: 72px; }
.thesis a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.thesis img { width: 100%; aspect-ratio: 17 / 24; object-fit: cover; margin-bottom: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, .14); transition: transform .25s; }
.thesis a:hover img { transform: translateY(-4px); }
.thesis-title { font: 600 18px/1.3 var(--serif); }
.thesis a:hover .thesis-title { text-decoration: underline; text-decoration-thickness: 1px; }
.thesis .meta { font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------------------ publications */

.pub-list { list-style: none; }
.pub { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pub-n { padding-top: 3px; font: 400 15px var(--sans); color: var(--muted); }
.pub-title { font: 600 19px/1.35 var(--serif); margin: 0 0 4px; }
.pub-cite { margin: 0; font: 400 15.5px/1.5 var(--sans); color: var(--muted); }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; }
.tag { font: 600 14.5px/1.4 var(--sans); color: var(--accent); text-decoration: none; }
.tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub[hidden], .pub-year[hidden] { display: none; }
@media (max-width: 560px) { .pub { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; } }

.pub-layout { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 72px; }
.pub-aside { position: relative; }
.year-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.year-nav a { padding: 2px 0; font: 400 15.5px var(--sans); color: var(--muted); text-decoration: none; }
.year-nav a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) { .pub-layout { grid-template-columns: 1fr; } .pub-aside { display: none; } }
.pub-search {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 8px;
  background: var(--bg); border: 1px solid #c9c5c0; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .12);
}
.pub-search:focus-within { border-color: var(--accent); }
.pub-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.pub-search input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--ink); font: 400 17px var(--sans); outline: none; }
.pub-search .meta { white-space: nowrap; }
@media (max-width: 520px) { .pub-search .meta { display: none; } }
.pub-year { padding-top: 32px; }
.pub-year .year-label { padding-bottom: 10px; }
.empty-note { padding: 32px 0; color: var(--muted); font-family: var(--sans); }

/* ------------------------------------------------------------------ awards, press */

.year-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.year-row:last-child { margin-bottom: 72px; }
.year-row .year-label { padding-top: 6px; }
@media (max-width: 640px) { .year-row { grid-template-columns: 1fr; gap: 4px; } }

.award-list { list-style: none; }
.award-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.year-row .award-list li:first-child { border-top: 0; }
.award-list .meta { padding-top: 3px; font: 600 13.5px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.award-list-lg li { font-size: 17.5px; }
@media (max-width: 520px) { .award-list li { grid-template-columns: 1fr; gap: 2px; } }

.press-list { list-style: none; }
.press-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.press-list li:first-child { border-top: 0; padding-top: 8px; }
.press-title { font: 600 18px/1.4 var(--serif); text-decoration: none; }
a.press-title:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ lab, about */

.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px 56px; padding-bottom: 72px; }
.lab-card { border-top: 2px solid var(--ink); padding-top: 14px; }
.lab-index { font-weight: 600; color: var(--accent); }
.lab-title { font: 600 26px/1.2 var(--serif); margin: 4px 0 14px; }
.lattice-list { list-style: none; }
.lattice-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.lattice-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 7px; height: 7px; background: var(--accent); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 80px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact-card { margin-top: 28px; padding: 22px 26px; background: var(--surface-2); border-left: 2px solid var(--accent); font: 400 17px/1.6 var(--sans); }
.contact-card .footer-title { color: var(--ink); }
.contact-card a { color: var(--accent); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ gallery, image viewer */

.gallery { columns: 3 300px; column-gap: 24px; padding-bottom: 72px; }
.gallery-item { break-inside: avoid; margin: 0 0 28px; }
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); overflow: hidden; cursor: zoom-in; }
.gallery-zoom img { width: 100%; height: auto; transition: transform .4s; }
.gallery-zoom:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding-top: 8px; font: 400 15px/1.45 var(--sans); color: var(--ink-2); }
.gallery-item figcaption a { text-decoration: none; }
.gallery-item figcaption a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 9, 9, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 72px 24px; max-width: 100%; }
.lb-img { max-width: min(92vw, 1600px); max-height: 80vh; object-fit: contain; background: #fff; }
.lb-caption { max-width: 60em; text-align: center; font: 400 15.5px/1.5 var(--sans); color: rgba(255, 255, 255, .86); }
.lb-caption a { color: #fff; font-weight: 600; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
@media (max-width: 640px) {
  .lb-figure { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ink); color: #d9d6d2; font: 400 15.5px/1.6 var(--sans); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.footer-name { margin: 0 0 8px; font: 400 26px/1.2 var(--serif); color: #fff; }
.footer-title { margin: 0 0 12px; font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.site-footer a { color: #d9d6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 28px; font-size: 14px; color: #a9a49f; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
