:root {
  --ink: #1c1b19;
  --ink-2: #2a2825;
  --text: #34312c;
  --muted: #6b655b;
  --bg: #ffffff;
  --bg-soft: #f6f2ea;
  --line: #e6dfd2;
  --gold: #b8954f;
  --gold-dark: #7d6025;
  --gold-light: #d9bf86;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(28, 27, 25, .45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1rem/1.7 var(--sans);
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 5vw, 3rem); }
h3 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .8rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { width: 190px; height: auto; }

.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; text-decoration: none; color: var(--ink); font-weight: 500;
  padding: .75rem .25rem;
}
.nav a:hover { color: var(--gold-dark); }

@media (max-width: 799px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px 16px;
  }
  .js .nav:not(.is-open) { display: none; }
  .nav li + li { border-top: 1px solid var(--line); }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .brand img { width: 230px; }
  .nav ul { display: flex; align-items: center; gap: 28px; }
  .nav a { padding: .5rem 0; position: relative; }
  .nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
  }
  .nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav .nav-cta {
    padding: .55rem 1.15rem; border-radius: 999px; background: var(--ink); color: #fff;
  }
  .nav .nav-cta:hover { background: var(--gold-dark); color: #fff; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: #fff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 720px); display: flex; align-items: flex-end;
  background: var(--ink); color: #fff;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 19, 17, .25) 0%, rgba(20, 19, 17, .55) 45%, rgba(20, 19, 17, .9) 100%);
}
.hero-content { padding: 120px 0 56px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: #fff; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 5.4rem); max-width: 12ch; margin-bottom: .3em;
}
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 40ch; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Sections */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }

.about { display: grid; gap: 40px; align-items: center; }
.about-text p { max-width: 64ch; }
.about-figure { margin: 0; position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-figure::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; z-index: -1;
  border: 2px solid var(--gold-light); border-radius: var(--radius);
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1.35fr 1fr; gap: 72px; }
}

.mission {
  margin: clamp(56px, 8vw, 88px) 0 0; padding: clamp(28px, 5vw, 56px);
  background: var(--bg-soft); border-radius: calc(var(--radius) + 6px);
  border-left: 4px solid var(--gold);
  display: grid; gap: 8px 48px;
}
.mission-quote {
  font-family: var(--serif); font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 600;
  line-height: 1.2; color: var(--ink); margin: 0 0 .5em;
}
.mission-body p { color: var(--text); }
@media (min-width: 900px) {
  .mission { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .mission .eyebrow { grid-column: 1 / -1; }
}

.section-dark { background: var(--ink); color: rgba(255, 255, 255, .82); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .section-intro { color: rgba(255, 255, 255, .72); }

.services {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 1px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden;
  counter-reset: s;
}
.services li {
  counter-increment: s; background: var(--ink-2); padding: 22px 22px 22px 72px; position: relative;
  color: #fff; font-weight: 500; line-height: 1.5;
}
.services li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 20px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-light); line-height: 1;
}
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* Projects */
.project { margin-top: clamp(40px, 6vw, 64px); }
.project + .project { padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.project-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.project-head h3 { margin: 0; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px; background: var(--ink); color: var(--gold-light);
}
.badge-outline { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 10px;
}
.gallery li { position: relative; }
.gallery a {
  display: block; overflow: hidden; border-radius: 10px; background: var(--bg-soft);
  aspect-ratio: 3 / 4;
}
.gallery .wide { grid-column: span 2; }
.gallery .wide a { aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.gallery-captions .caption {
  display: block; font-size: .92rem; font-weight: 500; color: var(--ink); margin-top: 8px; line-height: 1.4;
}

.location {
  margin-top: 28px; display: grid; gap: 20px; align-items: center;
  background: var(--bg-soft); border-radius: var(--radius); padding: 16px;
}
.location-map { display: block; border-radius: 10px; overflow: hidden; }
.location h4 { margin-bottom: .3em; }
.location p { color: var(--muted); margin-bottom: .5em; }
@media (min-width: 768px) {
  .location { grid-template-columns: 1.4fr 1fr; padding: 20px 28px 20px 20px; gap: 32px; }
}

.text-link { font-weight: 600; text-decoration: none; color: var(--gold-dark); }
.text-link:hover { text-decoration: underline; }

/* Contact */
.section-contact { background: var(--bg-soft); }
.contact { display: grid; gap: 32px; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.contact-list dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.15rem; color: var(--ink); }
.contact-list dd > a:first-child { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.35rem; }
.contact-list dd > a:first-child:hover { color: var(--gold-dark); }
.contact-list address { font-style: normal; margin-bottom: .5em; }
.contact-list .text-link { font-size: .95rem; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-list > div:last-child { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 28px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.footer-inner img { border-radius: 8px; background: #fff; }
.footer-inner p { margin: 0; flex: 1 1 auto; }
.to-top { color: var(--gold-light); text-decoration: none; font-weight: 500; }
.to-top:hover { text-decoration: underline; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 13, 12, .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 13, 12, .85); }
.lightbox-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
@media (max-width: 599px) {
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}
