/* ==========================================================================
   CUSTOM HOME MECHANICS — chm.css
   Design system + complete stylesheet. Self-contained. No framework.
   One external request only: the IBM Plex Mono <link> in the page <head>.

   Language: honest materials, machined precision, blueprint and measurement.
   Ground is shop paper (light) or graphite (dark); plates are steel; the
   brand mark is oxblood maroon taken from the logo; brass is the keyline.

   Theme convention (fleet standard):
     - every colour defined on bare :root first
     - redefined under @media (prefers-color-scheme: dark) guarded by
       :root:not([data-theme="light"])
     - redefined again under :root[data-theme="dark"] so a toggle wins both ways
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — light is the base
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* --- brand, measured from the logo artwork ---------------------------- */
  --brand:        #63051A;   /* oxblood maroon — the mark's real red        */
  --brand-deep:   #470312;
  --brand-lift:   #8E1226;   /* pressed / hover fill                        */
  --brand-ink:    #63051A;   /* accent colour safe as TEXT on the ground    */
  --plum:         #671F3C;
  --steel:        #33303F;
  --graphite:     #161420;   /* the logo's true dark                        */

  /* --- family tokens (shared with Hanalei Off-Grid / Green Cuts) -------- */
  --sand:         #E6C27A;
  --teal:         #5EC4A4;

  /* --- materials -------------------------------------------------------- */
  --brass:        #C08A3E;   /* keylines, rules, marks on dark              */
  --brass-ink:    #7A5518;   /* brass that must pass as TEXT on light       */
  --timber:       #8A5A34;
  --patina:       #4E7A6B;

  /* --- ground and surfaces --------------------------------------------- */
  --bg:           #F5F0E6;   /* shop paper                                  */
  --bg-2:         #EDE6D8;   /* recessed band                               */
  --surface:      #FDFAF4;   /* card                                        */
  --surface-2:    #FFFFFF;   /* raised card                                 */
  --plate:        #17161F;   /* the machined plate — dark in BOTH themes    */
  --plate-2:      #23212D;
  --plate-ink:    #F2ECE1;
  --plate-dim:    #B3ABBC;

  /* --- text ------------------------------------------------------------- */
  --ink:          #171520;
  --ink-2:        #4A4653;   /* muted body / captions                       */
  --ink-3:        #6B6676;   /* fine print                                  */
  --ink-invert:   #F5F0E6;

  /* --- lines ------------------------------------------------------------ */
  --line:         rgba(23,21,32,.14);
  --line-2:       rgba(23,21,32,.08);
  --line-brass:   rgba(192,138,62,.42);
  --line-plate:   rgba(242,236,225,.14);

  /* --- states ----------------------------------------------------------- */
  --focus:        #0B63C5;
  --ok:           #2F6B4F;
  --warn:         #8A5A00;

  /* --- glass / gloss ---------------------------------------------------- */
  --spec:         rgba(255,255,255,.72);  /* specular highlight on surfaces */
  --spec-plate:   rgba(255,255,255,.16);
  --sheen:        linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 42%);
  --sheen-plate:  linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 46%);

  /* --- shadow ladder (layered, never a single blurry blob) -------------- */
  --sh-1: 0 1px 1px rgba(23,21,32,.05), 0 1px 2px rgba(23,21,32,.06);
  --sh-2: 0 1px 1px rgba(23,21,32,.05), 0 2px 4px rgba(23,21,32,.06), 0 6px 12px rgba(23,21,32,.06);
  --sh-3: 0 1px 1px rgba(23,21,32,.06), 0 4px 8px rgba(23,21,32,.07), 0 12px 24px rgba(23,21,32,.08);
  --sh-4: 0 2px 2px rgba(23,21,32,.06), 0 8px 16px rgba(23,21,32,.08), 0 24px 48px rgba(23,21,32,.12);
  --sh-plate: 0 2px 2px rgba(0,0,0,.30), 0 10px 22px rgba(0,0,0,.34), 0 30px 60px rgba(0,0,0,.30);
  --sh-inset: inset 0 1px 0 var(--spec), inset 0 -1px 0 rgba(23,21,32,.06);
  --sh-press: inset 0 2px 4px rgba(23,21,32,.16);

  /* --- type ------------------------------------------------------------- */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs:   .75rem;
  --fs-sm:   .8125rem;
  --fs-cap:  .875rem;
  --fs-base: clamp(1rem, .975rem + .12vw, 1.0625rem);
  --fs-md:   clamp(1.0625rem, 1rem + .32vw, 1.1875rem);
  --fs-lg:   clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem);
  --fs-xl:   clamp(1.5rem, 1.3rem + .95vw, 2.0625rem);
  --fs-2xl:  clamp(1.875rem, 1.55rem + 1.6vw, 2.75rem);
  --fs-3xl:  clamp(2.25rem, 1.7rem + 2.7vw, 3.75rem);

  --lh-tight: 1.12;
  --lh-head:  1.2;
  --lh-body:  1.62;
  --tr-tight: -.015em;
  --tr-mark:  .16em;   /* letterspacing for stamped mono labels */

  /* --- space ------------------------------------------------------------ */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6rem;   --s-12: 8rem;
  --pad-x: clamp(1.125rem, 4.5vw, 2.5rem);
  --pad-y: clamp(3rem, 8vw, 6.5rem);
  --gap:   clamp(1rem, 2.6vw, 1.75rem);
  --measure: 64ch;
  --wrap: 1120px;
  --wrap-narrow: 760px;

  /* --- radii ------------------------------------------------------------ */
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* --- motion ----------------------------------------------------------- */
  --dur: 180ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* dark — system preference, unless the visitor forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand:      #8E1226;
    --brand-deep: #63051A;
    --brand-lift: #A8203A;
    --brand-ink:  #D98A80;      /* lightened oxblood — reads as brick, not pink */
    --bg:         #121118;
    --bg-2:       #0D0C12;
    --surface:    #1B1A24;
    --surface-2:  #23212D;
    --plate:      #1B1A24;
    --plate-2:    #262432;
    --plate-ink:  #F2ECE1;
    --plate-dim:  #ABA3B8;
    --ink:        #EFEAE0;
    --ink-2:      #B5AEBF;
    --ink-3:      #928BA0;
    --ink-invert: #121118;
    --brass-ink:  #E0B267;
    --line:       rgba(242,236,225,.16);
    --line-2:     rgba(242,236,225,.09);
    --line-brass: rgba(224,178,103,.36);
    --line-plate: rgba(242,236,225,.14);
    --focus:      #7FB6FF;
    --ok:         #7FC6A0;
    --warn:       #E0B267;
    --spec:       rgba(255,255,255,.10);
    --spec-plate: rgba(255,255,255,.12);
    --sheen:      linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 46%);
    --sheen-plate:linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 46%);
    --sh-1: 0 1px 1px rgba(0,0,0,.34), 0 1px 2px rgba(0,0,0,.30);
    --sh-2: 0 1px 1px rgba(0,0,0,.34), 0 2px 4px rgba(0,0,0,.30), 0 6px 12px rgba(0,0,0,.28);
    --sh-3: 0 1px 1px rgba(0,0,0,.36), 0 4px 8px rgba(0,0,0,.32), 0 12px 24px rgba(0,0,0,.30);
    --sh-4: 0 2px 2px rgba(0,0,0,.38), 0 8px 16px rgba(0,0,0,.34), 0 24px 48px rgba(0,0,0,.40);
    --sh-plate: 0 2px 2px rgba(0,0,0,.44), 0 10px 22px rgba(0,0,0,.42), 0 30px 60px rgba(0,0,0,.44);
    --sh-inset: inset 0 1px 0 var(--spec), inset 0 -1px 0 rgba(0,0,0,.30);
    --sh-press: inset 0 2px 4px rgba(0,0,0,.42);
  }
}

/* dark — explicit choice */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand:      #8E1226;
  --brand-deep: #63051A;
  --brand-lift: #A8203A;
  --brand-ink:  #D98A80;
  --bg:         #121118;
  --bg-2:       #0D0C12;
  --surface:    #1B1A24;
  --surface-2:  #23212D;
  --plate:      #1B1A24;
  --plate-2:    #262432;
  --plate-ink:  #F2ECE1;
  --plate-dim:  #ABA3B8;
  --ink:        #EFEAE0;
  --ink-2:      #B5AEBF;
  --ink-3:      #928BA0;
  --ink-invert: #121118;
  --brass-ink:  #E0B267;
  --line:       rgba(242,236,225,.16);
  --line-2:     rgba(242,236,225,.09);
  --line-brass: rgba(224,178,103,.36);
  --line-plate: rgba(242,236,225,.14);
  --focus:      #7FB6FF;
  --ok:         #7FC6A0;
  --warn:       #E0B267;
  --spec:       rgba(255,255,255,.10);
  --spec-plate: rgba(255,255,255,.12);
  --sheen:      linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 46%);
  --sheen-plate:linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 46%);
  --sh-1: 0 1px 1px rgba(0,0,0,.34), 0 1px 2px rgba(0,0,0,.30);
  --sh-2: 0 1px 1px rgba(0,0,0,.34), 0 2px 4px rgba(0,0,0,.30), 0 6px 12px rgba(0,0,0,.28);
  --sh-3: 0 1px 1px rgba(0,0,0,.36), 0 4px 8px rgba(0,0,0,.32), 0 12px 24px rgba(0,0,0,.30);
  --sh-4: 0 2px 2px rgba(0,0,0,.38), 0 8px 16px rgba(0,0,0,.34), 0 24px 48px rgba(0,0,0,.40);
  --sh-plate: 0 2px 2px rgba(0,0,0,.44), 0 10px 22px rgba(0,0,0,.42), 0 30px 60px rgba(0,0,0,.44);
  --sh-inset: inset 0 1px 0 var(--spec), inset 0 -1px 0 rgba(0,0,0,.30);
  --sh-press: inset 0 2px 4px rgba(0,0,0,.42);
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: clip;                 /* clip, not hidden — keeps sticky working */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
/* NOTE: no global background on <img>. A tint here paints a solid block behind
   every transparent PNG — it turned the logo into a black box in dark mode.
   The loading tint belongs on .frame, which has it. */
svg { fill: currentColor; }

a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--brand-lift); }

strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

hr { border: 0; height: 1px; background: var(--line); margin: var(--s-7) 0; }

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

/* focus — always visible, never removed */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.plate :focus-visible, .hero :focus-visible, .band--plate :focus-visible { outline-color: #9CC6FF; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tr-tight);
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--fs-2xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 600; }

p, ul, ol, dl, figure, table, blockquote { margin: 0 0 var(--s-4); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.prose { max-width: var(--measure); }
.prose p + h2, .prose p + h3 { margin-top: var(--s-7); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--brass-ink); }

/* the mono voice — eyebrows, spec labels, numbers, buttons */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 var(--s-3);
}
.eyebrow--plate { color: var(--sand); }
.eyebrow::before { content: "— "; opacity: .6; }

.lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}
.fineprint { font-size: var(--fs-sm); color: var(--ink-3); }

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

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.band { padding-block: var(--pad-y); position: relative; }
.band--alt   { background: var(--bg-2); }
.band--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band + .band--alt, .band--alt + .band { border-top: 1px solid var(--line-2); }

/* a dark machined band — used for the case study and the closing CTA */
.band--plate {
  background: var(--plate);
  color: var(--plate-ink);
  border-block: 1px solid var(--line-plate);
}
.band--plate h1, .band--plate h2, .band--plate h3, .band--plate h4 { color: var(--plate-ink); }
.band--plate .lede, .band--plate p { color: var(--plate-dim); }
.band--plate a { color: var(--sand); }
.band--plate .fineprint { color: var(--plate-dim); }

.center { text-align: center; }
.center > * { margin-inline: auto; }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.section-head { text-align: center; margin-bottom: var(--s-7); }
.section-head .lede { margin-inline: auto; }

/* nothing ever pushes the page sideways */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.scroll-x > table { min-width: 34rem; }
pre { overflow-x: auto; max-width: 100%; }

/* --------------------------------------------------------------------------
   5. TEXTURE — CSS-drawn craft, no images required
   -------------------------------------------------------------------------- */

/* (a) blueprint / graph paper — a fine 8px grid with a heavier 40px rule */
.tex-grid { position: relative; isolation: isolate; }
.tex-grid::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px),
    linear-gradient(to right,  var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: center;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  opacity: .9;
}
.band--plate.tex-grid::before,
.plate.tex-grid::before {
  background-image:
    linear-gradient(to right,  var(--line-plate) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-plate) 1px, transparent 1px),
    linear-gradient(to right,  rgba(242,236,225,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,236,225,.055) 1px, transparent 1px);
  opacity: .55;
}

/* (b) knurling — the machined grip band. A hairline 45deg rule. */
.rule-knurl {
  height: 10px;
  width: min(220px, 42vw);
  margin-inline: auto;
  border-radius: var(--r-pill);
  background-image: repeating-linear-gradient(
    45deg,
    var(--line-brass) 0 1px,
    transparent 1px 5px
  );
  opacity: .85;
}
.rule-knurl--wide { width: 100%; max-width: none; opacity: .5; }

/* (c) a brushed-steel sheen for plates */
.brushed { position: relative; }
.brushed::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    var(--sheen-plate);
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------------------
   6. HEADER + NAV
   -------------------------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}
.skip:focus { left: 0; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);                                   /* fallback first */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
@supports not (backdrop-filter: blur(4px)) { .site-head { background: var(--bg); } }

.site-head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: 4rem;
}
.brand-lock { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand-lock img { width: auto; height: 30px; }         /* logo cap: never past 365px wide */
.brand-lock__name {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav { display: none; }
.nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: var(--s-2) var(--s-1);
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

@media (min-width: 56rem) {
  .nav { display: flex; align-items: center; gap: var(--s-5); }
  .brand-lock img { height: 34px; }
}

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1), var(--sh-inset);
  color: var(--ink-2);
  line-height: 1;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-brass); }

/* --------------------------------------------------------------------------
   7. HERO — centred on the axis at every breakpoint
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(1.5rem, 5vw, 3rem) clamp(2rem, 6vw, 3.5rem); }

.hero__plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--plate-ink);
  background:
    radial-gradient(120% 100% at 50% -20%, var(--plate-2) 0%, var(--plate) 58%),
    var(--plate);
  border: 1px solid var(--line-plate);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-plate);
  padding: clamp(2.5rem, 9vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}
/* specular: a single fine highlight along the top edge, then a soft sheen */
.hero__plate::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--sheen-plate);
}
.hero__plate::after {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 0; height: 1px; z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--spec-plate) 22%, rgba(255,255,255,.34) 50%, var(--spec-plate) 78%, transparent);
}
.hero__plate > * { position: relative; z-index: 1; }

/* optional real photograph behind the plate — Ben's own photos only */
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .5;
  filter: saturate(.85) contrast(1.02);
}
.hero__photo + .hero__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(23,22,31,.42) 0%, rgba(23,22,31,.86) 72%),
    linear-gradient(180deg, rgba(23,22,31,.55), rgba(23,22,31,.92));
}

/* the mark, dead centre, on its maker's plate.
   Specificity note: .plaque is display:inline-block, and .eyebrow is inline-block too,
   so as an inline-block the plaque would share a line box with the eyebrow that follows
   it and text-align:center would centre the PAIR, not the plate. Measured 161px off
   axis before this rule. .hero .hero__plaque (0,2,0) wins over .plaque (0,1,0). */
.hero .hero__plaque {
  display: block;
  width: max-content;
  max-width: min(360px, 82vw);
  margin: 0 auto var(--s-6);
}
.hero__mark {
  display: block;
  margin-inline: auto;
  width: min(268px, 56vw);      /* logo detail ceiling is 730x406 — never exceed 365px */
  height: auto;
}
.hero h1 {
  font-size: var(--fs-3xl);
  color: var(--plate-ink);
  margin-inline: auto;
  max-width: 18ch;
}
.hero .lede {
  margin: var(--s-4) auto 0;
  color: var(--plate-dim);
  max-width: 52ch;
}
.hero__actions {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero__actions > * { width: 100%; max-width: 22rem; }
@media (min-width: 34rem) {
  .hero__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero__actions > * { width: auto; max-width: none; }
}

/* a centred strip of hard facts under the hero */
.hero__spec {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-plate);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.hero__spec > span { display: inline-flex; align-items: center; gap: var(--s-3); }
.hero__spec > span + span::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass); opacity: .8;
}
.hero__spec b { color: var(--sand); font-weight: 500; }

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9em 1.5em;
  min-height: 3rem;                 /* comfortable thumb target */
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--1 {
  color: #FFF7F2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, var(--brand-lift), var(--brand-deep));
  border-color: rgba(0,0,0,.28);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.26);
}
.btn--1:hover { color: #fff; box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.32); }
.btn--1:active { box-shadow: var(--sh-press); }

.btn--2 {
  color: var(--ink);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
}
.btn--2:hover { border-color: var(--line-brass); box-shadow: var(--sh-2), var(--sh-inset); }

.btn--ghost {
  color: var(--plate-ink);
  background: rgba(255,255,255,.05);
  border-color: var(--line-plate);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.10); border-color: var(--line-brass); color: var(--plate-ink); }

.btn--full { width: 100%; }

/* phone number, treated as a stamped plate */
.tel-plate {
  display: inline-flex; align-items: baseline; gap: .6em;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  padding: .55em .95em;
  border-radius: var(--r-md);
  border: 1px solid var(--line-brass);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--sh-1), var(--sh-inset);
}
.tel-plate span { font-size: var(--fs-sm); letter-spacing: var(--tr-mark); text-transform: uppercase; color: var(--brass-ink); }
.band--plate .tel-plate { color: var(--plate-ink); background: rgba(255,255,255,.05); border-color: var(--line-brass); }
.band--plate .tel-plate span { color: var(--sand); }

/* --------------------------------------------------------------------------
   9. CHIPS, STAMPS, NOTES
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4em .8em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}
.chip--brand { border-color: var(--line-brass); color: var(--brass-ink); }
.chip--live::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--ok); }

/* the maker's mark — a stamped credential line, one clean statement */
.mark-line {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--brass-ink);
  padding: .5em 1em;
  border: 1px solid var(--line-brass);
  border-radius: var(--r-xs);
  background:
    repeating-linear-gradient(45deg, rgba(192,138,62,.06) 0 1px, transparent 1px 6px);
}
.band--plate .mark-line { color: var(--sand); }

/* THE MAKER'S PLATE — a brass-edged cream plaque with four screws, drawn in CSS.
   This is how the logo is presented on any dark ground: use the LIGHT-background
   logo file (transparent artwork, dark ink) and let the plaque supply the field.
   Do NOT put logo-2026-wide-dark.png on a dark plate — that file bakes in its own
   cream panel and reads as a white box. Verified by pixel sample, 2026-09-05. */
.plaque {
  position: relative;
  display: inline-block;
  padding: clamp(.85rem, 3vw, 1.35rem) clamp(1.1rem, 4vw, 2rem);
  border: 1px solid var(--line-brass);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 13px 13px,
      rgba(0,0,0,.26) 0 1.7px, rgba(255,255,255,.85) 1.7px 3.1px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 13px) 13px,
      rgba(0,0,0,.26) 0 1.7px, rgba(255,255,255,.85) 1.7px 3.1px, transparent 3.2px),
    radial-gradient(circle at 13px calc(100% - 13px),
      rgba(0,0,0,.26) 0 1.7px, rgba(255,255,255,.85) 1.7px 3.1px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 13px),
      rgba(0,0,0,.26) 0 1.7px, rgba(255,255,255,.85) 1.7px 3.1px, transparent 3.2px),
    linear-gradient(180deg, #FBF6EC 0%, #EFE6D6 100%);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(0,0,0,.10);
}
.plaque img { display: block; margin-inline: auto; }
.plaque--sm { padding: .45rem .7rem; border-radius: var(--r-sm); box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.9); background-image: linear-gradient(180deg, #FBF6EC 0%, #EFE6D6 100%); }
.plaque--xs { padding: .5rem .75rem; border-radius: var(--r-sm); box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.9); background-image: linear-gradient(180deg, #FBF6EC 0%, #EFE6D6 100%); }

/* honesty stamp — for the illustrative case study */
.stamp {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plate-dim);
  border: 1px dashed var(--line-brass);
  border-radius: var(--r-xs);
  padding: .7em 1em;
  margin-top: var(--s-5);
  text-align: center;
}

.note {
  border-left: 3px solid var(--brass);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-4) var(--s-5);
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}

/* --------------------------------------------------------------------------
   10. CARDS + GRIDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-2), var(--sh-inset);
}
.card--plate {
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  border-color: var(--line-plate);
  color: var(--plate-ink);
  box-shadow: var(--sh-plate);
}

/* service grid — one column on a phone, then auto-fit */
.svc-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 64rem) { .svc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.svc {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-3);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-1), var(--sh-inset);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* a hairline brass keyline across the top — machined edge */
.svc::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  opacity: .55;
}
.svc:hover { transform: translateY(-2px); box-shadow: var(--sh-3), var(--sh-inset); border-color: var(--line-brass); }
.svc:hover::before { opacity: 1; }
.svc__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-mark);
  color: var(--brass-ink);
}
.svc h3 { font-size: var(--fs-lg); }
.svc p { color: var(--ink-2); margin: 0; }
.svc__more {
  margin-top: auto;
  padding-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.svc__more::after { content: " →"; }

/* the lead card — demolition gets this: full-width keyline, brass edge */
.svc--lead { border-color: var(--line-brass); }
.svc--lead::before { opacity: 1; height: 3px; }
@media (min-width: 64rem) { .svc-grid > .svc--lead:first-child { grid-column: span 2; } }

/* specification list — dl in two columns, the measurement voice */
.spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.spec div {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-2);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.spec dd { margin: 0; font-weight: 600; }
.band--plate .spec dt { color: var(--plate-dim); }
.band--plate .spec dd { color: var(--plate-ink); }
.band--plate .spec, .band--plate .spec div { border-color: var(--line-plate); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gap); text-align: center; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat__n { display: block; font-family: var(--font-mono); font-size: var(--fs-xl); color: var(--brass-ink); }
.stat__l { font-size: var(--fs-sm); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   11. MEDIA — real photographs only, and honest placeholders otherwise
   -------------------------------------------------------------------------- */
.figure { margin: 0; }
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--sh-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--3x4  { aspect-ratio: 3 / 4; }
.frame--1x1  { aspect-ratio: 1 / 1; }
.figure figcaption { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-3); }

.gallery { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 64rem) { .gallery--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* a clearly-marked placeholder — never a fabricated image */
.ph {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-brass);
  background-image:
    repeating-linear-gradient(45deg, var(--line-2) 0 1px, transparent 1px 9px);
  background-color: var(--bg-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--s-5);
}

/* --------------------------------------------------------------------------
   12. CASE STUDY BLOCK
   -------------------------------------------------------------------------- */
.case { display: grid; gap: var(--gap); }
@media (min-width: 62rem) {
  .case { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
}
.case__body .lede { max-width: 46ch; }
.case__panel {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  border: 1px solid var(--line-plate);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-plate);
}
.case__steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.case__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-plate);
}
.case__steps li:last-child { border-bottom: 0; }
.case__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--sand);
  letter-spacing: .06em;
}

/* a CSS-drawn section diagram: a shell set into a block base. No photo needed. */
.diagram {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--line-plate);
  background:
    linear-gradient(to right,  var(--line-plate) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--line-plate) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--plate-2), var(--plate));
  overflow: hidden;
}
.diagram__base {
  position: absolute; left: 12%; right: 12%; bottom: 14%; height: 26%;
  border: 1px solid var(--line-brass);
  border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, var(--line-brass) 0 1px, transparent 1px 34px),
                    repeating-linear-gradient(0deg,  var(--line-brass) 0 1px, transparent 1px 17px);
  opacity: .8;
}
.diagram__shell {
  position: absolute; left: 20%; right: 20%; bottom: 36%; height: 30%;
  border: 2px solid var(--sand);
  border-bottom-left-radius: var(--r-sm);
  border-bottom-right-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(94,196,164,.16), rgba(94,196,164,.04));
}
.diagram__level {
  position: absolute; left: 8%; right: 8%; bottom: 66%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--sand) 0 6px, transparent 6px 12px);
  opacity: .7;
}
.diagram__label {
  position: absolute; left: var(--s-4); bottom: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--plate-dim);
}

/* --------------------------------------------------------------------------
   13. ABOUT / BIO
   -------------------------------------------------------------------------- */
.bio { display: grid; gap: var(--gap); text-align: center; }
.bio__portrait { width: min(220px, 56vw); margin-inline: auto; }
.bio__portrait .frame { border-radius: var(--r-lg); }
.bio__body { max-width: var(--measure); margin-inline: auto; }
@media (min-width: 52rem) {
  .bio { grid-template-columns: minmax(0,260px) minmax(0,1fr); text-align: left; align-items: start; gap: clamp(2rem,4vw,3rem); }
  .bio__portrait { width: 100%; margin: 0; }
  .bio__body { margin: 0; }
}
.bio__sig {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--brass-ink);
  margin-top: var(--s-4);
}

/* --------------------------------------------------------------------------
   14. FORM
   -------------------------------------------------------------------------- */
.form {
  max-width: 34rem;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--sh-3), var(--sh-inset);
  text-align: left;
}
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .form__row--2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field > label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .req { color: var(--brand-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-size: 1rem;                       /* 16px: iOS will not zoom on focus */
  padding: .85em .95em;
  min-height: 3rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-press);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-brass); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  border-color: var(--focus);
  box-shadow: var(--sh-press), 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.field__hint { font-size: var(--fs-sm); color: var(--ink-3); }

/* honeypot — must stay in the DOM and out of sight and out of the tab order */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.form__status { min-height: 1.5em; font-size: var(--fs-sm); }
.form__status[data-state="ok"]   { color: var(--ok); }
.form__status[data-state="err"]  { color: var(--brand-ink); }
.form__legal { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   15. FOOTER + FAMILY
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--plate);
  color: var(--plate-dim);
  border-top: 1px solid var(--line-plate);
  padding-block: var(--pad-y) var(--s-6);
}
.site-foot a { color: var(--sand); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: var(--s-7); text-align: center; }
@media (min-width: 48rem) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0,1fr)); text-align: left; gap: var(--gap); }
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: var(--s-3);
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li + li { margin-top: var(--s-2); }

/* the SEO serving line — real place names in indexable prose */
.serving {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-plate);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--plate-dim);
}

/* sibling businesses */
.fam { display: grid; gap: var(--gap); margin-top: var(--s-7); }
@media (min-width: 44rem) { .fam { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.fam-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  text-align: center;
  padding: var(--s-5);
  border: 1px solid var(--line-plate);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  color: var(--plate-ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fam-card:hover { border-color: var(--line-brass); background: rgba(255,255,255,.07); }
.fam-card img { height: 34px; width: auto; }
.fam-card .plaque--xs img { height: 30px; }
.fam-card span { font-size: var(--fs-sm); color: var(--plate-dim); }
.fam-card--here { border-color: var(--line-brass); background: rgba(192,138,62,.10); }
.fam-card--here::after {
  content: "You are here";
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--sand);
}

.colophon {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-plate);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   16. UTILITIES
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* --------------------------------------------------------------------------
   17. MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .svc:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   18. HIGH CONTRAST + PRINT
   -------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root { --line: rgba(23,21,32,.34); --line-2: rgba(23,21,32,.22); --ink-2: #33303C; --ink-3: #45414F; }
  .svc, .card, .form { border-width: 2px; }
}

@media print {
  .site-head, .hero__actions, .theme-toggle, .form, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .band--plate, .site-foot, .hero__plate { background: #fff !important; color: #000 !important; border: 1px solid #999; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; }
}
