/* Home highlights and recruitment share the site's theme tokens. */
.home-highlights {
  background: var(--blue-soft);
  border-block: 1px solid var(--line);
}

.highlights-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.highlights-label {
  color: var(--blue);
  font: 800 0.72rem var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlights-track {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.highlights-move,
.highlights-group {
  display: flex;
  width: max-content;
}

.home-highlights.is-ready .highlights-track {
  overflow: hidden;
}

.home-highlights.is-ready .highlights-move {
  animation: home-highlights-scroll 48s linear infinite;
}

.highlights-group {
  flex-shrink: 0;
}

.highlights-group a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 28px 19px 0;
  white-space: nowrap;
  font-size: 0.85rem;
}

.highlights-group a::after {
  content: "·";
  color: var(--blue);
  margin-left: 16px;
}

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

.highlight-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
}

.highlight-date {
  color: var(--muted);
  font-size: 0.74rem;
}

.highlights-toggle {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--white);
  color: var(--blue);
  font-size: 0.75rem;
  cursor: pointer;
}

.home-highlights:hover .highlights-move,
.home-highlights:focus-within .highlights-move,
.home-highlights.is-paused .highlights-move {
  animation-play-state: paused;
}

.home-highlights:focus-within .highlights-track,
.home-highlights.is-paused .highlights-track {
  overflow-x: auto;
}

.home-highlights:focus-within .highlights-move,
.home-highlights.is-paused .highlights-move {
  animation: none;
}

@keyframes home-highlights-scroll {
  to {
    transform: translateX(-50%);
  }
}

.home-join-section {
  background: var(--white);
  scroll-margin-top: 110px;
}

.home-join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.home-join-grid > * {
  min-width: 0;
}

.home-join-copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.35;
  letter-spacing: -0.045em;
  color: var(--navy);
  word-break: keep-all;
}

.home-join-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 430px;
  word-break: keep-all;
}

.home-join-copy .home-join-intro {
  font-size: 1.08rem;
}

.home-join-email {
  display: inline-flex;
  gap: 24px;
  margin: 12px 0;
  color: var(--blue);
  font-weight: 700;
}

.home-join-form {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-join-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-join-fields > div {
  min-width: 0;
}

.home-join-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.home-join-form input,
.home-join-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 22px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}

.home-join-form textarea {
  resize: vertical;
  min-height: 145px;
}

.home-join-form input::placeholder,
.home-join-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.home-join-form .button {
  width: 100%;
  cursor: pointer;
}

.home-join-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.home-join-status {
  color: var(--blue);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.home-join-status:empty {
  display: none;
}

.home-join-section :focus-visible,
.home-highlights :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .home-join-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlights-inner {
    gap: 12px;
  }

  .highlights-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .highlights-toggle {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .home-join-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-highlights.is-ready .highlights-move {
    animation: none;
  }

  .home-highlights.is-ready .highlights-track {
    overflow-x: auto;
  }

  .highlights-group[aria-hidden="true"] {
    display: none;
  }

  .highlights-toggle {
    display: none;
  }
}

:root {
  --blue: #2155a4;
  --blue-dark: #14376e;
  --blue-soft: #edf4ff;
  --navy: #172036;
  --ink: #202633;
  --muted: #687386;
  --line: #dfe5ed;
  --surface: #f7f9fc;
  --white: #ffffff;
  --black: #000000;
  --max-width: 1240px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --shadow-soft: 0 22px 60px rgba(35, 54, 82, 0.08);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* =========================
   HEADER
========================== */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(223, 229, 237, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.brand-logo {
  width: 240px;
  max-width: 32vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
}

.nav-link {
  position: relative;
  padding: 34px 0 30px;
  color: #253044;
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  bottom: 21px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.members-only-link {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
  transition: 180ms ease;
}

/* =========================
   HOME HIGHLIGHTS TICKER
========================== */

.highlights-ticker {
  display: flex;
  width: 100%;
  min-height: 50px;
  overflow: hidden;
  color: #d9eafa;
  background: #0d3f62;
  font-size: 0.82rem;
}

.highlights-ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 150px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #164d70;
  color: #b8dcf3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.highlights-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d8f2;
  box-shadow: 0 0 12px rgba(88, 216, 242, 0.72);
}

.highlights-ticker-window {
  display: flex;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.highlights-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: highlights-scroll 34s linear infinite;
}

.highlights-ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
}

.highlights-ticker-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 34px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.highlights-ticker-item::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58d8f2;
  content: "";
}

.highlights-ticker-item time {
  color: #79a5c1;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.highlights-ticker-badge {
  padding: 3px 10px;
  border-radius: 999px;
  color: #92cae9;
  background: rgba(87, 184, 227, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlights-ticker-item:hover,
.highlights-ticker-item:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.highlights-ticker:has(a:hover) .highlights-ticker-track,
.highlights-ticker:has(a:focus-visible) .highlights-ticker-track {
  animation-play-state: paused;
}

@keyframes highlights-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .highlights-ticker {
    min-height: 44px;
  }

  .highlights-ticker-label {
    min-width: 112px;
    gap: 7px;
    font-size: 0.61rem;
    letter-spacing: 0.15em;
  }

  .highlights-ticker-item {
    padding: 0 22px;
  }

  .highlights-ticker-track {
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .highlights-ticker-track {
    animation-play-state: paused;
  }
}

/* =========================
   HERO
========================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.hero-grid {
  display: grid;
  min-height: 630px;
  align-items: center;
  grid-template-columns: 0.9fr 1.25fr;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 82px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 0.7;
  text-transform: uppercase;
}

.eyebrow2,
.section-kicker {
  margin: 0 0 20px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 0.7;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(4.7rem, 8vw, 7.1rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero h1 span {
  color: var(--blue);
  font-weight: 800;
}

.hero h1 em {
  color: #212632;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.83em;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.hero h1-1 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero h1-1 span {
  color: var(--blue);
  font-weight: 800;
}

.hero h1-1 em {
  color: #212632;
  font-family: var(--font-heading);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.title-rule {
  width: min(510px, 100%);
  height: 2px;
  margin: 24px 0 22px;
  background: var(--blue);
}

.hero-description {
  max-width: 510px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button2 {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 200;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(33, 85, 164, 0.2);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 40px rgba(33, 85, 164, 0.28);
}

.button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button-outline:hover {
  border-color: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 630px;
}

.hero-network {
  position: absolute;
  top: 50%;
  right: -12%;
  width: 118%;
  max-width: none;
  transform: translateY(-49%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.hero-glow-one {
  top: 100px;
  right: 14%;
  width: 300px;
  height: 300px;
  background: rgba(93, 163, 255, 0.08);
}

.hero-glow-two {
  right: 0;
  bottom: -130px;
  width: 420px;
  height: 420px;
  background: rgba(33, 85, 164, 0.06);
}

/* =========================
   GENERAL SECTIONS
========================== */

.section {
  padding: 30px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 54px;
}

.section-heading h2,
.featured-copy h2,
.members-only-box h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.row-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

/* =========================
   RESEARCH
========================== */

.research-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.research-card {
  position: relative;
  padding: 10px 38px 20px;
  text-align: center;
}

.research-card:not(:last-child)::after {
  position: absolute;
  top: 44px;
  right: 0;
  width: 1px;
  height: 100px;
  background: var(--line);
  content: "";
}

.icon-wrap {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(38, 60, 89, 0.06);
}

.icon-wrap svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.research-card h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.research-card p {
  max-width: 220px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   FEATURED
========================== */

.featured-section {
  color: var(--white);
  background: var(--blue);
}

.featured-grid {
  display: grid;
  align-items: center;
  gap: 80px;
  grid-template-columns: 1.1fr 0.9fr;
}

.featured-copy h2 {
  max-width: 720px;
  color: var(--white);
}

.featured-copy > p:not(.section-kicker) {
  max-width: 670px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.featured-copy .section-kicker,
.light-kicker {
  color: rgba(255, 255, 255, 0.7);
}

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

.featured-panel {
  display: grid;
  gap: 14px;
}

.metric {
  display: grid;
  min-height: 95px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 22px;
  grid-template-columns: 58px 1fr;
  background: rgba(255, 255, 255, 0.07);
}

.metric strong {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: 1.55rem;
}

.metric span {
  font-size: 1.02rem;
  font-weight: 600;
}

/* =========================
   NEWS
========================== */

.news-section {
  background: var(--surface);
}

.news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  display: grid;
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 28px;
  grid-template-columns: 72px 1fr;
  background: var(--white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card:hover {
  border-color: rgba(33, 85, 164, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.news-date {
  color: var(--blue);
}

.news-date span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.news-date small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.news-category {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 15px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.23rem;
  line-height: 1.35;
}

.news-card div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* =========================
   ALBUM
========================== */

.album-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.45fr 1fr 1fr;
}

.album-grid figure {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
}

.album-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.album-grid figure:hover img {
  transform: scale(1.025);
}

.album-grid figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: var(--white);
  font-weight: 700;
  background: rgba(14, 28, 51, 0.68);
  backdrop-filter: blur(10px);
}

/* =========================
   MEMBERS
========================== */

.members-section {
  background: var(--surface);
}

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

.member-card {
  display: flex;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 22px;
  background: var(--white);
}

.member-photo {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  background: var(--blue-soft);
}

.member-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.member-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.member-card a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

/* =========================
   PUBLICATIONS
========================== */

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

.publication-item {
  display: grid;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  gap: 32px;
  grid-template-columns: 90px 1fr 38px;
}

.publication-year {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.publication-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.4;
}

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

.publication-item > a {
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 700;
}

/* =========================
   MEMBERS ONLY
========================== */

.members-only-section {
  padding-top: 20px;
}

.members-only-box {
  display: flex;
  min-height: 250px;
  padding: 54px 62px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(119, 179, 255, 0.35), transparent 25%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.members-only-box h2 {
  color: var(--white);
}

.members-only-box p:not(.section-kicker) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.button-light {
  flex-shrink: 0;
  color: var(--blue);
  background: var(--white);
}

/* =========================
   FOOTER
========================== */

.site-footer {
  margin-top: 110px;
  padding: 72px 0 28px;
  color: #bdc5d2;
  background: #101827;
}

.footer-grid {
  display: grid;
  gap: 64px;
  grid-template-columns: 1.3fr 1fr 0.55fr;
}

.footer-logo {
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--white);
}

.footer-grid p {
  max-width: 460px;
  margin: 18px 0 0;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.footer-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: #dce4ef;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

/* =========================
   RESPONSIVE
========================== */

@media (max-width: 1080px) {
  .brand-logo {
    width: 240px;
  }

  .main-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .research-card::after {
    display: none;
  }

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

  .news-card {
    min-height: auto;
  }

  .album-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .album-grid figure:last-child {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 78px;
  }

  .brand-logo {
    width: 240px;
    max-width: 70vw;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 24px 30px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(19, 36, 61, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0px 0 0px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 16vw, 6.1rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-network {
    top: 45%;
    right: -6%;
    width: 105%;
  }

  .featured-grid {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: 1fr;
  }

  .album-grid figure,
  .album-grid figure:last-child {
    min-height: 340px;
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .section {
    padding: 82px 0;
  }

  .hero-copy {
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 300px;
  }

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

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

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

  .research-card {
    padding: 18px 18px 34px;
  }

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

  .publication-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .publication-item > a {
    display: none;
  }

  .members-only-box {
    padding: 42px 30px;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-footer {
    margin-top: 70px;
  }
}


/* =========================
   MULTI-PAGE LAYOUT
========================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 55px 0 50px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 16%, rgba(72, 133, 214, 0.13), transparent 25%),
    linear-gradient(135deg, #ffffff, #f4f8fe);
}

.page-hero::after {
  position: absolute;
  right: -70px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(33, 85, 164, 0.12);
  border-radius: 50%;
  content: "";
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 3vw, 6.3rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.page-hero-inner > p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-section {
  min-height: 520px;
}

.section-cta {
  display: flex;
  margin-top: 50px;
  justify-content: center;
}

/* News page */

.filter-bar {
  display: flex;
  margin-bottom: 54px;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list-item {
  display: grid;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  gap: 46px;
  grid-template-columns: 110px 1fr;
}

.news-list-date strong {
  display: block;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
}

.news-list-date span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.news-list-item h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.news-list-item div > p:not(.news-category) {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--muted);
}

/* Research page */

.research-detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.research-detail-card {
  display: grid;
  min-height: 450px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  gap: 34px;
  grid-template-columns: 62px 1fr;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(35, 54, 82, 0.045);
}

.detail-number {
  color: rgba(33, 85, 164, 0.38);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.research-detail-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.25;
}

.research-detail-card p:not(.section-kicker) {
  color: var(--muted);
}

.clean-list {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--line);
  color: #445064;
}

.clean-list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

/* Album page */

.album-page-grid {
  display: grid;
  gap: 22px;
  grid-auto-rows: 330px;
  grid-template-columns: repeat(3, 1fr);
}

.album-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
}

.album-tile-wide {
  grid-column: span 2;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.album-tile:hover img {
  transform: scale(1.025);
}

.album-tile figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: rgba(14, 28, 51, 0.68);
  backdrop-filter: blur(10px);
}

.album-tile figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

/* Members page */

.member-section + .member-section {
  margin-top: 100px;
}

.member-section-heading {
  margin-bottom: 36px;
}

.member-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.35rem;
}

.profile-feature {
  display: grid;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  align-items: center;
  gap: 48px;
  grid-template-columns: 250px 1fr;
  background: var(--surface);
}

.profile-image {
  display: grid;
  width: 250px;
  height: 300px;
  border-radius: 18px;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--blue-soft);
}

.profile-content h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.3rem;
}

.profile-role {
  margin: 0 0 22px;
  color: var(--blue);
  font-weight: 700;
}

.profile-content > p:not(.profile-role) {
  max-width: 720px;
  color: var(--muted);
}

.profile-links {
  display: flex;
  margin-top: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-links a {
  color: var(--blue);
  font-weight: 700;
}

.people-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.person-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.person-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.person-photo {
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--blue-soft);
}

.person-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: var(--font-heading);
}

.person-card p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.person-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Publications page */

.publication-toolbar {
  display: flex;
  margin-bottom: 64px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.publication-toolbar label {
  display: grid;
  gap: 9px;
}

.publication-toolbar label span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.publication-toolbar select {
  min-width: 190px;
  padding: 13px 42px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.publication-group + .publication-group {
  margin-top: 80px;
}

.publication-group[hidden] {
  display: none;
}

.year-heading {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 2.4rem;
}

.publication-page-item {
  grid-template-columns: minmax(220px, 300px) 52px minmax(0, 1fr);
  gap: 28px;
}

.publication-image-wrap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px;
  gap: 12px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.publication-image-wrap img {
  display: block;
   min-width: 0;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.publication-content {
  min-width: 0;
}

.publication-content .lab-author {
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

.publication-number {
  color: rgba(33, 85, 164, 0.5);
  font-family: var(--font-heading);
  font-weight: 800;
}

.publication-type {
  margin: 0 0 8px !important;
  color: var(--blue) !important;
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-links {
  display: flex;
  margin-top: 18px;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* Members-only page */

.login-layout {
  display: grid;
  align-items: start;
  gap: 90px;
  grid-template-columns: 1fr 460px;
}

.login-intro h2,
.login-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.3rem;
  line-height: 1.2;
}

.login-intro > p:not(.section-kicker) {
  max-width: 650px;
  color: var(--muted);
}

.resource-preview {
  display: grid;
  margin-top: 42px;
  gap: 14px;
}

.resource-preview div {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 20px;
  grid-template-columns: 42px 1fr;
}

.resource-preview span {
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 800;
}

.resource-preview p {
  margin: 0;
}

.login-card {
  display: grid;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  gap: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.login-card label {
  display: grid;
  gap: 8px;
}

.login-card label span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33, 85, 164, 0.1);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Multi-page responsive rules */

@media (max-width: 1080px) {
  .research-detail-grid {
    grid-template-columns: 1fr;
  }

  .album-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .login-layout {
    grid-template-columns: 1fr 390px;
    gap: 55px;
  }
}

@media (max-width: 880px) {
  .page-hero {
    padding: 82px 0 72px;
  }

  .profile-feature {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: 100%;
    max-width: 330px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .publication-page-item {
    grid-template-columns: minmax(220px, 320px) 52px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .publication-page-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
  }

  .publication-image-wrap {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .publication-number {
    padding-top: 2px;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .research-detail-card {
    min-height: 0;
    padding: 30px;
    grid-template-columns: 1fr;
  }

  .album-page-grid {
    grid-auto-rows: 300px;
    grid-template-columns: 1fr;
  }

  .album-tile-wide {
    grid-column: auto;
  }

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

  .profile-feature {
    padding: 28px;
  }

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

  .login-card {
    padding: 28px;
  }
}

/* =========================
   HOMEPAGE SYNTHESIS IMAGE
========================== */

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

.hero-grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 630px;
}

.hero-visual-blended {
  overflow: visible;
}

.hero-visual-blended::before {
  content: none;
}

.hero-visual-blended::after {
  content: none;
}

.hero-synthesis-image {
  position: absolute;
  top: 50%;
  right: -2%;
  z-index: 1;
  width: 102%;
  max-width: none;
  height: auto;
  opacity: 0.985;
  transform: translateY(-50%);
  filter: drop-shadow(0 20px 36px rgba(35, 54, 82, 0.05));
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 54% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 56%, rgba(0, 0, 0, 0.70) 78%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
  mask-image: radial-gradient(circle at 54% 50%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 56%, rgba(0, 0, 0, 0.70) 78%, rgba(0, 0, 0, 0.18) 92%, transparent 100%);
}

.hero-synthesis-image[src$=".svg"] {
  top: 47%;
  right: -7%;
  width: 116%;
  max-height: 710px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(24, 69, 126, 0.06));
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 16px;
  }

  .hero-synthesis-image {
    right: -5%;
    width: 106%;
  }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-synthesis-image {
    right: 50%;
    width: min(880px, 118vw);
    transform: translate(50%, -50%);
  }
}

@media (max-width: 640px) {
  .hero-visual {
    min-height: 290px;
  }

  .hero-synthesis-image {
    width: 130vw;
  }
}


/* =========================
   AWARDS / NEWS PAGE
========================== */

.awards-page-hero {
  padding: 50px 0 50px;
}

.news-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.news-page-hero .page-hero-inner > p:last-child {
  max-width: 650px;
}

.news-hero-summary {
  display: grid;
  min-width: 350px;
  padding: 26px 0;
  border-top: 1px solid rgba(33, 85, 164, 0.2);
  border-bottom: 1px solid rgba(33, 85, 164, 0.2);
  grid-template-columns: repeat(2, 1fr);
}

.news-summary-item {
  padding: 0 30px;
}

.news-summary-item + .news-summary-item {
  border-left: 1px solid var(--line);
}

.news-summary-item strong {
  display: block;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.news-summary-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.awards-section {
  padding-top: 30px;
  background: var(--surface);
}

.awards-heading {
  max-width: none;
  margin-bottom: 38px;
}

.awards-heading > div {
  max-width: 720px;
}

.awards-period {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.award-featured {
  display: grid;
  overflow: hidden;
  margin-bottom: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--white);
  box-shadow: 0 22px 60px rgba(35, 54, 82, 0.07);
}

.award-featured-image {
  position: relative;
  display: flex;
  min-height: 430px;
  padding: 42px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(33, 85, 164, 0.1), transparent 32%),
    linear-gradient(145deg, var(--blue-soft), #f9fbff);
}

.award-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(27, 44, 70, 0.12));
}

.award-featured-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.award-featured-content {
  display: flex;
  padding: 58px clamp(42px, 5vw, 76px);
  justify-content: center;
  flex-direction: column;
}

.award-eyebrow {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.award-eyebrow time {
  color: var(--muted);
}

.award-featured-content h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.award-featured-content > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  word-break: keep-all;
}

.award-details {
  display: grid;
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.award-details div {
  min-width: 0;
}

.award-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.award-details dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.award-year-group + .award-year-group {
  margin-top: 74px;
}

.award-year-heading {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.award-year-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.award-year-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

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

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

.award-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(35, 54, 82, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.award-card:hover {
  border-color: rgba(33, 85, 164, 0.3);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.award-image {
  display: flex;
  height: 270px;
  padding: 30px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(33, 85, 164, 0.08), transparent 35%),
    var(--blue-soft);
}

.award-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(27, 44, 70, 0.1));
  transition: transform 220ms ease;
}

.award-card:hover .award-image img {
  transform: scale(1.02);
}

.award-open {
  align-self: flex-start;
  margin-top: auto;
  padding: 20px 0 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: zoom-in;
}

.award-open::after {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  content: "";
}

.award-open:focus-visible {
  outline: none;
}

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

body.award-lightbox-open {
  overflow: hidden;
}

.award-lightbox {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: #fff;
  background: #0d1520;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.award-lightbox[open] {
  display: flex;
  flex-direction: column;
}

.award-lightbox::backdrop {
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(12px);
}

.award-lightbox .album-lightbox-header {
  flex-shrink: 0;
}

.award-lightbox .album-lightbox-header > div {
  min-width: 0;
}

.award-lightbox .album-lightbox-header h2 {
  overflow-wrap: anywhere;
}

.award-lightbox .album-lightbox-close {
  flex-shrink: 0;
}

.award-lightbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.award-lightbox-photo {
  display: grid;
  margin: 0;
  padding: 28px;
  place-items: center;
  background: #080d14;
}

.award-lightbox-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
}

.award-lightbox-details {
  padding: 28px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.award-lightbox-details p {
  margin: 0 0 1em;
}

.award-lightbox-details a {
  color: #8fb4f3;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .award-lightbox {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }

  .award-lightbox-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .award-lightbox-photo,
  .award-lightbox-details {
    padding: 20px;
  }

  .award-lightbox-photo img {
    max-height: 50dvh;
  }
}

.award-caption {
  display: flex;
  min-height: 200px;
  padding: 26px 28px 30px;
  flex: 1;
  flex-direction: column;
  text-align: left;
  background: var(--white);
}

.award-caption h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.award-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 980px) {
  .news-hero-layout {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .news-hero-summary {
    width: min(100%, 560px);
    min-width: 0;
  }

  .award-featured {
    grid-template-columns: 1fr;
  }

  .award-featured-image {
    min-height: 360px;
  }

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

@media (max-width: 640px) {
  .awards-page-hero {
    padding: 50px 0 50px;
  }

  .news-hero-summary {
    padding: 20px 0;
  }

  .news-summary-item {
    padding: 0 18px;
  }

  .news-summary-item strong {
    font-size: 1.45rem;
  }

  .news-summary-item span {
    font-size: 0.62rem;
  }

  .awards-section {
    padding-top: 64px;
  }

  .awards-period {
    display: none;
  }

  .award-featured {
    margin-bottom: 64px;
  }

  .award-featured-image {
    min-height: 300px;
    padding: 32px 24px;
  }

  .award-featured-content {
    padding: 36px 26px 40px;
  }

  .award-featured-content h2 {
    font-size: 2.15rem;
  }

  .award-details {
    grid-template-columns: 1fr;
  }

  .awards-grid,
  .awards-grid-two {
    grid-template-columns: 1fr;
  }

  .award-image {
    height: 290px;
  }

  .award-caption {
    min-height: 0;
  }
}

/* =========================
   ALBUM BY YEAR PAGE
========================== */

.album-year-section {
  background: #ffffff;
}

.year-album-group + .year-album-group {
  margin-top: 74px;
}

.year-album-header {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.year-album-header h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.year-album-header span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.year-album-group .album-page-grid {
  grid-auto-rows: 300px;
}

.year-album-group:last-child .album-page-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 880px) {
  .year-album-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .year-album-group + .year-album-group {
    margin-top: 56px;
  }

  .year-album-group .album-page-grid,
  .year-album-group:last-child .album-page-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
}


/* =========================
   MEMBERS DIRECTORY PAGES
========================== */

.members-page-hero {
  padding-bottom: 78px;
}

.member-directory-section,
.member-detail-section {
  background: #ffffff;
}

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

.member-directory-card {
  position: relative;
  display: flex;
  min-height: 470px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  color: inherit;
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.member-directory-card:hover {
  border-color: rgba(33, 85, 164, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.directory-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(33, 85, 164, 0.32);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.directory-icon {
  display: grid;
  width: 100px;
  height: 100px;
  margin-bottom: 44px;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--blue-soft);
}

.member-directory-card h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.member-directory-card p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.directory-link {
  display: block;
  margin-top: auto;
  padding-top: 34px;
  color: var(--blue);
  font-weight: 700;
}

.member-subnav {
  display: flex;
  margin-top: 34px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 6px;
  background: var(--surface);
}

.member-subnav a {
  flex: 1;
  padding: 13px 18px;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.member-subnav a:hover {
  color: var(--blue);
  background: var(--white);
}

.professor-profile {
  display: grid;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  align-items: center;
  gap: 58px;
  grid-template-columns: 330px 1fr;
  background: var(--surface);
}

.professor-photo {
  display: grid;
  width: 100%;
  min-height: 410px;
  border-radius: 20px;
  align-content: center;
  justify-items: center;
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 36%, rgba(84, 146, 225, 0.25), transparent 24%),
    linear-gradient(145deg, #eaf2fd, #f8fbff);
}

.professor-photo span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.professor-photo small {
  margin-top: 6px;
  color: var(--muted);
}

.professor-introduction h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.professor-summary {
  max-width: 720px;
  margin: 24px 0;
  color: var(--muted);
}

.contact-list {
  margin: 30px 0 0;
}

.contact-list div {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  grid-template-columns: 90px 1fr;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
}

.contact-list a {
  color: var(--blue);
  font-weight: 700;
}

.professor-info-grid {
  display: grid;
  margin-top: 28px;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.professor-info-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.professor-info-card h3 {
  margin: 0 0 26px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.timeline-list,
.interest-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: 105px 1fr;
}

.timeline-list li:last-child,
.interest-list li:last-child {
  border-bottom: 0;
}

.timeline-list span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-list strong {
  color: var(--navy);
}

.timeline-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.interest-list li {
  position: relative;
  padding: 15px 0 15px 23px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.interest-list li::before {
  position: absolute;
  top: 25px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.student-group + .student-group {
  margin-top: 92px;
}

.student-group-heading,
.alumni-year-heading {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.student-group-heading h2,
.alumni-year-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.student-group-heading > span,
.alumni-year-heading > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.student-profile-card {
  display: grid;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 24px;
  grid-template-columns: 110px 1fr;
  background: var(--white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.student-profile-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.student-photo {
  display: grid;
  width: 110px;
  height: 130px;
  border-radius: 14px;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--blue-soft);
}

.student-profile-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.student-degree {
  margin: 0 0 8px;
  color: var(--grey);
  font-size: 0.88rem;
  font-weight: 700;
}

.student-topic {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.student-profile-card a {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.compact-student-grid .student-profile-card {
  grid-template-columns: 90px 1fr;
}

.compact-student-grid .student-photo {
  width: 90px;
  height: 110px;
}

.alumni-year-group + .alumni-year-group {
  margin-top: 78px;
}

.alumni-list {
  border-top: 1px solid var(--line);
}

.alumni-row {
  display: grid;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 28px;
  grid-template-columns: 70px 1.1fr 1.5fr 1.4fr;
}

.alumni-row a {
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
}

.alumni-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--blue-soft);
}

.alumni-name h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.alumni-name p,
.alumni-research p,
.alumni-current p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.alumni-research span,
.alumni-current span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .member-directory-grid {
    grid-template-columns: 1fr;
  }

  .member-directory-card {
    min-height: 0;
  }

  .professor-profile {
    grid-template-columns: 270px 1fr;
  }

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

@media (max-width: 820px) {
  .professor-profile {
    grid-template-columns: 1fr;
  }

  .professor-photo {
    max-width: 360px;
  }

  .professor-info-grid,
  .student-card-grid,
  .compact-student-grid {
    grid-template-columns: 1fr;
  }

  .alumni-row {
    grid-template-columns: 64px 1fr;
  }

  .alumni-research,
  .alumni-current {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .member-subnav {
    flex-direction: column;
  }

  .member-directory-card,
  .professor-profile,
  .professor-info-card {
    padding: 28px;
  }

  .student-group-heading,
  .alumni-year-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-profile-card {
    grid-template-columns: 82px 1fr;
  }

  .student-photo {
    width: 82px;
    height: 102px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .alumni-row {
    gap: 18px;
  }
}


/* =========================
   MEMBERS DROPDOWN MENU
========================== */

.nav-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.dropdown-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% - 10px);
  left: 50%;
  display: grid;
  min-width: 172px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  gap: 2px;
  background: #17213b;
  box-shadow: 0 18px 42px rgba(15, 27, 50, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.dropdown-menu::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #17213b;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-item {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible,
.dropdown-item.active {
  color: #ffffff;
  background: rgba(90, 150, 232, 0.24);
  outline: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown.open .dropdown-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

@media (max-width: 880px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 5px 0 5px 16px;
    border: 0;
    border-left: 2px solid rgba(33, 85, 164, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: none;
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: grid;
  }

  .dropdown-item {
    padding: 10px 13px;
    color: var(--muted);
  }

  .dropdown-item:hover,
  .dropdown-item:focus-visible,
  .dropdown-item.active {
    color: var(--blue);
    background: var(--blue-soft);
  }
}


/* =========================
   TWO-CARD RESEARCH PAGE
========================== */

.research-focus-section {
  background: #ffffff;
}

.research-focus-grid {
  display: grid;
  gap: 34px;
}

.research-focus-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  background: var(--white);
  box-shadow: 0 22px 60px rgba(35, 54, 82, 0.06);
}

.research-focus-card-reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.research-focus-card-reverse .research-focus-content {
  position: relative;
  padding: 54px;
}

.research-focus-number {
  position: absolute;
  top: 38px;
  right: 42px;
  color: rgba(33, 85, 164, 0.25);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.research-focus-content h2 {
  max-width: 660px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.7vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.research-focus-intro {
  max-width: 720px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 1.02rem;
}

.research-topic-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.research-topic-list section {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.research-topic-list h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.research-topic-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1050px) {
  .research-focus-card,
  .research-focus-card-reverse {
    grid-template-columns: 1fr;
  }

  .research-focus-card-reverse .research-focus-image,
  .research-focus-card-reverse .research-focus-content {
    order: initial;
  }
}

@media (max-width: 640px) {
  .research-focus-section {
    padding-top: 70px;
  }

  .research-focus-image {
    min-height: 390px;
    padding: 14px;
  }

  .research-focus-content {
    padding: 34px 26px;
  }

  .research-focus-number {
    top: 24px;
    right: 25px;
    font-size: 1.5rem;
  }
}


/* Original research-image collages */
.research-focus-media {
  min-height: 650px;
  padding: 24px;
  background: #f7f9fc;
}

.research-media-grid {
  display: grid;
  align-content: center;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.research-media-item {
  display: flex;
  min-width: 0;
  min-height: 150px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

.research-media-item.media-wide {
  grid-column: 1 / -1;
}

.research-media-item.media-small {
  grid-column: 1 / -1;
  width: min(260px, 72%);
  justify-self: center;
}

.research-media-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

.research-media-grid-four .research-media-item:first-child img,
.research-media-grid-four .research-media-item:last-child img,
.research-media-grid-five .research-media-item:first-child img,
.research-media-grid-five .research-media-item:nth-child(4) img {
  max-height: 210px;
}

.research-media-grid-five .media-small img {
  max-height: 180px;
}

@media (max-width: 1050px) {
  .research-focus-media {
    min-height: auto;
  }

  .research-media-item img {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .research-focus-media {
    padding: 14px;
  }

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

  .research-media-item,
  .research-media-item.media-wide,
  .research-media-item.media-small {
    grid-column: auto;
    width: 100%;
  }

  .research-media-item img {
    max-height: 260px;
  }
}


/* =========================
   BALANCED RESEARCH CARDS
========================== */

.research-focus-card-stacked {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(35, 54, 82, 0.06);
}

.research-focus-card-stacked .research-focus-content {
  order: 1;
  padding: 48px 52px 38px;
}

.research-focus-card-stacked .research-focus-media {
  order: 2;
  min-height: 0;
  padding: 0 52px 50px;
  background: var(--white);
}

.research-focus-card-stacked .research-focus-content h2 {
  max-width: 860px;
  padding-right: 70px;
  font-size: clamp(2rem, 3.3vw, 2.85rem);
}

.research-focus-card-stacked .research-focus-intro {
  max-width: 880px;
  margin-bottom: 30px;
}

.research-focus-card-stacked .research-topic-list {
  display: grid;
  border-top: 1px solid var(--line);
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-focus-card-stacked .research-topic-list section {
  min-width: 0;
  padding: 24px 26px 8px 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.research-focus-card-stacked .research-topic-list section + section {
  padding-left: 26px;
}

.research-focus-card-stacked .research-topic-list section:last-child {
  padding-right: 0;
  border-right: 0;
}

.research-focus-card-stacked .research-media-grid {
  align-content: stretch;
  gap: 14px;
}

/* First research card: two compact rows */
.research-focus-card-stacked .research-media-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-focus-card-stacked .research-media-grid-four .research-media-item:nth-child(1) {
  grid-column: span 2;
}

.research-focus-card-stacked .research-media-grid-four .research-media-item:nth-child(2),
.research-focus-card-stacked .research-media-grid-four .research-media-item:nth-child(3) {
  grid-column: span 1;
}

.research-focus-card-stacked .research-media-grid-four .research-media-item:nth-child(4) {
  grid-column: 1 / -1;
}

/* Second research card: balanced three-column collage */
.research-focus-card-stacked .research-media-grid-five {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(1) {
  grid-column: span 2;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(2) {
  grid-column: span 1;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(3) {
  grid-column: span 1;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(4) {
  grid-column: span 2;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(5) {
  grid-column: 1 / -1;
  width: min(320px, 100%);
  justify-self: center;
}

.research-focus-card-stacked .research-media-item {
  min-height: 0;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fbfcfe;
}

.research-focus-card-stacked .research-media-grid-four .research-media-item {
  height: 190px;
}

.research-focus-card-stacked .research-media-grid-four .research-media-item:nth-child(4) {
  height: 175px;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item {
  height: 205px;
}

.research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(5) {
  height: 170px;
}

.research-focus-card-stacked .research-media-item img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  .research-focus-card-stacked .research-topic-list {
    grid-template-columns: 1fr;
  }

  .research-focus-card-stacked .research-topic-list section,
  .research-focus-card-stacked .research-topic-list section + section {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-focus-card-stacked .research-topic-list section:last-child {
    border-bottom: 0;
  }

  .research-focus-card-stacked .research-media-grid-four,
  .research-focus-card-stacked .research-media-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(1),
  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(2),
  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(3),
  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(4) {
    grid-column: span 1;
  }

  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .research-focus-card-stacked .research-focus-content {
    padding: 34px 26px 28px;
  }

  .research-focus-card-stacked .research-focus-content h2 {
    padding-right: 0;
  }

  .research-focus-card-stacked .research-focus-media {
    padding: 0 18px 24px;
  }

  .research-focus-card-stacked .research-media-grid-four,
  .research-focus-card-stacked .research-media-grid-five {
    grid-template-columns: 1fr;
  }

  .research-focus-card-stacked .research-media-grid-four .research-media-item,
  .research-focus-card-stacked .research-media-grid-five .research-media-item,
  .research-focus-card-stacked .research-media-grid-five .research-media-item:nth-child(5) {
    width: 100%;
    height: auto;
    min-height: 180px;
    grid-column: auto;
  }

  .research-focus-card-stacked .research-media-item img {
    height: auto;
    max-height: 260px;
  }
}


/* =========================
   RESEARCH CARD NUMBERS
========================== */

.research-numbered-card {
  position: relative;
}

.research-card-index {
  position: absolute;
  z-index: 20;
  top: 42px;
  right: 46px;
  color: rgba(33, 85, 164, 0.24);
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.research-numbered-card .research-focus-content h2 {
  padding-right: 76px;
}

@media (max-width: 640px) {
  .research-card-index {
    top: 25px;
    right: 25px;
    font-size: 1.55rem;
  }

  .research-numbered-card .research-focus-content h2 {
    padding-right: 48px;
  }
}


/* =========================
   RESEARCH CARD INNER SPACING
========================== */

/* Apply the same inner spacing to the text area of both cards. */
.research-focus-card > .research-focus-content,
.research-focus-card-reverse > .research-focus-content {
  position: relative;
  padding: 54px;
}

/* Keep the image area evenly inset from the card edges. */
.research-focus-card > .research-focus-media,
.research-focus-card-reverse > .research-focus-media {
  padding: 34px;
}

@media (max-width: 640px) {
  .research-focus-card > .research-focus-content,
  .research-focus-card-reverse > .research-focus-content {
    padding: 34px 26px;
  }

  .research-focus-card > .research-focus-media,
  .research-focus-card-reverse > .research-focus-media {
    padding: 18px;
  }
}


/* =========================
   ALBUM DROPDOWN MENU
========================== */

.year-album-group {
  scroll-margin-top: 125px;
}

.album-dropdown .dropdown-menu {
  min-width: 138px;
}

.album-dropdown .dropdown-item {
  text-align: center;
}

@media (max-width: 880px) {
  .album-dropdown .dropdown-item {
    text-align: left;
  }
}

/* Research dropdown anchor positioning */
#chemical-transformation,
#nanoparticle-synthesis {
  scroll-margin-top: 112px;
}


/* =========================
   THREE-PAGE RESEARCH MENU
========================== */
.research-dropdown .dropdown-menu {
  min-width: 326px;
}

.research-dropdown .dropdown-item {
  text-align: left;
}

.research-category-hero .page-hero-inner {
  max-width: 940px;
}

.research-category-hero h1 {
  max-width: 920px;
}

.research-category-section {
  background: #ffffff;
}

.research-workflow-figure {
  overflow: hidden;
  margin: 0 0 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(35, 54, 82, 0.06);
}

.research-workflow-figure img {
  width: 100%;
  border-radius: 14px;
}

.research-category-grid .research-detail-card {
  min-height: 410px;
}

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

.research-process-card {
  min-height: 330px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(35, 54, 82, 0.05);
}

.research-process-card > span {
  display: block;
  margin-bottom: 48px;
  color: rgba(33, 85, 164, 0.38);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.research-process-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.25;
}

.research-process-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .research-process-grid {
    grid-template-columns: 1fr;
  }
  .research-process-card {
    min-height: 0;
  }
}

@media (max-width: 880px) {
  .research-dropdown .dropdown-menu {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .research-workflow-figure {
    padding: 8px;
  }
  .research-process-card {
    padding: 30px 26px;
  }
  .research-process-card > span {
    margin-bottom: 28px;
  }
}


/* =========================
   COLOR THEME TOGGLE
========================== */

.brand-logo-dark {
  display: none;
}

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover {
  border-color: rgba(33, 85, 164, 0.48);
  color: var(--blue);
  transform: translateY(-1px);
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-sun {
  display: none;
}

@media (max-width: 880px) {
  .theme-toggle {
    margin-left: auto;
  }
}

.section-heading-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading-centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.home-interest-section {
  background:
    radial-gradient(circle at 15% 8%, rgba(33, 85, 164, 0.04), transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, #f2f7fb 100%);
}

.home-interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-interest-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(35, 54, 82, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-interest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 85, 164, 0.18);
  box-shadow: 0 28px 64px rgba(35, 54, 82, 0.12);
}

.home-interest-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid rgba(33, 85, 164, 0.08);
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.home-interest-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-interest-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 24px 30px;
}

.home-interest-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(33, 85, 164, 0.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-interest-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.48rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.home-interest-subtitle {
  margin: 10px 0 0;
  color: var(--primary);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-interest-content p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.home-interest-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-interest-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.home-interest-list li + li {
  margin-top: 8px;
}

.home-interest-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  background: var(--blue);
  transform: translateY(-50%);
}

@media (max-width: 1200px) {
  .home-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-interest-grid {
    grid-template-columns: 1fr;
  }

  .home-interest-content {
    padding: 24px 22px 26px;
  }

  .home-interest-card h3 {
    font-size: 1.35rem;
  }
}

/* =========================
   HOMEPAGE NEWS + ALBUM
========================== */

.home-updates-section {
  padding-top: 82px;
  background: var(--surface);
}

.home-updates-grid {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.home-updates-heading {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-updates-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.045em;
}

.home-updates-more {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.home-updates-more:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateX(2px);
}

.home-news-list {
  border-top: 1px solid transparent;
}

.home-updates-fallback {
  grid-column: 1 / -1;
  color: var(--muted);
}

.award-card[id] {
  scroll-margin-top: 120px;
}

.home-news-item {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.home-news-category {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-news-item h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.42;
}

.home-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-news-item time {
  padding-top: 25px;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.home-news-item:hover h3 {
  color: var(--blue);
}

.home-album-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 205px);
}

.home-album-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blue-soft);
}

.home-album-card-featured {
  grid-row: 1 / 3;
}

.home-album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.home-album-card:hover img {
  transform: scale(1.035);
}

.home-album-card::after {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 17, 32, 0.78));
  content: "";
}

.home-album-card > span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.home-album-card strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.3;
}

.home-album-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .home-updates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-updates-section {
    padding-top: 66px;
  }

  .home-news-item {
    gap: 12px;
  }

  .home-news-item time {
    padding-top: 23px;
  }

  .home-album-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 280px 210px 210px;
  }

  .home-album-card-featured {
    grid-row: auto;
  }
}

/* News ticker styles */
.news-ticker-section {
    margin-top: 1px;
}

.news-ticker-box {
    display: flex;
    align-items: center;
    padding: 16px 210px;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.news-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-blue);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 20px;
    margin-right: 20px;
    white-space: nowrap;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-blue);
    position: center;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background-color: var(--color-blue);
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.news-carousel {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: center;
}

.news-carousel-track {
    display: flex;
    flex-direction: column;
    animation: tickerVertical 12s infinite ease-in-out;
}

.news-item {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.news-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.news-text {
    color: var(--blue-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes tickerVertical {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-24px); }
    50%, 70% { transform: translateY(-48px); }
    75%, 95% { transform: translateY(-72px); }
    100% { transform: translateY(0); }
}

@keyframes tickerVerticalMobile {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-38px); }
    50%, 70% { transform: translateY(-76px); }
    75%, 95% { transform: translateY(-114px); }
    100% { transform: translateY(0); }
}


/* =========================
   DARK MODE
========================== */

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #8fb4f3;
  --blue-dark: #c7dbff;
  --blue-soft: #172337;
  --navy: #eef4ff;
  --ink: #d7dfeb;
  --muted: #9ba8bc;
  --line: #28364a;
  --surface: #101925;
  --white: #0b121c;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] body {
  background: var(--white);
  color: var(--ink);
}

html[data-theme="dark"] .brand-logo-light,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark,
html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(143, 180, 243, 0.12);
  background: rgba(11, 18, 28, 0.92);
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .dropdown-toggle,
html[data-theme="dark"] .menu-toggle {
  color: var(--navy);
}

html[data-theme="dark"] .menu-toggle span {
  background: var(--navy);
}

html[data-theme="dark"] .theme-toggle {
  background: #111c2a;
}

html[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0d1724 0%, #0b121c 100%);
}

html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 82% 16%, rgba(143, 180, 243, 0.12), transparent 25%),
    linear-gradient(135deg, #0b121c, #111d2c);
}

html[data-theme="dark"] .research-section,
html[data-theme="dark"] .album-section,
html[data-theme="dark"] .news-section,
html[data-theme="dark"] .members-section,
html[data-theme="dark"] .publications-section,
html[data-theme="dark"] .member-directory-section,
html[data-theme="dark"] .member-detail-section,
html[data-theme="dark"] .album-year-section,
html[data-theme="dark"] .research-focus-section,
html[data-theme="dark"] .research-category-section,
html[data-theme="dark"] .awards-section,
html[data-theme="dark"] .page-section,
html[data-theme="dark"] .home-updates-section {
  background: var(--surface);
}

html[data-theme="dark"] .research-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .member-card,
html[data-theme="dark"] .person-card,
html[data-theme="dark"] .member-directory-card,
html[data-theme="dark"] .student-profile-card,
html[data-theme="dark"] .professor-info-card,
html[data-theme="dark"] .research-detail-card,
html[data-theme="dark"] .research-focus-card,
html[data-theme="dark"] .research-process-card,
html[data-theme="dark"] .research-workflow-figure,
html[data-theme="dark"] .research-media-item,
html[data-theme="dark"] .award-image,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .profile-feature,
html[data-theme="dark"] .professor-profile {
  border-color: var(--line);
  background: #101a28;
}

html[data-theme="dark"] .research-focus-media {
  background: #0f1824;
}

html[data-theme="dark"] .home-interest-section {
  background:
    radial-gradient(circle at 15% 8%, rgba(103, 146, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #101823 0%, #0d141e 100%);
}

html[data-theme="dark"] .home-interest-card {
  border-color: var(--line);
  background: #101a28;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .home-interest-card:hover {
  border-color: rgba(143, 180, 243, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .home-interest-media {
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, #162130 0%, #111a27 100%);
}

html[data-theme="dark"] .home-interest-number {
  background: rgba(143, 180, 243, 0.12);
  color: #aecdff;
}

html[data-theme="dark"] .home-interest-card h3 {
  color: #f4f8ff;
}

html[data-theme="dark"] .home-interest-subtitle {
  color: #9ec0ff;
}

html[data-theme="dark"] .award-caption {
  background: #162131;
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .dropdown-menu::before {
  background: #101a28;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: var(--line);
  color: var(--ink);
  background: #101a28;
}

html[data-theme="dark"] .button-outline {
  border-color: var(--line);
  color: var(--blue);
  background: transparent;
}

html[data-theme="dark"] .site-footer {
  background: #070d14;
}

html[data-theme="dark"] .home-album-card {
  background: #101a28;
}

html[data-theme="dark"] .news-hero-summary {
  border-color: rgba(143, 180, 243, 0.2);
}

html[data-theme="dark"] .award-featured,
html[data-theme="dark"] .award-card,
html[data-theme="dark"] .award-caption {
  border-color: var(--line);
  background: #101a28;
}

html[data-theme="dark"] .award-featured-image,
html[data-theme="dark"] .award-image {
  background:
    radial-gradient(circle at 85% 10%, rgba(143, 180, 243, 0.1), transparent 35%),
    #131f2f;
}


/* =========================
   EVENT ALBUM LIGHTBOX
========================== */

.album-gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.album-gallery-trigger:focus-visible {
  outline: 3px solid rgba(33, 85, 164, 0.55);
  outline-offset: -3px;
}

.album-gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-photo-count {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(11, 18, 28, 0.55);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(10px);
}

.album-tile:hover .album-photo-count,
.album-gallery-trigger:focus-visible .album-photo-count {
  opacity: 1;
  transform: translateY(0);
}

.home-album-card {
  padding: 0;
  border: 0;
  text-align: left;
  cursor: zoom-in;
}

body.album-lightbox-open {
  overflow: hidden;
}

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

.album-lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.album-lightbox.open {
  opacity: 1;
}

.album-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(12px);
}

.album-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0d1520;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.album-lightbox.open .album-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.album-lightbox-header {
  display: flex;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
}

.album-lightbox-year {
  margin: 0 0 4px;
  color: #8fb4f3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.album-lightbox-header h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.album-lightbox-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.album-lightbox-counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  white-space: nowrap;
}

.album-lightbox-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.album-lightbox-stage {
  position: relative;
  display: grid;
  min-height: 340px;
  padding: 24px 76px;
  place-items: center;
  background: #080d14;
}

.album-lightbox-figure {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  place-items: center;
}

.album-lightbox-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 720px);
  border-radius: 10px;
  object-fit: contain;
}

.album-lightbox-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  text-align: center;
}

.album-lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.album-lightbox-nav:hover,
.album-lightbox-close:hover {
  background: rgba(143, 180, 243, 0.2);
}

.album-lightbox-prev {
  left: 20px;
}

.album-lightbox-next {
  right: 20px;
}

.album-lightbox-thumbnails {
  display: flex;
  overflow-x: auto;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 10px;
  background: #0d1520;
}

.album-lightbox-thumbnail {
  width: 78px;
  height: 58px;
  flex: 0 0 78px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.album-lightbox-thumbnail.active {
  border-color: #8fb4f3;
}

.album-lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .album-lightbox {
    padding: 12px;
  }

  .album-lightbox-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .album-lightbox-header {
    padding: 16px 17px;
  }

  .album-lightbox-stage {
    min-height: 260px;
    padding: 18px 48px;
  }

  .album-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .album-lightbox-prev {
    left: 8px;
  }

  .album-lightbox-next {
    right: 8px;
  }

  .album-lightbox-figure img {
    max-height: 58vh;
  }
}

/* ============================================================
   흐르는 하이라이트 배너 (마퀴)
   ============================================================ */
.ticker{position:relative;background:linear-gradient(90deg,#0E3A5C 0%,#175A82 50%,#0E3A5C 100%);
  color:#fff;overflow:hidden;border-top:1px solid rgba(255,255,255,.10)}
.ticker-in{display:flex;align-items:center;gap:0}
.ticker-label{flex:none;display:flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.10);padding:14px clamp(16px,2.4vw,26px);
  font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  color:#9FE0F5;border-right:1px solid rgba(255,255,255,.14);white-space:nowrap;z-index:2}
.ticker-label::before{content:"";width:8px;height:8px;border-radius:50%;background:#5FD8F2;
  box-shadow:0 0 0 0 rgba(95,216,242,.7);animation:pulse 2s infinite}
@keyframes pulse{
  70%{box-shadow:0 0 0 9px rgba(95,216,242,0)}
  100%{box-shadow:0 0 0 0 rgba(95,216,242,0)}}
.ticker-track{flex:1;overflow:hidden;position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent)}
.ticker-move{display:flex;width:max-content;animation:slide 42s linear infinite}
.ticker:hover .ticker-move,.ticker:focus-within .ticker-move{animation-play-state:paused}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ticker-move a,.ticker-move span.item{display:flex;align-items:center;gap:10px;
  padding:14px clamp(18px,2.2vw,28px);font-size:14px;color:#E4F2FA;text-decoration:none;white-space:nowrap}
.ticker-move a:hover{color:#fff;text-decoration:underline}
.ticker-move .dot{width:5px;height:5px;border-radius:50%;background:#5FD8F2;flex:none}
.ticker-move .tdate{font-family:var(--mono);font-size:11.5px;color:#8FC5DE}
.ticker-move .tbadge{font-family:var(--mono);font-size:10px;letter-spacing:.08em;
  background:rgba(95,216,242,.18);color:#9FE0F5;padding:3px 9px;border-radius:99px}
@media (prefers-reduced-motion:reduce){.ticker-move{animation:none}
  .ticker-track{overflow-x:auto}}
@media (max-width:640px){.ticker-label{padding:12px 14px;font-size:10.5px}
  .ticker-move a,.ticker-move span.item{font-size:13px;padding:12px 16px}}

  

/* Reference nanoparticle animation, fitted to the existing homepage hero. */
.hero-visual-particles .hero-synthesis-image {
  top: 50%;
  right: 0;
  width: 100%;
  max-height: 620px;
  transform: translateY(-50%);
  mix-blend-mode: normal;
}
.hero-motion-toggle {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-size: 0.75rem;
  cursor: pointer;
}
.hero-motion-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
@media (max-width: 880px) {
  .hero-visual-particles { min-height: 0; height: auto; display: grid; justify-items: center; padding-bottom: 18px; }
  .hero-visual-particles .hero-synthesis-image { position: static; width: min(100%, 520px); transform: none; }
  .hero-motion-toggle { position: static; }
}


/* Keep the home-page lab heading readable in dark mode. */
html[data-theme="dark"] .hero h1-1 em {
  color: var(--navy);
}

.highlight-name {
  font-weight: 700;
}

/* Shared visual refinements */
:root {
  --blue: #2358c4;
  --blue-dark: #19418e;
  --blue-soft: #edf3ff;
  --navy: #14213a;
  --ink: #25334a;
  --muted: #626f82;
  --line: #dfe5ed;
  --surface: #f6f8fb;
  --grey: #979595;
  --max-width: 1240px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 32px rgba(22, 42, 75, .065);
  --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
  scroll-padding-top: 108px;
}

body {
  line-height: 1.7;
}

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

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

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 80px), var(--max-width));
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 86px;
  gap: 24px;
}

.brand-logo {
  width: 218px;
  max-width: none;
  height: auto;
}

.main-nav {
  gap: clamp(24px, calc(7vw - 55px), 46px);
  margin-left: auto;
  min-width: 0;
}

.nav-link {
  font-size: .86rem;
  font-weight: 600;
  padding: 31px 0;
  white-space: nowrap;
}

.nav-link::after {
  bottom: 23px;
  height: 2px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.members-only-link {
  color: var(--muted);
  font-size: .79rem;
}

.dropdown-menu {
  top: calc(100% - 5px);
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(20,33,58,.12);
  visibility: hidden;
}

.dropdown-menu::before {
  display: none;
}

.dropdown-item {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
  padding: 11px 14px;
}

.dropdown-item:hover, .dropdown-item:focus-visible, .dropdown-item.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-dropdown:is(:hover,:focus-within,.open) .dropdown-menu {
  visibility: visible;
}

.section {
  padding-top: 40px;
  padding-bottom: 76px;
}

.eyebrow, .section-kicker {
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .15em;
  font-weight: 700;
  margin-bottom: 16px;
}

h1, h2, h3 {
  text-wrap: balance;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.04em;
}

.section-intro {
  font-size: .98rem;
  line-height: 1.85;
  max-width: 700px;
}

.button {
  border-radius: 6px;
  font-size: .85rem;
  min-height: 48px;
  padding: 12px 22px;
  gap: 22px;
}

.button-primary {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  box-shadow: none;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* A readable, semantic homepage title, with the original NEED initials. */
.hero {
  min-height: 0;
  background: linear-gradient(115deg, #fff 35%, #f5f8ff);
}

.hero-grid {
  min-height: 640px;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  gap: 18px;
}

.hero-copy {
  padding: 66px 0;
}

.hero-copy > .eyebrow {
  margin-bottom: 4px;
}

.hero-affiliation {
  margin: 0 0 28px;
  font-size: .8rem;
  color: var(--muted);
}

.hero .lab-title {
  margin: 0 0 26px;
  font-size: clamp(2.15rem,3.55vw,3.22rem);
  line-height: 1.17;
  letter-spacing: -.055em;
  font-weight: 600;
}

.hero .lab-title > span {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.hero .lab-title b {
  color: var(--blue);
  font-weight: 800;
}

.hero-description {
  max-width: 550px;
  font-size: .96rem;
  line-height: 1.8;
  color: var(--ink);
}

.hero-description-secondary {
  margin-top: 12px;
  color: var(--muted);
  font-size: .86rem;
}

.hero-actions {
  gap: 25px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-text-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  gap: 12px;
  padding: 10px 0;
}

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

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 27px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .025em;
}

.hero-topics span + span::before {
  content: '/';
  color: #a6b6d1;
  margin-right: 14px;
}

.hero-visual.hero-visual-particles {
  min-width: 0;
  min-height: 480px;
  width: 100%;
  margin: 0;
}

.hero-visual-particles .hero-synthesis-image {
  width: 110%;
  max-width: 110%;
  margin-left: -5%;
  height: auto;
  object-fit: contain;
}

.hero-motion-toggle {
  right: 20px;
  bottom: 18px;
  font-size: .68rem;
}

.home-highlights {
  background: var(--white);
}

.highlights-group a {
  padding-block: 16px;
  font-size: .77rem;
}

.highlights-label {
  font-size: .65rem;
}

.highlights-toggle {
  background: var(--surface);
  border-radius: 5px;
}

.home-interest-section {
  background: var(--surface);
}

.home-interest-grid {
  gap: 18px;
}

.home-interest-card {
  border-radius: 12px;
  box-shadow: none;
}

.home-interest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.home-interest-media {
  aspect-ratio: 1.6;
  background: #f0f4fa;
}

.home-interest-content {
  padding: 24px 22px;
}

.home-interest-number {
  background: none;
  border-radius: 0;
  padding: 0;
  color: var(--blue);
  font-size: .72rem;
  margin-bottom: 14px;
}

.home-interest-card h3 {
  font-size: 1.13rem;
  line-height: 1.4;
}

.home-interest-subtitle {
  font-size: .82rem;
  color: var(--blue);
  line-height: 1.7;
}

.home-interest-list {
  margin-block: 16px 24px;
}

.home-interest-list li {
  font-size: .79rem;
  line-height: 1.75;
}

.research-card-link {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
}

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

.home-updates-heading h2 {
  font-size: 2rem;
}

.home-updates-more {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.home-news-item {
  padding-block: 23px;
}

.home-news-item h3 {
  font-size: .98rem;
}

.home-album-card {
  border-radius: 10px;
}

.home-join-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.home-join-form {
  border-radius: 14px;
  background: var(--white);
  box-shadow: none;
}

.home-join-copy h2 {
  font-size: clamp(2.1rem,3.5vw,3rem);
  line-height: 1.2;
}

.title-rule {
  width: 48px;
  margin-block: 23px;
}

/* Shared page introductions and archives. */
.page-hero, .awards-page-hero, .members-page-hero {
  padding: 60px 0 54px;
  background: var(--surface);
}

.page-hero::after {
  width: 360px;
  height: 360px;
  right: 5%;
  bottom: -265px;
  border-color: rgba(35,88,196,.12);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.3rem,4.3vw,3.6rem);
  letter-spacing: -.055em;
  line-height: 1.13;
}

.page-hero-inner > p:last-child {
  margin-top: 18px;
  max-width: 690px;
  font-size: .95rem;
  line-height: 1.75;
}

.page-hero .section-kicker {
  color: var(--blue);
}

.archive-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.archive-nav > span {
  margin-right: 16px;
  color: var(--muted);
  font-size: .75rem;
}

.archive-nav a {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: .78rem;
  color: var(--muted);
}

.archive-nav a:hover, .archive-nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue);
}

.album-year-section {
  padding-top: 42px;
}

.year-album-group {
  scroll-margin-top: 110px;
}

.year-album-header {
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.year-album-header h3 {
  font-size: 1.8rem;
}

.year-album-header span {
  font-size: .77rem;
  font-weight: 500;
}

.year-album-group .album-page-grid, .year-album-group:last-child .album-page-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: auto;
  gap: 28px 24px;
}

.album-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s,border-color .2s;
}

.album-tile-wide {
  grid-column: auto;
}

.album-tile .album-gallery-trigger {
  aspect-ratio: 4 / 3;
  height: auto;
}

.album-tile figcaption {
  position: static;
  padding: 17px 18px 19px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  backdrop-filter: none;
  gap: 14px;
  align-items: flex-start;
}

.album-tile figcaption strong {
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

.album-tile figcaption span {
  color: var(--muted);
  font-size: .72rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.album-tile:hover {
  border-color: #abc2ee;
  box-shadow: var(--shadow-soft);
}

.album-photo-count {
  opacity: 1;
  transform: none;
  border: 0;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: .65rem;
  top: 12px;
  right: 12px;
}

/* Profiles and scientific content. */
.member-subnav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  padding-block: 24px;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--line);
}

.section.member-detail-section {
  padding-top: 40px;
}

.member-subnav a {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.member-subnav a.active {
  background: var(--blue);
  color: #fff;
}

.student-profile-card {
  padding: 24px;
  gap: 22px;
  border-radius: 12px;
  box-shadow: none;
  grid-template-columns: 105px minmax(0,1fr);
}

.student-photo {
  width: 105px;
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.student-profile-card h3 {
  font-size: 1.05rem;
}

.student-degree {
  font-size: .78rem;
}

.student-topic, .student-profile-card a {
  font-size: .82rem;
}

.student-profile-card a {
  overflow-wrap: anywhere;
}

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

.student-group-heading h2 {
  font-size: 1.8rem;
}

.student-group-heading > span {
  font-size: .78rem;
}

.professor-profile {
  box-shadow: none;
  border-radius: 16px;
  padding: 36px;
  gap: 44px;
}

.professor-photo {
  overflow: hidden;
  border-radius: 40px;
}

.professor-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.professor-info-card {
  border-radius: 12px;
  box-shadow: none;
}

.member-directory-card {
  min-height: 330px;
  border-radius: 12px;
  padding: 32px;
}

.alumni-avatar {
  overflow: hidden;
}

.alumni-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-focus-card, .research-detail-card, .research-process-card {
  border-radius: 14px;
  box-shadow: none;
}

.research-focus-content h2 {
  font-size: clamp(1.55rem,2.3vw,2rem);
  line-height: 1.3;
}

.research-focus-content {
  padding: 32px;
}

.research-media-item {
  background: #fff;
}

.research-media-item img {
  object-fit: contain;
}

.research-topic-list p {
  font-size: .88rem;
  line-height: 1.8;
}

/* Publications: comfortable reading and useful discovery. */
.publication-toolbar {
  align-items: end;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.publication-search-field {
  flex: 1;
  max-width: 620px;
}

.publication-toolbar input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 13px 16px;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}

.publication-toolbar :is(input,select) {
  height: 50px;
  font-size: .88rem;
}

.publication-toolbar label span {
  font-size: .75rem;
  font-weight: 600;
}

.publication-count {
  color: var(--muted);
  font-size: .76rem;
  margin: 0 0 38px;
}

.year-heading {
  font-size: 1.75rem;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 0;
}

.publication-page-item {
  grid-template-columns: minmax(180px,250px) 32px minmax(0,1fr);
  padding: 30px 0;
  gap: 24px;
}

.publication-image-wrap {
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.publication-image-wrap img {
  max-height: 190px;
}

.publication-item h3 {
  font-size: 1.07rem;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.publication-item p {
  font-size: .83rem;
  line-height: 1.8;
}

.publication-content .lab-author {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.publication-number {
  color: var(--muted);
  font-size: .8rem;
  padding-top: 4px;
}

.publication-type {
  font-size: .64rem !important;
  letter-spacing: .09em;
}

.publication-links {
  margin-top: 13px;
}

.publication-links a {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: .73rem;
}

.publication-links a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

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

.award-card {
  border-radius: 12px;
  box-shadow: none;
}

.award-card:hover {
  transform: translateY(-3px);
}

.award-image {
  background: var(--surface);
  height: 265px;
  padding: 26px;
}

.award-caption {
  padding: 24px;
}

.award-caption h3 {
  font-size: 1.08rem;
  line-height: 1.5;
}

.award-caption p {
  font-size: .85rem;
}

.award-open {
  font-size: .78rem;
}

.award-year-heading h3 {
  font-size: 1.8rem;
}

.news-hero-summary {
  min-width: 260px;
}

.news-summary-item {
  padding-inline: 20px;
}

.site-footer {
  margin-top: 0;
  padding-top: 56px;
  background: #111e34;
}

.site-footer .brand-logo-light {
  display: none;
}

.site-footer .brand-logo-dark {
  display: block;
  width: 210px;
}

.site-footer p, .site-footer a {
  font-size: .81rem;
  line-height: 1.8;
}

.footer-grid {
  gap: 48px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
}

/* Dark mode maintains the same hierarchy. */
html[data-theme='dark'] {
  --blue: #91b5ff;
  --blue-dark: #b9ceff;
  --blue-soft: #1a2b47;
  --navy: #edf2fc;
  --ink: #d3ddee;
  --muted: #a0aec4;
  --line: #2b3b53;
  --surface: #111c2c;
  --white: #0d1624;
}

html[data-theme='dark'] .hero {
  background: linear-gradient(115deg,#0d1624,#132039);
}

html[data-theme='dark'] .page-hero {
  background: var(--surface);
}

html[data-theme='dark'] .home-interest-section, html[data-theme='dark'] .home-join-section {
  background: var(--surface);
}

html[data-theme='dark'] .home-interest-media {
  background: #eaf0f8;
}

html[data-theme='dark'] .home-interest-card, html[data-theme='dark'] .home-join-form {
  background: var(--white);
}

html[data-theme='dark'] .button-primary, html[data-theme='dark'] .member-subnav a.active {
  background: #386ad0;
  color: #fff;
  border-color: #386ad0;
}

html[data-theme='dark'] .dropdown-menu {
  background: var(--white);
  border-color: var(--line);
}

html[data-theme='dark'] .publication-image-wrap, html[data-theme='dark'] .research-media-item {
  background: #fff;
}

html[data-theme='dark'] .album-tile figcaption {
  background: var(--white);
  color: var(--navy);
}

html[data-theme='dark'] .album-tile figcaption span {
  color: var(--muted);
}

html[data-theme='dark'] .archive-nav a {
  color: var(--muted);
}

/* Collapse the navigation before its contents can overflow. */
@media (max-width:1120px) {
  .header-inner {
    min-height: 76px;
    gap: 14px;
  }
  .brand-logo {
    width: 218px;
    max-width: 60vw;
  }
  .brand {
    margin-right: auto;
  }
  .menu-toggle {
    display: block;
    order: 3;
    flex-shrink: 0;
  }
  .theme-toggle {
    order: 2;
    margin-left: 0;
  }
  .main-nav {
    position: absolute;
    display: none;
    top: 76px;
    left: 0;
    right: 0;
    padding: 14px 32px 24px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 20px 35px rgba(20,33,58,.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 0;
    font-size: .9rem;
  }
  .nav-link::after {
    display: none;
  }
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 13px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-dropdown:is(:hover,:focus-within) .dropdown-menu {
    display: none;
    transform: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: grid;
    transform: none;
  }
  .dropdown-item {
    white-space: normal;
  }
  .home-interest-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1000px) {
  .year-album-group .album-page-grid, .year-album-group:last-child .album-page-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .home-updates-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 50px;
  }
  .hero-grid {
    min-height: 570px;
  }
  .hero-visual.hero-visual-particles {
    min-height: 350px;
  }
  .publication-page-item {
    grid-template-columns: 180px 26px minmax(0,1fr);
    gap: 18px;
  }
}

@media (max-width:820px) {
  .container {
    width: calc(100% - 48px);
  }
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  .hero-copy {
    padding: 50px 0 12px;
  }
  .hero .lab-title {
    font-size: clamp(2rem,6vw,3.15rem);
  }
  .hero-description {
    max-width: 600px;
  }
  .hero-visual.hero-visual-particles {
    min-height: 0;
    height: 360px;
  }
  .hero-visual-particles .hero-synthesis-image {
    width: 390px;
    max-width: 100%;
    height: 100%;
    margin: auto;
  }
  .section {
    padding-block: 54px;
  }
  .page-hero {
    padding-block: 44px;
  }
  .page-hero h1 {
    font-size: clamp(2.05rem,6vw,3rem);
  }
  .student-card-grid, .compact-student-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .news-hero-layout {
    gap: 24px;
  }
  .news-hero-summary {
    min-width: 0;
  }
  .professor-profile {
    padding: 26px;
    gap: 28px;
  }
  .publication-page-item {
    grid-template-columns: 28px minmax(0,1fr);
  }
  .publication-image-wrap {
    grid-column: 2;
    max-width: 400px;
  }
  .publication-number {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .publication-content {
    grid-column: 2;
  }
  .research-focus-content {
    padding: 26px;
  }
  .footer-grid {
    gap: 32px;
  }
}

@media (max-width:640px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 70px;
    gap: 8px;
  }
  .brand-logo {
    width: 195px;
    max-width: 53vw;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .main-nav {
    top: 70px;
    padding-inline: 22px;
    max-height: calc(100dvh - 70px);
  }
  .hero-copy {
    padding-top: 38px;
  }
  .hero-affiliation {
    margin-bottom: 22px;
    font-size: .74rem;
  }
  .hero .lab-title {
    font-size: clamp(1.9rem,7.6vw,2.8rem);
  }
  .hero-description {
    font-size: .9rem;
  }
  .hero-description-secondary {
    font-size: .82rem;
  }
  .hero-actions {
    gap: 12px 20px;
  }
  .hero-topics {
    gap: 7px 10px;
    font-size: .63rem;
  }
  .hero-topics span + span::before {
    margin-right: 10px;
  }
  .hero-visual.hero-visual-particles {
    height: 285px;
  }
  .hero-motion-toggle {
    bottom: 8px;
    right: 2px;
  }
  .home-interest-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .home-interest-card {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
  }
  .home-interest-media {
    height: 100%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
  }
  .home-interest-media img {
    height: auto;
    object-fit: contain;
  }
  .home-interest-content {
    padding: 20px 16px;
  }
  .home-interest-card h3 {
    font-size: 1rem;
  }
  .home-interest-number {
    margin-bottom: 8px;
  }
  .home-interest-list {
    margin-block: 12px 18px;
  }
  .home-interest-subtitle {
    font-size: .77rem;
  }
  .home-interest-list li {
    font-size: .75rem;
  }
  .highlights-label {
    font-size: .59rem;
  }
  .highlights-inner {
    gap: 10px;
  }
  .archive-nav {
    gap: 5px;
    padding-block: 18px;
  }
  .archive-nav > span {
    width: 100%;
    margin-bottom: 4px;
  }
  .archive-nav a {
    padding: 5px 9px;
  }
  .year-album-group .album-page-grid, .year-album-group:last-child .album-page-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 22px;
    grid-auto-rows: auto;
  }
  .year-album-header {
    flex-direction: row;
    align-items: center;
  }
  .album-tile .album-gallery-trigger {
    aspect-ratio: 4 / 3;
  }
  .album-tile figcaption {
    padding: 16px;
  }
  .member-subnav a {
    padding: 8px 14px;
    font-size: .8rem;
  }
  .student-profile-card, .compact-student-grid .student-profile-card {
    padding: 20px;
    grid-template-columns: 82px minmax(0,1fr);
    gap: 18px;
  }
  .student-photo, .compact-student-grid .student-photo {
    width: 82px;
    height: 106px;
  }
  .publication-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .publication-toolbar select {
    width: 100%;
  }
  .publication-count {
    margin-bottom: 26px;
  }
  .publication-page-item {
    gap: 16px;
  }
  .publication-item h3 {
    font-size: 1rem;
  }
  .publication-image-wrap {
    max-width: none;
  }
  .home-join-form {
    padding: 22px;
  }
  .news-hero-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .site-footer {
    padding-top: 42px;
  }
  .footer-bottom {
    margin-top: 28px;
  }
}

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

/* Homepage layout */
.layout-rearranged .hero-grid {
  grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
  gap: 55px;
}

/* Research is a distinct two-part section: introduction beside a 2x2 grid.
Every illustration keeps its native 640x420 proportions above its text. */
.layout-rearranged .research-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 52px;
  align-items: start;
}

.layout-rearranged .research-layout-intro {
  position: sticky;
  top: 120px;
  text-align: left;
  margin: 0;
}

.layout-rearranged .research-layout-intro h2 {
  text-wrap: initial;
}

.layout-rearranged .research-layout-intro .section-intro {
  margin: 22px 0 0;
}

.layout-rearranged .home-interest-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 26px;
}

.layout-rearranged .home-interest-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.layout-rearranged .home-interest-media {
  flex: none;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 32 / 21;
  margin: 0;
  padding: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.layout-rearranged .home-interest-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.layout-rearranged .home-interest-content {
  flex: 1;
  padding: 24px;
}

.layout-rearranged .home-interest-card h3 {
  min-height: 2.8em;
}

.layout-rearranged .research-card-link {
  margin-top: auto;
}

/* News and photos have separate full-width sections with consistent columns. */
.layout-rearranged .layout-news-section .home-news-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
}

.layout-rearranged .layout-news-section .home-news-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: stretch;
  gap: 16px;
}

.layout-rearranged .layout-news-section .home-news-item time {
  padding: 0;
}

.layout-rearranged .layout-album-section {
  padding-top: 0;
}

.layout-rearranged .layout-album-section .home-album-gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: auto;
  gap: 24px;
}

.layout-rearranged .layout-album-section .home-album-card {
  grid-column: auto;
  grid-row: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 4/3;
}

.layout-rearranged .home-join-grid {
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: 75px;
}

@media(max-width:1120px) {
  .layout-rearranged .hero-grid {
    gap: 25px;
  }
  .layout-rearranged .research-layout {
    grid-template-columns: 210px minmax(0,1fr);
    gap: 30px;
  }
  .layout-rearranged .research-layout-intro h2 {
    font-size: 2rem;
  }
  .layout-rearranged .home-interest-grid {
    gap: 20px;
  }
  .layout-rearranged .home-interest-content {
    padding: 20px;
  }
  .layout-rearranged .home-join-grid {
    gap: 40px;
  }
}

@media(max-width:900px) {
  .layout-rearranged .research-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .layout-rearranged .research-layout-intro {
    position: static;
    max-width: 650px;
  }
  .layout-rearranged .research-layout-intro .section-intro {
    margin-top: 16px;
  }
}

@media(max-width:820px) {
  .layout-rearranged .hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  .layout-rearranged .layout-news-section .home-news-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .layout-rearranged .layout-news-section .home-news-item {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
  .layout-rearranged .home-join-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:600px) {
  .layout-rearranged .home-interest-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }
  .layout-rearranged .home-interest-content {
    padding: 24px;
  }
  .layout-rearranged .home-interest-card h3 {
    min-height: 0;
  }
  .layout-rearranged .layout-album-section .home-album-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
