:root {
  --bg: #f5f2ec;
  --bg-alt: #ece7dd;
  --ink: #17160f;
  --ink-soft: #5b584d;
  --line: rgba(23, 22, 15, 0.12);
  --accent: #a8532f;
  --accent-soft: #c97a52;
  --max: 1180px;
  --gap: clamp(20px, 4vw, 32px);
  --section-pad: clamp(72px, 11vw, 150px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
a { text-decoration: none; color: inherit; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 600;
}
.eyebrow-light { color: rgba(255,255,255,0.85); }

.section-heading {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 28px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,.8,.3,1), transform 0.9s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); border: none; width: 100%; justify-content: center; padding: 16px 30px; }
.btn-dark:hover { background: var(--accent); }
.btn-dark span { transition: transform 0.25s ease; }
.btn-dark:hover span { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; filter: brightness(0) invert(1); transition: filter 0.4s ease; }
.site-header.scrolled .logo img { filter: none; }
.logo-word {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.4s ease;
}
.site-header.scrolled .logo-word { color: var(--ink); }

.main-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
.main-nav a:hover::after { right: 0; }
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a:hover { color: var(--ink); }

.nav-cta { flex-shrink: 0; padding: 10px 22px; font-size: 13px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: #fff; transition: background 0.4s ease; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #10100c;
  display: flex;
  align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,8,0.35) 0%, rgba(10,10,8,0.25) 40%, rgba(10,10,8,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap) 110px;
  width: 100%;
  color: #fff;
}
.hero-heading {
  font-size: clamp(40px, 7.5vw, 92px);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 26px;
  max-width: 16ch;
}
.hero-heading span { display: block; }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); max-width: 46ch; color: rgba(255,255,255,0.88); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: var(--gap);
  bottom: 36px;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: #fff;
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* About */
.about { padding: var(--section-pad) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: calc(var(--gap) * 2);
}
.about-heading { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.about-body p { color: var(--ink-soft); font-size: 17px; max-width: 58ch; margin: 0 0 20px; }
.stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.stat-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* Work / Gallery */
.work { padding: var(--section-pad) 0; background: var(--bg-alt); }
.work .section-inner { margin-bottom: 48px; }
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-item { overflow: hidden; border-radius: 2px; position: relative; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.16,.8,.3,1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(23,22,15,0);
  transition: background 0.4s ease;
}
.gallery-item:hover::after { background: rgba(23,22,15,0.08); }
.g-normal { grid-row: span 2; }
.g-tall { grid-row: span 3; }
.g-wide { grid-column: span 2; grid-row: span 2; }

/* Testimonials */
.testimonials { padding: var(--section-pad) 0; text-align: center; }
.testimonial-slider { max-width: 720px; position: relative; min-height: 160px; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadein 0.8s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-quote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; color: var(--ink); margin: 0 0 24px; }
.testimonial-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Services */
.services { padding: var(--section-pad) 0; }
.services-list { margin-top: 20px; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 40px;
  align-items: center;
  gap: 24px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s ease;
}
.service-row:hover { padding-left: 16px; }
.service-number { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); }
.service-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); transition: color 0.3s ease; }
.service-row:hover .service-title { color: var(--accent); }
.service-desc { font-size: 15px; color: var(--ink-soft); max-width: 42ch; }
.service-arrow { justify-self: end; font-size: 20px; transition: transform 0.3s ease, color 0.3s ease; }
.service-row:hover .service-arrow { transform: translateX(6px); color: var(--accent); }

/* Contact */
.contact { padding: var(--section-pad) 0; background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 2); align-items: start; }
.contact-lede { color: var(--ink-soft); font-size: 17px; max-width: 40ch; }
.field { position: relative; margin-bottom: 30px; }
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  padding: 10px 2px;
  color: var(--ink);
  resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field label {
  position: absolute;
  left: 2px; top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #3f6b3a; }
.form-status.error { color: #a8352c; }

/* Footer */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-word { font-family: var(--serif); color: var(--ink); }
.footer-top { transition: color 0.25s ease; }
.footer-top:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-tall { grid-row: span 2; }
  .service-row { grid-template-columns: 40px 1fr 30px; }
  .service-desc { display: none; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 10px 0 24px;
  }
  .header-inner.open .main-nav ul { flex-direction: column; gap: 4px; padding: 0 var(--gap); }
  .header-inner.open .main-nav a { color: var(--ink); display: block; padding: 12px 0; }
}
