:root {
  --bg: #f7f5ef;
  --ink: #16201d;
  --soft-ink: #48524f;
  --line: #dedbd0;
  --card: #fffdf8;
  --green: #08756c;
  --green-dark: #064f49;
  --blue: #1d4f91;
  --amber: #d99b28;
  --rose: #c65743;
  --shadow: 0 18px 50px rgba(22, 32, 29, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

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

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

.topbar {
  align-items: center;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  height: 54px;
  object-fit: contain;
  width: 152px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nav a {
  border-radius: 999px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.nav a:hover {
  background: #e9eee9;
  color: var(--green-dark);
}

.nav .nav-button {
  background: var(--ink);
  color: #fff;
  padding-inline: 18px;
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  width: 42px;
}

.menu-button span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  padding: clamp(24px, 3.2vw, 48px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 90px);
  position: relative;
}

.hero::after {
  background: linear-gradient(135deg, rgba(8, 117, 108, 0.12), rgba(29, 79, 145, 0.08));
  content: "";
  inset: auto 0 0;
  height: 42%;
  position: absolute;
  z-index: -1;
}

.tag {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(44px, 6.8vw, 96px);
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.intro {
  color: var(--soft-ink);
  font-size: clamp(18px, 1.8vw, 23px);
  max-width: 710px;
}

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

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
}

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

.button.ghost {
  border: 1px solid var(--ink);
}

.hero-card {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  margin-top: 0;
  padding: 16px;
}

.portrait {
  aspect-ratio: 4 / 4.15;
  object-fit: cover;
  width: 100%;
}

.identity {
  display: grid;
  gap: 8px;
  padding: 20px 8px 6px;
}

.identity span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.identity strong {
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.metrics {
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.metrics div {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 24px;
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  color: var(--amber);
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metrics span {
  color: #c9d1cd;
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.brand-wall {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: max-content 1fr;
  padding: 30px clamp(20px, 5vw, 72px);
}

.brand-wall p {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.brand-wall div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.brand-wall img {
  background: #fff;
  border: 1px solid var(--line);
  height: 58px;
  object-fit: contain;
  padding: 10px 18px;
  width: 100%;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-title {
  display: grid;
  column-gap: clamp(32px, 5vw, 82px);
  row-gap: 10px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 34px;
}

.section-title .tag {
  margin-top: 14px;
}

.about {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
}

.about-copy {
  color: var(--soft-ink);
  display: grid;
  font-size: 19px;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article {
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 250px;
  padding: 26px;
}

.service-icon {
  align-items: center;
  background: var(--green);
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  margin-bottom: 22px;
  width: 52px;
}

.work-list span,
.credentials span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-grid p {
  color: var(--soft-ink);
  margin-bottom: 0;
}

.work {
  background: var(--ink);
  color: #fff;
}

.work .tag,
.work-list span {
  color: #f0b84f;
}

.work-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-list a {
  background: #22302c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  overflow: hidden;
}

.work-list img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.work-list span,
.work-list strong {
  padding-inline: 18px;
}

.work-list span {
  margin-top: 18px;
}

.work-list strong {
  font-size: 20px;
  padding-bottom: 20px;
  padding-top: 18px;
}

.skills {
  background: #eef4ef;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-cloud span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  padding: 13px 18px;
}

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

.credentials article {
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 26px;
}

.credentials strong {
  font-size: 20px;
  line-height: 1.3;
}

.credentials p {
  color: var(--soft-ink);
  margin-bottom: 0;
}

.contact {
  align-items: center;
  background: var(--green);
  color: #fff;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.contact .tag {
  color: #ffe1a6;
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 18px 0 0;
  max-width: 680px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact > .contact-form {
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  justify-self: end;
  max-width: 540px;
  padding: clamp(22px, 4vw, 34px);
  width: 100%;
}

.contact > .contact-form label {
  display: grid;
  gap: 7px;
  width: 100%;
}

.contact > .contact-form span {
  color: var(--green-dark);
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact > .contact-form input,
.contact > .contact-form textarea {
  background: #f7f5ef;
  border: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font: inherit;
  outline: 0;
  padding: 13px 14px;
  width: 100%;
}

.contact > .contact-form input:focus,
.contact > .contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 117, 108, 0.12);
}

.contact > .contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact > .contact-form .button {
  border: 0;
  cursor: pointer;
  justify-self: start;
  min-width: 150px;
}

.form-status {
  background: #e9f5ef;
  color: var(--green-dark);
  font-weight: 800;
  padding: 12px 14px;
}

.form-status.is-error {
  background: #fff0ea;
  color: #9d3526;
}

.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
}

.footer span,
.footer a {
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero,
  .section-title,
  .brand-wall,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
  }

  .contact > .contact-form {
    justify-self: start;
    max-width: 640px;
  }

  .service-grid,
  .work-list,
  .brand-wall div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 20px;
  }

  .brand img {
    height: 48px;
    width: 136px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    left: 0;
    padding: 14px 20px 22px;
    position: absolute;
    right: 0;
    top: 73px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 12px 0;
  }

  .nav .nav-button {
    justify-self: start;
    padding: 10px 18px;
  }

  h1 {
    font-size: 42px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .metrics,
  .service-grid,
  .work-list,
  .about-copy,
  .credentials,
  .brand-wall div {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
