/* ============================================================
   DR. SINCHAN GHOSH — Portfolio Site
   Design: Authoritative Academic · Organic Forest Palette
   Fonts: Instrument Serif (display) + Satoshi (body)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  /* Forest-academic palette — muted greens + slate + warm ivory */
  --color-bg:             #f7f6f1;
  --color-surface:        #f2f0ea;
  --color-surface-2:      #eceae2;
  --color-surface-offset: #e4e1d8;
  --color-border:         #d0cdc4;
  --color-divider:        #dbd8d0;
  --color-text:           #1c1e18;
  --color-text-muted:     #515748;
  --color-text-faint:     #8e9184;
  --color-primary:        #2e5e3a;   /* deep forest green */
  --color-primary-hover:  #234a2d;
  --color-primary-active: #1a3922;
  --color-primary-light:  #c8dbc9;
  --color-primary-pale:   #eaf2ea;
  --color-accent:         #4a7c59;   /* mid green */
  --color-gold:           #8a6c1a;   /* amber-gold for awards/highlights */
  --color-gold-light:     #f5edd5;
  --color-slate:          #3b4d5c;   /* slate blue for links/secondary */
  --color-slate-light:    #dce5ec;
  --shadow-sm:  0 1px 3px rgba(28,30,24,0.07);
  --shadow-md:  0 4px 16px rgba(28,30,24,0.09);
  --shadow-lg:  0 16px 48px rgba(28,30,24,0.12);
  --shadow-xl:  0 32px 80px rgba(28,30,24,0.14);

  /* Dark mode */
  --color-bg-dark:             #111410;
  --color-surface-dark:        #171a14;
  --color-surface-2-dark:      #1d211a;
  --color-surface-offset-dark: #222720;
  --color-border-dark:         #2e342a;
  --color-divider-dark:        #252922;
  --color-text-dark:           #d8dcd0;
  --color-text-muted-dark:     #828c78;
  --color-text-faint-dark:     #4e5649;
  --color-primary-dark:        #6aac7a;
  --color-primary-hover-dark:  #4d9060;
  --color-primary-light-dark:  #2a3d2e;
  --color-primary-pale-dark:   #1c2a1e;
  --color-accent-dark:         #8fbd9f;
  --color-gold-dark:           #c9a84c;
  --color-gold-light-dark:     #2a2416;
  --color-slate-dark:          #7ba3c0;
  --color-slate-light-dark:    #1e2d38;
  --shadow-sm-dark:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md-dark:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg-dark:  0 16px 48px rgba(0,0,0,0.5);
  --shadow-xl-dark:  0 32px 80px rgba(0,0,0,0.6);

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem,     0.96rem + 0.2vw,  1.0625rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.6vw,  1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem  + 1.1vw,  2rem);
  --text-2xl:  clamp(1.875rem, 1.2rem  + 2.4vw,  3.25rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 3.8vw,  4.5rem);

  /* Spacing */
  --space-1:  0.25rem; --space-2:  0.5rem;  --space-3:  0.75rem;
  --space-4:  1rem;    --space-5:  1.25rem; --space-6:  1.5rem;
  --space-8:  2rem;    --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --r-sm: 0.375rem; --r-md: 0.625rem; --r-lg: 1rem; --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Transitions */
  --t: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --color-bg:             var(--color-bg-dark);
  --color-surface:        var(--color-surface-dark);
  --color-surface-2:      var(--color-surface-2-dark);
  --color-surface-offset: var(--color-surface-offset-dark);
  --color-border:         var(--color-border-dark);
  --color-divider:        var(--color-divider-dark);
  --color-text:           var(--color-text-dark);
  --color-text-muted:     var(--color-text-muted-dark);
  --color-text-faint:     var(--color-text-faint-dark);
  --color-primary:        var(--color-primary-dark);
  --color-primary-hover:  var(--color-primary-hover-dark);
  --color-primary-light:  var(--color-primary-light-dark);
  --color-primary-pale:   var(--color-primary-pale-dark);
  --color-accent:         var(--color-accent-dark);
  --color-gold:           var(--color-gold-dark);
  --color-gold-light:     var(--color-gold-light-dark);
  --color-slate:          var(--color-slate-dark);
  --color-slate-light:    var(--color-slate-light-dark);
  --shadow-sm: var(--shadow-sm-dark); --shadow-md: var(--shadow-md-dark);
  --shadow-lg: var(--shadow-lg-dark); --shadow-xl: var(--shadow-xl-dark);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:var(--color-bg-dark);--color-surface:var(--color-surface-dark);
    --color-surface-2:var(--color-surface-2-dark);--color-surface-offset:var(--color-surface-offset-dark);
    --color-border:var(--color-border-dark);--color-divider:var(--color-divider-dark);
    --color-text:var(--color-text-dark);--color-text-muted:var(--color-text-muted-dark);
    --color-text-faint:var(--color-text-faint-dark);--color-primary:var(--color-primary-dark);
    --color-primary-hover:var(--color-primary-hover-dark);--color-primary-light:var(--color-primary-light-dark);
    --color-primary-pale:var(--color-primary-pale-dark);--color-accent:var(--color-accent-dark);
    --color-gold:var(--color-gold-dark);--color-gold-light:var(--color-gold-light-dark);
    --color-slate:var(--color-slate-dark);--color-slate-light:var(--color-slate-light-dark);
    --shadow-sm:var(--shadow-sm-dark);--shadow-md:var(--shadow-md-dark);
    --shadow-lg:var(--shadow-lg-dark);--shadow-xl:var(--shadow-xl-dark);
  }
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  line-height: 1.68; min-height: 100dvh;
  transition: background var(--t), color var(--t);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; }
p, li { text-wrap: pretty; }
a { color: var(--color-slate); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--color-primary); }
button { cursor: pointer; font: inherit; color: inherit; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: color-mix(in oklab, var(--color-primary) 22%, transparent); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--r-sm); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 68px;
  background: color-mix(in oklab, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--t), background var(--t);
}
.nav--scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--color-text); }
.nav__logo {
  width: 36px; height: 36px; flex-shrink: 0;
}
.nav__name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 400; letter-spacing: -0.01em; }
.nav__title { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.3; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  font-size: var(--text-sm); color: var(--color-text-muted); padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm); transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface); }
.nav__link--active { color: var(--color-primary); font-weight: 600; background: var(--color-primary-pale); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__toggle {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-muted);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.nav__toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav__hamburger { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  box-shadow: var(--shadow-md); z-index: 199;
  transition: background var(--t);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: var(--text-base); color: var(--color-text-muted);
  padding: 0.6rem 0.75rem; border-radius: var(--r-md);
  transition: color var(--t), background var(--t);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--color-primary); background: var(--color-primary-pale); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: #fff; }
.divider { border: none; border-top: 1px solid var(--color-divider); margin: 0; }

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────── */
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--color-primary);
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--color-primary); border-radius: 1px; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display); font-size: var(--text-2xl);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section-lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; line-height: 1.6; }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.75rem;
  border-radius: var(--r-full); border: 1px solid;
}
.badge--primary { color: var(--color-primary); border-color: var(--color-primary-light); background: var(--color-primary-pale); }
.badge--gold { color: var(--color-gold); border-color: color-mix(in oklab, var(--color-gold) 30%, transparent); background: var(--color-gold-light); }
.badge--slate { color: var(--color-slate); border-color: var(--color-slate-light); background: var(--color-slate-light); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-sm); font-weight: 600;
  padding: 0.7rem 1.5rem; border-radius: var(--r-md);
  transition: background var(--t), transform var(--t), box-shadow var(--t), color var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { border: 1.5px solid var(--color-border); color: var(--color-text-muted); background: transparent; }
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-pale); }
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: var(--space-6);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); }
.card--lift:hover { transform: translateY(-3px); }
.card--accent-top { border-top: 3px solid var(--color-primary); }
.card--accent-gold { border-top: 3px solid var(--color-gold); }
.card--accent-slate { border-top: 3px solid var(--color-slate); }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0 var(--space-8); position: relative;
}
.timeline__item::before {
  content: ''; position: absolute;
  left: 172px; top: 0; bottom: 0; width: 1px;
  background: var(--color-divider);
}
.timeline__item:first-child::before { top: 1.2rem; }
.timeline__item:last-child::before { bottom: calc(100% - 1.2rem); top: 0; }
.timeline__date {
  font-size: var(--text-xs); color: var(--color-text-muted);
  padding: 1.2rem var(--space-4) 1.5rem 0; text-align: right;
  font-variant-numeric: tabular-nums; line-height: 1.4;
}
.timeline__body {
  padding: 1rem 0 1.5rem var(--space-8); position: relative;
}
.timeline__body::before {
  content: ''; position: absolute;
  left: calc(var(--space-8) - 5px); top: 1.35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
}
.timeline__role { font-weight: 700; font-size: var(--text-base); }
.timeline__org { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 0.15rem; }
.timeline__detail { color: var(--color-text-faint); font-size: var(--text-xs); margin-top: 0.35rem; }
@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; }
  .timeline__item::before { display: none; }
  .timeline__date { padding: 0.5rem 0 0; text-align: left; }
  .timeline__body { padding-left: 0; }
  .timeline__body::before { display: none; }
}

/* ── PUBLICATION LIST ─────────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: var(--space-4); }
.pub-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: var(--space-5) var(--space-6);
  position: relative; transition: border-color var(--t), box-shadow var(--t);
}
.pub-item:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.pub-item--first { border-left: 3px solid var(--color-primary); }
.pub-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.pub-num { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-faint); min-width: 1.5rem; }
.pub-journal { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); }
.pub-year { font-size: var(--text-xs); color: var(--color-text-faint); }
.pub-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.45; margin-bottom: 0.3rem; }
.pub-authors { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.pub-authors strong { color: var(--color-text); }
.pub-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--color-slate);
  margin-top: 0.5rem; transition: color var(--t);
}
.pub-link:hover { color: var(--color-primary); }
.pub-doi {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--color-slate);
  margin-top: 0.5rem; margin-left: 1rem; transition: color var(--t);
  font-family: var(--font-body); letter-spacing: 0.01em;
}
.pub-doi:hover { color: var(--color-primary); }
.pub-citation {
  font-size: 11px; color: var(--color-text-faint); line-height: 1.6;
  margin-top: 0.5rem; padding-left: 1.5rem; text-indent: -1.5rem;
  font-family: var(--font-body);
}

/* ── PROJECT TABLE LAYOUT ──────────────────────────────── */
.project-row {
  display: grid; grid-template-columns: 340px 1fr; gap: var(--space-6);
  margin-bottom: var(--space-10); padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}
@media (max-width: 860px) { .project-row { grid-template-columns: 1fr; } }
.project-info { position: sticky; top: 80px; align-self: start; }
.project-info h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: 0.3rem; }
.project-meta { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-4); }
.project-meta strong { color: var(--color-text); font-weight: 600; }
.project-detail { font-size: var(--text-xs); color: var(--color-text-faint); line-height: 1.5; margin-bottom: var(--space-3); }
.project-detail-label { font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; margin-bottom: 0.2rem; }

/* ── PUB VISUAL PANEL (maps + species tabs) ────────────── */
.pub-visual { margin-top: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--r-lg); overflow: hidden; }
.pub-tabs { display: flex; border-bottom: 1px solid var(--color-border); background: var(--color-surface-2); }
.pub-tab {
  padding: 0.45rem 1rem; font-size: var(--text-xs); font-weight: 600; cursor: pointer;
  color: var(--color-text-muted); border: none; background: none; border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.pub-tab:hover { color: var(--color-text); }
.pub-tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: var(--color-surface); }
.pub-panel { display: none; }
.pub-panel--active { display: block; }
.pub-map { height: 180px; }
.pub-map-static { width: 100%; border-radius: var(--r-md); border: 3px solid var(--color-border); }
.pub-map-static img { width: 100%; display: block; border-radius: calc(var(--r-md) - 3px); }
.pub-species {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3); padding: var(--space-4);
}
.pub-species figure { margin: 0; text-align: center; }
.pub-species img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--r-md); background: var(--color-surface-2); }
.pub-species figcaption { font-size: 10px; color: var(--color-text-faint); margin-top: 0.3rem; line-height: 1.3; }
.pub-species .species-name { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); font-style: italic; }

/* ── SKILL TAGS ──────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: var(--text-xs); font-weight: 500;
  padding: 0.25rem 0.65rem; border-radius: var(--r-full);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  color: var(--color-text-muted); white-space: nowrap;
}
.tag--primary { background: var(--color-primary-pale); border-color: var(--color-primary-light); color: var(--color-primary); }

/* ── COMPETENCY GRID ─────────────────────────────────────── */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.comp-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: var(--space-5) var(--space-6);
  transition: border-color var(--t), transform var(--t);
}
.comp-card:hover { border-color: var(--color-primary-light); transform: translateY(-2px); }
.comp-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--color-primary-pale); border: 1px solid var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); margin-bottom: var(--space-3);
}
.comp-title { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-2); }
.comp-items { display: flex; flex-direction: column; gap: 0.25rem; }
.comp-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.comp-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0; opacity: 0.6;
}

/* ── CASE STUDIES ────────────────────────────────────────── */
.case-studies { display: flex; flex-direction: column; gap: var(--space-6); }
.case-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.case-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-primary-light); }
.case-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-divider);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.case-num {
  font-family: var(--font-display); font-size: var(--text-3xl);
  color: var(--color-primary-light); line-height: 1; flex-shrink: 0;
  font-style: italic;
}
.case-title-group { flex: 1; }
.case-tag { margin-bottom: 0.5rem; }
.case-title { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.01em; }
.case-subtitle { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 0.25rem; }
.case-body { padding: var(--space-6) var(--space-8); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } }
.case-col-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 0.5rem;
}
.case-col-text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }
.case-col-text strong { color: var(--color-text); }
@media (max-width: 640px) { .case-header { flex-direction: column; } .case-num { font-size: var(--text-2xl); } }
@media (max-width: 480px) { .case-body, .case-header { padding: var(--space-4) var(--space-5); } }

/* ── APP CARDS ───────────────────────────────────────────── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-5); }
.app-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.app-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-primary-light); transform: translateY(-4px); }
.app-card__visual {
  height: 160px; position: relative; overflow: hidden;
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.app-card__body { padding: var(--space-5) var(--space-6); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.app-card__name { font-family: var(--font-display); font-size: var(--text-lg); letter-spacing: -0.01em; }
.app-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; flex: 1; }
.app-card__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-divider); display: flex; align-items: center; justify-content: space-between; }
.app-card__cta { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 0.35rem; transition: gap var(--t); }
.app-card:hover .app-card__cta { gap: 0.6rem; }

/* ── STAT STRIP ──────────────────────────────────────────── */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat-item {
  flex: 1; min-width: 140px; padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--color-border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text); line-height: 1; }
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.3rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--color-surface); border-top: 1px solid var(--color-divider);
  padding: clamp(2.5rem, 5vw, 4rem) 0 var(--space-8);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand-name { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: 0.25rem; }
.footer__brand-role { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.footer__contact a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 0.35rem; transition: color var(--t); }
.footer__contact a:hover { color: var(--color-primary); }
.footer__col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-3); }
.footer__links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__links a { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--t); }
.footer__links a:hover { color: var(--color-primary); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--color-divider); padding-top: var(--space-5); }
.footer__copy { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__orcid { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__orcid a { color: var(--color-text-muted); }

/* ── HERO (Home) ─────────────────────────────────────────── */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(160deg, var(--color-bg) 60%, var(--color-primary-pale));
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--color-divider);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 720px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__kicker { margin-bottom: var(--space-4); }
.hero__name {
  font-family: var(--font-display); font-size: var(--text-3xl);
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: var(--space-2);
}
.hero__role {
  font-size: var(--text-xl); color: var(--color-primary);
  font-family: var(--font-display); font-style: italic;
  margin-bottom: var(--space-5);
}
.hero__bio {
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: 62ch; line-height: 1.7; margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero__links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__link-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem; border-radius: var(--r-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
  background: var(--color-surface); transition: all var(--t);
}
.hero__link-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-pale); }
.hero__photo-wrap {
  width: clamp(160px, 22vw, 240px); aspect-ratio: 1;
  border-radius: var(--r-xl); overflow: hidden;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}
.hero__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-primary-pale), var(--color-surface-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--color-primary-light);
}

/* ── AWARD ITEMS ─────────────────────────────────────────── */
.award-list { display: flex; flex-direction: column; gap: var(--space-3); }
.award-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: var(--space-4) var(--space-5);
}
.award-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-md);
  background: var(--color-gold-light); display: flex; align-items: center; justify-content: center;
  color: var(--color-gold);
}
.award-text { font-size: var(--text-sm); line-height: 1.5; }
.award-text strong { display: block; font-weight: 700; margin-bottom: 0.1rem; }
.award-text span { color: var(--color-text-muted); }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(160deg, var(--color-bg) 55%, var(--color-primary-pale));
  border-bottom: 1px solid var(--color-divider);
}
.page-hero__eyebrow { margin-bottom: var(--space-3); }
.page-hero__title { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.page-hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 58ch; line-height: 1.6; }

/* ── MISC ────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 860px) { .three-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .three-col { grid-template-columns: 1fr; } }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }

/* Highlighted quote block */
.quote-block {
  border-left: 3px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary-pale);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--text-base); color: var(--color-text-muted);
  font-style: italic; line-height: 1.7;
  margin: var(--space-6) 0;
}

/* ── EMBED MODE (Google Sites iframe) ───────────────────── */
body.embed-mode .nav,
body.embed-mode .mobile-menu,
body.embed-mode .footer {
  display: none !important;
}
body.embed-mode .hero { padding-top: var(--space-6); }
body.embed-mode { overflow-x: hidden; }
