:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeea;
  --ink: #14120f;
  --ink-2: #2c2925;
  --muted: #6b6560;
  --line: #e4e0d8;
  --card: #ffffff;
  --accent: #1a5f4a;
  --accent-hover: #144a3a;
  --accent-soft: #e8f2ee;
  --warn: #9a3412;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,18,15,.04), 0 8px 24px rgba(20,18,15,.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(720px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.925rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); background: var(--bg-alt);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.925rem;
  padding: 11px 18px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: #000; color: #fff !important; }
.btn-secondary {
  background: var(--card); color: var(--ink) !important;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-hover); color: #fff !important; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
  padding: 6px 12px; margin-bottom: 18px;
}
.eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.15rem);
  line-height: 1.12; letter-spacing: -0.03em;
  font-weight: 600; margin-bottom: 18px; color: var(--ink);
}
.hero-lead {
  font-size: 1.125rem; color: var(--muted);
  max-width: 38ch; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.hero-panel .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.hero-panel .row:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.ok { color: var(--accent); font-weight: 600; }

/* Sections */
section { padding: 64px 0; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.025em; margin-bottom: 12px; line-height: 1.2;
}
.section-sub {
  color: var(--muted); max-width: 52ch; margin-bottom: 36px; font-size: 1.05rem;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  height: 100%;
}
.card h3 {
  font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 8px; border-radius: 6px; margin-bottom: 12px;
}
.icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); display: grid; place-items: center;
  margin-bottom: 14px; font-size: 1.1rem;
}

/* Work / cases */
.work-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  color: inherit; transition: transform .15s, box-shadow .15s;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20,18,15,.1);
  color: inherit;
}
.work-cover {
  height: 140px; background: linear-gradient(135deg, #1a5f4a 0%, #0f3d30 50%, #1c1917 100%);
  position: relative;
}
.work-cover.alt { background: linear-gradient(135deg, #44403c 0%, #1c1917 100%); }
.work-cover.alt2 { background: linear-gradient(135deg, #0f3d30 0%, #292524 100%); }
.work-body { padding: 20px 22px 22px; }
.work-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.work-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.work-meta {
  font-size: 0.8rem; color: var(--muted);
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Notes list */
.note-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.note-row:first-child { border-top: 1px solid var(--line); }
.note-date {
  font-size: 0.85rem; color: var(--muted); padding-top: 4px;
}
.note-row h3 { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -0.015em; }
.note-row h3 a { color: var(--ink); }
.note-row h3 a:hover { color: var(--accent); }
.note-row p { color: var(--muted); font-size: 0.95rem; }

/* Prose pages */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.breadcrumb {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.prose { padding-bottom: 64px; }
.prose p { margin-bottom: 1.15em; color: var(--ink-2); font-size: 1.05rem; }
.prose h2 {
  font-family: var(--serif); font-size: 1.45rem;
  margin: 2em 0 0.7em; letter-spacing: -0.02em;
}
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.25em; color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 18px; margin: 1.5em 0;
  color: var(--muted); font-family: var(--serif); font-size: 1.15rem;
}
.callout {
  background: var(--accent-soft); border: 1px solid #c5ddd4;
  border-radius: 12px; padding: 18px 20px; margin: 1.5em 0;
  color: var(--ink-2);
}

/* Stats band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 28px 20px; margin: 8px 0 0;
}
.stats div { text-align: center; }
.stats strong {
  display: block; font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.stats span { font-size: 0.85rem; color: #a8a29e; }

/* CTA */
.cta-band {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px; display: flex;
  justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { color: var(--muted); max-width: 42ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 48px 0 32px; background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { font-weight: 700; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-weight: 400; font-size: 0.92rem; margin-top: 8px; max-width: 28ch; }
.footer-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 12px;
}
.footer-col a {
  display: block; color: var(--ink-2); font-size: 0.92rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--muted);
}

/* Contact form look */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.info-list { list-style: none; }
.info-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
}
.info-list strong { font-size: 0.9rem; }
.info-list span { color: var(--muted); font-size: 0.9rem; text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .grid-3, .stats, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .note-row { grid-template-columns: 1fr; gap: 6px; }
}
