:root {
  --bg: #f4f0ea;
  --panel: #fffdf9;
  --text: #202626;
  --muted: #68716d;
  --line: #ded6cb;
  --green: #13735f;
  --green-dark: #0d5c4c;
  --clay: #be6441;
  --shadow: 0 18px 50px rgba(44, 34, 26, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(19, 115, 95, 0.13), transparent 34rem),
    linear-gradient(135deg, #f7f4ee 0%, #efe8df 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

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

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  margin-bottom: 20px;
  border: 1px solid rgba(222, 214, 203, 0.9);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef8f3, #d7ede4);
  color: var(--green-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(19, 115, 95, 0.16);
}

.brand__domain,
.brand__name {
  display: block;
}

.brand__domain {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand__name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
}

.nav a:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.hero {
  min-height: 360px;
  display: grid;
  align-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(222, 214, 203, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 253, 249, 0.94), rgba(255, 253, 249, 0.82)),
    linear-gradient(135deg, rgba(19, 115, 95, 0.18), rgba(190, 100, 65, 0.14));
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.96;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
  font-weight: 700;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.project,
.note {
  border: 1px solid rgba(222, 214, 203, 0.9);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project {
  display: grid;
  align-content: start;
  min-height: 340px;
  padding: clamp(24px, 4vw, 40px);
}

.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.project__icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 14px;
  padding: 0 10px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.project--agent .project__icon {
  background: linear-gradient(135deg, #45b65a, #116f4f);
}

.project--meloman .project__icon {
  background: linear-gradient(135deg, #0f7768, #1f3134);
  font-size: 30px;
}

.project__type {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project h2,
.note h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.project p,
.note p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}

.button {
  justify-self: start;
  align-self: end;
  margin-top: 28px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 13px 18px;
}

.project--agent .button {
  background: var(--clay);
}

.button:hover {
  filter: brightness(0.94);
}

.note {
  padding: clamp(24px, 4vw, 40px);
}

.note p {
  max-width: 820px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    padding-left: 0;
  }

  .hero {
    min-height: 0;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: 0;
  }
}
