:root {
  --bg: #fbfaf7;
  --ink: #1c1a17;
  --muted: #6b655c;
  --line: #e4dfd6;
  --accent: #8a6d3b;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.brand {
  font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}
.brand:hover { text-decoration: none; }
.tagline {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}
nav.main {
  display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
nav.main a { color: var(--muted); padding: 4px 2px; }
nav.main a:hover, nav.main a.active { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 48px 22px 64px; }
.page-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400; letter-spacing: .04em;
  margin: 0 0 8px;
}
.page-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }

/* Prose */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-weight: 400; letter-spacing: .03em; margin: 36px 0 14px; }

/* Masonry gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; cursor: zoom-in; }
.gallery img {
  width: 100%; border: 1px solid var(--line);
  background: #fff; transition: filter .25s, transform .25s;
}
.gallery figure:hover img { filter: brightness(1.04); }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 28px; margin-top: 32px; }
.card { border: 1px solid var(--line); background:#fff; }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card .body { padding: 22px; }
.card h3 { margin: 0 0 10px; font-weight: 400; letter-spacing: .03em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-block; border: 1px solid var(--ink); color: var(--ink);
  padding: 12px 28px; letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.center { text-align: center; }

/* Works landing */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.works-grid a { position: relative; display: block; overflow: hidden; border:1px solid var(--line); }
.works-grid img { width: 100%; height: 420px; object-fit: cover; transition: transform .5s; }
.works-grid a:hover img { transform: scale(1.04); }
.works-grid .label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(28,26,23,.32); color: #fff; font-size: 24px; letter-spacing: .2em; text-transform: uppercase;
}

/* Contact */
.contact-box { max-width: 560px; margin: 0 auto; text-align: center; font-size: 18px; }
.contact-box .email { font-size: clamp(20px,3.4vw,28px); margin: 24px 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 36px 22px; text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer a { color: var(--muted); }
.site-footer .social { margin-bottom: 10px; letter-spacing: .14em; text-transform: uppercase; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; background: rgba(20,18,16,.94); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 94vw; max-height: 92vh; border: 1px solid #333; }
#lightbox .close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }
#lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); color:#fff; font-size: 46px; cursor:pointer; padding: 0 22px; user-select:none; opacity:.7; }
#lightbox .nav:hover { opacity: 1; }
#lightbox .prev { left: 0; } #lightbox .next { right: 0; }

@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-grid img { height: 260px; }
  .gallery { column-gap: 10px; }
}
