@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --white: #ffffff;
  --off-white: #fafaf8;
  --warm: #f4f2ef;
  --border: #e5e2dd;
  --muted: #8c8681;
  --body: #4a4540;
  --heading: #1a1714;
  --black: #0f0e0c;
  --accent: #2c2c2c;
  --accent-h: #1a1a1a;
  --brass: #b08d57;
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Libre Baskerville', Georgia, serif;
  --ease: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-h); color: var(--heading); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-weight: 400; font-size: 1.08rem; color: var(--muted); line-height: 1.65; }

p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-h);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-bottom: 10px; }
.section-header .subtitle {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 16px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,14,12,0.12); }

.btn-outline { background: transparent; color: var(--heading); border: 1.5px solid var(--heading); }
.btn-outline:hover { background: var(--heading); color: var(--white); }

.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--warm); transform: translateY(-2px); }

.btn-white-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-white-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-link {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--brass);
  transition: color var(--ease);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.btn-link:hover { color: var(--heading); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-links a {
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--body);
  transition: color var(--ease);
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--heading); }

.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

.nav-links a.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--heading); margin: 5px 0; transition: all 0.3s ease; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) contrast(1.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}

.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h4 { color: rgba(255,255,255,0.78); margin-bottom: 32px; font-family: var(--font-b); font-style: italic; }
.hero .eyebrow { color: var(--brass); margin-bottom: 20px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-warm { background: var(--warm); }
.section-dark { background: var(--black); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p, .section-dark h4 { color: rgba(255,255,255,0.65); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; text-align: center; }
.stat { padding: 28px 16px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-number { font-family: var(--font-h); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--heading); line-height: 1; margin-bottom: 6px; }
.stat-label { font-family: var(--font-h); font-size: 0.72rem; color: var(--muted); font-weight: 500; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--ease);
}
a.service-card { display: block; color: inherit; text-decoration: none; }
.service-card:hover { border-color: var(--heading); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,14,12,0.06); cursor: pointer; }
.service-icon { margin-bottom: 20px; color: var(--brass); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.service-card p { font-size: 0.84rem; color: var(--body); margin-bottom: 16px; }

/* ── Process ── */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; text-align: center; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: var(--border); }
.process-step { position: relative; z-index: 1; }
.step-num { font-family: var(--font-h); font-weight: 700; font-size: 0.7rem; color: var(--brass); letter-spacing: 0.05em; margin-bottom: 12px; }
.step-dot {
  width: 10px; height: 10px; border: 1.5px solid var(--border); background: var(--warm);
  margin: 0 auto 16px; border-radius: 50%; transition: all 0.3s ease;
}
.process-step:hover .step-dot { border-color: var(--heading); background: var(--heading); }
.process-step h3 { font-size: 0.9rem; margin-bottom: 8px; }
.process-step p { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { margin-bottom: 20px; line-height: 1.2; }
.about-content p { font-size: 0.9rem; }
.about-image { overflow: hidden; border-radius: 4px; }
.about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.7s ease; }
.about-image:hover img { transform: scale(1.03); }

.trust-badges {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  margin: 28px 0;
}
.badge { padding: 16px 10px; text-align: center; border-right: 1px solid var(--border); }
.badge:last-child { border-right: none; }
.badge-val { font-family: var(--font-h); font-weight: 700; font-size: 0.85rem; color: var(--heading); margin-bottom: 2px; }
.badge-label { font-family: var(--font-h); font-size: 0.62rem; color: var(--muted); }

.service-areas { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); text-align: center; }
.service-areas .eyebrow { margin-bottom: 10px; }
.service-areas p { font-family: var(--font-h); font-size: 0.82rem; color: var(--muted); line-height: 2; }

/* ── CTA Banner ── */
.cta-banner { text-align: center; padding: 80px 24px; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner .subtitle { color: rgba(255,255,255,0.55); margin-bottom: 32px; display: block; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { overflow: hidden; cursor: pointer; display: block; color: inherit; }
.project-img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; background: var(--warm); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(26,23,20,0.3); opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay span {
  font-family: var(--font-h); font-size: 0.72rem; font-weight: 600; color: var(--white);
  border: 1.5px solid var(--white); padding: 10px 24px; border-radius: 4px;
}
.project-info { padding: 14px 2px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.project-info h3 { font-size: 0.95rem; }
.project-tag {
  font-family: var(--font-h); font-size: 0.6rem; font-weight: 600; color: var(--brass);
  border: 1px solid rgba(176,141,87,0.3); padding: 3px 8px; border-radius: 2px;
}
.project-loc { font-family: var(--font-h); font-size: 0.75rem; color: var(--muted); margin-left: auto; }

/* Filters */
.filters { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-h); font-size: 0.72rem; font-weight: 600;
  padding: 10px 20px; background: none; border: 1.5px solid var(--border);
  color: var(--muted); cursor: pointer; border-radius: 4px; transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--heading); color: var(--heading); }

/* ── Testimonials ── */
.testimonials-wrap { max-width: 680px; margin: 0 auto; }
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.slide { min-width: 100%; padding: 0 8px; text-align: center; }
.quote {
  font-family: var(--font-b); font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.85; color: var(--body); font-style: italic; margin-bottom: 28px;
}
.author-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 600; font-size: 0.72rem; color: var(--muted);
}
.author-name { font-family: var(--font-h); font-weight: 600; font-size: 0.85rem; color: var(--heading); }
.author-detail { font-family: var(--font-h); font-size: 0.72rem; color: var(--muted); }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.carousel-btn {
  background: none; border: 1.5px solid var(--border); color: var(--body);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}
.carousel-btn:hover { border-color: var(--heading); color: var(--heading); }
.dots { display: flex; gap: 8px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: all 0.3s ease; border: none; padding: 0;
}
.dot.active { background: var(--heading); transform: scale(1.3); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 22px 0; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer; text-align: left; gap: 16px;
}
.faq-q span { font-family: var(--font-h); font-weight: 600; font-size: 0.92rem; color: var(--heading); line-height: 1.4; }
.faq-icon { flex-shrink: 0; color: var(--muted); transition: transform 0.3s ease; width: 18px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-a.open { max-height: 300px; padding-bottom: 22px; }
.faq-a p { font-size: 0.88rem; margin: 0; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-h); font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-h); font-size: 0.88rem; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: 4px; background: var(--white);
  color: var(--heading); transition: border-color var(--ease); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--heading); }
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info h3 { margin-bottom: 20px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-detail svg { width: 20px; height: 20px; color: var(--brass); flex-shrink: 0; margin-top: 2px; }
.contact-detail .label { font-family: var(--font-h); font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.contact-detail .value { font-family: var(--font-h); font-size: 0.9rem; color: var(--heading); }
.contact-detail a { color: var(--heading); transition: color var(--ease); }
.contact-detail a:hover { color: var(--brass); }

.setmore-wrap { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.setmore-wrap h3 { margin-bottom: 10px; }
.setmore-wrap p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: all var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,14,12,0.06); }
.blog-thumb { aspect-ratio: 16/9; background: var(--warm); overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 24px; }
.blog-body .eyebrow { margin-bottom: 8px; font-size: 0.6rem; }
.blog-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.35; }
.blog-body p { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.blog-meta { font-family: var(--font-h); font-size: 0.7rem; color: var(--muted); }

/* ── Footer ── */
.footer { background: var(--black); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-family: var(--font-h); font-weight: 600; font-size: 0.82rem; color: var(--white); margin-bottom: 16px; }
.footer p, .footer a { font-family: var(--font-h); font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer a:hover { color: var(--white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-areas { font-size: 0.72rem !important; color: rgba(255,255,255,0.3) !important; margin-top: 8px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; background: rgba(255,255,255,0.97); z-index: 9999;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(8px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; background: none; border: none;
  color: var(--heading); font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { color: var(--brass); }
.lightbox-img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: 4px; transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-cap { font-family: var(--font-h); font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 140px 0 60px;
  background: var(--warm);
  text-align: center;
  margin-top: 72px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Mobile CTA Bar ── */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--border); padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06); gap: 8px;
}
.mobile-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 16px; font-family: var(--font-h); font-weight: 600; font-size: 0.78rem;
  border-radius: 4px;
}
.mob-call { border: 1.5px solid var(--heading); color: var(--heading); }
.mob-quote { background: var(--accent); color: var(--white); }

/* ── Selection ── */
::selection { background: var(--heading); color: var(--white); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { min-height: 80vh; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-steps { grid-template-columns: 1fr; gap: 28px; padding-left: 40px; text-align: left; }
  .process-steps::before { top: 0; bottom: 0; left: 10px; right: auto; width: 1px; height: 100%; }
  .step-dot { position: absolute; left: -34px; top: 0; margin: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { aspect-ratio: 16/9; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .badge:nth-child(2) { border-right: none; }
  .badge:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Project Detail Pages ── */
.project-detail-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  margin-top: 72px;
  background: var(--black);
}
.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.project-detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.project-detail-hero-content h1 { color: var(--white); margin-bottom: 8px; }

.project-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.project-meta-item {
  flex: 1;
  padding: 20px 28px;
  border-right: 1px solid var(--border);
}
.project-meta-item:last-child { border-right: none; }
.project-meta-item .label {
  font-family: var(--font-h);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.project-meta-item .value {
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 60px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--warm);
  cursor: pointer;
}
.photo-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,23,20,0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-item:hover .photo-item-overlay { opacity: 1; }
.photo-item-overlay span { display: none; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 48px;
  transition: color var(--ease);
}
.back-link:hover { color: var(--heading); }

@media (max-width: 768px) {
  .project-detail-hero { height: 40vh; }
  .project-detail-hero-content { padding: 24px; }
  .project-meta { flex-direction: column; }
  .project-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .project-meta-item:last-child { border-bottom: none; }
  .photo-grid { grid-template-columns: 1fr; gap: 12px; }
  .photo-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ── Netlify Site Additions ── */

/* Form feedback messages */
.form-success, .form-error {
  display: none;
  padding: 16px 20px;
  border-radius: 4px;
  font-family: var(--font-h);
  font-size: 0.88rem;
  margin-top: 8px;
}
.form-success { background: #f0f9f0; border: 1px solid #a8d5a8; color: #2d6a2d; }
.form-error { background: #fdf0f0; border: 1px solid #d5a8a8; color: #6a2d2d; }
.form-success.visible, .form-error.visible { display: block; }

/* Active nav link indicator */
.nav-links a.page-active { color: var(--heading); font-weight: 600; }

/* Hero fallback background (shows while image loads or if missing) */
.hero-bg { background: var(--black); }

/* Project card hidden state for filter */
.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
