:root {
  --brand: #244b25;
  --brand-2: #0b6b3a;
  --ink: #0b0f0d;
  --muted: #51605a;
  --bg: #ffffff;
  --surface: #f4f7f5;
  --stroke: rgba(0,0,0,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: .92em; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { left: 14px; }

.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.brand__text {
  font-weight: 800;
  letter-spacing: .2px;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}
.nav__toggle-lines {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.nav__toggle-lines::before { top: -7px; }
.nav__toggle-lines::after { top: 7px; }

.nav__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__menu a {
  text-decoration: none;
  font-weight: 600;
  color: rgba(0,0,0,.78);
  padding: 9px 10px;
  border-radius: 12px;
}
.nav__menu a:hover {
  background: rgba(0,0,0,.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(36,75,37,.25);
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: rgba(36,75,37,.08);
  color: var(--brand) !important;
  border-color: rgba(36,75,37,.18);
  box-shadow: none;
}
.btn--sm { padding: 10px 12px; border-radius: 12px; }
.btn--block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}
.hero__backdrop {
  position: absolute;
  inset: -140px -140px auto -140px;
  height: 420px;
  background: radial-gradient(circle at 20% 30%, rgba(36,75,37,.22), transparent 55%),
              radial-gradient(circle at 80% 35%, rgba(11,107,58,.16), transparent 50%);
  filter: blur(6px);
  z-index: -1;
}
.kicker {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin: 10px 0 12px;
}
.lead {
  font-size: 18px;
  color: rgba(0,0,0,.70);
  margin: 0 0 18px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 18px; }
.hero__meta { display: flex; gap: 12px; flex-wrap: wrap; }

.meta-chip {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.8);
}
.meta-chip__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.meta-chip__value {
  display: inline-block;
  margin-top: 2px;
  text-decoration: none;
  font-weight: 700;
}

.portrait-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #fff;
}
.portrait-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.portrait-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #20c997;
  box-shadow: 0 0 0 6px rgba(32,201,151,.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.stat {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,.85);
}
.stat__num { font-weight: 800; color: var(--brand); font-size: 13px; }
.stat__label { color: rgba(0,0,0,.72); font-weight: 600; font-size: 12px; margin-top: 4px; }

.section { padding: 64px 0; }
.section--alt { background: var(--surface); }
.section__head { margin-bottom: 18px; }
.section__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}
.aside .card--sticky {
  position: sticky;
  top: 92px;
}

h2 {
  font-size: 30px;
  margin: 0 0 10px;
}
h3 { margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.cards {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.divider {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 14px 0;
}
.stack { display: grid; gap: 10px; }
.link {
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
}
.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(0,0,0,.72);
  font-weight: 500;
}
.list li { margin: 8px 0; }

.timeline {
  display: grid;
  gap: 12px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.8);
}
.timeline__when {
  font-weight: 800;
  color: var(--brand);
}
.timeline__more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand);
  margin-top: 10px;
}

.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.chip {
  border: 1px solid var(--stroke);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(0,0,0,.75);
  cursor: pointer;
}
.chip.is-active {
  border-color: rgba(36,75,37,.30);
  background: rgba(36,75,37,.10);
  color: var(--brand);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.project .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.project .tags span {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  background: rgba(36,75,37,.10);
  border: 1px solid rgba(36,75,37,.18);
  padding: 6px 8px;
  border-radius: 999px;
}
.project.is-hidden { display: none; }

.grid--awards {
  grid-template-columns: repeat(3, 1fr);
}

.masonry {
  columns: 3 260px;
  column-gap: 14px;
}
.masonry__item {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.masonry__item img {
  width: 100%;
  height: auto;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.form label {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.16);
  font: inherit;
}
.form input:focus, .form textarea:focus {
  outline: 3px solid rgba(36,75,37,.18);
  border-color: rgba(36,75,37,.35);
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--stroke);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .section__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .aside .card--sticky { position: static; }
}
@media (max-width: 720px) {
  .cards--2 { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    right: 20px;
    top: 62px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .nav__menu.is-open { display: flex; }
}
