:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #171512;
  --muted: #746f68;
  --line: rgba(23, 21, 18, 0.14);
  --accent: #7c5c47;
  --accent-dark: #573f31;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.scrolled {
  background: rgba(247, 244, 239, .92);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
}

.logo-text {
  letter-spacing: .02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: .2s ease;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.24), rgba(0,0,0,.36)),
    url("../images/hero.svg") center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, transparent 0 20%, rgba(0,0,0,.18) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding-top: var(--header-h);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  font-weight: 600;
}

.hero h1 {
  max-width: 930px;
  font-size: clamp(44px, 7vw, 92px);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,.88);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,.7);
  color: white;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 22px;
}

.section {
  padding: 110px 0;
  scroll-margin-top: var(--header-h);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-heading.centered {
  display: block;
  text-align: center;
}

.section h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.section-intro {
  max-width: 480px;
  color: var(--muted);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.72));
  opacity: .8;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-caption {
  position: absolute;
  inset: auto 20px 18px;
  z-index: 2;
  color: white;
  text-align: left;
}

.gallery-caption strong,
.gallery-caption small {
  display: block;
}

.gallery-caption strong {
  font-size: 18px;
}

.gallery-caption small {
  margin-top: 2px;
  color: rgba(255,255,255,.72);
}

.gallery-item.hidden {
  display: none;
}

.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 80px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: -28px;
  bottom: 34px;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  font-size: 13px;
}

.about-content p {
  max-width: 630px;
  color: var(--muted);
  font-size: 17px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: "Playfair Display", serif;
  font-size: 34px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card span {
  color: var(--accent);
  font-weight: 700;
}

.service-card h3 {
  margin: 70px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding-top: 40px;
}

.contact-box {
  background: var(--ink);
  color: white;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.contact-box h2 {
  max-width: 720px;
}

.contact-box p {
  color: rgba(255,255,255,.66);
  max-width: 620px;
}

.contact-actions {
  min-width: 210px;
  display: grid;
  gap: 16px;
}

.text-link {
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

.text-link:hover {
  color: white;
}

.site-footer {
  padding: 28px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(0,0,0,.92);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: auto;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    z-index: 2;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto;
    min-height: 100vh;
    padding: 120px 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    transform: translateY(-105%);
    transition: transform .25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    font-family: "Playfair Display", serif;
    font-size: 34px;
  }

  .site-header:not(.scrolled) {
    color: white;
  }

  .site-header.menu-open {
    color: var(--ink);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .image-note {
    right: 18px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    display: none;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .stats {
    gap: 8px;
  }

  .stats strong {
    font-size: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 44px;
  }

  .contact-box {
    padding: 34px 24px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}
