:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --text-hero: clamp(2.5rem, 1rem + 5.5vw, 5.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --color-bg: #f4efe6;          /* unfinished pine / paper */
  --color-surface: #fbf8f2;
  --color-ink: #23201b;         /* charcoal */
  --color-ink-2: #3a352d;
  --color-muted: #6b6457;
  --color-line: #ddd4c4;
  --color-accent: #b5651d;      /* carpenter-pencil amber */
  --color-accent-hover: #934f12;
  --color-accent-soft: #e3a646;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --radius: 4px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--space-6), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--color-ink); color: #fff; padding: var(--space-2) var(--space-4); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-3) var(--space-6);
  font: 700 var(--text-sm)/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--small { padding: var(--space-2) var(--space-4); }
.btn--large { padding: var(--space-4) var(--space-8); font-size: var(--text-base); margin-top: var(--space-8); overflow-wrap: anywhere; }

.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-soft); margin-bottom: var(--space-4);
}
.eyebrow--dark { color: var(--color-accent); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 32, 27, .94);
  backdrop-filter: blur(10px);
  color: #fff;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  font: 700 1.05rem/1 var(--font-display);
  color: var(--color-ink); background: var(--color-accent-soft); border-radius: var(--radius);
}
.brand__name { font: 700 var(--text-lg)/1 var(--font-display); white-space: nowrap; }
.brand__name span { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 500; letter-spacing: .12em; color: #cfc6b6; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: #e9e3d7; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,15,.9) 0%, rgba(20,18,15,.6) 50%, rgba(20,18,15,.3) 100%), linear-gradient(to right, rgba(20,18,15,.45), rgba(20,18,15,0) 60%); }
.nowrap { white-space: nowrap; }
.hero .eyebrow { color: #f3d9a8; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1, .hero__lede { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero__content { position: relative; padding-block: var(--space-24) var(--space-16); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-hero); letter-spacing: -0.02em; max-width: 14ch; }
.hero__lede { font-size: var(--text-lg); line-height: 1.45; color: #ece6da; max-width: 40ch; margin-top: var(--space-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section__head { max-width: 640px; margin-bottom: var(--space-12); }
.section h2, .about h2 { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.01em; }

/* Services */
.services { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.service {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service--tall img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.service__body { padding: var(--space-6) var(--space-8) var(--space-8); }
.service__num { display: block; font: 700 var(--text-xs)/1 var(--font-body); letter-spacing: .14em; color: var(--color-accent); margin-bottom: var(--space-3); }
.service h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.service p { color: var(--color-muted); max-width: 52ch; }

@media (min-width: 900px) {
  .services { grid-template-columns: 7fr 5fr; grid-template-areas: "a b" "c b" "d b"; }
  .service:nth-child(1) { grid-area: a; }
  .service:nth-child(2) { grid-area: b; }
  .service:nth-child(3) { grid-area: c; }
  .service:nth-child(4) { grid-area: d; }
}
@media (max-width: 899px) {
  .service--tall img { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
}

/* About */
.about { background: var(--color-ink); color: #ece6da; padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.about__grid { display: grid; gap: var(--space-12); align-items: center; grid-template-columns: 1fr; }
.about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about h2 { color: #fff; margin-bottom: var(--space-6); }
.about__text > p { max-width: 58ch; color: #d6cfc2; }
.promise { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-3); }
.promise li { padding-left: var(--space-8); position: relative; color: #d6cfc2; }
.promise li::before { content: ""; position: absolute; left: 0; top: .7em; width: 18px; height: 2px; background: var(--color-accent-soft); }
.promise strong { color: #fff; font-weight: 700; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 6fr 5fr; gap: var(--space-16); } }

/* Contact */
.contact__grid { display: grid; gap: var(--space-12); grid-template-columns: 1fr; align-items: start; }
.contact__lede { color: var(--color-muted); margin-top: var(--space-4); max-width: 46ch; }
.contact__card { background: var(--color-surface); border: 1px solid var(--color-line); border-left: 4px solid var(--color-accent); border-radius: var(--radius); padding: var(--space-8); }
.contact__card h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-4); }
.contact__card ol { margin: 0; padding-left: var(--space-6); display: grid; gap: var(--space-2); }
.contact__area { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: var(--text-sm); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }

/* Footer */
.footer { background: #1a1814; color: #b9b1a3; padding-block: var(--space-12); font-size: var(--text-sm); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); }
.footer__brand { font: 700 var(--text-lg)/1.2 var(--font-display); color: #fff; margin-bottom: var(--space-1); }
.footer__meta { text-align: right; display: grid; gap: var(--space-1); }
.footer a { color: var(--color-accent-soft); }

@media (max-width: 640px) {
  .nav li:not(:last-child) { display: none; }
  .brand__name span { display: none; }
  .hero { min-height: 82vh; }
  .footer__meta { text-align: left; }
}

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