:root {
  --ink: #10211d;
  --muted: #667770;
  --line: rgba(16, 33, 29, 0.12);
  --paper: #fbfcf8;
  --white: #ffffff;
  --mist: #eef6f2;
  --leaf: #13795b;
  --leaf-dark: #0b5644;
  --sky: #dbeff5;
  --gold: #c99538;
  --shadow: 0 14px 36px rgba(22, 49, 42, 0.08);
  --shadow-hover: 0 18px 44px rgba(22, 49, 42, 0.12);
  --container: 1200px;
  --gutter: 24px;
  --section-y: 72px;
  --radius: 10px;
  --list-media-width: 260px;
  --list-media-height: 190px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

img.is-broken {
  display: none;
}

.card-media {
  display: block;
  width: 100%;
  background: var(--mist);
  object-position: center;
}

.card-media--hero,
.card-media--wide,
.card-media--research,
.card-media--news,
.card-media--resource {
  object-fit: cover;
}

.card-media--avatar {
  object-fit: cover;
}

.main-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 68px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(251, 252, 248, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-school-lockup {
  display: block;
  flex: 0 1 420px;
  width: clamp(300px, 34vw, 520px);
  min-width: 280px;
}

.brand-school-lockup img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(22, 49, 42, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.brand strong,
.brand small,
footer span {
  display: block;
}

.brand strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand small,
.desktop-nav a,
.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.desktop-nav a {
  color: var(--ink);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-button,
.menu-button,
.admin-actions button {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.menu-button {
  display: none;
  width: 40px;
  padding: 0;
}

.ghost-button:hover,
.menu-button:hover,
.admin-actions button:hover,
.ghost-button:focus-visible,
.menu-button:focus-visible,
.admin-actions button:focus-visible {
  border-color: color-mix(in srgb, var(--leaf) 48%, var(--line));
  background: var(--white);
  box-shadow: 0 10px 24px rgba(22, 49, 42, 0.12);
  color: var(--leaf-dark);
  outline: 0;
  transform: translateY(-1px);
}

.ghost-button:active,
.menu-button:active,
.admin-actions button:active {
  box-shadow: 0 6px 14px rgba(22, 49, 42, 0.1);
  transform: translateY(0);
}

.mobile-drawer {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 56px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.84) 40%, rgba(251, 252, 248, 0.16) 82%),
    linear-gradient(180deg, rgba(251, 252, 248, 0.16) 0%, rgba(251, 252, 248, 0.92) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-lab-name {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-bottom: 36px;
  color: var(--leaf-dark);
}

.hero-lab-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: min(640px, 100%);
  max-width: 100%;
}

.hero-lab-mark {
  display: grid;
  flex: 0 0 auto;
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-lab-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-lab-name strong {
  display: block;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-lab-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-lab-name span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.eyebrow,
.section-kicker {
  color: var(--leaf);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

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

li {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 {
  max-width: min(1120px, 100%);
}

h2 {
  margin-bottom: 16px;
  font-size: 2.45rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: min(1120px, 100%);
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.hero-stats,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.button::after {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  content: "→";
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
  box-shadow: 0 12px 30px rgba(11, 86, 68, 0.24);
}

.primary::after {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.secondary {
  border-color: color-mix(in srgb, var(--leaf) 26%, var(--line));
  background: color-mix(in srgb, var(--white) 78%, transparent);
  color: var(--leaf-dark);
}

.secondary::after {
  background: color-mix(in srgb, var(--leaf) 10%, transparent);
  color: var(--leaf-dark);
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.primary:hover,
.primary:focus-visible {
  border-color: var(--leaf);
  background: var(--leaf);
  box-shadow: 0 16px 34px rgba(11, 86, 68, 0.28);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--leaf);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(22, 49, 42, 0.12);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(3px);
}

.primary:hover::after,
.primary:focus-visible::after {
  background: rgba(255, 255, 255, 0.24);
}

.secondary:hover::after,
.secondary:focus-visible::after {
  background: var(--leaf-dark);
  color: white;
}

.button:active {
  box-shadow: 0 8px 18px rgba(22, 49, 42, 0.12);
  transform: translateY(0);
}

.wide {
  width: 100%;
}

.hero-stats {
  margin-top: 48px;
}

.hero-stats div {
  width: min(220px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 74%, transparent);
  box-shadow: var(--shadow);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--leaf-dark);
  font-size: 1.35rem;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

section {
  padding: var(--section-y) 0;
}

.band {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 54px var(--gutter) 30px;
}

.split > div,
.split > p {
  max-width: 860px;
}

.split > p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.media-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 28px var(--gutter) var(--section-y);
}

.media-section > .card-media,
.join-page > .card-media {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-section > .card-media--wide {
  aspect-ratio: 16 / 7;
  max-height: 520px;
}

.media-section .card-grid.three {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.research-preview-grid {
  align-items: stretch;
}

.research-preview-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}

.research-preview-card > .card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--mist);
}

.research-preview-card > div {
  padding: 22px 24px 24px;
}

.featured-papers-section {
  padding-top: 54px;
}

.home-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 16px;
}

.home-paper-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 86%, transparent);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.home-paper-card span {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 900;
}

.home-paper-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.home-paper-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.content-section > .section-head,
.content-section > .card-grid,
.content-section > .member-grid,
.content-section > .resource-grid,
.alumni-section > .section-head,
.alumni-section > .alumni-group,
.featured-papers-section > .section-head,
.contact-section {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-grid article,
.member-card,
.paper-row,
.news-card,
.resource-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 82%, transparent);
  box-shadow: var(--shadow);
}

.card-grid article {
  padding: 24px 58px 24px 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card-grid article,
.member-card,
.paper-row.is-static,
.news-card.is-static,
.resource-card.is-static,
.home-paper-card.is-static {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--white) 88%, transparent), color-mix(in srgb, var(--mist) 30%, var(--white))),
    color-mix(in srgb, var(--white) 82%, transparent);
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable {
  position: relative;
  border-color: color-mix(in srgb, var(--leaf) 34%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--leaf) 7%, transparent), transparent 32%),
    color-mix(in srgb, var(--white) 92%, transparent);
  cursor: pointer;
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable::before {
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--leaf);
  content: "";
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable::after {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--leaf) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  color: var(--leaf-dark);
  content: "↗";
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable:hover,
:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable:focus-visible {
  border-color: var(--leaf);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--leaf) 11%, transparent), transparent 34%),
    var(--white);
  box-shadow: var(--shadow-hover);
  outline: 0;
  transform: translateY(-2px);
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable:hover::after,
:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-clickable:focus-visible::after {
  background: var(--leaf-dark);
  color: var(--white);
  transform: translate(2px, -2px);
}

:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-static {
  cursor: default;
}

.card-grid article:hover,
.member-card:hover,
:where(.home-paper-card, .paper-row, .news-card, .resource-card).is-static:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4faf6 62%, #e8f4f7 100%);
}

.page-hero div {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-hero .eyebrow {
  font-size: 1rem;
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1.12;
}

.page-hero p:last-child {
  max-width: 100%;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.home-feature-copy {
  max-width: 100%;
  font-size: 1rem;
}

.split > .home-feature-copy {
  max-width: 100%;
  font-size: 1rem;
}

.content-section {
  padding-block: 56px;
}

.compact-section {
  padding-bottom: 0;
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 820px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-card {
  display: flex;
  gap: 18px;
  min-width: 0;
  min-height: 132px;
  padding: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pi-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--container);
  margin-inline: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.pi-photo .card-media,
.pi-photo .avatar-fallback {
  width: 180px;
  height: 180px;
  border: 3px solid var(--mist);
  border-radius: 50%;
  object-fit: cover;
}

.pi-body h2 {
  margin-bottom: 8px;
}

.pi-body {
  min-width: 0;
}

.pi-body h2 span {
  color: var(--muted);
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.pi-body .role {
  color: var(--leaf);
  font-weight: 800;
}

.pi-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.pi-columns h3 {
  color: var(--ink);
}

.pi-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pi-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pi-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--leaf-dark);
  font-size: 0.875rem;
  font-weight: 800;
}

.member-card .card-media,
.avatar-fallback {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border: 2px solid var(--mist);
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--leaf);
  font-size: 1.5rem;
  font-weight: 800;
}

.member-card h3 span {
  color: var(--muted);
  font-weight: 500;
}

.member-card .role {
  margin-bottom: 4px;
  color: var(--leaf);
  font-weight: 800;
}

.member-card .destination {
  color: var(--ink);
  font-weight: 700;
}

.member-card p,
.member-card a {
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.member-details {
  display: grid;
  gap: 4px;
  margin: 8px 0 6px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.member-card a {
  display: inline-block;
  color: var(--leaf-dark);
  overflow-wrap: anywhere;
}

.alumni-section {
  background: var(--white);
}

.alumni-group {
  margin-top: 28px;
}

.alumni-group > h3 {
  color: var(--leaf-dark);
}

.paper-list {
  display: grid;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.filter-panel {
  display: grid;
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
  border: 0;
  background: transparent;
}

.filter-block {
  display: grid;
  gap: 10px;
}

.filter-block > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group button {
  position: relative;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.chip-group button:hover,
.chip-group button:focus-visible {
  border-color: color-mix(in srgb, var(--leaf) 46%, var(--line));
  background: var(--white);
  box-shadow: 0 8px 18px rgba(22, 49, 42, 0.1);
  color: var(--leaf-dark);
  outline: 0;
  transform: translateY(-1px);
}

.chip-group button.active {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
}

.chip-group button:active {
  box-shadow: none;
  transform: translateY(0);
}

.tab-strip {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  max-width: var(--container);
  margin: -16px auto 24px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.tab-strip button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 160ms ease, transform 120ms ease;
}

.tab-strip button:hover,
.tab-strip button:focus-visible {
  color: var(--leaf-dark);
  outline: 0;
  transform: translateY(-1px);
}

.tab-strip button.active {
  color: var(--leaf-dark);
}

.tab-strip button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--leaf-dark);
  content: "";
}

.paper-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  padding: 22px 58px 22px 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.paper-row div,
.paper-row p,
.paper-row strong,
.pi-body p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.paper-row > div {
  max-width: 860px;
}

.paper-row > span {
  color: var(--gold);
  font-weight: 900;
}

.paper-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.news-row p {
  margin-bottom: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 22px auto 0;
  padding-inline: var(--gutter);
}

.pagination span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.pagination .pagination-ellipsis {
  display: inline-grid;
  min-width: 34px;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.pagination div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pagination button {
  position: relative;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 86%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.pagination button:not(:disabled):hover,
.pagination button:not(:disabled):focus-visible {
  border-color: color-mix(in srgb, var(--leaf) 48%, var(--line));
  background: var(--white);
  box-shadow: 0 8px 18px rgba(22, 49, 42, 0.1);
  color: var(--leaf-dark);
  outline: 0;
  transform: translateY(-1px);
}

.pagination button.active {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
}

.pagination button:not(:disabled):active {
  box-shadow: none;
  transform: translateY(0);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-list em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--leaf-dark);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 800;
}

.timeline {
  display: grid;
  max-width: var(--container);
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-inline: var(--gutter);
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--list-media-width) minmax(0, 1fr);
  min-height: var(--list-media-height);
  overflow: hidden;
  padding: 0;
}

.news-card .card-media,
.resource-card .card-media {
  width: 100%;
  height: var(--list-media-height);
  min-height: var(--list-media-height);
  aspect-ratio: 13 / 9.5;
  object-position: center;
  background: var(--mist);
}

.news-card .card-media {
  object-fit: cover;
}

.resource-card .card-media {
  padding: 12px;
  background: var(--white);
  object-fit: contain;
}

.news-card > div {
  padding: 26px 58px 26px 30px;
}

.news-card:not(:has(img)) {
  grid-template-columns: 1fr;
}

.news-card span {
  color: var(--gold);
  font-weight: 900;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resource-grid.merged {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.resource-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--list-media-width) minmax(0, 1fr);
  min-height: var(--list-media-height);
  overflow: hidden;
}

.resource-grid.merged .resource-card {
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 230px;
}

.resource-grid.merged .resource-card .card-media {
  height: 230px;
  min-height: 230px;
  padding: 6px;
}

.resource-grid.merged .resource-card--wide-thumb .card-media {
  padding: 0;
  background: var(--white);
  object-fit: fill;
  object-position: center center;
}

.resource-card div {
  padding: 24px 58px 24px 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecf5f1;
    --muted: #afc0b8;
    --line: rgba(236, 245, 241, 0.16);
    --paper: #07130f;
    --white: #0e1d18;
    --mist: #132820;
    --leaf: #55c9a3;
    --leaf-dark: #8ee0c3;
    --sky: #16313a;
    --gold: #e0b767;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.46);
  }

  .site-header,
  .mobile-drawer {
    background: rgba(7, 19, 15, 0.92);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 19, 15, 0.94) 0%, rgba(7, 19, 15, 0.8) 42%, rgba(7, 19, 15, 0.2) 82%),
      linear-gradient(180deg, rgba(7, 19, 15, 0.24) 0%, rgba(7, 19, 15, 0.92) 100%);
  }

  .page-hero {
    background: linear-gradient(135deg, #07130f 0%, #0e1d18 62%, #10262b 100%);
  }

  .brand-school-lockup {
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
  }

  .brand-school-lockup img {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
  }

  footer {
    background: #050d0a;
  }
}

.join-page {
  display: grid;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 38px);
  align-items: start;
}

.join-page > .card-media--wide {
  aspect-ratio: 16 / 7;
  max-height: 500px;
}

.join-page > div {
  max-width: 860px;
  margin-inline: auto;
}

.join-page .card-grid {
  margin: 24px 0;
}

.compact-title {
  margin-top: 28px;
  font-family: Inter, "Noto Sans SC", sans-serif;
  font-size: 1.2rem;
}

.material-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.material-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--white) 78%, transparent);
  color: var(--muted);
}

.contact-section {
  display: grid;
  max-width: 620px;
  gap: 12px;
  margin: 40px auto 90px;
  padding: 28px;
}

.contact-section a:not(.button) {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--leaf-dark);
  font-weight: 800;
}

footer {
  display: grid;
  gap: 28px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(180px, 0.8fr));
  gap: 28px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

footer strong {
  display: block;
  color: white;
  margin-bottom: 6px;
}

footer a {
  display: block;
  color: white;
  margin-top: 7px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom a {
  margin-top: 0;
  opacity: 0.72;
}

.admin-page {
  padding: clamp(18px, 4vw, 48px);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 24px;
}

.admin-top div {
  max-width: 820px;
}

.admin-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-actions.sticky {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  gap: 10px;
  padding: 12px 0;
  background: var(--white);
}

.admin-actions .save {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
}

.admin-group {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-group summary {
  color: var(--leaf-dark);
  font-weight: 900;
  cursor: pointer;
}

.admin-group summary button,
.admin-array-item > button {
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 120ms ease;
}

.admin-group summary button:hover,
.admin-array-item > button:hover,
.admin-group summary button:focus-visible,
.admin-array-item > button:focus-visible {
  border-color: color-mix(in srgb, var(--leaf) 48%, var(--line));
  background: var(--white);
  box-shadow: 0 8px 18px rgba(22, 49, 42, 0.1);
  color: var(--leaf-dark);
  outline: 0;
  transform: translateY(-1px);
}

.admin-group summary button:active,
.admin-array-item > button:active {
  box-shadow: none;
  transform: translateY(0);
}

.admin-array-item {
  margin-top: 12px;
  padding: 12px;
  border-left: 3px solid var(--mist);
}

.admin-field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-field--checkbox {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-field--checkbox input {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--leaf-dark);
}

.admin-field textarea {
  min-height: 92px;
}

.admin-image-preview {
  overflow: hidden;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.admin-image-preview .card-media {
  width: 100%;
}

.admin-image-preview--hero,
.admin-image-preview--wide {
  max-width: 640px;
  aspect-ratio: 16 / 7;
}

.admin-image-preview--hero .card-media,
.admin-image-preview--wide .card-media {
  aspect-ratio: 16 / 7;
}

.admin-image-preview--research {
  aspect-ratio: 16 / 10;
}

.admin-image-preview--research .card-media {
  aspect-ratio: 16 / 10;
}

.admin-image-preview--news,
.admin-image-preview--resource,
.admin-image-preview--card {
  aspect-ratio: 13 / 9.5;
}

.admin-image-preview--news .card-media,
.admin-image-preview--resource .card-media,
.admin-image-preview--card .card-media {
  aspect-ratio: 13 / 9.5;
}

.admin-image-preview--avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.admin-image-preview--avatar .card-media {
  width: 96px;
  height: 96px;
}

.admin-preview-toolbar {
  position: fixed;
  z-index: 80;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(1120px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--leaf) 34%, var(--line));
  border-radius: 8px;
  background: rgba(251, 252, 248, 0.94);
  box-shadow: 0 18px 42px rgba(22, 49, 42, 0.18);
  color: var(--ink);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.admin-preview-toolbar strong {
  white-space: nowrap;
  color: var(--leaf-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.admin-preview-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-preview-toolbar select,
.admin-preview-toolbar button,
.admin-preview-toolbar .button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-preview-toolbar button,
.admin-preview-toolbar .button {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.admin-preview-toolbar button:hover,
.admin-preview-toolbar button:focus-visible,
.admin-preview-toolbar .button:hover,
.admin-preview-toolbar .button:focus-visible {
  border-color: color-mix(in srgb, var(--leaf) 48%, var(--line));
  background: var(--mist);
  box-shadow: 0 8px 18px rgba(22, 49, 42, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.admin-preview-toolbar .save {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
}

.admin-preview-toolbar .save:hover,
.admin-preview-toolbar .save:focus-visible {
  background: var(--leaf);
  color: white;
}

.admin-dock {
  position: fixed;
  z-index: 79;
  top: 74px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--leaf) 28%, var(--line));
  border-radius: 8px;
  background: rgba(251, 252, 248, 0.96);
  box-shadow: 0 22px 56px rgba(22, 49, 42, 0.2);
  backdrop-filter: blur(20px);
  transform: translateX(calc(100% + 24px));
  transition: transform 180ms ease;
}

.admin-dock.open {
  transform: translateX(0);
}

.admin-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--line);
}

.admin-dock-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-dock-head button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.admin-dock-note {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.admin-dock .admin-panel {
  max-width: none;
  margin: 0;
  overflow: auto;
  padding: 16px 18px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-dock .admin-group {
  background: rgba(255, 255, 255, 0.78);
}

.admin-preview-mode .admin-dock,
.admin-preview-mode .admin-preview-toolbar {
  letter-spacing: 0;
}

.editable-fragment,
.editable-media {
  position: relative;
}

.editable-media {
  display: block;
}

.admin-preview-mode .hero,
.admin-preview-mode .split,
.admin-preview-mode .page-hero,
.admin-preview-mode .content-section,
.admin-preview-mode .join-page,
.admin-preview-mode .contact-section,
.admin-preview-mode article {
  position: relative;
}

.inline-edit-button,
.inline-add-button,
.inline-delete-button,
.inline-move-actions button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  display: inline-grid;
  min-width: 34px;
  min-height: 24px;
  margin-left: 0;
  padding: 0 8px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--leaf) 42%, var(--line));
  border-radius: 999px;
  background: rgba(251, 252, 248, 0.94);
  box-shadow: 0 6px 16px rgba(22, 49, 42, 0.12);
  color: var(--leaf-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.inline-add-button {
  position: relative;
  top: auto;
  right: auto;
  min-width: 54px;
  margin: 8px 0 14px;
  background: var(--leaf-dark);
  color: white;
}

.admin-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.content-section > .inline-add-button,
.featured-papers-section > .inline-add-button {
  display: inline-grid;
  margin-left: auto;
  margin-right: 0;
}

.section-head .inline-add-button {
  margin: 0;
}

.inline-delete-button {
  top: 42px;
  border-color: color-mix(in srgb, #b42318 40%, var(--line));
  color: #b42318;
}

.inline-move-actions {
  position: absolute;
  top: 74px;
  right: 10px;
  z-index: 8;
  display: flex;
  gap: 6px;
  max-width: calc(100% - 20px);
}

.inline-move-actions button {
  position: relative;
  top: auto;
  right: auto;
  min-width: 42px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.68rem;
}

.editable-media > .inline-edit-button {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-left: 0;
}

.inline-edit-button:hover,
.inline-edit-button:focus-visible,
.inline-add-button:hover,
.inline-add-button:focus-visible,
.inline-delete-button:hover,
.inline-delete-button:focus-visible,
.inline-move-actions button:hover,
.inline-move-actions button:focus-visible {
  border-color: var(--leaf-dark);
  background: var(--white);
  outline: 0;
  transform: translateY(-1px);
}

.inline-edit-modal[hidden] {
  display: none;
}

.inline-edit-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
}

.inline-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 18, 0.32);
  backdrop-filter: blur(8px);
}

.inline-edit-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 48px));
  margin: 6vh auto 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--leaf) 32%, var(--line));
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 64px rgba(22, 49, 42, 0.24);
}

.inline-edit-head,
.inline-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.inline-edit-head {
  border-bottom: 1px solid var(--line);
}

.inline-edit-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.inline-edit-head button,
.inline-edit-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.inline-edit-head button {
  display: inline-grid;
  width: 36px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}

.inline-edit-body {
  overflow: auto;
  padding: 18px;
}

.inline-edit-grid {
  display: grid;
  gap: 14px;
}

.inline-edit-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.inline-edit-field input,
.inline-edit-field textarea,
.inline-edit-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.inline-edit-field textarea {
  min-height: 150px;
  resize: vertical;
}

.inline-edit-field--checkbox {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.inline-edit-field--checkbox input {
  width: 22px;
  height: 22px;
  padding: 0;
  accent-color: var(--leaf-dark);
}

.inline-edit-field--upload {
  margin-top: -8px;
}

.inline-edit-hint,
.inline-edit-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.inline-edit-preview {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.inline-edit-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.inline-edit-actions .save {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: white;
}

@media (max-width: 980px) {
  :root {
    --section-y: 60px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-drawer {
    position: fixed;
    z-index: 30;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 252, 248, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-drawer.open {
    display: grid;
  }

  .mobile-drawer a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
  }

  .split,
  .media-section,
  .join-page,
  .pi-card,
  .pi-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-preview-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: none;
    transform: none;
  }

  .admin-dock {
    top: 114px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lab-name strong {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .media-section .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three,
  .direction-grid,
  .home-paper-grid,
  .member-grid,
  .timeline,
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline,
  .resource-grid.merged {
    grid-template-columns: 1fr;
  }

  .news-card,
  .resource-card,
  .resource-grid.merged .resource-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-y: 48px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-school-lockup {
    width: min(58vw, 280px);
    min-width: 184px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 58vw;
  }

  .hero {
    min-height: auto;
    padding-block: 44px 40px;
    padding-top: 54px;
  }

  .hero-inner {
    max-width: 375px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 252, 248, 0.94) 0%, rgba(251, 252, 248, 0.86) 58%, rgba(251, 252, 248, 0.94) 100%);
  }

  h1 {
    font-size: 1.88rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-lab-name {
    gap: 0;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-lab-name strong {
    font-size: 1.28rem;
  }

  .hero-lab-name span {
    font-size: 0.875rem;
  }

  .hero-lab-lockup {
    gap: 12px;
    width: min(340px, 100%);
    max-width: 100%;
  }

  .hero-lab-mark {
    width: 64px;
    height: 64px;
  }

  .hero-lab-name small {
    font-size: 0.78rem;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-stats {
    max-width: 100%;
  }

  .hero-copy,
  .page-hero p:last-child,
  .split > p {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .content-section {
    padding-block: 44px;
  }

  .split {
    padding-block: 48px 28px;
  }

  .pi-card {
    padding: 22px;
  }

  .hero-stats div,
  .button {
    width: 100%;
  }

  .card-grid.three,
  .direction-grid,
  .home-paper-grid,
  .member-grid,
  .timeline,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .media-section .card-grid.three {
    grid-template-columns: 1fr;
  }

  .media-section > .card-media,
  .join-page > .card-media {
    aspect-ratio: 4 / 3;
  }

  .news-card,
  .resource-card,
  .resource-grid.merged .resource-card {
    grid-template-columns: 1fr;
  }

  .news-card .card-media,
  .resource-card .card-media {
    width: 100%;
    height: 190px;
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  .member-card,
  .paper-row {
    grid-template-columns: 1fr;
  }

  .paper-row {
    display: block;
    padding: 20px;
  }

  .member-card {
    align-items: flex-start;
    padding: 18px;
  }

  footer,
  .admin-top {
    flex-direction: column;
  }

  .filter-panel,
  .filter-block,
  .chip-group,
  .tab-strip,
  .pagination {
    width: 100%;
  }

  .tab-strip {
    gap: 24px;
  }

  .tab-strip button {
    font-size: 1.42rem;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination div {
    justify-content: flex-start;
  }

  .chip-group button {
    flex: 0 0 auto;
    font-size: 0.88rem;
  }

  .pi-photo .card-media,
  .pi-photo .avatar-fallback {
    width: 132px;
    height: 132px;
  }

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

@media (prefers-color-scheme: dark) and (max-width: 640px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 19, 15, 0.94) 0%, rgba(7, 19, 15, 0.84) 58%, rgba(7, 19, 15, 0.94) 100%);
  }
}
