:root {
  --bg: #ffffff;
  --text: #1d2433;
  --muted: #5b6475;
  --accent: #0b6e4f;
  --accent-soft: #e8f5f0;
  --border: #e3e7ee;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container { width: min(var(--max), 92%); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--text); }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); }

/* Hero */
.hero { padding: 64px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0.3rem 0 0.8rem; }
.lead { color: var(--muted); font-size: 1.1rem; }
.hero-photo img {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

/* Buttons */
.cta-row { margin-top: 8px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 8px 10px 0 0;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent); }

/* Sections */
.block { padding: 56px 0; border-top: 1px solid var(--border); }
h2 { font-size: 1.8rem; margin: 0 0 20px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tags li {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 8px 0; }

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 16px 4%;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { margin: 0; }
}

/* Projects cards */
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.card .meta {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 6px;
}
.video-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}