/* ============================================================
   Habib Latifizadeh — academic homepage
   Warm cream · serif editorial · burnt-rust accent · IBM Plex Sans chrome
   ============================================================ */
:root{
  --bg:        #F7F4EE;
  --bg-soft:   #EFEAE0;
  --panel:     #FFFDFA;
  --ink:       #15181C;
  --ink-soft:  #3B424B;
  --muted:     #5E6670;
  --line:      #DDD6C9;
  --line-soft: #EAE4D9;
  --accent:    #9A4A26;
  --accent-deep:#79381A;
  --accent-soft: rgba(154,74,38,0.09);
  --accent-line: rgba(154,74,38,0.28);
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --serif:   "Source Serif 4", Georgia, serif;
  --ui:      "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 72px);
  --band: var(--bg);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:78px; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--serif); font-size:18px; line-height:1.62;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
::selection{ background:var(--accent-soft); }
p{ text-wrap:pretty; }

/* ---------- shared ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }
.eyebrow{
  font-family:var(--ui); font-size:11.5px; font-weight:500; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); margin:0 0 1.5rem;
  display:flex; align-items:center; gap:.7em;
}
.eyebrow::before{ content:""; width:24px; height:1px; background:var(--accent); display:inline-block; opacity:.85; }
section{ padding-block:clamp(72px, 9vw, 132px); border-top:1px solid var(--line-soft); }
h2.section-title{
  font-family:var(--display); font-weight:500; font-size:clamp(28px,4vw,40px);
  line-height:1.1; letter-spacing:-.012em; margin:0 0 2.4rem;
}

/* ---------- nav ---------- */
header.nav{
  position:sticky; top:0; z-index:60; height:56px;
  background:rgba(247,244,238,0.86);
  backdrop-filter:saturate(150%) blur(12px);
  border-bottom:1px solid transparent; transition:border-color .3s, background .3s;
}
@media (max-width:1180px){ .nav-links a{ letter-spacing:.05em; padding:8px 6px; } }
header.nav.scrolled{ border-bottom-color:var(--line); }
.nav-inner{ max-width:var(--maxw); margin:0 auto; height:100%; padding-inline:var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ font-family:var(--display); font-weight:500; font-size:18px; letter-spacing:-.01em;
  text-decoration:none; color:var(--ink); white-space:nowrap; }
.brand:hover{ color:var(--accent); }
.nav-links{ display:flex; gap:2px; align-items:center; }
.nav-links a{
  font-family:var(--ui); font-size:11px; font-weight:500; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-soft); text-decoration:none; padding:8px 8px; position:relative;
  min-width:106px; text-align:center; display:inline-flex; align-items:center; justify-content:center;
  transition:background .3s ease, color .3s ease;
}
.nav-links a::after{ content:""; position:absolute; left:8px; right:8px; bottom:3px; height:1.5px;
  background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .25s; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a:hover::after{ transform:scaleX(1); }
/* boxed active highlight, tinted to the target section's tone */
.nav-links a.active{ color:#ffffff; background:var(--accent); border-radius:6px; }
.nav-links a.active::after{ transform:scaleX(0); }
.nav-links a.active.tone-dark{ color:#15181C; background:#E8C9A8; }
.nav-cta{ display:flex; gap:9px; align-items:center; }
.btn{
  font-family:var(--ui); font-size:12px; font-weight:500; letter-spacing:.04em;
  text-decoration:none; padding:8px 15px; border-radius:7px; transition:.2s; white-space:nowrap;
  display:inline-flex; align-items:center; gap:.5em; cursor:pointer; border:1px solid transparent;
}
.btn-outline{ border-color:var(--line); color:var(--ink-soft); background:transparent; }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-1px); }
.btn-fill{ background:var(--accent); color:#fff; box-shadow:0 1px 2px rgba(21,59,102,0.20); }
.btn-fill:hover{ background:var(--accent-deep); transform:translateY(-1px); box-shadow:0 3px 9px rgba(21,59,102,0.28); }
.menu-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:7px;
  font-family:var(--ui); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft);
  padding:8px 12px; cursor:pointer; }

/* ---------- hero ---------- */
.hero{ border-top:none; padding-top:clamp(40px,5.5vw,76px); padding-bottom:clamp(34px,4.5vw,56px); position:relative; overflow:hidden; }
.hero::before{ content:""; position:absolute; inset:0; background:url("assets/hero-bg.svg") no-repeat right top; background-size:cover; opacity:0.42; pointer-events:none; z-index:0;
  -webkit-mask:linear-gradient(90deg, transparent 0%, #000 42%); mask:linear-gradient(90deg, transparent 0%, #000 42%); }
.hero .hero-grid{ position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(28px,4.5vw,64px); align-items:start; }
.hero-main{ padding-top:2px; }
.hero h1{ font-family:var(--display); font-weight:500; font-size:clamp(38px,5.4vw,64px);
  line-height:1.02; letter-spacing:-.022em; margin:.3rem 0 0; }
.hero .tagline{ font-family:var(--display); font-style:italic; font-weight:400;
  font-size:clamp(21px,2.5vw,26px); line-height:1.34; color:var(--ink); margin:1.5rem 0 0; max-width:24ch; }
.hero .subline{ font-size:16.5px; color:var(--ink-soft); margin:1.1rem 0 0; max-width:52ch; }

/* editorial animated hero */
.hero-badge{ display:inline-flex; align-items:center; gap:.6em; font-family:var(--ui); font-size:12px; font-weight:500;
  letter-spacing:.04em; color:var(--ink-soft); background:rgba(255,255,255,.55); border:1px solid var(--line);
  border-radius:999px; padding:7px 15px; margin:0 0 1.5rem; }
.hero-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.hero h1 .l2{ display:block; font-size:.62em; color:var(--ink-soft); margin-top:.35em; letter-spacing:-.015em; line-height:1.12; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:2rem; }
.hero-actions .btn{ font-size:13px; padding:11px 22px; }
.hero-actions .btn-ghost{ border:1px solid var(--line); color:var(--ink); background:transparent; }
.hero-actions .btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
@keyframes heroUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
.hero-anim > *{ opacity:0; animation:heroUp .7s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-anim > *:nth-child(1){ animation-delay:.05s; }
.hero-anim > *:nth-child(2){ animation-delay:.16s; }
.hero-anim > *:nth-child(3){ animation-delay:.27s; }
.hero-anim > *:nth-child(4){ animation-delay:.38s; }
.hero-photo.hero-anim{ animation:heroUp .8s cubic-bezier(.2,.7,.3,1) .2s forwards; opacity:0; }
@media (prefers-reduced-motion: reduce){ .hero-anim > *, .hero-photo.hero-anim{ opacity:1; animation:none; } }
.affil{ margin:1.7rem 0 0; display:flex; flex-direction:column; gap:.5rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.affil .row{ display:flex; gap:.9em; align-items:baseline; font-size:15.5px; color:var(--ink-soft); }
.affil .row .tag{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent); min-width:74px; flex-shrink:0; padding-top:.15em; }
.affil .row strong{ color:var(--ink); font-weight:600; }

/* profile-column rail (under photo) */
.rail{ display:flex; flex-direction:column; border-top:1px solid var(--line); margin-top:16px; }
.rail a{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:3px 1px; line-height:1.15; border-bottom:1px solid var(--line-soft); text-decoration:none;
  font-family:var(--ui); font-size:13px; color:var(--ink); transition:color .2s, padding .2s; }
.rail a:hover{ color:var(--accent); padding-left:4px; }
.rail a .ar{ color:var(--muted); font-size:11px; transition:transform .2s, color .2s; }
.rail a:hover .ar{ color:var(--accent); transform:translateX(3px); }
.updated{ font-family:var(--ui); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); margin-top:11px; }

/* portrait */
.portrait{ width:100%; aspect-ratio:4/5; border-radius:10px; overflow:hidden; border:1px solid var(--line); background:var(--bg-soft); }
.portrait img{ width:100%; height:100%; object-fit:cover; object-position:50% 22%; display:block; }
.portrait .caption{ font-family:var(--ui); font-size:10.5px; letter-spacing:.05em; color:var(--muted); margin-top:8px; text-align:center; }

/* ---------- news strip ---------- */
.news{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--bg-soft); }
.news-inner{ max-width:var(--maxw); margin:0 auto; padding:18px var(--gutter); display:flex; flex-wrap:wrap; gap:8px 32px; align-items:baseline; }
.news .lab{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-right:6px; }
.news ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 28px; }
.news li{ font-family:var(--ui); font-size:13px; color:var(--ink-soft); display:flex; gap:.7em; align-items:baseline; }
.news li .d{ font-weight:600; color:var(--ink); letter-spacing:.02em; white-space:nowrap; }
.news li a{ color:inherit; text-decoration:none; border-bottom:1px solid var(--accent-line); }
.news li a:hover{ color:var(--accent); }

/* ---------- featured trio ---------- */
.featured{ }
.featured-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.fcard{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:24px 24px 22px; text-decoration:none; color:inherit;
  display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s, border-color .25s; }
.fcard:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(28,55,95,0.10); border-color:var(--accent-line); }
.fcard{ position:relative; }
.fcard .fk{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); }
.fcard h3{ font-family:var(--display); font-weight:500; font-size:19px; line-height:1.25; margin:.7rem 0 .5rem; letter-spacing:-.01em; }
.fcard p{ font-size:14px; color:var(--ink-soft); margin:0 0 1rem; flex:1; line-height:1.5; }
.fcard .fmore{ font-family:var(--ui); font-size:12px; font-weight:500; color:var(--accent); display:inline-flex; gap:.4em; align-items:center; }
.fcard:hover .fmore{ gap:.7em; }

/* ---------- section teaser link ---------- */
.see-all{ font-family:var(--ui); font-size:13px; font-weight:600; letter-spacing:.01em; color:var(--accent); text-decoration:none; display:inline-flex; gap:.5em; align-items:center; margin-top:2rem; background:var(--accent-soft); border:1px solid var(--accent-line); border-radius:999px; padding:11px 20px; transition:gap .2s, background .2s, border-color .2s, transform .2s; }
.see-all:hover{ gap:.85em; background:var(--accent); color:#fff; border-color:var(--accent); transform:translateY(-1px); }
section.sec-dark .see-all:hover{ background:var(--bg); color:#15181C; border-color:var(--bg); }
.theme-mini{ list-style:none; padding:0; margin:1.8rem 0 0; display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(24px,3.4vw,40px) clamp(36px,5vw,72px); }
.theme-mini li{ background:transparent; padding:0; border:none; border-top:1px solid var(--line); position:relative; }
.theme-mini a{ display:block; text-decoration:none; color:inherit; padding:1.4rem .85rem 1.35rem; margin:0 -.85rem; border-radius:9px; transition:background .18s ease; }
.theme-mini a:hover{ background:var(--accent-soft); }
.theme-mini a:hover h3{ color:var(--accent); }
.theme-mini a:active{ background:var(--accent); }
.theme-mini a:active h3, .theme-mini a:active .tn, .theme-mini a:active p{ color:#ffffff; }
.theme-mini a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.theme-mini .tn{ display:block; font-family:var(--ui); font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--accent); background:none; border:none; border-radius:0; padding:0; box-shadow:none; margin:0 0 .55rem; }
.theme-mini h3{ font-family:var(--display); font-weight:500; font-size:clamp(18px,2vw,21px); line-height:1.28; margin:0 0 .45rem; letter-spacing:-.01em; transition:color .18s ease; }
.theme-mini p{ font-size:14px; color:var(--ink-soft); margin:0; line-height:1.58; max-width:52ch; }
@media (max-width:760px){ .theme-mini{ grid-template-columns:1fr; gap:0; } .theme-mini a{ padding:1.3rem .85rem; } .theme-mini li:first-child a{ padding-top:.5rem; } .theme-mini li:first-child{ border-top:none; } }
@media (prefers-reduced-motion: reduce){ .theme-mini a, .theme-mini h3{ transition:none; } }

/* ---------- research vision band ---------- */
.vision{ border-top:none; }
.vision .eyebrow{ color:rgba(234,241,251,0.72); }
.vision .eyebrow::before{ background:rgba(234,241,251,0.6); opacity:1; }
.vision .vq{ font-family:var(--display); font-weight:500; font-size:clamp(24px,3.4vw,38px); line-height:1.16; letter-spacing:-.015em; color:#fff; margin:0 0 1.1rem; max-width:30ch; }
.vision .vlede{ font-size:16.5px; line-height:1.6; color:rgba(234,241,251,0.86); max-width:64ch; margin:0 0 2.2rem; }
.vision .vlede b{ color:#fff; font-weight:600; }
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pillar{ display:block; text-decoration:none; color:inherit; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.17); border-radius:12px; padding:22px 22px 24px; transition:background .2s, transform .2s; }
.pillar:hover{ background:rgba(255,255,255,0.15); transform:translateY(-2px); }
.pillar{ position:relative; }
.pillar .pn{ font-family:var(--ui); font-size:12px; font-weight:600; letter-spacing:.1em; color:#cfe0f5; }
.pillar h3{ font-family:var(--display); font-weight:500; font-size:19px; line-height:1.22; margin:.6rem 0 .5rem; color:#fff; letter-spacing:-.01em; }
.pillar p{ font-size:14px; line-height:1.52; color:rgba(234,241,251,0.84); margin:0; }
@media(max-width:820px){ .pillars{ grid-template-columns:1fr; } }

/* ---------- standalone page hero ---------- */
.page-hero{ padding-top:clamp(40px,6vw,80px); padding-bottom:clamp(20px,3vw,36px); border-top:none; }
.page-hero h1{ font-family:var(--display); font-weight:500; font-size:clamp(32px,5vw,52px); line-height:1.05; letter-spacing:-.02em; margin:.4rem 0 0; }
.page-hero .lede{ font-family:var(--display); font-style:italic; font-size:clamp(19px,2.3vw,25px); line-height:1.4; color:var(--ink-soft); margin:1.3rem 0 0; max-width:60ch; }
.page-hero .lede b{ color:var(--accent); font-style:normal; font-weight:500; }

/* ============ EXPERIENCE PAGE ============ */
.exp-tabs{ position:sticky; top:56px; z-index:40; background:rgba(246,248,251,0.9); backdrop-filter:saturate(150%) blur(10px);
  border-bottom:1px solid var(--line); margin-bottom:0; }
.exp-tabs-inner{ max-width:var(--maxw); margin:0 auto; padding:16px var(--gutter); display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.exp-tab{ font-family:var(--ui); cursor:pointer; text-align:left; white-space:normal;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px;
  box-shadow:0 1px 2px rgba(28,55,95,0.05);
  transition:border-color .2s, box-shadow .2s, transform .2s, background .2s;
  display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.exp-tab .t-org{ font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.exp-tab .t-title{ font-family:var(--display); font-size:17px; font-weight:500; line-height:1.22; letter-spacing:-.01em; color:var(--ink); }
.exp-tab:hover{ border-color:var(--accent-line); box-shadow:0 8px 22px rgba(28,55,95,0.10); transform:translateY(-2px); }
.exp-tab.active{ background:var(--accent); border-color:var(--accent); box-shadow:0 8px 22px rgba(28,55,95,0.18); }
.exp-tab.active .t-org{ color:rgba(255,255,255,0.82); }
.exp-tab.active .t-title{ color:#ffffff; }
/* editorial-board logo cards (homepage service) */
.logo-row{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; max-width:760px; margin-top:.5rem; }
.logo-row.cols3{ grid-template-columns:repeat(3,1fr); max-width:none; }
.logo-card{ display:flex; flex-direction:column; gap:16px; text-decoration:none; color:inherit; background:#ffffff; border:1px solid var(--line); border-radius:14px; padding:28px 30px; transition:transform .2s, box-shadow .2s, border-color .2s; position:relative; }
a.logo-card:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(11,36,54,.14); border-color:var(--accent-line); }
.logo-slot{ display:block; width:100%; height:88px; object-fit:contain; }
.logo-cap{ font-family:var(--ui); font-size:14px; line-height:1.5; color:var(--ink-soft); }
.logo-cap b{ color:var(--ink); font-weight:600; }
.logo-card.textcard{ justify-content:flex-start; gap:12px; }
.logo-card.logo-only{ justify-content:center; background:linear-gradient(155deg,#FFFDFA 0%,#F2ECE1 100%); }
.logo-card.logo-only .logo-slot{ height:120px; }
.logo-card .tc-year{ font-family:var(--display); font-weight:500; font-size:44px; line-height:1; color:var(--accent); }
@media(max-width:760px){ .logo-row.cols3{ grid-template-columns:1fr; } }
@media(max-width:640px){ .logo-row{ grid-template-columns:1fr; } }

.exp-panel{ display:none; animation:fadeUp .5s cubic-bezier(.2,.7,.3,1); padding-inline:clamp(24px,5vw,72px); }
.exp-panel.active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .exp-panel{ animation:none; } }

.exp-head{ padding:clamp(36px,5vw,60px) 0 clamp(24px,3vw,36px); border-bottom:1px solid var(--line-soft); }
.exp-head .role-line{ font-family:var(--ui); font-size:12.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--accent); }
.exp-head h2{ font-family:var(--display); font-weight:500; font-size:clamp(26px,3.6vw,38px); line-height:1.12; letter-spacing:-.015em; margin:.7rem 0 .3rem; }
.exp-head .org{ font-size:16px; color:var(--muted); margin:0; }
.exp-head .period{ font-family:var(--ui); font-size:12.5px; color:var(--muted); margin-top:.4rem; }

/* documentation blocks */
.doc-row{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:clamp(20px,3.5vw,56px); align-items:start;
  padding:clamp(28px,4vw,44px) 0; border-bottom:1px solid var(--line-soft); }
.doc-row:last-child{ border-bottom:none; }
.doc-row .dlabel{ font-family:var(--ui); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);
  position:sticky; top:120px; }
.doc-row .dbody{ max-width:66ch; color:var(--ink-soft); }
.doc-row .dbody p{ margin:0 0 1rem; font-size:15.5px; line-height:1.62; }
.doc-row .dbody p:last-child{ margin-bottom:0; }
.doc-row .dbody strong{ color:var(--ink); font-weight:600; }
.doc-row .dbody ul{ margin:.4rem 0 1rem; padding:0; list-style:none; }
.doc-row .dbody ul li{ position:relative; padding-left:1.3em; margin-bottom:.55rem; font-size:15.5px; line-height:1.55; }
.doc-row .dbody ul li::before{ content:"›"; position:absolute; left:0; color:var(--accent); font-family:var(--ui); }
.doc-row .dbody ul li b{ color:var(--ink); font-weight:600; }

/* method chips row */
.chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:.3rem; }
.chips span{ font-family:var(--ui); font-size:11.5px; letter-spacing:.01em; color:var(--ink-soft);
  border:1px solid var(--line); background:var(--bg); padding:5px 11px; border-radius:6px; }
.chips span.k{ background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent); font-weight:500; }
section.sec-dark .chips span{ background:var(--accent-soft); border-color:var(--accent-line); color:#fff; font-weight:500; }
section.sec-light .chips span{ background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent); font-weight:500; }

/* ---------- application materials (faculty documents) ---------- */
.docs-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.doccard{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:22px 22px 20px; text-decoration:none; color:inherit;
  display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s, border-color .25s; }
a.doccard:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(28,55,95,0.10); border-color:var(--accent-line); }
.doccard .dic{ width:30px; height:30px; color:var(--accent); margin-bottom:14px; }
.doccard h3{ font-family:var(--display); font-weight:500; font-size:18px; line-height:1.2; margin:0 0 .35rem; letter-spacing:-.01em; }
.doccard p{ font-size:13px; color:var(--ink-soft); margin:0 0 1rem; line-height:1.45; flex:1; }
.doccard .dmore{ font-family:var(--ui); font-size:11.5px; font-weight:600; letter-spacing:.03em; color:var(--accent); display:inline-flex; gap:.4em; align-items:center; }
a.doccard:hover .dmore{ gap:.7em; }
.doccard.pending{ border-style:dashed; }
.doccard.pending .dmore{ color:var(--muted); font-weight:500; }
@media (max-width:860px){ .docs-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .docs-grid{ grid-template-columns:1fr; } }

/* ---------- experience: sub-section accordions (course-card system) ---------- */
.subacc{ border:1px solid var(--line); border-radius:12px; margin-top:12px; overflow:hidden; background:var(--panel); box-shadow:0 1px 2px rgba(28,55,95,0.05); position:relative; transition:border-color .2s, box-shadow .2s, transform .2s; }
.subacc + .subacc{ margin-top:12px; }
.subacc:hover{ box-shadow:0 8px 24px rgba(28,55,95,0.09); border-color:var(--accent-line); transform:translateY(-1px); }
.subacc.open{ border-color:var(--accent-line); box-shadow:0 8px 24px rgba(28,55,95,0.09); }
.subacc-head{ width:100%; background:none; border:none; cursor:pointer; text-align:left; font-family:inherit; color:inherit;
  display:flex; align-items:center; gap:14px; padding:22px 26px; }
.subacc-head .sx{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); min-width:22px; }
.subacc-head .st{ font-family:var(--display); font-size:18px; font-weight:500; letter-spacing:-.01em; color:var(--ink); flex:1; line-height:1.25; }
.subacc-head .chev2{ transition:transform .3s; color:var(--muted); flex-shrink:0; }
.subacc.open .chev2{ transform:rotate(180deg); }
.subacc-head:hover .st{ color:var(--accent); }
.subacc-body{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .42s cubic-bezier(.3,.7,.3,1); }
.subacc.open .subacc-body{ grid-template-rows:1fr; }
.subacc-inner{ overflow:hidden; min-height:0; }
.subacc-pad{ padding:4px 26px 24px; font-size:14.5px; color:var(--ink-soft); line-height:1.6; border-top:1px solid var(--line-soft); }
.subacc-pad p{ margin:.7rem 0; }
.subacc-pad p:first-child{ margin-top:.9rem; }
.subacc-pad strong{ color:var(--ink); font-weight:600; }
.subacc-pad ul{ margin:.5rem 0; padding:0; list-style:none; }
.subacc-pad ul li{ position:relative; padding-left:1.3em; margin-bottom:.5rem; line-height:1.5; }
.subacc-pad ul li::before{ content:"›"; position:absolute; left:0; color:var(--accent); font-family:var(--ui); }
.subacc-pad ul li b{ color:var(--ink); font-weight:600; }
@media (prefers-reduced-motion: reduce){ .subacc-body,.chev2{ transition:none; } }

/* ---------- proposed-course syllabus cards ---------- */
.course{ border:1px solid var(--line); border-radius:12px; background:var(--panel); margin-bottom:14px; overflow:hidden; transition:border-color .2s; }
.course.open{ border-color:var(--accent-line); }
.course-head{ width:100%; text-align:left; background:none; border:none; cursor:pointer; font-family:inherit; color:inherit; display:flex; gap:18px; align-items:flex-start; padding:24px 26px; }
.course-top{ flex:1; min-width:0; }
.course-lvl{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.course-head h3{ font-family:var(--display); font-weight:500; font-size:clamp(19px,2.2vw,23px); line-height:1.24; letter-spacing:-.01em; margin:.5rem 0 .5rem; }
.course-head:hover h3{ color:var(--accent); }
.course-blurb{ font-size:15px; color:var(--ink-soft); margin:0; line-height:1.5; max-width:72ch; }
.course .chev2{ margin-top:.5em; flex-shrink:0; color:var(--muted); transition:transform .3s; }
.course.open .chev2{ transform:rotate(180deg); }
.course-body{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .42s cubic-bezier(.3,.7,.3,1); }
.course.open .course-body{ grid-template-rows:1fr; }
.course-inner{ overflow:hidden; min-height:0; }
.course-pad{ padding:2px 26px 26px; border-top:1px solid var(--line-soft); }
.syl{ display:grid; grid-template-columns:158px minmax(0,1fr); gap:0 24px; margin-top:.4rem; }
.syl dt{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); padding:15px 0 4px; border-top:1px solid var(--line-soft); }
.syl dt:first-of-type{ border-top:none; }
.syl dd{ margin:0; font-size:14.5px; color:var(--ink-soft); line-height:1.58; padding:15px 0 4px; border-top:1px solid var(--line-soft); }
.syl dd:first-of-type{ border-top:none; }
.syl dd b{ color:var(--ink); font-weight:600; }
.syl dd ul{ margin:.2rem 0; padding:0; list-style:none; }
.syl dd ul li{ position:relative; padding-left:1.2em; margin-bottom:.4rem; }
.syl dd ul li::before{ content:"›"; position:absolute; left:0; color:var(--accent); font-family:var(--ui); }
.syl dd ol{ margin:.2rem 0; padding-left:1.25em; }
.syl dd ol li{ margin-bottom:.4rem; padding-left:.2em; }
.syl dd .wk{ color:var(--ink); font-weight:600; }
@media(max-width:760px){ .syl{ grid-template-columns:1fr; gap:0; } .syl dt{ padding-bottom:0; } .syl dd{ border-top:none; padding-top:4px; } .syl dd:first-of-type{ padding-top:4px; } }



/* stat / result panels */
.stat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:.4rem; }
.stat{ background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:20px 20px 18px; position:relative; }
.stat .sv{ font-family:var(--display); font-weight:500; font-size:26px; line-height:1; color:var(--accent); letter-spacing:-.01em; }
.stat .sl{ font-size:13px; color:var(--ink-soft); margin-top:.5rem; line-height:1.4; }

/* pipeline diagram */
.pipeline{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; margin-top:.4rem; }
.pnode{ flex:1 1 130px; min-width:120px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px 14px;
  position:relative; display:flex; flex-direction:column; gap:5px; }
.pnode .pn{ font-family:var(--ui); font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.pnode .pt{ font-size:13.5px; color:var(--ink); line-height:1.3; }
.pnode .pd{ font-size:11.5px; color:var(--muted); line-height:1.4; }
.pipeline .parrow{ align-self:center; color:var(--muted); font-size:16px; flex:0 0 auto; }
@media (max-width:680px){ .pipeline{ flex-direction:column; } .pipeline .parrow{ transform:rotate(90deg); } }

/* architecture / method cards */
.arch-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:.4rem; }
.arch{ background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:20px 22px; }
.arch h4{ font-family:var(--display); font-weight:500; font-size:17px; line-height:1.25; margin:0 0 .5rem; letter-spacing:-.01em; }
.arch p{ font-size:13.5px; color:var(--ink-soft); margin:0; line-height:1.5; }

/* illustrative figure frame */
.illus{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:22px 24px 18px; margin-top:.4rem; }
.illus svg{ display:block; width:100%; height:auto; }
.illus .cap{ font-family:var(--ui); font-size:11.5px; color:var(--muted); margin-top:12px; line-height:1.5; }
.illus .cap b{ color:var(--accent); font-weight:600; letter-spacing:.04em; text-transform:uppercase; font-size:10px; }

.exp-link{ font-family:var(--ui); font-size:13px; font-weight:500; color:var(--accent); text-decoration:none; display:inline-flex; gap:.45em; align-items:center; }
.exp-link:hover{ gap:.7em; }

@media (max-width:760px){
  .doc-row{ grid-template-columns:1fr; gap:12px; }
  .doc-row .dlabel{ position:static; }
  .stat-grid{ grid-template-columns:1fr; }
  .arch-grid{ grid-template-columns:1fr; }
  .exp-tabs-inner{ grid-template-columns:repeat(2,1fr); }
  .exp-tab{ padding:14px 15px; }
}
@media (max-width:480px){
  .exp-tabs-inner{ grid-template-columns:1fr; }
}

.backlink{ font-family:var(--ui); font-size:12px; font-weight:500; letter-spacing:.04em; color:var(--muted); text-decoration:none; }
.backlink:hover{ color:var(--accent); }

/* ---------- bio ---------- */
.twocol{ display:grid; grid-template-columns:170px minmax(0,1fr); gap:clamp(24px,4vw,64px); align-items:start; }
.twocol .label-col .eyebrow{ margin-bottom:0; position:sticky; top:84px; }
.pullquote{ font-family:var(--display); font-style:italic; font-size:clamp(22px,2.7vw,29px);
  line-height:1.4; font-weight:400; margin:0 0 1.8rem; letter-spacing:-.006em; color:var(--ink); }
.bio-body{ max-width:64ch; color:var(--ink-soft); }
.bio-body p{ margin:0 0 1.15rem; }
.bio-body strong{ color:var(--ink); font-weight:600; }
.bio-body em{ font-style:italic; }

/* ---------- research agenda ---------- */
.agenda-q{ font-family:var(--display); font-size:clamp(20px,2.3vw,25px); line-height:1.4; max-width:60ch;
  color:var(--ink); margin:-1rem 0 2.6rem; }
.agenda-q b{ color:var(--accent); font-weight:500; }
.interests-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.interest{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:28px 26px 30px;
  display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s, border-color .25s; }
.interest:hover{ transform:scale(1.012); box-shadow:0 10px 30px rgba(28,55,95,0.10); border-color:var(--accent-line); }
.interest .num{ font-family:var(--ui); font-size:11px; font-weight:600; letter-spacing:.1em; color:var(--accent); }
.interest h3{ font-family:var(--display); font-weight:500; font-size:20px; line-height:1.22; margin:.85rem 0 .6rem; letter-spacing:-.01em; }
.interest p{ margin:0 0 1rem; font-size:15px; line-height:1.55; color:var(--ink-soft); flex:1; }
.meth{ display:flex; flex-wrap:wrap; gap:6px; }
.meth span{ font-family:var(--ui); font-size:10.5px; letter-spacing:.02em; color:var(--ink-soft);
  border:1px solid var(--line); padding:3px 8px; border-radius:5px; background:var(--bg); }
section.sec-dark .meth span{ color:#15181C; background:var(--bg); border-color:transparent; }
.builds{ margin-top:1rem; padding-top:.95rem; border-top:1px solid var(--line-soft); font-size:13px; line-height:1.5; color:var(--ink-soft); }
.builds b{ font-family:var(--ui); font-size:9.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:.35rem; }
.backbone{ font-family:var(--ui); font-size:13px; line-height:1.6; color:var(--muted); margin:1.8rem 0 0; max-width:78ch; }
.backbone b{ color:var(--ink-soft); font-weight:600; }

/* research figure */
.figure{ margin:2.4rem 0 0; display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(20px,3vw,40px); align-items:center;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:clamp(18px,2.5vw,28px); }
.figure image-slot{ width:100%; height:230px; display:block; }
.figcap .fl{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); }
.figcap h4{ font-family:var(--display); font-weight:500; font-size:19px; line-height:1.25; margin:.6rem 0 .5rem; letter-spacing:-.01em; }
.figcap p{ margin:0; font-size:14px; color:var(--ink-soft); line-height:1.5; }

/* ---------- publications ---------- */
.pub-list{ display:flex; flex-direction:column; }
.pub{ display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:clamp(16px,3vw,36px);
  padding:26px 4px; border-top:1px solid var(--line); align-items:start; transition:background .25s; }
.pub:first-child{ border-top:none; }
.pub:hover{ background:var(--bg-soft); }
.pub{ position:relative; }
.pub .yr{ font-family:var(--ui); font-size:13px; font-weight:600; color:var(--accent); padding-top:.3em; }
.pub h3{ font-family:var(--display); font-weight:500; font-size:clamp(19px,2.1vw,23px); line-height:1.3; margin:0 0 .5rem; letter-spacing:-.008em; }
.pub h3 a{ color:var(--ink); text-decoration:none; background-image:linear-gradient(var(--accent),var(--accent));
  background-size:0% 1.5px; background-repeat:no-repeat; background-position:0 100%; transition:background-size .3s, color .2s; }
.pub h3 a:hover{ background-size:100% 1.5px; color:var(--accent); }
.pub h3 .ext{ font-size:.7em; color:var(--accent); vertical-align:.12em; }
.pub .authors{ font-family:var(--serif); font-size:15px; color:var(--ink-soft); margin:0 0 .35rem; }
.pub .authors .me{ color:var(--ink); font-weight:600; }
.pub .venue{ font-size:14.5px; color:var(--muted); margin:0; }
.pub .venue em{ color:var(--ink-soft); font-style:italic; }
.pub .role{ font-size:13.5px; color:var(--muted); margin:.45rem 0 0; font-style:italic; }
.pub .subnote{ font-family:var(--ui); font-size:12.5px; color:var(--muted); margin:.6rem 0 0; padding-left:.9em; border-left:2px solid var(--line); }
.pub .subnote a{ color:var(--ink-soft); }
.pub .meta{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; padding-top:.2em; }
.badge{ font-family:var(--ui); font-size:10px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; padding:4px 9px; border-radius:5px; white-space:nowrap; }
.badge-nat{ background:var(--accent-soft); color:var(--accent); border:1px solid var(--accent-line); }
.badge-pre{ border:1px solid var(--line); color:var(--ink-soft); }
.badge-prep{ border:1px dashed var(--line); color:var(--muted); }
.pub .links{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.pub .links a{ font-family:var(--ui); font-size:11.5px; color:var(--ink-soft); text-decoration:none; border-bottom:1px solid var(--accent-line); }
.pub .links a:hover{ color:var(--accent); }
.pub-foot{ font-family:var(--serif); margin-top:2.2rem; font-size:15px; color:var(--muted); }
.pub-foot a{ color:var(--accent); text-decoration:none; border-bottom:1px solid var(--accent-soft); }
.pub-foot a:hover{ border-bottom-color:var(--accent); }

/* ---------- projects ---------- */
.projects{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.project{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:28px 28px 26px; display:flex; flex-direction:column;
  transition:transform .25s, box-shadow .25s, border-color .25s; }
.project:hover{ transform:scale(1.01); box-shadow:0 10px 30px rgba(28,55,95,0.10); border-color:var(--accent-line); }
.project{ position:relative; }
.pstatus{ font-family:var(--ui); font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent);
  display:inline-flex; align-items:center; gap:.5em; margin-bottom:1.1rem; border:1px solid var(--accent-line); padding:4px 10px; border-radius:999px; align-self:flex-start; }
.pstatus .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }
.project h3{ font-family:var(--display); font-weight:500; font-size:22px; line-height:1.24; margin:0 0 .7rem; letter-spacing:-.01em; }
.project p{ margin:0 0 1.1rem; font-size:15px; color:var(--ink-soft); flex:1; }
.project .pmeta{ font-family:var(--ui); font-size:11.5px; color:var(--muted); letter-spacing:.01em; border-top:1px solid var(--line-soft); padding-top:.95rem; line-height:1.7; }
.project .pmeta b{ color:var(--ink-soft); font-weight:600; }
.project .more{ font-family:var(--ui); font-size:12.5px; font-weight:500; color:var(--accent); text-decoration:none; margin-top:.9rem; display:inline-flex; gap:.4em; align-items:center; }
.project .more:hover{ gap:.7em; }

/* ---------- awards ---------- */
.awards-grid{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:clamp(24px,4vw,64px); align-items:start; }
.award-list{ list-style:none; padding:0; margin:0; }
.award-list li{ display:grid; grid-template-columns:64px minmax(0,1fr); gap:20px; padding:15px 0; border-top:1px solid var(--line-soft); align-items:baseline; }
.award-list li:first-child{ border-top:none; }
.award-list .ayr{ font-family:var(--ui); font-size:12.5px; font-weight:600; color:var(--accent); }
.award-list .aname{ font-size:16px; color:var(--ink); line-height:1.4; }
.award-list .aname .org{ display:block; font-size:13.5px; color:var(--muted); margin-top:.15rem; }

/* ---------- service + talks ---------- */
.service{ margin-top:clamp(36px,5vw,60px); padding-top:clamp(30px,4vw,46px); border-top:1px solid var(--line); }
.service-grid{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:clamp(24px,4vw,64px); align-items:start; }
.service-list{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,1fr); gap:0 clamp(28px,4vw,56px); }
.service-list li{ padding:12px 14px; margin:0 -14px; border-top:1px solid var(--line-soft); font-size:15px; color:var(--ink); line-height:1.4; border-radius:9px; transition:background .18s ease; }
.service-list li:hover{ background:var(--accent-soft); }
.service-list li:active{ background:var(--accent); color:#ffffff; }
.service-list li:active .sorg{ color:rgba(255,255,255,.82); }
.service-list li .sorg{ display:block; font-size:12px; color:var(--muted); margin-top:.2rem; font-family:var(--ui); }
.service-note{ font-family:var(--ui); margin:1.5rem 0 0; font-size:13.5px; color:var(--muted); }
.service-list li a{ color:var(--ink); text-decoration:none; border-bottom:1px solid var(--accent-line); transition:color .2s; }
.service-list li a:hover{ color:var(--accent); border-bottom-color:var(--accent); }
.service-list li a .ext{ font-size:.85em; color:var(--accent); margin-left:.25em; }

/* ---------- evidence photos + lightbox ---------- */
.evidence{ margin-top:1.5rem; padding-top:1.3rem; border-top:1px solid var(--line-soft); }
.evidence .evh{ font-family:var(--ui); font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--accent); margin:0 0 .3rem; }
.evidence .evcap{ font-size:13.5px; color:var(--ink-soft); margin:0 0 .9rem; max-width:62ch; line-height:1.5; }
.evstrip{ display:flex; flex-wrap:wrap; gap:10px; }
.evstrip button{ padding:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; cursor:pointer; background:none; width:112px; height:84px; transition:border-color .2s, transform .2s, box-shadow .2s; }
.evstrip button:hover{ border-color:var(--accent); transform:translateY(-2px); box-shadow:0 8px 20px rgba(28,55,95,0.12); }
.evstrip button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.evstrip img{ width:100%; height:100%; object-fit:cover; display:block; }
.lightbox{ position:fixed; inset:0; z-index:200; background:rgba(18,26,38,0.88); display:none; align-items:center; justify-content:center; padding:24px; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:92vw; max-height:80vh; border-radius:6px; box-shadow:0 24px 70px rgba(0,0,0,.45); }
.lightbox .lb-cap{ position:absolute; bottom:20px; left:0; right:0; text-align:center; color:#e8edf5; font-family:var(--ui); font-size:13px; padding:0 20px; }
.lightbox .lb-close{ position:absolute; top:16px; right:22px; background:none; border:none; color:#fff; font-size:30px; cursor:pointer; line-height:1; }
.lightbox .lb-nav{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.14); border:none; color:#fff; font-size:22px; width:46px; height:46px; border-radius:50%; cursor:pointer; }
.lightbox .lb-nav:hover{ background:rgba(255,255,255,.26); }
.lightbox .lb-prev{ left:18px; } .lightbox .lb-next{ right:18px; }
@media (max-width:560px){ .lightbox .lb-nav{ width:40px; height:40px; } }

.talks-table{ width:100%; border-collapse:collapse; }
.talks-table tr{ border-top:1px solid var(--line-soft); }
.talks-table tr:first-child{ border-top:none; }
.talks-table td{ padding:16px 0; vertical-align:top; }
.talks-table td.tdate{ font-family:var(--ui); font-size:12.5px; font-weight:600; color:var(--accent); white-space:nowrap; width:90px; padding-right:24px; }
.talks-table td.ttitle{ font-size:16px; color:var(--ink); line-height:1.35; }
.talks-table td.ttitle .tvenue{ display:block; font-size:13.5px; color:var(--muted); margin-top:.25rem; }

/* ---------- teaching ---------- */
.teach-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,72px); align-items:start; }
.teach-intro{ max-width:64ch; color:var(--ink-soft); margin:-1.2rem 0 2.6rem; font-size:clamp(17px,1.9vw,19px); line-height:1.6; }
.teach-intro strong{ color:var(--ink); font-weight:600; }
.teach-block h3{ font-family:var(--display); font-weight:500; font-size:20px; margin:0 0 .4rem; letter-spacing:-.01em; }
.teach-block h3 .sub{ font-family:var(--ui); font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); display:block; margin-top:.35rem; }
.teach-block .lead-in{ font-size:14.5px; color:var(--ink-soft); margin:.2rem 0 1.1rem; }
.course-list{ list-style:none; padding:0; margin:1.1rem 0 0; }
.course-list li{ padding:12px 0; border-top:1px solid var(--line-soft); display:flex; justify-content:space-between; gap:18px; align-items:baseline; }
.course-list li:first-child{ border-top:none; }
.course-list .cname{ font-size:15.5px; color:var(--ink); }
.course-list .cmeta{ font-family:var(--ui); font-size:11.5px; color:var(--muted); white-space:nowrap; text-align:right; }
.future-list{ list-style:none; padding:0; margin:1.1rem 0 0; display:flex; flex-direction:column; gap:11px; }
.future-list li{ font-size:15px; color:var(--ink-soft); padding-left:1.4em; position:relative; line-height:1.45; }
.future-list li::before{ content:"›"; position:absolute; left:0; color:var(--accent); font-family:var(--ui); }
.future-list li b{ color:var(--ink); font-weight:600; }
.teach-note{ font-size:15px; color:var(--ink-soft); }
.mentorship{ margin-top:clamp(38px,5vw,60px); padding-top:clamp(30px,4vw,46px); border-top:1px solid var(--line);
  display:grid; grid-template-columns:170px minmax(0,1fr); gap:clamp(24px,4vw,64px); align-items:start; }
.mentorship .m-body{ max-width:66ch; color:var(--ink-soft); }
.mentorship .m-body p{ margin:0 0 1rem; }
.mentorship .m-body p:last-child{ margin-bottom:0; }
.mentorship .m-body strong{ color:var(--ink); font-weight:600; }

/* ---------- contact ---------- */
.contact{ background:var(--bg-soft); border-top:1px solid var(--line); }
.contact-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,72px); align-items:center; }
.contact h1, .contact h2{ font-family:var(--display); font-weight:500; font-size:clamp(30px,4.5vw,46px); line-height:1.08; letter-spacing:-.015em; margin:0 0 1.2rem; }
.contact .ccopy{ font-size:17px; color:var(--ink-soft); max-width:42ch; margin:0 0 1.8rem; }
.contact-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.contact-actions .btn{ font-size:13px; padding:11px 18px; }
.contact-links{ display:flex; flex-direction:column; }
.clink{ display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); text-decoration:none; color:var(--ink); transition:padding .2s; max-width:420px; }
.clink:first-child{ border-top:none; }
.clink:hover{ padding-left:8px; }
.clink:hover .cval{ color:var(--accent); }
.clink .ctag{ font-family:var(--ui); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); width:92px; flex-shrink:0; display:inline-flex; align-items:center; gap:8px; }
.clink .ctag svg{ flex-shrink:0; }
.sr-cap{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.clink .cval{ font-size:16.5px; transition:color .2s; word-break:break-word; }
.clink .arr{ margin-left:auto; color:var(--muted); transition:transform .2s, color .2s; }
.clink:hover .arr{ transform:translateX(4px); color:var(--accent); }

/* ---------- footer ---------- */
footer.site{ border-top:1px solid var(--line); padding:30px 0; }
.foot-inner{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 24px;
  font-family:var(--ui); font-size:11.5px; letter-spacing:.03em; color:var(--muted); }
.foot-inner .sep{ color:var(--ink-soft); }
.foot-nav{ display:flex; gap:14px; flex-wrap:wrap; }
.foot-nav a{ color:var(--muted); text-decoration:none; }
.foot-nav a:hover{ color:var(--accent); }

/* ---------- About timeline ---------- */
.timeline{ list-style:none; padding:0; margin:0; }
.timeline li{ display:grid; grid-template-columns:118px minmax(0,1fr); gap:24px; padding:18px 0; border-top:1px solid var(--line-soft); align-items:baseline; }
.timeline li:first-child{ border-top:none; }
.timeline .tyr{ font-family:var(--ui); font-size:12.5px; font-weight:600; color:var(--accent); letter-spacing:.02em; }
.timeline .titem{ font-size:16px; color:var(--ink); line-height:1.45; }
.timeline .titem .torg{ display:block; font-size:13.5px; color:var(--muted); margin-top:.2rem; }
.fig-placeholder{ font-family:var(--ui); font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); background:var(--bg-soft); border:1px solid var(--line); padding:3px 9px; border-radius:999px; display:inline-block; margin-bottom:.6rem; }
@media (max-width:560px){ .timeline li{ grid-template-columns:64px 1fr; gap:14px; } }

/* ---------- reveal ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .nav-links{ display:none; }
  .menu-toggle{ display:inline-flex; }
  .nav-links.open{ display:flex; position:absolute; top:56px; left:0; right:0; flex-direction:column;
    background:var(--panel); border-bottom:1px solid var(--line); padding:8px var(--gutter) 16px; gap:2px; align-items:stretch; }
  .nav-links.open a{ padding:11px 6px; }
  .hero-grid{ grid-template-columns:1fr; gap:30px; }
  .hero-photo{ max-width:300px; }
  .figure{ grid-template-columns:1fr; }
  .figure image-slot{ height:300px; }
}
@media (max-width:860px){
  .interests-grid{ grid-template-columns:1fr; }
  .projects{ grid-template-columns:1fr; }
  .teach-grid{ grid-template-columns:1fr; }
  .awards-grid{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns:1fr; }
  .service-list{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .twocol{ grid-template-columns:1fr; gap:18px; }
  .twocol .label-col .eyebrow{ position:static; }
  .mentorship{ grid-template-columns:1fr; gap:18px; }
}
@media (max-width:560px){
  .pub{ grid-template-columns:1fr; gap:10px; }
  .pub .yr{ padding-top:0; }
  .pub .meta{ flex-direction:row; align-items:center; flex-wrap:wrap; }
  .award-list li{ grid-template-columns:54px 1fr; gap:14px; }
  .talks-table td.tdate{ width:auto; display:block; padding-bottom:2px; }
  .talks-table td.ttitle{ display:block; }
  .nav-cta .btn-outline{ display:none; }
}


/* ===== full-bleed tonal bands =====
   Sections carry their own background edge-to-edge via the box-shadow/clip-path
   bleed trick, so a section can also be a .wrap (width-constrained) container. */
section.sec-light, section.sec-dark{
  border-top:none;
  box-shadow:0 0 0 100vmax var(--band);
  clip-path:inset(0 -100vmax);
  scroll-margin-top:74px;
}
section.sec-card{ scroll-margin-top:74px; }

section.sec-light{
  --band:#F7F4EE;
  background:#F7F4EE;
  --ink:#15181C; --ink-soft:#3B424B; --muted:#5E6670;
  --line:#DDD6C9; --line-soft:#EAE4D9;
  --panel:#FFFDFA; --bg-soft:#EFEAE0;
  --accent:#9A4A26; --accent-soft:rgba(154,74,38,.09); --accent-line:rgba(154,74,38,.28);
  color:#15181C;
}
/* every other light band sits a half-step down for quiet rhythm */
section.sec-light.tint{ --band:#F1ECE2; background:#F1ECE2; }

section.sec-dark{
  --band:#14181E;
  background:#14181E;
  --ink:#F7F4EE; --ink-soft:rgba(247,244,238,.84); --muted:rgba(247,244,238,.60);
  --line:rgba(247,244,238,.20); --line-soft:rgba(247,244,238,.11);
  --panel:rgba(255,255,255,.055); --bg-soft:rgba(255,255,255,.04);
  --accent:#DFA173; --accent-soft:rgba(223,161,115,.13); --accent-line:rgba(223,161,115,.34);
  color:#F7F4EE;
}

/* buttons stay legible on each tone */
section.sec-light .btn-fill{ background:var(--accent); color:#fff; }
section.sec-light .btn-fill:hover{ background:var(--accent-deep); }
section.sec-dark .btn-fill{ background:#F7F4EE; color:#15181C; box-shadow:none; }
section.sec-dark .btn-fill:hover{ background:#fff; color:#15181C; }
section.sec-dark .btn-outline{ border-color:rgba(247,244,238,.42); color:#F7F4EE; }
section.sec-dark .btn-outline:hover{ border-color:#F7F4EE; background:rgba(247,244,238,.10); color:#F7F4EE; }

/* vision band internals inherit whichever tone it carries */
.vision.sec-light .vq, .vision.sec-light .vlede b, .vision.sec-light .pillar h3{ color:var(--ink); }
.vision.sec-light .vlede, .vision.sec-light .pillar p{ color:var(--ink-soft); }
.vision.sec-light .pillar{ background:var(--panel); border-color:var(--line); }
.vision.sec-light .pillar:hover{ background:var(--bg-soft); }
.vision.sec-light .pillar .pn{ color:var(--accent); }
.vision.sec-light .eyebrow{ color:var(--muted); }
.vision.sec-light .eyebrow::before{ background:var(--accent); }
section.contact.sec-light{ background:#F1ECE2; --band:#F1ECE2; }

/* ===== subpages: same warm paper as the homepage ===== */
body.subpage{ background:var(--bg); }
body.subpage header.nav{ background:rgba(247,244,238,0.88); }
body.subpage section{ border-top-color:var(--line-soft); }
body.subpage .page-hero{ background:transparent; }
