@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&family=Playfair+Display:ital@1&display=swap');

:root {
  --sand: #f5f0e8;
  --sand-dark: #ede6d6;
  --stone: #c8bfad;
  --clay: #8b7355;
  --deep-clay: #5c4a32;
  --tide: #4a7c8e;
  --deep-tide: #2d5a6b;
  --seafoam: #7fb5a0;
  --kelp: #3d6b5a;
  --ink: #1e2824;
  --mist: #e8eff0;
  --white: #fdfcfa;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  --nav-height: 72px;
  --max-width: 1100px;
  --content-width: 720px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--deep-clay);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tide);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--deep-tide); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--deep-tide); }
.nav-links a.active::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clay);
  transition: all 0.3s;
}

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mist) 0%, var(--sand) 40%, var(--sand-dark) 100%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(74, 124, 142, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(127, 181, 160, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(139, 115, 85, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero-name em {
  font-style: italic;
  color: var(--deep-tide);
}

.hero-credentials {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 48px;
}

.hero-tagline span {
  margin: 0 10px;
  opacity: 0.4;
}

.hero-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.hero-link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-clay);
  text-decoration: none;
  border: 1px solid var(--stone);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.4);
}

.hero-link:hover {
  background: var(--tide);
  border-color: var(--tide);
  color: var(--white);
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 80px 48px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--stone);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.page-header h1 em {
  font-style: italic;
  color: var(--deep-tide);
}

.page-header .subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tide);
  margin-top: 12px;
}

/* ─── CONTENT SECTIONS ─── */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 48px;
}

.content-section + .content-section {
  border-top: 1px solid var(--sand-dark);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 40px;
}

/* ─── ABOUT PAGE ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p:first-child {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--deep-tide);
}

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-block h3 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 16px;
}

.sidebar-block ul {
  list-style: none;
}

.sidebar-block ul li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--deep-clay);
  padding: 4px 0;
  border-bottom: 1px solid var(--sand-dark);
}

.sidebar-block ul li:last-child { border-bottom: none; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--kelp);
  background: rgba(127, 181, 160, 0.15);
  border: 1px solid rgba(127, 181, 160, 0.3);
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ─── RESEARCH PAGE ─── */
.project-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--sand-dark);
}

.project-block:last-child {
  border-bottom: none;
}

.project-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.status-current {
  background: rgba(74, 124, 142, 0.12);
  color: var(--deep-tide);
  border: 1px solid rgba(74, 124, 142, 0.25);
}

.status-past {
  background: rgba(139, 115, 85, 0.12);
  color: var(--clay);
  border: 1px solid rgba(139, 115, 85, 0.25);
}

.project-block h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

.project-block .project-meta {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--clay);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.project-block p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: var(--content-width);
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tide);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 124, 142, 0.3);
  padding-bottom: 2px;
  transition: all 0.2s;
}
.pub-link:hover { color: var(--deep-tide); border-bottom-color: var(--deep-tide); }

/* ─── PUBLICATIONS PAGE ─── */
.pub-year-group {
  margin-bottom: 56px;
}

.pub-year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--stone);
  margin-bottom: 24px;
  font-style: italic;
}

.pub-entry {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 24px;
  margin-bottom: 28px;
  align-items: start;
}

.pub-entry::before {
  content: '';
  display: block;
  width: 4px;
  height: 100%;
  background: var(--seafoam);
  border-radius: 2px;
  margin-top: 4px;
}

.pub-entry.in-prep::before { background: var(--stone); }

.pub-entry-content p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
}

.pub-entry-content a {
  color: var(--tide);
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.pub-entry-content a:hover { border-bottom-color: var(--tide); }

.pub-entry-content .journal {
  font-style: italic;
  color: var(--clay);
}

/* ─── PROJECT EXPERIENCE ─── */
.consulting-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.consulting-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tide);
}

.consulting-card:hover {
  border-color: var(--tide);
  box-shadow: 0 4px 24px rgba(74, 124, 142, 0.08);
}

.consulting-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.consulting-card .card-location {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 14px;
}

.consulting-card p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--deep-clay);
}

/* ─── PHOTOGRAPHY ─── */
.photo-intro {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--mist), var(--sand-dark));
  border: 1px solid var(--stone);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--clay);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.photo-placeholder:hover {
  border-color: var(--tide);
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.photo-upload-hint {
  background: rgba(245, 240, 232, 0.85);
  border: 1px dashed var(--stone);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  margin-top: 32px;
  color: var(--clay);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.3;
}

.contact-text p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--clay);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s;
}

.contact-link-item:hover {
  border-color: var(--tide);
  background: var(--mist);
}

.contact-link-item .link-icon {
  width: 36px;
  height: 36px;
  background: rgba(74, 124, 142, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-item .link-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tide);
  font-weight: 500;
}

.contact-link-item .link-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--stone);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer p {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--stone);
  letter-spacing: 0.08em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .page-header { padding: 48px 24px 32px; }
  .content-section { padding: 48px 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }

  .hero-name { font-size: clamp(2.8rem, 10vw, 5rem); }
}
