:root {
  --paper: #f3f1eb;
  --paper-2: #e6e2d8;
  --ink: #1a2620;
  --muted: #4d5a53;
  --line: #d4d0c6;
  --green: #1f4d36;
  --white: #fffcf7;
  --dark: #121a16;
  --header: 76px;
  --wrap: 1160px;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body.nav-lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-solid { border-bottom-color: var(--line); background: var(--paper); }
.site-header[data-overlay] {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  color: var(--white);
  border-bottom-color: transparent;
}
.site-header[data-overlay].is-solid,
.site-header[data-overlay].is-open {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 16px;
}
.brand img { width: 36px; height: 30px; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-call {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  background: #1a2420 center/cover no-repeat;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 15, 0.84) 0%, rgba(12, 18, 15, 0.5) 46%, rgba(12, 18, 15, 0.22) 100%),
    linear-gradient(180deg, rgba(12, 18, 15, 0.62), transparent 24%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header) + 48px) 0 56px;
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}
.hero-mark { width: 92px; height: auto; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero h1 span { display: block; font-size: 0.72em; }
.hero-rule {
  width: 72px;
  height: 2px;
  background: #d7ef9a;
  margin: 22px 0 16px;
  border: 0;
}
.hero-tag {
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 700;
}
.hero-meta {
  margin-top: 48px;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.9;
}

.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 14ch;
}
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.stack { display: grid; gap: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.photo-frame { overflow: hidden; background: var(--paper-2); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pillars h3, .values h3, .service h3 {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 10px 0 8px;
}
.pillars p, .values p, .service p, .advantage li { color: var(--muted); }

.leader {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr minmax(160px, 220px);
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.leader-photo { background: #d9d5cc; }
.leader-photo img { width: 100%; height: 460px; object-fit: cover; object-position: center top; }
.leader h3 { font-size: 28px; letter-spacing: -0.03em; margin: 8px 0; }
.role { font-weight: 700; }
.leader-copy p + p { margin-top: 12px; }
.leader-stats { display: grid; gap: 22px; }
.leader-stats strong {
  display: block;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.leader-stats span { color: var(--muted); font-size: 14px; }

.band {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 0;
  position: relative;
}
.band h2 { max-width: none; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-bottom: 48px;
}
.stat strong {
  display: block;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat span { display: block; margin-top: 8px; color: #c9d2cb; max-width: 16ch; }
.skyline { display: block; width: 100%; height: 72px; color: rgba(255,255,255,0.16); }
.footer-sky { color: rgba(26, 38, 32, 0.12); height: 64px; }

.values, .service-grid, .project-grid {
  display: grid;
  gap: 22px;
}
.values { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.service-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: end;
}
.service-grid { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.service, .values article { padding-top: 16px; border-top: 1px solid var(--line); }
.icon { width: 36px; height: 36px; }

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cities li { border-bottom: 1px solid var(--line); padding-bottom: 6px; }

.team-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}
.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.team-photos img:first-child { grid-column: 1 / -1; height: 240px; object-fit: cover; }
.team-photos img { width: 100%; height: 280px; object-fit: cover; }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.mini-stats strong { display: block; font-size: 32px; letter-spacing: -0.04em; line-height: 1; }
.mini-stats span { color: var(--muted); font-size: 14px; }

.project-grid { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.project-card {
  text-decoration: none;
  display: grid;
  gap: 12px;
  align-content: start;
}
.project-card .thumb {
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card:hover img { transform: scale(1.04); }
.kind {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-card h3 { font-size: 22px; letter-spacing: -0.03em; margin-top: 4px; }
.project-card p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.advantage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.advantage ul { display: grid; gap: 12px; margin-top: 22px; }
.advantage li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
}
.advantage img { width: 100%; height: 520px; object-fit: cover; }

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}
.partners li {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 18px;
}
.partners img { max-height: 72px; width: auto; max-width: 100%; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 28px;
}
.contact-list { display: grid; gap: 18px; margin-top: 22px; }
.contact-list a { font-weight: 800; text-underline-offset: 3px; }
.contact-list span { display: block; color: var(--muted); font-size: 14px; }
.map-frame {
  min-height: 360px;
  background: var(--paper-2);
  border: 0;
  width: 100%;
  height: 100%;
}

.case-hero { position: relative; min-height: 68vh; color: var(--white); display: flex; align-items: flex-end; background: #1c2621; }
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,18,15,0.15), rgba(12,18,15,0.78));
}
.case-hero .wrap { position: relative; z-index: 1; padding: 48px 0; }
.case-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin-top: 8px;
}
.case-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 56px 0 88px;
}
.case-facts { display: grid; gap: 18px; align-content: start; }
.case-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.case-facts dt { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.case-facts dd { margin: 4px 0 0; font-weight: 800; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.prose h2 { font-size: 28px; max-width: none; margin-top: 8px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: var(--paper-2);
  cursor: zoom-in;
  width: 100%;
}
.gallery img { width: 100%; height: auto; }
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.case-nav a { text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.site-footer a { font-weight: 700; }
.fine { color: var(--muted); font-size: 14px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 14, 12, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 80px); max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.link-more { font-weight: 800; }

@media (max-width: 980px) {
  .split, .service-layout, .team-grid, .advantage, .contact-grid, .case-layout, .leader {
    grid-template-columns: 1fr;
  }
  .leader-photo img, .advantage img, .split img { height: auto; max-height: 520px; min-height: 0; }
  .values, .stat-row, .partners { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .case-facts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed;
    z-index: 30;
    inset: var(--header) 0 0 0;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px 40px;
    gap: 8px;
    overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font-size: 28px;
    letter-spacing: -0.03em;
    padding: 10px 0;
  }
  .nav-call { font-size: 18px; height: 48px; }
  .pillars, .values, .stat-row, .service-grid, .project-grid, .partners, .mini-stats, .gallery, .case-facts, .team-photos {
    grid-template-columns: 1fr;
  }
  .team-photos img, .team-photos img:first-child { height: auto; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 56px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card img { transition: none; }
}
