:root {
  --concrete: #E7E8E4;
  --paper: #F6F6F3;
  --graphite: #23282C;
  --steel: #5A636A;
  --rule: #B6BAB4;
  --chalk: #1F57A3;
  --chalk-light: #8DB0E0;
  --display: "Avenir Next Condensed", "Bahnschrift", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --wrap: 72rem;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--steel) var(--concrete);
  /* keeps a focused field clear of the sticky call bar on phones */
  scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-tap-highlight-color: rgba(31, 87, 163, .14);
}

::selection { background: var(--chalk); color: #fff; }

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--chalk); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 2px;
}
/* on the dark footer and the sticky bar, chalk blue is too close to the ground for a focus ring */
.site-footer a:focus-visible { outline-color: var(--chalk-light); }
.sticky a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

h1, h2, .wordmark, .btn, .sticky a, label, .owner strong, .owner .title, .lic-line {
  font-family: var(--display);
  font-stretch: condensed;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 2px solid var(--graphite);
  background: var(--concrete);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: .01em;
}
.wordmark svg { width: 1.9rem; height: 1.9rem; flex: none; }
.wordmark span small {
  display: block;
  font-weight: 500;
  font-size: .78rem;
  color: var(--steel);
  margin-top: .2rem;
  letter-spacing: .02em;
}
.header-call {
  display: none;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover { color: var(--chalk); }

/* ---------- hero ---------- */
.hero {
  background-color: var(--concrete);
  background-image:
    linear-gradient(rgba(31, 87, 163, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 87, 163, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 2px solid var(--graphite);
}
.hero-grid { display: grid; gap: 2rem; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 11.5vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.005em;
  margin: 0 0 1.5rem;
  max-width: 11ch;
}

/* owner's name and title, set like the signature line on a drawing */
.owner {
  margin: 0 0 1.25rem;
  padding-top: .8rem;
  border-top: 1px solid var(--graphite);
  max-width: 26rem;
  line-height: 1.15;
}
.owner .by { display: block; font-style: italic; font-size: 1rem; color: var(--steel); }
.owner strong { display: block; font-weight: 700; font-size: 1.9rem; line-height: 1.05; margin-top: .2rem; }
.owner .title { display: block; font-weight: 600; font-size: 1.25rem; color: var(--chalk); margin-top: .15rem; letter-spacing: .01em; }

.hero .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .6rem 1.4rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--graphite);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
}
.btn-solid { background: var(--graphite); color: #fff; }
.btn-solid:hover { background: var(--chalk); border-color: var(--chalk); }
.btn-line { background: transparent; color: var(--graphite); }
.btn-line:hover { background: var(--graphite); color: #fff; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }

.drawing { color: var(--chalk); margin: 0; }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing text { font-family: var(--display); font-stretch: condensed; font-size: 13px; fill: var(--chalk); stroke: none; }

/* ---------- sections ---------- */
section { padding: 3.5rem 0; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 1;
  margin: 0 0 1.25rem;
}

/* license note */
.license { padding: 1.75rem 0 2rem; }
.lic-line {
  margin: 0 0 .35rem;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
}
.lic-line .num { font-weight: 700; color: var(--chalk); }
.lic-line .nw { white-space: nowrap; }
.lic-check { margin: 0; font-size: 1rem; }

/* contact */
.contact { background: var(--paper); border-top: 2px solid var(--graphite); }
.contact-grid { display: grid; gap: 2.5rem; }
.direct { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 2px solid var(--graphite); }
.direct li { border-bottom: 1px solid var(--rule); }
.direct a, .direct .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--graphite);
}
.direct span:first-child { font-family: var(--display); font-stretch: condensed; font-weight: 500; color: var(--steel); font-size: 1.05rem; }
.direct strong {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}
.direct a:hover strong { color: var(--chalk); }
.note { font-size: 1rem; color: var(--steel); margin: 0; }

form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
label { font-weight: 600; font-size: 1.05rem; }
input, textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--graphite);
  caret-color: var(--chalk);
  background: #fff;
  border: 1.5px solid var(--steel);
  border-radius: 2px;
  padding: .7rem .75rem;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #69716F; }
textarea { min-height: 8rem; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
.form-foot { display: grid; gap: .6rem; justify-items: stretch; }
.form-foot p { margin: 0; font-size: .95rem; color: var(--steel); }

/* footer */
/* bottom padding leaves room for the sticky call bar on phones */
.site-footer { background: var(--graphite); color: #C5CAC6; padding: 2rem 0 calc(6.25rem + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: #fff; }
.site-footer .wordmark { color: #fff; margin-bottom: 1rem; }
.site-footer .wordmark span small { color: #9AA19D; line-height: 1.25; }

/* sticky call / text bar (phones) */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--graphite);
  border-top: 2px solid var(--graphite);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
}
.sticky a:first-child { background: var(--chalk); }
.sticky svg { width: 1.15rem; height: 1.15rem; }

/* ---------- wider screens ---------- */
@media (min-width: 40rem) {
  :root { --pad: 2rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-foot { justify-items: start; }
}

@media (min-width: 56rem) {
  .site-footer { padding-bottom: 2.25rem; }
  html { scroll-padding-bottom: 0; }
  .sticky { display: none; }
  .header-call { display: inline-block; }
  .hero { padding: 3.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 3rem; }
  /* sized to the half-width column so "Construction" never runs into the drawing at 56–68rem */
  .hero h1 { font-size: min(5.4rem, 8vw); }
  .license { padding: 2rem 0 2.25rem; }
  section { padding: 5rem 0; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
