/* Kamruzzaman Lab — site styles
   Modelled on the MIT Jameel Clinic look: white page, black type, heavy grotesk headlines,
   sky-blue gradients, cyan labels, yellow/cyan accents, black stat and footer bands.
   Type: Inter Tight (stand-in for Neue Haas Grotesk Display), IBM Plex Mono for DOIs. */
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #000000;
  --ink-2: #1d1d1f;
  --muted: #5c6670;
  --rule: #d9dde0;
  --cyan: #009ede;          /* labels, rules */
  --cyan-deep: #0764a2;
  --sky: #b8eaef;           /* gradient end */
  --aqua: #80dcf3;
  --lime: #e6e400;
  --mint: #c5fed3;
  --sky-grad: linear-gradient(134deg, #fff 0%, #b8eaef 100%);
  --band-grad: linear-gradient(270deg, rgba(178, 254, 197, .46), rgba(230, 228, 0, .17));
  --bar-grad: linear-gradient(90deg, #e6e400 5.73%, #80dcf3 75.65%);
  --sans: 'Inter Tight', 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --w: 1440px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath d='M0 7h32M26 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--cyan-deep); text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--sans); font-weight: 900; color: var(--ink); margin: 0; letter-spacing: -.02em; }
h2 { font-size: 2.625rem; line-height: 1.14; }
h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; }
em { font-style: italic; }
sub, sup { font-size: .72em; line-height: 0; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 80px; }
@media (max-width: 1100px) { .wrap { padding: 0 40px; } }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 6px 10px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--lime); color: #000; }

/* Cyan "title-rule" label */
.label { display: block; font: 700 16px/1.25 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); border-top: 2px solid var(--cyan); padding-top: 11px; }
.mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
/* Long-arrow links */
.arrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.arrow::after { content: ''; width: 34px; height: 14px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s; }
.arrow:hover { color: var(--ink); text-decoration: none; }
.arrow:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: transparent; transition: box-shadow .2s, background .2s; }
.site-header.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.site-header + .menu + main > :first-child { margin-top: -116px; padding-top: 188px; }
@media (max-width: 900px) { .site-header + .menu + main > :first-child { margin-top: -84px; padding-top: 116px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 116px; gap: 32px; transition: height .2s; }
.site-header.scrolled .wrap { height: 84px; }
.mark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.mark svg { width: 56px; height: 56px; flex: none; }
.mark .wm { display: flex; flex-direction: column; font: 700 22px/1.02 var(--sans); letter-spacing: -.02em; }
.hdr-right { display: flex; align-items: center; gap: 28px; }
.hdr-right .org { font: 900 18px/1 var(--sans); letter-spacing: -.01em; padding-left: 28px; border-left: 2px solid #000; height: 30px; display: flex; align-items: center; }
.menu-btn { width: 46px; height: 30px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 0; right: 0; height: 3px; background: #000; content: ''; }
.menu-btn i { top: 50%; margin-top: -1.5px; }
.menu-btn i::before { top: -9px; }
.menu-btn i::after { top: 9px; }

/* Full-screen menu overlay */
.menu { position: fixed; inset: 0; z-index: 80; background: linear-gradient(180deg, #e8f8fa, #cdeff3); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.menu.open { opacity: 1; visibility: visible; }
.menu > .wrap { width: 100%; }
.menu .menu-top { display: flex; align-items: center; justify-content: space-between; height: 116px; }
.menu-close { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-close::before, .menu-close::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; background: #000; }
.menu-close::before { transform: rotate(45deg); } .menu-close::after { transform: rotate(-45deg); }
.menu-panel { flex: 1; margin-bottom: 40px; background: var(--sky-grad); border-radius: 0 72px 0 72px; padding: 64px 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; transform: translateY(16px); transition: transform .35s; }
.menu.open .menu-panel { transform: none; }
.nav { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.nav a { position: relative; z-index: 1; font: 900 clamp(2rem, 4vw, 3.4rem)/1.15 var(--sans); letter-spacing: -.025em; color: #000; text-decoration: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 18px; width: fit-content; }
.nav a:hover { color: var(--cyan-deep); }
.nav a[aria-current]::after { content: none; }
.nav-indicator { position: absolute; z-index: 2; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #000; pointer-events: none; opacity: 0; transition: transform .36s cubic-bezier(.22, 1, .36, 1), opacity .16s ease; }
.nav-indicator.ready { opacity: 1; }
.menu-aside { align-self: end; font-size: 17px; line-height: 1.5; }
.menu-aside .label { margin-bottom: 14px; }
.menu-aside ul { list-style: none; margin: 0 0 28px; padding: 0; }
.menu-aside li { padding: 4px 0; }
@media (max-width: 900px) {
  .site-header .wrap, .menu .menu-top { height: 84px; }
  .mark svg { width: 44px; height: 44px; } .mark .wm { font-size: 19px; }
  .hdr-right .org { display: none; }
  .menu-panel { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 0 40px 0 40px; gap: 32px; }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky-grad); padding: 72px 0 96px; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.hero .label { display: inline-block; border: 0; padding: 0; color: var(--cyan-deep); }
.hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 32px; }
.hero .stand { font: 400 clamp(1.2rem, 1.7vw, 1.5rem)/1.5 var(--sans); color: var(--ink-2); max-width: 32em; margin: 0 0 40px; }
.hero .stand em { font-style: normal; font-weight: 700; color: #000; box-shadow: inset 0 -.42em 0 rgba(230, 228, 0, .55); }
.links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 16px; }
.links a { display: inline-flex; align-items: center; gap: 12px; color: #000; text-decoration: none; border: 1px solid #000; border-radius: 4px; padding: 12px 18px; background: rgba(255, 255, 255, .55); transition: background .15s; }
.links a:first-child { background: #000; color: #fff; }
.links a:first-child::after { content: ''; width: 28px; height: 12px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.links a:hover { background: #fff; }
.links a:first-child:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); }
.hero-art { position: absolute; z-index: 0; right: -60px; top: -40px; width: 760px; max-width: 70%; pointer-events: none; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 0 96px 0 96px; position: relative; z-index: 1; }
.portrait figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #000; padding-top: 12px; border-top: 2px solid #000; margin-top: 18px; }
.portrait figcaption span:first-child { font-weight: 700; }
@media (max-width: 900px) { .hero { padding: 32px 0 64px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .portrait { max-width: 360px; order: -1; } .hero-art { max-width: 120%; right: -160px; top: -60px; opacity: .7; } }

/* Black stat band */
.figures { background: #000; color: #fff; padding: 96px 0 104px; }
.figures .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.figures .wrap > div { padding: 0; }
.figures b { display: block; font: 500 clamp(3.4rem, 6vw, 6.2rem)/1 var(--sans); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 16px; padding-top: 14px; border-top: 2px solid; border-image: var(--bar-grad) 1; font-size: 17px; line-height: 1.4; color: #fff; }
@media (max-width: 900px) { .figures { padding: 64px 0; } .figures .wrap { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section.white { background: #fff; }
.section.mist { background: var(--band-grad); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; }
.sec-head p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.sec-head p .arrow { margin-top: 18px; display: flex; width: fit-content; }
@media (max-width: 800px) { .section { padding: 72px 0; } .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

/* Research index (home) */
.index { border-top: 2px solid var(--cyan); }
.index a.row { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 4fr) 260px; gap: 36px; align-items: center; padding: 32px 0; border-bottom: 1px solid #000; color: #000; text-decoration: none; position: relative; }
.index a.row:hover h3 { color: var(--cyan-deep); }
.index .n { font: 700 18px var(--sans); color: var(--cyan); }
.index h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -.015em; transition: color .15s; }
.index p { margin: 0; font-size: 17px; color: var(--ink-2); }
.index img { width: 260px; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); transition: transform .3s; }
.index a.row:hover img { transform: scale(1.03); }
@media (max-width: 1000px) { .index a.row { grid-template-columns: 44px 1fr; gap: 12px 16px; } .index p { grid-column: 2; } .index img { grid-column: 2; width: 100%; height: 200px; } }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 64px; } }
.split h2 { font-size: 2.625rem; margin-bottom: 28px; }

.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--cyan); }
.news li { padding: 20px 0; border-bottom: 1px solid #000; font-size: 17px; line-height: 1.5; }
.news time { display: block; font: 700 14px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #000; margin-bottom: 6px; }

.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.roster div { padding: 20px 0; border-top: 1px solid #000; }
.roster b { display: block; font: 400 1.4rem/1.25 var(--sans); letter-spacing: -.01em; }
.roster span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(2, 1fr); gap: 0 20px; } }

/* ---------- Inner pages ---------- */
.page-head { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(318deg, #b8eaef 19.37%, rgba(255, 255, 255, 0) 58.08%); }
.page-head .crumb { font: 700 14px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.page-head .crumb a { color: var(--cyan); text-decoration: none; }
.page-head .crumb a:hover { color: #000; }
.page-head h1 { font-size: clamp(2.1rem, 1.2rem + 4.5vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
.page-head p { font: 400 1.4rem/1.5 var(--sans); color: var(--ink-2); max-width: 38em; margin: 22px 0 0; }
@media (max-width: 720px) { .page-head { padding: 32px 0 44px; } .page-head p { font-size: 1.15rem; } }

.layout { display: grid; grid-template-columns: 240px minmax(0, 860px); gap: 96px; padding-top: 72px; padding-bottom: 128px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; padding-bottom: 80px; } }
.secnav { position: sticky; top: 112px; align-self: start; }
.secnav .label { margin-bottom: 16px; }
.secnav ul { list-style: none; margin: 0; padding: 0; }
.secnav a { display: block; padding: 7px 0; color: var(--muted); font-size: 16px; line-height: 1.35; text-decoration: none; }
.secnav a:hover { color: #000; }
.secnav a.on { color: #000; font-weight: 700; }
.secnav a.on::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px #000; margin: 0 10px 1px 0; }
@media (max-width: 1000px) { .secnav { display: none; } }

.content > :first-child { margin-top: 0; }
.content h2 { font-size: 2.25rem; margin: 80px 0 24px; padding-top: 14px; border-top: 2px solid var(--cyan); }
.content h3 { margin: 36px 0 12px; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.content > p, .content section > p { color: var(--ink-2); }
.lede { font: 400 1.5rem/1.5 var(--sans); color: #000; margin-bottom: 8px; letter-spacing: -.01em; }
.content figure { margin: 8px 0 32px; }
.content figure a { display: block; text-decoration: none; }
.content figure img { width: 100%; max-height: 560px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); padding: 12px; }
figcaption { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 14px; }
.refs { list-style: none; padding: 0; margin: 0; font-size: 17px; border-top: 1px solid #000; }
.refs li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.refs li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); margin: 0 14px 2px 0; }
ul.plain-list { list-style: none; padding: 0; color: var(--ink-2); border-top: 1px solid #000; }
ul.plain-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); position: relative; }
ul.plain-list li::before { content: ''; position: absolute; left: 0; top: 24px; width: 12px; height: 2px; background: var(--cyan); }

table.data { width: 100%; border-collapse: collapse; font-size: 17px; }
table.data td { padding: 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tr:first-child td { border-top: 1px solid #000; }
table.data td:first-child { width: 170px; padding-right: 24px; font: 700 14px/1.9 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan-deep); }
table.data b { font-weight: 700; }
table.data .sub { display: block; color: var(--muted); font-size: 16px; margin-top: 2px; }
@media (max-width: 600px) { table.data td:first-child { width: 110px; } }

/* ---------- Profile ---------- */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: end; }
.profile-head img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 0 80px 0 80px; }
.profile-head .role { display: inline-block; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: #000; margin-top: 24px; line-height: 1.6; background: rgba(230, 228, 0, .35); padding: 4px 12px; }
@media (max-width: 860px) { .profile-head { grid-template-columns: 1fr; gap: 32px; } .profile-head img { max-width: 260px; order: -1; } }
.ids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ids a, .ids div { padding: 16px 0; border-top: 1px solid #000; color: #000; font-size: 16px; text-decoration: none; word-break: break-word; }
.ids a:hover { color: var(--cyan-deep); }
.ids small { display: block; font: 700 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); margin-bottom: 2px; }
@media (max-width: 600px) { .ids { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px; border: 1px solid #000; border-radius: 4px; color: #000; font-size: 16px; font-weight: 500; text-decoration: none; }
.btn::after { content: ''; width: 30px; height: 12px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s; }
.btn:hover { background: #000; color: #fff; }
.btn:hover::after { transform: translateX(4px); }

/* ---------- Publications ---------- */
.pub-tools { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 0 0 22px; }
.pub-tools input { width: 100%; font: 18px var(--sans); padding: 10px 0; border: 0; border-bottom: 1px solid #000; background: transparent; color: #000; border-radius: 0; }
.pub-tools input::placeholder { color: #000; opacity: .7; }
.pub-tools input:focus { outline: none; border-bottom-width: 2px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { font: 500 13px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 9px 14px; border: 0; background: #f0f2f3; color: #000; cursor: pointer; }
.seg button:hover { background: var(--sky); }
.seg button.on { background: var(--aqua); }
.seg button[data-f="c"].on, .seg button[data-f="a"].on { background: var(--lime); }
@media (max-width: 720px) { .pub-tools { grid-template-columns: 1fr; } }
.pub-count { font: 700 14px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); margin: 6px 0 0; }
#pub-list h2 { display: flex; justify-content: space-between; align-items: baseline; }
#pub-list h2 small { font: 700 14px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pubs { list-style: none; margin: 0; padding: 0; }
.p { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 24px; padding: 24px 0; border-bottom: 1px solid #000; }
.p .t { display: block; font: 400 1.35rem/1.35 var(--sans); letter-spacing: -.01em; }
.p .t a { color: #000; text-decoration: none; }
.p .t a:hover { color: var(--cyan-deep); }
.p .au { display: block; font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.p .au b { color: #000; font-weight: 700; }
.p .v { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.p .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.p .tools > span { background: var(--sky); padding: 4px 8px; }
.p .tools a, .p .tools button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #000; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.p .tools a:hover, .p .tools button:hover { color: var(--cyan-deep); text-decoration: underline; }
.p .tools .done { color: var(--cyan-deep); }
.p .c { text-align: right; font: 500 2rem/1 var(--sans); letter-spacing: -.03em; padding-top: 2px; }
.p .c small { display: block; font: 500 11px var(--sans); color: var(--muted); margin-top: 6px; letter-spacing: .05em; text-transform: uppercase; }
.pubs.compact { border-top: 2px solid var(--cyan); }
.pubs.compact .p { padding: 22px 0; }

/* ---------- People ---------- */
.pi-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; padding: 32px; background: var(--sky-grad); border-radius: 0 48px 0 48px; }
.pi-card img { width: 200px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 8px; }
.pi-card h3 { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; text-transform: none; margin: 0 0 6px; }
.pi-card .muted { color: #000; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 600px) { .pi-card { grid-template-columns: 1fr; padding: 24px; } }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.person .ph { aspect-ratio: 1; background: var(--sky-grad); display: grid; place-items: center; font: 900 2.8rem var(--sans); color: var(--cyan-deep); overflow: hidden; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font: 400 1.4rem/1.25 var(--sans); letter-spacing: -.01em; margin-top: 16px; }
.person span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.person > span:first-of-type { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: #000; }
.person .lk { font-size: 14px; margin-top: 8px; }

.map { width: 100%; height: 380px; border: 0; border-radius: 0 48px 0 48px; }

/* ---------- Footer ---------- */
.band { background: var(--band-grad); padding: 96px 0 104px; text-align: center; }
.band .btn { font-size: 20px; padding: 18px 28px; gap: 28px; }
.site-footer { background: #000; color: #fff; font-size: 17px; line-height: 1.5; }
.site-footer .wrap { padding-top: 88px; padding-bottom: 32px; }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 64px; }
.site-footer .name { display: flex; align-items: center; gap: 12px; font: 700 26px/1.05 var(--sans); letter-spacing: -.02em; color: #fff; margin-bottom: 22px; }
.site-footer .name svg { width: 52px; height: 52px; }
.site-footer p { color: rgba(255, 255, 255, .78); }
.site-footer h4 { font: 700 15px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.site-footer .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .6); font-size: 13px; color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 44px; height: 44px; border-radius: 10px; background: #000; border: 2px solid #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top::before { content: ''; position: absolute; left: 50%; top: 55%; width: 14px; height: 14px; border: solid #fff; border-width: 3px 3px 0 0; transform: translate(-50%, -50%) rotate(-45deg); }
.to-top.show { opacity: 1; visibility: visible; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }

/* ACS chapter band */
.honours { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.honours h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; margin: 22px 0 22px; }
.honours p { color: var(--ink-2); font-size: 19px; }
.honours p .arrow { margin-right: 28px; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.awards li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 30px 32px; background: #000; color: #fff; border-radius: 8px; position: relative; overflow: hidden; }
.awards li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--bar-grad); }
.awards time { font: 700 15px/1.6 var(--sans); letter-spacing: .04em; color: var(--aqua); }
.awards b { display: block; font: 500 1.5rem/1.25 var(--sans); letter-spacing: -.01em; margin-bottom: 4px; }
.awards span { font-size: 16px; color: rgba(255, 255, 255, .78); }
.content .awards li { color: #fff; }
@media (max-width: 860px) { .honours { grid-template-columns: 1fr; gap: 40px; } .awards li { grid-template-columns: 1fr; gap: 6px; padding: 22px 22px 26px; } }

/* Scroll reveal (only when JS adds .reveal) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-art { display: none; }
  .figures b { font-size: 3.2rem; }
  .content h2 { font-size: 1.8rem; }
  .lede { font-size: 1.25rem; }
}

/* ================= Responsive refinements ================= */
/* Long chemical names, emails and URLs never push the layout wider than the screen */
h1, h2, h3, p, li, td, .p .t, .lede, .person b, .roster b { overflow-wrap: break-word; }
td a, .ids a, .menu-aside a, .site-footer a, .links a { overflow-wrap: anywhere; }
.content figure img.natural { width: 402px; max-width: 100%; margin: 0 auto; }

/* Notched phones (viewport-fit=cover) */
@supports (padding: max(0px)) {
  @media (max-width: 720px) { .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); } }
  .to-top { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .site-footer .wrap { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

/* Large desktops */
@media (min-width: 1800px) {
  :root { --w: 1640px; }
  body { font-size: 19px; }
  .layout { grid-template-columns: 260px minmax(0, 940px); gap: 120px; }
}

/* Small laptops / large tablets (landscape) */
@media (min-width: 1001px) and (max-width: 1200px) {
  .index a.row { grid-template-columns: 52px minmax(0, 5fr) minmax(0, 4fr) 200px; gap: 28px; }
  .index img { width: 200px; height: 124px; }
  .hero .wrap { gap: 48px; }
  .split, .honours { gap: 56px; }
}

/* Tablets */
@media (max-width: 1000px) {
  .index img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 280px; }
  .page-head p { font-size: 1.25rem; }
  .content h2 { margin-top: 64px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .figures .wrap { grid-template-columns: repeat(3, 1fr); }
  .portrait { max-width: 320px; }
  .hero .wrap { gap: 32px; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .awards li { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 17px; }
  h2, .split h2 { font-size: 2rem; }
  .sec-head h2, .honours h2 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .sec-head p, .honours p { font-size: 17px; }
  .hero .stand { font-size: 1.15rem; }
  .links a { padding: 11px 14px; font-size: 15px; }
  .portrait { max-width: 100%; }
  .portrait img { border-radius: 0 64px 0 64px; aspect-ratio: 1; }
  .figures .wrap { gap: 32px 16px; }
  .figures span { font-size: 15px; }
  .index h3 { font-size: 1.4rem; }
  .index p { font-size: 16px; }
  .index img { max-height: 220px; }
  .roster b { font-size: 1.15rem; }
  .p { grid-template-columns: minmax(0, 1fr) 60px; gap: 12px; }
  .p .t { font-size: 1.15rem; -webkit-hyphens: auto; hyphens: auto; }
  .p .c { font-size: 1.5rem; }
  .p .c small { font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
  .lede { font-size: 1.25rem; }
  .content h2 { font-size: 1.75rem; margin-top: 56px; }
  table.data { font-size: 16px; }
  table.data td:first-child { width: 96px; padding-right: 14px; font-size: 12.5px; }
  .pi-card img { width: 160px; }
  .person b { font-size: 1.15rem; }
  .map { height: 300px; border-radius: 0 32px 0 32px; }
  .band { padding: 64px 0 72px; }
  .band .btn { font-size: 17px; padding: 15px 20px; gap: 18px; }
  .site-footer .wrap { padding-top: 56px; }
  .site-footer .top { gap: 32px 20px; padding-bottom: 40px; }
  .site-footer .base { flex-direction: column; }
}
@media (max-width: 360px) {
  .links a { flex: 1 1 auto; justify-content: center; }
  .figures b { font-size: 2.8rem; }
  .roster, .people { grid-template-columns: 1fr; }
  table.data td { display: block; width: auto !important; padding: 0; border: 0; }
  table.data tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.data tr:first-child { border-top: 1px solid #000; }
  table.data tr:first-child td { border-top: 0; }
}

/* Touch screens: comfortable 44px tap targets, no hover-only affordances */
@media (pointer: coarse) {
  .p .tools { gap: 2px 6px; }
  .p .tools a, .p .tools button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; }
  .p .tools a:first-of-type { margin-left: -2px; }
  .seg button { padding: 13px 16px; }
  .site-footer li { padding: 7px 0; }
  .menu-aside li { padding: 7px 0; }
  .nav a { padding: 8px 0; }
  .menu-btn, .menu-close { width: 48px; height: 48px; }
  .menu-btn i, .menu-btn i::before, .menu-btn i::after { left: 3px; right: 3px; }
  .secnav a { padding: 10px 0; }
  .arrow { min-height: 44px; }
  .index a.row:hover img { transform: none; }
}

/* Landscape phones and short screens */
@media (max-height: 520px) and (orientation: landscape) {
  html { scroll-padding-top: 76px; }
  .site-header .wrap, .site-header.scrolled .wrap, .menu .menu-top { height: 64px; }
  .site-header + .menu + main > :first-child { margin-top: -64px; padding-top: 96px; }
  .mark svg { width: 38px; height: 38px; } .mark .wm { font-size: 17px; }
  .hero .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
  .portrait { order: 0; max-width: none; }
  .hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0 18px; }
  .menu-panel { padding: 24px 32px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: start; }
  .menu-panel { flex: none; align-items: start; }
  .nav a { font-size: 1.6rem; }
  .menu-aside { align-self: start; }
  .figures { padding: 48px 0; }
}

/* Print: clean, ink-friendly pages (CV, publication list) */
@media print {
  .site-header, .menu, .band, .to-top, .toast, .secnav, .hero-art, .pub-tools, .p .tools { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .hero, .page-head, .section.mist, .pi-card { background: none !important; }
  .site-header + .menu + main > :first-child { margin-top: 0; padding-top: 0; }
  .figures, .awards li { background: none; color: #000; border: 1px solid #000; }
  .figures b, .figures span, .awards b, .awards span, .awards time { color: #000; }
  .layout { display: block; padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .site-footer p { color: #000; }
  a { text-decoration: none; }
  .content h2, .p, .awards li, figure { break-inside: avoid; }
}

/* ---------- Current positions (Professor & Chairman highlight) ---------- */
.roles { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 10px; max-width: 40em; }
.roles li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 16px; background: rgba(255, 255, 255, .7); border-left: 4px solid var(--cyan); }
.roles li.chair { background: #000; color: #fff; border-left-color: var(--lime); }
.roles b { font: 900 1.15rem/1.2 var(--sans); letter-spacing: -.01em; text-transform: uppercase; }
.roles li.chair b { color: var(--lime); }
.roles span { font-size: 16px; line-height: 1.45; }
.page-head .roles { margin: 24px 0 0; }
.profile-head .role { margin-top: 18px; }
@media (max-width: 600px) { .roles li { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; } .roles b { font-size: 1rem; } .roles span { font-size: 15px; } }
.pi-role { font-size: 17px; margin-bottom: 4px; }
.pi-role b { background: var(--lime); padding: 2px 8px; }
.honours h3.chapter { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; margin: 28px 0 8px; }
.awards li.aiche { background: var(--cyan-deep); }
.awards li.aiche time { color: var(--lime); }
@media print { .roles li, .roles li.chair, .awards li.aiche { background: none; color: #000; } .roles li.chair b { color: #000; } }

/* ---------- AFMN Lab wordmark ---------- */
.mark .wm { gap: 4px; }
.mark .wm-name { font: 900 26px/1 var(--sans); letter-spacing: -.03em; }
.mark .wm-pi { font: 500 13px/1.2 var(--sans); letter-spacing: .01em; color: var(--ink-2); }
.site-footer .name small { display: block; margin-top: 6px; font: 500 14px/1.3 var(--sans); letter-spacing: 0; color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) { .mark .wm-name { font-size: 22px; } .mark .wm-pi { font-size: 12px; } }
@media (max-width: 340px) { .mark .wm-pi { font-size: 11px; } }
@media (max-height: 520px) and (orientation: landscape) { .mark .wm-name { font-size: 19px; } .mark .wm-pi { font-size: 11px; } }

/* ---------- Lab-first home: Principal Investigator badge and section, stats note ---------- */
.hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); }
.pi-badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 36px; padding: 12px 22px 12px 12px; background: #fff; border-radius: 0 28px 0 28px; color: #000; text-decoration: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: box-shadow .2s; }
.pi-badge:hover { color: #000; box-shadow: 0 0 0 2px #000; }
.pi-badge img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.pi-badge small { display: block; font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.pi-badge b { display: block; font: 900 1.2rem/1.2 var(--sans); letter-spacing: -.01em; margin: 2px 0; }
.pi-badge span span { display: block; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.pi-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.pi-block h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; margin: 20px 0 28px; }
.pi-block .roles { margin-bottom: 28px; }
.pi-block .roles li { background: #f2f7f8; }
.pi-block .roles li.chair { background: #000; }
.pi-bio { font-size: 19px; color: var(--ink-2); max-width: 40em; margin-bottom: 28px; }
.figures-note { grid-column: 1 / -1; margin: 0 0 8px; font: 700 14px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--aqua); }
.figures .figures-note span { display: inline; margin: 0; padding: 0; border: 0; font: inherit; color: inherit; }
.site-footer p a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
@media (max-width: 900px) { .pi-block { grid-template-columns: 1fr; gap: 36px; } .pi-block .portrait { max-width: 320px; order: 0; } }
@media (max-width: 600px) { .pi-badge { margin-top: 28px; width: 100%; } .pi-badge img { width: 52px; height: 52px; } .pi-bio { font-size: 17px; } .figures-note { font-size: 12px; } }
@media (max-width: 520px) { .hero h1 { font-size: clamp(3rem, 16vw, 4rem); } }

/* ---------- Restored hero image ---------- */
.portrait picture { display: block; position: relative; z-index: 1; }
.hero-figure img { object-position: 50% 40%; background: #0b1a2b; }

/* ---------- Student chapters, inside the Principal Investigator section ---------- */
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 96px; align-items: start; }
.chapters-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.chapters-head p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 40em; }
.chapter h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.015em; margin: 0 0 14px; }
.chapter > p { color: var(--ink-2); margin: 0 0 24px; }
.chapter .awards li { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 24px 26px; }
.chapter .awards b { font-size: 1.2rem; }
.chapter .awards span { font-size: 15px; }
.chapter > .chapter-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; }
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; margin-top: 72px; } .chapters-head { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { .chapters { margin-top: 56px; gap: 40px; } .chapters-head p { font-size: 17px; } .chapter h3 { font-size: 1.3rem; } .chapter .awards li { grid-template-columns: 1fr; gap: 6px; padding: 20px 20px 24px; } }
