:root {
  --bg: #ffffff;
  --text: #17201c;
  --muted: #65706a;
  --line: #dfe7e2;
  --surface: #f5f8f7;
  --forest: #174a38;
  --forest-dark: #103528;
  --sky: #dcecf4;
  --coral: #dc705c;
  --shadow: 0 24px 70px rgba(20, 40, 32, 0.14);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 231, 226, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
}

.site-nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a,
.nav-action,
.button {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--forest);
}

.nav-action {
  padding: 11px 16px;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.nav-action:hover,
.button.primary:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.development-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 28, 0.32);
  backdrop-filter: blur(10px);
}

.development-modal[hidden] {
  display: none;
}

.development-modal-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.development-modal-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
}

.development-modal-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--forest);
  background: var(--sky);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
  min-height: 760px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 92px) clamp(20px, 4vw, 28px) clamp(34px, 6vw, 64px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(76px, 12vw, 158px);
  font-weight: 800;
  line-height: 0.9;
}

.hero-copy p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--forest);
}

.button.secondary {
  color: var(--forest);
  background: #fff;
}

.button.secondary:hover {
  background: var(--sky);
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  position: absolute;
  inset: -18px auto auto -18px;
  width: 34%;
  height: 46%;
  content: "";
  background: var(--sky);
  border-radius: var(--radius);
}

.hero-media::after {
  position: absolute;
  right: -13px;
  bottom: 42px;
  width: 72px;
  height: 72px;
  content: "";
  background: var(--coral);
  border-radius: 50%;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 116px) clamp(20px, 4vw, 28px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  line-height: 1;
}

.section-heading p,
.contact-section p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
  margin-left: min(28vw, 310px);
}

.about-grid p {
  margin: 0;
  color: #34413b;
  font-size: 18px;
  line-height: 1.75;
}

.work-section {
  background:
    linear-gradient(90deg, transparent 0, transparent 50%, var(--surface) 50%, var(--surface) 100%);
}

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

.project-card {
  min-height: 278px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(20, 40, 32, 0.07);
}

.project-number {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.project-card h3,
.principles h3 {
  margin: 44px 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

.project-card p,
.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principles article {
  min-height: 238px;
  padding: 28px;
  background: var(--surface);
}

.principles h3 {
  margin-top: 0;
}

.contact-section {
  justify-content: space-between;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto 42px;
  padding: clamp(44px, 7vw, 70px) clamp(26px, 5vw, 56px);
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
}

.contact-section p {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .button.primary {
  flex: 0 0 auto;
  color: var(--forest);
  background: #fff;
  border-color: #fff;
}

.contact-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-section .button.primary:hover {
  color: var(--forest-dark);
  background: var(--sky);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section-heading,
  .about-grid,
  .project-list,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .about-grid {
    margin-left: 0;
  }

  .work-section {
    background: var(--bg);
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 20px;
    margin-left: 20px;
  }

  .contact-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-action {
    display: none;
  }

  .site-nav {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-copy h1 {
    font-size: clamp(68px, 23vw, 104px);
  }

  .hero-media img {
    aspect-ratio: 1 / 1.08;
  }

  .hero-media::after {
    right: -8px;
    bottom: 26px;
    width: 52px;
    height: 52px;
  }

  .button {
    width: 100%;
  }
}
