/* Clinton Square Tech: Survey Sheet variant. Map details kept light on purpose. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* map inks */
  --paper: #F6F7F2;
  --ink: #1D1F1E;
  --muted: #4A4D4B;
  --contour: #9A5B2E;
  --water: #2E78B7;   /* large type and symbols only (4.35:1 on paper) */
  --wood: #BFDCA4;
  --wood-edge: #6D9A4F;
  --rev: #8B3E96;
  --road: #C9342B;
  --road-dk: #9E2620;
  /* service ticket */
  --canary: #F4E07A;
  --form: #1F4A94;
  --form-dk: #13305F;
  --serial: #C42A2A;  /* large type only (4.25:1 on canary) */
  --pink: #F2B8C6;
  --typed: #22252B;

  --pad: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%;
  font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding: 22px;
}
::selection { background: var(--wood); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--road); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 30px; top: 30px; background: var(--paper); padding: 10px 14px; z-index: 10; }

/* The sheet: one thin border around the whole page, like the edge of a printed map */
.sheet { border: 1.5px solid var(--ink); max-width: 1440px; margin: 0 auto; }

.collar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding: 10px var(--pad); }
.mark { font-weight: 800; font-stretch: 118%; font-size: 21px; text-decoration: none; display: inline-block; padding: 10px 0; }
.mark b { color: var(--road); font-weight: 800; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 17px; }
.top nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--road); }
.top nav .call { color: var(--road); font-weight: 700; }
.bottom { border-top: 1.5px solid var(--ink); font-size: 15px; color: var(--muted); padding-top: 18px; padding-bottom: 18px; }

/* Buttons: pressable objects */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 18px; line-height: 1.2; white-space: nowrap;
  background: var(--road); color: #fff; text-decoration: none; border: 0; border-radius: 3px; padding: 16px 22px; cursor: pointer;
  box-shadow: 0 4px 0 var(--road-dk); transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.btn:hover { color: #fff; background: #B82E26; text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--road-dk); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Hero: the map body (the drone photo) inside a neatline, the title block set into its corner, legend in the collar */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; padding: 0 var(--pad) 40px; }
.neat { position: relative; border: 3px solid var(--ink); overflow: hidden; }
/* The whole photo shows, uncropped, so the lake and the skyline on the horizon stay in view */
.neat .map { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 1012; }
/* Title strip under the map, like the title band of a printed sheet: headline left, copy and actions right */
.title-block { background: var(--paper); border-top: 3px solid var(--ink); padding: 24px 32px 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.title-block h1 { grid-row: 1 / span 3; margin: 0; }
.title-block .lede { margin: 2px 0 16px; }
.title-block .see { margin-top: 8px; }
.place { display: block; margin: 0 0 2px; font-style: italic; color: var(--contour); }
h1 { margin: 0 0 14px; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.04; font-weight: 850; font-stretch: 112%; letter-spacing: -0.01em; }
.lede { margin: 0 0 24px; font-size: 19px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.phone { font-size: 30px; font-weight: 800; font-stretch: 108%; text-decoration: none; white-space: nowrap; }
.phone:hover { text-decoration: underline; text-decoration-color: var(--road); }
.see { margin: 16px 0 0; font-size: 16px; }
.see a { display: inline-flex; align-items: center; min-height: 44px; }

.legend h2 { font-size: 20px; font-weight: 800; font-stretch: 118%; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.legend ul { list-style: none; margin: 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 11px 0; font-size: 16px; line-height: 1.3; color: var(--muted); }
.legend li b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; }
.legend .credit { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #C9CCC6; font-size: 14px; color: var(--muted); }

/* Map symbols, one per service */
.sym { display: block; width: 38px; height: 18px; margin-top: 2px; }
.s-contour { border-top: 3px solid var(--contour); border-bottom: 1px solid var(--contour); height: 10px; margin-top: 6px; }
.s-rev { border: 3px solid var(--rev); }
.s-wood { background: var(--wood); border: 1.5px solid var(--wood-edge); }
.s-water { background: var(--water); }
.s-road { height: 0; border-top: 4px dashed var(--road); margin-top: 10px; }
.s-rail { height: 10px; margin-top: 6px; border: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }

/* Bands below the hero */
.band { padding: 72px var(--pad); border-top: 1.5px solid var(--ink); }
.head { margin-bottom: 36px; max-width: 42em; }
.head h2, .about h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.head p { margin: 0; color: var(--muted); }

.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.keys li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; }
.keys h3 { margin: 0 0 4px; font-size: 22px; font-weight: 750; font-stretch: 106%; }
.keys h3 em { font-style: italic; font-weight: 500; font-size: 17px; color: var(--contour); margin-left: 6px; white-space: nowrap; }
.keys p { margin: 0; color: var(--muted); font-size: 17px; max-width: 34em; }

/* Work: each piece in a thin plate frame */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 48px; }
.work figure { margin: 0; }
.plate { display: block; border: 1.5px solid var(--ink); padding: 6px; background: #fff; }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kind { display: block; margin: 0 0 6px; font-size: 15px; font-style: italic; color: var(--contour); }
.work h3 { margin: 14px 0 2px; font-size: 22px; font-weight: 750; font-stretch: 106%; }
.work p { margin: 0; font-size: 17px; color: var(--muted); }

/* Pricing: a numbered carbonless service ticket */
.ticket {
  position: relative; background: var(--canary); color: var(--form); max-width: 1040px;
  padding: 26px 30px 30px 30px;
  box-shadow: 0 1px 2px rgba(29, 31, 30, 0.12), 0 8px 20px -12px rgba(29, 31, 30, 0.35);
}
/* The carbonless set: white and pink copies peek out from under the canary sheet, drawn as offset sheets */
.ticket { margin-right: 14px; margin-bottom: 14px; box-shadow: 7px 7px 0 #fff, 14px 14px 0 var(--pink), 0 1px 2px rgba(29, 31, 30, 0.18), 16px 24px 30px -16px rgba(29, 31, 30, 0.45); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2.5px solid var(--form); }
.co { font-weight: 850; font-size: 28px; line-height: 1.05; }
.co span { display: block; margin-top: 6px; font-weight: 400; font-size: 15px; }
.serial { font-family: "Courier Prime", monospace; color: var(--serial); font-size: 30px; font-weight: 400; white-space: nowrap; -webkit-text-stroke: 0.6px var(--serial); }
.serial span { font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 600; color: var(--form); -webkit-text-stroke: 0; }
.fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 18px; border: 2px solid var(--form); border-bottom: 0; }
.fields > div { padding: 6px 12px 10px; border-right: 2px solid var(--form); }
.fields > div:last-child { border-right: 0; }
.lbl { display: block; font-size: 13px; font-weight: 600; }
.typed, .ticket td { font-family: "Courier Prime", monospace; color: var(--typed); }
.typed { font-size: 19px; }
.ticket table { width: 100%; border-collapse: collapse; border: 2px solid var(--form); }
.ticket thead th { text-align: left; font-size: 13px; font-weight: 600; padding: 7px 12px; border-bottom: 2px solid var(--form); border-right: 2px solid var(--form); }
.ticket thead th:last-child, .ticket td:last-child { border-right: 0; }
.ticket tbody th { text-align: left; font-family: "Courier Prime", monospace; font-weight: 400; color: var(--typed); font-size: 19px; padding: 9px 12px; border-right: 2px solid var(--form); border-bottom: 1px solid rgba(31, 74, 148, 0.5); white-space: nowrap; vertical-align: top; }
.ticket td { font-size: 18px; padding: 9px 12px; border-right: 2px solid var(--form); border-bottom: 1px solid rgba(31, 74, 148, 0.5); vertical-align: top; }
.ticket tbody tr:last-child > * { border-bottom: 0; }
.ticket td.num { text-align: right; white-space: nowrap; }
.terms { margin: 16px 0 0; font-size: 15px; line-height: 1.5; max-width: 60em; }
.terms + .terms { margin-top: 8px; }
.sign { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; margin-top: 24px; }
.btn-form { background: var(--form); box-shadow: 0 4px 0 var(--form-dk); }
.btn-form:hover { background: #193E7D; }
.btn-form:active { box-shadow: 0 0 0 var(--form-dk); }
.sig-line { flex: 1 1 260px; border-bottom: 2px solid var(--form); font-size: 13px; font-weight: 600; padding-bottom: 4px; margin-bottom: 8px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about p { max-width: 36em; margin: 0 0 16px; }
.about .named { color: var(--muted); font-size: 16px; margin-top: 24px; }
.about figure { margin: 0; }
.about .plate img { aspect-ratio: 4 / 3; }
.about figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.direct { display: flex; flex-direction: column; gap: 2px; }
.direct a { font-weight: 700; font-size: 20px; text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.direct a:hover { text-decoration: underline; text-decoration-color: var(--road); }
.direct a.big { font-size: clamp(32px, 3.4vw, 46px); font-weight: 850; font-stretch: 108%; color: var(--road); }
.direct span { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
form { border: 3px solid var(--ink); background: #fff; padding: 28px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
input, textarea {
  font: inherit; font-size: 18px; font-weight: 400; color: var(--ink); caret-color: var(--road);
  background: var(--paper); border: 1.5px solid #858A86; border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%;
}
input:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--water); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; }
form .btn { justify-self: start; }


/* Photo backgrounds: a full-bleed photo behind a section, text always on a solid map-paper panel */
.photo-bg { position: relative; overflow: hidden; }
.photo-bg > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-bg > :not(.bg) { position: relative; }
.panel { background: var(--paper); border: 3px solid var(--ink); padding: 24px 28px; }
.photo-bg .head.panel { display: inline-block; max-width: 42em; margin-bottom: 24px; }
.photo-bg .ticket { box-shadow: 7px 7px 0 #fff, 14px 14px 0 var(--pink), 0 2px 4px rgba(29, 31, 30, 0.25), 16px 28px 34px -14px rgba(29, 31, 30, 0.6); }
.photo-bg .direct.panel span:last-child { margin-bottom: 0; }
.photo-bg form { border-width: 3px; }

/* About: portrait plate beside the text panel */
.photo-bg .about { grid-template-columns: minmax(0, 1fr) minmax(0, 675px); align-items: center; }
.about .panel p:last-child { margin-bottom: 0; }
.drone-portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
/* The About photo is 660x480: never shown larger than that (675 = 660 + plate padding and border) */
.plate.portrait { max-width: 675px; }
.plate.portrait img { width: 100%; height: auto; aspect-ratio: auto; }

/* Aerial photos: secondary, quiet, one strip */
.drone { padding-top: 56px; padding-bottom: 56px; }
.drone-top { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 24px; }
.drone h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; font-stretch: 112%; }
.drone-top p { margin: 0; color: var(--muted); max-width: 34em; }
.aerials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aerials li { border: 1.5px solid var(--ink); padding: 4px; background: #fff; }
.aerials img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 1100px) {
  .aerials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .legend ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --pad: 16px; }
  body { padding: 8px; font-size: 18px; }
  .hero { gap: 24px; padding-bottom: 32px; }
  .neat { min-height: 0; border-width: 2px; }
  .title-block { display: block; border-top-width: 2px; padding: 20px 16px 22px; }
  .title-block h1 { margin: 0 0 14px; font-size: clamp(32px, 8.4vw, 36px); }
  .lede { font-size: 18px; }
  /* The services band right below repeats the legend in full, so phones skip the summary */
  .legend { display: none; }
  .band { padding: 52px var(--pad); }
  .keys { grid-template-columns: 1fr; gap: 24px; }
  .keys h3 em { display: block; margin: 2px 0 0; }
  .work { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  form { padding: 20px 16px; }
  .panel { padding: 18px 16px; border-width: 2px; }
  .photo-bg .about { grid-template-columns: 1fr; gap: 16px; }
  .drone-top { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
  .drone h2 { font-size: 22px; }
  .drone-top p { font-size: 16px; }
  .aerials { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* Ticket on a phone: the fields stack and each package becomes a block */
  .ticket { padding: 18px 16px 22px 16px; }
  .ticket, .photo-bg .ticket { margin-right: 10px; margin-bottom: 10px; box-shadow: 5px 5px 0 #fff, 10px 10px 0 var(--pink), 0 1px 2px rgba(29, 31, 30, 0.18); }
  .ticket-head { flex-direction: column-reverse; gap: 6px; }
  .co { font-size: 24px; }
  .co span { font-size: 14px; }
  .fields { grid-template-columns: 1fr; }
  .fields > div { border-right: 0; border-bottom: 2px solid var(--form); }
  .fields > div:last-child { border-bottom: 0; }
  .ticket table, .ticket thead, .ticket tbody, .ticket tr, .ticket th, .ticket td { display: block; }
  .ticket thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ticket tbody tr { border-bottom: 2px solid var(--form); padding: 10px 12px 12px; }
  .ticket tbody tr:last-child { border-bottom: 0; }
  .ticket tbody th { border: 0; padding: 0 0 6px; font-size: 20px; font-family: "Archivo", sans-serif; font-weight: 800; color: var(--form); }
  .ticket td { border: 0 !important; padding: 3px 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; text-align: left; font-size: 17px; }
  .ticket td.num { text-align: left; }
  .ticket td[data-label="What you get"] { display: block; padding-top: 6px; }
  .ticket td[data-label="What you get"]::before { display: block; padding: 0 0 2px; }
  .ticket td::before { content: attr(data-label); font-family: "Archivo", sans-serif; font-size: 13px; font-weight: 600; color: var(--form); padding-top: 3px; }
  .btn { white-space: normal; }
}
