/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #f9f8f6;
  color: #1a1a1a;
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
  --ink:       #1a1a1a;
  --ink2:      #3d3d3d;
  --muted:     #717171;
  --rule:      #e4e0da;
  --bg:        #f9f8f6;
  --bg2:       #f2f0ec;
  --white:     #ffffff;
  --accent:    #1d4ed8;   /* professional blue */
  --accent2:   #1e40af;
  --gold:      #92711a;
  --serif:     'Lora', Georgia, serif;
  --sans:      'DM Sans', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --max:       1100px;
  --nav-h:     68px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { font-family: var(--sans); color: var(--ink2); font-size: 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(249,248,246,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0 0.85rem; height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  color: var(--muted); text-decoration: none; letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ── PAGE WRAPPER ─────────────────────────────────────── */
.page { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.page-body { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; }

/* ── HERO (index) ─────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  max-width: var(--max); margin: 0 auto; padding-left: 2rem; padding-right: 2rem;
}
.hero-eyebrow {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem;
}
.pill {
  font-family: var(--sans); font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--rule);
}
.pill.blue { background: #dbeafe; color: var(--accent); border-color: #bfdbfe; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-family: var(--sans); font-size: 1.05rem; color: var(--muted);
  max-width: 520px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  padding: 10px 24px; border-radius: 6px; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-filled { background: var(--accent); color: white; }
.btn-filled:hover { background: var(--accent2); color: white; }
.btn-outline { border: 1px solid var(--rule); color: var(--ink2); background: white; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-photo-wrap { flex-shrink: 0; }
.hero-photo {
  width: 240px; height: 290px;
  border-radius: 12px; object-fit: cover; object-position: top center;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

/* ── DIVIDER ──────────────────────────────────────────── */
.divider { height: 1px; background: var(--rule); margin: 0; }

/* ── QUICK LINKS STRIP ────────────────────────────────── */
.quick-strip {
  max-width: var(--max); margin: 0 auto; padding: 2rem;
  background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.quick-strip h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.quick-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.quick-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; background: var(--bg2);
  border: 1px solid var(--rule); color: var(--ink2); text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.quick-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── TWO-COL HOME ─────────────────────────────────────── */
.home-cols {
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.home-col h3 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
}
.contrib-list { list-style: none; }
.contrib-list li {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink2);
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-start; gap: 10px;
}
.contrib-list li::before { content: '—'; color: var(--rule); flex-shrink: 0; }
.identity-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.8rem; text-align: center;
}
.identity-photo {
  width: 90px; height: 110px; border-radius: 8px; object-fit: cover;
  object-position: top center; margin-bottom: 1rem;
  border: 1px solid var(--rule);
}
.identity-name { font-size: 1.1rem; margin-bottom: 4px; }
.identity-role { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }

/* ── PAGE HEADER ──────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 3rem) 2rem 2.5rem;
  max-width: var(--max); margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.page-header .eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-header p {
  color: var(--muted); font-family: var(--sans); max-width: 560px; margin-top: 0.6rem;
}

/* ── ABOUT PAGE ───────────────────────────────────────── */
.about-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start;
  max-width: var(--max); margin: 0 auto; padding: 3rem 2rem;
}
.about-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about-photo {
  width: 100%; border-radius: 12px; object-fit: cover; object-position: top center;
  border: 1px solid var(--rule); margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sidebar-name { font-size: 1.1rem; margin-bottom: 4px; }
.sidebar-role { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }
.sidebar-badges { display: flex; flex-direction: column; gap: 6px; }
.s-badge {
  font-family: var(--sans); font-size: 0.73rem; font-weight: 500;
  padding: 5px 10px; border-radius: 5px; text-align: center;
}
.s-badge-blue { background: #dbeafe; color: var(--accent); }
.s-badge-gold { background: #fef9c3; color: var(--gold); }
.s-badge-gray { background: var(--bg2); color: var(--ink2); }
.about-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 1.1rem; }
.about-content ul { list-style: none; margin-bottom: 1rem; }
.about-content ul li {
  font-family: var(--sans); color: var(--ink2); padding: 5px 0 5px 1.2rem;
  position: relative; border-bottom: 1px solid var(--rule);
}
.about-content ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

/* ── RESEARCH PAGE ────────────────────────────────────── */
.section-block {
  max-width: var(--max); margin: 0 auto; padding: 3rem 2rem 0;
}
.section-block + .section-block { padding-top: 2.5rem; }
.section-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--rule);
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--accent); }
.pub-item {
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.5rem; margin-bottom: 1rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pub-item:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(29,78,216,0.07); }
.pub-year {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  color: var(--accent); background: #dbeafe; padding: 4px 10px; border-radius: 5px;
  white-space: nowrap; height: fit-content;
}
.pub-body {}
.pub-type { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.pub-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.pub-venue { font-family: var(--sans); font-size: 0.83rem; color: var(--muted); }
.pub-venue strong { color: var(--accent2); }

/* ── RECOGNITIONS PAGE ────────────────────────────────── */
.cert-section { max-width: var(--max); margin: 0 auto; padding: 3rem 2rem 0; }
.cert-intro { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.cert-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}
.cert-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(29,78,216,0.1); transform: translateY(-2px); text-decoration: none; }
.cert-thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  background: var(--bg2);
}
.cert-caption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--rule);
}
.cert-cap-issuer { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 3px; }
.cert-cap-title { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.cert-cap-date { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

/* ── COMMITTEES PAGE ──────────────────────────────────── */
.comm-table-wrap { overflow-x: auto; }
.comm-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 0.88rem;
}
.comm-table th {
  text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 8px 12px; background: var(--bg2);
  border-bottom: 2px solid var(--rule);
}
.comm-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink2); vertical-align: top; }
.comm-table tr:hover td { background: #f5f3f0; }
.comm-table td:first-child { font-weight: 600; color: var(--ink); }
.role-pill {
  display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.role-tpc    { background: #dbeafe; color: var(--accent); }
.role-review { background: #dcfce7; color: #166534; }
.role-keynote{ background: #fef9c3; color: var(--gold); }
.role-judge  { background: #fce7f3; color: #9d174d; }

/* ── CONTACT PAGE ─────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: var(--max); margin: 0 auto; padding: 3rem 2rem;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 1.2rem 0; border-bottom: 1px solid var(--rule);
}
.contact-icon {
  width: 38px; height: 38px; border-radius: 8px; background: var(--bg2);
  border: 1px solid var(--rule); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.contact-label { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 3px; }
.contact-value { font-family: var(--sans); font-size: 0.9rem; color: var(--ink); }
.contact-value a { color: var(--accent); }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 999; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,0.5); }
.lb-close { position: fixed; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; border: none; color: var(--ink); }
.lb-close:hover { background: var(--accent); color: white; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule); padding: 2rem;
  text-align: center; background: var(--bg);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── FADE IN ──────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .about-photo { width: 160px; }
  .home-cols { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links a { padding: 0 0.55rem; font-size: 0.76rem; }
}
@media (max-width: 640px) {
  .nav-brand span { display: none; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
}
