:root {
  --crimson: #075f6b;
  --header-blue: #0d4a5c;
  --header-blue-deep: #082f3d;
  --crimson-dark: #4f0d22;
  --ink: #101923;
  --navy: #071f31;
  --navy-soft: #102d42;
  --teal: #0f6f75;
  --teal-dark: #084f55;
  --gold: #b9822f;
  --sage: #dce8df;
  --mist: #f3f7f6;
  --panel: #fbfcfb;
  --gray-50: #f1f5f3;
  --gray-100: #e5eceb;
  --gray-200: #d0dcde;
  --gray-300: #b4c4c9;
  --gray-700: #43525c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(18, 50, 71, 0.12);
  --max-width: 1440px;
  --content-max: 1320px;
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --font-brand: "IBM Plex Sans Condensed", "Libre Franklin", "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: #e8eeea;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(243, 247, 246, 0.86), rgba(243, 247, 246, 0.91)),
    url("../img/nm-organ-mountains.jpg") center top / cover;
  color: var(--ink);
  line-height: 1.62;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
}

h3 {
  font-size: 1.14rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin-top: 0;
}

.wrapper {
  width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.narrow {
  width: min(840px, calc(100% - 2 * var(--page-gutter)));
}

.wide-content {
  max-width: var(--content-max);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-blue);
  border-bottom: 1px solid rgba(7, 31, 49, 0.28);
  box-shadow: 0 12px 30px rgba(18, 50, 71, 0.08);
  backdrop-filter: blur(16px);
}

.nav-band {
  background: linear-gradient(180deg, var(--header-blue), var(--header-blue-deep));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 0.75rem;
  min-width: 0;
  padding-block: 1rem 0.78rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  text-decoration: none;
  text-align: left;
}

.brand > span {
  min-width: 0;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.brand-subtitle {
  margin-top: 0.22rem;
  color: #d8f0ef;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.34rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 0.62rem;
  margin-top: 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.42rem 0.64rem;
  border-bottom: 3px solid transparent;
  color: #e6f6f6;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

@keyframes hero-zoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.08); }
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid rgba(7, 31, 49, 0.34);
}

/* Animated background image layer */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Plain url() first so browsers without image-set() still get the JPEG. */
  background-image: var(--home-hero-image-fallback);
  background-image: var(--home-hero-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: hero-zoom 22s ease-in-out infinite alternate;
  z-index: 0;
}

/* Narrow viewports get the 960px hero rendition. */
@media (max-width: 700px) {
  .home-hero::before {
    background-image: var(--home-hero-image-sm-fallback, var(--home-hero-image-fallback));
    background-image: var(--home-hero-image-sm, var(--home-hero-image));
  }
}

/* Gradient overlay */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 31, 49, 0.88) 0%, rgba(7, 31, 49, 0.68) 48%, rgba(7, 31, 49, 0.12) 100%);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before { animation: none; }

  .mobile-nav,
  .mobile-nav-backdrop,
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    transition: none;
  }
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  min-height: min(620px, calc(100svh - 128px));
  padding-block: 4rem 3.75rem;
}

.hero-copy {
  max-width: 760px;
}

.identity-panel h2 {
  color: var(--ink);
}

.hero-copy h1 {
  color: var(--white);
  font-size: 3.35rem;
}

.hero-lede {
  max-width: 700px;
  color: #dbe7ee;
  font-size: 1.22rem;
  overflow-wrap: anywhere;
}

.hero-meta {
  color: #d6e4e8;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.sentence-case {
  text-transform: none;
}

.identity-panel .eyebrow.sentence-case {
  font-size: 0.92rem;
}

.campus-band .eyebrow,
.home-hero .eyebrow,
.manual-hero .eyebrow,
.page-hero.has-image .eyebrow {
  color: #8edce0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.76rem 1.05rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--crimson);
}

.button.primary:hover {
  color: var(--white);
  background: var(--crimson-dark);
}

.button.secondary {
  color: var(--navy);
  border-color: var(--gray-300);
}

.button.secondary:hover {
  color: var(--crimson);
  background: var(--gray-50);
}

.campus-band .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
}

.home-hero .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.64);
}

.campus-band .button.secondary:hover,
.home-hero .button.secondary:hover {
  color: var(--navy);
  background: var(--white);
}

.button-row.light .button.secondary {
  color: var(--navy);
  border-color: var(--gray-300);
}

.button-row.light .button.secondary:hover {
  color: var(--crimson);
  background: var(--gray-50);
}

.method-tags,
.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.method-tags span,
.topic-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.notice-band {
  background: var(--crimson-dark);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  padding-block: 0.92rem;
  color: var(--white);
}

.notice a {
  color: var(--white);
  font-weight: 900;
}

.home-intro-section {
  padding-block: 3.2rem;
  background:
    radial-gradient(circle at 6% 0%, rgba(220, 100, 30, 0.14) 0, rgba(220, 100, 30, 0) 40%),
    linear-gradient(180deg, rgba(255, 220, 185, 0.76) 0%, rgba(180, 50, 40, 0.78) 100%),
    url("../img/background_image_nmsu.jpg") center 52% / cover no-repeat;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.8rem;
  align-items: start;
}

.identity-panel,
.home-news-panel {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--panel);
}

.identity-panel {
  position: relative;
  overflow: hidden;
  padding: 1.7rem;
  box-shadow: 0 16px 36px rgba(17, 42, 56, 0.08);
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-dark), var(--gold));
}

.identity-panel .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(15, 111, 117, 0.11);
  font-size: 0.76rem;
}

.identity-panel h2 {
  max-width: 28ch;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.identity-panel h2.about-welcome-heading {
  max-width: none;
}

.identity-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.identity-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
  gap: 1.05rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid #94c3b2;
  border-radius: 10px;
  background: #ffffff;
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.identity-list strong {
  color: var(--navy);
  letter-spacing: 0;
}

.identity-list p {
  margin-bottom: 0;
  color: #33434f;
}

.identity-list > div:hover {
  border-color: #b8ccd3;
  box-shadow: 0 9px 18px rgba(17, 42, 56, 0.08);
  transform: translateY(-1px);
}

.identity-list > .emblem-item {
  align-items: start;
}

.identity-list > .emblem-item:hover {
  border-color: var(--gray-200);
  box-shadow: none;
  transform: none;
}

.emblem-heading {
  display: grid;
  gap: 0.65rem;
}

.emblem-mark {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(8, 59, 126, 0.12);
  border-radius: 50%;
  background: #ffffff;
}

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

.manual-note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.95rem;
}

.manual-note a {
  font-weight: 900;
  text-decoration: none;
}

.home-news-panel {
  padding: 1.2rem;
  background: linear-gradient(180deg, #eef4ef 0%, #e8f0ea 100%);
  box-shadow: 0 12px 28px rgba(17, 42, 56, 0.06);
}

.panel-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.panel-heading-row .eyebrow {
  margin-bottom: 0;
}

.small-link {
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.content-section {
  padding-block: 4.5rem;
  background:
    linear-gradient(180deg, rgba(251, 252, 251, 0.98) 0%, rgba(243, 247, 246, 0.96) 100%),
    var(--mist);
  border-top: 1px solid rgba(208, 220, 222, 0.72);
}

.content-section.muted {
  background:
    linear-gradient(180deg, rgba(243, 247, 246, 0.98) 0%, rgba(229, 236, 235, 0.96) 100%),
    var(--gray-50);
}

.section-heading > p,
.split-heading > p,
.research-overview-copy p {
  color: var(--gray-700);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.compact-heading {
  max-width: 860px;
  margin-bottom: 1rem;
}

.compact-heading p:last-child {
  margin-bottom: 0;
}

.page-cluster {
  margin-top: 1.35rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 2rem;
  align-items: end;
  max-width: none;
}

.feature-block,
.visual-card,
.publication-section,
.group-list section,
.news-list article,
.deadline-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--panel);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: "->";
  font-weight: 900;
}

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

.campus-band {
  padding-block: 4.5rem;
  color: var(--white);
  background: var(--navy-soft);
}

.campus-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 3rem;
  align-items: center;
}

.campus-grid p {
  color: #dbe7ee;
}

.campus-photo {
  margin: 0;
}

.campus-photo img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  object-fit: cover;
}

.campus-photo-wide {
  display: grid;
}

.campus-photo-wide img {
  min-height: 220px;
}

.campus-photo figcaption {
  margin-top: 0.55rem;
  color: #dbe7ee;
  font-size: 0.82rem;
}

.campus-photo a {
  color: #8edce0;
}

.page-hero {
  padding-block: 5rem;
  color: var(--white);
  background: var(--navy);
}

.page-hero.has-image {
  background:
    linear-gradient(90deg, rgba(18, 50, 71, 0.96) 0%, rgba(18, 50, 71, 0.82) 48%, rgba(18, 50, 71, 0.46) 100%),
    var(--page-hero-image),
    var(--navy);
  background-position: center, var(--page-hero-position, center center), center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero-inner {
  max-width: var(--content-max);
}

.page-hero h1 {
  color: var(--white);
}

.page-summary {
  max-width: 780px;
  color: #dbe7ee;
  font-size: 1.14rem;
}

.manual-hero {
  padding-block: 4rem;
  color: var(--white);
  background: var(--navy);
}

.manual-hero.has-image {
  background:
    linear-gradient(90deg, rgba(18, 50, 71, 0.96) 0%, rgba(18, 50, 71, 0.82) 48%, rgba(18, 50, 71, 0.46) 100%),
    var(--manual-hero-image),
    var(--navy);
  background-position: center, var(--manual-hero-position, center center), center;
  background-repeat: no-repeat;
  background-size: cover;
}

.manual-hero h1 {
  color: var(--white);
}

.manual-shell {
  padding-block: 3rem 4.5rem;
  background: var(--mist);
}

.manual-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.manual-sidebar,
.manual-content {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--panel);
}

.manual-sidebar {
  position: sticky;
  top: 108px;
  padding: 1rem;
}

.manual-brand {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.manual-nav {
  display: grid;
  gap: 0.25rem;
}

.manual-nav a {
  display: block;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.manual-nav a:hover,
.manual-nav a[aria-current="page"] {
  color: var(--crimson);
  background: var(--gray-100);
}

.manual-content {
  min-width: 0;
  padding: 2rem;
}

.manual-content h2 {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--gray-200);
}

.prose h2 {
  margin-top: 2rem;
}

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

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

.prose li + li {
  margin-top: 0.35rem;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.prose table {
  width: 100%;
  margin: 0.9rem 0 1.35rem;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.prose th,
.prose td {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--gray-200);
  vertical-align: top;
  text-align: left;
}

.prose th {
  color: var(--navy);
  font-weight: 900;
  background: var(--gray-50);
}

.portfolio-intro {
  margin-bottom: 2.5rem;
}

.portfolio-lede {
  max-width: 780px;
  color: var(--gray-700);
  font-size: 1.08rem;
}

.thrust-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.thrust-index li a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.9rem 0.52rem 0.6rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.thrust-index li a:hover {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-dark);
}

.thrust-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
}

.research-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.95fr);
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.research-overview .visual-card {
  overflow: hidden;
}

.visual-card {
  margin: 0;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  background: var(--gray-50);
}


.visual-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--gray-700);
  font-size: 0.94rem;
}

.research-overview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--gray-200);
}

.method-tags {
  margin-top: 0.7rem;
}

.method-tags span,
.topic-grid span {
  color: var(--teal-dark);
  background: #eef7f6;
  border: 1px solid #cbe3e1;
}

.research-stack,
.group-list {
  display: grid;
  gap: 1rem;
}

/* Research pillars: each groups one or more thrusts. */
.research-pillar {
  margin-bottom: 2.5rem;
  scroll-margin-top: 92px;
}

.research-pillar > .section-heading {
  margin-bottom: 1rem;
}

/* Thrusts shown without an illustration collapse to a single column. */
.research-detail.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.image-note {
  margin-top: 1rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-style: italic;
}

.research-highlights-block {
  margin-bottom: 1.5rem;
}

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

.highlight-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--mist);
}

.highlight-card > span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eef7f6;
  border: 1px solid #cbe3e1;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-card p {
  color: var(--gray-700);
}

.highlight-evidence {
  margin-top: 0.65rem;
  font-weight: 800;
}

.highlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 0.85rem;
}

.highlight-links a {
  font-weight: 900;
  text-decoration: none;
}

.research-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  scroll-margin-top: 92px;
  box-shadow: 0 12px 28px rgba(17, 42, 56, 0.06);
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.research-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-dark), var(--gold));
}

.research-detail:hover {
  border-color: #b8ccd3;
  box-shadow: 0 16px 34px rgba(17, 42, 56, 0.1);
  transform: translateY(-1px);
}

.research-stack .research-detail:nth-child(even) {
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
}

.research-stack .research-detail:nth-child(even) .research-detail-media {
  order: 2;
}

.research-stack .research-detail:nth-child(even) .research-detail-copy {
  order: 1;
}

.research-detail-media {
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: center;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.research-detail-media:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 4px;
}

.research-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) brightness(0.96);
  transition: transform 180ms ease, filter 180ms ease;
}

.research-detail-media:hover .research-detail-image {
  filter: saturate(1.22) brightness(1);
  transform: scale(1.04);
}

.research-detail-copy {
  padding: 1.45rem;
}

.research-focus {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.research-focus li + li {
  margin-top: 0.35rem;
}

.research-outcome {
  margin-bottom: 0;
  color: var(--gray-700);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 22, 31, 0.88);
}

.image-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.feature-block,
.publication-section,
.group-list section,
.news-list article,
.deadline-card {
  padding: 1.3rem;
}

.feature-block.research-detail {
  padding: 0;
}

.page-priority {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 1.3rem;
  align-items: center;
}

.page-priority p:last-child {
  margin-bottom: 0;
}

.summary-stat-grid,
.fit-grid,
.role-opportunity-grid,
.output-status-grid,
.opportunity-facts,
.output-list {
  display: grid;
  gap: 1rem;
}

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

.fit-grid,
.role-opportunity-grid,
.output-status-grid,
.opportunity-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.output-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.stat-card,
.fit-card,
.fact-card,
.role-opportunity-card,
.output-status-card,
.output-item,
.application-panel > div {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card {
  background: var(--white);
}

.stat-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--crimson);
  font-family: var(--font-serif);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card strong,
.output-year {
  color: var(--navy);
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.22rem 0.58rem;
  border: 1px solid #cbe3e1;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #eef7f6;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.status-pill.available {
  color: #145329;
  border-color: #c7decf;
  background: #edf7ef;
}

.status-pill.muted {
  color: var(--gray-700);
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.fit-card h3,
.fact-card h3,
.role-opportunity-card h3,
.output-status-card h3,
.output-item h3 {
  margin-top: 0.7rem;
}

.fit-card p:last-child,
.fact-card p:last-child,
.role-opportunity-card p:last-child,
.output-status-card p:last-child,
.output-item p:last-child {
  margin-bottom: 0;
}

.fit-card ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.person-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
  align-items: start;
  padding: 1.3rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--mist);
}

.person-profile.no-photo {
  grid-template-columns: 1fr;
}

.featured-profile {
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 240px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  object-fit: cover;
  background: var(--white);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.25rem 0 1rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.34rem 0.65rem;
  border: 1px solid #cbe3e1;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #eef7f6;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.profile-links a:hover {
  color: var(--crimson);
  background: #ffffff;
}

.profile-focus {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-focus li {
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  color: var(--gray-700);
}

.cohort-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.35rem;
}

.cohort-callout p:last-child {
  margin-bottom: 0;
}

.cohort-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.placeholder-profile {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.placeholder-profile h3 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.placeholder-profile p {
  margin-bottom: 0.35rem;
}

.placeholder-profile p:last-child {
  margin-bottom: 0;
  color: var(--gray-700);
}

.placeholder-avatar {
  width: 88px;
  aspect-ratio: 1;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-50);
}

.group-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.collaboration-list {
  grid-template-columns: minmax(0, 1fr);
}

.publication-intro {
  margin-bottom: 1rem;
}

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

.publication-grid .publication-section:first-child {
  grid-column: 1 / -1;
}

.publication-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}

.publication-section-header .eyebrow,
.publication-section-header h2 {
  margin-bottom: 0.25rem;
}

.publication-year-heading {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--gray-200);
  color: var(--crimson);
  font-size: 1rem;
}

.publication-year-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.publication-list {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.publication-list li {
  padding-block: 0.85rem;
  border-top: 1px solid var(--gray-200);
}

.publication-list li:first-child {
  border-top: 0;
}

.publication-summary,
.publication-authors,
.publication-meta,
.publication-links {
  display: block;
}

.publication-summary {
  margin-top: 0.28rem;
  color: var(--gray-700);
}

.publication-authors {
  margin-top: 0.28rem;
  color: var(--gray-700);
}

.publication-meta {
  margin-top: 0.2rem;
  color: var(--gray-700);
}

.publication-links {
  margin-top: 0.35rem;
}

.publication-links a {
  font-weight: 900;
  text-decoration: none;
}

.publication-links a + a {
  margin-left: 0.8rem;
}

.empty-state {
  margin-bottom: 0;
  color: var(--gray-700);
}

.application-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1rem;
  margin-top: 1.35rem;
}

.application-panel code {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--navy);
  background: var(--gray-50);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: normal;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}

.process-list li {
  position: relative;
  min-width: 0;
  padding: 1.1rem 1.1rem 1.1rem 3.45rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--panel);
  counter-increment: process-step;
}

.process-list li::before {
  content: counter(process-step);
  position: absolute;
  inset: 1.1rem auto auto 1.1rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--white);
  background: var(--crimson);
  font-weight: 900;
  line-height: 1;
}

.process-list p {
  margin: 0.35rem 0 0;
  color: var(--gray-700);
}

.opportunity-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.software-data-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.software-data-lead > div {
  padding: 1.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--mist);
}

.opportunity-lead > div {
  padding: 1.4rem;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--gray-200);
}

.deadline-card {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.deadline-card span {
  display: block;
  margin-bottom: 0.3rem;
  color: #8edce0;
  font-weight: 900;
  text-transform: uppercase;
}

.deadline-card strong {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.08;
}

.deadline-card p {
  margin-bottom: 0;
  color: #dbe7ee;
}

.topic-grid {
  margin-top: 1rem;
}

.output-status-grid {
  margin: 1rem 0 1.35rem;
}

.opportunity-facts {
  margin: 1rem 0 1.35rem;
}

.output-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-list article {
  box-shadow: 0 12px 34px rgba(18, 50, 71, 0.05);
}

.news-list.compact article {
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--gray-200);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.news-list.compact article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-list time,
.post-date {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer {
  padding-block: 2.7rem;
  color: #dce8ef;
  background: #08131d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 360px minmax(300px, 1fr) minmax(200px, 0.75fr);
  gap: 1.5rem;
}

.site-footer strong {
  color: var(--white);
}

.site-footer .footer-logo {
  width: min(100%, 300px);
  max-width: none;
  height: auto;
  border-radius: 4px;
}

.site-footer a {
  color: #8edce0;
}

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

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-meta {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(220, 232, 239, 0.2);
}

.footer-meta p {
  margin: 0;
  color: #b8c9d4;
  font-size: 0.86rem;
}

.footer-meta a {
  color: #9ee8ec;
}

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

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-wrapper {
    align-items: center;
    padding-block: 0.85rem 0.7rem;
  }

  .brand {
    justify-content: flex-start;
    text-align: left;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .home-intro-grid,
  .home-hero-grid,
  .campus-grid,
  .split-heading,
  .research-overview,
  .manual-grid,
  .footer-grid,
  .page-priority,
  .application-panel,
  .opportunity-lead,
  .software-data-lead {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
  }

  .identity-list > div,
  .identity-list > .emblem-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
  }

  .emblem-mark {
    width: min(104px, 45vw);
  }

  .emblem-mark img {
    width: 100%;
    height: 100%;
  }

  .group-list,
  .publication-grid,
  .highlight-grid,
  .team-card-grid,
  .fit-grid,
  .role-opportunity-grid,
  .output-status-grid,
  .opportunity-facts,
  .output-list,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaboration-list,
  .cohort-callout {
    grid-template-columns: 1fr;
  }

  .cohort-actions {
    justify-content: flex-start;
  }

  .research-detail,
  .research-stack .research-detail:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .research-stack .research-detail:nth-child(even) .research-detail-media,
  .research-stack .research-detail:nth-child(even) .research-detail-copy {
    order: 0;
  }

  .research-detail-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .visual-card img {
    min-height: 300px;
  }
}

@media (max-width: 820px) and (min-width: 681px) {
  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    gap: 0.35rem;
    padding-bottom: 0;
  }

  .site-nav a {
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .nav-toggle {
    display: none;
  }
}

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

  .hero-copy h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .brand {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .brand > span {
    width: auto;
    max-width: 100%;
  }

  .brand-title {
    font-size: 1.74rem;
  }

  .brand-subtitle {
    display: block;
    font-size: 0.94rem;
  }

  /* Below 680px the drawer takes over; .site-nav is hidden by the drawer block
     further down. No inline nav grid is defined here. */

  .home-hero {
    background-position: 58% center;
  }

  .hero-copy {
    max-width: calc(100vw - 1.25rem);
  }

  .hero-copy h1,
  .hero-lede {
    max-width: 20rem;
  }

  .home-hero-grid,
  .page-hero,
  .manual-hero {
    padding-block: 3.25rem;
  }

  .hero-lede,
  .page-summary {
    font-size: 0.98rem;
  }

  .content-section,
  .campus-band {
    padding-block: 3.25rem;
  }

  .group-list,
  .publication-grid,
  .highlight-grid,
  .team-card-grid,
  .fit-grid,
  .role-opportunity-grid,
  .output-status-grid,
  .opportunity-facts,
  .output-list,
  .process-list,
  .person-profile {
    grid-template-columns: 1fr;
  }

  .person-profile {
    padding: 1rem;
  }

  .profile-photo {
    width: 190px;
  }

  .placeholder-profile {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .placeholder-avatar {
    width: 72px;
  }

  .campus-photo-wide img {
    min-height: 0;
    height: 230px;
  }

  .research-overview-copy,
  .research-detail-copy,
  .identity-panel,
  .home-news-panel,
  .feature-block,
  .publication-section,
  .group-list section,
  .news-list article,
  .deadline-card,
  .stat-card,
  .fit-card,
  .fact-card,
  .role-opportunity-card,
  .output-status-card,
  .output-item,
  .application-panel > div,
  .process-list li,
  .manual-content,
  .opportunity-lead > div,
  .software-data-lead > div,
  .highlight-card {
    padding: 1rem;
  }

  .publication-section-header,
  .output-item-header {
    display: grid;
  }

  .process-list li {
    padding-left: 3.25rem;
  }

  .identity-panel .eyebrow {
    margin-bottom: 0.7rem;
  }

  .identity-panel h2 {
    margin-bottom: 0.75rem;
  }

}

/* ── Hamburger toggle button ───────────────────────────────────────── */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

/* Open state: collapse the bars into an X. Without these rules the transition
   declared above animates a state that is never set. */
.nav-toggle[aria-expanded='true'] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Mobile nav drawer ─────────────────────────────────────────────── */

.mobile-nav,
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 680px) {
  .site-nav    { display: none; }
  .nav-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    min-height: 88px;
  }
  .brand {
    justify-content: flex-start;
    text-align: left;
  }
  .nav-toggle  { display: flex; }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(300px, 86vw);
    background: var(--white);
    box-shadow: -8px 0 32px rgba(7, 31, 49, 0.18);
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .mobile-nav.is-open {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(7, 31, 49, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
  }

  .mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
  }

  .mobile-nav-brand {
    color: var(--ink);
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav-close:hover {
    background: var(--gray-50);
  }

  .mobile-nav nav {
    display: grid;
    padding: 0.65rem;
    gap: 0.15rem;
  }

  .mobile-nav nav a {
    display: block;
    padding: 0.78rem 0.9rem;
    border-radius: 8px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav nav a:hover,
  .mobile-nav nav a[aria-current="page"] {
    color: var(--crimson);
    background: #f7edf1;
  }
}

@media (max-width: 680px) {
  .brand,
  .brand > span {
    width: 100%;
    min-width: 0;
  }

  .brand-title,
  .brand-subtitle {
    max-width: 100%;
    white-space: normal;
  }
}
