* { box-sizing: border-box; }

:root {
  --ink: #1d1d1f;
  --muted: #6b655b;
  --paper: #f8f7f4;
  --warm: #ece8df;
  --line: #ded6c8;
  --card: #ffffff;
  --accent: #293241;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--ink); }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.hero {
  padding: 68px 0 62px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 1;
  margin: 0.1em 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.institutions {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.7rem 0 1.6rem;
}

.lead {
  font-size: clamp(1.15rem, 2.5vw, 1.36rem);
  max-width: 780px;
}

.portrait-card {
  justify-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}

.portrait {
  display: block;
  width: 300px;
  height: 390px;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 20px;
}

.buttons { margin-top: 2rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.08rem;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

main section { padding: 56px 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.card, .project-card, .feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.card { padding: 26px; }

.columns {
  columns: 2;
  padding-left: 1.2rem;
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.project-card .content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card p {
  margin-top: 0;
  color: #333;
}

.project-card .readmore {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}

.project-hero {
  padding: 48px 0;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 56px;
}

.feature {
  padding: 0;
  overflow: hidden;
  margin-bottom: 26px;
}

.feature.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature .text {
  padding: 28px;
}

.feature .media {
  background: #f1efe9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 18px;
}

.feature img {
  max-width: 100%;
  max-height: 460px;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.figure img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #f4f2ed;
}

figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  text-align: center;
}

.impact {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f4f2ed;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  font-weight: 700;
}

.back {
  display: inline-block;
  margin: 16px 0 0;
  color: var(--muted);
  text-decoration: none;
}

footer {
  padding: 50px 0;
  background: var(--ink);
  color: #fff;
}

footer a { color: #fff; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-card { justify-self: start; }
  .portrait { width: min(300px, 80vw); height: 370px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { align-items: flex-start; padding: 12px 0; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.88rem; }
  .hero { padding: 40px 0; }
  .intro-grid, .project-grid, .gallery { grid-template-columns: 1fr; }
  .columns { columns: 1; }
  main section { padding: 38px 0; }
  .project-card img { height: 170px; }
}
