:root {
  --navy: #12284c;
  --navy-2: #163a62;
  --orange: #a64000;
  --orange-light: #ffb15f;
  --teal: #0e6f74;
  --ink: #18212c;
  --muted: #5d6876;
  --line: #dce3ea;
  --paper: #f7f8f7;
  --white: #fff;
  --shadow: 0 18px 45px rgba(14, 26, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--orange);
  transform: translateY(-150%);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 40, 76, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

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

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 800ms ease;
}

.hero img.is-fading {
  opacity: 0.28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 36, 0.88) 0%, rgba(8, 20, 36, 0.58) 42%, rgba(8, 20, 36, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 20, 36, 0.5) 0%, rgba(8, 20, 36, 0.05) 42%);
}

.hero-content {
  position: relative;
  width: min(850px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 72px) clamp(44px, 9vh, 86px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2.2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--orange);
  border-color: var(--orange);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

.scope-card,
.collaboration-card,
.paper-card,
.person-card,
.facility-card,
.maintenance-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 40, 76, 0.04);
}

.scope-card,
.collaboration-card {
  padding: 22px;
}

.scope-card h3,
.collaboration-card h3,
.facility-card h3,
.maintenance-note h3,
.people-intro h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.people-intro .section-scale-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
}

.scope-card p,
.collaboration-card p,
.facility-card p,
.maintenance-note p,
.people-intro p {
  margin: 0;
  color: var(--muted);
}

.section-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.collaboration-map-section {
  background: linear-gradient(150deg, #eaf1f1 0%, #f7f8f7 48%, #f4ede6 100%);
  border-block: 1px solid var(--line);
}

.collaboration-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.collaboration-map,
.collaboration-map-key {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 40, 76, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(18, 40, 76, 0.08);
}

.collaboration-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 38%, rgba(62, 151, 170, 0.32), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(157, 214, 222, 0.08) 49px 50px),
    repeating-linear-gradient(90deg, transparent 0 93px, rgba(157, 214, 222, 0.08) 94px 95px),
    #0b2545;
}

.collaboration-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-land path {
  fill: #e6e5dc;
  stroke: rgba(172, 196, 204, 0.7);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.collaboration-marker {
  fill: #59bec1;
  fill-opacity: 0.96;
  stroke: var(--white);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(121, 222, 225, 0.55));
  transition: fill 160ms ease, r 160ms ease;
}

.collaboration-marker:hover {
  fill: var(--orange);
}

.collaboration-marker.is-active {
  fill: var(--orange);
}

.map-leader {
  stroke: rgba(166, 64, 0, 0.8);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.auburn-marker {
  fill: var(--orange);
  stroke: var(--orange-light);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(255, 177, 95, 0.9));
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.collaboration-map-key {
  padding: 18px;
  overflow: auto;
  color: var(--white);
  background: var(--navy);
}

.collaboration-map-key > p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

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

.collaboration-list > li,
.collaboration-list-more ul > li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.collaboration-list [data-collaboration-index].is-active {
  padding: 5px;
  margin: -5px;
  background: rgba(255, 177, 95, 0.16);
  border-radius: 5px;
}

.collaboration-list strong,
.collaboration-list small {
  display: block;
}

.collaboration-list strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.2;
}

.collaboration-list small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.25;
}

.collaboration-count {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-hover {
  min-height: 52px;
  margin: 0 0 16px !important;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--orange-light);
  font-size: 0.8rem !important;
  line-height: 1.35;
}

.map-hover strong,
.map-hover span {
  display: block;
}

.map-hover strong {
  color: var(--white);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.auburn-dot {
  background: var(--orange);
}

.long-term-dot {
  background: #59bec1;
}

.collaboration-list-more {
  display: block !important;
  margin-top: 4px;
}

.collaboration-list-more summary {
  color: var(--orange-light);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.collaboration-list-more ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

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

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

.word-cloud-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: start;
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 320px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.heading-word-cloud {
  max-width: 1080px;
  min-height: 0;
  margin-top: 22px;
  padding: 18px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(18, 40, 76, 0.14);
}

.publications-intro h2 {
  margin-bottom: 0;
}

.word-cloud a,
.word-cloud span {
  display: inline-block;
  color: var(--word-color, var(--navy));
  font-size: calc(0.86rem + (var(--weight, 0.4) * 1.95rem));
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.word-cloud a:hover {
  text-decoration: underline;
}

.word-cloud-empty {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.paper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-card {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
}

.paper-card.loading,
.paper-card.empty {
  color: var(--muted);
}

.paper-title {
  display: inline-block;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.paper-title:hover {
  text-decoration: underline;
}

.paper-meta,
.paper-authors {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-authors {
  color: var(--ink);
}

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

.facility-card,
.maintenance-note {
  padding: 22px;
}

.facility-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 8px;
  color: var(--teal);
  background: rgba(14, 111, 116, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.people-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}

.people-intro {
  position: sticky;
  top: 84px;
  padding: 22px 0;
}

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

.people-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.person-card {
  overflow: hidden;
}

.person-photo {
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(221, 85, 12, 0.96), rgba(14, 111, 116, 0.92)),
    var(--navy);
  font-size: 2.4rem;
  font-weight: 900;
}

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

.student-card .person-photo {
  aspect-ratio: 4 / 1.6;
  font-size: 1.25rem;
}

.student-card .person-photo.theme-theory {
  background:
    linear-gradient(135deg, rgba(18, 40, 76, 0.98), rgba(14, 111, 116, 0.92)),
    var(--navy);
}

.student-card .person-photo.theme-ebit {
  background:
    linear-gradient(135deg, rgba(166, 64, 0, 0.96), rgba(18, 40, 76, 0.96)),
    var(--navy);
}

.student-card .person-photo.theme-astronomy {
  background:
    linear-gradient(135deg, rgba(21, 41, 88, 0.98), rgba(91, 43, 116, 0.92)),
    var(--navy);
}

.student-card .person-photo .student-fallback-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 12px);
  padding: 0;
}

.person-body {
  padding: 18px;
}

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

.person-body h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
}

.role {
  margin: 4px 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-links a {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  color: var(--navy);
  background: #edf2f6;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.profile-links a:focus-visible,
.word-cloud a:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.collaboration-card {
  border-top: 4px solid var(--orange);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .collaboration-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-layout,
  .publications-layout,
  .collaboration-map-shell,
  .people-panel {
    grid-template-columns: 1fr;
  }

  .people-intro {
    position: static;
    padding: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .collaboration-grid,
  .facility-list,
  .people-grid,
  .paper-list {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-bottom: 34px;
  }
}

@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;
  }
}
