
:root {
  --ink: #322b27;
  --muted: #706259;
  --accent: #a1674d;
  --accent-hover: #7e4b35;
  --bg: #fbf5ec;
  --surface: #f4e8d9;
  --soft: #efe1ce;
  --line: #dfcbbb;
  --dark: #42352f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 54px)); margin: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fbf5ec; }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 22px; font-weight: 750; text-decoration: none; letter-spacing: -.8px; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 29px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 650; }
.hero { padding: 70px 0 85px; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 345px); gap: clamp(35px, 6vw, 85px); align-items: center; }
.hero-text { min-width: 0; }
.eyebrow, .section-label { color: var(--accent); font-size: 12px; letter-spacing: 1.8px; font-weight: 800; text-transform: uppercase; }
.hero h1 { font-size: clamp(54px, 6.3vw, 83px); line-height: 1.03; letter-spacing: -2.7px; margin: 22px 0 25px; }
.lead { max-width: 620px; font-size: 21px; line-height: 1.65; color: var(--muted); }
.profile-photo { width: 100%; height: auto; display: block; aspect-ratio: 1533 / 2048; object-fit: contain; border-radius: 9px; box-shadow: 0 16px 36px rgba(63, 46, 34, .13); }
.button { display: inline-block; background: var(--dark); color: #fff; padding: 13px 23px; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: 15px; margin-top: 16px; }
.button:hover { background: var(--accent-hover); color: white; }
.section { padding: 80px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.55fr; gap: 70px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.16; letter-spacing: -1.5px; margin: 16px 0 26px; }
.body-copy { max-width: 690px; }
.body-copy p:first-child { margin-top: 0; }
.section-tinted { background: linear-gradient(180deg, #f4e8d9 0%, #f9f1e6 100%); }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 32px 0 66px; }
.research-grid > div { border-top: 3px solid var(--accent); padding: 13px 15px 12px; background: rgba(255,255,255,.47); border-radius: 7px; }
.research-grid h3 { font-size: 19px; line-height: 1.3; margin: 12px 0; }
.research-grid p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-section { margin: 14px 0 74px; }
.project-title { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.28; letter-spacing: -.6px; margin: 0 0 24px; }
.project-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 42px; align-items: start; }
.project-map { margin: 0; }
.project-map img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 9px 22px rgba(63,46,34,.08); }
.project-map figcaption { color: var(--muted); font-size: 12px; margin-top: 9px; }
.project-description .project-text { margin: -4px 0 0; font-size: 17px; line-height: 1.72; }
.past-section { margin-top: 25px; }
.past-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; align-items: start; }
.past-card { margin: 0; min-width: 0; }
.past-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 7px; box-shadow: 0 8px 20px rgba(63,46,34,.1); }
.past-card figcaption { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.section-dark { background: var(--dark); color: #fff8ef; }
.section-dark .section-label, .section-dark a { color: #ecc2a1; }
.footer { display: flex; justify-content: space-between; padding: 26px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 850px) {
  .hero-content { grid-template-columns: minmax(0,1fr) 270px; gap: 25px; }
  .hero h1 { font-size: clamp(45px, 6vw, 64px); }
  .research-grid { gap: 12px; }
  .project-overview { gap: 25px; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 36px, 1120px); }
  .nav { align-items: flex-start; padding: 18px 0; flex-direction: column; gap: 10px; }
  .nav-links { gap: 20px; }
  .hero { padding: 50px 0 65px; }
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 275px; }
  .two-col, .project-overview, .research-grid { grid-template-columns: 1fr; gap: 22px; }
  .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .section { padding: 60px 0; }
  .project-section { margin-bottom: 57px; }
  .footer { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) { .past-grid { grid-template-columns: 1fr; } }

/* Past Projects photo gallery: three compact, equal-width cards on desktop. */
#research .past-section .past-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
  gap: 20px;
  margin: 0 auto;
  align-items: start;
}
#research .past-section .past-card {
  display: block;
  margin: 0;
  min-width: 0;
  width: 100%;
}
#research .past-section .past-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}
#research .past-section .past-card figcaption {
  display: block;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 700px) {
  #research .past-section .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  #research .past-section .past-grid { grid-template-columns: 1fr; max-width: 340px; }
}
