/* ============================================================
   STANDARD BUREAU — Page styles
   Recreated from the Claude Design handoff prototype.
   Tweak defaults baked in: Copper accent, light hero,
   Bodoni Moda display serif.
   Depends on colors_and_type.css for tokens.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sb-surface);
  color: var(--sb-text);
  font-family: var(--sb-body);
  -webkit-font-smoothing: antialiased;
  /* baked-in accent — copper */
  --accent: var(--sb-copper);
  --accent-deep: #8E4A29;

  /* fluid vertical rhythm — one scale, varied beat (not metronomic) */
  --bay:        clamp(80px,  4vw + 52px, 148px);  /* standard section band */
  --bay-tight:  clamp(52px,  3vw + 30px, 100px);  /* tighter band (figures, footer) */
  --bay-loose:  clamp(120px, 9vw + 56px, 224px);  /* dramatic pause (the dark statement) */
  --head-gap:   clamp(28px,  3vw,        60px);   /* section-head: label ↔ content */
  --head-stack: clamp(40px,  4.5vw,      80px);   /* section-head ↔ body */
  --flow-sm:    clamp(20px,  2vw,        32px);   /* small stack within a group */
  --flow-md:    clamp(32px,  3.5vw,      52px);   /* medium stack between groups */
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

/* keyboard focus — one consistent copper ring, squared to match the system.
   Mouse focus stays clean (focus-visible only); never removed without a replacement. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sb-accent-ink);
  outline-offset: 3px;
}
/* on dark ink surfaces the copper ring drops to 2.28:1; switch to paper (11.5:1) */
.ledger-dark a:focus-visible,
.ledger-dark button:focus-visible,
.ledger-dark [tabindex]:focus-visible {
  outline-color: var(--sb-paper-soft);
}
/* skip link — first focusable element, slides in from above on focus */
.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 60;
  background: var(--sb-ink);
  color: var(--sb-paper-soft);
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
  border-radius: var(--sb-radius-1);
  transition: top .16s cubic-bezier(.2, .8, .2, 1);
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline: 2px solid var(--sb-paper-soft); outline-offset: 2px; }
/* main is a programmatic skip target, not a control — no visible ring, but clears the sticky header */
#main { scroll-margin-top: 88px; }
#main:focus, #main:focus-visible { outline: none; }

/* faint ledger gridlines, white-first */
.ledger {
  background-image:
    linear-gradient(90deg, rgba(50,49,41,.035) 1px, transparent 1px),
    linear-gradient(rgba(50,49,41,.028) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
}
.ledger-dark {
  background-image:
    linear-gradient(90deg, rgba(247,240,226,.05) 1px, transparent 1px),
    linear-gradient(rgba(247,240,226,.04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
}

/* brand serif/accent overridable via these vars */
.display-font { font-family: var(--display-stack, var(--sb-serif)); }

/* ---- buttons ---- */
.sb-btn { font-family: var(--sb-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid var(--sb-ink); cursor: pointer; transition: background .16s ease, color .16s ease, transform .12s ease, border-color .16s ease; text-decoration: none; background: var(--sb-ink); color: var(--sb-paper-soft); border-radius: var(--sb-radius-1); }
.sb-btn:hover { background: #45433a; }
.sb-btn:active { transform: translateY(1px); }
.sb-btn:disabled, .sb-btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.sb-btn--secondary { background: transparent; color: var(--sb-ink); }
.sb-btn--secondary:hover { background: var(--sb-surface-filed); }
.sb-btn--ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 0 4px; min-height: 0; }
.sb-btn--ghost:hover { text-decoration: underline; }
.sb-btn--on-ink { background: var(--sb-paper-soft); color: var(--sb-ink); border-color: var(--sb-paper-soft); }
.sb-btn--on-ink:hover { background: #fff; }

.label { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); }
.label--accent { color: var(--sb-accent-ink); }

/* sticky masthead */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.1) blur(8px); border-bottom: 1px solid var(--sb-ink); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.mh-brand { display: flex; align-items: center; gap: 16px; }
.mh-brand img { height: 30px; display: block; }
.mh-tag { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); border-left: 1px solid var(--sb-border-mid); padding-left: 16px; }
.mh-nav { display: flex; gap: 30px; align-items: center; }
.mh-nav a { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--sb-ink); padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; cursor: pointer; }
.mh-nav a:hover { color: var(--accent); }
.mh-nav a.active { border-color: var(--accent); color: var(--accent); }
.mh-nav a.cta { min-height: 44px; padding: 0 18px; }

.anchor { scroll-margin-top: 120px; }

/* ---- signature motifs ---- */
/* dot-leader row: label …… value (table-of-contents grammar) */
.leader { display: flex; align-items: baseline; gap: 0; width: 100%; }
.lead-dots { flex: 1 1 auto; align-self: stretch; border-bottom: 1.5px dotted var(--sb-border-mid); margin: 0 14px; transform: translateY(-5px); min-width: 24px; }

/* running head — the mono section marker that runs down the page */
.runhead { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--sb-muted); }

/* office stamp */
.stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sb-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); border: 1.5px solid var(--accent); padding: 7px 14px; border-radius: var(--sb-radius-1); }

/* document header strip under the masthead */
.docstrip { border-bottom: 1px solid var(--sb-border); }
.docstrip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px 0; flex-wrap: wrap; }
.docstrip span { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sb-muted); }
.docstrip .sep { color: var(--sb-border-mid); }

/* double rule */
.rule-double { border-top: 1px solid var(--sb-ink); border-bottom: 1px solid var(--sb-ink); height: 4px; }

.hero-toc-row:hover { padding-left: 14px !important; }
.hero-toc-row:hover .lead-dots { border-bottom-color: var(--accent); }

@keyframes sbFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* a pulled record: the panel slides in from the file drawer, not a plain fade */
@keyframes sbPull { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
/* a rubber stamp coming down on paper: drops in larger + rotated, settles */
@keyframes sbStampIn { 0% { opacity: 0; transform: rotate(-9deg) scale(1.28); } 55% { opacity: 1; } 100% { opacity: 1; transform: rotate(-2deg) scale(1); } }
@keyframes sbStampPress { 0% { opacity: 0; transform: rotate(5deg) scale(1.45); } 52% { opacity: 1; transform: rotate(-3deg) scale(.95); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes sbRowIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes sbChipPulse { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ============================================================
   SECTION SCAFFOLD (from Primitives sbStyles)
   ============================================================ */
.section { padding: var(--bay) 0; }
/* Decisive ink rule OPENS each section-head (document grammar) instead of a
   timid soft rule closing each section. The mono label hangs from the rule. */
.section-head { display: grid; grid-template-columns: .5fr 1.5fr; gap: var(--head-gap); margin-bottom: var(--head-stack); align-items: start; border-top: 1px solid var(--sb-ink); padding-top: 22px; }
.section-num { display: block; font-family: var(--sb-mono); font-size: 11px; letter-spacing: .14em; color: var(--sb-accent-ink); margin-bottom: 14px; }
.section-head h2 { margin-bottom: var(--flow-sm); }
.section-head h2.no-lede { margin-bottom: 0; }
.section-head .sb-lede { max-width: 600px; }

/* ============================================================
   HERO (from Hero heroStyles)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--sb-surface); color: var(--sb-text); }
.hero-watermark { position: absolute; right: -9%; top: 50%; transform: translateY(-50%); height: 150%; width: auto; opacity: .05; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(72px, 8vw, 136px); padding-bottom: 0; }
.hero-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-kicker { font-family: var(--sb-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sb-accent-ink); }
.hero-stamp { transform: rotate(-2deg); animation: sbStampIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 { margin: clamp(28px, 3.5vw, 52px) 0 0; color: var(--sb-text); max-width: 1100px; }
.hero-lede { max-width: 600px; margin-top: var(--flow-sm); color: var(--sb-text-secondary); }
.hero-actions { display: flex; gap: 14px; margin-top: var(--flow-md); flex-wrap: wrap; }

.hero-toc { position: relative; z-index: 1; margin-top: clamp(64px, 8vw, 120px); }
.hero-toc-head { display: flex; justify-content: space-between; border-top: 1px solid var(--sb-ink); padding-top: 12px; font-family: var(--sb-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sb-text-secondary); }
.hero-toc-row { width: 100%; display: flex; align-items: baseline; gap: 20px; padding: clamp(20px, 2.4vw, 32px) 0; border: none; border-top: 1px solid var(--sb-border-mid); background: transparent; cursor: pointer; text-align: left; transition: padding-left .18s ease; color: var(--sb-text); text-decoration: none; }
.hero-toc-name { font-family: var(--sb-serif); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.025em; line-height: 1; flex: 0 0 auto; }
.hero-toc-verb { font-family: var(--sb-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; flex: 0 0 auto; color: var(--sb-text-secondary); }
/* trailing arrow signals these rows NAVIGATE to a full service page,
   unlike the in-page filing-cabinet tabs below (which only swap a panel) */
.hero-toc-go { font-family: var(--sb-mono); font-size: 15px; line-height: 1; flex: 0 0 auto; color: var(--sb-text-muted); transition: transform .18s ease, color .18s ease; }
.hero-toc-row:hover .hero-toc-go { transform: translateX(5px); color: var(--accent); }
.hero-toc-end { height: 1px; background: var(--sb-ink); }
.hero-toc-spacer { height: clamp(64px, 8vw, 104px); }

/* ============================================================
   SERVICES — filing cabinet (from Services svcStyles)
   ============================================================ */
.sb-cabinet { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--sb-ink); border-radius: var(--sb-radius-1); background: var(--sb-surface-filed); }
.sb-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--sb-ink); }
.svc-tab { display: flex; align-items: center; gap: 14px; padding: 26px 22px; border: none; border-bottom: 1px solid var(--sb-border-mid); background: var(--sb-surface-raised); cursor: pointer; text-align: left; transition: background .15s ease; position: relative; }
.svc-tab.on { background: var(--sb-surface-filed); margin-right: -1px; box-shadow: inset 3px 0 0 var(--accent); }
.svc-tab-name { font-family: var(--sb-serif); font-weight: 500; font-size: 22px; letter-spacing: -.02em; flex: 1 1 auto; line-height: 1; color: var(--sb-text-secondary); }
.svc-tab.on .svc-tab-name { color: var(--sb-ink); }
.svc-tab-verb { font-family: var(--sb-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; flex: 0 0 auto; color: transparent; }
.svc-tab.on .svc-tab-verb { color: var(--sb-accent-ink); }

.svc-panel { padding: 40px 44px; animation: sbPull .28s cubic-bezier(.2, .8, .2, 1); }
.svc-panel-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sb-line); padding-bottom: 14px; margin-bottom: 24px; }
.svc-panel-no { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-accent-ink); }
.svc-panel-name { font-family: var(--sb-serif); font-weight: 500; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.03em; line-height: 1; color: var(--sb-ink); margin: 0 0 20px; }
.svc-summary { font-family: var(--sb-serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.015em; line-height: 1.22; color: var(--sb-ink); margin: 0 0 16px; max-width: 640px; }
.svc-fn { font-family: var(--sb-body); font-size: 16px; line-height: 1.62; color: var(--sb-text-secondary); margin: 0 0 30px; max-width: 620px; }
.svc-rows { display: grid; gap: 0; max-width: 620px; }
.svc-leader-row { padding: 13px 0; border-top: 1px solid var(--sb-line); }
.svc-lk { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-text-secondary); flex: 0 0 auto; }
.svc-lv { font-family: var(--sb-body); font-size: 15px; color: var(--sb-ink); flex: 0 0 auto; }

/* ============================================================
   METHOD (from Method methodStyles)
   ============================================================ */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--sb-ink); border-bottom: 1px solid var(--sb-ink); }
.method-cell { padding: clamp(32px, 3vw, 48px) clamp(20px, 2vw, 32px) clamp(28px, 3vw, 44px) 0; border-right: 1px solid var(--sb-border); }
/* breathing room between a divider and the next column's text (the first
   cell stays flush so it aligns with the section's top rule) */
.method-cell + .method-cell { padding-left: clamp(24px, 2.4vw, 40px); }
.method-cell:last-child { border-right: none; }
.method-cell h3 { margin: 0 0 var(--flow-sm); }
.method-body { font-family: var(--sb-body); font-size: 15px; line-height: 1.6; color: var(--sb-text-secondary); max-width: 240px; }

/* ============================================================
   STATEMENT (from Statement stStyles)
   ============================================================ */
.statement { background: var(--sb-ink); color: var(--sb-paper-soft); padding: var(--bay-loose) 0; }
.statement-inner { position: relative; z-index: 1; }
.statement-kicker { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sb-copper-on-ink); }
.statement-quote { font-family: var(--sb-serif); font-weight: 500; font-size: clamp(34px, 5vw, 66px); letter-spacing: -.04em; line-height: 1.04; color: var(--sb-paper-soft); margin: var(--flow-sm) 0 0; max-width: 1000px; text-wrap: balance; }
.statement-foot { display: flex; justify-content: space-between; margin-top: var(--flow-md); padding-top: 22px; border-top: 1px solid rgba(247,240,226,.18); }
.statement-foot span { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-archive); }

/* ============================================================
   CONTACT (from Contact ctStyles)
   ============================================================ */
.contact { background: var(--sb-surface-raised); }
.ct-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 0; border: 1px solid var(--sb-ink); border-radius: var(--sb-radius-1); background: var(--sb-surface); }
.ct-sheet { padding: 40px; border-right: 1px solid var(--sb-border); }
.ct-sheet-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sb-line); padding-bottom: 16px; margin-bottom: 28px; }
.ct-sheet-no { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-accent-ink); }
.ct-form { display: flex; flex-direction: column; gap: 22px; }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field-label { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); }
.ct-field-label .req { color: var(--sb-accent-ink); }
.ct-input { font-family: var(--sb-body); font-size: 16px; color: var(--sb-ink); padding: 12px 14px; border: 1px solid var(--sb-border-mid); border-radius: var(--sb-radius-1); background: var(--sb-surface); outline: none; width: 100%; }
.ct-input:focus { border-color: var(--sb-ink); }
textarea.ct-input { resize: vertical; font-family: var(--sb-body); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--sb-border-mid); background: transparent; color: var(--sb-text-secondary); cursor: pointer; border-radius: var(--sb-radius-1); transition: all .14s ease; }
.ct-chip.on { background: var(--sb-ink); color: var(--sb-paper-soft); border-color: var(--sb-ink); animation: sbChipPulse .25s ease; }
.ct-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.ct-hint { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-muted); }
.ct-confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 8px 0; }
.ct-stamp { font-family: var(--sb-mono); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); border: 2px solid var(--accent); padding: 8px 18px; border-radius: var(--sb-radius-1); transform: rotate(-3deg); animation: sbStampPress .5s cubic-bezier(.2, .8, .2, 1) both; }
/* receipt lines draw in under the stamp, one after another */
.ct-receipt .ct-rspec { animation: sbRowIn .38s ease both; }
.ct-receipt .ct-rspec:nth-child(1) { animation-delay: .14s; }
.ct-receipt .ct-rspec:nth-child(2) { animation-delay: .20s; }
.ct-receipt .ct-rspec:nth-child(3) { animation-delay: .26s; }
.ct-receipt .ct-rspec:nth-child(4) { animation-delay: .32s; }
.ct-confirm-lede { font-family: var(--sb-serif); font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; color: var(--sb-ink); margin: 0; max-width: 520px; }
.ct-receipt { display: grid; gap: 0; width: 100%; max-width: 520px; margin-bottom: 6px; }
.ct-rspec { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--sb-line); padding: 11px 0; }
.ct-rk { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); }
.ct-rv { font-family: var(--sb-body); font-size: 14px; color: var(--sb-ink); }
.ct-aside { padding: 40px; display: flex; flex-direction: column; gap: 0; background: var(--sb-surface-filed); }
.ct-aside-label { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); margin-bottom: 12px; }
.ct-email { font-family: var(--sb-serif); font-weight: 500; font-size: 24px; letter-spacing: -.02em; color: var(--sb-text-link); text-decoration: none; word-break: break-word; }
.ct-aside-rule { height: 1px; background: var(--sb-line); margin: 26px 0; }
.ct-aside-note { font-family: var(--sb-body); font-size: 15px; line-height: 1.6; color: var(--sb-text-secondary); margin: 0; }
.ct-aside-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.ct-aside-meta-k { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); }
.ct-aside-meta-v { font-family: var(--sb-body); font-size: 14px; color: var(--sb-ink); }
.hidden { display: none !important; }
/* honeypot — off-screen, kept out of tab order and the a11y tree */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER (from Footer ftStyles)
   ============================================================ */
.footer { background: var(--sb-surface); padding: var(--bay-tight) 0 clamp(40px, 4vw, 56px); border-top: 1px solid var(--sb-ink); }
.ft-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--sb-border); }
.ft-logo { height: 60px; width: auto; mix-blend-mode: multiply; }
.ft-tag { font-family: var(--sb-body); font-size: 15px; line-height: 1.6; color: var(--sb-text-secondary); max-width: 460px; margin: 24px 0 0; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ft-col-head { display: block; font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-accent-ink); margin-bottom: 16px; }
.ft-link { display: block; font-family: var(--sb-body); font-size: 15px; color: var(--sb-text); text-decoration: none; padding: 5px 0; cursor: pointer; }
.ft-link:hover { color: var(--accent); }
.ft-foot { display: flex; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; gap: 12px; }
.ft-mono { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: var(--flow-sm); margin-bottom: var(--head-stack); }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-sheet { border-right: none; border-bottom: 1px solid var(--sb-border); }
  .ft-top { grid-template-columns: 1fr; gap: 36px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-cell:nth-child(odd) { border-right: 1px solid var(--sb-border); padding-left: 0; }
  .method-cell:nth-child(even) { padding-left: clamp(20px, 2.4vw, 32px); }
  .method-cell { padding-right: 20px; }
}

@media (max-width: 760px) {
  .sb-cabinet { grid-template-columns: 1fr !important; }
  .sb-cabinet .sb-tabs { flex-direction: row !important; border-right: none !important; border-bottom: 1px solid var(--sb-ink) !important; overflow-x: auto; }
  .sb-cabinet .sb-tabs button { flex: 1 0 auto; border-bottom: none !important; border-right: 1px solid var(--sb-border-mid) !important; }
  .ct-row2 { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-cell, .method-cell:nth-child(odd), .method-cell:nth-child(even) { border-right: none; border-bottom: 1px solid var(--sb-border); padding: 28px 0 22px; }
}

@media (max-width: 860px) {
  /* Hide only the tagline. KEEP the section links reachable — they drop to a
     full-width second row under the brand, like a document sub-header rule.
     (Previously these were display:none, stranding Method/Posture/Contact
     with no way to reach them from the masthead.) */
  .mh-tag, .docstrip-inner span.opt { display: none; }
  .masthead-inner { flex-wrap: wrap; row-gap: 12px; }
  .mh-nav { flex: 1 0 100%; justify-content: flex-start; flex-wrap: wrap; gap: 22px; align-items: center; border-top: 1px solid var(--sb-border); padding-top: 12px; }
  .mh-nav a:not(.cta) { min-height: 44px; display: inline-flex; align-items: center; }  /* 44px tap target */
  .mh-nav a.cta { margin-left: auto; }                /* push CTA to the row's right edge */
}

/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */
.mh-brand[href] { text-decoration: none; }

/* per-service panel CTA on the homepage cabinet */
.svc-panel-cta { margin-top: 30px; }

/* ---- service hero (title page for a single service) ---- */
.svc-hero { position: relative; overflow: hidden; background: var(--sb-surface); }
.svc-hero-watermark { position: absolute; right: -9%; top: 50%; transform: translateY(-50%); height: 150%; width: auto; opacity: .05; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.svc-hero-inner { position: relative; z-index: 1; padding: clamp(48px, 5vw, 80px) 0 clamp(72px, 8vw, 128px); }
.svc-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--sb-border-mid); padding-bottom: 16px; margin-bottom: clamp(40px, 5vw, 72px); }
.svc-back { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); text-decoration: none; }
.svc-back:hover { color: var(--accent); }
.svc-hero-verb { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sb-accent-ink); }
.svc-hero-kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: var(--flow-sm); }
.svc-hero-kicker .hero-kicker { margin: 0; }
.svc-hero h1 { margin: 0; max-width: 1000px; color: var(--sb-text); }
.svc-hero-lede { max-width: 660px; margin-top: var(--flow-sm); color: var(--sb-text-secondary); }
.svc-hero .hero-actions { margin-top: var(--flow-md); }

/* ---- two-column content block (label / content) ---- */
/* Same document grammar as .section-head: an ink rule opens each block,
   the mono label hangs from it. No timid soft bottom-borders. */
.block { padding: var(--bay) 0; }
.block-grid { display: grid; grid-template-columns: .5fr 1.5fr; gap: var(--head-gap); align-items: start; border-top: 1px solid var(--sb-ink); padding-top: 22px; }
.block-aside .label { display: block; }
.block-title { margin-bottom: var(--flow-md); }
.block-prose { font-family: var(--sb-body); font-size: 17px; line-height: 1.66; color: var(--sb-text-secondary); max-width: 660px; }
.block-prose p { margin: 0 0 18px; }
.block-prose p:last-child { margin-bottom: 0; }
.block-prose strong { color: var(--sb-ink); font-weight: 600; }

/* ---- spec dot-leader list ---- */
.spec { display: grid; gap: 0; max-width: 680px; margin-top: 28px; }
.spec .leader { padding: 14px 0; border-top: 1px solid var(--sb-line); }
.spec .leader:last-child { border-bottom: 1px solid var(--sb-line); }
.spec-k { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-muted); flex: 0 0 auto; }
.spec-v { font-family: var(--sb-body); font-size: 15px; color: var(--sb-ink); flex: 0 0 auto; }

/* ---- capability ledger (3-up, ruled — not floating cards) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--sb-ink); border-bottom: 1px solid var(--sb-ink); margin-top: var(--flow-sm); }
.card { padding: clamp(28px, 2.6vw, 40px) clamp(22px, 2vw, 34px) clamp(28px, 2.6vw, 40px) 0; border-right: 1px solid var(--sb-border); }
.card + .card { padding-left: clamp(24px, 2.4vw, 40px); }
.card:last-child { border-right: none; padding-right: 0; }
.card-k { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-accent-ink); display: block; margin-bottom: clamp(22px, 2.4vw, 34px); }
.card h3 { margin: 0 0 var(--flow-sm); }
.card p { font-family: var(--sb-body); font-size: 15px; line-height: 1.6; color: var(--sb-text-secondary); margin: 0; max-width: 300px; }

/* ---- numbered steps (the GroundFloor loop) ---- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--sb-ink); max-width: 860px; margin-top: var(--flow-sm); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: clamp(22px, 2.2vw, 32px) 0; border-bottom: 1px solid var(--sb-border); align-items: baseline; }
.step-n { font-family: var(--sb-mono); font-size: 12px; letter-spacing: .1em; color: var(--sb-accent-ink); }
.step h3 { font-family: var(--sb-serif); font-weight: 500; font-size: 23px; letter-spacing: -.02em; margin: 0 0 8px; color: var(--sb-ink); line-height: 1.1; }
.step p { font-family: var(--sb-body); font-size: 15px; line-height: 1.6; color: var(--sb-text-secondary); margin: 0; max-width: 620px; }

/* ---- pricing tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--sb-ink); border-radius: var(--sb-radius-1); background: var(--sb-surface-filed); margin-top: var(--flow-sm); }
.tier { padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2.2vw, 34px); border-right: 1px solid var(--sb-border-mid); display: flex; flex-direction: column; }
.tier:last-child { border-right: none; }
.tier-name { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-accent-ink); margin-bottom: 16px; }
.tier-price { font-family: var(--sb-serif); font-weight: 500; font-size: 42px; letter-spacing: -.03em; color: var(--sb-ink); line-height: 1; }
.tier-per { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-muted); margin-top: 10px; }
.tier-line { height: 1px; background: var(--sb-line); margin: 22px 0; }
.tier-feat { font-family: var(--sb-body); font-size: 14.5px; line-height: 1.56; color: var(--sb-text-secondary); margin: 0; }
.tier-note { font-family: var(--sb-body); font-size: 14px; line-height: 1.6; color: var(--sb-text-secondary); margin: 22px 0 0; max-width: 620px; }
.tier-setup { font-family: var(--sb-body); font-size: 16px; line-height: 1.6; color: var(--sb-text-secondary); margin: 0 0 26px; max-width: 660px; }
.tier-setup strong { color: var(--sb-ink); font-weight: 600; }

/* ---- product screenshots ---- */
/* Sits tight under the section it illustrates, generous space after. */
.shotwrap { padding: 0 0 var(--bay); margin-top: calc(var(--bay) * -0.32); }
.figure { margin: 0; }
.shot { border: 1px solid var(--sb-ink); border-radius: var(--sb-radius-1); overflow: hidden; background: var(--sb-surface-filed); box-shadow: var(--sb-shadow-md); }
.shot img { display: block; width: 100%; height: auto; }
.figure figcaption { font-family: var(--sb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); margin-top: 14px; }
.figure figcaption .accent { color: var(--sb-accent-ink); }
.shot-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .shot-two { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band { background: var(--sb-surface-raised); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; padding: var(--bay) 0; }
.cta-inner h2 { max-width: 580px; margin: 0; }
.cta-inner .hero-actions { margin: 0; }

@media (max-width: 880px) {
  .block-grid { grid-template-columns: 1fr; gap: var(--flow-sm); }
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { border-right: none; border-bottom: 1px solid var(--sb-border); padding: clamp(24px,5vw,30px) 0; }
  .card:last-child { border-bottom: none; padding-bottom: 0; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--sb-border-mid); }
  .tier:last-child { border-bottom: none; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
}

/* ============================================================
   FORM ERROR STATES (contact intake) — copper-ink, no jarring red,
   stays inside the bureau palette. Wired by main.js.
   ============================================================ */
.ct-field-error {
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 2px;
  display: none;            /* removed from layout AND the a11y tree until active,
                              so aria-describedby only announces a real error */
}
.ct-field-error.show { display: block; }
.ct-input[aria-invalid="true"] { border-color: var(--accent-deep); }
.ct-input[aria-invalid="true"]:focus { border-color: var(--accent-deep); }
/* receipt rows must not blow out with a very long pasted value */
.ct-rspec { gap: 18px; }
.ct-rspec .ct-rv { text-align: right; word-break: break-word; min-width: 0; }
.ct-rspec .ct-rk { flex: 0 0 auto; }

/* ---- the trust ledger as a signed terms sheet (dot-leader rows, not a 4-up grid) ---- */
.hold-terms { max-width: 760px; margin-top: 0; }
.hold-terms .spec-v { flex: 0 1 auto; min-width: 0; text-align: right; }
@media (max-width: 560px) {
  .hold-terms .leader { flex-wrap: wrap; }
  .hold-terms .lead-dots { display: none; }
  .hold-terms .spec-k { flex: 1 0 100%; margin-bottom: 4px; }
  .hold-terms .spec-v { text-align: left; }
}

/* ---- signatory block (the principals of record, under the terms sheet) ---- */
.hold-sign { margin-top: var(--flow-md); border-top: 1px solid var(--sb-ink); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.hold-sign-names { font-family: var(--sb-serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1; color: var(--sb-ink); margin: 6px 0 0; }
.hold-sign-role { font-family: var(--sb-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-text-secondary); }

/* ============================================================
   NARROW-VIEWPORT HEADLINE GUARD
   The hero/service H1s carry a forced <br>. At the smallest widths a
   long Didone word + negative tracking can overrun the content box,
   so drop the forced break and let the line wrap naturally.
   ============================================================ */
@media (max-width: 420px) {
  .hero h1 br, .svc-hero h1 br { display: none; }
}

/* ============================================================
   REDUCED MOTION — honor the user setting across every transition,
   smooth-scroll, and the service-panel fade.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-toc-row:hover { padding-left: 0 !important; }
  .hero-toc-row:hover .hero-toc-go { transform: none; }
}
