/* ─── Variables ────────────────────────────────── */
:root {
  --ink:     #18171A;
  --body:    #2E2C30;
  --muted:   #48454C;   /* darkened for AAA on white & surf */
  --accent:  #2D5926;   /* dark green — text & icons, 7.2:1 on white */
  --accent2: #3D7034;   /* mid green — hover */
  --abg:     #97C78E;   /* brand green — button & decorative fills */
  --al:      #EBF4E9;   /* light green tint */
  --rule:    #D4CFC9;
  --ruled:   #EAE6E1;
  --bg:      #FAFAF8;
  --surf:    #F3F0EB;
  --white:   #FFFFFF;
  --ss:      'Inter', system-ui, sans-serif;
  --se:      'Playfair Display', Georgia, serif;
  --sb:      'Source Serif 4', Georgia, serif;
}

/* ─── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


body {
  font-family: var(--sb);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { color: var(--body); }
p + p { margin-top: 1.1em; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ─── Shared label style ───────────────────────── */
.section-eyebrow,
.hero-eyebrow,
.hero-title,
.stat-label,
.pub-metric-label,
.pub-citations-label,
.highlight-card h3,
.service-card h3,
.form-group label,
.footer span,
.footer-social a {
  font-family: var(--ss);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ─── Shared serif-number style ────────────────── */
.stat-number,
.pub-metric-num,
.pub-citations-num {
  font-family: var(--se);
  font-weight: 400;
  line-height: 1;
}

/* ─── Section headers ──────────────────────────── */
.section-eyebrow { font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

.section-title {
  font-family: var(--se);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 28px;
  background: linear-gradient(
    103deg,
    transparent 1%,
    rgba(151, 199, 142, 0.45) 3%,
    rgba(151, 199, 142, 0.38) 60%,
    rgba(151, 199, 142, 0.32) 97%,
    transparent 99%
  );
  padding: 2px 10px 4px 5px;
  margin-left: -5px;
  width: fit-content;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.contact .section-title {
  background: none;
  padding: 0;
  margin-left: 0;
}

/* ─── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ss);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm  { padding: 8px 18px; }
.btn-lg  { padding: 13px 32px; }
.btn     { padding: 11px 24px; }

.btn-primary { background: var(--abg); color: var(--ink); }
.btn-primary:hover { background: #82b579; }
.btn-ghost { background: transparent; color: var(--body); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-family: var(--se); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a:not(.btn) { font-family: var(--ss); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav-social { display: flex; align-items: center; gap: 14px; }
.nav-social a { color: var(--muted); display: flex; align-items: center; transition: color .15s; }
.nav-social a:hover { color: var(--accent); }

/* ─── Hero ─────────────────────────────────────── */
.hero { padding: 64px 0 56px; background: var(--white); border-bottom: 1px solid var(--rule); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.hero-text { max-width: 600px; }

.hero-eyebrow { font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

.hero-name {
  font-family: var(--se);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}


.hero-title { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; }

.hero-desc { font-size: 1rem; color: var(--muted); margin-bottom: 36px; max-width: 560px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; border-top: 1px solid var(--rule); padding-top: 28px; }

.stat { display: flex; flex-direction: column; gap: 3px; padding-right: 36px; }
.stat + .stat { padding-left: 36px; border-left: 1px solid var(--rule); }
.stat-number { font-size: 2.2rem; color: var(--ink); }
.stat-label { font-size: .68rem; font-weight: 500; color: var(--muted); }

.hero-photo { display: block; width: 200px; height: auto; }

/* ─── Research ─────────────────────────────────── */
.research { padding: 56px 0; background: var(--surf); border-bottom: 1px solid var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--ss);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--body);
  padding: 6px 14px;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: border-color .15s, color .15s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── About ────────────────────────────────────── */
.about { padding: 64px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 72px;
}
.about-eyebrow { grid-column: 1; grid-row: 1; }
.about-title    { grid-column: 1; grid-row: 2; }
.about-body     { grid-column: 1; grid-row: 3; }
.about-highlights { grid-column: 2; grid-row: 3; align-self: start; }
.about-body p { font-size: 1rem; }

.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.highlight-card { background: var(--white); padding: 24px; transition: background .15s; }
.highlight-card:hover { background: var(--surf); }
.highlight-icon { font-size: 1rem; margin-bottom: 12px; color: var(--accent); }
.highlight-card h3 { font-size: .72rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.highlight-card p { font-family: var(--ss); font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ─── Process ──────────────────────────────────── */
.process { padding: 56px 0; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.process-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.process-title-row .section-title { margin-bottom: 0; }
.btn-xs { padding: 5px 12px; font-size: .68rem; }
.process-list { border-top: 1px solid var(--rule); }

.process-item { border-bottom: 1px solid var(--ruled); transition: background .15s; }
.process-item:hover { background: var(--surf); }

.process-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.process-header:hover .process-name { color: var(--accent); }

.process-num {
  font-family: var(--se);
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.process-name {
  font-family: var(--sb);
  font-size: 1rem;
  color: var(--ink);
  transition: color .15s;
}

.process-subtitle {
  font-family: var(--ss);
  font-size: .78rem;
  color: var(--muted);
  padding-left: 12px;
}

.process-icon { margin-left: auto; }

.process-icon {
  color: var(--muted);
  font-size: .72rem;
  flex-shrink: 0;
  transition: transform .25s ease, color .15s;
}
.process-item.is-open .process-icon { transform: rotate(45deg); color: var(--accent); }

.process-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.process-item.is-open .process-body { grid-template-rows: 1fr; }

.process-body-inner { overflow: hidden; }

.process-body-inner p {
  font-family: var(--ss);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 20px 20px 72px;
}

.process-ai-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 16px;
  background: var(--al);
  border-left: 2px solid var(--accent);
  font-family: var(--ss);
  font-size: .78rem;
  color: var(--accent);
  line-height: 1.5;
}

/* ─── Publications ─────────────────────────────── */
.publications { padding: 56px 0; background: var(--surf); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.pub-metrics { display: flex; margin-bottom: 40px; }
.pub-metric { display: flex; flex-direction: column; gap: 3px; padding-right: 36px; }
.pub-metric + .pub-metric { padding-left: 36px; border-left: 1px solid var(--rule); }
.pub-metric-num { font-size: 2rem; color: var(--ink); }
.pub-metric-label { font-size: .68rem; font-weight: 500; color: var(--muted); }

.pub-list { display: flex; flex-direction: column; margin-bottom: 32px; border-top: 1px solid var(--rule); }

.pub-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ruled);
  text-decoration: none;
  color: inherit;
}
.pub-item:hover .pub-title { color: var(--accent); }
.pub-item:hover .pub-arrow { color: var(--accent); }

.pub-citations { display: flex; flex-direction: column; align-items: center; min-width: 44px; flex-shrink: 0; }
.pub-citations-num { font-size: 1.4rem; color: var(--accent); }
.pub-citations-label { font-size: .58rem; font-weight: 500; color: var(--muted); text-align: center; margin-top: 2px; }

.pub-divider { width: 1px; background: var(--rule); align-self: stretch; min-height: 36px; flex-shrink: 0; }

.pub-content { flex: 1; min-width: 0; }
.pub-title { font-family: var(--sb); font-size: 1rem; font-style: italic; color: var(--ink); margin-bottom: 3px; line-height: 1.4; }
.pub-meta { font-family: var(--ss); font-size: .72rem; color: var(--muted); }

.pub-arrow { font-family: var(--ss); font-size: .72rem; color: var(--muted); flex-shrink: 0; }

.pub-footer { margin-top: 8px; }
.scholar-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ss); font-size: .78rem; font-weight: 500; color: var(--accent); transition: opacity .15s; }
.scholar-link:hover { opacity: .7; }

/* ─── Services ─────────────────────────────────── */
.services { padding: 64px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service-card { background: var(--white); padding: 24px; transition: background .15s; }
.service-card:hover { background: var(--surf); }
.service-icon { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.service-card h3 { font-size: .72rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.service-card p { font-family: var(--ss); font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ─── Contact ──────────────────────────────────── */
.contact { padding: 64px 0; background: var(--accent); }
.contact .section-eyebrow { color: rgba(255,255,255,.92); }
.contact .section-title { color: var(--white); }
.contact-desc { font-family: var(--ss); font-size: .9rem; color: rgba(255,255,255,.92); margin-bottom: 40px; max-width: 480px; line-height: 1.65; }

.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.92); }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.3);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--ss);
  font-size: .9rem;
  outline: none;
  resize: none;
  border-radius: 0;
  transition: border-color .15s, background .15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--white); background: rgba(255,255,255,.97); }

.form-note { font-family: var(--ss); font-size: .72rem; color: rgba(255,255,255,.92); margin-top: 4px; }
.form-submit { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.contact .btn-primary { background: var(--abg); color: var(--ink); }
.contact .btn-primary:hover { background: #82b579; }
.form-status { font-family: var(--ss); font-size: .9rem; display: none; }
.form-status.success { color: #86efac; display: block; }
.form-status.error   { color: #fca5a5; display: block; }

/* ─── Footer ───────────────────────────────────── */
.footer { padding: 28px 0; background: var(--surf); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer span { font-size: .78rem; color: var(--muted); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; transition: color .15s; }
.footer-social a:hover { color: var(--accent); }

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-eyebrow, .about-title, .about-body, .about-highlights { grid-column: 1; }
  .about-highlights { grid-row: auto; }
}

@media (max-width: 768px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 52px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo-wrap { order: -1; text-align: center; }
  .hero-photo { width: 180px; margin: 0 auto; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .about-highlights,
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .pub-metrics { flex-wrap: wrap; gap: 16px; }
  .pub-metric + .pub-metric { border-left: none; padding-left: 0; }
}
