: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.625rem, 1.2rem + 1.5vw, 2.5rem);
  --text-hero: clamp(2.5rem, 1rem + 4.6vw, 5rem);

  --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; --space-32: 8rem;

  --olive: #5f710f;
  --olive-deep: #45520a;
  --olive-ink: #2a3108;
  --sage: #adb564;
  --bg: #f6f4ec;
  --surface: #fbfaf5;
  --surface-2: #eeebdf;
  --text: #1f2316;
  --muted: #5d6052;
  --line: rgb(42 49 8 / 0.14);

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: min(var(--wrap), 100% - 2 * clamp(var(--space-5), 5vw, var(--space-12))); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--olive); color: #fff; padding: var(--space-3) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); top: var(--space-4); }

h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--space-4); }
.eyebrow-dark { color: var(--olive); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; letter-spacing: .01em;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-4); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); }
.btn-light { background: #fff; color: var(--olive-ink); }
.btn-light:hover { background: var(--surface-2); }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .7); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 250 245 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-8); min-height: 80px; padding-block: var(--space-2); }
.brand img { width: clamp(112px, 12vw, 156px); height: auto; }
.nav { display: flex; gap: var(--space-8); margin-left: auto; }
.header-inner > nav { margin-left: auto; }
.brand img { display: block; }
.nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--text); padding-block: var(--space-2); border-bottom: 1.5px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.nav a:hover { color: var(--olive); border-color: var(--olive); }
@media (max-width: 860px) {
  nav[aria-label="Primary"] { display: none; }
  .header-inner { justify-content: space-between; min-height: 68px; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(20 24 8 / 0) 30%, rgb(20 24 8 / .78) 100%),
    linear-gradient(90deg, rgb(20 24 8 / .68) 0%, rgb(20 24 8 / .25) 45%, rgb(20 24 8 / 0) 70%); }
.hero-content { padding-block: clamp(var(--space-12), 10vh, var(--space-24)); }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; }
.hero-lede { max-width: 48ch; margin-top: var(--space-6); font-size: var(--text-base); color: rgb(255 255 255 / .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero .eyebrow { color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.hero h1, .hero-lede { text-shadow: 0 1px 18px rgb(0 0 0 / .3); }

/* Band (echoes the sign band) */
.band { background: var(--olive); color: #fff; }
.band p { padding-block: var(--space-4); font-size: var(--text-sm); font-weight: 500; letter-spacing: .32em; text-transform: uppercase; text-align: center; }
.band span { color: var(--sage); padding-inline: var(--space-2); }

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-head { max-width: 640px; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }

/* Services */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.feature-body h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.15; margin-bottom: var(--space-4); }
.feature-body p { color: var(--muted); }
.ticks { margin-top: var(--space-6); border-top: 1px solid var(--line); }
.ticks li { padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-weight: 500; display: flex; gap: var(--space-3); align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--sage); transform: translateY(-1px); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-6), 3vw, var(--space-10)); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: var(--space-6) var(--space-6) var(--space-8); }
.card-body h3 { margin-bottom: var(--space-2); }
.card-body p { color: var(--muted); }

/* Process */
.process { background: var(--surface-2); }
.process-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.process-intro { position: sticky; top: 120px; }
.process-intro p:last-child { margin-top: var(--space-6); color: var(--muted); max-width: 42ch; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--olive); min-width: 2.2ch; }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--muted); }

/* Area */
.area-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.towns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-8) var(--space-6); }
.towns li { padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); font-weight: 500; background: var(--surface); }
.creds { background: var(--olive-ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.creds h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); margin-bottom: var(--space-6); }
.creds dl > div { padding-block: var(--space-4); border-top: 1px solid rgb(255 255 255 / .16); }
.creds dt { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.creds dd { margin-top: var(--space-1); font-weight: 500; }

/* Modular */
.modular { background: var(--olive); color: #fff; padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.modular-inner { display: grid; grid-template-columns: 1.5fr auto; gap: var(--space-10); align-items: center; }
.modular p { margin-top: var(--space-3); max-width: 58ch; color: rgb(255 255 255 / .88); }
.modular-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.link-light { color: #fff; font-weight: 600; text-underline-offset: 4px; padding-block: var(--space-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.contact-grid > div > p:not(.eyebrow) { margin-block: var(--space-6) var(--space-8); color: var(--muted); max-width: 46ch; }
.contact-list > div { padding-block: var(--space-5); border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.contact-list dd { margin-top: var(--space-1); font-size: var(--text-lg); font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--space-10); font-size: var(--text-xs); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }
.footer-logo { width: 96px; }
.footer-inner p:last-child { margin-left: auto; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--olive); }

@media (max-width: 860px) {
  .feature, .pair, .process-grid, .area-grid, .modular-inner, .contact-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .hero { min-height: 82svh; }
  .band p { letter-spacing: .2em; font-size: var(--text-xs); }
  .footer-inner p:last-child { margin-left: 0; }
}
@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-sm span { font-size: var(--text-xs); }
}
@media (max-width: 860px) {
  .hero-shade { background: linear-gradient(180deg, rgb(20 24 8 / .15) 0%, rgb(20 24 8 / .55) 35%, rgb(20 24 8 / .85) 100%); }
  .hero-img { object-position: 60% 50%; }
}

/* Recent project gallery */
.project { padding-top: 0; }
.project .lede { margin-top: var(--space-5); color: var(--muted); max-width: 58ch; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(var(--space-2), 1.2vw, var(--space-4)); grid-auto-flow: dense; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-w { grid-column: span 2; grid-row: span 2; aspect-ratio: 4 / 3; }
.gallery .g-t { grid-row: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g-w { grid-row: auto; }
  .gallery .g-t { grid-row: auto; aspect-ratio: 3 / 4; }
}
