:root {
  --bg: #f5f3ee;
  --surface: #fffdf8;
  --surface-2: #f6f0e6;
  --ink: #1d2420;
  --muted: #5d6b63;
  --accent: #1f7a52;
  --border: #d7d0c4;
  --glow: 0 10px 30px rgba(31, 122, 82, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.skip-link { position:absolute; left:-999px; top:-999px; }
.skip-link:focus { left:1rem; top:1rem; background:var(--accent); color:#04110a; padding:.5rem .8rem; border-radius:8px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 243, 238, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: .9rem 0; gap: 1rem; }
.brand { display:flex; align-items:center; gap:.55rem; font-weight:700; }
.brand-mark { color: var(--accent); }
.nav { display:flex; gap:1rem; align-items:center; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav-cta { border:1px solid var(--border); padding:.45rem .8rem; border-radius:999px; color:var(--ink) !important; background: var(--surface); }
.nav-toggle, .mobile-menu { display:none; }

.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--border); }
.hero-layout { display:grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 2rem; align-items: start; }
.hero-copy { min-width: 0; }
.hero-intro-row { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; margin-bottom: .7rem; }
.hero-name { font-size: 1.05rem; font-weight: 700; }
.hero-location { color: var(--muted); }
.hero h1 { margin: 0 0 1.1rem; font-size: clamp(2.2rem, 4.9vw, 4rem); line-height:1.05; max-width: 14ch; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0 0 1.8rem; }
.hero-actions { display:flex; gap:.8rem; flex-wrap:wrap; }

.project-carousel {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  padding: 1.2rem;
}
.carousel-header { margin-bottom: 1rem; }
.carousel-header h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.carousel-header p { margin: 0; color: var(--muted); font-size: .95rem; }
.carousel-viewport { position: relative; overflow: hidden; min-height: 250px; cursor: grab; }
.carousel-viewport.is-dragging { cursor: grabbing; user-select: none; }
.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; }
.carousel-controls { display:flex; align-items:center; justify-content:space-between; gap: 1rem; margin-top: 1rem; }
.carousel-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.carousel-dots { display:flex; gap: .5rem; align-items:center; justify-content:center; flex: 1; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #c8c0b2;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: var(--accent); }
.dual-links { display:flex; gap:.65rem; flex-wrap:wrap; }
.button.small { padding: .6rem .95rem; font-size: .92rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--accent); border-radius:999px;
  padding:.75rem 1.1rem; color: #fff; background: var(--accent); font-weight:700;
}
.button:hover { box-shadow: var(--glow); }
.button.ghost { background: transparent; color: var(--accent); }
.button.strong { font-size: .98rem; }

.section { padding: 3.4rem 0; }
.section.alt { border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: rgba(255,255,255,.4); }
.section h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem,3vw,2.5rem); }

.narrow { max-width: 62ch; }
.narrow p { color: var(--muted); margin: 0 0 .8rem; }
.narrow p:last-child { margin-bottom: 0; }

.section-head { margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); margin: 0; }

.card-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  padding: 1.2rem;
}
.card-top { display:flex; justify-content:space-between; align-items:center; gap:.8rem; margin-bottom: .5rem; }
.card-top h3 { margin: 0; }
.tag { border:1px solid var(--border); border-radius:999px; color:var(--muted); padding:.18rem .6rem; font-size:.78rem; background: rgba(255,255,255,.7); }
.card p { color: var(--muted); margin: 0; }
.card-link { color: var(--accent); font-weight: 700; }
.project-links { margin-top: .9rem; }

.contact { display:grid; grid-template-columns: 1fr auto; gap: 1rem; align-items:center; }
.contact-actions { display:flex; flex-wrap:wrap; gap:.6rem; }

.site-footer { border-top: 1px solid var(--border); padding: 1rem 0 2rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .hero-layout, .card-grid, .contact { grid-template-columns: 1fr; }
  .nav { display:none; }
  .nav-toggle { display:block; background:none; border:none; font-size:1.3rem; cursor:pointer; color:var(--ink); }
  .mobile-menu { display:block; padding:.5rem 0 1rem; border-top:1px solid var(--border); }
  .mobile-menu a { display:block; padding:.6rem 0; color:var(--muted); }
}
