:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel2: #fbfbfd;
  --text: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --border: rgba(17,24,39,0.12);
  --shadow: 0 12px 30px rgba(17,24,39,0.08);
  --radius: 16px;
  --radius2: 22px;
  --maxw: 1100px;
  --accent: #1d4ed8;   /* blue */
  --accent2: #059669;  /* green */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(29,78,216,0.10), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(5,150,105,0.10), transparent 55%),
    radial-gradient(900px 600px at 30% 110%, rgba(99,102,241,0.08), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(246,247,251,0.75);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:baseline;
  gap: 10px;
  white-space: nowrap;
}
.brand .lab{ font-weight: 780; letter-spacing: 0.2px; color: var(--text); }
.brand .uni{ color: var(--muted); font-size: 14px; }

.navlinks{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}
.navlinks a:hover{
  border-color: var(--border);
  background: rgba(17,24,39,0.04);
  color: var(--text);
  text-decoration: none;
}
.navlinks a.active{
  border-color: rgba(29,78,216,0.25);
  background: rgba(29,78,216,0.08);
  color: var(--text);
}

.card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.hero{
  padding: 40px 0 10px;
}
.hero-card{
  padding: 22px;
}

.kicker{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
h1{
  margin: 10px 0 10px;
  font-size: 36px;
  line-height: 1.15;
}
.lead{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 12px;
}
.pills{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill{
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 13px;
}

.section{
  padding: 22px 0;
}
.section h2{
  margin: 0 0 12px;
  font-size: 22px;
}
.section p.sub{
  margin: 0 0 14px;
  color: var(--muted);
}

.grid{
  display:grid;
  gap: 14px;
}
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .grid.cols-3, .grid.cols-2{ grid-template-columns: 1fr; }
}

.tile{
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--panel2);
  border-radius: var(--radius);
}
.tile h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.small{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.meta{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag{
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
}

.work{
  display:grid;
  grid-template-columns: 450px 1fr;
  gap: 12px;
  align-items:start;
}
@media (max-width: 520px){
  .work{ grid-template-columns: 1fr; }
}

.figure{
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow:hidden;
  background: #fff;
}
.figure .ph{
  aspect-ratio: auto;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--faint);
  font-size: 12px;
  padding: 10px;
  text-align:center;
  background: linear-gradient(135deg, rgba(29,78,216,0.08), rgba(5,150,105,0.06));
}
.work h4{
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}
.links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.btn:hover{
  background: rgba(29,78,216,0.06);
  border-color: rgba(29,78,216,0.25);
  color: var(--text);
  text-decoration: none;
}

.sponsors{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}
.logo{
  height: 142px;
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

hr.sep{
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0 0;
}

footer{
  padding: 26px 0 34px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  margin-top: 24px;
  background: rgba(255,255,255,0.35);
}
.footer-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center;
}
/* PI profile card */
.pi-card{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.pi-photo{
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}
ul, li {
  color: var(--text);
}

li::marker {
  color: var(--text);
}
/* Make PI card wider on index page */
.pi-wide {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .pi-wide {
    grid-column: span 1;
  }
}
.lab-header {
  display: flex;
  align-items: center;
  gap: 26px;
}

.lab-logo {
  width: 64px;      /* try 56–80px */
  height: 64px;
  flex-shrink: 0;
}

.hero-header{
  display: grid;
  grid-template-columns: 140px 1fr; /* logo column + content column */
  gap: 20px;
  align-items: start;
}

.lab-logo{
  width: 108px;   /* tweak: 64–90 */
  height: auto;
  display: block;
  padding-top: 20px;
}

/* make bullets match text color + nicer spacing */
.hero-header ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.hero-header li{
  color: var(--text);
}
.hero-header li::marker{
  color: var(--text);
}

@media (max-width: 600px){
  .hero-header{
    grid-template-columns: 1fr;
  }
  .lab-logo{
    width: 64px;
  }
}

/* PI card matches hero background */
.pi-hero {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


.intro{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
/* Lists inherit surrounding text color by default */
ul, li {
  color: inherit;
}

li::marker {
  color: currentColor;
}

/* Muted / small lists (e.g., MIG side-channel bullets) */
ul.small,
ul.small li {
  color: var(--muted);
  font-size: 14px;
}

ul.small li::marker {
  color: var(--muted);
}

ul.small{
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;          /* remove default bullets */
}

ul.small li{
  position: relative;
  padding-left: 1.1em;       /* space for our custom bullet */
  color: var(--muted);
  font-size: 14px;
}

ul.small li::before{
  content: "•";
  position: absolute;
  left: 0;                   /* bullet aligned with title edge */
  top: 0;
  color: var(--muted);
}
.figure img{
  width: 100%;
  object-fit: cover;   /* fills without distortion */
  display: block;
}



/* Mobile-specific fixes */
@media (max-width: 600px) {
  /* 1. Stack the Brand/University titles */
  .brand {
    flex-direction: column;
    gap: 2px; /* Reduce space between the two lines */
  }

  .brand .uni {
    font-size: 12px; /* Slightly smaller for better fit */
  }

  /* 2. Stack the PI Card elements */
  .pi-card {
    grid-template-columns: 1fr; /* Change from two columns to one */
    justify-items: center;      /* Center the photo */
    text-align: center;         /* Center the text for better mobile look */
  }

  .pi-photo {
    margin-bottom: 10px;
  }

  .pi-card .meta {
    justify-content: center;    /* Center the tags (GPU security, etc.) */
  }
}
