/* ==========================================================================
   LAMP Lab, IIT Bombay — stylesheet (lively edition)
   Pure CSS, no JavaScript required. Theme colours in :root below.
   ========================================================================== */

:root {
  --navy: #1e293b;          /* dark slate (headings, dark UI) */
  --navy-dark: #14213a;     /* footer */
  --accent: #0056b3;        /* LAMP blue (primary) */
  --accent2: #3b82f6;       /* light blue for gradients */
  --cyan: #16a34a;          /* green (alt card accent, matches dots) */
  --magenta: #1e3a8a;       /* dark blue (alt card accent) */
  --accent-soft: #e8f1fb;   /* light blue tint */
  --blush: #eaf2fb;        /* light-blue hero fallback */
  --text: #2b3440;
  --muted: #5e6b7a;
  --line: #e3e8ee;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .sans {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle {
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(0,86,179,0.34);
}
.icon-circle .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.icon-circle.cyan { background: linear-gradient(135deg, var(--cyan), #36c46e); box-shadow: 0 6px 16px rgba(22,163,74,0.34); }
.icon-circle.magenta { background: linear-gradient(135deg, var(--magenta), #3b82f6); box-shadow: 0 6px 16px rgba(30,58,138,0.34); }
.icon-circle.navy { background: linear-gradient(135deg, var(--navy), #33425c); box-shadow: 0 6px 16px rgba(30,41,59,0.30); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--accent);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; align-items: center; }
.topbar a { color: #fff; }
.topbar .icon { width: 14px; height: 14px; vertical-align: -0.2em; }

/* ---------- Header / navigation ---------- */
header.site-header {
  background: rgba(255,255,255,0.96);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand a { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand img.brand-logo { height: 44px; width: auto; }
.brand .lab-name {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--navy); letter-spacing: 0.5px;
}
.brand .lab-name span { color: var(--accent); }
.brand .inst { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.78rem; color: var(--muted); }

#nav-toggle { display: none; }
.nav-toggle-label { display: none; color: var(--navy); font-size: 1.6rem; cursor: pointer; user-select: none; }

nav.site-nav ul { list-style: none; display: flex; gap: 2px; flex-wrap: wrap; }
nav.site-nav a {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 0.9rem; color: var(--navy);
  padding: 8px 12px; border-radius: 6px; display: block; transition: all 0.15s;
}
nav.site-nav a:hover { background: rgba(0,0,0,0.05); color: var(--accent); text-decoration: none; }
nav.site-nav a.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--white); }

@media (max-width: 920px) {
  .nav-toggle-label { display: block; }
  nav.site-nav { display: none; width: 100%; }
  #nav-toggle:checked ~ nav.site-nav { display: block; }
  nav.site-nav ul { flex-direction: column; padding-top: 8px; }
}

/* ---------- HERO (full-background image, light) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--text);
  overflow: hidden;
  background: linear-gradient(120deg, #0056b3 0%, #1e3a8a 100%);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/banner.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.0);
  transform-origin: center center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.04); } }
/* white wash on the left so the heading stays readable over the image */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(3,38,82,0.72) 0%, rgba(3,38,82,0.55) 34%,
    rgba(3,38,82,0.18) 58%, rgba(3,38,82,0) 78%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--accent), #3b82f6, #16a34a, var(--accent));
  background-size: 300% 100%;
  animation: laserLine 7s linear infinite;
}
@keyframes laserLine { from { background-position: 0% 0; } to { background-position: 300% 0; } }
.hero .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 72px; }
/* hero content nudged slightly left of the centred column so the banner's
   left white area doesn't read as empty (clamped for sensible margins) */
.hero > .container { max-width: none; margin: 0; margin-right: auto; padding-left: clamp(36px, 12vw, 250px); padding-right: 20px; }
.hero .hero-copy { max-width: 700px; }
.hero .eyebrow {
  font-family: "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.8rem; color: #bfe0ff; font-weight: 700; margin-bottom: 16px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.1s;
}
.hero h1 {
  color: #ffffff; font-size: 2.5rem; margin-bottom: 18px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.25s;
}
.hero h1 .line { display: block; white-space: nowrap; }
/* the word "light" cycles through spectral colours */
.hero h1 .glow {
  background: linear-gradient(90deg, #bfe3ff, #7ee0a0, #ffffff, #bfe3ff);
  background-size: 350% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glowShift 7s linear infinite;
}
@keyframes glowShift { from { background-position: 0% 0; } to { background-position: 350% 0; } }
.hero p.tagline {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 1.15rem; color: rgba(255,255,255,0.92);
  max-width: 560px; margin-bottom: 30px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.45s;
}
.hero .hero-actions { opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }
.hero .btn { margin-right: 12px; margin-bottom: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 860px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(3,38,82,0.72) 0%, rgba(3,38,82,0.55) 45%, rgba(3,38,82,0.25) 100%); }
  .hero-bg { background-position: center 78%; }
}
@media (max-width: 700px) { .hero h1 { font-size: 1.85rem; } .hero h1 .line { white-space: normal; } .hero { min-height: 480px; } }

/* outline button (for light backgrounds) */
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
/* hero buttons sit on a blue background */
.hero .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.hero .btn-primary:hover { background: #eaf2fb; }
.hero .btn-outline { border-color: rgba(255,255,255,0.75); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* page header (inner pages) */
.page-head {
  position: relative; color: #fff; padding: 52px 0 44px; overflow: hidden;
  background: linear-gradient(120deg, #0056b3 0%, #1e3a8a 100%);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background: radial-gradient(circle at 85% 20%, rgba(59,130,246,0.5) 0%, rgba(59,130,246,0) 42%),
              radial-gradient(circle at 12% 90%, rgba(22,163,74,0.35) 0%, rgba(22,163,74,0) 45%);
}
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), #16a34a); }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { color: #fff; font-size: 2.1rem; }
.page-head .crumb { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.82rem; color: #bfe0ff; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.page-head p { color: #ffffff; font-family: "Segoe UI", Arial, sans-serif; margin-top: 6px; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Segoe UI", Arial, sans-serif; font-size: 0.95rem; font-weight: 600;
  padding: 12px 26px; border-radius: 8px; text-decoration: none; transition: all 0.18s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--white); box-shadow: 0 6px 18px rgba(0,86,179,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,86,179,0.42); text-decoration: none; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.section-title {
  font-size: 1.7rem; margin-bottom: 30px; position: relative; padding-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px;
}
.section-title .icon { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.8; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* card grid */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.card.cyan::before { background: linear-gradient(90deg, var(--cyan), #36c46e); }
.card.magenta::before { background: linear-gradient(90deg, var(--magenta), #3b82f6); }
.card.navy::before { background: linear-gradient(90deg, #3a3a3a, #585858); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card img.card-img { width: calc(100% + 48px); margin: -28px -24px 18px; aspect-ratio: 16/10; object-fit: cover; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; transition: transform 0.18s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.stat .num { font-family: "Segoe UI", Arial, sans-serif; font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .label { font-family: "Segoe UI", Arial, sans-serif; color: var(--muted); font-size: 0.86rem; margin-top: 6px; }

/* ---------- Capability cards (image showcase) ---------- */
.cap-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cap-card .cap-img-wrap { position: relative; overflow: hidden; }
.cap-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bg-soft); transition: transform 0.4s ease; }
.cap-card:hover img { transform: scale(1.07); }
.cap-card .cap-body { padding: 15px 17px 17px; }
.cap-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cap-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ---------- Lists ---------- */
ul.clean { list-style: none; }
ul.clean li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; }
ul.clean li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 11px;
  border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); transform: rotate(45deg);
}

dl.timeline { margin: 0; }
dl.timeline dt { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; color: var(--accent); float: left; clear: left; width: 130px; padding: 9px 0; }
dl.timeline dd { margin-left: 150px; padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { dl.timeline dt { float: none; width: auto; padding-bottom: 0; } dl.timeline dd { margin-left: 0; padding-top: 2px; } }

/* ---------- Publications ---------- */
ol.pubs { margin-left: 1.6em; }
ol.pubs li { padding: 9px 0 9px 8px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
ol.pubs li::marker { color: var(--accent); font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; }
ol.pubs .me { font-weight: 700; color: var(--navy); }
ol.pubs .venue { font-style: italic; }
.year-head { font-size: 1.15rem; margin: 34px 0 6px; color: var(--navy); border-left: 4px solid var(--accent); padding-left: 10px; }

/* ---------- Professor page ---------- */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-side img { border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-side .contact-box { margin-top: 18px; background: var(--accent-soft); border: 1px solid #f3c4c4; border-radius: var(--radius); padding: 18px; font-size: 0.92rem; }
.profile-side .contact-box h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.profile-side .contact-box h3 .icon { width: 18px; height: 18px; color: var(--accent); }
.profile-side .contact-box p { margin-bottom: 6px; }
.subhead { font-size: 1.3rem; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); display: flex; align-items: center; gap: 10px; }
.subhead .icon { width: 24px; height: 24px; color: var(--accent); }
.subhead:first-of-type { margin-top: 0; }

/* people cards */
.person { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; transition: transform 0.18s, box-shadow 0.18s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person img, .person .photo-frame { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--accent-soft); box-shadow: 0 4px 14px rgba(0,0,0,0.14); }
.person h3 { font-size: 1.02rem; margin-bottom: 2px; }
.person .role { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.person .focus { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: left; }
.person .focus li { font-size: 0.78rem; }
.person a.email { font-size: 0.78rem; word-break: break-all; }

/* tables */
table.simple { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.simple th, table.simple td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-family: "Segoe UI", Arial, sans-serif; background: var(--navy); color: #fff; }
table.simple tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.gallery-grid img { width: 100%; margin-bottom: 14px; border-radius: 8px; break-inside: avoid; box-shadow: 0 3px 12px rgba(0,0,0,0.14); transition: transform 0.2s, box-shadow 0.2s; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ---------- Scrollable news box ---------- */
.news-box { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; background: var(--white); box-shadow: inset 0 -14px 14px -14px rgba(0,0,0,0.18); }
.news-box::-webkit-scrollbar { width: 9px; }
.news-box::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 8px; }
.news-box::-webkit-scrollbar-thumb { background: #c2cedb; border-radius: 8px; }
.news-box::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.scroll-hint { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

/* ---------- Pill / anchor nav ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill-nav a { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.9rem; font-weight: 600; padding: 9px 20px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); transition: all 0.15s; }
.pill-nav a:hover { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; text-decoration: none; border-color: transparent; }

/* icon feature cards */
.icon-card { text-align: center; }
.icon-card .icon-circle { margin-left: auto; margin-right: auto; }

/* spec list (facilities) */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-family: "Segoe UI", Arial, sans-serif; font-size: 0.88rem; margin: 14px 0; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--navy); font-weight: 600; margin: 0; }

/* step flow */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 700px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* note / edit-me box */
.note { background: #fff8e1; border: 1px solid #eedf9a; border-radius: 8px; padding: 12px 16px; font-size: 0.86rem; font-family: "Segoe UI", Arial, sans-serif; color: #6b5d1f; margin: 18px 0; }

/* call-to-action band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0056b3 0%, #1e3a8a 100%); border-radius: 12px; color: var(--white); padding: 44px 36px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background: radial-gradient(circle at 80% 20%, rgba(59,130,246,0.45) 0%, rgba(59,130,246,0) 45%), radial-gradient(circle at 15% 90%, rgba(22,163,74,0.30) 0%, rgba(22,163,74,0) 45%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
footer.site-footer { background: linear-gradient(120deg, #0056b3 0%, #1e3a8a 100%); color: #cfe0f5; padding: 50px 0 24px; margin-top: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 0.9rem; }
footer .grid.cols-3 { margin-bottom: 28px; }
footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer a { color: #bfe0ff; }
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; text-align: center; font-size: 0.8rem; color: #8a8a8a; }

/* ---------- Gallery: scrollable sections ---------- */
.scroll-gallery {
  max-height: 560px;            /* ~2 rows visible, scroll for the rest */
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-soft);
  box-shadow: inset 0 -16px 16px -16px rgba(0,0,0,0.12);
}
.scroll-gallery .gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 820px){ .scroll-gallery .gal-grid { grid-template-columns: repeat(2,1fr); } }
.scroll-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.scroll-gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scroll-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #eef; }
.scroll-gallery figcaption { font-family: "Segoe UI", Arial, sans-serif; font-size: 0.78rem; color: var(--muted); padding: 7px 8px; text-align: center; }
.scroll-gallery::-webkit-scrollbar { width: 10px; }
.scroll-gallery::-webkit-scrollbar-track { background: #e9eef5; border-radius: 8px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: #b9c6d6; border-radius: 8px; }
.scroll-gallery::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Lab in Charge (home) ---------- */
.incharge { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; }
.incharge img { width: 240px; height: 280px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }
.incharge h3 { font-size: 1.4rem; margin-bottom: 4px; }
.incharge .role { font-family: "Segoe UI", Arial, sans-serif; color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.incharge p { color: var(--muted); }
@media (max-width: 700px){ .incharge { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Alumni: two-column numbered list ---------- */
ol.alum2 { columns: 2; column-gap: 48px; margin: 0 0 0 1.5em; padding: 0; }
@media (max-width: 600px){ ol.alum2 { columns: 1; } }
ol.alum2 li { padding: 8px 0 8px 6px; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 0.95rem; }
ol.alum2 li::marker { color: var(--accent); font-weight: 700; font-family: "Segoe UI", Arial, sans-serif; }

/* ---------- Lightbox (click to enlarge) ---------- */
.scroll-gallery a.lb-link { display: block; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,20,40,0.88); padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 16px 50px rgba(0,0,0,0.5); }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.4rem;
  font-family: "Segoe UI", Arial, sans-serif; line-height: 1; cursor: pointer; text-decoration: none;
}
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: #e8eef6; font-family: "Segoe UI", Arial, sans-serif; font-size: 0.9rem; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 1.9rem; line-height: 1;
  border: none; cursor: pointer; text-decoration: none; transition: background 0.15s;
  user-select: none;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
@media (max-width: 600px){ .lightbox .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; } .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; } }
