:root {
  --bg: #f3ece4;
  --paper: #fffdf9;
  --ink: #1e1b19;
  --muted: #6f665e;
  --sand: #cbb79d;
  --sand-dark: #9f876c;
  --line: #ded2c4;
  --soft: #eee4d9;
  --shadow: 0 18px 45px rgba(54, 44, 35, 0.08);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img {
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 236, 228, 0.96);
  border-bottom: 1px solid rgba(159, 135, 108, 0.18);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: .15em;
  font-weight: 500;
}

.brand span {
  margin-top: 7px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: #443d37;
  font-size: .95rem;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 0 22px;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 820px;
  padding: 46px 0 24px;
}

.eyebrow {
  color: var(--sand-dark);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.02em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: #4d453f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--sand-dark);
  background: var(--sand-dark);
  color: white;
  font-weight: 600;
}

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 22px 70px;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(159, 135, 108, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card {
  background: rgba(255,255,255,.67);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.service-card p,
.project-card p {
  margin-bottom: 0;
  color: #5a514a;
}

.project-card a {
  text-decoration: none;
}

.project-card a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.3fr);
  gap: 42px;
  align-items: start;
}

.portrait {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-tile {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}

.brand-tile img {
  width: 100%;
  display: block;
}

.project-hero {
  margin-bottom: 30px;
}

.funding-logos {
  width: min(720px, 100%);
  display: block;
  margin: 14px 0 28px;
  background: #fff;
  border-radius: 10px;
}

.project-content h2 {
  margin-top: 38px;
  font-size: 1.55rem;
}

.project-content ul {
  padding-left: 24px;
}

.project-content li {
  margin-bottom: 8px;
}

.financing {
  margin-top: 34px;
  padding: 22px;
  background: var(--soft);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.financing p {
  margin: 4px 0;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-data {
  font-size: 1.08rem;
}

.contact-data address {
  font-style: normal;
}

.note {
  color: var(--muted);
  font-size: .92rem;
}

.site-footer {
  border-top: 1px solid rgba(159, 135, 108, 0.25);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 36px;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav { gap: 14px 18px; }

  .grid.three,
  .grid.two,
  .about-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .hero,
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .card {
    padding: 22px 18px;
  }

  .hero-copy {
    padding-top: 30px;
  }
}


/* --- Lenses HR Consulting: refined homepage --- */
.home-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 54px;
  align-items: center;
}

.home-hero-copy {
  max-width: 690px;
}

.brand-fragments {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.brand-fragment {
  min-height: 240px;
  border-radius: 22px;
  background-image: url("../img/brand-square.png");
  background-repeat: no-repeat;
  background-size: 205%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(159, 135, 108, 0.13);
}

.fragment-one {
  grid-row: 1 / 3;
  background-position: 11% 72%;
}

.fragment-two {
  background-position: 86% 8%;
}

.fragment-three {
  background-position: 78% 82%;
}

.portrait {
  aspect-ratio: 4 / 5;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .brand-fragments {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .home-hero {
    padding-left: 14px;
    padding-right: 14px;
    gap: 34px;
  }

  .brand-fragments {
    min-height: 330px;
    gap: 10px;
  }

  .brand-fragment {
    min-height: 150px;
    border-radius: 16px;
  }
}
