:root {
  --background: #ffffff;
  --text: #111111;
  --muted: #666666;
  --faint: #8a8a8a;
  --line-light: #e5e5e5;
  --line-medium: #c8c8c8;
  --line-strong: #a6a6a6;
  --surface: #f7f7f7;
  --blue: #2774ae;
  --red: #c94c4c;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--text);
  color: #ffffff;
  transform: translateY(-160%);
}

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

.site-shell {
  width: min(calc(100% - 4rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border-bottom: 2px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-divider {
  color: #a0a0a0;
}

.ucla-logo {
  width: 3.9rem;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.3rem;
  font-size: 0.91rem;
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding: 1.3rem 0;
  color: #303030;
  font-weight: 450;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  opacity: 1;
}

main {
  min-height: calc(100vh - 9.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(25rem, 1.05fr);
  gap: 3rem;
  align-items: center;
  padding: 3.8rem 0 3.2rem;
}

.hero-copy {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 4.55rem;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 39rem;
  margin: 2rem 0 0;
  font-size: 1.48rem;
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.hero-support {
  max-width: 36rem;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-visual {
  min-width: 0;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 28.5rem);
  height: auto;
  object-fit: contain;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.home-link {
  min-width: 0;
  padding: 1.3rem 1.6rem 1.45rem;
  text-decoration: none;
}

.home-link + .home-link {
  border-left: 1px solid var(--line-light);
}

.home-link:hover {
  color: var(--text);
  background: var(--surface);
}

.home-link-index {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--faint);
  font-size: 0.68rem;
}

.home-link h2 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-link p {
  max-width: 21rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(11rem, 0.32fr) minmax(0, 0.68fr);
  gap: 2.25rem;
  padding: 2.7rem 0 2.4rem;
  border-bottom: 1.5px solid var(--line-medium);
}

.page-header h1 {
  font-size: 3.75rem;
}

.page-intro {
  max-width: 44rem;
  margin: 0;
  align-self: end;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.page-intro a {
  color: var(--text);
  font-weight: 500;
}

.content-section {
  padding: 3rem 0;
  border-bottom: 1.5px solid var(--line-medium);
}

.section-heading {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.research-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.research-thrust {
  min-width: 0;
}

.research-thrust + .research-thrust {
  border-left: 1px solid var(--line-light);
}

.research-thrust h2 {
  height: 100%;
  margin: 0;
  font: inherit;
}

.research-thrust-button {
  position: relative;
  width: 100%;
  min-height: 21rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.8rem;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.research-thrust-button::after {
  position: absolute;
  right: 1.8rem;
  bottom: -1px;
  left: 1.8rem;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
}

.research-thrust-button:hover {
  background: var(--surface);
}

.research-thrust-button:focus-visible {
  z-index: 1;
}

.research-thrust-button[aria-expanded="true"]::after {
  opacity: 1;
}

.research-thrust-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--faint);
  font-size: 0.72rem;
}

.research-thrust-button[aria-expanded="true"] .research-thrust-index,
.research-thrust-button[aria-expanded="true"] .research-thrust-indicator {
  color: var(--blue);
}

.research-thrust-title {
  display: block;
  max-width: 24rem;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.research-thrust-description {
  display: block;
  max-width: 31rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.research-thrust-indicator {
  margin-top: auto;
  align-self: flex-end;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.research-expanded {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: 3.25rem 0 1.5rem;
  border-top: 1.5px solid var(--line-medium);
}

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

.research-expanded-copy h2 {
  max-width: 44rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.research-expanded-intro {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.research-expanded-media {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line-light);
  background: #ffffff;
}

.research-expanded-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.research-media-pending {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
}

.research-subtopics {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line-light);
}

.research-subtopic {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-light);
}

.research-subtopic h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.research-subtopic p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.people-root,
.publications-root,
.news-root {
  min-height: 12rem;
}

.loading,
.data-error,
.empty-state {
  margin: 0;
  padding: 2rem;
  background: var(--surface);
  color: var(--muted);
}

.person-section {
  padding: 3rem 0;
  border-bottom: 1.5px solid var(--line-medium);
}

.person-section:last-child {
  border-bottom: 0;
}

.pi-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  gap: 3.25rem;
}

.pi-layout.no-image {
  grid-template-columns: minmax(0, 42rem);
}

.person-image-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}

.person-details {
  padding-top: 0.1rem;
}

.person-name {
  margin-bottom: 0.35rem;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.person-role,
.person-affiliation {
  margin: 0;
  color: var(--muted);
}

.education-list {
  margin: 1.35rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.education-list li + li {
  margin-top: 0.15rem;
}

.pi-meta {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
}

.pi-meta dt {
  font-weight: 500;
}

.pi-meta dd {
  margin: 0;
  color: var(--muted);
}

.pi-meta a {
  color: var(--blue);
}

.mailing-address {
  max-width: 30rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 1.5rem;
}

.person-links a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.person-card {
  min-height: 8rem;
  padding: 1.45rem;
  border: 1px solid var(--line-light);
  background: var(--background);
}

.person-card-image {
  display: block;
  width: min(100%, 18rem);
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  object-fit: cover;
  object-position: center top;
}

.person-card .person-name {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.person-card .person-role {
  font-size: 0.88rem;
}

.person-card .education-list {
  margin-top: 1.2rem;
  font-size: 0.86rem;
}

.person-bio {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

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

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

th {
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.year-group {
  border-bottom: 1px solid var(--line-light);
}

.year-group:first-child {
  border-top: 1.5px solid var(--line-medium);
  margin-top: 3rem;
}

.year-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.25rem;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

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

.year-summary::after {
  width: 0.42rem;
  height: 0.42rem;
  justify-self: end;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  transform: rotate(45deg) translate(-0.1rem, -0.1rem);
}

.year-group[open] > .year-summary::after {
  transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.year-label {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.year-group[open] .year-label {
  color: var(--blue);
}

.year-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.publication-list {
  width: 85%;
  margin: 0 0 0 15%;
  padding: 0;
  list-style: none;
}

.publication-item {
  padding: 1.35rem 0;
}

.publication-item + .publication-item {
  border-top: 1px solid var(--line-light);
}

.publication-item:last-child {
  padding-bottom: 1.8rem;
}

.publication-title {
  margin-bottom: 0.42rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.publication-title a {
  text-decoration: none;
}

.publication-title a:hover {
  text-decoration: underline;
}

.publication-authors,
.publication-venue {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.publication-venue {
  margin-top: 0.14rem;
  color: #7a7a7a;
  font-style: italic;
}

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

.news-item {
  display: grid;
  grid-template-columns: minmax(11rem, 0.22fr) minmax(0, 0.78fr);
  gap: 2.5rem;
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--line-light);
}

.news-date {
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.news-item h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.news-item h2 a {
  text-decoration: none;
}

.news-item p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.join-apply {
  padding: 3.25rem 0 1rem;
  border-bottom: 1.5px solid var(--line-medium);
}

.join-apply > h2 {
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
  font-weight: 550;
}

.join-opportunity {
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 0.68fr);
  gap: 3.5rem;
  padding: 1.65rem 0;
  border-top: 1px solid var(--line-light);
}

.join-opportunity h3 {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.join-opportunity p {
  max-width: 47rem;
  margin-bottom: 0;
  color: var(--muted);
}

.join-opportunity p + p {
  margin-top: 0.85rem;
}

.join-opportunity a {
  color: var(--blue);
  font-weight: 550;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 1040px) {
  .site-shell {
    width: min(calc(100% - 2.75rem), var(--max-width));
  }

  .topbar {
    gap: 1.5rem;
  }

  .nav {
    gap: 1.15rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.95fr);
    gap: 2.5rem;
  }

  h1 {
    font-size: 3.85rem;
  }

  .hero-lead {
    font-size: 1.28rem;
  }

  .page-header h1 {
    font-size: 3.3rem;
  }

}

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem 0 1rem;
    gap: 0.55rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 1.25rem;
  }

  .nav a {
    padding: 0.35rem 0;
  }

  .nav a::after {
    bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 3.7rem 0 3rem;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-visual {
    width: min(100%, 28rem);
    justify-self: center;
  }

  .hero-visual img {
    width: min(100%, 20rem);
  }

  .page-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.5rem 0 2.25rem;
  }

  .page-intro {
    max-width: 40rem;
  }

  .pi-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .research-expanded {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: 2rem;
  }

  .person-image-frame {
    width: min(100%, 22rem);
  }

  .research-thrust-button {
    min-height: 22rem;
    padding: 1.5rem;
  }

  .research-thrust-button::after {
    right: 1.5rem;
    left: 1.5rem;
  }

  .research-thrust-title {
    font-size: 1.25rem;
  }

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

@media (max-width: 620px) {
  .site-shell {
    width: calc(100% - 2rem);
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .ucla-logo {
    width: 3.55rem;
  }

  .nav {
    font-size: 0.82rem;
  }

  h1 {
    font-size: 3rem;
    letter-spacing: -0.055em;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .pi-meta {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .pi-meta dd + dt {
    margin-top: 0.45rem;
  }

  .home-links,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .home-link,
  .home-link + .home-link {
    padding: 1.4rem 1.25rem 1.5rem;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .home-link:last-child {
    border-bottom: 0;
  }

  .home-link-index {
    margin-bottom: 0.75rem;
  }

  .page-header h1 {
    font-size: 2.8rem;
  }

  .page-intro {
    font-size: 1rem;
  }

  .research-overview {
    grid-template-columns: 1fr;
  }

  .research-overview {
    border-top: 1px solid var(--line-light);
  }

  .research-thrust + .research-thrust {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .research-thrust-button {
    min-height: 0;
    padding: 1.45rem 1.25rem;
  }

  .research-thrust-button::after {
    right: 1.25rem;
    left: 1.25rem;
  }

  .research-thrust-description {
    max-width: 36rem;
  }

  .research-thrust-indicator {
    margin-top: 1.25rem;
  }

  .research-expanded {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.5rem;
  }

  .research-subtopics {
    margin-top: 1.75rem;
  }

  .research-subtopic {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-light);
  }

  .research-subtopic:first-child {
    border-top: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .year-summary {
    gap: 0.8rem;
  }

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

  .news-item {
    padding: 1.8rem 0;
  }

  .person-section,
  .content-section {
    padding: 2.35rem 0;
  }

  .join-apply {
    padding-top: 2.35rem;
  }

  .join-opportunity {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.65rem;
  }

  .nav {
    gap: 0 1rem;
  }

  .research-thrust-button,
  .person-card {
    padding: 1.4rem;
  }
}

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

@media print {
  .skip-link,
  .nav {
    display: none;
  }

  .site-shell {
    width: 100%;
  }
}
