:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #1c211f;
  --ink-2: #4a514d;
  --muted: #7a7f79;
  --line: #d9d3c5;
  --green: #22392f;
  --green-2: #2f4d40;
  --clay: #b5603a;
  --steel: #4f6f86;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

h1, h2, h3 { font-weight: 400; margin: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h1 em, h2 em { color: var(--clay); }
h3 { font-size: 1.05rem; font-weight: 600; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-2);
}
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--green); color: var(--paper); font: 400 1.4rem/1 var(--serif); border-radius: 2px;
}
.brand-name { font: 400 1.35rem/1 var(--serif); white-space: nowrap; }
.brand-name em, .footer-brand em { color: var(--muted); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--radius);
  background: var(--green); color: var(--paper); border: 1px solid var(--green);
  transition: background 0.15s;
}
.btn:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-light { background: var(--paper); color: var(--green); border-color: var(--paper); }
.btn-light:hover { background: #fff; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 2px; white-space: nowrap; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-map { margin: 0; }
.hero-map figcaption { display: flex; gap: 8px 16px; align-items: center; font-size: 0.8rem; color: var(--muted); margin-top: 8px; justify-content: flex-end; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 -10px 0 6px; }
.dot-retail { background: var(--clay); }
.dot-industrial { background: var(--steel); }

/* Map */
.us-map { width: 100%; height: auto; display: block; overflow: visible; }
.us-map .states path { fill: var(--paper-2); stroke: var(--paper); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.us-map .states path.on { fill: #dcd5c4; }
.us-map .pin circle { r: calc(6.5px / var(--k, 1)); stroke: var(--paper); stroke-width: calc(1.8px / var(--k, 1)); transition: r 0.15s; cursor: pointer; }
.pin-retail circle { fill: var(--clay); }
.pin-industrial circle { fill: var(--steel); }
.us-map .pin:hover circle, .us-map .pin:focus circle { r: calc(10px / var(--k, 1)); }
.map-panel { margin: 8px auto 48px; }

/* Zoomable map */
.map-zoom { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.map-zoom .us-map { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map-zoom.zoomed .us-map { touch-action: none; }
.map-zoom.dragging .us-map { cursor: grabbing; }
.map-zoom.dragging .pin circle { transition: none; }
.zoom-ctrl { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); box-shadow: 0 2px 8px rgb(0 0 0 / 0.06); }
.zoom-ctrl button { width: 36px; height: 36px; border: 0; background: none; font: 500 1.15rem/1 var(--sans, inherit); color: var(--ink, inherit); cursor: pointer; }
.zoom-ctrl button + button { border-top: 1px solid var(--line); }
.zoom-ctrl button:hover { background: var(--paper-2); }
.zoom-hint { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); text-align: right; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stats-grid div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { font: 400 3rem/1 var(--serif); color: var(--green); }
.stats-grid span { font-size: 0.9rem; color: var(--ink-2); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head.split > div { max-width: 700px; }

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.process li { padding: 28px 28px 8px 0; }
.process li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.process .num { font: italic 400 1.6rem/1 var(--serif); color: var(--clay); }
.process h3 { margin: 18px 0 10px; font-size: 1.15rem; }
.process p { margin: 0; color: var(--ink-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.section-alt .card { background: #faf8f3; }
.card:target { outline: 2px solid var(--clay); outline-offset: 2px; }
.card-img { position: relative; aspect-ratio: 648 / 394; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.img-ph {
  height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, #e4dece 12px 13px);
}
.img-ph span { font: italic 400 1.7rem/1 var(--serif); color: var(--muted); }
.tag {
  position: absolute; top: 12px; left: 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; color: #fff;
}
.tag-retail { background: var(--clay); }
.tag-industrial { background: var(--steel); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font: 400 1.6rem/1.1 var(--serif); }
.card h3 span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.card .meta { margin: 6px 0 12px; font-size: 0.8rem; font-weight: 500; color: var(--green-2); }
.card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.map-link { margin-top: auto; padding-top: 14px; font-size: 0.85rem; font-weight: 500; color: var(--green-2); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* Clients */
.clients { text-align: center; }
.client-list { list-style: none; padding: 0; margin: 8px 0 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.client-list li { font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--serif); color: var(--ink-2); }
.clients blockquote { margin: 0 auto; max-width: 640px; font: italic 400 1.35rem/1.45 var(--serif); color: var(--ink-2); }

/* Band */
.band { background: var(--green); color: var(--paper); padding: 72px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { max-width: 640px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Page head */
.page-head { padding: 80px 0 40px; }
.page-head h1 { max-width: 900px; }
.page-head .lede { max-width: 60ch; }

/* Projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: var(--paper); }
.filters button {
  font: 500 0.9rem var(--sans); color: var(--ink-2); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
}
.filters button span { color: var(--muted); margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button[aria-pressed="true"] span { color: var(--paper-2); }
.state-group { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.state-group h2 { font-size: 2rem; margin-bottom: 24px; }
.state-group h2 span { font: 500 0.9rem var(--sans); color: var(--muted); vertical-align: middle; margin-left: 6px; }
.page-projects .band { margin-top: 48px; }

/* About */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 64px; }
.person { border-top: 1px solid var(--ink); padding-top: 24px; }
.person-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.initials {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--paper); font: 400 1.4rem/1 var(--serif);
}
.person h3 { font: 400 1.8rem/1.1 var(--serif); }
.person .role { margin: 2px 0 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.person > p { color: var(--ink-2); margin: 0 0 12px; }
.person > p:last-child { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; padding-bottom: 64px; }
.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list dd { margin: 0; font: 400 1.5rem/1.3 var(--serif); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--clay); }

/* Footer */
.site-footer { background: var(--ink); color: #cfcabe; padding: 56px 0 28px; font-size: 0.92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .eyebrow { color: #8f948d; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin: 0 0 6px; }
.footer-brand { font: 400 1.6rem/1.2 var(--serif); color: var(--paper); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #343a37; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 6px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav { margin-left: -12px; }
  .filters { top: 98px; }
  .section { padding: 64px 0; }
  .cards, .process, .footer-grid { grid-template-columns: 1fr; }
  .process li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .stats-grid div { padding: 20px 12px; }
  .stats-grid strong { font-size: 2.3rem; }
  .contact-list dd { font-size: 1.2rem; word-break: break-word; }
}

/* Map popup */
.map-pop { position: absolute; z-index: 5; width: 300px; max-height: calc(100% - 16px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.16); }
.map-pop.docked { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70%; }
.map-pop .card { border: 0; box-shadow: none; height: auto; }
.map-pop .card:hover { transform: none; }
.map-pop .card-body { padding: 14px 16px 16px; }
.map-pop .card-body h3 { font-size: 1.35rem; }
.map-pop .card-body p { font-size: 0.875rem; }
.pop-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / 0.15); }
.pop-close:hover { background: #fff; }
.us-map .pin.active circle { r: calc(10px / var(--k, 1)); stroke: var(--ink); }
