/* ======================================================================
   REBL — Robotics-Enabled Biology Lab · UCL CS
   Layout adapted from the LOCI template, retuned for REBL's yellow + ink.
   ====================================================================== */

:root{
  /* Theme — DARK (default) */
  --bg: #0d0d0b;
  --bg2: #08080a;
  --panel: rgba(255,255,255,0.05);
  --panel2: rgba(255,255,255,0.10);
  --stroke: rgba(248,242,224,0.16);
  --stroke2: rgba(248,242,224,0.28);
  --text: #f6f1df;
  --muted: #bdb59c;
  --muted2:#8e886e;

  --yellow:   #ffc72c;
  --yellow-2: #ffd95c;
  --yellow-3: #f0b400;
  --ink:      #0d0d0b;

  --good: #34d399;
  --warn: #fbbf24;

  --shadow: 0 18px 48px rgba(0,0,0,0.55);
  --shadow2: 0 8px 24px rgba(0,0,0,0.45);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --max: 1180px;
  --pad: 20px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --display: var(--sans);
}

html[data-theme="light"]{
  --bg:   #fbfaf3;
  --bg2:  #f4efde;
  --panel: rgba(13,13,11,0.04);
  --panel2: rgba(13,13,11,0.08);
  --stroke: rgba(13,13,11,0.14);
  --stroke2: rgba(13,13,11,0.22);
  --text:  #0d0d0b;
  --muted: #56503f;
  --muted2:#7a7460;

  --shadow:  0 18px 44px rgba(13,13,11,0.10);
  --shadow2: 0 8px 22px rgba(13,13,11,0.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

::selection{background: var(--yellow); color: var(--ink)}

/* Background: grid + soft yellow glows */
.bg{
  position:fixed; inset:0; pointer-events:none; z-index:-1;
  background:
    radial-gradient(1200px 700px at 12% 8%,  rgba(255,199,44,0.22), transparent 60%),
    radial-gradient(900px 700px at 88% 12%,  rgba(255,217,92,0.10), transparent 65%),
    radial-gradient(800px 700px at 50% 95%,  rgba(255,199,44,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
html[data-theme="light"] .bg{
  background:
    radial-gradient(1200px 700px at 12% 8%, rgba(255,199,44,0.30), transparent 62%),
    radial-gradient(900px 700px at 88% 12%, rgba(255,199,44,0.16), transparent 65%),
    radial-gradient(800px 700px at 50% 95%, rgba(13,13,11,0.04), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
.bg::after{
  content:""; position:absolute; inset:0;
  background:
    repeating-linear-gradient(0deg,  rgba(248,242,224,0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(248,242,224,0.06) 0 1px, transparent 1px 28px);
  opacity: 0.45;
  mask-image: radial-gradient(900px 600px at 50% 10%, black 0%, transparent 65%);
}
html[data-theme="light"] .bg::after{
  background:
    repeating-linear-gradient(0deg,  rgba(13,13,11,0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(13,13,11,0.06) 0 1px, transparent 1px 28px);
}

/* Accessibility */
.skip-link{
  position:absolute; top:8px; left:8px;
  padding:10px 12px; border-radius:12px;
  background: var(--panel2); border:1px solid var(--stroke);
  color:var(--text);
  transform: translateY(-140%); transition: transform 180ms ease;
  z-index: 9999;
}
.skip-link:focus{transform: translateY(0)}

/* Layout helpers */
.wrap{max-width:var(--max); margin:0 auto; padding:0 var(--pad)}
.section{padding: 78px 0}
.section h2{
  margin:0 0 14px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight:500;
  letter-spacing: 1.5px;
  text-transform:uppercase;
  font-size: 12px;
}
.kicker .dot{
  width:8px; height:8px; border-radius:99px;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,199,44,0.18);
}

/* ===== Header ===== */
.header{
  position:sticky; top:0; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(13,13,11,0.55);
  border-bottom: 1px solid rgba(248,242,224,0.10);
}
html[data-theme="light"] .header{
  background: rgba(251,250,243,0.78);
  border-bottom: 1px solid rgba(13,13,11,0.10);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 240px;
  text-decoration:none; color:var(--text);
}
.brand img{
  width:42px; height:42px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  box-shadow: var(--shadow2);
}
.brand .title{ display:flex; flex-direction:column; line-height:1.05; gap: 3px }
.brand .title strong{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
}
.brand .title span{
  font-size: 12px;
  color:var(--muted);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav{ display:flex; align-items:center; gap: 6px }
.nav a{
  color:var(--muted); text-decoration:none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight:500;
  font-size: 14px;
  transition: 180ms ease;
  font-family: var(--sans);
  letter-spacing: 0;
}
.nav a:hover{color:var(--text); background: rgba(248,242,224,0.06)}
.nav a[aria-current="page"]{
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--yellow-3);
}
html[data-theme="light"] .nav a[aria-current="page"]{
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow-3);
}

.header-cta{ display:flex; align-items:center; gap:10px; justify-content:flex-end; min-width: 240px }

.icon-btn{
  width: 42px; height: 42px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: var(--panel);
  border:1px solid var(--stroke);
  color: var(--text);
  cursor:pointer;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease;
}
.icon-btn:hover{transform: translateY(-1px); background: var(--panel2); border-color: var(--stroke2)}
.icon{ width: 18px; height: 18px }

.menu-btn{ display:none }

/* ===== Hero cheetah ===== */
.hero-cheetah{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: block;
  filter:
    sepia(0.12)
    saturate(0.88)
    brightness(1.02)
    contrast(0.94);
}

/* ===== Hero ===== */
.hero{ padding: 64px 0 0; position: relative }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.hero-card{
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
html[data-theme="light"] .hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.30));
}
.hero-card::before{
  content:""; position:absolute; inset:-20%;
  background:
    radial-gradient(800px 280px at 10% 15%, rgba(255,199,44,0.35), transparent 70%),
    radial-gradient(640px 280px at 60% 110%, rgba(255,199,44,0.18), transparent 70%);
  filter: blur(14px);
}
.hero-content{ position:relative; padding: 34px 34px 28px }
.hero h1{
  margin: 6px 0 14px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero h1 .hl{
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 96%, transparent 96%);
  padding: 0 0.05em;
  color: var(--text);
}
.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
  letter-spacing: 0;
}
.hero p strong{ color: var(--text); font-weight: 700 }
.hero p em{ color: var(--yellow); font-style: normal; font-weight: 600 }

.hero .pill-row{ display:flex; flex-wrap:wrap; gap: 10px; margin: 14px 0 18px }
.pill{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}
html[data-theme="light"] .pill{ background: rgba(255,255,255,0.65) }
.pill b{ font-family: var(--sans); font-size: 13px; color: var(--text); font-weight: 500 }
.pill .chip{
  width:8px; height:8px; border-radius:99px;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,199,44,0.20);
}

.hero-actions{ display:flex; flex-wrap:wrap; gap: 12px; margin-top: 16px }
.btn{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  text-decoration:none;
  font-weight:500;
  font-size: 14px;
  cursor:pointer;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease;
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover{transform: translateY(-1px); background: var(--panel2); border-color: var(--stroke2)}
.btn.primary{
  border-color: var(--yellow-3);
  background: var(--yellow);
  color: var(--ink);
}
.btn.primary:hover{ background: var(--yellow-2); border-color: var(--yellow) }
.btn .kbd{
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  border: 1px solid rgba(13,13,11,0.30);
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.hero-aside{ display:flex; flex-direction:column; gap: 14px }
.panel{
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.panel .panel-hd{
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
}
.panel .panel-hd h3{
  margin:0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.panel .panel-bd{
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.panel .panel-bd p{ margin: 0 0 12px }
.panel .panel-bd p:last-child{ margin-bottom: 0 }

.badge{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: var(--yellow);
  color: var(--ink);
  flex: 0 0 auto;
  font-weight: 500;
  text-transform: uppercase;
}

/* ===== Cards / grids ===== */
.grid{ display:grid; gap: 16px }
.grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)) }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)) }
.card{
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.card::after{
  content:""; position:absolute; inset:-30%;
  background: radial-gradient(420px 240px at 20% 10%, rgba(255,199,44,0.18), transparent 62%);
  opacity: 0; transition: opacity 240ms ease; pointer-events:none;
}
.card:hover::after{ opacity:1 }
.card h3{
  margin:0 0 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card p{ margin:0; color:var(--muted); line-height:1.6; font-size: 14px }
.card p + p{ margin-top: 10px }
.card .meta{ margin-top: 12px; display:flex; flex-wrap:wrap; gap: 8px }
.tag{
  display:inline-flex; align-items:center; gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(248,242,224,0.06);
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}
.tag .pin{
  width:7px; height:7px; border-radius:99px;
  background: var(--yellow);
}

/* ===== Publications ===== */
.pub-tools{
  display:flex; flex-wrap:wrap; gap: 10px; align-items:center;
  margin: 18px 0 14px;
}
.input{
  flex: 1 1 240px; min-width: 220px;
  display:flex; align-items:center; gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}
.input input{
  width:100%; border:0; outline:0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
}
.input input::placeholder{ color: var(--muted2) }
.chips{ display:flex; flex-wrap:wrap; gap: 6px }
.chipbtn{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  cursor:pointer;
  font-weight:500;
  font-size: 12px;
  letter-spacing: 0;
  transition: 180ms ease;
  font-family: var(--sans);
}
.chipbtn:hover{ color: var(--text); border-color: var(--stroke2) }
.chipbtn[aria-pressed="true"]{
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow-3);
}

.pub-list{ display:grid; gap: 12px }
.pub{
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  padding: 16px 18px;
}
.pub .top{ display:flex; align-items:flex-start; justify-content:space-between; gap: 14px }
.pub h3{
  margin:0 0 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: pretty;
}
.pub .byline{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.pub .byline strong{
  color: var(--text);
  background: linear-gradient(transparent 70%, var(--yellow) 70%);
  padding: 0 2px;
}
.pub .venue{
  margin: 8px 0 0;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.pub .links{ display:flex; flex-wrap:wrap; gap: 6px; margin-top: 12px }
.small-link{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(248,242,224,0.05);
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: var(--mono);
  text-transform: uppercase;
}
.small-link:hover{ background: var(--yellow); color: var(--ink); border-color: var(--yellow-3) }
details.bib{
  margin-top: 10px;
  border-top: 1px dashed var(--stroke);
  padding-top: 10px;
}
details.bib summary{
  cursor:pointer;
  color: var(--muted);
  font-weight:600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style:none;
  font-family: var(--mono);
}
details.bib summary::-webkit-details-marker{ display:none }
details.bib summary::before{ content: "▸ "; color: var(--yellow) }
details.bib[open] summary::before{ content: "▾ " }
details.bib pre{
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--stroke);
  overflow:auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}
html[data-theme="light"] details.bib pre{ background: rgba(13,13,11,0.05); color: var(--text) }

/* ===== People ===== */
.people-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  transition: grid-template-columns 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.people-grid.expanded-0{ grid-template-columns: 3.5fr 1.25fr 1.25fr; }
.people-grid.expanded-1{ grid-template-columns: 1.25fr 3.5fr 1.25fr; }
.people-grid.expanded-2{ grid-template-columns: 1.25fr 1.25fr 3.5fr; }

.person{
  display:flex; gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  transition: transform 160ms ease, border-color 160ms ease;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.person:hover{ transform: translateY(-2px); border-color: var(--yellow-3) }
.person .photo{
  width: 72px; height: 72px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--yellow);
  transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.42s ease;
}
.person .photo svg,
.person .photo img{ width: 100%; height: 100%; object-fit: cover; display: block }
.person.lead .photo{ background: var(--yellow) }
.person .info{ min-width: 0; flex: 1 }
.person h3{
  margin:0 0 4px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.person p{
  margin:0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.person .links{ margin-top: 8px; display:flex; gap: 6px; flex-wrap:wrap }
.person .links a{
  color: var(--text); text-decoration:none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(248,242,224,0.05);
}
.person .links a:hover{ background: var(--yellow); color: var(--ink); border-color: var(--yellow-3) }
/* Thesis card layout */
.thesis-grid.grid{ gap: 10px; align-items: start; }
.thesis-grid .person{ padding: 13px; }
.thesis-grid .person-header{
  display: flex; align-items: flex-start; gap: 8px;
  padding-right: 18px; /* clear the expand-icon */
}
.thesis-grid .person-header h3{
  flex: 1; margin: 0;
  font-size: 12.5px; line-height: 1.4;
}
.thesis-grid .meta{
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px;
}
.thesis-grid .tag{
  padding: 2px 6px; font-size: 10px; gap: 4px;
}
.thesis-grid .tag .pin{ width: 5px; height: 5px; }
.thesis-grid .person.expanded .extra{ margin-top: 10px; }
.thesis-grid .extra p{ font-size: 12.5px; }

.thesis-pdf{
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(248,242,224,0.05);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.thesis-pdf:hover{ background: var(--yellow); color: var(--ink); border-color: var(--yellow-3) }
.person .expand-icon{
  position: absolute;
  top: 14px; right: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.28s ease, color 0.18s ease;
  font-family: var(--sans);
}
.person.expanded .expand-icon{ transform: rotate(180deg); color: var(--yellow); }
.person .extra{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.42s ease, opacity 0.30s ease, margin-top 0.30s ease;
}
.person.expanded .extra{
  max-height: 400px;
  opacity: 1;
  margin-top: 8px;
}
.person.expanded{
  border-color: var(--yellow-3);
  transform: translateY(-2px);
  align-items: flex-start;
}
.person.expanded .photo{
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

/* Compact siblings when another card is expanded */
.people-grid.has-expanded .person:not(.expanded){
  align-self: start;
}
.people-grid.has-expanded .person:not(.expanded) .info p + p,
.people-grid.has-expanded .person:not(.expanded) .links,
.people-grid.has-expanded .person:not(.expanded) .extra,
.people-grid.has-expanded .person:not(.expanded) .expand-icon{
  display: none;
}
.people-grid.has-expanded .person:not(.expanded) h3{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== News ===== */
.news{ display:grid; gap: 10px }
.news-item{
  display:flex; flex-direction:column; align-items:flex-start; gap: 6px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
}
.news-item time{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  flex: 0 0 auto;
  padding-top: 2px;
}
.news-item p{
  margin:0; color: var(--muted); line-height: 1.55; font-size: 14px;
}
.news-item p strong{ color: var(--text) }

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.list{
  margin: 10px 0 0; padding: 0; list-style: none;
  display:grid; gap: 14px;
}
.list li{
  display:flex; gap: 12px; align-items:flex-start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.list li svg{ flex: 0 0 auto; margin-top: 2px; color: var(--yellow) }
.list b{ color: var(--text); font-weight: 700 }
.code{
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: rgba(248,242,224,0.06);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text);
  display:inline-flex; align-items:center; gap: 8px;
}

.toast{
  position:fixed; left:50%; bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  border:1px solid var(--yellow-3);
  color: var(--yellow);
  font-family: var(--mono);
  font-weight:600;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity:0; pointer-events:none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(-6px) }

/* ===== Footer ===== */
.footer{
  padding: 32px 0 48px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.footer .row{
  display:flex; flex-wrap:wrap; gap:12px;
  align-items:center; justify-content:space-between;
}
.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logos{
  display: flex;
  align-items: center;
  gap: 12px;
}
.uclcs-logo{
  height: 36px;
  width: auto;
  opacity: 0.70;
  display: block;
}
html[data-theme="light"] .uclcs-logo{ opacity: 0.85; }
.footer .row strong{
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ===== Small screens ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr }
  .contact-grid{ grid-template-columns: 1fr }
  .grid.cols-3{ grid-template-columns: repeat(2, minmax(0,1fr)) }
  .people-grid{ grid-template-columns: 1fr 1fr; }
  .people-grid.expanded-0,
  .people-grid.expanded-1,
  .people-grid.expanded-2{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .wrap{ padding: 0 16px }
  .section{ padding: 56px 0 }
  .brand{ min-width: unset }
  .brand .title strong{ font-size: 12.5px }
  .header-cta{ min-width: unset }
  .header-cta .btn.primary span.label{ display:none }
  .nav{
    position:fixed; left: 16px; right: 16px; top: 72px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(13,13,11,0.94);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    display:none; flex-direction:column; align-items:stretch;
    gap: 4px;
  }
  html[data-theme="light"] .nav{ background: rgba(251,250,243,0.96) }
  .nav a{ padding: 12px 14px }
  .nav.open{ display:flex }
  .menu-btn{ display:grid }
  .grid.cols-3, .grid.cols-2{ grid-template-columns: 1fr }
  .people-grid,
  .people-grid.expanded-0,
  .people-grid.expanded-1,
  .people-grid.expanded-2{ grid-template-columns: 1fr; }
  .hero-content{ padding: 24px 22px 22px }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important; animation:none !important}
}
