:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #17231c;
  --muted: #5b6a61;
  --accent: #0f6b3a;
  --accent-dark: #0a4a28;
  --accent-soft: #e2eee6;
  --line: #dcd8cc;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; gap: 1rem; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.monogram { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent-dark); color: #fff; font-size: 0.8rem; letter-spacing: 0.04em; }
.tagline { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.45rem); color: var(--accent-dark); margin: 0.8rem 0 0; }
.hero .lead { margin-top: 1.1rem; }
.focus-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.focus-grid li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 1.4rem 1.3rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s; }
.focus-grid li:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 40, 25, 0.1); }
.focus-grid .num { display: block; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.2rem; }
.focus-grid h3 { font-size: 1.2rem; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-dark); border-color: var(--accent); }

/* Hero */
.hero { padding: 3rem 0 4rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: -0.02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 1.3rem 0 2rem; }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

.portrait { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  background: var(--accent-soft); border-radius: 22px; z-index: 0;
}
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 22px; box-shadow: 0 20px 40px rgba(15, 40, 25, 0.18); }

/* Sections */
section { padding: 4.5rem 0; }
.section-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin: 0 0 0.8rem; }
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about .wrap { display: grid; gap: 2rem; }
.about p { margin: 0 0 1rem; max-width: 40rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; align-content: start; }
.facts li { padding: 1rem 1.2rem; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.facts span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* Work */
.cards { display: grid; gap: 1.2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 40, 25, 0.1); }
.card-thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 12px, #edf4ef 12px 24px);
  color: var(--accent-dark); font-size: 0.9rem; font-style: italic;
}
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Background timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .when { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
.timeline h3 { font-size: 1.25rem; margin: 0.2rem 0 0.3rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Contact */
.contact { background: var(--accent-dark); color: #eef5f0; }
.contact h2 { color: #fff; }
.contact .section-label { color: #9fd3b4; }
.contact .wrap { display: grid; gap: 2.5rem; }
.contact p { max-width: 28rem; }
.contact a { color: #bfe6cd; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }
input, textarea {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid transparent;
  background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid #9fd3b4; }
textarea { min-height: 140px; resize: vertical; }
.contact .btn { background: #fff; color: var(--accent-dark); border-color: #fff; justify-self: start; }
.contact .btn:hover { background: #d7ecdf; border-color: #d7ecdf; }
.social { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.4rem; }

/* Footer */
.site-footer { padding: 1.6rem 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

@media (min-width: 800px) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .about .wrap { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact .wrap { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (max-width: 520px) {
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.85rem; }
  .brand { font-size: 1rem; }
}
