:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --line: #e2e5e8;
  --line-strong: #bcc2c8;
  --eds-accent: #c96a2f;
  --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; }

.eds-e,
.eds-d,
.eds-s {
  color: var(--eds-accent);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.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;
}
.brand strong .eds-e,
.brand strong .eds-d,
.brand strong .eds-s {
  color: var(--text);
  display: inline-block;
  font-size: 1.34em;
  line-height: 0.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: 600;
}
.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: 72px 0 120px;
}

.intro {
  padding: 0 0 58px;
  border-bottom: 1px solid var(--text);
}
.intro h1 {
  max-width: 980px;
  margin: 0 0 10px;
  font-size: clamp(44px, 5.3vw, 70px);
  line-height: 0.98;
  font-weight: 430;
  letter-spacing: -0.05em;
}
.intro h1 .eds-e,
.intro h1 .eds-d,
.intro h1 .eds-s {
  font-size: 1.08em;
  font-weight: 760;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.015em;
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 58px;
  padding: 48px 0 54px;
}
.section > h2 {
  position: relative;
  margin: 0;
  padding-top: 3px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.section > h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 15px;
  background: #151515;
}
.section-content { min-width: 0; }

.professor-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.professor-photo {
  width: 270px;
  height: 338px;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #f3f4f6;
}
.professor-info {
  max-width: 760px;
  padding-top: 0;
}
.professor-info h3 {
  margin: 0 0 22px;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.03;
  font-weight: 430;
  letter-spacing: -0.04em;
}
.professor-info p {
  margin: 0 0 10px;
  font-size: 16px;
}
.professor-info .chair {
  margin-bottom: 18px;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.professor-info .institution {
  margin-top: 24px;
}
.contact-block {
  margin-top: 28px;
  padding: 0;
  background: transparent;
}
.contact-block p:last-child { margin-bottom: 0; }
.contact-block strong { font-weight: 650; }

.interests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding: 0 0 2px;
}
.interests div {
  position: relative;
  min-height: 76px;
  padding-top: 17px;
  display: flex;
  align-items: flex-start;
  font-size: clamp(20px, 1.85vw, 25px);
  line-height: 1.28;
  font-weight: 520;
  letter-spacing: -0.028em;
}
.interests div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--eds-accent);
}
.lab-goal {
  max-width: 900px;
  margin: 24px 0 0;
  padding-top: 0;
  color: #4f555c;
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.clean-list li {
  margin: 0;
  padding: 8px 0 9px;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: -0.008em;
}
.clean-list li:first-child { padding-top: 0; }

.site-footer {
  border-top: 1px solid var(--text);
  background: #fff;
}
.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: 980px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 48px, var(--max));
  }
  .brand {
    display: grid;
    gap: 2px;
  }
  .brand strong { white-space: normal; }
  .section {
    grid-template-columns: 155px minmax(0, 1fr);
    column-gap: 36px;
  }
  .professor-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
  }
  .professor-photo {
    width: 220px;
    height: 275px;
  }
  .interests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
  }
}

@media (max-width: 720px) {
  .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: 48px; }
  .section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 38px 0 44px;
  }
  .section > h2::before {
    width: 22px;
    margin-bottom: 10px;
  }
  .professor-card { grid-template-columns: 1fr; }
  .professor-photo {
    width: min(270px, 100%);
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }
  .intro h1 { font-size: 42px; }
  .interests { grid-template-columns: 1fr; gap: 18px; }
  .interests div { min-height: 54px; }
  .clean-list li { font-size: 16px; }
  .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-e,
.brand strong .eds-d,
.brand strong .eds-s {
  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-e,
.brand strong .eds-d,
.brand strong .eds-s {
  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;
}

/* Improve readability of professor details and section content. */
.section > h2 {
  font-size: 18px;
}
.professor-info p {
  font-size: 17.5px;
  line-height: 1.55;
}
.lab-goal {
  font-size: 17px;
}
.clean-list li {
  font-size: 18px;
}
@media (max-width: 520px) {
  .clean-list li {
    font-size: 17px;
  }
}
