:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --mist: #edf5f2;
  --sage: #dcece4;
  --ink: #24302f;
  --muted: #60706d;
  --teal: #0b7c72;
  --teal-deep: #075d57;
  --coral: #d85f43;
  --gold: #bf8b2f;
  --line: #d9e1dd;
  --shadow: 0 20px 60px rgba(33, 48, 45, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 246, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.94);
  border-bottom-color: rgba(36, 48, 47, 0.08);
  box-shadow: 0 10px 24px rgba(36, 48, 47, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.96rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(11, 124, 114, 0.26);
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal-deep);
  font-size: 0.78rem;
  box-shadow: 0 10px 28px rgba(11, 124, 114, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 640;
}

.site-nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.08rem;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem clamp(1.1rem, 5vw, 4rem) 5rem;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.9) 42%, rgba(251, 250, 246, 0.22) 76%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.1) 0%, rgba(251, 250, 246, 0.68) 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding-top: 2rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.75rem, 7vw, 7.4rem);
  line-height: 0.94;
  font-weight: 560;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.05;
  font-weight: 540;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.06rem;
  line-height: 1.28;
  letter-spacing: 0;
}

h4 {
  margin-bottom: 0.58rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.34;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: #3e504d;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.5;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.14rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--teal-deep);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 93, 87, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(36, 48, 47, 0.16);
  color: var(--ink);
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.1rem, 5vw, 4rem);
}

.intro-section,
.credentials-section,
.contact-section {
  background: var(--paper);
}

.themes-section,
.areas-section,
.biophysics-section,
.teaching-section {
  background: #ffffff;
}

.trajectory-section {
  background: var(--mist);
}

.intro-layout,
.teaching-layout,
.contact-panel,
.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-layout,
.teaching-layout,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.text-link {
  flex: 0 0 auto;
  color: var(--teal-deep);
  font-weight: 780;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.theme-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.area-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card,
.area-card,
.work-card,
.consciousness-panel,
.credential-panel,
.activity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.area-card {
  min-height: 25rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.45rem;
}

.area-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.area-tag {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 840;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.theme-card {
  min-height: 18rem;
  display: grid;
  align-content: start;
  padding: 1.4rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 124, 114, 0.34);
  box-shadow: var(--shadow);
}

.theme-number {
  margin-bottom: 3.2rem;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.theme-card p,
.area-card p,
.work-card p,
.consciousness-panel p,
.credential-item p,
.activity-block p,
.activity-list li,
.timeline-item p {
  color: var(--muted);
}

.theme-card p {
  margin-bottom: 0;
}

.timeline {
  width: min(900px, 100%);
  margin: 2rem auto 0;
  border-top: 1px solid rgba(36, 48, 47, 0.14);
}

.timeline-item {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(36, 48, 47, 0.14);
}

.timeline-date {
  color: var(--gold);
  font-weight: 820;
  font-size: 0.92rem;
}

.timeline-item p {
  margin-bottom: 0;
}

.trajectory-narrative {
  width: min(900px, 100%);
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.trajectory-narrative p {
  margin-bottom: 1.1rem;
}

.trajectory-narrative p:last-child {
  margin-bottom: 0;
}

.work-section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(36, 48, 47, 0.14);
}

.work-section + .work-section {
  margin-top: 3rem;
}

.work-heading {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.3rem;
}

.work-heading span {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.work-heading h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  font-weight: 540;
  line-height: 1.12;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  padding: 1.25rem;
}

.work-card.featured-work {
  border-color: rgba(11, 124, 114, 0.3);
  background: linear-gradient(135deg, #ffffff, rgba(237, 245, 242, 0.8));
}

.work-card h4 a {
  color: inherit;
  text-decoration-color: rgba(11, 124, 114, 0.34);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.work-card h4 a:hover,
.work-card h4 a:focus-visible {
  color: var(--teal-deep);
}

.work-card p:last-child {
  margin-bottom: 0;
}

.citation {
  margin-top: 1rem;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(36, 48, 47, 0.1);
  color: #7a6d66;
  font-size: 0.76rem;
  line-height: 1.45;
}

.consciousness-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.consciousness-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.consciousness-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 540;
}

.consciousness-panel p:last-child {
  margin-bottom: 0;
}

.accent-panel {
  border-color: rgba(216, 95, 67, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 238, 228, 0.58));
}

.publication-meta {
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.teaching-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.teaching-list span {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(11, 124, 114, 0.22);
  border-radius: 999px;
  background: var(--mist);
  color: #304440;
  font-weight: 690;
}

.credentials-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.credential-panel {
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
}

.credential-panel h3 {
  margin-bottom: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 540;
}

.credential-list {
  display: grid;
  gap: 1rem;
}

.credential-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(36, 48, 47, 0.1);
}

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

.credential-item span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.credential-item h4 {
  margin-bottom: 0.18rem;
  font-size: 1rem;
  line-height: 1.28;
}

.credential-item p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.award-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.48;
}

.award-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.activity-panel {
  width: min(var(--max), 100%);
  margin: 1rem auto 0;
  padding: clamp(1.35rem, 2.6vw, 1.8rem);
}

.activity-panel h3 {
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 540;
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem 1.35rem;
}

.activity-block {
  padding-top: 1rem;
  border-top: 1px solid rgba(36, 48, 47, 0.1);
}

.activity-book {
  grid-column: 1 / -1;
  padding-top: 0;
  border-top: 0;
}

.activity-block h4 {
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.activity-block p {
  max-width: 980px;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.activity-block a {
  color: var(--teal-deep);
  font-weight: 720;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.activity-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding-left: 1.05rem;
}

.activity-list li {
  padding-left: 0.15rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.grant-list {
  padding-left: 0;
  list-style: none;
}

.grant-list li {
  display: grid;
  gap: 0.15rem;
  padding-left: 0;
}

.grant-list strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.grant-list span {
  display: block;
}

.contact-panel {
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid rgba(11, 124, 114, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(220, 236, 228, 0.9), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.contact-panel h2 {
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1.1rem, 5vw, 4rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-deep);
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 960px) {
  .area-grid,
  .theme-grid,
  .work-list,
  .consciousness-layout,
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awards-panel {
    grid-column: 1 / -1;
  }

  .intro-layout,
  .teaching-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 4.4rem 1rem auto;
    display: grid;
    gap: 0;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-0.7rem);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0.75rem;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: var(--mist);
  }

  .hero {
    min-height: 88svh;
    padding: 6rem 1.1rem 4rem;
  }

  .hero-art {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.9) 68%, rgba(251, 250, 246, 0.36) 100%),
      linear-gradient(180deg, rgba(251, 250, 246, 0.08) 0%, rgba(251, 250, 246, 0.76) 100%);
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 4.25rem);
  }

  .area-grid,
  .theme-grid,
  .work-list,
  .consciousness-layout,
  .credentials-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .awards-panel {
    grid-column: auto;
  }

  .area-card {
    min-height: auto;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 10rem;
    line-height: 1.12;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .theme-card {
    min-height: auto;
  }

  .theme-number {
    margin-bottom: 1.8rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
