/* SJW Certifiers, concept v1. Tokens and rules from the locked brief (18 Sep 2026).
   Mobile first: :root holds phone values, 768 and 1024 override. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/league-spartan-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Fallback plan only (not shipped). Jost replaces League Spartan one for one:
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face { font-family: "Jost Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 100 900;
  size-adjust: 97.4%;  ascent-override: 109.8%; descent-override: 38.5%; line-gap-override: 0%; }
*/
/* Metric-matched local faces so the swap shifts nothing. */
@font-face { font-family: "LS Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 100 900;
  size-adjust: 91.3%;  ascent-override: 76.7%;  descent-override: 24.1%; line-gap-override: 0%; }
@font-face { font-family: "PS Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 900;
  size-adjust: 103.4%; ascent-override: 91.9%;  descent-override: 21.8%; line-gap-override: 0%; }

:root {
  /* ---------- Colour: ink, paper, form, one accent ---------- */
  --ink:        #111111;
  --paper:      #FFFFFF;
  --form:       #F4F4F4;
  --accent:     #26309A;
  --ink-2:      #4A4A4A;
  --ink-2-dark: #B3B3B3;
  --hair:       #BDBDBD;
  --hair-dark:  #3A3A3A;

  --tick-done: var(--ink);
  --tick-now:  var(--accent);
  --focus:     var(--accent);
  /* Monochrome fallback:
     --tick-now: var(--ink); --focus: var(--ink); focus = 3px ink outline, 3px offset, plus a 2px paper inner ring. */

  /* ---------- Type: primary plan ---------- */
  --font-display: "League Spartan", "LS Fallback", sans-serif;
  --font-body:    "Public Sans", "PS Fallback", sans-serif;
  --h1-k: 8.9;
  --tr-h1: -0.035em;
  /* Fallback plan (not shipped). Replace the four lines above with:
     --font-display: "Jost", "Jost Fallback", sans-serif;
     --font-body:    "Public Sans", "PS Fallback", sans-serif;
     --h1-k: 9.7;
     --tr-h1: -0.03em;
     and at 1024+ set --fs-h1-max: 76px. */

  --fs-h1-max: 64px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --fs-h3-lg: 26px;
  --fs-num: 48px;
  --fs-lead: 18px;
  --fs-body: 17px;
  --fs-answer: 20px;
  --fs-value: 20px;
  --fs-cta: 16px;
  --fs-ribbon: 15px;
  --fs-label: 15px;
  --fs-small: 14px;

  --tr-display: -0.03em;
  --tr-num: -0.04em;
  --tr-sub: -0.02em;
  --tr-body: -0.01em;
  --tr-cta: 0.01em;
  --tr-label: 0.01em;
  --tr-ribbon: 0.08em;

  --lh-h1: 1.0; --lh-h2: 1.05; --lh-h3: 1.15; --lh-lead: 1.45; --lh-body: 1.6; --lh-ui: 1.2;

  /* ---------- Rhythm ---------- */
  --pad-top: 64px; --pad-bottom: 48px; --gap-block: 64px; --gutter: 24px;
  --max: 1240px;
  --split: minmax(0, 382fr) minmax(0, 618fr);
  --split-gap: 32px;
  --header-h: 64px;
  --strip-h: 32px;
  --tap: 44px;
  --control-h: 52px;
  --bar-h: 68px;

  --radius: 0;

  --rule: 2px solid var(--ink);
  --rule-hair: 1px solid var(--hair);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-2:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --dur-swap: 120ms;
  --dur-rule: 150ms;
  --dur-bar: 200ms;
  --dur-check: 200ms;
  --dur-undraw: 200ms;
  --dur-settle: 500ms;   /* was 300: slowed with the step tick for emphasis (Axel, 19 Sep) */
  --dur-count: 300ms;
  --dur-thread: 300ms;
  --dur-tick: 700ms;     /* was 420: current-step tick draw, read by motion.js */
  --dur-seq: 200ms;      /* document checklist, each tick, read by motion.js */
  --stagger-seq: 90ms;
  /* Hero draw, slowed to about double the brief (Axel, 19 Sep). The box draws, then the tick,
     and the corner opens as the tick's long arm crosses it (about 49% into the ease-out tick). */
  --dur-hero-box: 900ms;    --delay-hero-box: 150ms;
  --dur-hero-tick: 750ms;   --delay-hero-tick: 1050ms;
  --dur-hero-corner: 450ms; --delay-hero-corner: 1420ms;
}
@media (max-width: 359.98px) { :root { --gutter: 16px; } }
@media (min-width: 768px) {
  :root { --pad-top: 96px; --pad-bottom: 72px; --gap-block: 80px; --gutter: 40px; --split-gap: 40px;
          --fs-h2: 36px; --fs-h3: 26px; --fs-h3-lg: 30px; --fs-num: 56px; --fs-lead: 20px;
          --fs-answer: 22px; --fs-value: 22px; --fs-ribbon: 16px; }
}
@media (min-width: 1024px) {
  :root { --pad-top: 160px; --pad-bottom: 120px; --gap-block: 120px; --gutter: 80px; --split-gap: 48px;
          --header-h: 72px; --fs-h1-max: 80px;
          --fs-h2: 40px; --fs-h3: 28px; --fs-h3-lg: 32px; --fs-num: 64px; --fs-value: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body); letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Room for the mobile action bar, so it never covers the liability line. Reserved as an ink
   block under the closing bar (not paper padding), so the page still ends on ink when the bar is hidden. */
@media (max-width: 1023.98px) {
  body.has-bar::after {
    content: ""; display: block; height: calc(var(--bar-h) + env(safe-area-inset-bottom)); background: var(--ink);
  }
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
p, li, dd, td { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--paper); }
.tel, .num { font-variant-numeric: tabular-nums; }
::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: 8px; z-index: 200;
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 10px 16px;
  background: var(--ink); color: var(--paper); font: 600 16px/1 var(--font-body); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.container {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
h2 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2);
  line-height: var(--lh-h2); letter-spacing: var(--tr-display); text-wrap: balance;
}
h3 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3);
  line-height: var(--lh-h3); letter-spacing: var(--tr-sub); text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: 65ch; }

/* ---------- Ribbon (the logo's bar) ---------- */
.ribbon {
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px 0;
  background: var(--ink); color: var(--paper);
  font: 600 var(--fs-ribbon)/1 var(--font-display); letter-spacing: var(--tr-ribbon);
  border-radius: 0; white-space: nowrap;
}
.on-ink .ribbon { background: var(--paper); color: var(--ink); }
.now {
  display: none; align-items: center; min-height: 24px; padding: 2px 8px 0;
  background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--font-display); letter-spacing: 0.08em; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--control-h); padding: 12px 24px;
  border: var(--rule); border-radius: 0;
  font: 600 var(--fs-cta)/1 var(--font-body); letter-spacing: var(--tr-cta);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-swap) linear, color var(--dur-swap) linear;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--paper); color: var(--ink); }
.btn--secondary { background: var(--paper); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; }

/* ---------- The glyph (box and tick, brief part 4) ---------- */
.glyph { display: block; flex: none; fill: none; stroke-width: 11; overflow: visible; }
.glyph__box { stroke: currentColor; }
.glyph__tick {
  stroke: var(--tick-done); stroke-linejoin: miter; stroke-linecap: butt; stroke-miterlimit: 4;
  stroke-dasharray: 1 2; stroke-dashoffset: 0;
}
.box-i {
  display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.1em;
  fill: none; stroke: currentColor; stroke-width: 11; overflow: visible;
}
span.tbc {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  color: var(--ink-2); font: 400 17px/1.4 var(--font-body); letter-spacing: var(--tr-body);
}
span.tbc .box-i { align-self: center; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Concept strip ---------- */
.concept {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 0.35em;
  min-height: var(--strip-h); padding: 6px var(--gutter);
  background: var(--form); color: var(--ink);
  font: 500 var(--fs-small)/1.3 var(--font-body); letter-spacing: 0; text-align: center;
}
.concept .box-i { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--paper); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); opacity: 0; transition: opacity var(--dur-rule) linear;
}
.site-header.is-scrolled::after { opacity: 1; }
.header__in { display: flex; align-items: center; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); margin-right: auto; }
.brand img { width: auto; height: 46px; }
.header__nav, .header__cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: var(--tap); padding: 10px 14px;
  border: var(--rule); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 600 16px/1 var(--font-body); letter-spacing: var(--tr-cta); text-decoration: none;
  transition: background-color var(--dur-swap) linear, color var(--dur-swap) linear;
}
.menu-btn:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 1024px) {
  .brand { margin-right: 0; }
  .brand img { height: 48px; }
  .menu-btn { display: none; }
  .header__nav { display: block; margin-left: 56px; }
  .header__nav ul { display: flex; gap: 32px; }
  .header__nav a {
    display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap);
    font: 500 16px/1 var(--font-body); letter-spacing: 0; text-decoration: none;
    text-underline-offset: 6px;
  }
  .header__nav a:hover, .header__nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
  .header__cta { display: inline-flex; min-height: var(--tap); margin-left: auto; }
}

/* ---------- Menu sheet (below 1024) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet__bar { height: var(--header-h); }
.sheet__bar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.sheet__bar img { width: auto; height: 46px; }
.sheet__nav { margin-top: 24px; border-top: var(--rule); }
.sheet__nav li { border-bottom: var(--rule); }
.sheet__nav a {
  display: flex; align-items: center; min-height: 56px;
  font: 600 20px/1.2 var(--font-body); letter-spacing: var(--tr-sub); text-decoration: none;
}
.sheet__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sheet__contact { margin-top: 24px; padding-bottom: 40px; }
.sheet__contact a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: 17px; text-decoration: underline;
}
@media (min-width: 1024px) { .sheet { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--pad-top) var(--pad-bottom); }
.sec-head .ribbon + h2 { margin-top: 24px; }
.sec-head h2 + .lead, .sec-head h2 + p { margin-top: 24px; }
.sec-body { margin-top: var(--gap-block); }
.ruled { padding-top: 0; }
.ruled > .container::before { content: ""; display: block; border-top: var(--rule); margin-bottom: var(--pad-top); }

/* ---------- Page head (services, contact) ---------- */
.page-head { padding-block: 40px 48px; }
.page-head h1 {
  margin-top: 24px; max-width: 14em;
  font: 700 clamp(34px, 7vw, 64px)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance;
}
.page-head .lead { margin-top: 24px; }
@media (min-width: 1024px) { .page-head { padding-block: 72px 64px; } }
#next .hero__ctas { margin-top: 40px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding: 24px 0 48px; --mark: 112px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "tag mark" "text text"; column-gap: 16px; row-gap: 24px;
}
.hero__tag { grid-area: tag; align-self: end; justify-self: start; }
.hero__markwrap { grid-area: mark; }
.hero__mark { display: block; width: calc(var(--mark) * 1.1); height: var(--mark); color: var(--ink); }
.hero__text { grid-area: text; container-type: inline-size; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; line-height: var(--lh-h1); letter-spacing: var(--tr-h1);
  font-size: min(var(--fs-h1-max), calc((100vw - 2 * var(--gutter)) / var(--h1-k)));
  font-size: min(var(--fs-h1-max), calc(100cqi / var(--h1-k)));
  max-width: 9.6em;
  text-wrap: balance;
}
.hero__sub { margin-top: 16px; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: 36em; }
.hero__sub .box-i { margin-left: 0.14em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ctas .btn { padding-inline: 20px; }
@media (max-width: 359.98px) { .hero__ctas .btn { padding-inline: 16px; } }
@media (min-width: 768px) {
  .hero { --mark: 160px; padding: 40px 0 64px; }
  .hero__grid { row-gap: 32px; }
  .hero__sub { margin-top: 24px; }
  .hero__ctas { margin-top: 36px; }
  .hero__ctas .btn { padding-inline: 24px; }
}
/* Desktop: the mark sits in the minor column, fully visible, right-aligned to the container.
   Box side = the text block's height (ribbon top to CTA bottom), capped at 400px, and never
   wider than leaves 64px clear of the text column (the SVG letterboxes, so the box shrinks). */
@media (min-width: 1024px) {
  .hero { padding: 64px 0 96px; }
  .hero__grid {
    grid-template-columns: minmax(0, 618fr) minmax(0, 382fr);
    grid-template-areas: "tag ." "text ."; column-gap: var(--split-gap); row-gap: 32px;
  }
  .hero__markwrap { grid-area: 1 / 2 / 3 / 3; align-self: stretch; position: relative; min-height: 0; }
  .hero__mark {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    height: min(100%, 400px); width: auto; aspect-ratio: 110 / 100;
    max-width: calc(100% + var(--split-gap) - 64px);
  }
  .hero__ctas { margin-top: 40px; }
  .hero__ctas .btn { padding-inline: 28px; }
}
/* The dash exists only while drawing: at rest the box is one closed path with no start/end seam. */
@media (prefers-reduced-motion: no-preference) {
  .mk-box  { animation: sjw-draw var(--dur-hero-box) var(--ease-in-out) var(--delay-hero-box) backwards; }
  .mk-tick { animation: sjw-draw var(--dur-hero-tick) var(--ease-out) var(--delay-hero-tick) backwards; }
  .mk-band { animation: sjw-open var(--dur-hero-corner) var(--ease-out) var(--delay-hero-corner) backwards; }
}
/* Dash 1, gap 2 (pathLength 1): offset 1 hides the whole stroke with no zero-length sliver at either end. */
@keyframes sjw-draw { from { stroke-dasharray: 1 2; stroke-dashoffset: 1; } to { stroke-dasharray: 1 2; stroke-dashoffset: 0; } }
@keyframes sjw-open { from { stroke-width: 0; } to { stroke-width: 33px; } }

/* ---------- At a glance (ledger) ---------- */
.glance__in { border-top: var(--rule); padding-block: 40px; }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger li { padding: 24px 20px; }
.ledger li:nth-child(odd) { padding-left: 0; border-right: var(--rule-hair); }
.ledger li:nth-child(even) { padding-right: 0; }
.ledger li:nth-child(-n+2) { padding-top: 0; border-bottom: var(--rule-hair); }
.ledger li:nth-child(n+3) { padding-bottom: 0; }
.ledger__num {
  display: block; font: 700 var(--fs-num)/1 var(--font-display); letter-spacing: var(--tr-num);
}
.ledger__label { display: block; margin-top: 12px; max-width: 24ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 768px) {
  .ledger li { padding: 32px; }
}
@media (min-width: 1024px) {
  .glance__in { padding-block: 48px; }
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ledger li, .ledger li:nth-child(n) { padding: 0 32px; border: 0; border-left: var(--rule-hair); }
  .ledger li:first-child { padding-left: 0; border-left: 0; }
  .ledger li:last-child { padding-right: 0; }
  .ledger__label { margin-top: 16px; }
}

/* ---------- Photo slots ---------- */
.slot {
  position: relative; display: grid; place-items: center;
  background: var(--form); border: var(--rule); color: var(--ink);
  padding: 56px 40px; text-align: center; min-width: 0;
}
.slot__crop { position: absolute; width: 24px; height: 24px; border: 0 solid var(--ink); }
.slot__crop--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.slot__crop--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.slot__crop--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.slot__crop--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.slot__stack { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.slot__glyph { width: 56px; height: 56px; }
.slot__brief {
  font: 600 20px/1.2 var(--font-display); letter-spacing: var(--tr-sub); color: var(--ink);
  text-wrap: balance;
}
.slot__spec { max-width: 40ch; font: 400 15px/1.5 var(--font-body); color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 768px) { .slot__brief { font-size: 24px; } }


/* ---------- Services (the one dark section) ---------- */
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink a { color: var(--paper); }
.svc { border-top: 2px solid var(--paper); }
.svc__row { padding-block: 40px; border-bottom: 2px solid var(--paper); }
.svc__when {
  font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2-dark);
}
.svc__row h3 { margin-top: 8px; font-weight: 700; font-size: var(--fs-h3-lg); color: var(--paper); }
.svc__desc { margin-top: 16px; max-width: 58ch; font-size: 17px; line-height: var(--lh-body); color: var(--paper); }
.svc-foot { margin-top: 40px; max-width: 65ch; font-size: 17px; color: var(--ink-2-dark); text-wrap: balance; }
.svc-foot a { color: var(--paper); text-decoration: underline; }
@media (min-width: 768px) {
  .svc__row { display: grid; grid-template-columns: var(--split); column-gap: var(--split-gap); align-items: start; }
  .svc__desc { margin-top: calc(var(--fs-label) * 1.3 + 8px); }
}
@media (min-width: 1024px) { .svc__desc { font-size: 18px; } }

/* ---------- How a job runs ---------- */
.how__list { position: relative; }
.counter { font-variant-numeric: tabular-nums; }
.count { position: relative; display: inline-block; overflow: clip; height: 1em; line-height: 1; vertical-align: top; }
.count > span { display: inline-block; }
.count__old { position: absolute; left: 0; top: 0; }
.counter--list {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 2;
  display: flex; width: max-content; margin-bottom: 8px;
}

.rail { display: none; }
.steps > li { position: relative; scroll-margin-top: calc(var(--header-h) + 56px); }

/* Phone and tablet: the steps stack on a thread */
.step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px;
  padding-block: 32px 40px;
}
.step__glyph {
  grid-column: 1; grid-row: 1 / span 3; width: 30.8px; height: 28px; margin-top: 3px;
  background: var(--paper); position: relative; z-index: 1;
}
.step__main, .step .jargon { grid-column: 2; min-width: 0; }
.step::before {
  content: ""; position: absolute; left: 13px; top: calc(32px + 3px + 14px); bottom: calc(-32px - 3px - 14px);
  width: 2px; background: var(--hair); transition: background-color var(--dur-thread) linear;
}
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--ink); }
.step h3 { font-size: var(--fs-h3); }
.step__num {
  display: block; font: 700 40px/1 var(--font-display); letter-spacing: var(--tr-num);
  font-variant-numeric: tabular-nums;
}
.step__title { display: block; margin-top: 12px; }
.step__title .now { margin-left: 10px; vertical-align: 0.12em; }
.step.is-current .step__title .now { display: inline-flex; }
.step__body { margin-top: 16px; max-width: 52ch; }
.who { margin-top: 24px; }
.who dt { font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2); }
.who dd { margin-top: 4px; font: 600 17px/1.4 var(--font-body); color: var(--ink); }

.doclist { margin-top: 24px; }
.doclist__head { font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink); }
.doclist__list { margin-top: 12px; }
.doclist__list li { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.doclist__list .glyph { width: 26.4px; height: 24px; }

.jargon { margin-top: 32px; padding: 20px; background: var(--form); }
.jargon__label { font: 600 14px/1.3 var(--font-body); letter-spacing: 0; color: var(--ink); }
.jargon dl { margin-top: 12px; }
.jargon dt { font: 700 16px/1.5 var(--font-body); color: var(--ink); }
.jargon dt:not(:first-child) { margin-top: 16px; }
.jargon dd { font: 400 16px/1.5 var(--font-body); color: var(--ink-2); }
.jargon dd .box-i { margin-left: 0.3em; }

/* Glyph states. Classes live on the item (.js-state) and are set by main.js. */
/* Blue arrives at once with the draw; only the settle back to ink is eased. */
.glyph--state .glyph__tick { transition: stroke var(--dur-settle) linear; }
.js-state.is-current .glyph--state .glyph__tick { stroke: var(--tick-now); transition: none; }
#how[data-js] .js-state:not(.is-current):not(.is-done):not(.is-undrawing) .glyph--state .glyph__tick { visibility: hidden; }
#how[data-js] .js-state:not(.is-current):not(.is-done):not(.is-undrawing) .glyph--state .glyph__box { mask: none; }

.how__close {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  margin-top: 8px; padding-top: 40px; border-top: var(--rule-hair);
}
.how__close p { font: 600 var(--fs-h3)/var(--lh-h3) var(--font-display); letter-spacing: var(--tr-sub); }
@media (min-width: 768px) {
  .how__close { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .how__grid { display: grid; grid-template-columns: var(--split); column-gap: var(--split-gap); }
  .rail { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .rail .counter { margin-bottom: 24px; }
  .rail__nav { position: relative; }
  .rail__thread { position: absolute; left: 15px; top: 28px; bottom: 28px; width: 2px; background: var(--hair); }
  .rail__fill {
    position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0;
    transform: scaleY(var(--thread, 0)); transition: transform var(--dur-thread) var(--ease-out-2);
  }
  .rail__item { position: relative; z-index: 1; }
  .rail__link {
    display: flex; align-items: center; gap: 16px; min-height: 56px;
    font: 600 17px/1.2 var(--font-body); letter-spacing: var(--tr-body); text-decoration: none;
  }
  .rail__link:hover .rail__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .rail__link .glyph { width: 35.2px; height: 32px; background: var(--paper); }
  .rail__item.is-current .rail__title { font-weight: 700; }
  .rail__item.is-current .now { display: inline-flex; }

  .counter--list { display: none !important; }
  .step { display: block; padding-block: 72px; border-top: var(--rule-hair); }
  .step::before, .step__glyph { display: none; }
  .steps > li { scroll-margin-top: calc(var(--header-h) + 32px); }
  .step__num { font-size: var(--fs-num); }
  .step__title { margin-top: 16px; }
  .step.is-current .step__title .now { display: none; }
  .how__close { margin-top: 0; padding-top: 48px; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .rail__link { min-height: 44px; }
  .rail__thread { top: 22px; bottom: 22px; }
}
@media (min-width: 1280px) {
  .step.has-note { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 40px; align-items: start; }
  .step.has-note .step__main { grid-column: 1; }
  .step.has-note .jargon { grid-column: 2; grid-row: 1; margin-top: calc(var(--fs-num) + 16px); }
}

/* ---------- Working with Sam ---------- */
.statement { max-width: 766px; font-size: 28px; }
@media (min-width: 768px) { .statement { font-size: var(--fs-h2); } }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp th {
  text-align: left; vertical-align: bottom; padding: 0 0 16px;
  font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2);
  border-bottom: var(--rule);
}
.cmp td { vertical-align: top; padding: 24px 0; }
.cmp tbody tr + tr td { border-top: var(--rule-hair); }
.cmp__q { font: 400 20px/1.45 var(--font-body); color: var(--ink-2); }
.cmp__a { font: 600 var(--fs-answer)/1.3 var(--font-display); letter-spacing: var(--tr-sub); color: var(--ink); }
.cmp__head { display: none; }
@media (min-width: 768px) {
  .cmp col.c1 { width: 38.2%; }
  .cmp col.c2 { width: 61.8%; }
  .cmp th:first-child, .cmp td:first-child { padding-right: var(--split-gap); }
}
@media (max-width: 767.98px) {
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tbody { border-top: var(--rule); }
  .cmp tr { padding-block: 24px; }
  .cmp tbody tr + tr { border-top: var(--rule); }
  .cmp tbody tr + tr td { border-top: 0; }
  .cmp td { padding: 0; }
  .cmp td + td { margin-top: 16px; }
  .cmp__q { font-size: 18px; }
  .cmp__head {
    display: block; margin-bottom: 6px;
    font: 600 14px/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2);
  }
}

/* ---------- Where Sam works ---------- */
.area__grid { display: grid; gap: 40px; }
.area__photo { overflow: clip; }
.area__photo .slot { aspect-ratio: 4 / 3; }
.area__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--form); }
.fields { display: grid; gap: 32px; align-content: start; }
.fields dt { font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2); }
.fields dd {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 8px; padding-bottom: 8px; border-bottom: var(--rule); min-height: 44px;
}
.fields__v { font: 600 var(--fs-value)/1.25 var(--font-display); letter-spacing: var(--tr-sub); color: var(--ink); }
.towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.towns li { position: relative; padding-left: 20px; }
.towns li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--ink); }
@media (min-width: 768px) {
  .area__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap); align-items: center; }
  .area__photo { order: 2; }
  .area__photo .slot { aspect-ratio: 4 / 5; }
  .area__img { aspect-ratio: 4 / 5; }
}
@media (min-width: 1024px) {
  .area__grid { grid-template-columns: minmax(0, 618fr) minmax(0, 382fr); }
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 64px; column-gap: 48px; }
}

/* ---------- Fee quote ---------- */
.mail-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 0.3em;
  min-height: 56px; margin-top: 24px; padding: 8px 12px;
  border: var(--rule); background: var(--paper); color: var(--ink);
  font: 600 16px/1.25 var(--font-body); letter-spacing: 0; text-align: center; text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--dur-swap) linear, color var(--dur-swap) linear;
}
.mail-row:hover { background: var(--ink); color: var(--paper); }
.call-line { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.call-line a { color: var(--ink-2); }

.quote__grid { display: grid; gap: 32px; margin-top: 40px; }
.to {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 20px; row-gap: 2px;
  align-items: center; padding-bottom: 32px; border-bottom: var(--rule-hair);
}
.to .slot { grid-column: 1; grid-row: 1 / span 3; width: 120px; height: 120px; padding: 0; }
.to .slot .slot__crop, .to .slot .ribbon, .to .slot .slot__brief, .to .slot .slot__spec { display: none; }
.to .slot .slot__glyph { width: 28px; height: 28px; }
.to__photo { grid-column: 1; grid-row: 1 / span 3; display: block; width: 120px; height: 120px; object-fit: cover; background: var(--form); }
.to__who, .to__role, .to__details { grid-column: 2; }
.to__label { font: 600 14px/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2); }
.to__name { font: 700 20px/1.2 var(--font-display); letter-spacing: var(--tr-sub); }
.to__role { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.to__details { display: grid; }
.to__details div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.to__details dt { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.to__details dd { font-size: 15px; }
.to__details span.tbc { font-size: 15px; }
.to__contact { display: none !important; }
@media (min-width: 768px) {
  .mail-row, .call-line { display: none; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .to { grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; }
  .to .slot { grid-row: 1 / span 4; width: 160px; height: 160px; }
  .to__photo { grid-row: 1 / span 4; width: 160px; height: 160px; }
  .to__details dt, .to__details dd, .to__details span.tbc, .to__role { font-size: 17px; }
  .to__details div { align-items: center; }
  .to__details dd a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .to__contact { display: flex !important; }
}
@media (min-width: 1024px) {
  .quote__grid { grid-template-columns: var(--split); column-gap: var(--split-gap); margin-top: var(--gap-block); align-items: start; }
  .to { display: block; padding-bottom: 0; border-bottom: 0; }
  .to__label { display: block; }
  .to__colon { display: none; }
  .to__name { display: block; margin-top: 8px; font-size: 32px; line-height: 1.1; }
  .to__role { margin-top: 8px; font-size: 17px; }
  .to .slot { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; margin-top: 32px; padding: 48px 32px; }
  .to__photo { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; margin-top: 32px; }
  .to .slot .slot__crop, .to .slot .slot__spec, .to .slot .slot__brief { display: block; }
  .to .slot .ribbon { display: inline-flex; }
  .to .slot .slot__stack { gap: 12px; }
  .to .slot .slot__glyph { width: 56px; height: 56px; }
  .to .slot .slot__brief { font-size: 22px; }
  .to__details { margin-top: 32px; gap: 16px; max-width: 320px; }
  .to__details div { display: block; }
  .to__details dt { font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink-2); }
  .to__details dd { margin-top: 2px; font-size: 17px; }
  .to__details dd a { display: inline-flex; align-items: center; min-height: var(--tap); }
  .to__details span.tbc { font-size: 17px; }
  .to__contact { display: block !important; }
}

.qform { min-width: 0; }
.fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.fs + .fs { margin-top: 56px; }
.fs > legend {
  float: left; width: 100%; padding: 0 0 16px; margin-bottom: 24px; border-bottom: var(--rule);
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-display); letter-spacing: var(--tr-sub);
}
.fs > legend + * { clear: both; }
.field + .field, .field + .field-row, .field-row + .field, .field + .subfs, .subfs + .subfs { margin-top: 28px; }
.field-row { display: grid; gap: 28px; }
.field-row > .field + .field { margin-top: 0; }
.field label, .subfs > legend {
  display: block; font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: var(--tr-label); color: var(--ink);
}
.req { font-weight: 400; color: var(--ink-2); }
.input {
  display: block; width: 100%; min-height: var(--control-h); margin-top: 8px; padding: 12px 14px;
  border: var(--rule); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.4 var(--font-body); letter-spacing: 0;
  -webkit-appearance: none; appearance: none;
}
textarea.input { padding: 12px 14px; min-height: calc(5 * 17px * 1.5 + 28px); line-height: 1.5; resize: vertical; }
.field__help { margin-top: 8px; font: 400 15px/1.45 var(--font-body); color: var(--ink-2); }
.field__error {
  display: flex; align-items: baseline; gap: 8px; margin-top: 8px;
  font: 600 15px/1.4 var(--font-body); color: var(--ink);
}
.field__error .box-i { align-self: center; flex: none; }

.subfs { margin: 0; padding: 0; border: 0; min-width: 0; }
.subfs > legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; }
.subfs > legend + * { clear: both; }

.checks { display: grid; border-top: var(--rule-hair); }
.check { position: relative; display: block; cursor: pointer; }
.check input, .seg input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.check__row {
  display: flex; align-items: center; gap: 14px; min-height: var(--control-h); padding: 0 4px;
  border-bottom: var(--rule-hair); font: 400 17px/1.3 var(--font-body);
}
.check__row .glyph { width: 30.8px; height: 28px; }
.check .glyph__tick { stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-check) var(--ease-out); }
.check input:checked + .check__row .glyph__tick { stroke-dashoffset: 0; }
.check input:checked + .check__row .glyph__box { mask: url(#sjw-gap); }
.check input:checked + .check__row { font-weight: 600; }
.check:hover .check__row span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.check input:focus-visible + .check__row { outline: 3px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
@media (min-width: 768px) {
  .checks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg label + label { margin-left: -2px; }
.seg__opt {
  display: flex; align-items: center; justify-content: center; min-height: var(--control-h); padding: 2px 8px 0;
  border: var(--rule); background: var(--paper); color: var(--ink);
  font: 600 16px/1.1 var(--font-body); letter-spacing: var(--tr-cta); text-align: center;
  transition: background-color var(--dur-swap) linear, color var(--dur-swap) linear;
}
.seg label:hover .seg__opt { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.seg input:checked + .seg__opt { background: var(--ink); color: var(--paper); text-decoration: none; }
.seg input:focus-visible + .seg__opt { outline: 3px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 48px; max-width: 65ch; font: 400 15px/1.5 var(--font-body); color: var(--ink-2); text-wrap: balance; }
.form-note a { color: var(--ink-2); }
.form-error {
  display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding: 14px 16px;
  border: var(--rule); font: 600 15px/1.45 var(--font-body); color: var(--ink);
}
.form-error .box-i { align-self: center; flex: none; }
.btn--submit { width: 100%; margin-top: 20px; }
.form-after { margin-top: 16px; font: 400 15px/1.5 var(--font-body); color: var(--ink-2); }
@media (min-width: 768px) { .btn--submit { width: auto; min-width: 240px; } }

/* ---------- Footer ---------- */
.footer { border-top: var(--rule); }
.footer__in { padding-block: 64px 32px; }
.footer__logo { display: inline-block; }
.footer__logo img { width: auto; height: 112px; }
.footer__cols { display: grid; gap: 32px; margin-top: 48px; }
.footer__col p { line-height: 1.5; }
.footer__col p + p { margin-top: 6px; }
.footer__name { font-weight: 700; }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.footer__links .plain { display: flex; align-items: center; flex-wrap: wrap; gap: 0 0.4em; min-height: var(--tap); }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer__legal {
  display: flex; flex-direction: column; gap: 4px; margin-top: 48px; padding-top: 24px;
  border-top: var(--rule-hair); font-size: var(--fs-small); line-height: 1.5; color: var(--ink);
}
.footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); }
.closing-bar {
  display: flex; align-items: center; justify-content: center; height: 56px; padding-top: 2px;
  background: var(--ink); color: var(--paper);
  font: 600 20px/1 var(--font-display); letter-spacing: 0.08em;
}
@media (min-width: 768px) {
  .footer__in { padding-block: 96px 48px; }
  .footer__logo img { height: 160px; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
  .footer__legal { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 32px; }
  .footer__legal p:first-child { flex-basis: 100%; }
  .closing-bar { height: 72px; }
}
@media (min-width: 1024px) {
  .footer__legal p:first-child { flex-basis: auto; margin-right: auto; }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--form); border-top: var(--rule);
  transform: translateY(100%); visibility: hidden;
  transition: transform var(--dur-bar) var(--ease-out-2), visibility 0s linear var(--dur-bar);
}
.action-bar.is-shown {
  transform: none; visibility: visible;
  transition: transform var(--dur-bar) var(--ease-out-2), visibility 0s linear 0s;
}
.action-bar__mail { flex: none; width: var(--control-h); height: var(--control-h); padding: 0; }
.action-bar__mail svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: miter; }
.action-bar .btn--primary { flex: 1 1 auto; }
@media (min-width: 1024px) { .action-bar { display: none !important; } }

/* ---------- Thanks page ---------- */
.thanks { padding-block: 56px 96px; }
.thanks__mark { width: calc(112px * 1.1); height: 112px; color: var(--ink); }
.thanks h1 {
  margin-top: 40px; max-width: 12em;
  font: 700 clamp(34px, 7vw, 64px)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance;
}
.thanks p { margin-top: 24px; max-width: 46ch; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); }
.thanks .btn { margin-top: 40px; }
@media (min-width: 1024px) {
  .thanks { padding-block: 120px 160px; }
  .thanks__mark { width: calc(160px * 1.1); height: 160px; }
}

/* ---------- Reduced motion: final states, instantly ---------- */
/* ---------- Scroll motion (M-20, M-01, G-03 as CSS, M-64) ----------
   Nothing is hidden outside these rules: with reduced motion,
   or a browser without scroll-driven animation, the page is simply still. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec-head, .ledger li, .area__photo, .how .steps > li, .to, .svc__row {
      animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    .area__img { animation: lean-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes lean-in { from { transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
