:root {
  color-scheme: light;
  --bg: #fbfcfb;
  --ink: #18201e;
  --muted: #5d6a66;
  --line: #d7e0dc;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --coral: #ef6f56;
  --gold: #f4b740;
  --mint: #69e6b5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-strong);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 32, 30, 0.08);
  background: rgba(251, 252, 251, 0.92);
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: flex;
  min-height: 520px;
  align-items: center;
  padding: 72px max(24px, calc((100vw - 1120px) / 2)) 80px;
}

.hero-copy {
  max-width: 680px;
}

.mark {
  width: 84px;
  height: 84px;
  margin-bottom: 28px;
  image-rendering: pixelated;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  font-size: clamp(3rem, 9vw, 6.6rem);
  font-weight: 820;
  line-height: 0.96;
}

.lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--accent-strong);
}

main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

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

.facts div {
  min-width: 0;
  background: var(--surface);
  padding: 18px;
}

.facts span,
.work-type {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.facts strong {
  display: block;
  font-size: 1rem;
}

.section {
  padding: 64px 0 40px;
}

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

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.work-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

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

.project-links {
  margin-top: 24px;
}

.project-links a {
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: 56px 20px;
  }

  main,
  footer {
    width: min(100% - 40px, 1120px);
  }

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

  .button {
    flex: 1 1 150px;
  }
}
