:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --text: #232323;
  --muted: #66625d;
  --line: #ddd5c8;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #104e49;
  --accent-soft: #dff1ee;
  --shadow: 0 18px 45px rgba(36, 31, 25, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 245, 239, 0.88);
  border-bottom: 1px solid rgba(221, 213, 200, 0.65);
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: clamp(14px, 4vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.social-links a,
.project-card a {
  text-decoration: none;
}

.nav a:hover,
.social-links a:hover,
.project-card a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  min-height: 72vh;
  align-items: center;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.18), transparent 42%),
    radial-gradient(circle at top right, rgba(236, 180, 86, 0.24), transparent 35%),
    var(--bg);
}

.hero-content,
.section,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-content {
  max-width: 760px;
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 10vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h3 {
  font-size: 1.3rem;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
}

.button.secondary:hover {
  background: var(--accent-soft);
}

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

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.facts span {
  display: block;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.project-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.contact-section p {
  max-width: 560px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px) 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 820px) {
  .site-header,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .button {
    width: 100%;
  }
}
