:root {
  color-scheme:dark;
  --bg:#11121a;
  --surface:#191a25;
  --text:#f0eff5;
  --muted:#b0b0c3;
  --accent:#c0adff;
  --line:#30313e;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.65;
}
a {
  color:inherit;
  text-decoration:none;
}
a:hover {
  color:var(--accent);
}
a:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px;
  border-radius:3px;
}
img {
  max-width:100%;
  display:block;
}
figure,p,h1,h2,h3,h4 {
  margin:0;
}
p+p {
  margin-top:14px;
}
.wrap {
  width:min(960px,calc(100% - 64px));
  max-width:960px;
  margin:auto;
}
.site-header {
  position:sticky;
  top:0;
  z-index:10;
  background:#11121af5;
  border-bottom:1px solid var(--line);
}
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:82px;
  gap:20px;
}
.wordmark {
  font-size:24px;
  font-weight:750;
  letter-spacing:-1px;
}
.wordmark span {
  color:var(--accent);
}
nav {
  display:flex;
  gap:30px;
  font-size:13px;
  color:var(--muted);
}
.skip-link {
  position:fixed;
  top:10px;
  left:10px;
  z-index:20;
  background:var(--text);
  color:var(--bg);
  padding:10px;
  transform:translateY(-150%);
}
.skip-link:focus {
  transform:none;
}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:48px;
  align-items:center;
  padding:48px 0 56px;
}
.eyebrow {
  text-transform:none;
  letter-spacing:.3px;
  font-size:12px;
  font-weight:650;
  color:var(--accent);
  margin-bottom:18px;
}
h1 {
  font-size:clamp(38px,4.8vw,62px);
  line-height:1.12;
  letter-spacing:-2.8px;
  font-weight:650;
}
h1 span {
  color:var(--accent);
}
.intro {
  font-size:16px;
  color:var(--muted);
  max-width:560px;
  margin-top:26px;
}
.hero-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}
.button {
  display:inline-flex;
  align-items:center;
  gap:24px;
  padding:12px 19px;
  font-size:13px;
  font-weight:600;
  border:1px solid var(--line);
  border-radius:5px;
}
.primary {
  background:var(--accent);
  color:#161121;
  border-color:var(--accent);
}
.primary:hover {
  background:#d3c7ff;
  color:#161121;
}
.secondary:hover {
  border-color:var(--accent);
}
.now {
  display:flex;
  align-items:flex-start;
  gap:12px;
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:34px;
  font-size:12px;
  color:var(--muted);
}
.now strong {
  font-weight:500;
  color:var(--text);
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:100%;
  background:#aad8b8;
  margin-top:8px;
  flex-shrink:0;
}
.portrait img {
  width:100%;
  height:340px;
  object-fit:cover;
  object-position:center;
  border-radius:7px;
  background:var(--surface);
}
.portrait figcaption {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:5px;
  padding-top:15px;
  font-size:10px;
  color:var(--muted);
}
.portrait figcaption span:first-child {
  color:var(--text);
  font-weight:600;
}
section:not(.hero) {
  padding:52px 0;
  border-top:1px solid var(--line);
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:35px;
  margin-bottom:34px;
}
.section-heading .eyebrow {
  margin-bottom:12px;
}
h2 {
  font-size:clamp(26px,3vw,37px);
  line-height:1.2;
  font-weight:550;
  letter-spacing:-1.2px;
}
.section-heading>p {
  font-size:13px;
  color:var(--muted);
  max-width:280px;
}
.featured-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.project-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}
.project-visual {
  height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  border-bottom:1px solid var(--line);
}
.project-visual img {
  height:100%;
  width:100%;
  object-fit:contain;
}
.diagram {
  background:#f4f4f8;
}
.chart {
  background:#141927;
}
.project-body {
  padding:28px;
}
.project-body .eyebrow {
  font-size:9px;
  margin-bottom:14px;
}
h3 {
  font-size:22px;
  line-height:1.3;
  letter-spacing:-.5px;
  font-weight:550;
}
.project-body h3 span {
  font-size:18px;
  color:var(--accent);
}
.project-body>p:not(.eyebrow) {
  color:var(--muted);
  font-size:13px;
  margin-top:18px;
}
.results {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:24px 0 18px;
  margin-top:20px;
  border-top:1px solid var(--line);
}
.results strong {
  display:block;
  font-size:29px;
  font-weight:550;
  line-height:1.2;
  color:var(--accent);
  letter-spacing:-1px;
}
.results span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:7px;
}
.project-body .measurement {
  font-size:11px!important;
  margin-top:0!important;
}
.tags {
  font-size:10px!important;
  color:var(--accent)!important;
}
.text-link {
  display:inline-block;
  color:var(--accent);
  font-size:12px;
  font-weight:600;
  margin-top:23px;
}
.text-link:hover {
  text-decoration:underline;
}
.supporting-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:24px;
}
.small-project {
  border:1px solid var(--line);
  padding:28px;
  border-radius:8px;
}
.small-project>p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  margin-top:16px;
}
.experience-row {
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:36px;
  padding:30px 0;
  border-top:1px solid var(--line);
}
.experience-meta .eyebrow {
  margin-bottom:10px;
}
.experience-meta>p:not(.eyebrow) {
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  max-width:290px;
}
h4 {
  font-size:17px;
  font-weight:550;
  margin-bottom:12px;
}
.experience-row>div:last-child p,.experience-row li {
  font-size:14px;
  max-width:70ch;
  color:var(--muted);
}
ul {
  padding-left:18px;
  margin:12px 0 0;
}
li+li {
  margin-top:10px;
}
.roles article+article {
  margin-top:25px;
  padding-top:25px;
  border-top:1px solid var(--line);
}
.role-date {
  font-size:12px!important;
  color:var(--accent)!important;
  margin-bottom:7px;
}
.team-photo {
  width:100%;
  max-width:230px;
  margin-top:24px;
  border-radius:5px;
}
.robot-gallery {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:20px;
}
.robot-gallery img {
  height:170px;
  width:100%;
  object-fit:cover;
  border-radius:5px;
}
.robot-gallery figcaption {
  font-size:12px;
  padding-top:12px;
}
.robot-gallery figcaption span {
  display:block;
  font-size:10px;
  color:var(--muted);
}
.leadership-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}
.big-number {
  font-size:52px;
  font-weight:450;
  color:var(--accent);
  letter-spacing:-2px;
  line-height:1.2;
  display:block;
  margin-bottom:20px;
}
.leadership-grid h3 {
  font-size:17px;
}
.leadership-grid p {
  font-size:13px;
  color:var(--muted);
  margin-top:14px;
}
.education-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
}
.education-card {
  border:1px solid var(--line);
  border-radius:7px;
  padding:24px 28px;
  background:#15161f;
}
.education-card>p:not(.eyebrow) {
  font-size:14px;
  max-width:72ch;
  color:var(--muted);
  margin-top:18px;
}
.academic-stats {
  display:flex;
  flex-wrap:wrap;
  gap:20px 48px;
  padding:16px 0;
  margin-top:18px;
  border-block:1px solid var(--line);
}
.academic-stats p {
  font-size:12px;
  color:var(--muted);
  margin:0;
}
.academic-stats strong {
  display:block;
  color:var(--text);
  font-size:23px;
  font-weight:550;
  margin-bottom:4px;
}
.academic-stats strong span {
  font-size:13px;
  color:var(--muted);
}
.course-note {
  font-size:13px!important;
}
.honours {
  padding:27px 0 0;
}
.honours h3 {
  font-size:16px;
}
.honours ul {
  padding:0;
  list-style:none;
}
.honours li {
  font-size:14px;
  margin-top:15px;
}
.honours strong {
  font-weight:500;
  display:block;
}
.honours span {
  color:var(--muted);
  font-size:12px;
  display:block;
}
.contact h2 {
  font-size:clamp(36px,4.8vw,56px);
  letter-spacing:-2px;
}
.contact>p:not(.eyebrow) {
  color:var(--muted);
  font-size:14px;
  max-width:470px;
  margin-top:24px;
}
.contact-email {
  display:inline-block;
  font-size:24px;
  color:var(--accent);
  margin-top:28px;
}
.social-links {
  display:flex;
  gap:28px;
  margin-top:24px;
  font-size:12px;
  color:var(--muted);
}
footer {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding:24px 0 32px;
  font-size:10px;
  color:var(--muted);
}
@media(min-width:1300px) {
  .hero {
    min-height:480px;
  }
}
@media(max-width:900px) {
  .wrap {
    width:calc(100% - 48px);
  }
  .hero {
    gap:36px;
    padding:60px 0;
  }
  .portrait img {
    height:350px;
  }
  h1 {
    letter-spacing:-1.8px;
  }
  .experience-row {
    gap:35px;
  }
  .project-body {
    padding:22px;
  }
  .project-visual {
    height:200px;
  }
  .robot-gallery img {
    height:140px;
  }
  .education-grid {
    gap:24px;
  }
  .education-card {
    padding:24px;
  }
  .leadership-grid {
    gap:24px;
  }
}
@media(max-width:640px) {
  html {
    scroll-padding-top:120px;
  }
  .wrap {
    width:calc(100% - 36px);
  }
  .header-inner {
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
    padding:14px 0;
  }
  .wordmark {
    font-size:21px;
  }
  nav {
    gap:22px;
    font-size:11px;
    width:100%;
    justify-content:space-between;
  }
  .hero {
    grid-template-columns:1fr;
    gap:32px;
    padding:45px 0;
  }
  h1 {
    font-size:43px;
    letter-spacing:-2px;
  }
  .intro {
    font-size:14px;
  }
  .portrait {
    max-width:360px;
  }
  .portrait img {
    height:350px;
  }
  section:not(.hero) {
    padding:46px 0;
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:15px;
  }
  .section-heading>p {
    max-width:none;
  }
  .featured-grid,.supporting-grid,.experience-row,.education-grid,.leadership-grid {
    grid-template-columns:1fr;
  }
  .project-visual {
    height:220px;
  }
  .experience-row {
    gap:22px;
    padding:26px 0;
  }
  .experience-meta>p:not(.eyebrow) {
    max-width:none;
  }
  .team-photo {
    max-width:100%;
  }
  .robot-gallery {
    grid-template-columns:1fr 1fr;
    gap:20px 14px;
  }
  .robot-gallery img {
    height:170px;
  }
  .leadership-grid {
    gap:28px;
  }
  .leadership-grid article {
    border-bottom:1px solid var(--line);
    padding-bottom:24px;
  }
  .big-number {
    font-size:43px;
    margin-bottom:10px;
  }
  .contact-email {
    font-size:22px;
  }
  .contact h2 {
    font-size:38px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}
@media print {
  .site-header,.skip-link,.hero-actions,footer {
    display:none;
  }
  body {
    background:white;
    color:black;
  }
  main.wrap {
    width:100%;
  }
  section:not(.hero) {
    padding:24px 0;
  }
  .hero {
    padding:0 0 24px;
  }
  .portrait img {
    height:240px;
  }
  a,p,.eyebrow,h1 span,.results strong {
    color:inherit!important;
  }
  .project-card,.education-card {
    background:white;
  }
  .project-visual {
    height:140px;
  }
  .project-card,.experience-row,.leadership-grid article {
    break-inside:avoid;
  }
}

/* Compact biography and straightforward section hierarchy. */
.contact h2 { font-size:37px; letter-spacing:-1.2px; }
@media (max-width:640px) {
  nav { gap:10px; font-size:10px; }
  .hero { padding:32px 0; gap:24px; }
  .portrait { max-width:280px; }
  .portrait img { height:280px; }
}

.social-links { flex-wrap:wrap; }

.education-details {
  margin:18px 0 0;
  padding-left:20px;
  color:var(--muted);
  font-size:14px;
  max-width:72ch;
}
.education-details li + li { margin-top:8px; }

.coursework-label + .education-details { margin-top:8px; }

/* Campus and team photography. */
.hkust-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  align-items:start;
  gap:28px;
}
.education-copy > p:not(.eyebrow) {
  font-size:14px;
  color:var(--muted);
  margin-top:18px;
}
.campus-photo img {
  width:100%;
  height:auto;
  border-radius:5px;
}
.campus-photo figcaption {
  margin-top:7px;
  font-size:10px;
  color:var(--muted);
}
.robotics-overview {
  grid-template-columns:320px minmax(0,1fr);
}
.robotics-overview .team-photo {
  max-width:none;
  width:100%;
  height:auto;
}
@media (max-width:800px) {
  .hkust-card { grid-template-columns:1fr; }
  .campus-photo { max-width:420px; }
  .robotics-overview { grid-template-columns:1fr; }
  .robotics-overview .team-photo { max-width:420px; }
}
