:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #111214;
  --muted: #676b72;
  --line: #d9dbdf;
  --accent: #2646d8;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

nav a:hover,
.text-link:hover,
.contact a:hover {
  color: var(--accent);
}

main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.eyebrow,
.meta {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

/* LANDING */

.hero {
  padding: 110px 0 125px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.section h2,
.feature h2,
.project h2,
.landing-card h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 760px;
  margin: 30px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-links {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

.portrait-shell {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #e5e6e8;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* GENERAL */

.section {
  padding: 95px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  margin-bottom: 56px;
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.page-hero {
  padding: 110px 0 90px;
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.page-hero > p:last-child {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.landing-card {
  display: block;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease;
}

.landing-card:hover {
  transform: translateY(-3px);
  border-color: #b8bcc4;
}

.landing-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.landing-card p:not(.meta) {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

/* RESEARCH */

.feature {
  display: grid;
  grid-template-columns: 0.92fr 1.35fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.feature.reverse .feature-copy { order: 2; }
.feature.reverse .media { order: 1; }

.feature h2,
.project h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.feature-copy > p:not(.meta) {
  color: var(--muted);
  max-width: 560px;
}

.media {
  aspect-ratio: 16 / 10;
  background: #e5e6e8;
  overflow: hidden;
}

.media img,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PROJECTS */

.projects-list {
  display: grid;
  gap: 34px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-description {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.project-points li {
  margin: 0 0 10px;
  padding-left: 3px;
}

.project-points li::marker {
  color: var(--accent);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 420px;
}

.project-image {
  min-height: 0;
  background: #e5e6e8;
  overflow: hidden;
}

.project-image-large {
  grid-row: 1 / 3;
}

.placeholder {
  display: grid;
  place-items: center;
  color: #8b8f96;
  font-size: 0.82rem;
  border: 1px solid #dadce0;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
}

.about-copy {
  font-size: 1.05rem;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-split,
  .project {
    grid-template-columns: 1fr;
  }

  .portrait-shell {
    max-width: 520px;
  }

  .project-gallery {
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  nav a:nth-child(4) {
    display: none;
  }

  .hero,
  .page-hero {
    padding: 80px 0 90px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading,
  .feature,
  .about,
  .landing-cards {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 10px;
  }

  .feature {
    gap: 26px;
  }

  .feature.reverse .feature-copy,
  .feature.reverse .media {
    order: initial;
  }

  .project {
    padding: 22px;
    gap: 28px;
  }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-image-large {
    grid-column: 1 / 3;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-image-large {
    grid-column: auto;
  }
}
