/* ==========================================================================
   Efficient Machine Intelligence Lab @ Korea University
   Shared design system
   ========================================================================== */

:root {
  /* Korea University crimson palette */
  --crimson: #8a1538;
  --crimson-dark: #6d1029;
  --crimson-soft: #f6ebee;
  --ink: #14181f;
  --body: #3a4250;
  --muted: #6b7280;
  --line: #e7e9ee;
  --line-soft: #f0f1f4;
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-tint: #f7f8fa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.04),
    0 4px 16px rgba(20, 24, 31, 0.05);
  --shadow-md: 0 12px 32px rgba(20, 24, 31, 0.1);
  --maxw: 1120px;
  --font-sans: "Inter", "Apple SD Gothic Neo", "Noto Sans KR",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

img {
  max-width: 100%;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 860px;
}

/* --------------------------------------------------------------- Header -- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

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

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

.brand img {
  width: 34px;
  height: 34px;
  flex: none;
}

.mini-lab-mark {
  width: 74px;
  height: 34px;
  flex: none;
  background-image: url("images/emi-lab-mark-transparent.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: var(--bg-tint);
  color: var(--ink);
}

.nav a.active {
  color: var(--crimson);
  background: var(--crimson-soft);
}

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* --------------------------------------------------------------- Buttons - */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(138, 21, 56, 0.24);
}

.btn.primary:hover {
  background: var(--crimson-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(138, 21, 56, 0.3);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn.ghost:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: var(--white);
}

.btn.sm {
  padding: 8px 15px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------- Hero ---- */
.hero {
  position: relative;
  padding: 92px 0 76px;
  background:
    radial-gradient(
      1100px 480px at 78% -8%,
      rgba(138, 21, 56, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 70%);
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-soft);
  border: 1px solid rgba(138, 21, 56, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero h1 .accent {
  color: var(--crimson);
}

.hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--body);
  max-width: 62ch;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------- Section base -- */
.section {
  padding: 84px 0;
}

/* Tighter vertical rhythm on the home page */
body.home .section {
  padding: 48px 0;
}

.section.tint {
  background: var(--bg-tint);
}

.section-head {
  margin-bottom: 40px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.15;
}

.section .subhead {
  font-size: 17px;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

.page-hero {
  padding: 72px 0 20px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 14px;
  line-height: 1.1;
}

.page-hero p {
  font-size: 18px;
  color: var(--body);
  max-width: 66ch;
  margin: 0;
}

/* --------------------------------------------------------------- Cards --- */
.card-grid {
  display: grid;
  gap: 22px;
}

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

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 21, 56, 0.28);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson-soft);
  color: var(--crimson);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

.card .tag-row {
  margin-top: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--crimson);
  background: var(--crimson-soft);
  border-radius: 999px;
  padding: 4px 11px;
}

/* --------------------------------------------------- Home: highlights ---- */
.highlight-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  align-items: center;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-thumb {
  width: 200px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-venue {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 6px;
}

.highlight-item h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.highlight-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--body);
}

/* -------------------------------------------------------------- News ----- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--crimson-soft);
}

.news-year:first-child {
  margin-top: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-text {
  color: var(--body);
  font-size: 15.5px;
}

.paper-title {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* --------------------------------------------------- Publications -------- */
.pub-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--crimson-soft);
}

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

.pub-item {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pub-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 21, 56, 0.22);
}

.pub-figure {
  width: 158px;
  height: 108px;
  border-radius: 10px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}

.pub-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-figure-fallback {
  display: none;
  font-size: 12px;
  color: var(--muted);
}

.pub-figure.missing .pub-figure-fallback {
  display: inline-flex;
}

.pub-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pub-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.pub-meta {
  color: var(--muted);
  font-size: 14px;
}

.pub-meta sup {
  font-size: 0.7em;
}

.pub-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--crimson);
  background: var(--crimson-soft);
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.pub-links {
  margin-top: 4px;
  font-size: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pub-links a {
  font-weight: 600;
}

/* --- Clean text-only publication list (Conference / Journal) --- */
.pub-cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  margin: 150px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--crimson-soft);
}

.pub-cat:first-of-type {
  margin-top: 0;
}

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

.paper {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: baseline;
  line-height: 1.5;
}

.paper-yr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--crimson);
}

/* Keep each publication compact; wrap only when the line is too long
   so the venue is always visible (never truncated). */
.paper > div {
  font-size: 14.5px;
  min-width: 0;
}

/* Per-year accent colors for the year label */
.yr-2026 { color: #8a1538; }
.yr-2025 { color: #b8433f; }
.yr-2024 { color: #c9791b; }
.yr-2023 { color: #7a8b1f; }
.yr-2022 { color: #2f8f6b; }
.yr-2021 { color: #2f7fa8; }
.yr-2020 { color: #3b5bbf; }
.yr-2019 { color: #6a4bb0; }
.yr-2018 { color: #8a4b8f; }

.paper-ttl {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline;
}

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

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

.paper-auth {
  color: var(--body);
  display: inline;
}

.paper-auth::before {
  content: " — ";
  color: var(--muted);
  font-weight: 400;
}

.paper-ven::before {
  content: " · ";
  color: var(--muted);
  font-style: normal;
}

.paper-auth strong {
  color: var(--ink);
  font-weight: 700;
}

.paper-auth sup {
  font-size: 0.7em;
}

.paper-ven {
  color: var(--muted);
  font-style: italic;
  display: inline;
}

.paper .pub-badge {
  margin-left: 6px;
}

@media (max-width: 640px) {
  .paper {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
}

/* ---------------------------------------------------------- People ------- */
.pi-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.pi-photo {
  width: 240px;
  height: 288px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  background: var(--bg-tint);
}

.pi-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.pi-role {
  color: var(--crimson);
  font-weight: 600;
  font-size: 15.5px;
  margin: 0 0 18px;
}

.pi-info p {
  margin: 0 0 14px;
  color: var(--body);
}

.pi-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Equal team grid — advisor and students share the same card */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
  color: inherit;
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 21, 56, 0.28);
}

.person-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tint);
  margin-bottom: 16px;
  flex: none;
  display: block;
}

a.person-photo {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.person-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 4px var(--crimson-soft);
}

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

.person-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(138, 21, 56, 0.4);
  background: var(--crimson-soft);
}

.person-photo.placeholder span {
  font-size: 40px;
  font-weight: 300;
  color: var(--crimson);
  line-height: 1;
}

.person-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.person-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--crimson);
  margin: 0 0 10px;
}

.person-bio {
  font-size: 13.5px;
  color: var(--body);
  margin: 0 0 14px;
}

.person-cv {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  width: 100%;
  display: grid;
  gap: 6px;
}

.person-cv li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.5;
  white-space: nowrap;
}

.person-cv li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}

.person-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
}

/* Open (placeholder) member seats */
.person-open {
  border-style: dashed;
  border-color: rgba(138, 21, 56, 0.35);
  background: linear-gradient(180deg, var(--crimson-soft) 0%, var(--white) 70%);
}

.person-open:hover {
  border-color: var(--crimson);
}

.person-cta {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--crimson);
}

.member-note {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 26px;
  border: 1px dashed rgba(138, 21, 56, 0.32);
  border-radius: var(--radius);
  background: var(--crimson-soft);
}

.member-note .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
  box-shadow: 0 0 0 5px rgba(138, 21, 56, 0.14);
}

.member-note p {
  margin: 0;
  color: var(--crimson-dark);
  font-weight: 500;
}

/* --------------------------------------------------------------- Join ---- */
.join-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.join-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--body);
}

.join-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--crimson-soft);
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.callout {
  margin-top: 40px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(138, 21, 56, 0.85) 0%,
    rgba(109, 16, 41, 0.85) 100%
  );
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(138, 21, 56, 0.18);
}

.callout h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 10px;
}

.callout p {
  margin: 0 auto 22px;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
}

.callout .btn.primary {
  background: #fff;
  color: var(--crimson);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.callout .btn.primary:hover {
  background: #fff;
  color: var(--crimson-dark);
}

/* ---------------------------------------------------- Collaborators ------ */
.collab-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 8px;
}

.collab-logos.collab-logos-left {
  justify-content: flex-start;
}

.collab-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Balance the full wordmarks so their letter heights look consistent */
.collab-logos img[alt="Google"] {
  height: 30px;
}
.collab-logos img[alt="Amazon"] {
  height: 34px;
}
.collab-logos img[alt="Meta"] {
  height: 26px;
}
.collab-logos img[alt="ByteDance"] {
  height: 26px;
}
.collab-logos img[alt="Sungkyunkwan University"] {
  height: 40px;
}
.collab-logos img[alt="USC"] {
  height: 26px;
}
.collab-logos img[alt="Thaki Cloud"] {
  height: 24px;
}
.collab-logos img[alt="Oak Ridge National Laboratory"] {
  height: 36px;
}

/* Physion Labs has no wordmark; pair its icon with a text label */
.collab-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.collab-lockup:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.collab-lockup img {
  height: 34px;
  width: auto;
  border-radius: 8px;
}

.collab-lockup span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.collab-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* --------------------------------------------------------- Contact ------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-line:last-child {
  border-bottom: none;
}

.contact-line .ci {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--crimson-soft);
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-line .ci svg {
  width: 20px;
  height: 20px;
}

.contact-line .cl {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-line .cv {
  color: var(--ink);
  font-size: 15.5px;
}

.map-embed {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------- Footer -- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand span {
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.footer-top p {
  margin: 0;
  font-size: 14px;
  max-width: 40ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  padding: 5px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------- Utilities ----- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--crimson);
  line-height: 1;
}

.stat .lbl {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* --------------------------------------------------------- Responsive ---- */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .pi-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pi-links {
    justify-content: center;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    gap: 8px;
    flex: 1;
  }

  .mini-lab-mark {
    width: 49px;
    height: 23px;
  }

  .brand-text {
    overflow: hidden;
  }

  .brand-name {
    font-size: clamp(9px, 2.55vw, 12px);
  }

  .brand-sub {
    font-size: clamp(7px, 1.95vw, 9.5px);
    letter-spacing: 0;
  }

  .collab-logos {
    gap: 36px;
  }

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

  .highlight-item {
    grid-template-columns: 1fr;
  }

  .highlight-thumb {
    width: 100%;
    height: 170px;
  }

  .pub-item {
    grid-template-columns: 1fr;
  }

  .pub-figure {
    width: 100%;
    height: 180px;
  }

  .news-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
}

@media (max-width: 350px) {
  .header-inner {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand {
    gap: 6px;
  }

  .brand-name {
    font-size: 8.4px;
  }

  .brand-sub {
    font-size: 6.5px;
    line-height: 1.05;
    white-space: normal;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}
