:root {
  --bg: #f7f4ef;
  --text: #1f1f1f;
  --muted: #645d54;
  --line: #ded8cf;
  --panel: #ffffff;
  --accent: #3d342b;
  --sans: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  border-bottom: 1px solid rgba(222,216,207,.7);
  background: rgba(247,244,239,.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}
nav a {
  text-decoration: none;
  margin-left: 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s ease;
}
nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-icon::after { position: absolute; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 6vw;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,.72) 0%, rgba(20,17,13,.28) 45%, rgba(20,17,13,.05) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  color: #fff;
}
.hero-content .eyebrow { color: rgba(255,255,255,.82); }
.hero-content h1 { color: #fff; }
.hero-content .hero-text { color: rgba(255,255,255,.88); }
.hero-content .button { color: var(--text); background: #fff; border-color: #fff; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 980px;
  margin: 0 0 24px;
  font-weight: 400;
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  font-weight: 400;
  margin: 0 0 20px;
}
h3 { font-weight: 400; font-size: 22px; margin-bottom: 10px; letter-spacing: -.005em; }
.hero-text { max-width: 580px; color: var(--muted); font-size: 21px; line-height: 1.5; }
.button {
  display: inline-block;
  width: fit-content;
  margin-top: 22px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .03em;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { background: #2a2319; border-color: #2a2319; transform: translateY(-1px); }
.hero-content .button:hover { background: var(--bg); border-color: var(--bg); color: var(--text); }
.section { padding: clamp(72px, 9vw, 112px) 6vw; border-top: 1px solid var(--line); }
.muted { background: #eee8df; }
.section-heading { margin-bottom: 44px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.services div {
  background: var(--panel);
  padding: 28px;
  border: 1px solid var(--line);
}
.services div p { color: var(--muted); }
.projects article {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.projects article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(31,26,19,.10);
}
.projects article img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform .5s ease;
}
.projects article:hover img { transform: scale(1.03); }
.projects article h3 { padding: 0 24px; }
.projects article p { padding: 0 24px 24px; color: var(--muted); }
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-portrait {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-intro p { font-size: 20px; color: var(--muted); max-width: 760px; }
.contact p { font-size: 20px; color: var(--muted); max-width: 760px; }
footer {
  padding: 40px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .03em;
}

/* Tablet — two-column grids; header stays inline */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Large phones / small tablets — single column, stacked header */
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; align-items: center; }
  .nav-toggle { display: inline-flex; }
  nav {
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    margin-top: 14px;
  }
  nav.is-open { display: flex; }
  nav a {
    margin: 0;
    padding: 14px 0;
    font-size: 16px;
    border-top: 1px solid var(--line);
  }
  .grid, .about { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; padding: 64px 6vw; }
  .section { padding: 64px 6vw; }
  .section-heading { margin-bottom: 32px; }
  .hero-text, .about-intro p, .contact p { font-size: 18px; }
  .projects article img { height: 260px; }
  .about-portrait { max-height: 420px; }
}

/* Small phones — ease the headline */
@media (max-width: 400px) {
  h1 { font-size: 38px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: .07em;
  line-height: 1;
  text-transform: none;
}
.brand,
.brand:hover,
.brand:focus,
.brand span { text-decoration: none; }
.brand span { white-space: nowrap; text-transform: none; }
.brand:hover { opacity: .78; transition: opacity .2s ease; }

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
  opacity: .85;
}