:root {
  --bg: #ffffff;
  --text: #101214;
  --muted: #656b72;
  --line: #e2e5e9;
  --blue: #0057b8;
  --max: 1280px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.site-header {
  background: #fff;
  border-top: 4px solid #151515;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 80px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
  text-decoration: none;
}
.brand strong {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.eds-initial {
  display: inline-block;
  color: var(--text);
  font-size: 1.34em;
  line-height: .72;
  font-weight: 820;
  letter-spacing: -0.055em;
  vertical-align: -0.035em;
}
.brand > span {
  color: var(--muted);
  font-size: 13px;
}
.page-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.page-nav a {
  position: relative;
  color: #4b4f54;
  font-size: 15px;
  text-decoration: none;
}
.page-nav a.active {
  color: var(--text);
  font-weight: 650;
}
.page-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--text);
}

.page {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 76px 0 124px;
}

.page-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 70px;
  padding-bottom: 66px;
  border-bottom: 1px solid var(--text);
}
.page-intro h1 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(64px, 8vw, 112px);
  line-height: .88;
  font-weight: 420;
  letter-spacing: -0.065em;
}

.member-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 70px;
  padding: 64px 0 92px;
  border-bottom: 1px solid var(--line);
}
.member-section > h2 {
  margin: 0;
  padding-top: 4px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: space-between;
  column-gap: 48px;
  row-gap: 76px;
}
.member {
  min-width: 0;
}
.member img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #f2f3f4;
}
.member-copy {
  padding-top: 15px;
}
.member h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.65vw, 24px);
  line-height: 1.08;
  font-weight: 570;
  letter-spacing: -0.035em;
}
.member h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .16s ease;
}
.member h3 a:hover,
.member h3 a:focus-visible {
  color: #c96a2f;
}
.member h3 a:focus-visible {
  outline: none;
}
.research-interest {
  min-height: 48px;
  margin: 0 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--text);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.012em;
}
dl {
  margin: 0;
}
dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
dt,
dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}
dt {
  color: var(--muted);
}
dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--text);
}
.footer-inner {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 26px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .members-grid {
    grid-template-columns: repeat(3, minmax(0, 225px));
    column-gap: 34px;
  }
}

@media (max-width: 980px) {
  .header-inner,
  .page,
  .footer-inner { width: min(100% - 48px, var(--max)); }
  .brand { display: grid; gap: 2px; }
  .brand strong { white-space: normal; }
  .page-intro,
  .member-section {
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 38px;
  }
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: space-between;
    column-gap: 44px;
    row-gap: 68px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .page-nav { gap: 18px; }
  .page-nav a.active::after { bottom: -6px; }
  .page { padding-top: 52px; }
  .page-intro,
  .member-section {
    grid-template-columns: 1fr;
    row-gap: 26px;
  }
  .page-intro h1 { grid-column: 1; }
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 58px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page,
  .footer-inner { width: min(100% - 32px, var(--max)); }
  .page-intro h1 { font-size: 64px; }
  .members-grid { grid-template-columns: 1fr; }
  .research-interest { min-height: 0; }
  .footer-inner { flex-direction: column; }
}

/* Compact black EDS wordmark + lowered full lab name. */
.brand {
  align-items: center;
  gap: 18px;
}
.brand strong {
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
}
.brand strong .eds-initial {
  color: #111111;
  font-size: 30px;
  line-height: .82;
  font-weight: 850;
  letter-spacing: -0.09em;
  vertical-align: 0;
}
.brand > span {
  position: relative;
  top: 4px;
  display: flex;
  align-items: center;
  min-height: 24px;
  padding-left: 17px;
  border-left: 1px solid #c8ccd0;
  font-size: 0;
  line-height: 1.2;
}
.brand > span::before {
  content: "Engineering Data Science Lab.";
  color: #50555b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
@media (max-width: 980px) {
  .brand {
    display: flex;
    gap: 14px;
  }
  .brand > span {
    top: 3px;
    padding-left: 14px;
  }
}

/* EDSL wordmark experiment: add Lab initial and relax spacing slightly. */
.brand strong .eds-initial {
  letter-spacing: -0.055em;
}
.brand strong::after {
  content: "L";
  display: inline-block;
  color: #111111;
  font-size: 30px;
  line-height: .82;
  font-weight: 850;
  letter-spacing: -0.055em;
  vertical-align: 0;
}
