/* ============================================
   Google Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,600;1,400&display=swap');

/* ============================================
   Base & Reset
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #1b3558;
  --primary-dark:  #112240;
  --accent:        #2980b9;
  --accent-light:  #3d9dd4;
  --bg:            #ffffff;
  --bg-light:      #f6f8fb;
  --bg-subtle:     #eef2f7;
  --text:          #1a2332;
  --text-body:     #374151;
  --text-muted:    #6b7280;
  --border:        #e5e9f0;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:  'Lora', Georgia, serif;
  --max-width:     1080px;
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); text-decoration: underline; }
ul { list-style: none; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5.5rem 0; }
.bg-light { background: var(--bg-light); }
.bg-subtle { background: var(--bg-subtle); }

/* ============================================
   Typography
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.75;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(41,128,185,0.3);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(27,53,88,0.35);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Header / Nav
   ============================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 53, 88, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links li a {
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  transition: all var(--transition);
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* ============================================
   Hero
   ============================================ */
#hero {
  margin-top: 62px;
  background: var(--primary-dark);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(41,128,185,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(41,128,185,0.1) 0%, transparent 50%);
  color: #fff;
  padding: 7rem 2rem 6rem;
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 540px;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-wrap { text-align: center; }

.photo-placeholder {
  width: 180px;
  height: 180px;
  background: var(--bg-subtle);
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1.5rem;
  margin: 0 auto 1rem;
}

.headshot {
  width: 210px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 1rem;
  display: block;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.about-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.about-link a { color: var(--accent); font-weight: 500; }
.about-link a:hover { color: var(--primary); }

.about-text p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.affiliations {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.affiliations h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.affiliations ul { list-style: none; }
.affiliations li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.affiliations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================
   Research
   ============================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.research-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.research-icon {
  width: 52px;
  height: 52px;
  background: rgba(41, 128, 185, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.research-icon i {
  font-size: 1.65rem;
  color: var(--accent);
  line-height: 1;
}

.research-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.research-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Consulting
   ============================================ */
.consulting-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.consulting-intro p { font-size: 1rem; line-height: 1.8; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.services-grid--consulting {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .services-grid--consulting {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.consulting-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.consulting-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 460px;
  line-height: 1.65;
}

/* ============================================
   Consulting page
   ============================================ */
.consulting-page-intro {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  align-items: start;
}

.consulting-page-intro p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-body);
}

.consulting-headshot {
  width: 180px !important;
  height: 220px !important;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .client-grid {
    grid-template-columns: 1fr;
  }
}

.client-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.client-icon {
  width: 48px;
  height: 48px;
  background: rgba(41,128,185,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.client-icon i { font-size: 1.5rem; color: var(--accent); }

.client-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.client-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.client-examples {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.client-examples li {
  font-size: 0.83rem;
  color: var(--text-body);
  padding: 0.22rem 0 0.22rem 1rem;
  position: relative;
  line-height: 1.5;
}

.client-examples li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58rem;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.example-list {
  columns: 2;
  column-gap: 3rem;
  list-style: none;
  padding: 0;
}

.example-list li {
  font-size: 0.93rem;
  color: var(--text-body);
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  break-inside: avoid;
  line-height: 1.55;
}

.example-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.9rem;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Client type badges — home page teaser */
.client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--primary);
}

.client-badge i { font-size: 0.95rem; color: var(--accent); }

@media (max-width: 720px) {
  .consulting-page-intro { grid-template-columns: 1fr; }
  .consulting-page-photo { display: none; }
  .example-list { columns: 1; }
}

/* ============================================
   Selected Publications (home page)
   ============================================ */
.pub-selected-list { margin-bottom: 2rem; }

.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-body);
}
.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-year-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(41,128,185,0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.pub-view-all {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Publications page
   ============================================ */
.pub-page-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 5rem 2rem 4rem;
  margin-top: 62px;
}

.pub-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pub-page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

.pub-page-links {
  padding: 2rem 0 0;
}

.pub-section { margin-bottom: 2.5rem; }

.pub-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--bg-subtle);
}

.pub-list { padding: 0; }

.pub-list li {
  padding: 0.6rem 0 0.6rem 1.2rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
  line-height: 1.65;
  color: var(--text-body);
}
.pub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.pub-list li:last-child { border-bottom: none; }

/* ============================================
   CV
   ============================================ */
.cv-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cv-block p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.75;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-list { padding: 0; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 90px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card {
  background: var(--primary-dark);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.contact-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.45);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer p { font-size: 0.82rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap { text-align: center; }

  .consulting-cta { flex-direction: column; text-align: center; }

  .cv-block { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.65rem 0.75rem; font-size: 0.9rem; }
  .nav-toggle { display: block; }

  #hero { padding: 5rem 1.5rem 4rem; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}
