:root {
  --bg: #12100d;
  --bg-2: #1a1713;
  --bg-3: #221e18;
  --ink: #f4eee4;
  --muted: #b4a48e;
  --faint: #7a6e5d;
  --line: rgba(244, 238, 228, 0.12);
  --line-strong: rgba(244, 238, 228, 0.22);
  --accent: #d06a2b;
  --accent-2: #e8b06a;
  --oak: #c9a06a;
  --ok: #c9d4b8;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-2);
  font-weight: 500;
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(18, 16, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #000;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 0.86rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.68rem; color: var(--muted); }
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  border-radius: 999px;
}
.nav a:hover, .nav a.is-active { color: var(--ink); background: rgba(255,255,255,0.05); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #1a0e08; }
.btn-primary:hover { background: #e07838; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.nav .btn { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,13,0.15) 0%, rgba(18,16,13,0.25) 40%, rgba(18,16,13,0.92) 100%),
    linear-gradient(90deg, rgba(18,16,13,0.45), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 56px;
}
.hero-copy p.lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e7dccb;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta strong { display: block; color: var(--ink); font-size: 1.35rem; font-family: var(--font-display); font-weight: 500; }

/* Sections */
section { padding: 88px 0; }
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  max-width: 42rem;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 8px 0 8px; }
.num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-2);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  padding: 22px 18px;
  border-top: 1px solid var(--line-strong);
}
.step span { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid a, .gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-3);
  aspect-ratio: 4/5;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid.masonry a:nth-child(3n) { aspect-ratio: 4/6; }
.gallery-grid.masonry a:nth-child(5n) { aspect-ratio: 1/1; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.filter.is-on, .filter:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.cta-band {
  background:
    linear-gradient(180deg, rgba(18,16,13,0.35), rgba(18,16,13,0.82)),
    url("../img/hero.jpg") center/cover no-repeat;
  border-block: 1px solid var(--line);
}
.cta-inner {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  text-align: center;
}

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
}
.legal {
  max-width: 720px;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer a:hover { color: var(--ink); }
.tiny { font-size: 0.8rem; color: var(--faint); }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(8,6,4,0.92);
  display: none;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb.is-open { display: flex; }
.lb img {
  max-width: min(1100px, 100%);
  max-height: 88svh;
  object-fit: contain;
  border-radius: 8px;
}
.lb-close, .lb-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.4rem;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* Mobile first overrides */
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18,16,13,0.97);
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 10px; font-size: 1.05rem; }
  .nav .btn { width: 100%; margin-top: 8px; min-height: 48px; }
  .menu-toggle { display: inline-flex; }
  .split, .cards, .process, .gallery-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid.masonry a:nth-child(3n),
  .gallery-grid.masonry a:nth-child(5n) { aspect-ratio: 4/5; }
  section { padding: 64px 0; }
  .hero { min-height: 86svh; }
  .hero-copy { margin-bottom: 28px; }
  .hero-meta { gap: 16px 24px; }
}

@media (max-width: 520px) {
  .wrap, .hero-copy { width: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .brand-text { display: none; }
  .gallery-grid { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
