/* ===== Design tokens ===== */
:root {
  --bg-light: #f6f3ee;
  --bg-dark: #141209;
  --text-primary: #211f1b;
  --text-secondary: #5a564c;
  --text-muted: #b9b3a4;
  --text-muted-2: #8f8a7c;
  --text-faint: #7d7969;
  --offwhite: #f6f3ee;
  --offwhite-2: #e8e3d9;
  --offwhite-3: #d8d2c4;
  --gold: #c79a63;
  --gold-dark: #a9824a;    /* eyebrows on light bg (better contrast) */
  --link: #b0895a;
  --link-hover: #8a6a41;
  --divider: #ddd6c8;
  --field-border: #4a4636;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, sans-serif;
  --pad-x: 56px;
  --radius: 2px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-light);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--bg-dark); color: var(--offwhite);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Shared ===== */
.eyebrow {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--dark { color: var(--gold-dark); }

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; margin: 0;
}
.section-title--light { color: var(--offwhite); max-width: 700px; }

.btn {
  display: inline-block; font-size: 14px; letter-spacing: 0.04em;
  padding: 15px 32px; border-radius: var(--radius); font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: opacity .2s ease, background .2s ease;
}
.btn--filled { background: var(--gold); color: var(--bg-dark); }
.btn--filled:hover { color: var(--bg-dark); opacity: .9; }
.btn--outline { border-color: rgba(246,243,238,0.4); color: var(--offwhite); }
.btn--outline:hover { color: var(--offwhite); border-color: var(--offwhite); }
.btn--block { width: 100%; border: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  background: rgba(20,18,14,0.92); backdrop-filter: blur(6px);
}
.nav__logo { display: flex; align-items: flex-end; gap: 11px; }
.nav__logo-icon { display: block; height: 34px; width: auto; position: relative; top: 2px; }
.nav__logo-text {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--offwhite); line-height: 1;
  white-space: nowrap;
}
.nav__logo-text span { color: var(--gold); }
.nav__logo:hover .nav__logo-text { color: var(--offwhite); }
.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__menu a {
  color: var(--offwhite-2); font-size: 14px; letter-spacing: 0.04em;
}
.nav__menu a:hover { color: var(--gold); }
.nav__phone {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 9px 20px; font-size: 13px; letter-spacing: 0.05em;
  border-radius: var(--radius);
}
.nav__phone:hover { background: var(--gold); color: var(--bg-dark) !important; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--offwhite);
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Hero ===== */
.hero { position: relative; height: 92vh; min-height: 640px; width: 100%; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,11,0.35) 0%, rgba(15,14,11,0.55) 55%, rgba(15,14,11,0.88) 100%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) 72px; max-width: 760px;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.05;
  color: var(--offwhite); margin: 0;
}
.hero__sub {
  font-size: 17px; color: var(--offwhite-3); max-width: 520px;
  margin: 22px 0 0; line-height: 1.6;
}
.hero__cta { margin-top: 34px; display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== Services ===== */
.services { padding: 120px var(--pad-x); background: var(--bg-light); }
.services__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px; flex-wrap: wrap; gap: 24px;
}
.services__head > div { max-width: 560px; }
.services__lede { max-width: 380px; font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--divider);
}
.service { background: var(--bg-light); padding: 40px 32px; margin: 0; }
.service__num { font-family: var(--serif); font-size: 15px; color: var(--gold-dark); margin: 0 0 16px; }
.service__title { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 12px; }
.service__body { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ===== Projects ===== */
.projects { background: var(--bg-dark); padding: 120px var(--pad-x) 100px; }
.projects__head { margin-bottom: 72px; }
.project {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; margin-bottom: 120px;
}
.project:last-child { margin-bottom: 0; }
.project--mirror { grid-template-columns: 0.9fr 1.1fr; }
.project__collage {
  display: grid; grid-template-rows: 220px 220px; gap: 14px;
}
.project__collage--a { grid-template-columns: 1.3fr 1fr; }
.project__collage--b { grid-template-columns: 1fr 1.3fr; }
.project__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.collage__tall { grid-row: 1 / 3; }
.project__title { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--offwhite); margin: 0 0 18px; }
.project__body { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin: 0 0 26px; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; }
.stat dt { font-family: var(--serif); font-size: 22px; color: var(--offwhite); }
.stat dd {
  margin: 0; font-size: 12px; color: var(--text-muted-2);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ===== Contact ===== */
.contact { background: var(--bg-light); padding: 120px var(--pad-x); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__lede { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; max-width: 440px; margin: 24px 0 40px; }
.contact__card { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar {
  width: 40px; height: 40px; border: 1px solid var(--gold-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark); font-family: var(--serif); font-size: 16px;
}
.contact__name { font-size: 15px; font-weight: 500; margin: 0; }
.contact__role { font-size: 13px; color: #8a856f; margin: 0; }
.contact__link { font-size: 15px; margin: 0 0 6px; }
.contact__link a { color: var(--text-primary); }
.contact__link a:hover { color: var(--gold-dark); }

.contact__formcard { background: var(--bg-dark); padding: 44px; border-radius: var(--radius); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--field-border);
  color: var(--offwhite); font-size: 14px; padding: 10px 2px;
  font-family: var(--sans); width: 100%;
}
.field textarea { resize: vertical; }
.field select { color: var(--text-muted); }
.field option { background: var(--bg-dark); color: var(--offwhite); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted-2); }
.hidden-field { position: absolute; left: -9999px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark); padding: 32px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #2a2718; flex-wrap: wrap; gap: 12px;
}
.footer__mark { display: inline-flex; align-items: center; gap: 12px; }
.footer__icon { display: block; height: 40px; width: auto; }
.footer__wordmark {
  font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--offwhite); line-height: 1;
}
.footer__mark:hover .footer__wordmark { color: var(--offwhite); }
.footer__legal { font-size: 12.5px; color: var(--text-faint); margin: 0; }

/* ===== Entrance animation ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 0.9s cubic-bezier(.2,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  :root { --pad-x: 32px; }
  .services, .projects, .contact { padding-top: 88px; padding-bottom: 88px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(20,18,14,0.98); padding: 8px var(--pad-x) 24px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open .nav__menu { max-height: 320px; }
  .nav__menu a { padding: 12px 0; font-size: 16px; }
  .nav__phone { margin-top: 8px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Stack projects */
  .project, .project--mirror { grid-template-columns: 1fr; gap: 32px; }
  /* Keep copy above imagery on the mirrored one for reading order */
  .project--mirror .project__copy { order: -1; }
}

@media (max-width: 560px) {
  .hero { height: auto; min-height: 0; }
  .hero__bg { position: relative; height: 78vh; }
  .hero__content { position: absolute; }
  .project__collage { grid-template-rows: 160px 160px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__formcard { padding: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
  /* Keep the wordmark on one line beside the hamburger */
  .nav__logo { gap: 9px; }
  .nav__logo-icon { height: 28px; }
  .nav__logo-text { font-size: 16px; letter-spacing: 0.045em; }
}
