/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --ivory:        #FBFBFD;
  --deep-ink:     #1D1D1F;
  --paper:        #F5F5F7;
  --muted-slate:  #6E6E73;
  --hairline:     #D2D2D7;
  --oxblood:      #6B2D2D;
  --oxblood-dark: #5a2526;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;

  --max-width:    1440px;
  --gutter:       16px;
  --reading-col:  680px;
  --section-v:    80px;
}

@media (min-width: 768px) {
  :root { --gutter: 20px; }
}

@media (min-width: 1024px) {
  :root {
    --gutter:    32px;
    --section-v: 96px;
  }
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ivory);
  color: var(--deep-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

address { font-style: normal; }

em { font-style: italic; }

strong { font-weight: 500; }


/* =====================================================================
   SKIP LINK
   ===================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--oxblood);
  color: var(--ivory);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.1s;
}

.skip-link:focus { top: 16px; }


/* =====================================================================
   LAYOUT
   ===================================================================== */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-v) var(--gutter);
}

.reading-col {
  max-width: var(--reading-col);
}


/* =====================================================================
   TYPOGRAPHY GLOBALS
   ===================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  hyphens: none;
}

h2 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

p + p { margin-top: 24px; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin-bottom: 24px;
}

.section-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-slate);
  max-width: var(--reading-col);
  margin-top: -8px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  h2 { font-size: 40px; }
  h3 { font-size: 19px; }
}

@media (min-width: 1024px) {
  h2 { font-size: 52px; }
  h3 { font-size: 21px; }
}


/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--oxblood);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 18px 40px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--oxblood-dark);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--deep-ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 17px 40px;
  border-radius: 2px;
  border: 1px solid var(--deep-ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  line-height: 1;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--deep-ink);
  color: var(--ivory);
  outline: none;
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--deep-ink);
  outline-offset: 3px;
}

.text-link {
  color: var(--deep-ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s;
}

.text-link:hover {
  text-decoration-color: var(--oxblood);
}


/* =====================================================================
   NAVIGATION
   ===================================================================== */
.site-nav {
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--deep-ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  gap: 48px;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--deep-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--oxblood); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  margin-right: -10px;
}

@media (max-width: 767px) {
  .hamburger { display: flex; }
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--deep-ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-close {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--deep-ink);
  padding: 10px;
  line-height: 1;
}

.nav-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-overlay-link {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--deep-ink);
  transition: color 0.18s;
}

.nav-overlay-link:hover { color: var(--oxblood); }


/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  background: var(--ivory);
  padding: 56px var(--gutter);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  max-width: 75%;
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 48px;
  color: var(--deep-ink);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-strip {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted-slate);
  line-height: 1.6;
  max-width: 640px;
}

@media (min-width: 580px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (min-width: 768px) {
  .hero { padding: 72px var(--gutter); }
}

@media (min-width: 1024px) {
  .hero { padding: 88px var(--gutter); }
}


/* =====================================================================
   POSITIONING
   ===================================================================== */
.positioning {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
}

.positioning .reading-col p {
  font-size: 17px;
  line-height: 1.75;
}

.pull-quote {
  position: relative;
  margin-top: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pull-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.8;
  color: var(--oxblood);
  opacity: 0.25;
  display: block;
  margin-bottom: 12px;
}

.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--deep-ink);
  margin-top: 0;
}

@media (min-width: 768px) {
  .pull-quote p { font-size: 26px; }
}


/* =====================================================================
   CREDENTIALS
   ===================================================================== */
.credentials {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.credential-item {
  padding: 32px 24px 32px 0;
  border-top: 1px solid var(--hairline);
}

.credential-item:nth-child(odd) {
  /* left column on mobile — no extra border */
}

.credential-item:nth-child(even) {
  padding-left: 24px;
  padding-right: 0;
  border-left: 1px solid var(--hairline);
}

.credential-stat {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.credential-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-slate);
  margin-top: 0;
}

@media (min-width: 768px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .credential-item {
    padding: 40px 32px;
    border-left: 1px solid var(--hairline);
  }

  /* reset even-child overrides at desktop */
  .credential-item:nth-child(even) {
    padding-left: 32px;
    padding-right: 32px;
  }

  .credential-item:first-child {
    border-left: none;
    padding-left: 0;
  }

  .credential-stat { font-size: 40px; }
}


/* =====================================================================
   RESEARCH FOCUS
   ===================================================================== */
.research-focus {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.card {
  padding: 32px;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.card:last-child { border-bottom: 1px solid var(--hairline); }

.card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-slate);
  margin-top: 0;
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .card {
    border: 1px solid var(--hairline);
    border-right: none;
    padding: 40px;
  }

  .card:last-child {
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
}


/* =====================================================================
   RECOGNITION
   ===================================================================== */
.recognition {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.timeline {
  max-width: 760px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.timeline-year {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  padding-top: 2px;
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 0;
  color: var(--muted-slate);
}

.timeline-award .timeline-content p {
  color: var(--deep-ink);
}

.award-marker {
  color: var(--oxblood);
  font-size: 9px;
  margin-right: 4px;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .timeline-item {
    grid-template-columns: 64px 1fr;
    gap: 32px;
    padding: 22px 0;
  }
  .timeline-content p { font-size: 17px; }
}


/* =====================================================================
   PUBLICATIONS & SPEAKING
   ===================================================================== */
.publications-speaking {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
}

.publications-block {
  margin-bottom: var(--section-v);
}

.citations {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 760px;
}

.citation h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}

.citation-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin-top: 0;
  margin-bottom: 8px;
}

.citation-authors {
  font-size: 15px;
  color: var(--muted-slate);
  margin-top: 0;
  margin-bottom: 12px;
}

.doi-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--deep-ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s;
}

.doi-link:hover { text-decoration-color: var(--oxblood); }

.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin-bottom: var(--section-v);
}

.speaking-block p {
  max-width: var(--reading-col);
  font-size: 17px;
  line-height: 1.7;
}

.speaking-list {
  max-width: var(--reading-col);
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.speaking-list li {
  font-size: 16px;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
  color: var(--deep-ink);
}

.speaking-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted-slate);
}

.speaking-cta {
  font-size: 16px;
  color: var(--muted-slate);
  max-width: var(--reading-col);
}

@media (min-width: 768px) {
  .citation h3 { font-size: 19px; }
}


/* =====================================================================
   COLLABORATION
   ===================================================================== */
.collaboration {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.collaboration .reading-col p {
  font-size: 17px;
  line-height: 1.75;
}

.collab-subheading {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin-top: 48px;
  margin-bottom: 24px;
}


/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
}

.contact-form {
  max-width: 720px;
  margin-top: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 620px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  margin-bottom: 24px;
}

label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--deep-ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 12px 16px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A52' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--deep-ink);
}

textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.6;
}

.form-submit { margin-top: 8px; }

.form-status {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  min-height: 20px;
}

.form-status.success { color: #2a6637; }
.form-status.error   { color: var(--oxblood); }

.noscript-note {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted-slate);
  margin-top: 24px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--muted-slate);
}

.contact-strip a {
  color: var(--muted-slate);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.contact-strip a:hover {
  color: var(--deep-ink);
  text-decoration-color: var(--deep-ink);
}

.contact-sep { color: var(--hairline); }


/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--deep-ink);
  color: var(--ivory);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ivory);
}

.footer-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(250, 248, 243, 0.5);
  line-height: 1.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 248, 243, 0.65);
  transition: color 0.18s;
}

.footer-nav a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.1);
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--gutter);
}

.footer-bottom-inner p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(250, 248, 243, 0.35);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
  }
}


/* =====================================================================
   ANIMATIONS
   ===================================================================== */

/* Hero load-in */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-headline {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-subhead {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-ctas {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.trust-strip {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline,
  .hero-subhead,
  .hero-ctas,
  .trust-strip {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
