/* Hallmark · shape: Site Board · genre: editorial · theme: custom · job: hire · idea: "A fence is only as good as the part you cannot see." · vibe: "heavy, timber, honest, built to last"
 * paper: oklch(97.8% 0.005 85) · accent: oklch(55% 0.14 55) · display: Archivo · body: Source Sans 3 · hero: full-bleed photo slot, headline left on a dark scrim, two actions · nav: edge-aligned wordmark and one action · footer: mast over three link columns · imagery: photographs · signature: the ground-line cross-section, a concrete post and gravel board against a rotting timber post
 * axes: warm-paper/heavy-grotesque/timber · posture: grounded · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V4 · weakest: E, proof is thin because the client has 2 reviews and no accreditations, so the page earns trust with build detail and the law instead of borrowed badges */

/* ============================================================
   TOKENS. Every colour and font in the site comes from here.
   Contrast ratios are calculated, not guessed. See FINDINGS.md.
   ============================================================ */
:root {
  /* spacing + type scale */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.1875rem;
  --text-xl: 1.5rem; --text-2xl: 1.95rem; --text-3xl: 2.45rem;
  --text-display: clamp(2.35rem, 4.1vw + 0.6rem, 4rem);
  --text-section: clamp(1.85rem, 2.4vw + 1rem, 3rem);
  --text-title: clamp(1.2rem, 0.7vw + 0.9rem, 1.5rem);
  --text-lead: clamp(1.1rem, 0.35vw + 1rem, 1.3rem);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;

  /* layout */
  --container: 1200px; --gutter: 48px; --gap-columns: 32px;
  --section-gap-s: 72px; --section-gap: 104px;
  --z-sticky-nav: 300; --z-actionbar: 320;

  /* typefaces */
  /* Fraunces at REGULAR weight carries the voice. Nothing is set in 800.
     Quiet type reads as more expensive than heavy type, which is the whole
     pitch: this is not a man slapping stock panels in. */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;

  /* COLOUR. ratio = WCAG contrast. AA needs 4.5 for normal text. */
  --color-paper:      #FAF8F5;  /* page background, warm */
  --color-paper-2:    #F2EEE8;  /* alternate band */
  --color-paper-3:    #E8E2D9;  /* photo slot floor */
  --color-card:       #FFFFFF;
  --color-ink:        #141414;  /* body text. 17.38 on paper. AA */
  --color-ink-2:      #4A4540;  /* secondary text. 8.94 on paper. AA */
  --color-muted:      #6B655E;  /* captions on paper. 5.74 on paper. AA */
  --color-muted-dark: #C9C3BB;  /* secondary text on ink. 10.53 on ink. AA */
  --color-rule:       #E2DCD4;  /* hairline, not text */
  --color-rule-dark:  #30302E;  /* hairline on ink */
  --color-accent:     #B45309;  /* timber. white on it 5.02, it on paper 4.74. AA */
  --color-accent-2:   #8A3F07;  /* hover, AND all accent TEXT. 7.51 on white, 6.9 on the
                                   darker band. Plain --color-accent is only 4.35 on that
                                   band, which fails AA, so links never use it. */
  --color-accent-ink: #FFFFFF;
  --color-sand:       #F0A050;  /* accent on DARK sections only. 8.64 on ink. AA */
  --color-green:      #2E5B3E;  /* landscaping. white on it 7.83. AA */
  --color-focus:      #B45309;

  --radius-card: 3px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.012em;
  --weight-display: 400;   /* large headings */
  --weight-sub: 500;       /* small headings, where 400 would go weak */
  --weight-ui: 600;        /* buttons, labels, table heads: the SANS, not the serif */
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--font-display); font-synthesis: none;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance;
  letter-spacing: var(--tracking-display); line-height: 1.12;
  font-weight: var(--weight-display); font-optical-sizing: auto;
  color: var(--color-ink);
}
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 66ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--color-ink); color: var(--color-paper); padding: var(--space-sm) var(--space-md); }
.skip:focus { left: var(--space-sm); top: var(--space-sm); }

/* photo slots: a real photo replaces the placeholder */
[data-slot] { position: relative; overflow: hidden; background: var(--color-paper-3); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
.slot-note {
  position: absolute; inset: 0; display: grid; place-content: center; gap: var(--space-xs);
  padding: var(--space-lg); text-align: center; color: var(--color-muted); font-size: var(--text-sm);
}
.slot-note svg { width: 28px; height: 28px; margin-inline: auto; opacity: .5; }
/* In the hero the note sits behind the headline. Push it to the bottom right on
   a wide screen, and hide it on a phone where there is nowhere for it to go.
   It disappears for good as soon as a real hero photo is dropped in. */
.hero .slot-note { place-content: end end; text-align: right; padding: var(--space-lg); max-width: 34ch; margin-left: auto; color: var(--color-muted-dark); opacity: .5; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: var(--color-ink); color: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule-dark);
}
.header-in { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-paper); min-height: 44px; }
.wm-mark { width: 34px; height: 34px; flex: none; }
.wm-text { font-family: var(--font-display); font-weight: var(--weight-sub); letter-spacing: 0.015em; font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.wm-tick { color: var(--color-sand); }
/* the logo symbol takes its colours from the tokens, like everything else */
.lg-bg { fill: var(--color-ink); }
.lg-rail, .lg-board { fill: var(--color-accent); }
.lg-pale { fill: var(--color-paper); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-lg); list-style: none; align-items: center; }
.site-nav a { text-decoration: none; font-size: var(--text-sm); color: var(--color-muted-dark); padding: var(--space-xs) 0; display: inline-block; transition: color var(--dur-micro) var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-paper); }
.header-cta { display: flex; align-items: center; gap: var(--space-sm); }
.nav-toggle { display: none; background: none; border: var(--rule-hair) solid var(--color-rule-dark); color: var(--color-paper); width: 46px; height: 42px; border-radius: var(--radius-card); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-card);
  font-family: var(--font-body); font-weight: var(--weight-ui); font-size: var(--text-sm);
  text-decoration: none; cursor: pointer; border: var(--rule-hair) solid transparent;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-2); }
.btn-ghost { background: transparent; color: var(--color-paper); border-color: var(--color-muted-dark); }
.btn-ghost:hover { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn-dark { background: var(--color-ink); color: var(--color-paper); }
.btn-dark:hover { background: var(--color-ink-2); }
.btn-sm { min-height: 42px; font-size: var(--text-xs); padding: 0 var(--space-md); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--color-ink); color: var(--color-paper); }
.hero-media { position: absolute; inset: 0; }
/* The scrim has one job: keep the headline readable. Any darker than this
   and it smothers the planting, which is the whole reason for the photo. */
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg,
    color-mix(in oklab, var(--color-ink) 94%, transparent) 0%,
    color-mix(in oklab, var(--color-ink) 86%, transparent) 38%,
    color-mix(in oklab, var(--color-ink) 40%, transparent) 60%,
    color-mix(in oklab, var(--color-ink) 10%, transparent) 82%,
    transparent 100%); }
.hero-in { position: relative; z-index: 3; padding-block: clamp(48px, 5.5vw, 84px); }
.hero-text { max-width: 760px; }
/* the cap is in ch of the DISPLAY size, not body size, or the words break up */
.hero h1 { font-size: var(--text-display); color: var(--color-paper); max-width: 15ch; }
.hero h1 b { font-weight: inherit; color: var(--color-sand); }
.hero-sub { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-paper); max-width: 44ch; }
.hero-actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero-foot { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-dark); display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-paper); max-width: 64ch; list-style: none; }
.hero-foot li { display: flex; align-items: center; gap: var(--space-xs); }
.hero-foot svg { width: 17px; height: 17px; color: var(--color-sand); flex: none; }

/* page head, for inner pages */
.pagehead { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-2xl) var(--space-xl); }
.pagehead h1 { font-size: clamp(2.1rem, 4vw + 0.5rem, 3.5rem); color: var(--color-paper); max-width: 20ch; }
.pagehead p { margin-top: var(--space-md); color: var(--color-muted-dark); font-size: var(--text-lead); max-width: 56ch; }
.crumbs { margin-bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted-dark); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.crumbs a { color: var(--color-muted-dark); }
.crumbs [aria-current="page"] { color: var(--color-paper); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--section-gap); }
.section-s { padding-block: var(--section-gap-s); }
.band-2 { background: var(--color-paper-2); }
.band-dark { background: var(--color-ink); color: var(--color-paper); }
.band-dark h2, .band-dark h3 { color: var(--color-paper); }
.band-dark p { color: var(--color-muted-dark); }
.band-green { background: var(--color-green); color: var(--color-card); }
.band-green h2, .band-green h3 { color: var(--color-card); }
.band-green p { color: var(--color-card); }

/* the cap goes in px here: `ch` on a wrapper is measured at BODY size, so it
   squeezes a display-size h2 into a narrow column. The h2 carries its own. */
.section-head { max-width: 680px; margin-bottom: var(--space-2xl); }
.section-head h2 { max-width: 20ch; }
.section-head h2 { font-size: var(--text-section); }
.section-head p { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 56ch; }
.band-dark .section-head p { color: var(--color-muted-dark); }
.band-green .section-head p { color: var(--color-card); }

.section-head.wide { max-width: 820px; }
.section-head.wide p { max-width: 72ch; }

/* ============================================================
   SIGNATURE: the ground-line cross-section
   ============================================================ */
.ground { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-3xl); align-items: center; }
.ground-fig { margin: 0; background: color-mix(in oklab, var(--color-paper) 7%, transparent); border: var(--rule-hair) solid var(--color-rule-dark); border-radius: var(--radius-card); padding: var(--space-lg); }
/* when .ground-fig IS the photo slot it has no content to give it height */
.ground-fig[data-slot] { aspect-ratio: 4 / 3; padding: 0; }
.ground-fig figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted-dark); }
/* the cross-section diagram takes its colours from the tokens like everything else */
.dia text { font-family: var(--font-body); font-size: 13px; fill: var(--color-muted-dark); }
.dia .dia-key { font-family: var(--font-body); font-weight: var(--weight-ui); }
.dia-soil { fill: var(--color-muted); opacity: .28; }
.dia-line { stroke: var(--color-muted-dark); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dia-timber { fill: var(--color-accent); }
.dia-timber-faded { fill: var(--color-accent); opacity: .45; }
.dia-rot { fill: var(--color-ink-2); }
.dia-crack { stroke: var(--color-ink); stroke-width: 2; fill: none; opacity: .65; }
.dia-concrete { fill: var(--color-muted-dark); }
.dia-footing { fill: var(--color-muted); opacity: .55; }
.dia-warn { fill: var(--color-sand); }
.dia-onlight { fill: var(--color-ink); }
.ground > div > h2 { margin-bottom: var(--space-md); }
.ground-list { list-style: none; display: grid; gap: var(--space-lg); margin-top: var(--space-xl); }
.ground-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.ground-list svg { width: 24px; height: 24px; color: var(--color-sand); }
.ground-list h3 { font-size: var(--text-title); font-weight: var(--weight-sub); margin-bottom: var(--space-2xs); }
.ground-list p { font-size: var(--text-sm); }

/* ============================================================
   CARDS AND TILES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--gap-columns); list-style: none; }
.card { position: relative; display: flex; flex-direction: column; background: var(--color-card); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.card:focus-within { border-color: var(--color-accent); }
.card-media { aspect-ratio: 4 / 3; }
.card-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.card h3 { font-size: var(--text-title); font-weight: var(--weight-sub); }
.card p { font-size: var(--text-sm); color: var(--color-ink-2); flex: 1; }
.card-link { margin-top: var(--space-sm); font-family: var(--font-body); font-weight: var(--weight-ui); font-size: var(--text-sm); color: var(--color-accent-2); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-md); list-style: none; }
.tile { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg); background: var(--color-card); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); text-decoration: none; transition: border-color var(--dur-micro) var(--ease-out); height: 100%; }
.tile:hover { border-color: var(--color-accent); }
.tile svg { width: 24px; height: 24px; color: var(--color-accent); flex: none; margin-top: 2px; }
.tile h3 { font-size: var(--text-md); font-weight: var(--weight-sub); margin-bottom: var(--space-3xs); }
.tile p { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ============================================================
   STEPS
   ============================================================ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--gap-columns); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--color-rule); padding-top: var(--space-md); }
.band-dark .steps li { border-top-color: var(--color-rule-dark); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-2xl); color: var(--color-accent); line-height: 1; margin-bottom: var(--space-xs); }
.band-dark .steps li::before { color: var(--color-sand); }
.steps h3 { font-size: var(--text-title); font-weight: var(--weight-sub); margin-bottom: var(--space-2xs); }
.steps p { font-size: var(--text-sm); color: var(--color-ink-2); }
.band-dark .steps p { color: var(--color-muted-dark); }

/* ============================================================
   AREAS
   ============================================================ */
.areas { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin-top: var(--space-lg); }
.areas li { padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); background: var(--color-card); }
.band-dark .areas li { border-color: var(--color-rule-dark); background: transparent; color: var(--color-muted-dark); }
.tiles + .form-note { margin-top: var(--space-xl); }
.form-note + .hero-actions { margin-top: var(--space-lg); }
.areas a { color: inherit; text-decoration: none; }
.areas a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   PROSE
   ============================================================ */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-xl); margin-bottom: var(--space-xs); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-md); font-size: var(--text-md); color: var(--color-ink-2); max-width: none; }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li { margin-bottom: var(--space-xs); }
.prose a { color: var(--color-accent-2); }
.prose strong { color: var(--color-ink); }
.callout { border-left: 3px solid var(--color-accent); background: var(--color-paper-2); padding: var(--space-lg); border-radius: var(--radius-card); margin-block: var(--space-lg); }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; font-size: var(--text-title); }

.table-wrap { overflow-x: auto; margin-block: var(--space-lg); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
caption { text-align: left; font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-xs); }
th, td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
th { font-family: var(--font-body); font-weight: var(--weight-ui); color: var(--color-ink); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.compare { margin-top: var(--space-xl); }
.compare table { font-size: var(--text-md); }
.compare td { color: var(--color-muted); }
.compare td:first-child { width: 22%; }
/* the better answer for each row is the one in full ink. On cost it is the
   panel, which is the point: the table is information, not a sales pitch. */
.compare .pick { color: var(--color-ink); }
.compare + p, .compare p { max-width: 70ch; margin-top: var(--space-lg); }
.band-dark .compare td:first-child { color: var(--color-muted-dark); }
.band-dark .compare .pick { color: var(--color-paper); }
.band-dark .compare th { color: var(--color-paper); }
.band-dark .compare th, .band-dark .compare td { border-bottom-color: var(--color-rule-dark); }

/* FAQ */
.faq { margin-top: var(--space-xl); max-width: 68ch; }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { padding: var(--space-lg) 0; cursor: pointer; font-family: var(--font-display); font-weight: var(--weight-sub); font-size: var(--text-title); list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); transform: rotate(45deg); flex: none; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: var(--space-lg); font-size: var(--text-md); color: var(--color-ink-2); }

/* ============================================================
   FORM
   ============================================================ */
.quote-form { display: grid; gap: var(--space-md); max-width: 580px; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--space-sm) var(--space-md); min-height: 52px;
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-card); color: var(--color-ink);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--text-sm); color: var(--color-muted); }
.form-status { font-size: var(--text-sm); color: var(--color-ink-2); min-height: 1.5em; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-3xl); align-items: start; }
.contact-list { list-style: none; display: grid; gap: var(--space-lg); }
.contact-list a { color: var(--color-accent-2); font-weight: 600; }
.contact-list h3 { font-size: var(--text-md); font-weight: var(--weight-sub); margin-bottom: var(--space-3xs); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-ink); color: var(--color-muted-dark); padding-block: var(--space-3xl) var(--space-xl); }
.footer-mast { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(2rem, 6vw, 4rem); color: var(--color-paper); letter-spacing: var(--tracking-display); line-height: 1; }
.footer-mast span { color: var(--color-sand); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule-dark); }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-paper); margin-bottom: var(--space-sm); font-weight: var(--weight-ui); letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: var(--space-xs); }
.footer-grid a { font-size: var(--text-sm); text-decoration: none; color: var(--color-muted-dark); }
.footer-grid a:hover { color: var(--color-paper); text-decoration: underline; }
.footer-base { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-dark); display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between; font-size: var(--text-xs); }

/* ============================================================
   MOBILE ACTION BAR
   ============================================================ */
.action-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar); background: var(--color-ink); border-top: var(--rule-hair) solid var(--color-rule-dark); padding-bottom: env(safe-area-inset-bottom); }
.action-bar ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; text-decoration: none; color: var(--color-paper); font-size: var(--text-xs); font-weight: 600; }
.action-bar a svg { width: 20px; height: 20px; }
.action-bar li + li { border-left: var(--rule-hair) solid var(--color-rule-dark); }
.action-bar .is-primary { background: var(--color-accent); }

/* ============================================================
   MOTION
   There is deliberately no scroll reveal. A fade-in driven by
   animation-timeline holds its "from" state outside the scroll range, which
   left whole sections at opacity 0 in testing (and in print and screenshots).
   On a trade site, content that might not appear is a worse trade than a
   little movement. Hover and focus transitions are enough.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 70rem) {
  :root { --gutter: 32px; --section-gap: 88px; --section-gap-s: 64px; }
  .ground { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (max-width: 54rem) {
  :root { --gutter: 20px; --section-gap: 72px; --section-gap-s: 56px; --gap-columns: 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 73px 0 auto 0; background: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule-dark); margin-left: 0; max-height: calc(100dvh - 73px); overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-xs) var(--gutter) var(--space-lg); }
  .site-nav a { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule-dark); font-size: var(--text-md); }
  .header-cta .btn { display: none; }
  .action-bar { display: block; }
  body { padding-bottom: calc(59px + env(safe-area-inset-bottom)); }
  .hero-text { max-width: none; }
}
@media (max-width: 30rem) {
  :root { --gutter: 16px; }
}

/* cookie bar, built by james_tracker.js. First layer: Customise and Accept all (same as SHOW) */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-actionbar) + 10); background: var(--color-ink); color: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule-dark); padding: var(--space-md) var(--gutter); padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-lg); font-size: var(--text-sm); max-height: 85dvh; overflow-y: auto; }
.cookie-bar-copy { max-width: 62ch; display: grid; gap: var(--space-xs); }
.cookie-bar-head { font-size: var(--text-md); color: var(--color-paper); }
.cookie-bar a { color: var(--color-sand); }
.cookie-bar-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.cookie-bar-actions .btn { min-width: 7.5rem; }
.cookie-rows { display: grid; gap: var(--space-sm); margin-top: var(--space-xs); }
.cookie-row { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--color-muted-dark); }
.cookie-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color-sand); }
.cookie-bar.is-open { flex-direction: column; align-items: center; }
.cookie-bar.is-open > * { width: min(100%, 62ch); }
@media (max-width: 54rem) {
  .cookie-bar { bottom: calc(59px + env(safe-area-inset-bottom)); padding-bottom: var(--space-md); max-height: calc(85dvh - 59px); }
}
