:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #66706a;
  --line: #d9ded9;
  --paper: #f7f5ef;
  --white: #ffffff;
  --moss: #315f4c;
  --coral: #d86c5b;
  --gold: #c7a95d;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
}

.brand,
.nav-links,
.nav-action {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 22, 17, 0.42);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 10px 0 0 var(--coral);
}

.nav-links {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
}

.nav-links a {
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.nav-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 74px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 18, 14, 0.82), rgba(10, 18, 14, 0.2)),
    linear-gradient(0deg, rgba(10, 18, 14, 0.68), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 730px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

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

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

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.section,
.services,
.contact {
  padding: 88px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background: var(--white);
}

.intro h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.work {
  background: #edf1ec;
}

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

.project-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  padding: 18px;
}

.project-card p,
.service-grid span {
  margin: 0 0 5px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
}

.project-card h3,
.service-grid h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.services {
  background: var(--paper);
}

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

.service-grid article {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.service-grid p {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  background: var(--moss);
  color: var(--white);
}

.contact .section-kicker {
  color: var(--gold);
}

.contact h2 {
  max-width: 760px;
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro,
  .project-grid,
  .service-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .service-grid {
    display: grid;
  }

  .contact {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px;
    gap: 10px;
  }

  .brand,
  .nav-action {
    min-height: 38px;
    font-size: 13px;
  }

  .hero {
    min-height: 90vh;
    padding: 96px 18px 46px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .section,
  .services,
  .contact {
    padding: 64px 18px;
  }
}
