:root {
  --ink: #000000;
  --ink-2: #161616;
  --ink-3: #222222;
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --cream: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --line: rgba(0, 0, 0, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #8a8a8a;
  --accent-deep: #111111;
  --rose: #9b2335;
  --gold: #8a6d2b;
  --white: #ffffff;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --nav-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 10px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  background: var(--white) !important;
  color: var(--ink) !important;
  font-weight: 650 !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero .kicker {
  color: var(--muted);
}

.hero .kicker::before {
  background: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: #333;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.22);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--white);
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  mix-blend-mode: multiply;
}

.float-scripts {
  position: absolute;
  inset: auto auto -18px -18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 70%;
}

.glyph {
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
  animation: float 7s ease-in-out infinite;
}

.glyph:nth-child(2) { animation-delay: 0.6s; }
.glyph:nth-child(3) { animation-delay: 1.2s; }
.glyph:nth-child(4) { animation-delay: 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.script-ticker {
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 38s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.eyebrow {
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 8px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

/* ---------- Theme cards ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.theme-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 210px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.theme-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.theme-body h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.theme-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-deep);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink-2);
  padding: 32px 22px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
  color: var(--white);
}

.stat span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.quote {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 28px 32px;
}

.quote p {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

.quote small {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Sponsors ---------- */
.sponsors {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  align-items: center;
}

.logo-row img {
  max-height: 42px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  transition: filter 0.2s, opacity 0.2s;
}

.logo-row img:hover {
  filter: none;
  opacity: 1;
}

.sponsor-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Contact band ---------- */
.contact-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 36px;
}

.contact-band h2 {
  color: var(--white);
}

.contact-meta {
  color: rgba(255, 255, 255, 0.7);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  border: 1px solid var(--line-dark);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 28px 0 36px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a:hover {
  color: var(--white);
}

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 36px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 40rem;
  margin: 0;
}

/* ---------- Team ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  align-items: center;
}

.filter-btn,
.search {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.search {
  min-width: 220px;
  margin-left: auto;
}

.team-block {
  margin-bottom: 48px;
}

.team-block h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.person-lead {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.person-lead .photo {
  aspect-ratio: auto;
  min-height: 260px;
  height: 100%;
}

.person-lead .person-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.person-lead .person-body h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.person-lead .topics {
  font-size: 0.95rem;
  max-width: 54ch;
  margin-bottom: 16px;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.person {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.person.hidden {
  display: none;
}

.photo {
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: linear-gradient(160deg, #d9d3c7, #b9b2a4);
  position: relative;
}

.person:hover .photo img {
  transform: scale(1.04);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(26, 167, 214, 0.25), transparent 50%),
    #d7d0c3;
}

.person-body {
  padding: 14px 14px 16px;
}

.person-body h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  font-family: var(--font-display);
}

.role {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.topics {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0 0 10px;
}

.links {
  display: flex;
  gap: 8px;
}

.links a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}

/* ---------- Research deep ---------- */
.research-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.research-block img {
  width: 100%;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.research-block h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.research-block p {
  color: var(--muted);
  margin-top: 0;
}

.theme-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.theme-projects a {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--radius);
}

.theme-projects a:hover {
  border-color: var(--ink);
}

.theme-projects h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.theme-projects p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-projects .more {
  display: inline-block;
  margin-top: 8px;
}

.theme-label {
  margin: 20px 0 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.theme-items a {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--radius);
}

.theme-items a.resource {
  background: transparent;
  border-style: dashed;
}

.theme-items a:hover {
  border-color: var(--ink);
}

.theme-items .kind {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.theme-items h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-family: var(--font-serif);
}

.theme-items p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-items .more {
  display: inline-block;
  margin-top: 8px;
}

.theme-other {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.theme-other > h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-other > p {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.theme-other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-other-grid article {
  background: transparent;
  border: 1px dashed var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
}

.theme-other-grid h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-family: var(--font-serif);
}

.theme-other-grid p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.theme-other-grid .res-links {
  margin-top: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.crumbs a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs .sep {
  opacity: 0.45;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}

.fact-row > div {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.fact-row dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.fact-row dd {
  margin: 4px 0 0;
  font-weight: 650;
  color: var(--ink);
}

.fact-row a {
  color: var(--accent-deep);
}

.res-group {
  margin: 0 0 40px;
}

.portal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 650;
}

.portal-jump a {
  color: var(--accent-deep);
}

.portal-jump a:hover {
  text-decoration: underline;
}

.res-group > h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.res-group > p.lede {
  margin: 0 0 14px;
}

.res-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.res-entry:first-of-type {
  border-top: 1px solid var(--line);
}

.res-entry h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  font-family: var(--font-serif);
}

.res-entry p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: none;
}

.res-entry .res-links {
  margin-top: 0;
}

.proj-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
  font-size: 0.92rem;
}

.proj-nav a {
  color: var(--accent-deep);
  font-weight: 650;
}

/* ---------- Academic lists / tables ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}

.project-card h2,
.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.project-card p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.pub-list .title {
  font-weight: 650;
}

.pub-list .venue {
  color: var(--accent-deep);
  font-style: italic;
}

.year-label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 28px 0 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table a {
  color: var(--accent-deep);
  font-weight: 650;
}

.data-table th {
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-list li > a {
  color: var(--accent-deep);
  font-weight: 650;
  font-size: 0.88rem;
  white-space: nowrap;
}

.project-card .more {
  display: inline-block;
  margin-top: 4px;
}

.data-table tr:nth-child(even) td {
  background: var(--paper-2);
}

.award-group h3 {
  font-family: var(--font-serif);
  margin: 28px 0 10px;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li {
  margin: 0 0 10px;
  color: var(--text);
}

.plain-list small {
  display: block;
  color: var(--muted);
}

.compute-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.compute-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 18px;
  text-align: center;
}

.compute-card b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.compute-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a {
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.88rem;
}

.res-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  vertical-align: middle;
}

.res-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--accent-deep);
  white-space: nowrap;
}

.res-links a:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.pub-list li .res-links,
.stack-block .res-links,
.project-card .res-links,
.research-block .res-links {
  display: flex;
  margin-top: 6px;
}

.data-table .res-links {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.stack-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.stack-block h2 {
  font-size: 1.55rem;
  margin: 0 0 10px;
}

.stack-block p {
  color: var(--muted);
  max-width: 46rem;
}

.page-hero a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.section.alt {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .about-grid,
  .contact-band,
  .research-block,
  .theme-card,
  .project-grid,
  .theme-projects,
  .theme-items,
  .theme-other-grid,
  .fact-row,
  .compute-grid,
  .person-lead {
    grid-template-columns: 1fr;
  }

  .person-lead .photo {
    aspect-ratio: 1 / 1.05;
    min-height: 0;
    max-height: 340px;
  }

  .theme-card img {
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 12px auto 12px;
    display: none;
    flex-direction: column;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: 16px;
    padding: 12px;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .search {
    margin-left: 0;
    width: 100%;
  }

  .brand-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero-grid {
    padding: 48px 0 64px;
  }

  .contact-band {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .glyph, .ticker-track {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
