:root {
  color-scheme: light;
  --ink: #15212c;
  --muted: #5b6875;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d9ded9;
  --teal: #0d6f77;
  --teal-dark: #08464d;
  --gold: #c6a349;
  --gold-dark: #765b0b;
  --gold-light: #d8bd70;
  --sage: #dce9df;
  --graphite: #20272e;
  --shadow: 0 22px 55px rgba(19, 32, 40, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
  transform: translateY(-160%);
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid rgba(217, 222, 217, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #25313a;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section {
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 25, 33, 0.84) 0%, rgba(11, 25, 33, 0.6) 42%, rgba(11, 25, 33, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 25, 33, 0.75) 0%, rgba(11, 25, 33, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 16vh;
  transform: translateX(calc((min(1160px, 100vw - 40px) - min(760px, 100vw - 40px)) / -2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-light);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  font-size: clamp(2.7rem, 6vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #1b2020;
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

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

.focus-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.focus-grid p:last-child,
.contact-grid p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.section-heading.compact p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

#publications .section-heading.compact {
  max-width: none;
}

#publications .section-heading.compact h2 {
  white-space: nowrap;
}

#publications .section-heading.compact p:last-child {
  max-width: 780px;
}

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

.project-card,
.publication-item,
.member-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 32, 37, 0.07);
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.32;
  object-fit: cover;
}

.project-card-body {
  padding: 22px;
}

.project-card-body span,
.news-slide span,
.role-label,
.member-placeholder span,
.pub-status {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-body p,
.publication-item p,
.member-placeholder p,
.pi-profile p,
.news-slide p {
  color: var(--muted);
}

.text-button {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--gold-dark);
}

.publications-band {
  background: #eef3f0;
}

.publications-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.scholar-panel {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  align-content: end;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(8, 70, 77, 0.9), rgba(32, 39, 46, 0.96)),
    var(--teal-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.scholar-panel span {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scholar-panel strong {
  font-size: 1.55rem;
  line-height: 1.12;
}

.publication-list {
  display: grid;
  gap: 10px;
}

.publication-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px;
}

.publication-item a {
  color: var(--teal-dark);
  font-weight: 800;
}

.publication-item a:hover,
.publication-item a:focus-visible {
  color: var(--gold-dark);
}

.pub-number {
  color: var(--gold-dark);
  font-weight: 900;
  line-height: 1.6;
}

.publication-citation {
  margin: 0;
  line-height: 1.6;
}

.news-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
}

.news-track {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.news-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.news-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.news-slide img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: contain;
  background: #eef2f1;
}

.news-slide div {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 54px);
}

.news-slide .news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 6px 0 0;
}

.news-links a {
  color: var(--teal-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.carousel-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.pi-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf8;
}

.pi-profile img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  border-radius: var(--radius);
}

.pi-profile p {
  margin: 18px 0 0;
}

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

.member-placeholder {
  min-height: 170px;
  padding: 22px;
}

.contact-section {
  background: var(--graphite);
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold-light);
}

.contact-grid p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
}

.contact-panel a,
.contact-panel span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-panel a {
  font-weight: 800;
  text-decoration-color: rgba(198, 163, 73, 0.65);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #11171c;
}

.site-footer a {
  color: var(--gold-light);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 23, 0.68);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  width: min(1000px, calc(100% - 36px));
  max-height: calc(100vh - 56px);
  margin: 28px auto;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(26px, 5vw, 48px);
}

.modal-copy span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-copy p,
.modal-copy li {
  color: var(--muted);
}

.modal-copy h3 {
  margin-top: 24px;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 940px) {
  #publications .section-heading.compact h2 {
    white-space: normal;
  }

  .site-nav {
    position: fixed;
    top: 77px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    transform: none;
  }

  .focus-grid,
  .contact-grid,
  .publications-layout,
  .pi-profile,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .members {
    grid-template-columns: 1fr;
  }

  .news-slide {
    grid-template-columns: 1fr;
  }

  .news-slide img {
    height: 220px;
    min-height: 220px;
  }

  .news-track {
    min-height: 540px;
  }

  .modal-panel img {
    min-height: 260px;
    max-height: 320px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-bottom: 11vh;
  }

  .section-inner {
    width: min(100% - 28px, 1160px);
    padding: 66px 0;
  }

  .section-heading {
    display: block;
  }

  .news-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    position: absolute;
    z-index: 3;
    top: 190px;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }

  .site-footer {
    display: grid;
  }
}
