/* ==========================================================================
   Hoamly design system v2 "The Statement" (2026-10-04)
   One idea: the site is set like the association's own books. Rows, a label
   column and a figure column, tabular numerals, hairlines only where a row
   boundary means something. Tokens first; no hard-coded colour below :root.
   See design-audit/DIRECTIONS.md and brand/brand-guidelines.html.
   ========================================================================== */

@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-var.01817351be.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: optional; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-italic-var.a99fb12768.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: optional; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3-latin-var.587435ca9d.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: optional; }
@font-face { font-family: 'Source Sans 3'; src: url('../fonts/source-sans-3-latin-italic-var.b9b0f6feec.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: optional; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Palette: neutrals tinted toward ledger green */
  --paper: #F3F5F0;        /* page */
  --paper-2: #E9EDE6;      /* alternate band */
  --surface: #FBFCFA;      /* inputs, menus, screenshots' mat */
  --ink: #14201C;          /* text, dark bands */
  --ink-2: #4F5B55;        /* secondary text (AA on paper) */
  --ink-3: #5B675F;        /* captions and breadcrumbs (5:1 on paper at 14px) */
  --rule: #CBD3CA;         /* row hairlines */
  --rule-2: #AAB6AD;       /* input borders, stronger rules */
  --reserve: #1E5B45;      /* accent: links, actions, "live" */
  --reserve-2: #174A38;    /* hover */
  --reserve-tint: #DCE9E1; /* live badge background */
  --stamp: #A82C1C;        /* overdue, blocked, errors */
  --stamp-tint: #F3DCD7;
  --amber: #7A5410;        /* roadmap */
  --amber-tint: #F1E6CB;
  --band: #14201C;         /* dark bands, in both themes */
  --on-ink: #E6ECE6;       /* text on a band */
  --on-ink-2: #B3BFB6;
  --focus: #1D4ED8;

  /* Type: two families, clearly distinct */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Six sizes, ratio ~1.28 */
  --t-1: 0.875rem;   /* 14  captions, table meta */
  --t-2: 1.0625rem;  /* 17  body */
  --t-3: 1.3125rem;  /* 21  lead, h4 */
  --t-4: 1.6875rem;  /* 27  h3 */
  --t-5: 2.25rem;    /* 36  h2 */
  --t-6: 3.25rem;    /* 52  h1 */
  --measure: 65ch;

  /* Space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  /* Radius and elevation, by role */
  --r-control: 4px;   /* buttons, inputs, badges' corners */
  --r-media: 8px;     /* screenshots, video */
  --r-pill: 999px;    /* status badges */
  --shadow-media: 0 1px 2px rgba(12,17,29,.08), 0 24px 48px -20px rgba(12,17,29,.28);
  --shadow-overlay: 0 12px 32px -12px rgba(12,17,29,.28), 0 1px 2px rgba(12,17,29,.08);

  --container: 1200px;
  --gutter: 1rem;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 160ms; --dur-hover: 150ms; --dur-menu: 180ms; --dur-menu-exit: 120ms;
  --dur-drawer: 260ms; --dur-drawer-exit: 180ms; --dur-reveal: 200ms; --dur-rise: 600ms;
  --menu-shift: translateY(-4px) scale(.97); --drawer-shift: translateY(-8px); --reveal-shift: translateY(6px); --rise-shift: translateY(10px);
}
@media (min-width: 720px) { :root { --gutter: 1.5rem; } }

/* Dark theme: auto from the OS, or forced by the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1714; --paper-2: #15201B; --surface: #1A2620;
    --ink: #E6ECE6; --ink-2: #B3BFB6; --ink-3: #97A49B;
    --rule: #26332C; --rule-2: #3B4A42;
    --reserve: #8CCBAE; --reserve-2: #A6DCC2; --reserve-tint: #1C3A2E;
    --stamp: #F0917F; --stamp-tint: #3D201B;
    --amber: #E3BB6A; --amber-tint: #3A2E14;
    --band: #0B110E; --on-ink: #E6ECE6; --on-ink-2: #B3BFB6;
    --focus: #8AB4FF;
    --shadow-media: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.6);
    --shadow-overlay: 0 12px 32px -12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1714; --paper-2: #15201B; --surface: #1A2620;
  --ink: #E6ECE6; --ink-2: #B3BFB6; --ink-3: #97A49B;
  --rule: #26332C; --rule-2: #3B4A42;
  --reserve: #8CCBAE; --reserve-2: #A6DCC2; --reserve-tint: #1C3A2E;
  --stamp: #F0917F; --stamp-tint: #3D201B;
  --amber: #E3BB6A; --amber-tint: #3A2E14;
  --on-ink: #E6ECE6; --on-ink-2: #A9B6AD;
  --focus: #8AB4FF;
  --shadow-media: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.6);
  --shadow-overlay: 0 12px 32px -12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4);
}
/* Solid accent for filled buttons: the dark theme's reserve is a light tint for text, so buttons use a mid green with white text */
:root { --btn-bg: var(--reserve); --btn-fg: #FFFFFF; --btn-bg-hover: var(--reserve-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-bg: #2F7D5E; --btn-bg-hover: #38916E; --btn-fg: #FFFFFF; } }
:root[data-theme="dark"] { --btn-bg: #2F7D5E; --btn-bg-hover: #38916E; --btn-fg: #FFFFFF; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule-2) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--t-2); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga';
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--reserve); text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--reserve) 45%, transparent); }
a:hover { color: var(--reserve-2); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--reserve-tint); color: var(--ink); }
input, textarea, select { caret-color: var(--reserve); accent-color: var(--reserve); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0 0 var(--s-4); text-wrap: balance; font-variation-settings: 'opsz' 72; }
h1 { font-size: clamp(2.125rem, 1.6vw + 1.5rem, var(--t-6)); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1vw + 1.3rem, var(--t-5)); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: var(--t-4); line-height: 1.2; }
h4 { font-family: var(--font-text); font-size: var(--t-3); font-weight: 600; line-height: 1.3; margin: 0 0 var(--s-3); color: var(--ink); text-wrap: balance; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--t-3); line-height: 1.45; color: var(--ink-2); max-width: var(--measure); }
.small { font-size: var(--t-1); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-3); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-8) 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: var(--r-control); }
.tabular, .figure, td.num, th.num { font-variant-numeric: tabular-nums lining-nums; }
.num { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--r-control); z-index: 1000; }
.skip-link:focus, .skip-link:hover { top: var(--s-4); color: var(--paper); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container.narrow { max-width: 860px; }
.section { padding: var(--s-16) 0; }
@media (min-width: 900px) { .section { padding: var(--s-20) 0; } }
.section.tight { padding: var(--s-10) 0; }
@media (min-width: 900px) { .section.tight { padding: var(--s-12) 0; } }
.section.alt { background: var(--paper-2); }
.section.ink, .band { background: var(--band); color: var(--on-ink); }
.section.ink h1, .section.ink h2, .section.ink h3, .section.ink h4, .band h1, .band h2, .band h3, .band h4 { color: var(--on-ink); }
.section.ink .lead, .section.ink .small, .band .lead, .band .small, .section.ink .muted, .band .muted { color: var(--on-ink-2); }
.section.ink a, .band a { color: var(--on-ink); }
.section.ink .row, .band .row { border-color: color-mix(in srgb, var(--on-ink) 18%, transparent); }
.section.ink .row dt, .band .row dt { color: var(--on-ink-2); }
.section.ink .btn.primary, .band .btn.primary { background: var(--on-ink); color: var(--band); }
.section.ink .btn.primary:hover, .band .btn.primary:hover { background: #fff; color: var(--band); }
.section.ink .btn.secondary, .band .btn.secondary { color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 45%, transparent); background: transparent; }
.section.ink .btn.secondary:hover, .band .btn.secondary:hover { border-color: var(--on-ink); color: var(--on-ink); }
.section-head { max-width: 720px; margin-bottom: var(--s-10); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head .lead { margin: 0; }
.split { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-16); } .split.wide-right { grid-template-columns: 5fr 7fr; } .split.wide-left { grid-template-columns: 7fr 5fr; } .split.reverse > :first-child { order: 2; } .split.center { align-items: center; } }
.split > *, .grid > * { min-width: 0; }
.grid { display: grid; gap: var(--s-8) var(--s-10); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.prose { max-width: var(--measure); }
.prose p, .prose li { font-size: var(--t-2); line-height: 1.65; }
.prose h2 { margin-top: var(--s-12); }
.prose h3 { margin-top: var(--s-8); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote { margin: var(--s-6) 0; padding: 0 0 0 var(--s-5); border-left: 2px solid var(--reserve); font-family: var(--font-display); font-size: var(--t-3); line-height: 1.4; font-variation-settings: 'opsz' 24; }
.prose blockquote cite { display: block; font-family: var(--font-text); font-style: normal; font-size: var(--t-1); color: var(--ink-2); margin-top: var(--s-3); }
.sidebar-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1000px) { .sidebar-layout { grid-template-columns: 220px 1fr; } }
.toc { position: sticky; top: 90px; font-size: var(--t-1); }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 2px var(--s-3); color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }

/* ---------- The statement: the one structural device ---------- */
/* A statement is a list of rows. Each row is a label and a figure (or a description). Hairlines mark row boundaries only. */
.statement { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.statement > li, .statement > .row { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1) var(--s-6); padding: var(--s-4) 0; margin: 0; align-items: baseline; }
@media (min-width: 640px) { .row { grid-template-columns: minmax(10rem, 2fr) minmax(0, 5fr); } .row.even { grid-template-columns: 1fr 1fr; } .row.figure { grid-template-columns: minmax(0, 1fr) auto; } }
.row dt, .row .label { font-weight: 600; color: var(--ink); margin: 0; }
.row dd, .row .value { margin: 0; color: var(--ink-2); }
.row .value strong, .row dd strong { color: var(--ink); }
.row .amount { font-variant-numeric: tabular-nums lining-nums; font-family: var(--font-display); font-size: var(--t-3); color: var(--ink); text-align: right; white-space: nowrap; font-variation-settings: 'opsz' 24; }
.row a.label, .row dt a { color: var(--ink); text-decoration: none; }
.row a.label:hover, .row dt a:hover { color: var(--reserve); text-decoration: underline; }
.statement.total > li:last-child, .statement .total { border-bottom: 2px solid var(--ink); font-weight: 600; }
.statement h3, .statement-head { font-family: var(--font-display); font-size: var(--t-4); margin: 0 0 var(--s-4); }
dl.statement { display: block; }
dl.statement > div { border-bottom: 1px solid var(--rule); }
/* Linked statement rows (module index, related modules): the whole row is the link */
.statement a.row { text-decoration: none; color: inherit; }
.statement a.row:hover .label { color: var(--reserve); text-decoration: underline; }
.statement a.row .value { color: var(--ink-2); }

/* Status: a word, not a chip, unless it needs to read at a glance in a table */
.status { font-weight: 600; font-size: var(--t-1); white-space: nowrap; }
.status.live { color: var(--reserve); }
.status.roadmap { color: var(--amber); }
.status.no { color: var(--stamp); }
.badge { display: inline-flex; align-items: center; gap: 0.35em; font-size: var(--t-1); font-weight: 600; padding: 0.15em 0.6em; border-radius: var(--r-pill); line-height: 1.4; white-space: nowrap; }
.badge.live { background: var(--reserve-tint); color: var(--reserve); }
.badge.roadmap { background: var(--amber-tint); color: var(--amber); }
.badge.neutral { background: var(--paper-2); color: var(--ink-2); }
.badge.no { background: var(--stamp-tint); color: var(--stamp); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.live { color: var(--reserve); } }

/* Notes: a ruled aside, no tinted box */
.note { border-left: 2px solid var(--rule-2); padding: var(--s-1) 0 var(--s-1) var(--s-4); font-size: var(--t-1); color: var(--ink-2); line-height: 1.55; }
.note.roadmap { border-left-color: var(--amber); }
.note.warn, .note.no { border-left-color: var(--stamp); }
.note strong { color: var(--ink); }

/* TODO slot: an honest placeholder for an asset that does not exist yet. Never styled to pass as content. */
.todo-slot { border: 1px dashed var(--rule-2); border-radius: var(--r-media); padding: var(--s-6); color: var(--ink-2); font-size: var(--t-1); background: transparent; display: grid; gap: var(--s-2); align-content: center; min-height: 200px; }
.todo-slot strong { color: var(--ink); font-size: var(--t-2); }

/* Logo: ink on light, paper on dark */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
.footer-brand .logo-light, .footer-brand .logo-dark { height: 28px; width: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.nav-main { position: relative; }
.nav-links { display: none; align-items: center; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-btn { display: inline-flex; align-items: center; gap: 4px; padding: var(--s-2) var(--s-3); border-radius: var(--r-control); color: var(--ink-2); text-decoration: none; font: inherit; font-size: var(--t-2); font-weight: 500; background: transparent; border: 0; cursor: pointer; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-btn:hover, .nav-btn[aria-expanded="true"], .nav-btn[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-btn svg { width: 14px; height: 14px; transition: transform var(--dur-menu) var(--ease-out); }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { display: none; align-items: center; gap: var(--s-2); }
.nav-toggle, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule-2); background: transparent; border-radius: var(--r-control); cursor: pointer; color: var(--ink); }
.nav-toggle svg, .theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
@media (min-width: 1000px) { .nav-links, .nav-cta { display: flex; } .nav-toggle { display: none; } }
.menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-control); box-shadow: var(--shadow-overlay); padding: var(--s-5) var(--s-6); min-width: 640px; z-index: 60; transform-origin: top left; opacity: 1; transform: none; transition: opacity var(--dur-menu) var(--ease-out), transform var(--dur-menu) var(--ease-out); }
.menu.menu-sm { min-width: 300px; }
.menu[hidden] { display: none; opacity: 0; transform: var(--menu-shift); transition-duration: var(--dur-menu-exit); }
@supports (transition-behavior: allow-discrete) { .menu { transition-property: opacity, transform, display; transition-behavior: allow-discrete; } }
@starting-style { .menu:not([hidden]) { opacity: 0; transform: var(--menu-shift); } }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-6); }
.menu p.menu-h, .nav-drawer p.menu-h { font-family: var(--font-display); font-size: var(--t-3); font-weight: 500; color: var(--ink); margin: 0 0 var(--s-2); }
.menu p.menu-h + ul + p.menu-h { margin-top: var(--s-5); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu ul a { display: block; padding: 6px 8px; margin-left: -8px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; font-size: var(--t-2); }
.menu ul a:hover { background: var(--paper-2); }
.menu-foot { border-top: 1px solid var(--rule); margin-top: var(--s-4); padding-top: var(--s-3); display: flex; gap: var(--s-5); }
.menu-foot a { font-size: var(--t-1); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.menu-foot a:hover { color: var(--ink); text-decoration: underline; }
.menu[data-instant], .nav-drawer[data-instant] { transition-duration: 0ms !important; }
/* Drawer */
.nav-drawer { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: var(--shadow-overlay); padding: var(--s-4) 0 var(--s-6); transform-origin: top center; opacity: 1; transform: none; transition: opacity var(--dur-drawer) var(--ease-drawer), transform var(--dur-drawer) var(--ease-drawer); }
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer[data-open="false"] { opacity: 0; transform: var(--drawer-shift); transition-duration: var(--dur-drawer-exit); }
@supports (transition-behavior: allow-discrete) { .nav-drawer { transition-property: opacity, transform, display; transition-behavior: allow-discrete; } }
@starting-style { .nav-drawer[data-open="true"] { opacity: 0; transform: var(--drawer-shift); } }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nav-drawer a { display: block; padding: var(--s-3) var(--s-2); color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r-control); min-height: 44px; }
.nav-drawer a:hover { background: var(--paper-2); }
.nav-drawer p.menu-h { margin: var(--s-5) 0 var(--s-1); }
.nav-drawer .drawer-cta { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
@media (min-width: 1000px) { .nav-drawer { display: none !important; } }
.nav-toggle path { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-press) ease; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: 0.7rem 1.15rem; border-radius: var(--r-control); font-weight: 600; font-size: var(--t-2); text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; min-height: 44px; font-family: var(--font-text); transition: background var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease, opacity var(--dur-reveal) ease, transform var(--dur-press) var(--ease-out); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.lg { padding: 0.9rem 1.4rem; font-size: var(--t-3); }
.btn:active, .nav-btn:active, .nav-toggle:active, .theme-toggle:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.nav-btn, .nav-toggle, .theme-toggle { transition: background var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }

/* ---------- Hero and page heads ---------- */
.hero { padding: var(--s-12) 0 var(--s-16); }
@media (min-width: 900px) { .hero { padding: var(--s-16) 0 var(--s-20); } }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: var(--s-5); }
.hero-actions { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .statement { margin-top: var(--s-10); max-width: 560px; }
.hero .row { padding: var(--s-3) 0; }
.page-hero { padding: var(--s-10) 0 var(--s-8); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .page-hero { padding: var(--s-12) 0 var(--s-10); } }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: var(--s-4); }
.crumbs { font-size: var(--t-1); color: var(--ink-3); margin-bottom: var(--s-5); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }

/* The hero composition: two real screens set as facing pages of one ledger */
.ledger-pages { position: relative; display: grid; gap: var(--s-4); }
.ledger-pages .shot { margin: 0; }
.ledger-pages .shot figcaption { margin-top: var(--s-2); }
@media (min-width: 900px) {
  .ledger-pages { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s-6); }
  .ledger-pages .page-b { margin-bottom: var(--s-10); }
}

/* ---------- Real product screenshots ---------- */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-media); box-shadow: var(--shadow-media); background: var(--surface); }
.shot figcaption { font-size: var(--t-1); color: var(--ink-3); margin-top: var(--s-3); line-height: 1.5; }
.shot.flat img { box-shadow: none; border: 1px solid var(--rule); }
.shot.video video { display: block; width: 100%; height: auto; border-radius: var(--r-media); box-shadow: var(--shadow-media); background: var(--band); }
/* Annotated crop: a screenshot region with a short note set beside it, not on it */
.annot { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 720px) { .annot { grid-template-columns: minmax(0, 1fr) 16rem; } .annot.left { grid-template-columns: 16rem minmax(0, 1fr); } .annot.left > .shot { order: 2; } }
.annot .note { margin-top: var(--s-2); }
@media (max-width: 720px) { .shot img[height="340"] { height: 220px; object-fit: cover; object-position: left top; } }

/* ---------- The sequence (the one scroll-driven moment) ---------- */
.seq { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .seq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-16); align-items: start; } .seq-steps { position: sticky; top: 96px; } }
.seq-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.seq-steps li { counter-increment: step; border-bottom: 1px solid var(--rule); padding: var(--s-4) 0; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-3); color: var(--ink-2); transition: color var(--dur-reveal) ease; }
.seq-steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--t-3); line-height: 1.2; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seq-steps li h3 { font-family: var(--font-text); font-size: var(--t-2); font-weight: 600; margin: 0 0 var(--s-1); color: inherit; }
.seq-steps li p { margin: 0; font-size: var(--t-1); }
.seq-steps li[aria-current="step"] { color: var(--ink); }
.seq-steps li[aria-current="step"]::before { color: var(--reserve); }
.seq-steps li[aria-current="step"] h3 { color: var(--ink); }
.seq-shots { display: grid; gap: var(--s-12); }
.seq-shots .shot { scroll-margin-top: 96px; }
@media (min-width: 900px) { .seq-shots .shot { min-height: 60vh; display: grid; align-content: center; } }

/* ---------- Tables ---------- */
table { border-collapse: collapse; width: 100%; font-size: var(--t-2); }
th, td { text-align: left; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }
table.dense { font-size: var(--t-1); }
table.dense th, table.dense td { padding: var(--s-2) var(--s-3) var(--s-2) 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form .row { display: grid; gap: var(--s-5); padding: 0; border: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: var(--t-2); margin-bottom: var(--s-1); color: var(--ink); }
label .opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; font: inherit; font-size: var(--t-2); padding: 0.65rem 0.8rem; border: 1px solid var(--rule-2); border-radius: var(--r-control); background: var(--surface); color: var(--ink); min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--reserve); outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.help { font-size: var(--t-1); color: var(--ink-3); margin-top: var(--s-1); }
.form-status { display: none; padding: var(--s-4) 0; border-top: 2px solid var(--reserve); color: var(--ink); font-weight: 500; }
.form-status[data-show="true"] { display: block; }
.form-status.error { border-top-color: var(--stamp); }
.field-error { color: var(--stamp); font-size: var(--t-1); margin-top: var(--s-1); display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--stamp); }
input[aria-invalid="true"] + .field-error, select[aria-invalid="true"] + .field-error { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: var(--t-2); margin-bottom: var(--s-2); }
.check { display: flex; gap: var(--s-2); align-items: flex-start; font-weight: 400; font-size: var(--t-2); }
.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.form-status, #fit-result { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
@starting-style { .form-status[data-show="true"], #fit-result:not([hidden]) { opacity: 0; transform: var(--reveal-shift); } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); padding: var(--s-4) 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--t-3); font-family: var(--font-display); font-variation-settings: 'opsz' 24; list-style: none; position: relative; padding-right: 32px; min-height: 44px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--reserve); }
.faq summary::before { transform: rotate(90deg); transition: transform var(--dur-reveal) var(--ease-out); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details > div { padding-top: var(--s-3); color: var(--ink-2); max-width: var(--measure); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
@starting-style { .faq details[open] > div { opacity: 0; transform: var(--reveal-shift); } }
.faq h2 { margin-top: var(--s-12); }
.faq h2:first-child { margin-top: 0; }

/* ---------- Footer: an index, not a mood ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: var(--s-12) 0 var(--s-8); margin-top: var(--s-16); font-size: var(--t-2); color: var(--ink-2); background: var(--paper); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--reserve); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-8); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-grid p.footer-h { font-family: var(--font-display); font-size: var(--t-3); color: var(--ink); margin: 0 0 var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 720px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 28px; margin-bottom: var(--s-4); }
.footer-bottom { border-top: 1px solid var(--rule); margin-top: var(--s-10); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--t-1); color: var(--ink-3); }

/* ---------- Transitional: old classes still in page sources until step 4 ---------- */
.card { padding: var(--s-5) 0; border-top: 1px solid var(--rule); }
.card h3 { font-size: var(--t-3); margin-bottom: var(--s-2); }
.card h3.compact { font-family: var(--font-text); font-size: var(--t-2); font-weight: 600; margin-bottom: var(--s-1); }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover h3 { color: var(--reserve); }
.card .more { color: var(--reserve); font-weight: 600; font-size: var(--t-2); margin-top: var(--s-3); display: inline-block; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.feature-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.feature-list li strong { color: var(--ink); }
.cta-band { border-top: 2px solid var(--ink); padding: var(--s-10) 0 0; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: var(--s-2); }
.cta-band p { margin: 0; color: var(--ink-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn.on-ink { background: var(--ink); color: var(--paper); }
.btn.on-ink:hover { background: var(--ink); color: var(--paper); opacity: .92; }
.btn.on-ink.outline { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.module-index { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .module-index { grid-template-columns: 1fr 1fr; } }
.module-index h2 { font-size: var(--t-4); margin-bottom: var(--s-3); }
.module-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.module-list a { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.module-list a:hover strong { color: var(--reserve); text-decoration: underline; }
.module-list strong { font-weight: 600; }
.module-list span { font-size: var(--t-1); color: var(--ink-2); }
.module-groups h3 { font-size: var(--t-3); margin-bottom: var(--s-2); }
.module-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.module-groups a { color: var(--ink); text-decoration: none; }
.module-groups a:hover { color: var(--reserve); text-decoration: underline; }
.flow { display: grid; gap: var(--s-4); counter-reset: step; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(6, 1fr); } }
.flow-step { position: relative; padding: var(--s-4) 0; counter-increment: step; border-bottom: 1px solid var(--rule); }
.flow-step::before { content: counter(step); font-family: var(--font-display); font-size: var(--t-3); color: var(--ink-3); display: block; margin-bottom: var(--s-2); }
.flow-step h3 { margin: 0 0 var(--s-1); font-size: var(--t-2); font-family: var(--font-text); font-weight: 600; }
.flow-step p { font-size: var(--t-1); color: var(--ink-2); margin: 0; }
.flow-step .who { display: block; font-size: var(--t-1); color: var(--ink-3); margin-bottom: 2px; }
.hero-proof { margin-top: var(--s-6); display: grid; gap: var(--s-2); font-size: var(--t-2); color: var(--ink-2); max-width: 560px; }
.hero-proof span { display: block; padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.hero-proof svg { display: none; }
.role-card .who { font-weight: 600; color: var(--ink); }
.role-card .what { color: var(--ink-2); }
.plan { display: grid; gap: var(--s-3); }
.plan .price { font-family: var(--font-display); font-size: var(--t-4); color: var(--ink); }
.pillar .num { font-family: var(--font-display); font-size: var(--t-5); color: var(--reserve); line-height: 1; }
.module-table th:first-child { width: 34%; }
.tier-key { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-1); color: var(--ink-2); margin-top: var(--s-3); }
.hero-scene, .fiction-note { display: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 } .mt-4 { margin-top: var(--s-4) } .mt-6 { margin-top: var(--s-6) } .mt-8 { margin-top: var(--s-8) } .mt-10 { margin-top: var(--s-10) } .mt-12 { margin-top: var(--s-12) }
.mb-0 { margin-bottom: 0 } .mb-4 { margin-bottom: var(--s-4) } .mb-6 { margin-bottom: var(--s-6) } .mb-8 { margin-bottom: var(--s-8) }
.max-sm { max-width: 560px; } .max-md { max-width: 720px; } .max-lg { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hide-mobile { display: none; } @media (min-width: 720px) { .hide-mobile { display: initial; } }
.measure { max-width: var(--measure); }
@media print { .site-header, .site-footer, .nav-drawer, .hero-actions, .theme-toggle { display: none !important; } body { background: #fff; color: #000; } .section { padding: var(--s-6) 0; } }

/* ---------- Motion: one entrance, one sequence, hover states. Reduced motion keeps fades, drops movement. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero[data-entrance] h1, .hero[data-entrance] .lead, .hero[data-entrance] .hero-actions, .hero[data-entrance] .statement, .hero[data-entrance] .ledger-pages { animation: rise var(--dur-rise) var(--ease-out) both; }
  .hero[data-entrance] .lead { animation-delay: 60ms; }
  .hero[data-entrance] .hero-actions { animation-delay: 120ms; }
  .hero[data-entrance] .statement { animation-delay: 180ms; }
  .hero[data-entrance] .ledger-pages { animation-delay: 90ms; }
}
@keyframes rise { from { opacity: 0; transform: var(--rise-shift); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  :root { --menu-shift: none; --drawer-shift: none; --reveal-shift: none; --dur-menu: 150ms; --dur-drawer: 150ms; }
  .btn:active, .nav-btn:active, .nav-toggle:active, .theme-toggle:active { transform: none; }
  .nav-btn svg, .nav-toggle path, .faq summary::before { transition: none; }
  .seq-steps { position: static; }
}

/* ---------- Step 4 layouts ---------- */
.persona > .split + .split { margin-top: var(--s-16); padding-top: var(--s-16); border-top: 1px solid var(--rule); }
.persona h3 { margin-bottom: var(--s-3); }
.closing { border-top: 2px solid var(--ink); }
.closing .lead { margin-top: var(--s-2); }
@media (min-width: 900px) { .module-visual { position: sticky; top: 96px; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; border-bottom: 1px solid var(--rule); padding: var(--s-5) 0; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--s-4); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--t-4); line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--font-text); font-size: var(--t-3); font-weight: 600; margin: 0 0 var(--s-1); }
.steps p { margin: 0; color: var(--ink-2); }
.steps .who { display: block; font-size: var(--t-1); color: var(--ink-3); margin-bottom: 2px; }
.pricing-table td:nth-child(2) { color: var(--ink); }
.page-hero .hero-actions { margin-top: var(--s-6); }

/* Hero: words 5, screens 7; the two screens read as facing pages */
@media (min-width: 900px) { .hero-split { grid-template-columns: 5fr 7fr; align-items: start; } }
.ledger-pages .page-a { position: relative; z-index: 1; }
@media (min-width: 900px) { .ledger-pages { grid-template-columns: 1fr; } .ledger-pages .page-b { width: 62%; margin: calc(-1 * var(--s-12)) 0 0 auto; position: relative; z-index: 2; } .ledger-pages .page-b .shot img { box-shadow: var(--shadow-media), 0 0 0 6px var(--paper); } }
/* Statement of lines: one sentence per row, the lead words bold */
.statement.lines li { padding: var(--s-3) 0; color: var(--ink-2); line-height: 1.55; }
.statement.lines li strong { color: var(--ink); }
/* Sequence: natural image heights */
@media (min-width: 900px) { .seq-shots .shot { min-height: 0; display: block; } .seq-shots { gap: var(--s-10); } }
.ledger-pages .page-a figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Asides beside forms, roadmap areas, fit-check result: ruled blocks, no chrome */
.aside-block { border-top: 1px solid var(--rule); padding-top: var(--s-5); }
.aside-block + .aside-block { margin-top: var(--s-8); }
.aside-block h2 { font-family: var(--font-text); font-size: var(--t-3); font-weight: 600; margin-bottom: var(--s-2); }
.aside-block p { color: var(--ink-2); }
.roadmap-areas { display: grid; gap: var(--s-10) var(--s-16); }
@media (min-width: 900px) { .roadmap-areas { grid-template-columns: 1fr 1fr; } }
.roadmap-area h3 { margin-bottom: var(--s-3); }
.result { border-top: 2px solid var(--ink); padding-top: var(--s-6); }
.result h3 { margin-bottom: var(--s-3); }
.result ul { padding-left: 1.2rem; color: var(--ink-2); }
.center { text-align: left; }

/* Lenis smooth scroll (off under reduced motion; the script never starts it) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.seq-steps li { cursor: pointer; }
.seq-steps li:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.seq-steps li { position: relative; }
.seq-go { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: var(--r-control); }
.seq-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.seq-steps li:focus-visible { outline: none; }
/* Tap targets: inline links in the footer and breadcrumbs get a 44px hit area without changing their look */
.site-footer .footer-grid li a, .crumbs a, .footer-brand p a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.footer-grid ul { gap: var(--s-1); }
/* Breadcrumb links are distinguishable without colour */
.crumbs a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 0.18em; }
.crumbs a:hover { text-decoration-color: currentColor; }
/* Notes and captions inside a dark band take the band's text colours */
.band .note, .section.ink .note { color: var(--on-ink-2); border-left-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.band .note strong, .section.ink .note strong { color: var(--on-ink); }
.band .shot figcaption, .section.ink .shot figcaption { color: var(--on-ink-2); }

/* ==========================================================================
   Pass 2 (2026-10-04): type scale per brief, brass accent for callouts, text-link secondaries,
   near-native screenshot crops with callouts, pinned sequence frame, tighter rhythm, dark-mode frames.
   ========================================================================== */
:root {
  --t-6: 3.75rem;   /* 60 desktop h1 */
  --t-5: 2.375rem;  /* 38 h2 */
  --t-4: 1.375rem;  /* 22 h3 */
  --t-3: 1.25rem;   /* 20 lead */
  --t-2: 1.0625rem; /* 17 body */
  --t-1: 0.875rem;  /* 14 small */
  --measure: 68ch;
  --brass: #8A6418;      /* text-safe brass, 5:1 on paper */
  --brass-fill: #C9983E; /* dots and chips, with ink text */
  --brass-tint: #F3E6C8;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brass: #E3BB6A; --brass-fill: #C9983E; --brass-tint: #3A2E14; } }
:root[data-theme="dark"] { --brass: #E3BB6A; --brass-fill: #C9983E; --brass-tint: #3A2E14; }
h1 { font-size: clamp(2.375rem, 2.2vw + 1.5rem, var(--t-6)); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.1vw + 1.3rem, var(--t-5)); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 0.3vw + 1.1rem, var(--t-4)); }
.lead { font-size: clamp(1.0625rem, 0.3vw + 1rem, var(--t-3)); }
@media (max-width: 719px) { body { font-size: 1rem; } }
.section { padding: var(--s-12) 0; }
@media (min-width: 900px) { .section { padding: var(--s-16) 0; } }
.section.tight { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section.tight { padding: var(--s-10) 0; } }
.section-head { margin-bottom: var(--s-8); }

/* Secondary action = a text link with an arrow (the brief's own form); no outlined boxes */
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--reserve); text-decoration: none; min-height: 44px; padding: 0 var(--s-1); }
.link-arrow::after { content: '→'; transition: transform var(--dur-press) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }
.band .link-arrow, .section.ink .link-arrow { color: var(--on-ink); }

/* Screenshots: no captions, a neutral frame, a light edge in the dark theme so they do not float */
.shot { margin: 0; }
.shot figcaption { display: none; }
.shot img { border-radius: var(--r-media); box-shadow: var(--shadow-media); background: #fff; }
.shot.frame img { box-shadow: 0 1px 2px rgba(12,17,29,.06), 0 16px 40px -20px rgba(12,17,29,.25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot img { outline: 1px solid rgba(230,236,230,.16); outline-offset: -1px; } }
:root[data-theme="dark"] .shot img { outline: 1px solid rgba(230,236,230,.16); outline-offset: -1px; }
.shot.native { max-width: 100%; }
.shot.native img { width: auto; max-width: 100%; height: auto; }

/* Callouts: a numbered brass dot on the crop and one short line each below it */
.callouts { position: relative; display: grid; gap: var(--s-3); }
.callouts .shot { position: relative; }
.callouts .dots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.callouts .dots li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brass-fill); color: #14201C; font: 700 13px/26px var(--font-text); text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 6px rgba(12,17,29,.3); }
.callouts .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-1); color: var(--ink-2); }
.callouts .legend li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-2); align-items: start; }
.callouts .legend li::before { content: counter(callout); counter-increment: callout; width: 20px; height: 20px; border-radius: 50%; background: var(--brass-fill); color: #14201C; font: 700 12px/20px var(--font-text); text-align: center; }
.callouts .legend { counter-reset: callout; }
.band .callouts .legend { color: var(--on-ink-2); }

/* Hero: words 5 / product moment 7; the full dashboard appears once, softened, behind a 1:1 crop */
.hero { padding: var(--s-10) 0 var(--s-12); }
@media (min-width: 900px) { .hero { padding: var(--s-16) 0 var(--s-16); } }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: var(--s-4); max-width: 34rem; }
.hero-actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.trust-line { margin-top: var(--s-5); font-size: var(--t-1); color: var(--ink-3); max-width: 34rem; line-height: 1.6; }
.hero-visual { position: relative; }
.hero-visual .backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: var(--r-media); opacity: .45; filter: saturate(.6) blur(1.5px); }
.hero-visual .backdrop img { box-shadow: none; outline: none; }
.hero-visual .moment { position: relative; z-index: 1; padding: var(--s-6) 0 0 var(--s-6); }
.hero-visual .moment .shot img { box-shadow: 0 2px 4px rgba(12,17,29,.08), 0 32px 64px -24px rgba(12,17,29,.4); }
.hero-visual .legend { margin-top: var(--s-3); padding-left: var(--s-6); }
@media (max-width: 899px) { .hero-visual .moment { padding: var(--s-4) 0 0 var(--s-4); } .hero-visual .legend { padding-left: 0; } .hero .secondary-mobile { display: block; margin-top: var(--s-4); } }
@media (min-width: 900px) { .hero .secondary-mobile { display: none; } }
@media (max-width: 899px) { .hero .hero-actions .link-arrow { display: none; } }

/* Money in: split, text left, crop right. Operations: a 2×2 of small crops. Governance: full-bleed band. */
.ops-grid { display: grid; gap: var(--s-8) var(--s-10); }
@media (min-width: 720px) { .ops-grid { grid-template-columns: 1fr 1fr; } }
.ops-grid h3 { margin-bottom: var(--s-2); }
.ops-grid p { color: var(--ink-2); font-size: var(--t-2); margin: 0 0 var(--s-3); }
.band.product { background: var(--band); color: var(--on-ink); }
.band.product .shot img { outline: 1px solid rgba(230,236,230,.14); outline-offset: -1px; }
.module-links { font-size: var(--t-2); color: var(--ink-2); line-height: 1.8; max-width: none; }
.module-links a { color: var(--ink); text-decoration-color: var(--rule-2); }
.module-links a:hover { color: var(--reserve); }
.module-links .sep { color: var(--rule-2); padding: 0 .35em; }

/* AI band: the crop is the hero of the band; the "never without a person" block is typographic */
.band .big-shot { max-width: 940px; }
.never { margin: var(--s-8) 0 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); max-width: 34rem; }
.never li { padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); font-size: var(--t-3); font-family: var(--font-display); font-variation-settings: 'opsz' 24; }
.never-head { font-size: var(--t-1); color: var(--on-ink-2); margin: 0 0 var(--s-2); }

/* Sequence: sticky steps left, one pinned frame right that swaps crops; inline crops under each step on narrow screens or reduced motion */
.seq-frame { display: none; }
.seq-inline { margin-top: var(--s-3); }
.seq-steps li[aria-current="step"]::before { color: var(--brass); }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .seq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .seq-inline { display: none; }
  .seq-frame { display: block; position: sticky; top: 96px; }
  .seq-frame .frame-stage { position: relative; min-height: 320px; }
  .seq-frame .frame-stage > div { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease; }
  .seq-frame .frame-stage > div[data-active] { opacity: 1; position: relative; }
  .seq-frame .frame-stage > div .shot img { width: auto; max-width: 100%; }
}
.seq-steps li { padding: var(--s-4) 0; }
.seq-steps li p { font-size: var(--t-2); }

/* Roles: three columns, one tall crop or text only */
.roles { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, 1fr); gap: var(--s-10); } }
.roles h3 { margin-bottom: var(--s-2); }
.roles p { color: var(--ink-2); }
.roles .shot { margin-top: var(--s-4); }

/* Pricing paragraph with one emphasised line */
.pricing-line { font-family: var(--font-display); font-size: var(--t-4); line-height: 1.3; color: var(--ink); max-width: 34rem; font-variation-settings: 'opsz' 24; margin: var(--s-4) 0; }

/* Proof slot: rendered only when a real entry exists */
.proof { border-top: 2px solid var(--brass-fill); padding-top: var(--s-6); max-width: 40rem; }
.proof blockquote { margin: 0; font-family: var(--font-display); font-size: var(--t-4); line-height: 1.3; font-variation-settings: 'opsz' 24; }
.proof cite { display: block; font-style: normal; font-size: var(--t-1); color: var(--ink-2); margin-top: var(--s-3); }
.proof .metric { font-family: var(--font-display); font-size: var(--t-6); line-height: 1; color: var(--brass); }

/* Statement rows: slightly tighter */
.row { padding: var(--s-3) 0; }
.statement.lines li { padding: var(--s-2) 0; }
/* No TODO boxes on public pages */
.todo-slot { display: none; }

/* Pass 2 rhythm: tighter sections and gaps; phone-size crops that cannot read are not shown */
.section { padding: var(--s-10) 0; }
@media (min-width: 900px) { .section { padding: 56px 0; } .split { gap: var(--s-12); } }
.hero { padding: var(--s-8) 0 var(--s-10); }
@media (min-width: 900px) { .hero { padding: var(--s-12) 0 var(--s-12); } }
.section-head { margin-bottom: var(--s-6); }
.persona > .split + .split { margin-top: var(--s-10); padding-top: var(--s-10); }
.band.product .gov-shot { margin-top: var(--s-8); max-width: 1170px; }
.band.product .gov-shot .shot img { width: auto; max-width: 100%; }
@media (max-width: 719px) { .hide-phone { display: none; } .ops-grid .shot { display: none; } }
.module-links { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); }

.section { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section { padding: var(--s-12) 0; } }
.band.section, .section.ink { padding-top: var(--s-10); padding-bottom: var(--s-10); }
@media (min-width: 900px) { .band.section, .section.ink { padding-top: 56px; padding-bottom: 56px; } }
.closing { padding-top: var(--s-8); }
.site-footer { margin-top: var(--s-10); padding-top: var(--s-10); }
.never { margin-top: var(--s-6); }
.roles .shot { margin-top: var(--s-3); }

.callouts .pic { position: relative; }
.callouts .pic .dots { position: absolute; inset: 0; }
.never-head { margin-top: var(--s-8); }

/* Module and persona pages: words 5 / crop 7; crops at native width, never upscaled; stacked statement rows in the narrow column */
.module-visual .shot img { width: auto; max-width: 100%; }
@media (min-width: 900px) { .split.wide-right > div:first-child .row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* Pass 4: designed product snippets. Backgrounds are baked into the files; no frame, no shadow, never upscaled. */
.snip { margin: 0; }
.snip picture { display: block; }
.snip img { display: block; width: auto; max-width: 100%; height: auto; }
.snip-phone { max-width: 390px; }
.measure { max-width: 860px; }
.stack { display: grid; gap: var(--s-10); }
.hero-copy { max-width: 760px; }
.hero-visual { margin-top: var(--s-10); }
.hero-visual .snip, .money-visual, .ops-visual, .gov-visual, .module-visual .snip { max-width: 1200px; }
.money-visual { margin-top: var(--s-10); }
.band.product .gov-visual { margin-top: var(--s-8); }
.ops-visual { margin-bottom: var(--s-10); }
.ops-text { display: grid; gap: var(--s-8) var(--s-10); }
@media (min-width: 720px) { .ops-text { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ops-text { grid-template-columns: repeat(4, 1fr); } }
.ops-text h3 { margin-bottom: var(--s-2); }
.ops-text p { color: var(--ink-2); font-size: var(--t-2); margin: 0; }
.roles .snip { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .module-visual { position: static; }
  .seq { grid-template-columns: minmax(0, 3.5fr) minmax(0, 8.5fr); gap: var(--s-10); }
  .seq-frame .frame-stage > div .snip img { width: auto; max-width: 100%; }
}

/* Pass 6: composition tokens (values from design-assets/compositions/*.dc.html) */
:root {
  --c-panel: #E4EBE3; --c-panel-dark: #1C2B26; --c-grid: rgba(12,17,29,.05); --c-grid-dark: rgba(255,255,255,.05);
  --c-card-border: #D5DDD5; --c-card-border-dark: #2E3D37; --c-card-shadow: 0 1px 2px rgba(12,17,29,.06), 0 28px 56px -16px rgba(12,17,29,.22);
  --c-white: #FFFFFF; --c-paper: #F3F5F0; --c-ink: #14201C; --c-text: #26332E; --c-muted: #5B6B64;
  --c-rule: #EDF1ED; --c-rule-2: #DCE3DC; --c-rule-3: #E6ECE6; --c-surface: #F7F9F6; --c-surface-2: #FCFDFB;
  --c-btn: #2E5A45; --c-btn-border: #C9D3C9;
  --c-tag: #3F4F48; --c-tag-bg: #F3F5F0; --c-tag-border: #CDD6CD;
  --c-amber: #6E4C12; --c-amber-bg: #F3E1BC; --c-amber-soft: #F6EEDD; --c-amber-row: #FBF5E8;
  --c-blue: #29486B; --c-blue-bg: #E6EDF5;
  --c-red: #8A2F20; --c-red-bg: #F5DCD6; --c-red-soft: #FCF1EE; --c-red-row: #FAEDEA; --c-red-inset: #E6C2BA;
  --c-green: #23503B; --c-green-bg: #E3EEE7; --c-green-row: #F2F7F3;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-panel: #1C2B26; --c-grid: rgba(255,255,255,.05); --c-card-border: #2E3D37; --c-card-shadow: 0 28px 56px -16px rgba(0,0,0,.5); } }
:root[data-theme="dark"] { --c-panel: #1C2B26; --c-grid: rgba(255,255,255,.05); --c-card-border: #2E3D37; --c-card-shadow: 0 28px 56px -16px rgba(0,0,0,.5); }

/* Pass 6: layout around the compositions */
.hero-visual { margin-top: var(--s-10); }
@media (min-width: 1248px) { .hero-visual { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); } }
.comp-split { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 1200px) { .comp-split { grid-template-columns: minmax(0, 1fr) 640px; gap: var(--s-12); } .comp-split.comp-left { grid-template-columns: 640px minmax(0, 1fr); } .comp-split.comp-left > .comp { order: -1; } }
.comp-split .comp { width: 100%; }
.ops-items { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.ops-items h3 { margin-bottom: var(--s-1); }
.ops-items p { color: var(--ink-2); font-size: var(--t-2); margin: 0; }
.band .ops-items p { color: var(--on-ink-2); }
.links-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); }
.links-row .sep { color: var(--rule-2); user-select: none; }
.band .links-row .sep { color: rgba(230,236,230,.35); }
.roles { display: grid; gap: var(--s-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-10); } }
.roles .comp { margin-top: var(--s-4); }
.module-visual .comp { margin-top: var(--s-2); }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .seq { grid-template-columns: minmax(0, 3.5fr) minmax(0, 8.5fr); gap: var(--s-10); }
  .seq-frame .frame-stage { min-height: 0; }
}

/* Forms: honeypot field (hidden from people and assistive tech), meeting choice, booking calendar */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.meeting-choice { border: 0; padding: 0; margin: 0 0 var(--s-2); }
.meeting-choice legend { font-weight: 600; margin-bottom: var(--s-2); }
.booking-frame { width: 100%; min-height: 640px; border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--surface); }

/* ===================================================================================================
   Pass 9: type system and vertical rhythm (site-wide), homepage sections.
   Eyebrow 13 / H1 64 (40) / H2 44 (30) / H3 sans 22 / body 18 ink / small 15 muted.
   Sections 120px apart (72 on phones): eyebrow -> H2 16, H2 -> body 20, body -> CTA or visual 32.
   =================================================================================================== */
:root { --t-body: 1.125rem; --t-small: 0.9375rem; --sec-pad: 36px; --measure: 60ch; }
@media (min-width: 900px) { :root { --sec-pad: 60px; } }
body { font-size: var(--t-body); line-height: 1.6; color: var(--ink); }
.eyebrow { font-family: var(--font-text); font-size: 13px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; color: var(--reserve); margin: 0 0 16px; max-width: none; }
.band .eyebrow, .section.ink .eyebrow { color: #8CCBAE; }
h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 20px; }
@media (min-width: 900px) { h1 { font-size: 64px; } h2 { font-size: 44px; } }
h3, .steps h3 { font-family: var(--font-text); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: 0; font-variation-settings: normal; }
p, li, dd { font-size: inherit; }
main p { max-width: var(--measure); }
.comp-stage p, .comp-stage div, table p, .footer-grid p, .hero-actions p { max-width: none; }
/* One body size, full ink, everywhere body copy appears; muted grey only for small text. */
.lead, .page-hero .lead, .section-head .lead, .hero .lead, .closing .lead { font-size: var(--t-body); line-height: 1.6; color: var(--ink); max-width: var(--measure); }
.row dd, .row .value, .steps p, .roles p, .ops-items p, .prose p, .prose li { color: var(--ink); }
.band p, .band li, .band .lead, .band .row dd, .band .row .value, .section.ink p, .section.ink .lead, .band .ops-items p { color: var(--on-ink); }
.small, .note, .help, .crumbs, .field-error, .trust-line, .steps .who, figcaption, .footer-bottom, .opt { font-size: var(--t-small); line-height: 1.5; }
.small, .note, .help, .crumbs, .trust-line, .steps .who, .opt { color: var(--ink-2); }
.band .small, .band .note, .band .trust-line { color: var(--on-ink-2); }
/* Rhythm */
.section, .section.tight { padding: var(--sec-pad) 0; }
.band.section, .section.ink { padding: var(--sec-pad) 0; }
.page-hero { padding: 40px 0 32px; }
.closing { border-top: 0; }

/* ---------- Homepage ---------- */
.hero { padding: 48px 0 var(--sec-pad); }
.hero h1 { max-width: none; margin: 0 0 20px; }
.hero-sub { margin: 0; max-width: 58ch; }
.hero .hero-actions { margin-top: 32px; }
.trust-line { margin: 16px 0 0; }
.hero-visual { margin-top: 40px; }
@media (min-width: 1248px) { .hero-visual { margin-left: 0; margin-right: 0; } }

.problem .eyebrow { margin-bottom: 20px; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 900px) { .problem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.problem-list h3 { margin: 0 0 8px; }
.problem-list p { margin: 0; }

.pillar { display: grid; gap: 32px; align-items: center; }
.pillar + .pillar { margin-top: 72px; }
@media (min-width: 900px) { .pillar + .pillar { margin-top: 96px; } }
@media (min-width: 1200px) {
  .pillar { grid-template-columns: minmax(0, 1fr) 640px; gap: 64px; }
  .pillar-flip { grid-template-columns: 640px minmax(0, 1fr); }
  .pillar-flip > .comp { order: -1; }
}
.pillar-copy h2 { margin: 0 0 20px; }
.pillar-copy p { margin: 0; }
.pillar-copy .link-arrow, .ai-promise > .container > .link-arrow, .switching .link-arrow { margin-top: 24px; margin-left: calc(-1 * var(--s-1)); }
.pillar .comp { width: 100%; }

.ai-promise h2 { margin: 0 0 20px; }
.ai-promise p { margin: 0; }
.promise-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; max-width: 980px; }
@media (min-width: 900px) { .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.promise-list li { padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); color: var(--on-ink); font-family: var(--font-display); font-size: 22px; line-height: 1.3; }

.switching h2 { margin: 0 0 20px; }
.switch-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: sw; display: grid; gap: 16px; max-width: 1080px; }
@media (min-width: 900px) { .switch-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.switch-steps li { counter-increment: sw; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--rule); }
.switch-steps li::before { content: counter(sw); font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--reserve); font-variant-numeric: tabular-nums; }

.closing h2 { margin: 0; }
.closing .hero-actions { margin-top: 32px; }

/* Pass 9 tightening: one-line hero headline, two-line subhead, 560px pillar compositions, compact footer */
.hero-copy { max-width: none; }
.hero-sub { max-width: 64ch; }
@media (min-width: 1200px) {
  .pillar { grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; }
  .pillar-flip { grid-template-columns: 560px minmax(0, 1fr); }
}
@media (min-width: 900px) { .pillar + .pillar { margin-top: 72px; } }
.pillar + .pillar { margin-top: 56px; }
.site-footer { margin-top: 0; padding: 48px 0 28px; font-size: var(--t-small); }
.footer-grid { gap: 28px 24px; }
.footer-grid p.footer-h { font-size: 18px; margin-bottom: 8px; }
.footer-grid ul { gap: 2px; }
.footer-grid li { line-height: 1.5; }
.site-footer .footer-grid li a { padding: 8px 0; margin: -8px 0; }
.footer-brand p { margin-bottom: 8px; }
.footer-brand img { margin-bottom: 12px; }
.footer-bottom { margin-top: 28px; padding-top: 16px; }
.promise-list { max-width: none; }
.promise-list li { font-size: 20px; }

/* Body-size list text is ink, not muted (pass 9 rule: muted grey only for small text) */
.statement.lines li, .lines li, .statement li, .aside-block li, .prose ul li, .prose ol li { color: var(--ink); }
.band .statement li, .band .lines li { color: var(--on-ink); }
.seq-steps li, .seq-steps li p { color: var(--ink); }
.seq-steps li[aria-current="step"] h3 { color: var(--reserve); }
h2.eyebrow { font-family: var(--font-text); font-size: 13px; line-height: 1.3; letter-spacing: 0.08em; font-weight: 600; text-wrap: initial; }
