:root {
  --font-site: "Montserrat", "Avenir Next Condensed", "Avenir Next", "SF Compact", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --cream: #f3f0e7;
  --cream-soft: #faf8f2;
  --ink: #08342e;
  --ink-muted: #365c56;
  --green: #16cd8b;
  --yellow: #fdcd30;
  --cyan: #01bcdb;
  --coral: #f64945;
  --paper: #fffdf8;
  --line: rgba(8, 52, 46, 0.16);
  --shadow: 0 18px 60px rgba(8, 52, 46, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-site);
  scroll-behavior: smooth;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream-soft);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 231, 0.94);
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  bottom: -1px;
  left: clamp(1rem, 4vw, 3rem);
  width: clamp(8rem, 15vw, 13rem);
  height: 0.35rem;
  background: linear-gradient(110deg, var(--cyan) 0 24%, var(--green) 24% 48%, var(--yellow) 48% 72%, var(--coral) 72% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 24rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 78px;
  height: 52px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.brand small,
.site-footer p {
  color: var(--ink-muted);
}

.desktop-nav,
.mobile-nav nav,
.site-footer nav,
.link-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a,
.link-row a {
  border-radius: 6px;
  padding: 0.48rem 0.68rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.link-row a:hover {
  background: rgba(8, 52, 46, 0.08);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0.52rem 0.75rem;
  font-weight: 800;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: min(82vw, 19rem);
  align-items: stretch;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 0.6rem;
}

.hero {
  --section-bg: #f1eee5;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(24rem, 1.22fr);
  grid-template-areas:
    "heading heading"
    "copy art";
  align-items: center;
  column-gap: clamp(2rem, 7vw, 6rem);
  row-gap: 1.5rem;
  width: min(var(--max), calc(100% - 2rem));
  min-height: min(720px, calc(100svh - 5.5rem));
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero::before,
.intro-band::before,
.one-page-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--section-bg, transparent);
  content: "";
}

#home,
#news,
#teaching,
.one-page-section,
.research-cluster,
.project-card {
  scroll-margin-top: 6rem;
}

.hero-heading {
  grid-area: heading;
  max-width: none;
}

.hero-heading h1 {
  margin-bottom: 0;
  max-width: 100%;
  font-size: clamp(3.4rem, 5.4vw, 4.85rem);
}

.hero-copy {
  grid-area: copy;
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5.8vw, 4.75rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-question,
.page-lede,
.wide-copy {
  max-width: 74ch;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-lede,
.section p,
.prose p,
.prose li {
  color: var(--ink-muted);
}

.actions,
.link-row {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 0.72rem 1rem;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--cream);
}

.button-secondary {
  background: rgba(255, 250, 241, 0.75);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art {
  grid-area: art;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22rem;
}

.hero-art .signal-visual {
  width: min(100%, 40rem);
}

.hero-logo-frame {
  width: min(100%, 36rem);
  filter: drop-shadow(0 18px 24px rgba(8, 52, 46, 0.16));
}

.hero-logo-frame img {
  width: 100%;
  height: auto;
}

.signal-visual {
  overflow: visible;
}

.signal-visual text {
  font-family: var(--font-site);
}

.page-hero {
  position: relative;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero::before {
  display: block;
  width: 4rem;
  height: 0.45rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--theme-color, var(--ink));
  content: "";
}

.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.15rem, 3.7vw, 3.35rem);
}

.page-hero .page-lede {
  max-width: 72ch;
  margin-bottom: 0;
}

.hero > *,
.page-hero > *,
.intro-band > *,
.methods-strip > *,
.contact-cta > *,
.split-layout > * {
  min-width: 0;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5.4rem) 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 54rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.one-page-section {
  --section-accent: var(--ink);
  --section-bg: #f8f6ef;
  position: relative;
  isolation: isolate;
}

#research {
  --section-accent: var(--cyan);
}

#people {
  --section-accent: var(--coral);
  --section-bg: #e7f0ed;
}

#publications {
  --section-accent: var(--yellow);
  --section-bg: #f2ecd9;
}

#software {
  --section-accent: var(--green);
  --section-bg: #e1ebe5;
}

#contact {
  --section-accent: var(--coral);
  --section-bg: #123b35;
  color: var(--cream-soft);
}

.one-page-section > .section-heading {
  border-left: 0.45rem solid var(--section-accent);
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
}

.section-heading-icon {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.one-page-section > .section-heading-icon,
.teaching-block .section-heading-icon {
  border-left: 0;
  padding-left: 0;
}

.section-icon {
  display: grid;
  width: 4rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--section-accent);
  background: color-mix(in srgb, var(--section-accent) 11%, var(--paper));
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 0.6rem) 0, 100% 0.6rem, 100% 100%, 0.6rem 100%, 0 calc(100% - 0.6rem));
  padding: 0.85rem;
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

.intro-band {
  --section-bg: #dfe9e5;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.intro-heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.intro-copy {
  max-width: 44rem;
  border-left: 0.45rem solid var(--cyan);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.intro-copy p {
  margin-bottom: 0.8rem;
  font-size: 1.08rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.news-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  background: var(--ink);
  color: var(--cream-soft);
  padding: clamp(2.4rem, 5vw, 4rem) max(1rem, calc((100% - var(--max)) / 2));
}

.news-strip::before {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(11rem, 24vw, 20rem);
  height: 0.75rem;
  background: linear-gradient(110deg, var(--cyan) 0 22%, var(--green) 22% 46%, var(--yellow) 46% 70%, var(--coral) 70% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.25rem) 100%, 0 100%);
  content: "";
}

.news-heading {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.news-icon {
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.05);
  color: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 0.65rem) 0, 100% 0.65rem, 100% 100%, 0.65rem 100%, 0 calc(100% - 0.65rem));
  padding: 1rem;
}

.news-icon svg {
  width: 100%;
  height: 100%;
}

.news-strip h2,
.news-strip p {
  margin-bottom: 0;
}

.news-strip h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.news-strip .eyebrow {
  color: var(--yellow);
}

.news-copy {
  max-width: 44rem;
}

.news-copy span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-copy p {
  color: var(--cream-soft);
  font-size: 1.08rem;
}

.research-theme-explorer {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.research-theme-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.research-theme-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.9rem;
  min-height: 20rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  padding: 1.15rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.research-theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-color);
}

.research-theme-card[aria-expanded="true"] {
  border-color: var(--theme-color);
  background: color-mix(in srgb, var(--theme-color) 9%, var(--paper));
  box-shadow: inset 0 0 0 2px var(--theme-color), 0 10px 24px rgba(8, 52, 46, 0.1);
}

.research-theme-visual {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  border-bottom: 0.4rem solid var(--theme-color);
  background: color-mix(in srgb, var(--theme-color) 13%, var(--paper));
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.8rem), calc(100% - 0.8rem) 100%, 0 100%);
}

.research-theme-visual svg {
  width: 4.8rem;
  height: 4.8rem;
}

.research-theme-title {
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
}

.research-theme-question {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.research-theme-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.research-theme-action::after {
  color: var(--theme-color);
  font-size: 1.3rem;
  line-height: 1;
  content: "+";
}

.research-theme-card[aria-expanded="true"] .research-theme-action::after {
  content: "−";
}

.research-theme-panel[hidden] {
  display: none;
}

.research-theme-panel {
  margin-top: 1.25rem;
  border-top: 0.45rem solid var(--theme-color);
  background: rgba(255, 253, 248, 0.72);
  padding: clamp(1.3rem, 3vw, 2rem);
  animation: reveal-theme-panel 220ms ease both;
}

.research-theme-panel-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.research-theme-panel-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.research-theme-panel-heading > p {
  max-width: 64ch;
}

.research-theme-panel .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

@keyframes reveal-theme-panel {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-grid,
.project-grid,
.software-grid,
.resource-grid {
  display: grid;
  gap: 1rem;
}

.theme-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-themes {
  padding-top: clamp(2rem, 4vw, 3.4rem);
}

.research-themes .theme-card {
  min-height: 16rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.software-grid,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-card,
.project-card,
.software-card,
.resource-item,
.student-project,
.person-profile,
.side-panel,
.contact-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 1px 0 rgba(8, 52, 46, 0.05);
}

.theme-card {
  min-height: 18rem;
}

.theme-card a,
.software-card,
.resource-item,
.student-project,
.person-profile,
.side-panel,
.contact-block {
  display: block;
  height: 100%;
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
  text-decoration: none;
}

.project-card {
  display: block;
  height: auto;
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

.project-disclosure {
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.project-disclosure summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.project-disclosure summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-disclosure .less-label,
.project-disclosure[open] .more-label {
  display: none;
}

.project-disclosure[open] .less-label {
  display: inline;
}

.project-details {
  padding-top: 0.9rem;
}

.project-details > p:last-child {
  margin-bottom: 0;
}

.section-actions {
  margin-top: 1.5rem;
}

.theme-card,
.project-card,
.software-card,
.resource-item,
.student-project,
.compact-item {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-card:hover,
.project-card:hover,
.software-card:hover,
.resource-item:hover,
.student-project:hover,
.compact-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-color, var(--ink)) 65%, var(--line));
}

.theme-marker {
  display: block;
  width: 3.6rem;
  height: 0.42rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--theme-color);
}

.question {
  color: var(--ink);
  font-weight: 800;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.status,
.theme-pill,
.student-project span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color, var(--cyan)) 18%, var(--paper));
  color: var(--ink);
  padding: 0.25rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.theme-pill {
  background: var(--paper);
}

.method-list,
.method-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.method-list li,
.method-strip-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.76);
  padding: 0.34rem 0.58rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.method-list.small li {
  font-size: 0.78rem;
}

.methods-strip,
.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.contact-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.assistant-profile,
.contact-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.person-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  padding: 1.25rem;
}

.person-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.person-card-copy h3 {
  margin-bottom: 0.45rem;
  font-size: 1.7rem;
}

.person-projects {
  margin-top: 1.5rem;
}

.workshop-band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-left: 0.45rem solid var(--yellow);
  border-bottom: 1px solid var(--line);
  background: rgba(253, 205, 48, 0.1);
  padding: 2rem clamp(1rem, 2.5vw, 1.5rem);
}

.workshop-band h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.workshop-topics {
  margin-top: 0;
}

.teaching-block {
  margin-top: 3rem;
}

.teaching-block .section-heading {
  margin-bottom: 1.5rem;
  border-left: 0.45rem solid var(--green);
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
}

#contact .eyebrow {
  color: var(--yellow);
}

#contact .section-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream-soft);
}

#contact .link-row a {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--cream-soft);
  color: var(--ink);
}

#contact .contact-details {
  border-color: rgba(255, 255, 255, 0.22);
}

#contact .contact-email,
#contact .contact-details p {
  color: var(--cream-soft);
}

#contact .contact-profile > div > p:not(.eyebrow) {
  color: rgba(250, 248, 242, 0.78);
}

.student-projects-block {
  margin-top: 2.5rem;
}

.publication-panel {
  max-width: 52rem;
}

.teaching-list {
  border-top: 1px solid var(--line);
}

.teaching-disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

.teaching-disclosure > summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 1.2rem clamp(0.8rem, 2vw, 1.25rem);
}

.teaching-disclosure > summary::-webkit-details-marker {
  display: none;
}

.teaching-summary-copy {
  display: grid;
  gap: 0.15rem;
}

.teaching-summary-copy strong {
  font-size: 1.2rem;
}

.teaching-summary-copy small {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.teaching-toggle {
  min-width: 8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.teaching-close-label,
.teaching-disclosure[open] .teaching-open-label {
  display: none;
}

.teaching-disclosure[open] .teaching-close-label {
  display: inline;
}

.teaching-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(0.8rem, 2vw, 1.25rem);
}

.teaching-group > h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.teaching-item {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.teaching-item h4,
.teaching-item p {
  margin-bottom: 0;
}

.teaching-item h4 {
  font-size: 1rem;
}

.teaching-item h4 span {
  color: var(--ink-muted);
  font-size: 0.88em;
  font-weight: 500;
}

.teaching-item p {
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.software-card h3 {
  margin-top: 1rem;
}

.software-card > p {
  max-width: 48ch;
}

.contact-profile h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.people-overview .person-profile,
.people-overview .side-panel {
  height: auto;
}

.people-overview {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.52fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.people-overview .side-panel h2 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.assistant-profile h2,
.contact-profile h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.contact-details {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  font-style: normal;
}

.contact-email {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.theme-detail {
  align-items: stretch;
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.1rem;
}

.side-panel {
  position: sticky;
  top: 6rem;
}

.compact-list,
.people-project-list {
  display: grid;
  gap: 0.75rem;
}

.compact-item {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.7);
  padding: 0.85rem;
  text-decoration: none;
}

.compact-item span,
.attribution {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.person-profile h2,
.contact-block h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.role {
  color: var(--ink);
  font-weight: 900;
}

.student-links {
  margin-top: 1rem;
}

.student-project h3 {
  margin: 0.75rem 0 0.35rem;
}

.link-row a {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.7);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
}

.site-footer p {
  margin-bottom: 0.3rem;
}

.dev-placeholder {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto;
  border: 1px dashed var(--coral);
  border-radius: 8px;
  background: rgba(246, 73, 69, 0.08);
  padding: 1rem;
  color: var(--ink);
}

.has-js .home .reveal-item {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 600ms ease var(--reveal-delay, 0ms),
    transform 600ms ease var(--reveal-delay, 0ms);
}

.has-js .home .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .theme-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-theme-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 15rem;
  }

  .brand small {
    display: none;
  }

  .hero,
  .page-hero,
  .section,
  .methods-strip,
  .contact-cta,
  .site-footer {
    width: calc(100vw - 2rem);
  }

  .hero,
  .intro-band,
  .news-strip,
  .methods-strip,
  .contact-cta,
  .split-layout,
  .assistant-profile,
  .contact-profile,
  .software-grid,
  .resource-grid,
  .theme-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .news-strip {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .news-heading {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .section-heading-icon {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .section-icon {
    width: 3.25rem;
    padding: 0.65rem;
  }

  .news-icon {
    width: 4rem;
    padding: 0.75rem;
  }

  .research-theme-tabs {
    display: flex;
    width: calc(100vw - 2rem);
    margin-right: calc(50% - 50vw + 1rem);
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
  }

  .research-theme-card {
    flex: 0 0 min(82vw, 18rem);
    min-height: 19rem;
    scroll-snap-align: start;
  }

  .research-theme-panel-heading,
  .research-theme-panel .project-grid,
  .people-grid,
  .workshop-band,
  .teaching-groups {
    grid-template-columns: 1fr;
  }

  .teaching-disclosure > summary {
    align-items: flex-start;
  }

  .person-card {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .hero {
    grid-template-areas:
      "heading"
      "art"
      "copy";
    min-height: auto;
  }

  .hero-heading h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-art {
    min-height: 18rem;
  }

  .intro-copy {
    border-top: 0.45rem solid var(--cyan);
    border-left: 0;
    padding-top: 1.25rem;
    padding-left: 0;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
  }

  .page-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.75rem);
  }

  .contact-cta {
    align-items: start;
  }

  .side-panel {
    position: static;
  }

  .contact-details {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .hero > *,
  .page-hero > *,
  .intro-band > *,
  .methods-strip > *,
  .contact-cta > *,
  .split-layout > * {
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .person-card {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 7.5rem;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .has-js .home .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
