/* ═══════════════════════════════════════════════════════════════
   LATERAL VANTAGE — LAND & PLANNING
   Design system: cartographic. Ink on paper, contour linework,
   parcel boundaries, grid-reference labelling.
   Sections in this file:
     1. Tokens
     2. Reset & base
     3. Typography
     4. Layout primitives
     5. Cartographic motifs (rules, ticks, parcels, contours)
     6. Header & navigation
     7. Buttons & links
     8. Hero
     9. Stat strip
    10. Doors (two-audience cards)
    11. Service list
    12. Process
    13. Comparison table & deal tool
    14. Case studies
    15. Insights cards
    16. Coverage
    17. Forms
    18. CTA band
    19. Footer
    20. Utilities & motion
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens ─────────────────────────────────────────────── */
:root {
  /* Ink on ivory — warmed off near-black towards a brown-black */
  --paper:        #FBF7EE;
  --paper-2:      #F4EFE2;
  --paper-3:      #EAE3D2;
  --ink:          #22271F;
  --ink-2:        #4C4E42;
  --ink-3:        #7A7A6C;

  /* Estate colours */
  --green:        #1F3D2B;   /* bottle green — dark bands, primary buttons */
  --green-2:      #162E20;
  --brass:        #94763C;   /* rules, section numerals, corner ticks */
  --sepia:        #A98351;   /* contour linework */

  /* Derived */
  --rule:         rgba(34, 39, 31, 0.16);
  --rule-strong:  rgba(34, 39, 31, 0.30);
  --rule-faint:   rgba(34, 39, 31, 0.08);
  --brass-rule:   rgba(148, 118, 60, 0.38);

  /* Type — old-style serif throughout. Source Serif carries the body copy
     because EB Garamond's small x-height is hard going at 16px, and a good
     share of this audience is reading it on an iPad at arm's length. */
  --display: "Bitter", Rockwell, Georgia, serif;
  --body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label:   "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Milled-paper grain. Substance from surface rather than pattern — it stops
     the ivory reading as empty without putting a motif behind the words. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");

  /* Scale */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.02rem, 0.99rem + 0.15vw, 1.10rem);
  --step-1:  clamp(1.14rem, 1.08rem + 0.28vw, 1.32rem);
  --step-2:  clamp(1.38rem, 1.24rem + 0.66vw, 1.82rem);
  --step-3:  clamp(1.70rem, 1.42rem + 1.30vw, 2.60rem);
  --step-4:  clamp(2.05rem, 1.58rem + 2.20vw, 3.60rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(2.75rem, 2.2rem + 2.4vw, 4.75rem);
  --measure: 64ch;
  --max: 1240px;
}

/* ─── 2. Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--green); color: var(--paper); }

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

/* The header is sticky, so anchor jumps must clear it */
[id] { scroll-margin-top: 96px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* ─── 3. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: 0; }
h4 { font-size: var(--step-0); font-family: var(--display); font-weight: 600; letter-spacing: 0; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.lede {
  font-family: var(--body);
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 52ch;
}

.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose h3 { margin: 2.2em 0 0.7em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--green); }

/* Grid-reference eyebrow — the recurring cartographic label */
.gridref {
  font-family: var(--label);
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  line-height: 1.5;
}
.gridref::after {
  content: "";
  display: block;
  margin-top: 0.65rem;
  height: 1px;
  background: var(--rule);
}
.gridref .num {
  color: var(--brass);
  letter-spacing: 0.10em;
  margin-right: 0.7em;
  white-space: nowrap;
}

.mono { font-family: var(--label); font-variant-numeric: tabular-nums; }

/* Double rule — the divider on a set of particulars */
.rule-double { height: 4px; border: 0; border-top: 1px solid var(--brass-rule); border-bottom: 1px solid var(--brass-rule); }

/* ─── 4. Layout primitives ──────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

section { position: relative; }
.band { padding-block: var(--section); }
/* Tinted bands keep the full gap on both sides: the change of ground marks the
   boundary and earns the space. Two bands on the same ivory do not. */
.band + .band:not(.band-paper-2):not(.band-ink):not(.cta-band),
.band-tight + .band:not(.band-paper-2):not(.band-ink):not(.cta-band) {
  padding-top: calc(var(--section) * 0.4);
}
/* A photographic hero ends on a hard edge — the band below needs less air */
.hero--photo + .band, .hero--photo + .band-tight { padding-top: calc(var(--section) * 0.7); }
.band-tight { padding-block: calc(var(--section) * 0.6); }
.band-paper-2 { background: var(--paper-2) var(--grain); }
.band-ink { background: var(--green); color: var(--paper); }
.band-ink .gridref { color: rgba(251,247,238,0.55); }
.band-ink .gridref::after { background: rgba(251,247,238,0.28); }
.band-ink .lede { color: rgba(251,247,238,0.78); }

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Grid children default to min-width:auto, which lets wide content (inputs,
   selects, long words) push a track past its share and scroll the page
   sideways. Let them shrink instead. */
.split > *, .grid > * { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }

.stack > * + * { margin-top: var(--flow, 1.1rem); }
.stack-lg { --flow: 2rem; }

/* ─── 5. Cartographic motifs ────────────────────────────────── */
.hairline { height: 1px; background: var(--rule); border: 0; }

/* Parcel: a boundary box with surveyor's corner ticks */
.parcel {
  position: relative;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.42) var(--grain);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
}
.parcel::before, .parcel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--brass);
  opacity: 0.85;
}
.parcel::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.parcel::after  { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }

/* Contour backdrop.
   Deliberately NOT used as ambient wallpaper any more — background linework
   behind body copy turns the whole site into a theme, and a themed site reads
   as a small firm trying hard. The linework now lives in exactly two places:
   a contained drawing (.plan) and a faint wash in the footer. */
.contours {
  position: absolute;
  inset: 0;
  background-image: url("assets/contours.svg");
  background-size: cover;
  background-position: 62% 40%;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
  /* Fade the linework away from the text column so copy stays legible */
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.28) 26%, #000 68%);
          mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.28) 26%, #000 68%);
}
.contours--right { background-position: 100% 50%; background-size: contain; background-repeat: no-repeat; opacity: 0.24; }
.band-ink .contours { filter: invert(1) sepia(0.5); opacity: 0.10; }

.above { position: relative; z-index: 1; }

/* Ruled list — hairlines between rows, like a survey schedule */
.ruled { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.ruled > li { border-bottom: 1px solid var(--rule); padding-block: 1.15rem; }

/* ── Trust furniture ──────────────────────────────────────────
   The work of looking like a safe pair of hands is done here, not by
   decoration: credentials stated plainly, a named person, and explicit
   commitments a client can hold you to. */

/* Credentials strip — sits directly under the hero */
.trustbar { background: var(--paper-2) var(--grain); border-block: 1px solid var(--rule); }
.trustbar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.trustbar li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 0;
  font-family: var(--label);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-2);
  flex: 1 1 auto;
}
.trustbar li + li { padding-left: clamp(1rem, 0.5rem + 1.5vw, 2.2rem); }
.trustbar li + li::before {
  content: ""; align-self: stretch;
  border-left: 1px solid var(--rule);
  margin-right: clamp(1rem, 0.5rem + 1.5vw, 2.2rem);
  margin-left: calc(-1 * clamp(1rem, 0.5rem + 1.5vw, 2.2rem));
}
@media (max-width: 820px) {
  .trustbar li { flex: 1 1 100%; border-bottom: 1px solid var(--rule-faint); padding-block: 0.72rem; }
  .trustbar li:last-child { border-bottom: 0; }
  .trustbar li + li { padding-left: 0; }
  .trustbar li + li::before { display: none; }
}

/* Named person — a safe pair of hands is a person, not a firm */
.founder { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: clamp(1.5rem, 1rem + 2vw, 2.6rem); align-items: start; }
@media (max-width: 640px) {
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 240px; }
}
.founder-portrait {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover;
  border: 1px solid var(--rule); background: var(--paper-3);
  display: grid; place-items: center; text-align: center;
  font-size: 0.82rem; color: var(--ink-3); padding: 1rem;
}
/* aspect-ratio on a replaced element (img) is only honoured when height is
   auto — the HTML width/height attributes (kept for layout stability /
   no-CSS fallback) otherwise win outright and aspect-ratio is silently
   ignored, regardless of what this rule says. Without the line above, the
   founder photo rendered as 190px wide by 1200px tall: width from the
   column, height taken straight from the HTML attribute. */
/* Once a real photo replaces the placeholder text, drop the padding and
   centering rules that only existed to lay out the placeholder copy. */
img.founder-portrait { display: block; padding: 0; }
.founder-name { font-family: var(--display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.018em; }
.founder-cred {
  font-family: var(--label); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass);
  margin-top: 0.55rem;
}
.founder-quote { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); margin-top: 1.1rem; }

/* Explicit commitments */
.promise { list-style: none; padding: 0; margin: 0; }
.promise li {
  padding: 0.95rem 0 0.95rem 2rem;
  border-bottom: 1px solid var(--rule-faint);
  position: relative;
  font-size: 0.98rem;
}
.promise li:first-child { border-top: 1px solid var(--rule-faint); }
.promise li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0.95rem;
  color: var(--green); font-size: 0.95rem;
}
.promise strong { font-weight: 600; color: var(--ink); }

/* Pull quote — a testimonial that earns its place near the top of a page */
.quote { border-left: 2px solid var(--brass); padding-left: clamp(1.1rem, 0.8rem + 1vw, 1.8rem); }
.quote p { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.quote cite {
  display: block; margin-top: 0.9rem; font-style: normal;
  font-family: var(--label); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
}

/* ─── 6. Header & navigation ────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,238,0.9);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--label); font-weight: 500;
  font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.2vw, 1.9rem); }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none;
  font-family: var(--display); font-size: 1.02rem; font-weight: 500;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--brass); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule-strong);
  padding: 0.5rem 0.8rem; cursor: pointer;
  font-family: var(--label); font-size: 0.84rem; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 1000px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

.nav-panel {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-block: 1.25rem 2rem;
}
.nav-panel.open { display: block; }
.nav-panel ul { list-style: none; padding: 0; }
.nav-panel li { border-bottom: 1px solid var(--rule-faint); }
.nav-panel li a {
  display: block; padding: 0.9rem 0;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: var(--step-1);
}
.nav-panel .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }

/* Over a photographic hero the header rides on the image instead of sitting
   above it as a pale bar. Opaque is the CSS default and this class is added by
   script, so a no-JS render stays legible rather than going ivory-on-ivory. */
.site-header.on-photo {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(251,247,238,0.20);
}
.site-header.on-photo .brand { color: var(--paper); }
.site-header.on-photo .brand-sub { color: rgba(251,247,238,0.72); }
/* The mark's green elements disappear against a dark photograph */
.site-header.on-photo .brand svg circle { fill: #8FB79C; }
.site-header.on-photo .brand svg path[stroke="#1F3D2B"] { stroke: #8FB79C; }
.site-header.on-photo .nav a:not(.btn) { color: rgba(251,247,238,0.88); }
.site-header.on-photo .nav a:not(.btn):hover { color: var(--paper); border-bottom-color: var(--paper); }
.site-header.on-photo .nav a:not(.btn)[aria-current="page"] { color: var(--paper); border-bottom-color: rgba(251,247,238,0.7); }
.site-header.on-photo .btn-ghost { color: var(--paper); border-color: rgba(251,247,238,0.5); }
.site-header.on-photo .btn-ghost:hover { background: var(--paper); color: var(--green-2); border-color: var(--paper); }
.site-header.on-photo .nav-toggle { color: var(--paper); border-color: rgba(251,247,238,0.45); }

/* ─── 7. Buttons & links ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.72rem 1.55rem;
  font-family: var(--label); font-size: 0.95rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--green);
  background: var(--green); color: var(--paper);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.band-ink .btn-ghost { color: var(--paper); border-color: rgba(251,247,238,0.4); }
.band-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-arrow::after { content: "→"; font-size: 0.95em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--green); text-decoration: none;
  font-weight: 500; font-size: 0.94rem;
  border-bottom: 1px solid rgba(31,61,43,0.3);
  padding-bottom: 2px;
  transition: gap 0.18s, border-color 0.18s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 0.75rem; border-bottom-color: var(--green); }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ─── 8. Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
@media (min-width: 861px) {
  .hero .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
}
.hero h1 { max-width: 17ch; margin-block: 1.6rem 1.5rem; }
.hero .lede { max-width: 54ch; }
.hero .actions { margin-top: 2.2rem; }

.hero-sub {
  /* the small page heroes on interior pages */
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* Photographic hero. Used only where there is a photograph worth the space —
   the three front-door pages. Everywhere else the grain ground carries it,
   because filler imagery costs more credibility than empty space does. */
.hero--photo {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--paper);
  border-bottom: 0;
  display: grid; align-items: center;
  min-height: min(76vh, 620px);
  /* Pull up under the sticky header so the photograph reaches the top of the
     viewport, then pad it back so the content still clears the nav. */
  margin-top: calc(-1 * var(--header-h, 0px));
  padding-top: calc(var(--header-h, 0px) + clamp(2rem, 1.5rem + 2vw, 3.5rem));
}
.hero--photo.hero-sub { min-height: min(58vh, 460px); }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
    rgba(16,22,14,0.90) 0%, rgba(16,22,14,0.78) 40%, rgba(16,22,14,0.22) 100%);
}
.hero--photo > .wrap { position: relative; z-index: 2; }
.hero--photo .gridref { color: rgba(251,247,238,0.72); }
.hero--photo .gridref::after { background: rgba(251,247,238,0.32); }
.hero--photo .lede { color: rgba(251,247,238,0.88); }
.hero--photo .btn { background: var(--paper); color: var(--green-2); border-color: var(--paper); }
.hero--photo .btn:hover { background: transparent; color: var(--paper); }
.hero--photo .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(251,247,238,0.5); }
.hero--photo .btn-ghost:hover { background: var(--paper); color: var(--green-2); }

/* On a narrow screen the angled scrim leaves text over open sky — go vertical */
@media (max-width: 700px) {
  .hero--photo::after {
    background: linear-gradient(180deg,
      rgba(16,22,14,0.80) 0%, rgba(16,22,14,0.88) 55%, rgba(16,22,14,0.93) 100%);
  }
}

/* Attribution stays attached to the image it credits */
.hero-credit {
  position: absolute; z-index: 2; right: 0; bottom: 0; left: 0;
  padding: 3rem clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem) 0.7rem;
  font-size: 0.7rem; line-height: 1.45; text-align: right;
  color: rgba(251,247,238,0.82);
  /* The main scrim is nearly transparent at this corner, so the credit
     carries its own — attribution has to stay readable. */
  background: linear-gradient(to top, rgba(16,22,14,0.78) 0%, rgba(16,22,14,0.45) 55%, rgba(16,22,14,0) 100%);
}
.hero-credit a { color: inherit; }
.hero-credit em { font-style: italic; }
@media (max-width: 700px) {
  .hero-credit { position: static; text-align: left; padding: 1.5rem var(--gutter) 0; background: none; }
}
.hero-sub h1 { font-size: var(--step-3); max-width: 20ch; }

/* ─── 9. Stat strip ─────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.stat {
  padding: 1.6rem 1.4rem 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.stat + .stat { padding-left: 1.4rem; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.5rem;
  width: 1px; background: var(--rule);
}
@media (max-width: 720px) {
  .stat:nth-child(odd) + .stat::before { content: ""; }
  .stat:nth-child(odd)::before { display: none; }
}
.stat-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  letter-spacing: -0.01em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--green);
}
.stat-label {
  margin-top: 0.55rem;
  font-size: 0.8rem; color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ─── 10. Doors (two-audience cards) ────────────────────────── */
.door {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -22px rgba(21,32,46,0.45); border-color: var(--rule-strong); }
.door h3 { margin: 0.9rem 0 0.7rem; font-size: var(--step-2); }
.door ul { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.door li {
  padding: 0.6rem 0; border-top: 1px solid var(--rule-faint);
  font-size: 0.94rem; color: var(--ink-2);
  display: flex; gap: 0.7rem;
}
.door li::before { content: "—"; color: var(--brass); flex: none; }
.door .link-arrow { margin-top: 1.6rem; align-self: flex-start; }

/* ─── 11. Service list ──────────────────────────────────────── */
.service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0,1fr) minmax(0,1.15fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  align-items: start;
}
@media (max-width: 760px) {
  .service { grid-template-columns: 2.5rem minmax(0,1fr); }
  .service > :last-child { grid-column: 2; }
}
.service-num {
  font-family: var(--label); font-size: 0.88rem; color: var(--brass);
  padding-top: 0.4rem; letter-spacing: 0.06em;
}
.service h3 { padding-top: 0.1rem; }
.service p { color: var(--ink-2); font-size: 0.96rem; }

/* ─── 12. Process ───────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  position: relative;
  padding-left: 3.2rem; padding-bottom: 2.2rem;
  border-left: 1px solid var(--rule);
  margin-left: 0.85rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -0.85rem; top: 0;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--label); font-size: 0.80rem; color: var(--brass);
}
.band-paper-2 .steps > li::before { background: var(--paper-2); }
.steps h4 { margin-bottom: 0.3rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }

/* ─── 13. Comparison table & deal tool ──────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.5);
  -webkit-overflow-scrolling: touch;
}
table.matrix {
  width: 100%; min-width: 900px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.matrix th, table.matrix td {
  text-align: left; vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule-faint);
}
table.matrix thead th {
  position: sticky; top: 0;
  background: var(--paper-3);
  font-family: var(--label); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
}
table.matrix tbody th {
  font-family: var(--display); font-weight: 600; font-size: 0.92rem;
  color: var(--ink);
  background: rgba(227,221,208,0.35);
  width: 168px;
}
table.matrix td { color: var(--ink-2); }
table.matrix tr:hover td { background: rgba(255,255,255,0.6); }
table.matrix .highlight td, table.matrix .highlight th { background: rgba(31,61,43,0.09); }

.scroll-hint {
  font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 0.7rem;
}

/* Deal tool */
.tool { border: 1px solid var(--rule-strong); background: rgba(255,255,255,0.55); }
.tool-q { padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); border-bottom: 1px solid var(--rule); }
.tool-q:last-of-type { border-bottom: 0; }
.tool-q legend, .tool-q .q {
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  margin-bottom: 0.9rem; display: block; padding: 0;
}
.tool-q fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span {
  display: block; cursor: pointer;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 1rem;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.opt span:hover { border-color: var(--green); }
.opt input:checked + span { background: var(--green); color: var(--paper); border-color: var(--green); }
.opt input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.tool-result {
  border-top: 1px solid var(--rule-strong);
  background: rgba(31,61,43,0.07);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
}
.tool-result[hidden] { display: none; }
.tool-result h3 { margin-bottom: 0.5rem; }
.result-tag {
  display: inline-block;
  font-family: var(--label); font-size: 0.80rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  border: 1px solid rgba(31,61,43,0.35);
  padding: 0.25rem 0.6rem; margin-bottom: 0.9rem;
}
.result-alt { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-2); }

.note {
  font-size: 0.84rem; color: var(--ink-3); line-height: 1.55;
  border-left: 2px solid var(--rule-strong); padding-left: 1rem;
}

/* ─── 14. Case studies ──────────────────────────────────────── */
.case { display: flex; flex-direction: column; height: 100%; }
.case-meta {
  font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 0.8rem;
}
.case h3 { margin-bottom: 0.7rem; }
.case p { color: var(--ink-2); font-size: 0.95rem; }
.case dl {
  margin-top: auto; padding-top: 1.4rem;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem 1.2rem;
  border-top: 1px solid var(--rule);
}
.case dt { font-size: 0.84rem; color: var(--ink-3); letter-spacing: 0.04em; }
.case dd {
  margin: 0.15rem 0 0; font-family: var(--display); font-weight: 600;
  font-size: 1.14rem; font-variant-numeric: lining-nums tabular-nums;
  color: var(--green);
}

/* ─── 15. Insights cards ────────────────────────────────────── */
.post {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  padding-top: 1.3rem; border-top: 1px solid var(--rule-strong);
  transition: border-color 0.2s;
}
.post:hover { border-top-color: var(--brass); }
.post:hover h3 { color: var(--green); }
.post-meta {
  font-family: var(--label); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 0.7rem; margin-bottom: 0.9rem;
}
.post h3 { font-size: var(--step-1); margin-bottom: 0.6rem; transition: color 0.2s; }
.post p { font-size: 0.93rem; color: var(--ink-2); }
.post .link-arrow { margin-top: 1.1rem; align-self: flex-start; }

/* ─── 16. Coverage ──────────────────────────────────────────── */
.counties {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.counties li {
  padding: 0.75rem 0.5rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--label); font-size: 0.84rem;
  display: flex; align-items: baseline; gap: 0.6rem;
}
.counties li::before { content: "◦"; color: var(--brass); }

/* ─── 17. Forms ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--label); font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.field .req { color: var(--brass); }
.field input, .field textarea, .field select {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.18s, background 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green); background: #fff; outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-2); }
.consent input { margin-top: 0.25rem; accent-color: var(--green); width: 1rem; height: 1rem; flex: none; }

.form-status { font-size: 0.9rem; padding-top: 0.5rem; }
.form-status[data-state="error"] { color: var(--brass); }
.form-status[data-state="ok"] { color: var(--green); font-weight: 500; }

.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 240px; }

/* ─── 18. CTA band ──────────────────────────────────────────── */
.cta-band { background: var(--green); color: var(--paper); position: relative; overflow: hidden; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: rgba(251,247,238,0.78); max-width: 46ch; }
.cta-band .gridref { color: rgba(251,247,238,0.55); }
.cta-band .gridref::after { background: rgba(251,247,238,0.28); }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: transparent; color: var(--paper); }
.cta-band .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(251,247,238,0.4); }
.cta-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.cta-band .contours { filter: invert(1) sepia(0.5); opacity: 0.10; }

/* ─── 19. Footer ────────────────────────────────────────────── */
.site-footer {
  position: relative; isolation: isolate;
  background: var(--green-2); color: rgba(251,247,238,0.74);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
  font-size: 0.9rem;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/contours.svg") 70% 40% / cover no-repeat;
  filter: invert(1) sepia(0.5);
  opacity: 0.07;
}
.site-footer a { color: rgba(251,247,238,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0,1fr));
  gap: clamp(1.8rem, 1rem + 3vw, 3.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--display); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(251,247,238,0.45); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 0.55rem; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; font-size: 0.88rem; line-height: 1.6; }

.compliance {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(251,247,238,0.16);
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(251,247,238,0.5);
}
.compliance p + p { margin-top: 0.7rem; }
.compliance .legal-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  margin-top: 1.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(251,247,238,0.1);
}

/* ─── 20. Utilities & motion ────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
/* Tighten the label-to-content relationship under a section eyebrow */
.gridref + .mt-3 { margin-top: 1.9rem; }
.gridref + .mt-2 { margin-top: 1.15rem; }
.gridref + .grid, .gridref + .split, .gridref + .ruled { margin-top: 1.9rem; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.2,0.7,0.3,1), transform 0.6s cubic-bezier(0.2,0.7,0.3,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Placeholder marker — remove the rule once real content is in.
   Any element with class="ph" is unconfirmed placeholder copy. */
.ph { background: rgba(148,118,60,0.10); box-shadow: 0 0 0 1px rgba(148,118,60,0.22); }
body.ph-off .ph { background: none; box-shadow: none; }

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}
