@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;650;700;800;900&display=swap');

:root {
  --purdue-gold: #cfb991;
  --purdue-gold-dark: #8e6f3e;
  --black: #0b0b0b;
  --ink: #171717;
  --text: #2b2b2b;
  --muted: #68707f;
  --line: #e4e6eb;
  --soft: #f8f8f8;
  --white: #ffffff;
  --blue: #5b7cfa;
  --green: #16a37f;
  --pink: #d95f9f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(207, 185, 145, 0.18), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.8rem 1.1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;          
  padding-right: 3rem;
  margin-right: -0.5rem;
  border-right: 3px solid #bbb;
  flex: 0 0 180px;       
}

.purdue-logo {
  height: 35px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
}

.lab-wordmark {
  font-weight: 850;
  font-size: clamp(1.45rem, 2.3vw, 1.75rem);
  letter-spacing: -0.035em;
  color: var(--black);
  margin: 0;             
}

.lab-wordmark span { color: var(--purdue-gold-dark); }
/* #d99000 */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 2.5rem;
  min-height: 58px;
  align-items: center;
  background: #eeeeee;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.main-nav a {
  position: relative;
  padding: 0.95rem 0.85rem;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--black);
  transition: transform 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  height: 2px;
  background: var(--purdue-gold-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover { transform: translateY(-1px); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* Home */

.home-main {
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem 4rem;
}

.home-hero {
  width: min(980px, 100%);
  text-align: center;
}

.lab-logo {
  width: min(620px, 100vw);
  margin: 0 auto 2rem;
  border-radius: 24px;
}

.home-vision {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  color: #262626;
}

.home-note {
  max-width: 820px;
  margin: 1.05rem auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.13rem);
}

.home-emp {
  max-width: 820px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.13rem);
  color: #be6500;
}

.sparkle-text {
  position: relative;
  color: var(--purdue-gold-dark);
  font-weight: 900;
  background: linear-gradient(
    90deg,
    var(--purdue-gold-dark),
    #f2c94c,
    #fff2b0,
    var(--purdue-gold-dark)
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sparkleText 2.4s linear infinite;
}

@keyframes sparkleText {
  0% {
    background-position: 220% center;
  }
  100% {
    background-position: -220% center;
  }
}

.subtle-highlight {
  color: #be6500;
  font-weight: 700;
  animation: goldPulseOnce 2.5s ease-in-out 1;
}

@keyframes goldPulseOnce {
  0% {
    color: #be6500;
    text-shadow: none;
  }

  45% {
    color: #d99000; 
    text-shadow: 0 0 8px rgba(217, 144, 0, 0.25);
  }

  100% {
    color: #be6500;
    text-shadow: none;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  min-width: 145px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  background: #be6500;
}

/* Pages */

.page-main {
  min-height: calc(100vh - 136px);
  background:
    radial-gradient(circle at top right, rgba(207, 185, 145, 0.11), transparent 28rem),
    var(--soft);
}

.page-inner {
  width: min(var(--max-width), calc(100% - 2.8rem));
  margin: 0 auto;
  padding: 3.2rem 0 6rem;
}

.section-title {
  margin: 0 0 1.2rem;
  color: var(--black);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.05em;
}

/* People */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 1.15rem;
  align-items: stretch;
}

.person-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.person-card:hover {
  transform: translateY(-7px);
  border-color: rgba(142,111,62,0.35);
  box-shadow: var(--shadow);
}

.person-photo {
  aspect-ratio: 4 / 4.65;
  width: 100%;
  object-fit: cover;
  background: #e9ecef;
}

.person-info {
  padding: 1.18rem 1.2rem 1.35rem;
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
}

.person-info h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--black);
}

.person-info .role {
  margin: 0.48rem 0 0.75rem;
  color: var(--purdue-gold-dark);
  font-weight: 780;
  line-height: 1.35;
}

.person-info p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0 0.35rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(207, 185, 145, 0.18);
  border: 1px solid rgba(142, 111, 62, 0.22);
  color: var(--purdue-gold-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.future-card {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(207,185,145,0.22), transparent 20rem),
    var(--white);
  border: 1px dashed rgba(142,111,62,0.38);
  box-shadow: var(--shadow-soft);
}

.future-card .plus {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.9rem;
  border-radius: 19px;
  background: var(--black);
  color: var(--purdue-gold);
  font-size: 2rem;
  font-weight: 650;
}

.future-card h3 {
  margin: 0 0 0.7rem;
  color: var(--black);
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.future-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Person detail page */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.profile-photo-large {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.profile-details {
  padding-top: 0.4rem;
}

.profile-details h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.profile-title {
  margin: 0.8rem 0 1.4rem;
  color: var(--purdue-gold-dark);
  font-size: 1.22rem;
  font-weight: 850;
}

.info-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.info-list li {
  color: var(--muted);
}

.info-list strong {
  display: inline-block;
  min-width: 78px;
  color: var(--black);
}

.info-list a {
  color: var(--purdue-gold-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bio-block {
  padding: 1.5rem;
  border-radius: 0; 
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.bio-block h2 {
  margin: 0 0 0.8rem;
  color: var(--black);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.bio-block p {
  margin: 0;
  color: var(--muted);
}

.teaching-block {
  margin-top: 2rem;
}

.teaching-block h2 {
  margin-bottom: 0.3rem;
}

.teaching-block ul {
  margin-top: 0.2rem;
  padding-left: 1.25rem;
}

.teaching-block li {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

/* Research */

.thrust-list {
  display: grid;
  gap: 1.25rem;
}

.thrust-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  height: 250px;
}

.thrust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.thrust-card:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

.thrust-card:nth-child(even) .thrust-image { order: 2; }



.thrust-content {
  padding: clamp(0.8rem, 1.6vw, 1.4rem);
  padding-left: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.thrust-number {
  color: var(--purdue-gold-dark);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.thrust-content h2 {
  margin: 0.55rem 0 0.8rem;
  color: var(--black);
  font-size: clamp(1.3rem, 3.0vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.thrust-content p {
  color: var(--muted);
  margin: 0;
}

.thrust-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.thrust-image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Popup modal using :target */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0,0,0,0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(860px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);

  display: block;         
  padding-left: 34px;     
}

/* 골드 세로 띠 */
.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 100%;
  background: var(--purdue-gold);
  z-index: 1;
}


.modal-image {
  display: none !important;
}


.modal-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 3vw, 2rem);
  overflow-y: auto;
}

.modal-content h2 {
  margin: 0.35rem 0 1rem;
  color: var(--black);
  font-size: clamp(1.3rem, 3.0vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.modal-content p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(25, 25, 25, 0.78);
  color: #fff;
  text-decoration: none;

  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.modal-close:visited {
  color: #fff;
}


.research-topic-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.research-topic-list li {
  margin-bottom: 0.45rem;
}

.research-topic-list li::marker {
  color: var(--purdue-gold-dark);
}


/* Tags */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.16rem 0.50rem;
  border-radius: 999px;
  color: var(--black);
  background: rgba(0,0,0,0.035);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.70rem;
  font-weight: 800;
  line-height: 1;
}

/* tage-study type */
.tag.empirical { background: rgba(91,124,250,0.12); border-color: rgba(91,124,250,0.28); color: #3450c8; }
.tag.review { background: rgba(215,180,90,0.18); border-color: rgba(215,180,90,0.38); color: #8a6610; }
.tag.conceptual { background: rgba(22,163,127,0.12); border-color: rgba(22,163,127,0.30); color: #087a60; }
.tag.design { background: rgba(217,95,159,0.12); border-color: rgba(217,95,159,0.30); color: #a83f76; }

/* tag - domain */
.tag.mobility { background: rgba(70, 130, 180, 0.11);  border-color: rgba(70, 130, 180, 0.28);  color: #356f99;}
.tag.defense { background: rgba(92, 107, 115, 0.13); border-color: rgba(92, 107, 115, 0.30); color: #47545b;}
.tag.logistics {background: rgba(196, 127, 55, 0.12); border-color: rgba(196, 127, 55, 0.30); color: #9a5d1f;}
.tag.accessibility { background: rgba(126, 87, 194, 0.11); border-color: rgba(126, 87, 194, 0.28); color: #6843a5;}
.tag.education { background: rgba(76, 154, 112, 0.11); border-color: rgba(76, 154, 112, 0.28); color: #3d7f5a;}


/* Publications */

.publication-intro {
  margin-bottom: 1.6rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  color: var(--muted);
}

.publication-intro a,
.opportunity-card a {
  color: var(--purdue-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.pub-section { margin-top: 2.2rem; }

.pub-list {
  display: grid;
  gap: 0.46rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pub-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: start;
  gap: 1rem;
  padding: 0.72rem 0.92rem;
  border-radius: 13px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(0,0,0,0.055);
  box-shadow: 0 6px 18px rgba(0,0,0,0.025);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pub-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.88);
  border-color: rgba(142,111,62,0.24);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.pub-tags { margin-top: 0; align-self: start; }
.pub-text { color: #30333a; font-size: 0.95rem; line-height: 1.48; }
.me { color: var(--purdue-gold-dark); font-weight: 900; }
.pub-venue { color: var(--black); font-style: italic; font-weight: 650; }
.pub-link {
  display: inline-flex;
  margin-left: 0.35rem;
  color: var(--purdue-gold-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* News */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.news-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-7px);
  border-color: rgba(142, 111, 62, 0.35);
  box-shadow: var(--shadow);
}


.news-image {
  height: 198px;
  background: #f4f5f8;
  display: flex;
  align-items: center;      /* image vertically centered */
  justify-content: center;  /* image horizontally centered */
  overflow: hidden;
  position: relative;
}


.news-image.award-image-area {
  background: #fff;
}

.publication-image-area {
  background: #fff;
}


/* Award logo */
.award-image {
  width: 80%;
  max-width: 260px;
  height: auto;
  display: block;
  object-fit: contain;
}

.publication-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Publication placeholder */
.news-image.placeholder::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -18px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(207, 185, 145, 0.95);
}


.news-body {
  padding: 1.1rem 1.1rem 0.9rem;
}

/* tag */
.news-type {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-type.award {
  color: var(--black);
  background: var(--purdue-gold);
}

.news-type.publication {
  color: #fff;
  background: var(--blue);
}

.news-card h2 {
  margin: 0.85rem 0 0.45rem;
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card .read-more {
  display: inline-flex;
  margin-top: 0.8rem;
  margin-bottom: 0;
  color: var(--purdue-gold-dark);
  font-weight: 850;
}

/* Mobile */
@media (max-width: 850px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 170px;
  }
}

/* News detail */

.article { max-width: 860px; margin: 0 auto; }

.article-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.article-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.4rem 0;
}

.article-card h1 {
  color: var(--black);
  font-size: clamp(1.6rem, 4.5vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0.7rem 0 0.8rem;
}

.article-card p { color: var(--text); }



/* Opportunities */

.opportunity-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.opportunity-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.opportunity-card h2 {
  color: var(--black);
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.opportunity-card p,
.opportunity-card li { color: var(--muted); }
.opportunity-card strong { color: var(--black); }
.opportunity-card ul { margin: 1rem 0 0; padding-left: 1.2rem; }

.copy-email {
  color: #be6500;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.copy-email:hover {
  color: #8f4700;
}

/* Footer only black */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.62);
  text-align: center;
  padding: 1.8rem 1.5rem;
  font-size: 0.95rem;
}

/* =========================
   Responsive / Mobile
   ========================= */

/* Tablet and small desktop */
@media (max-width: 900px) {
  .people-grid,
  .profile-layout,
  .news-grid,
  .pub-item {
    grid-template-columns: 1fr;
  }

  .pub-item {
    gap: 0.35rem;
  }

  .pub-tags {
    order: -1;
  }

  .page-inner {
    width: min(100% - 2rem, var(--max-width));
    padding-top: 2.5rem;
  }
}


/* Mobile */
@media (max-width: 760px) {

  /* -------------------------
     Header
     ------------------------- */

  .brand-row {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.25rem 1rem 1rem !important;
  }

  .logo-link {
    width: auto !important;
    flex: 0 0 auto !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-right: none !important;
  }

  .purdue-logo {
    height: 30px !important;
    width: auto !important;
    max-width: 78vw !important;
    object-fit: contain !important;
  }

  .lab-wordmark {
    font-size: clamp(1.3rem, 5.0vw, 1.55rem) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: normal !important;
    max-width: 350px !important;
    letter-spacing: -0.045em !important;
    margin: 0 !important;
  }


  /* -------------------------
     Navigation
     ------------------------- */

  .main-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 0.12rem 0.58rem !important;
    padding: 0.55rem 0.45rem 0.65rem !important;
    min-height: auto !important;

    overflow-x: visible !important;
    white-space: normal !important;
  }

  .main-nav a {
    flex: 0 0 auto !important;
    font-size: 0.93rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    padding: 0.35rem 0.35rem !important;
    white-space: nowrap !important;
  }

  .main-nav a::after {
    left: 0.25rem !important;
    right: 0.25rem !important;
    bottom: 0.14rem !important;
  }


  /* -------------------------
     Research thrust cards
     ------------------------- */

  .thrust-card,
  .thrust-card:nth-child(even) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .thrust-card:nth-child(even) .thrust-image {
    order: 0 !important;
  }

  .thrust-card:nth-child(even) .thrust-content {
    order: 1 !important;
  }

  .thrust-image {
    width: 100% !important;
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0.85rem !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .thrust-image img {
    display: block !important;

    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
  }

  .thrust-content {
    display: block !important;
    padding: 1.1rem 1.2rem 1.25rem !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .thrust-number,
  .thrust-content h2,
  .thrust-content p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .thrust-content h2 {
    margin: 0.45rem 0 0.55rem !important;
    font-size: 1.45rem !important;
    line-height: 1.05 !important;
  }

  .thrust-content p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }


  /* -------------------------
     Modal
     ------------------------- */

  .modal {
    padding: 1rem !important;
  }

  .modal-panel {
    width: min(92vw, 860px) !important;
    max-height: calc(100vh - 2rem) !important;
    grid-template-columns: 1fr !important;
  }

  .modal-content {
    padding: 1.65rem 1.35rem 1.5rem !important;
  }

  .modal-content h2 {
    font-size: 1.65rem !important;
    line-height: 1.02 !important;
  }

  .modal-close {
    top: 0.9rem !important;
    right: 0.9rem !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 1.4rem !important;
  }


  /* -------------------------
     Home logo
     ------------------------- */

  .lab-logo {
    width: 320px !important;
  }
}


/* Very small phones */
@media (max-width: 390px) {
  .lab-wordmark {
    font-size: clamp(1.05rem, 4.4vw, 1.22rem) !important;
    max-width: 320px !important;
  }

  .main-nav {
    gap: 0.1rem 0.45rem !important;
  }

  .main-nav a {
    font-size: 0.86rem !important;
    padding: 0.32rem 0.2rem !important;
  }

  .thrust-image {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .thrust-image img {
    max-width: 90% !important;
    max-height: 100% !important;
  }
}
