/* Logistics Made Simple: the shared design system for every page.
   Look: Jamie's own page. Ink and paper sections, one signal accent (orange; emerald or jade by switch), square corners, 1px lines.
   Type: Archivo (display, headings, UI; wide uppercase headlines), Newsreader italic (the second line),
   IBM Plex Mono (eyebrows, labels, numbers, sources).
   Page-only styles live in css/home.css, css/pages.css and css/apps.css. Everything here is shared.

   Contents
    1  Tokens
    2  Fonts
    3  Surfaces (ink, paper, paper-2, signal): each sets the colours its contents use
    4  Base
    5  Layout: .wrap, sections, grids
    6  Section head (01  WHO WE ARE  ———  PERTH, WA)
    7  Type: display headlines, serif second line, eyebrows, lede, labels
    8  Buttons and arrow links
    9  Lists: checks, square bullets, numbered rows
   10  Chips and tags
   11  Cards, panels, cells, frames (window panels)
   12  Figures (stats)
   13  Forms
   14  Screenshot frames (real app screens)
   15  Gallery and picture viewer
   16  Page hero (inner pages) and CTA band
   17  Header, desktop menu and panels
   18  Phone menu (full-screen dialog)
   19  Footer
   20  Utilities
   21  Motion: reveal on scroll, the scroll line under the header, reduced motion
   22  Colour chooser (only with compare=1 in the address)
   23  Print */


/* ===== 1. Tokens ===== */
:root {
  --ink:        #0E0F11;
  --ink-2:      #17191D;
  --ink-3:      #202329;
  --ink-line:   #2C3038;
  --ink-line-2: #3A3F49;
  --paper:      #F2EFE7;
  --paper-2:    #E8E3D7;
  --paper-line: #CFC8B8;
  --signal:     #FF4F00;
  --signal-soft:#FF8A4C;
  --signal-deep:#B33600;
  --dim:        #5B5E66;
  --dim-dark:   #9EA2AA;
  /* Brand green (round 3, from the LMS logo): it partners the orange, it never replaces it.
     Orange stays the one call to action; green means "working, live, done": status dots and chips, check marks,
     the straight "after" line in the Home drawing. Never green next to orange as two competing fills.
     --green        #00C853  the logo green on light grounds: fills, dots and decorative lines only (1.95:1 on paper,
                             so never words on paper)
     --green-bright #16E26F  the logo green on dark grounds: words and marks on ink (11.09:1 on ink, 9.10:1 on ink-3)
     --green-deep   #00702F  green words on paper, darker so it passes AA (5.44:1 on paper, 4.88:1 on paper-2,
                             5.94:1 on the form field)
     Round 10 (the approved logo) has the same level greens and orange. Its text green #00873A passes AA on white
     only (4.64:1); on this site's warm paper it is 4.04:1 (paper) and 3.62:1 (paper-2), under AA, so words on paper
     keep #00702F. No page puts green words on white. */
  --green:        #00C853;
  --green-bright: #16E26F;
  --green-deep:   #00702F;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-ui: var(--font-display);

  /* 8 px spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 40px; --sp-8: 48px; --sp-9: 64px; --sp-10: 80px; --sp-11: 96px; --sp-12: 128px;

  --wrap: 1320px;
  --gutter: 20px;
  --header-h: 72px;
  --sec-pad: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-pop: 0 28px 56px -20px rgba(0, 0, 0, .6);

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --accent: var(--signal);

  /* Accent roles. The three --signal colours above are the only place the accent is written down.
     --signal       fills that carry ink text (buttons, tags, the accent section)
     --signal-soft  the lighter step (button hover, small labels on ink)
     --signal-deep  accent words and focus rings on paper
     The roles below say which of them a surface uses for words and thin marks; the surfaces (section 3)
     read them, and the green variants below re-set them where a green would be too faint. */
  --on-dark-text:  var(--signal);       /* accent words on ink */
  --on-dark-mark:  var(--signal);       /* accent lines, icons and dots on ink */
  --on-light-mark: var(--signal);       /* accent lines, icons and dots on paper */
  --soon-on-light: var(--signal-deep);  /* the "Coming soon" chip */
  --soon-on-dark:  var(--signal-soft);
  --soon-line: color-mix(in srgb, var(--signal) 45%, transparent);
}
/* The three accents by name, for the colour chooser's own buttons only (section 22). */
.accent-bar { --pick-orange: #FF4F00; --pick-emerald: #12C97B; --pick-jade: #0B9E63; }
/* The accent switch: <html data-accent="emerald"> or "jade". No attribute (or "orange") is the orange above.
   Set by the one-line script in the head from ?accent=, or at build time (Dockerfile, ARG ACCENT).
   Greens from the logo round: Volt #3DF5A0, Emerald #12C97B, Jade #0B9E63, Pine #0A7048.
   Emerald and Jade are too faint for words or thin lines on paper, so Pine does that job there.
   With a green accent the "Coming soon" chip goes neutral, so green on a status chip only ever means "In use". */
html[data-accent="emerald"] {
  --signal: #12C97B; --signal-soft: #3DF5A0; --signal-deep: #0A7048;
  --on-light-mark: var(--signal-deep);
  --soon-on-light: #34373D; --soon-on-dark: #C9C7C0; --soon-line: color-mix(in srgb, currentColor 45%, transparent);
}
html[data-accent="jade"] {
  --signal: #0B9E63; --signal-soft: #12C97B; --signal-deep: #0A7048;
  --on-light-mark: var(--signal-deep);
  --soon-on-light: #34373D; --soon-on-dark: #C9C7C0; --soon-line: color-mix(in srgb, currentColor 45%, transparent);
}
/* The same for the one "needs you" chip in the AI team diagram: neutral in green, so green only ever means on shift. */
html[data-accent="emerald"] .org .tag-signal, html[data-accent="jade"] .org .tag-signal { background: var(--paper); color: var(--ink); }
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }


/* ===== 2. Fonts (self-hosted in /fonts/, no outside requests) ===== */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ===== 3. Surfaces =====
   Every section sets the colours its contents use, so one component works on ink and on paper.
   Components read: --bg, --fg, --fg-2 (body text), --fg-3 (labels), --rule (hair lines), --rule-strong,
   --raised (a panel on this surface), --card-line, --field-*, and the accent:
   --accent-text  accent words          --accent-mark  accent lines, icons, drawing strokes (ink on the accent surface)
   --signal-text  words in the bright accent where it reads, the deep one where it would not
   --signal-mark  the same for thin marks (stays the accent itself on the accent surface)
   --btn-bg / --btn-fg / --btn-hover     the main button
   --green-text   green words (deep green on paper, bright green on ink, ink on the orange surface)
   --green-mark   green dots, ticks, lines (the logo green on paper, bright green on ink, ink on the orange surface)
   --live         the "in use / on shift / all clear" dot (= --green-mark); --live-text its words (= --green-text)
   Never write the accent or the green as a hex value outside section 1. */
:root, .on-paper, .sec--paper, .sec--paper2, .card--paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #34373D;
  --fg-3: var(--dim);
  --rule: var(--paper-line);
  --rule-strong: var(--ink);
  --raised: var(--paper);
  --card-line: var(--ink);
  --accent-text: var(--signal-deep);
  --accent-mark: var(--on-light-mark);
  --signal-text: var(--on-light-mark);
  --signal-mark: var(--on-light-mark);
  --green-text: var(--green-deep);
  --green-mark: var(--green);
  --live: var(--green-mark);
  --live-text: var(--green-text);
  --soon-text: var(--soon-on-light);
  --error-text: #A3201A;
  --field-bg: #FBF9F4;
  --field-line: var(--ink);
  --field-placeholder: #6B6E75;
  --focus: var(--signal-deep);
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-hover: var(--signal-soft);
  --shot-shadow: 0 30px 60px -30px rgba(14, 15, 17, .55);
  color-scheme: light;
}
.sec--paper2 { --bg: var(--paper-2); --raised: var(--paper); }
.on-ink, .sec--ink, .site-header, .site-footer, .page-hero, .mmenu, .viewer, .card--ink, .cta-band--ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: #C9C7C0;
  --fg-3: var(--dim-dark);
  --rule: var(--ink-line);
  --rule-strong: var(--ink-line-2);
  --raised: var(--ink-2);
  --card-line: var(--ink-line);
  --accent-text: var(--on-dark-text);
  --accent-mark: var(--on-dark-mark);
  --signal-text: var(--on-dark-text);
  --signal-mark: var(--on-dark-mark);
  --green-text: var(--green-bright);
  --green-mark: var(--green-bright);
  --live: var(--green-mark);
  --live-text: var(--green-text);
  --soon-text: var(--soon-on-dark);
  --error-text: #FF9C8F;
  --field-bg: var(--ink-2);
  --field-line: var(--ink-line-2);
  --field-placeholder: #8E929A;
  --focus: var(--signal);
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-hover: var(--signal-soft);
  --shot-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
.on-signal, .sec--signal, .cta-band {
  --bg: var(--signal);
  --fg: var(--ink);
  --fg-2: #1E1A17;
  --fg-3: #2A211C;
  --rule: rgba(14, 15, 17, .35);
  --rule-strong: var(--ink);
  --raised: var(--paper);
  --card-line: var(--ink);
  --accent-text: var(--ink);
  --accent-mark: var(--ink);
  --signal-text: var(--signal);
  --signal-mark: var(--signal);
  --green-text: var(--ink);
  --green-mark: var(--ink);
  --live: var(--green-mark);
  --live-text: var(--green-text);
  --soon-text: var(--ink);
  --error-text: var(--ink);
  --focus: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-hover: var(--ink-3);
  color-scheme: light;
}
/* A paper panel inside an accent or ink section (the form card) */
.on-paper-panel { --bg: var(--paper); --fg: var(--ink); --fg-2: #34373D; --fg-3: var(--dim); --rule: var(--paper-line);
  --accent-text: var(--signal-deep); --accent-mark: var(--on-light-mark); --signal-text: var(--on-light-mark); --signal-mark: var(--on-light-mark);
  --green-text: var(--green-deep); --green-mark: var(--green); --live: var(--green-mark); --live-text: var(--green-text); --soon-text: var(--soon-on-light); --error-text: #A3201A; --field-bg: #FBF9F4; --field-line: var(--ink);
  --field-placeholder: #6B6E75; --focus: var(--signal-deep); --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hover: var(--ink-3);
  background: var(--paper); color: var(--ink); }
.sec--ink, .sec--paper, .sec--paper2, .sec--signal, .on-ink, .on-paper, .on-signal { background: var(--bg); color: var(--fg); }
/* Older names some pages still use, re-read on every surface. New work uses the names above. */
:root, .on-paper, .sec--paper, .sec--paper2, .card--paper, .on-ink, .sec--ink, .site-header, .site-footer, .page-hero, .mmenu, .viewer, .card--ink, .cta-band--ink,
.on-signal, .sec--signal, .cta-band, .on-paper-panel {
  --text: var(--fg); --text-2: var(--fg-2); --muted: var(--fg-3); --line: var(--rule); --panel: var(--raised);
}


/* ===== 4. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 18px; } }
main { display: block; }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent-mark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
a { transition: color .15s, text-decoration-color .15s; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 700; }
em, i { font-style: italic; }
hr { border: 0; height: 1px; background: var(--rule); margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg); margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(36px, 1.6rem + 3.6vw, 72px); font-weight: 800; font-stretch: 112%; line-height: .95; letter-spacing: -0.015em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 1.2rem + 2.2vw, 48px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -0.012em; }
h3 { font-size: clamp(19px, 1rem + .4vw, 22px); font-weight: 700; font-stretch: 112%; line-height: 1.2; letter-spacing: -0.005em; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.3; }
::selection { background: var(--signal); color: var(--ink); }

/* Focus: a crisp 2px ring, 3px clear of the thing, in the accent (ink on the accent surface). Never removed. */
:focus-visible { outline: 2px solid var(--focus, var(--signal)); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip { position: absolute; left: 16px; top: -200px; z-index: 200; background: var(--signal); color: var(--ink); padding: 12px 18px; font: 700 16px/1.2 var(--font-display); text-decoration: none; }
.skip:focus { top: 12px; outline-color: var(--paper); }
/* The skip link lands here (site.js 0d gives it tabindex="-1"): the whole page needs no ring round it. */
main[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Line icons: square caps, 2px stroke. Put class="ico" on the svg. */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; flex: none; }


/* ===== 5. Layout ===== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Sections: .sec + one surface. Full-bleed background, content in .wrap. */
.sec { padding: var(--sec-pad) 0; position: relative; }
.sec--tight { padding: clamp(48px, 7vw, 96px) 0; }
.sec--flush-top { padding-top: 0; }
.sec--paper2 { border-top: 1px solid var(--paper-line); }
.sec--paper + .sec--paper { border-top: 1px solid var(--paper-line); }
/* Older section names keep working */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--fg-2); }
.sec--panel { background: var(--paper-2); }

/* Grids */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { gap: 20px; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-even, .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--center { align-items: center; }
}
/* His recurring head: the big headline on the left, a short paragraph on the right, bottoms lined up. */
.head-split { display: grid; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-split > :last-child { margin-bottom: 0; }
.head-split .lede { margin: 0; text-wrap: balance; }
@media (min-width: 1024px) { .head-split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }
.stack > * + * { margin-top: var(--stack, 16px); }


/* ===== 6. Section head =====
   <div class="sec-head"><span class="sec-head__num">01</span><span class="sec-head__label">Who we are</span>
     <span class="sec-head__rule" aria-hidden="true"></span><span class="sec-head__tag">Perth, WA</span></div> */
.sec-head { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(40px, 5vw, 56px); }
.sec-head__num { flex: none; font: 600 12px/1 var(--font-mono); color: var(--accent-text); }
.sec-head__label { flex: none; max-width: 70%; font: 700 12px/1.3 var(--font-display); font-stretch: 100%; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); opacity: .85; margin: 0; }
.sec-head__rule { flex: 1 1 24px; min-width: 16px; height: 1px; background: var(--rule); }
.sec-head__tag { flex: none; font: 400 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
@media (max-width: 559px) { .sec-head__tag { display: none; } }
.sec--signal .sec-head__rule, .cta-band .sec-head__rule { background: var(--ink); opacity: .55; }


/* ===== 7. Type ===== */
/* Display headlines: Archivo 800, wide (125%), uppercase, tight. Sizes never overflow at 390. */
.display-xl, .display-l, .display-m, .display-s {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  color: var(--fg); margin: 0 0 24px; text-wrap: balance; overflow-wrap: break-word;
}
.display-xl { font-size: clamp(40px, 1rem + 6.6vw, 112px); line-height: .9; letter-spacing: -0.02em; font-weight: 900; }
.display-l  { font-size: clamp(31px, 1.1rem + 3.9vw, 72px); line-height: .93; letter-spacing: -0.018em; }
.display-m  { font-size: clamp(27px, 1rem + 2.6vw, 56px); line-height: .95; letter-spacing: -0.015em; }
.display-s  { font-size: clamp(22px, .9rem + 1.3vw, 32px); line-height: 1; letter-spacing: -0.01em; }
/* On narrow phones the wide cut would push long words (CONVERSATION.) past the edge: a little narrower there. */
@media (max-width: 479px) { .display-xl, .display-l, .display-m, .display-s { font-stretch: 112%; } }
.h-display { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(27px, 1rem + 2.6vw, 56px); line-height: .95; letter-spacing: -0.015em; margin: 0 0 24px; text-wrap: balance; }
@media (max-width: 479px) { .h-display { font-stretch: 112%; } }

/* The Newsreader italic second line: <span class="display-serif">It just runs it faster.</span> inside the headline.
   Orange by default (signal on ink, deep signal on paper); --plain keeps the text colour. */
.display-serif {
  display: block; margin-top: .12em;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  font-size: .86em; line-height: 1; letter-spacing: -0.015em; text-transform: none;
  color: var(--accent-text); font-optical-sizing: auto;
}
.display-xl .display-serif { font-size: .96em; line-height: .95; }
.display-serif--plain { color: var(--fg); }
.display-serif--signal { color: var(--signal-text); }
/* Inline serif (stays on the same line), e.g. "Every business runs on <em class="serif">logistics</em>." */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em; }
.accent { color: var(--accent-text); }
.dot { color: var(--signal-text); }

/* Serif headline (not uppercase): "Every business runs on logistics." */
.serif-xl { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 1.2rem + 4.6vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance; }
.serif-l  { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 1rem + 2.4vw, 48px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 20px; }

/* Card and row titles */
.title-l { font: 800 24px/1.05 var(--font-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.005em; margin: 0 0 12px; }
.title-m { font: 700 clamp(19px, 1rem + .5vw, 24px)/1.2 var(--font-display); font-stretch: 112%; margin: 0 0 8px; }
.title-s { font: 700 17px/1.3 var(--font-display); font-stretch: 112%; margin: 0 0 6px; }

/* Lead paragraph and pull lines */
.lede { font-size: clamp(18px, 1rem + .35vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 640px; text-wrap: pretty; margin: 0 0 20px; }
.lede-l { font: 500 clamp(20px, 1rem + .8vw, 27px)/1.4 var(--font-display); letter-spacing: -0.005em; color: var(--fg-2); max-width: 760px; text-wrap: pretty; }
.pull { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 1rem + .45vw, 23px); line-height: 1.4; color: var(--fg); max-width: 640px; margin: 0 0 20px; }
.pull-l { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 1rem + .9vw, 30px); line-height: 1.35; color: var(--fg); max-width: 880px; margin: 0; text-wrap: pretty; }
.pull--accent { color: var(--accent-text); }

/* Eyebrows and mono labels */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--signal-mark); }
/* The hero row of several labels: the first gets the orange line. */
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin: 0 0 clamp(28px, 4vw, 40px); font: 400 12px/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow-row > :first-child { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-row > :first-child::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--signal-mark); }
.mono-label { font: 600 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 8px; }
.mono-label--accent { color: var(--accent-text); }
.mono-num { font: 600 13px/1 var(--font-mono); color: var(--accent-text); }
.eyebrow-h { font: 600 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--fg-2); }
.small { font-size: 15px; line-height: 1.5; color: var(--fg-3); }
.fineprint { font: 400 12px/1.6 var(--font-mono); color: var(--fg-3); margin: 24px 0 0; }
.wide { font-stretch: 112%; }
.wider { font-stretch: 125%; }
.tabular { font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--signal); padding: 6px 8px; }


/* ===== 8. Buttons =====
   <a class="btn btn-primary btn-arrow" href="/#contact">Book a conversation</a>
   .btn-primary  signal with ink text (ink with paper text inside an orange section)
   .btn-ghost    outlined in the text colour
   .btn-dark     ink with paper text (on paper or orange)
   .btn-arrow    adds the square-cap arrow; sizes .btn-sm (44px) .btn-lg (60px); .btn-block fills the row */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 0;
  font: 700 17px/1.2 var(--font-display); font-stretch: 100%; letter-spacing: -0.005em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-ghost, .btn-secondary { background: transparent; color: var(--fg); border-color: var(--rule-strong); border-color: color-mix(in srgb, var(--fg) 34%, transparent); font-weight: 600; }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--fg); color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-3); color: var(--paper); }
.btn-dark.btn-arrow::after { background: var(--signal); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14px; gap: 8px; }
.btn-lg { min-height: 60px; padding: 14px 28px; font-size: 18px; }
.btn-block { display: flex; width: 100%; justify-content: space-between; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

/* The arrow: a square-cap line arrow drawn in the text colour. Used by .btn-arrow, .link-arrow, .card-link. */
.btn-arrow::after, .link-arrow::after, .card-link::after {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease);
}
.btn-arrow:hover::after, .link-arrow:hover::after, .card-link:hover::after { transform: translateX(4px); }
.link-arrow, .card-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 16px/1.2 var(--font-display); color: var(--fg); text-decoration: none; transition: color .15s; }
.link-arrow::after, .card-link::after { background: var(--accent-text); }
.link-arrow:hover, .card-link:hover { color: var(--accent-text); }
.back { margin: 0 0 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 16px/1.2 var(--font-display); color: var(--fg-2); text-decoration: none; }
.back-link::before { content: "\2190"; font-weight: 400; color: var(--accent-text); }
.back-link:hover { color: var(--fg); text-decoration: underline; }


/* ===== 9. Lists ===== */
/* Check-mark list: <ul class="checks"><li>A map of how work moves today</li></ul>. .checks--2 makes two columns from 640. */
.checks { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; color: var(--fg); line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--green-text); /* round 3: ticks in the brand green */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 640px) { .checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
/* Square accent bullets: <ul class="bullets"> */
.bullets { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 24px; line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--signal-mark); }
/* Older tick lists */
.list { list-style: none; display: grid; gap: 10px; margin: 0 0 4px; }
.list li { position: relative; padding-left: 30px; color: var(--fg-2); }
.list li::before { position: absolute; left: 0; top: 0; width: 20px; text-align: center; font-weight: 700; color: var(--accent-text); }
.list-in li::before { content: "\2713"; }
.list-out li::before { content: "\2715"; color: var(--fg-3); }
.list-get li::before { content: "\2192"; }
/* Numbered rows (his values): <ol class="rows"><li><span class="rows__num">01</span><span class="rows__text">Say it in plain words.</span></li></ol> */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.rows li { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.rows__num { flex: none; width: 36px; font: 600 13px/1 var(--font-mono); color: var(--accent-text); }
.rows__text { font: 700 clamp(19px, 1rem + .9vw, 30px)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--fg); text-wrap: balance; }


/* ===== 10. Chips and tags ===== */
.chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--rule); background: transparent;
  font: 600 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--fg-2); }
.chip-live { color: var(--live-text); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.chip-live::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--live); }
.chip-soon, .chip-transit { color: var(--soon-text); border-color: var(--soon-line); }
.chip-soon::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid currentColor; }
/* The solid accent flag ("Start here") */
.tag-signal, .draft-note, .demo-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 8px; background: var(--signal); color: var(--ink);
  font: 600 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }


/* ===== 11. Cards, panels, cells, frames =====
   .card          a square panel with a 1px line (ink line on paper, ink-line on ink)
   .card--ink     an ink card on a light section (his featured "Start here" card)
   .card--flat    no fill, just the line
   .card .num     the mono number in the corner
   .meta          a ruled foot: mono label over a value (.meta__value, serif with --serif) */
.card, .panel { position: relative; background: var(--raised); color: var(--fg); border: 1px solid var(--card-line); padding: 28px 24px; transition: background-color .2s, border-color .2s, box-shadow .2s; }
@media (min-width: 768px) { .card, .panel { padding: 32px 28px; } }
.card--ink { background: var(--ink); color: var(--fg); border-color: var(--ink); }
.card--flat { background: transparent; }
.card-amber, .card--accent { box-shadow: inset 0 3px 0 var(--signal-mark); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); }
.card .num { display: block; margin-bottom: 18px; font: 600 12px/1 var(--font-mono); color: var(--accent-text); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-top .num { margin: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; transition: background-color .15s, border-color .15s; }
.card--link:hover { color: var(--fg); border-color: var(--signal-mark); }
.meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); }
.card > .meta { margin-top: 24px; }
.meta__label { display: block; font: 600 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 6px; }
.meta__value { display: block; font: 700 16px/1.35 var(--font-display); color: var(--fg); margin: 0; }
.meta__value--serif { font: italic 400 19px/1.3 var(--font-serif); }
.card-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.card-grid > .card { display: flex; flex-direction: column; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cells: a grid of boxes split by 1px lines (his industries grid). <ul class="cells cells--3"><li>…</li></ul> */
.cells { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; background: var(--card-line); border: 1px solid var(--card-line); grid-template-columns: minmax(0, 1fr); }
.cells > * { background: var(--bg); padding: 28px 24px; min-width: 0; }
@media (min-width: 640px) { .cells--2, .cells--3, .cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cells > * { padding: 32px; } }
@media (min-width: 1024px) { .cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Cells that are whole links: <ul class="cells cells--4 cells--links"><li><a class="cell-link" href="/services">
     <span class="mono-num">02</span><span class="cell-link__title">Services</span><span class="cell-link__desc">…</span></a></li></ul> */
.cells--links > * { padding: 0; }
.cell-link { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 44px; padding: 28px 24px; color: var(--fg); text-decoration: none; transition: background-color .15s; }
@media (min-width: 640px) { .cell-link { padding: 32px; } }
.cell-link:hover { background: var(--raised); color: var(--fg); }
.sec--paper .cell-link:hover, .sec--paper2 .cell-link:hover { background: var(--ink); color: var(--paper); }
.sec--paper .cell-link:hover .cell-link__desc, .sec--paper2 .cell-link:hover .cell-link__desc { color: #C9C7C0; }
.sec--paper .cell-link:hover .mono-num, .sec--paper2 .cell-link:hover .mono-num { color: var(--on-dark-text); }
.sec--paper .cell-link:hover .cell-link__title::after, .sec--paper2 .cell-link:hover .cell-link__title::after { background: var(--on-dark-mark); }
.cell-link:focus-visible { outline-offset: -4px; }
.cell-link__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font: 700 clamp(20px, 1rem + .6vw, 26px)/1.15 var(--font-display); font-stretch: 112%; }
.cell-link__title::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--signal-mark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease); }
.cell-link:hover .cell-link__title::after { transform: translateX(4px); }
.cell-link__desc { font-size: 15px; line-height: 1.5; color: var(--fg-2); }

/* Ruled columns: side by side with a 1px line between (his stats and method strip); stacked with lines on phones. */
.ruled { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.ruled > * { padding: 32px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
@media (min-width: 768px) {
  .ruled--2, .ruled--3 { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .ruled--2 { --cols: 2; }
  .ruled--2 > *, .ruled--3 > * { padding: 40px 32px; border-bottom: 0; border-left: 1px solid var(--rule); }
  .ruled--2 > :first-child, .ruled--3 > :first-child { padding-left: 0; border-left: 0; }
}
.ruled--strong { border-top: 2px solid var(--fg); }

/* Window panel (his "BEFORE / HOW WORK MOVES / AFTER" box and the sample job board):
   <figure class="frame"><div class="frame-bar"><span>Your AI team</span><span>Sample build</span></div>
     <div class="frame-body">…</div><figcaption class="frame-foot">…</figcaption></figure> */
.frame { margin: 0; background: var(--raised); border: 1px solid var(--card-line); color: var(--fg); }
.on-ink .frame, .sec--ink .frame, .page-hero .frame { background: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--card-line);
  font: 400 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
@media (min-width: 768px) { .frame-bar { padding: 16px 20px; } }
.frame-body { padding: 20px 16px; }
@media (min-width: 768px) { .frame-body { padding: 28px 32px; } }
.frame-foot { padding: 12px 16px; border-top: 1px solid var(--card-line); font: 400 11px/1.5 var(--font-mono); color: var(--fg-3); }

/* Small square icon tile (menu, app cards) */
.tile-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: var(--raised); color: var(--fg-2); font: 800 13px/1 var(--font-display); font-stretch: 112%; letter-spacing: .04em; }
.tile-icon { transition: border-color .15s, color .15s, background-color .15s; }
.tile-icon svg { width: 20px; height: 20px; display: block; }
.tile-icon--accent { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }


/* ===== 12. Figures =====
   <div class="stat"><p class="stat__fig">00</p><p class="stat__text">…</p><p class="stat__src"><a href="…">Source, date</a></p></div>
   Only figures verified in docs/handback/jamie-site/research.md, each linked to its source. */
.stat { min-width: 0; }
.stat__fig { margin: 0; font: 800 clamp(52px, 1.5rem + 4.4vw, 88px)/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat__fig::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 22px; background: var(--signal-mark); }
.stat__fig--accent { color: var(--accent-text); }
.stat__text { margin: 22px 0 0; font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: 36ch; }
.stat__src { margin: 20px 0 0; font: 400 11px/1.5 var(--font-mono); color: var(--fg-3); }
.stat__src a { color: var(--fg-3); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.stat__src a:hover { color: var(--fg); text-decoration-color: var(--signal-mark); }


/* ===== 13. Forms =====
   Works on ink (dark fields) and paper (light fields) by itself. Field ids are read by site.js section 3. */
.form { display: grid; gap: 20px; }
.form-panel { padding: 28px 20px; border: 1px solid var(--card-line); }
@media (min-width: 768px) { .form-panel { padding: 36px; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font: 600 15px/1.3 var(--font-display); color: var(--fg); }
.field .opt, .field .req { font-weight: 400; color: var(--fg-3); font-size: 14px; }
.field .hint { font-size: 14px; line-height: 1.45; color: var(--fg-3); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 0;
  border: 2px solid var(--field-line); background: var(--field-bg); color: var(--fg);
  font: 400 17px/1.4 var(--font-display); transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 3px; border-color: var(--fg); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--field-placeholder); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235B5E66' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E"); }
.field select option { background: var(--field-bg); color: var(--fg); }
.field .count { font: 400 12px/1.4 var(--font-mono); color: var(--fg-3); margin: 0; text-align: right; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form-error { color: var(--error-text); font-weight: 600; margin: 0; }
.form-error:empty { display: none; }
.form-status { padding: 16px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--live); background: var(--raised); }
.form-status[hidden] { display: none; }
.form-status:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
/* The line site.js adds under a "Tell me when it's ready" button once it has been pressed. */
.notify-note { margin: 16px 0 0; }
.notify-note a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--fg); }
/* Range sliders (the cost calculator): a square thumb in signal on a 4px track */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; accent-color: var(--signal-mark); }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--rule-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--signal-mark); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--signal-mark); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--rule-strong); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--signal-mark); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 0; background: var(--signal-mark); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--signal-mark); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }


/* ===== 14. Screenshot frames (real app screens from public/img/apps/) =====
   .appshot          the frame for a desktop screen (square, 1px line, a soft drop on paper)
   .appshot--crop    a fixed shape showing the top-left (set --shot-ratio, --shot-pos)
   .appshot--light   for light screens (LoadVi3w, the printed sheet)
   .appshot--phone   the phone body; the screen keeps its own shape (390 by 844)
   .demo-tag         the small "Demo company" label; .frame-note a mono line under a frame
   Put width and height on every img so nothing moves while it loads. */
.appshot { position: relative; display: block; margin: 0; border: 1px solid var(--card-line); background: var(--ink); overflow: hidden; box-shadow: var(--shot-shadow); }
.on-ink .appshot, .sec--ink .appshot, .page-hero .appshot { border-color: var(--ink-line-2); }
.appshot picture { display: block; }
.appshot img { display: block; width: 100%; height: auto; }
.appshot--crop { aspect-ratio: var(--shot-ratio, 16 / 10); }
.appshot--crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--shot-pos, 0 0); }
.appshot--light { background: #F4F2EC; border-color: var(--paper-line); }
.sec--paper .appshot--light, .sec--paper2 .appshot--light { border-color: var(--ink); }
.appshot--phone { border-radius: 30px; padding: 7px; background: #0A0B0D; border: 1px solid var(--ink-line-2); box-shadow: var(--shot-shadow), inset 0 0 0 1px rgba(255,255,255,.05); overflow: visible; }
.appshot--phone img { border-radius: 23px; }
.demo-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.demo-tag::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--signal-mark); }
.frame-note { font: 400 12px/1.6 var(--font-mono); color: var(--fg-3); margin: 14px 0 0; }
.frame-note b { color: var(--fg-2); font-weight: 600; }
.demo-note { border-left: 3px solid var(--signal-mark); }


/* ===== 15. Gallery and picture viewer =====
   A thumbnail is <figure class="shot"><a class="shot-link appshot" href="…full.webp" data-w data-h><picture>…</picture></a><figcaption>…</figcaption></figure>
   inside <div class="gallery"> (desktop screens) or <div class="gallery gallery--phones">. site.js section 2 opens the viewer. */
.shot { margin: 0; display: grid; gap: 14px; align-content: start; min-width: 0; }
.shot-link { display: block; cursor: zoom-in; }
a.appshot { transition: border-color .15s, transform .25s var(--ease); }
a.appshot:hover { border-color: var(--signal-mark); }
a.appshot:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.shot figcaption { font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.shot figcaption b { color: var(--fg); font-weight: 700; }
.gallery { display: grid; gap: 32px 16px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > .shot:first-child { grid-column: 1 / -1; }
}
/* Desktop screens: two, three, two. */
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
  .gallery > .shot, .gallery > .shot:first-child { grid-column: span 3; }
  .gallery > .shot:nth-child(n+3):nth-child(-n+5) { grid-column: span 2; }
}
/* The phones: side by side, the words under each, and beside each from 1024. */
.gallery--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--phones > .shot, .gallery--phones > .shot:first-child { grid-column: auto; }
.shot--phone .shot-link { width: 100%; max-width: 200px; }
@media (min-width: 1024px) {
  .gallery--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule); }
  .gallery--phones > .shot, .gallery--phones > .shot:first-child { grid-column: auto; }
  .shot--phone { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
  .shot--phone figcaption { max-width: 30ch; }
}

/* Picture viewer: a native dialog (Esc closes, focus stays inside). site.js sets --w / --h on the img
   and --viewer-chrome (the height of the bar and foot) on the dialog, so a picture always fits. */
.viewer { padding: 0; border: 1px solid var(--ink-line-2); border-radius: 0; background: var(--ink-2); color: var(--fg); width: min(1600px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); overflow: hidden; box-shadow: var(--shadow-pop); overscroll-behavior: contain; }
.viewer--tall { width: min(560px, calc(100vw - 24px)); }
.viewer::backdrop { background: rgba(8, 9, 10, .92); }
html.viewer-open { overflow: hidden; }
.viewer-inner { display: flex; flex-direction: column; max-height: calc(100vh - 26px); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--ink-line); }
.viewer-title { min-width: 0; }
.viewer-bar p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.viewer-bar b { color: var(--fg); }
.viewer-bar .viewer-count { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-soft); margin-bottom: 2px; }
.viewer-count:empty { display: none; }
.viewer-close { flex: none; min-width: 44px; min-height: 44px; }
.viewer-body { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 12px 12px 68px; background: var(--ink); touch-action: pan-y pinch-zoom; }
.viewer-body img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 250px); object-fit: contain; }
.viewer-body img[style*="--w"] { max-height: none; aspect-ratio: var(--w) / var(--h); width: min(100%, var(--w) * 1px, (100vh - 26px - var(--viewer-chrome, 250px)) * var(--w) / var(--h)); }
.viewer-nav { position: absolute; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink-line-2); border-radius: 0; background: var(--ink-2); color: var(--fg); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.viewer-nav:hover { border-color: var(--accent-mark); color: var(--accent-text); }
.viewer-nav[hidden] { display: none; }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer--single .viewer-body { padding-bottom: 12px; }
/* The box the picture sits in (site.js makes it). On a narrow phone a wide desktop screen is drawn 900px wide and this box pans. */
.viewer-pan { display: grid; place-items: center; width: 100%; min-width: 0; }
.viewer-pan:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (max-width: 699px) {
  .viewer:not(.viewer--tall) .viewer-pan { justify-items: start; overflow: auto; max-height: calc(100vh - 26px - var(--viewer-chrome, 250px)); overscroll-behavior: contain; }
  .viewer:not(.viewer--tall) .viewer-pan img[style*="--w"] { width: 900px; max-width: none; }
}
@media (max-height: 480px) {
  .viewer-foot .small { display: none; }
  .viewer-bar { padding-block: 4px; }
}
@media (min-width: 1280px) {
  .viewer-body { padding: 16px 72px; }
  .viewer--single .viewer-body { padding: 16px; }
  .viewer-nav { bottom: auto; top: 50%; margin-top: -22px; }
  .viewer-prev { left: 14px; }
  .viewer-next { right: 14px; }
}
.viewer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; padding: 0 18px 10px; margin: 0; font-size: 15px; border-top: 1px solid var(--ink-line); }
.viewer-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
.viewer-foot a:hover { color: var(--signal-soft); }
/* Shown by site.js when the full-size picture cannot be fetched. */
.viewer-note { flex: 1 1 100%; padding-bottom: 8px; font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.viewer-note[hidden] { display: none; }


/* ===== 16. Page hero (inner pages) and CTA band =====
   <section class="page-hero"><div class="wrap">
     <p class="eyebrow-row"><span>Services</span><span>Operations · Systems · AI · Training</span></p>
     <h1 class="display-l">Four practices. One team. <span class="display-serif">AI is one of them. It's never the first.</span></h1>
     <p class="lede">…</p><div class="btn-row">…</div>
   </div></section> */
.page-hero { position: relative; background: var(--ink); color: var(--fg); padding: clamp(64px, 9vw, 136px) 0 clamp(64px, 8vw, 112px); overflow: hidden; border-bottom: 1px solid var(--ink-line); }
/* His faint grid behind the hero, fading out to the right and bottom. Decoration only. */
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242,239,231,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(242,239,231,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.page-hero > .wrap { position: relative; }
.page-hero h1 { max-width: 18ch; }
.page-hero h1.display-xl { max-width: none; }
.page-hero .lede { margin-top: clamp(24px, 3vw, 36px); max-width: 640px; }
.page-hero .pull { margin-top: 8px; }
.page-hero .btn-row { margin-top: clamp(28px, 4vw, 40px); }
.page-hero--split > .wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .page-hero--split > .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; } }

/* The giant code on the 404 page (decoration: aria-hidden) */
.hero-code { margin: 0; font: 900 clamp(108px, 12.5vw, 188px)/.78 var(--font-display); font-stretch: 125%; letter-spacing: -0.04em; color: var(--accent-text); font-variant-numeric: tabular-nums; user-select: none; }
@media (max-width: 479px) { .hero-code { font-stretch: 112%; } }
@media (min-width: 1024px) { .page-hero--split .hero-code { justify-self: end; } }

/* Closing call to action, orange like his "Let's have a straight conversation" (or --ink).
   <section class="cta-band"><div class="wrap"><h2 class="display-l">…</h2><p class="lede">…</p>
     <div class="btn-row"><a class="btn btn-primary btn-arrow" href="/#contact">Book a conversation</a></div></div></section> */
.cta-band { background: var(--bg); color: var(--fg); padding: clamp(72px, 9vw, 128px) 0; }
.cta-band--ink { border-top: 1px solid var(--ink-line); }
.cta-band .display-l, .cta-band .display-m, .cta-band h2 { max-width: 20ch; }
.cta-band .lede { color: var(--fg-2); }
.cta-band .card { background: transparent; border: 0; padding: 0; }   /* older markup: the card is just a wrapper now */
.cta-band .eyebrow { color: var(--fg-2); }
.cta-band .eyebrow::before { background: var(--ink); }
.cta-band--ink .eyebrow::before { background: var(--signal); }


/* ===== 17. Header, desktop menu and panels =====
   Below 1280: brand + Menu button (+ the CTA from 640). From 1280: the full row. Panels open from buttons (site.js 1a). */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--fg); border-bottom: 1px solid var(--ink-line); }
.hdr-bar, .header-bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.header-bar { justify-content: space-between; }

/* The brand: the LMS mark from /brand/ (public/brand/README.md) + the name in words; the footer uses the full lock-up.
   The mark is sized by its height only, so a new mark of another width still fits (tools/swap-brand.mjs). */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
/* The header and phone-menu mark is a round 10 hinted cut, shown at the exact height it was drawn for (32 px, 24 px under
   480 wide), so every pixel lands on a pixel. srcset picks the cut by device pixels (1x the 32 cut, 2x the 64 cut, 3x the
   master); never the master SVG at these sizes. public/brand/README.md lists which file each screen gets. */
.lms-logo { display: block; flex: none; height: 32px; }
.lms-logo picture { display: block; height: 100%; }
.lms-logo img { display: block; width: auto; height: 100%; }
/* "Mad3": round 10's rule for live text, the 3 in the mark's green (#16E26F on ink: 11.09:1). */
.brand-name .mad3 { color: var(--green-bright); }
/* Lock-up logo switch: add "lms-logo--lockup" to each .lms-logo. The words are hidden on screen but still read out. */
.lms-logo--lockup { width: auto; height: 36px; }
.lms-logo--lockup img { width: auto; height: 100%; max-width: 240px; }
.lms-logo--lockup + .brand-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--signal); color: var(--ink); font: 800 11px/1 var(--font-display); } /* older markup */
.brand-text { display: grid; gap: 3px; min-width: 0; }
.brand-name { font: 800 15px/1.1 var(--font-display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.brand-tag { font: 400 11px/1.2 var(--font-mono); letter-spacing: .02em; color: var(--signal-soft); white-space: nowrap; }
.site-footer .brand-tag, .mmenu .brand-tag { color: var(--signal-soft); }
@media (max-width: 479px) {
  .hdr .brand-tag, .mmenu-bar .brand-tag { display: none; }
  .hdr .brand-name, .mmenu-bar .brand-name { font-size: 13px; font-stretch: 100%; letter-spacing: .06em; }
  .hdr .lms-logo, .mmenu-bar .lms-logo { height: 24px; }
  .hdr .lms-logo--lockup, .mmenu-bar .lms-logo--lockup { width: auto; height: 30px; }
  /* Phones: beside the LMS mark the name takes two lines, so it never runs under the Menu or Close button. */
  .hdr .brand, .mmenu-bar .brand { gap: 10px; }
  .hdr .brand-name, .mmenu-bar .brand-name { white-space: normal; line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; }
}

/* Narrow phones (under 380): a little smaller again. */
/* The mark stays 24 px (the 24 cut): round 10's smallest wordmark. */
@media (max-width: 379px) {
  .hdr .brand-name, .mmenu-bar .brand-name { font-size: 12px; letter-spacing: .04em; }
  .hdr .brand, .mmenu-bar .brand { gap: 8px; }
}
/* Under 340 (320 phones): 11 px, so the name stays on two lines beside the 24 px mark. */
@media (max-width: 339px) {
  .hdr .brand-name, .mmenu-bar .brand-name { font-size: 11px; }
}
/* Round 10: the 32 px mark is a little wider than round 3's. Between 480 and 1279 wide the name may take two lines
   rather than run under the Menu button or "Book a conversation", and the tagline shows only where it fits (768 up). */
@media (min-width: 480px) and (max-width: 1279px) {
  .hdr .brand-name, .mmenu-bar .brand-name { white-space: normal; line-height: 1.2; text-wrap: balance; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .hdr .brand-tag, .mmenu-bar .brand-tag { display: none; }
}

.hdr .brand { flex: 0 1 auto; margin-right: auto; }
.nav, .hdr-cta { display: none; }
.menu-toggle, .mmenu-close { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink-line-2); border-radius: 0; background: transparent; color: var(--fg); font: 600 15px/1 var(--font-display); text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.menu-toggle:hover, .mmenu-close:hover { border-color: var(--fg); color: var(--fg); }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.mmenu-close .ico { width: 16px; height: 16px; }
/* Without script the Menu button cannot open anything, so a plain link to the footer sitemap takes its place. */
.js .menu-nojs, html:not(.js) button.menu-toggle { display: none; }
.js .nav-nojs, html:not(.js) .nav-trigger, html:not(.js) .mega { display: none; }
@media (min-width: 640px) { .hdr-cta { display: inline-flex; flex: none; white-space: nowrap; } }

@media (min-width: 1280px) {
  .menu-toggle, .js .menu-toggle, html:not(.js) .menu-nojs { display: none; }
  .hdr-bar { gap: 24px; }
  .hdr .brand { flex: none; margin-right: auto; }
  .nav { display: block; flex: none; }
}
/* 1280 to 1439: the tagline goes first so the row never wraps. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .hdr .brand-tag { display: none; }
  .hdr-bar { gap: 16px; }
  .hdr .brand-name { font-size: 14px; font-stretch: 100%; letter-spacing: .06em; }
  .nav-link, .nav-trigger { padding: 0 8px; }
  .nav-link::after, .nav-trigger::after { left: 8px; right: 8px; }
}

.nav-list { list-style: none; display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link, .nav-trigger { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 9px; border: 0; border-radius: 0; background: transparent;
  color: rgba(242, 239, 231, .78); font: 600 14px/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .12s; }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--paper); }
.nav-link[aria-current="page"], .nav-trigger.is-current, .nav-link.is-current { color: var(--paper); }
.nav-link::after, .nav-trigger::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease); }
.nav-link:hover::after, .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); background: var(--ink-line-2); }
.nav-link[aria-current="page"]::after, .nav-trigger.is-current::after, .nav-link.is-current::after { transform: scaleX(1); background: var(--signal); }
.nav-trigger .ico { width: 14px; height: 14px; color: var(--dim-dark); transition: transform .15s; }
.nav-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--accent-text); }

/* The panels */
.mega { position: absolute; z-index: 60; top: calc(100% + 14px); left: -8px; background: var(--ink-2); color: var(--fg); border: 1px solid var(--ink-line); border-top: 2px solid var(--signal); box-shadow: var(--shadow-pop);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .14s, transform .14s, visibility 0s linear .14s; }
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* A strip over the gap between the button and the panel, so the pointer can cross it. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega--services { width: 640px; }
.mega--apps { width: 660px; left: auto; right: -8px; }
.mega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.mega-label { font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim-dark); margin: 0; }
.mega-list { list-style: none; display: grid; gap: 0; padding: 6px 8px 10px; }
.mega-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 12px; color: var(--fg); text-decoration: none; transition: background-color .12s; }
.mega-item:hover { background: var(--ink-3); color: var(--fg); }
.mega-item:focus-visible { outline-offset: -2px; }
.mega-item:hover .tile-icon { border-color: var(--accent-mark); color: var(--accent-text); }
.mega-num { flex: none; width: 22px; padding-top: 3px; font: 600 12px/1 var(--font-mono); color: var(--accent-text); }
.mega-item__text { display: grid; gap: 4px; min-width: 0; }
.mega-item__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 16px/1.25 var(--font-display); font-stretch: 112%; color: var(--fg); }
.mega-item__desc { font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.mega-item[aria-current="page"] { background: var(--ink-3); box-shadow: inset 2px 0 0 var(--signal); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 20px; border-top: 1px solid var(--ink-line); background: var(--ink); }
.mega-foot .link-arrow { font-size: 15px; }
.mega-foot .link-arrow::after { background: var(--signal); }
.mega-foot .link-arrow[aria-current="page"] { color: var(--signal-soft); }
.mega-cols { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.mega-feature { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 10px 8px; padding: 20px; background: var(--ink); border: 1px solid var(--ink-line); color: var(--fg); text-decoration: none; transition: border-color .12s; }
.mega-feature:hover { border-color: var(--signal); color: var(--fg); }
.mega-feature[aria-current="page"] { border-color: var(--signal); }
.mega-feature:focus-visible { outline-offset: -2px; }
.mega-feature__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mega-feature__title { font: 800 26px/1 var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.01em; }
.mega-feature__desc { font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.mega-feature__note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-line); font: 400 12px/1.45 var(--font-mono); color: var(--dim-dark); }

/* Older header markup (pages not yet moved to the new header keep working). */
.menu-btn { display: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--fg-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--signal); }
.header-cta { display: none; }
@media (max-width: 1023px) {
  .header-bar { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 10px; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink-line-2); background: transparent; color: var(--fg); font: 600 15px/1 var(--font-display); cursor: pointer; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
}
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }


/* ===== 18. Phone menu: a full-screen native dialog (Esc closes it, the page behind is inert and does not scroll) ===== */
.mmenu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--fg); overflow: hidden; }
.mmenu[open] { display: flex; flex-direction: column; }
.mmenu::backdrop { background: var(--ink); }
html.menu-open { overflow: hidden; }
.mmenu-bar { flex: none; display: flex; align-items: center; gap: 12px; min-height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--ink-line); }
.mmenu-bar .brand { margin-right: auto; min-width: 0; }
.mmenu-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 28px; display: grid; align-content: start; gap: 8px 48px; }
.mmenu-group { min-width: 0; }
.mmenu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 12px; border-bottom: 1px solid var(--ink-line-2); }
.mmenu-label { font: 600 11px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--signal-soft); margin: 0; }
.mmenu-head .link-arrow { font-size: 15px; color: var(--fg-2); }
.mmenu-head .link-arrow::after { background: var(--signal); }
.mmenu-head .link-arrow[aria-current="page"] { color: var(--signal-soft); }
.mmenu-list { list-style: none; }
.mmenu-list li { border-bottom: 1px solid var(--ink-line); }
.mmenu-link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; color: var(--fg); text-decoration: none; }
.mmenu-link:hover { color: var(--signal-soft); }
.mmenu-link__title { transition: color .15s; }
.mmenu-link:focus-visible { outline-offset: -2px; }
.mmenu-link .chip { margin-left: auto; }
.mmenu-num { flex: none; width: 22px; font: 600 12px/1 var(--font-mono); color: var(--accent-text); }
.mmenu-link__text { display: grid; gap: 3px; min-width: 0; }
.mmenu-link__title { font: 700 19px/1.2 var(--font-display); font-stretch: 112%; letter-spacing: -0.005em; }
.mmenu-link__desc { font-size: 14px; line-height: 1.4; color: var(--fg-2); text-wrap: pretty; }
.mmenu-link[aria-current="page"] .mmenu-link__title { color: var(--signal-soft); }
.mmenu-link[aria-current="page"]::before { content: ""; flex: none; width: 3px; align-self: stretch; margin: 6px 0; background: var(--signal); }
.mmenu-list--compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.mmenu-list--compact .mmenu-link { min-height: 52px; }
.mmenu-foot { flex: none; padding: 14px var(--gutter); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ink-line); background: var(--ink-2); }
.mmenu-foot .btn { width: 100%; justify-content: space-between; }
/* Short screens: the one line under each name goes, rows tighten (still 48px). */
@media (max-height: 700px) {
  .mmenu-link__desc { display: none; }
  .mmenu-link, .mmenu-list--compact .mmenu-link { min-height: 48px; padding: 6px 0; }
  .mmenu-link__title { font-size: 18px; }
  .mmenu-head { margin-top: 6px; min-height: 44px; }
}
@media (max-height: 480px) {
  .mmenu-bar { min-height: 56px; }
  .mmenu-foot { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .mmenu-foot .btn { min-height: 44px; }
}
/* Tablets and phones on their side: two columns. */
@media (min-width: 640px) {
  .mmenu-body { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 16px; }
  .mmenu-foot .btn { width: auto; min-width: 300px; }
  .mmenu-list--compact { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-height: 520px) { .mmenu-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) and (min-height: 700px) { .mmenu-body { padding-top: 32px; gap: 16px 64px; } .mmenu-link__title { font-size: 21px; } }


/* ===== 19. Footer ===== */
.site-footer { background: var(--ink); color: var(--fg); border-top: 1px solid var(--ink-line); padding: clamp(64px, 8vw, 104px) 0 32px; }
.ftr-top { display: grid; gap: 48px 32px; grid-template-columns: minmax(0, 1fr); }
.ftr-brand .brand { margin-bottom: 28px; }
/* The footer lock-up: shown at the 1x PNG's own width (--lockup-footer-w, set by tools/swap-brand.mjs and checked by
   --check), so its 32 px mark is the 32 cut on whole pixels at 1x, the 64 cut at 2x and the master SVG at 3x.
   Never wider than its column. */
.ftr-brand .brand { max-width: 100%; }
.ftr-brand .lms-logo--lockup { --lockup-footer-w: 273px; width: min(var(--lockup-footer-w), 100%); height: auto; }
.ftr-brand .lms-logo--lockup img { width: 100%; height: auto; max-width: none; }
.ftr-line { margin: 0 0 16px; font: 800 clamp(26px, 1rem + 1.6vw, 34px)/.98 var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.015em; }
.ftr-line span { display: block; }
.ftr-line span + span { margin-top: 6px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em; font-size: 1.06em; color: var(--accent-text); }
@media (max-width: 479px) { .ftr-line { font-stretch: 112%; } }
.ftr-nav { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-h { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-line); font: 600 11px/1.3 var(--font-mono); font-stretch: 100%; letter-spacing: .16em; text-transform: uppercase; color: var(--signal-soft); }
.ftr-list { list-style: none; }
.ftr-list a { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px 10px; min-height: 44px; min-width: 44px; padding: 4px 0; font: 500 15px/1.35 var(--font-display); color: var(--fg-2); text-decoration: none; transition: color .12s; }
.ftr-list a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--signal); }
.ftr-list .chip { flex: none; gap: 5px; font-size: 9px; padding: 1px 5px; }
.ftr-list .chip::before { width: 6px; height: 6px; }
@media (max-width: 599px) { .ftr-list a { flex-wrap: wrap; } } /* narrow two-column footer: the chip may drop under the name rather than overflow */
.ftr-talk p { margin: 0; }
.ftr-talk .ftr-call { display: flex; align-items: center; min-height: 44px; font: 500 15px/1.35 var(--font-display); color: var(--fg-2); }
.ftr-talk .btn { margin: 16px 0 14px; white-space: nowrap; }
.site-footer .brand-tag { display: none; }
.ftr-talk .small { max-width: 28ch; color: var(--dim-dark); }
@media (min-width: 640px) { .ftr-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .ftr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr-nav { grid-column: 1 / -1; grid-row: 2; }
}
/* Five columns only once the brand lock-up and "YardVi3w + chip" both fit their columns; below that the 768 layout holds. */
@media (min-width: 1360px) {
  .ftr-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .65fr) minmax(264px, 1.1fr); gap: 40px; }
  .ftr-nav { display: contents; }
}
.ftr-base { display: grid; gap: 10px 32px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 14px; line-height: 1.55; color: var(--dim-dark); }
.ftr-base p { margin: 0; }
.ftr-base .ftr-mono, .ftr-base .ftr-sources { font: 400 12px/1.6 var(--font-mono); letter-spacing: .02em; }
.ftr-base .ftr-sources a { color: var(--dim-dark); }
.ftr-base .ftr-sources a:hover { color: var(--fg); }
.ftr-sources:empty { display: none; }
@media (min-width: 1024px) {
  .ftr-base { grid-template-columns: minmax(0, 1fr) auto; }
  .ftr-base .ftr-sources, .ftr-base .ftr-truth { grid-column: 1 / -1; }
  .ftr-base .ftr-mono { text-align: right; }
}
/* Older footer markup */
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid ul { list-style: none; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: 14px; color: var(--dim-dark); }


/* ===== 20. Utilities ===== */
.m0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-12 { margin: 12px 0 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: clamp(40px, 6vw, 64px); }
.narrow { max-width: 760px; }
.measure { max-width: 64ch; }
.center { text-align: center; }
.align-start { align-items: start; }
.gap-0 { gap: 0; }
.nowrap { white-space: nowrap; }
.h-card { font-size: 28px; }
.h-card-sm { font-size: 24px; }
.eyebrow-center { justify-content: center; }
.email-big { font: 700 clamp(20px, 1rem + .8vw, 26px)/1.3 var(--font-display); margin-bottom: 8px; overflow-wrap: anywhere; }
.email-big a { padding: 9px 0; }
.app-name { overflow-wrap: anywhere; }
[hidden] { display: none !important; }


/* ===== 21. Motion =====
   Drawings: an accent stroke carries class "ill-s-accent", an accent fill "ill-f-accent" (the colour written
   on the element stays as the fallback for a page with no CSS). The older "ill-accent" follows the accent
   too, for whichever of stroke and fill the element already paints in the accent. */
.ill-s-accent { stroke: var(--accent-mark); }
/* Round 3: a green stroke in a drawing ("ill-s-green"; the colour written in the SVG is #16E26F, for no-CSS and print). */
.ill-s-green { stroke: var(--green-mark); }
.ill-f-accent { fill: var(--accent-mark); }
.ill-accent[stroke="#FF4F00" i] { stroke: var(--accent-mark); }
.ill-accent[fill="#FF4F00" i] { fill: var(--accent-mark); }

/* Reveal on scroll (site.js section 5).
     data-reveal            "" or "up": rise 20px and fade in.  "left" / "right": slide in 24px from that side.
                            "scale": grow from 97%.  "fade": fade only.
     data-reveal-delay      "1" to "6": wait 70 ms per step.
     data-reveal-group      on a parent: site.js reveals its direct children, one after another.
   Nothing is hidden unless <html> has class "reveal-on". Only site.js sets it, and only when it can also
   show things again (IntersectionObserver there, reduced motion not asked for). Opacity and transform only:
   the box keeps its place and size, so nothing on the page moves. Never on a hero h1, a hero lede or
   anything else on the first screen. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 20px, 0); }
  html.reveal-on [data-reveal="left"]:not(.is-in) { transform: translate3d(-24px, 0, 0); }
  html.reveal-on [data-reveal="right"]:not(.is-in) { transform: translate3d(24px, 0, 0); }
  html.reveal-on [data-reveal="scale"]:not(.is-in) { transform: scale(.97); }
  html.reveal-on [data-reveal="fade"]:not(.is-in) { transform: none; }
  /* "is-revealing" is on only while the thing moves, so its own hover transitions are untouched afterwards. */
  html.reveal-on [data-reveal].is-revealing { transition: opacity .6s var(--ease-out) var(--reveal-delay, 0ms), transform .6s var(--ease-out) var(--reveal-delay, 0ms); will-change: opacity, transform; }
  [data-reveal-delay="1"] { --reveal-delay: 70ms; }
  [data-reveal-delay="2"] { --reveal-delay: 140ms; }
  [data-reveal-delay="3"] { --reveal-delay: 210ms; }
  [data-reveal-delay="4"] { --reveal-delay: 280ms; }
  [data-reveal-delay="5"] { --reveal-delay: 350ms; }
  [data-reveal-delay="6"] { --reveal-delay: 420ms; }

  /* A link to another part of the page glides there (the sticky header is allowed for in section 4).
     site.js adds "glide" once the page has loaded, so a page opened at an #anchor starts there, still. */
  html.glide { scroll-behavior: smooth; }
}

/* A thin line under the header that fills as the page is read. No script: it is tied to the scroll position
   by the browser, where the browser can (elsewhere there is simply no line). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); pointer-events: none;
      transform: scaleX(0); transform-origin: 0 50%; animation: scroll-line linear both; animation-timeline: scroll(root block); }
    @keyframes scroll-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Going from page to page: a short cross-fade, the header holding still (browsers that can; others just load). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

/* Reduced motion: no movement at all. Every still state is the finished picture. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ===== 22. Colour chooser =====
   Built by site.js (0c) only when compare=1 is in the address: "Colour  Orange  Emerald  Jade".
   A bar fixed to the bottom of the screen. The page gets the same height of room at its end, so the bar
   never sits on the last lines of a form. It sits under the header's panels; the full-screen menu and the
   picture viewer are dialogs and cover it. Each button shows its own colour whatever the page is wearing. */
.accent-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 12px env(safe-area-inset-bottom, 0px);
  background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink-line-2); }
.accent-bar__label { margin-right: 6px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim-dark); }
.accent-bar__btn { --pick: var(--pick-orange); min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink-line-2); border-radius: 0;
  background: transparent; color: var(--paper); font: 600 14px/1 var(--font-display); cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--pick); transition: background-color .15s, border-color .15s, color .15s; }
.accent-bar__btn--emerald { --pick: var(--pick-emerald); }
.accent-bar__btn--jade { --pick: var(--pick-jade); }
.accent-bar__btn:hover { border-color: var(--paper); }
.accent-bar__btn[aria-pressed="true"] { background: var(--pick); border-color: var(--pick); color: var(--ink); }
.accent-bar__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
html.has-accent-bar body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
html.has-accent-bar { scroll-padding-bottom: 72px; }


/* ===== 23. Print =====
   Ink on white, everything shown, nothing that only works on a screen. */
@media print {
  html, body { background: #fff !important; }
  * { color: #000 !important; background-color: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  .site-header::after, .page-hero::before { display: none !important; }
  .skip, .nav, .hdr-cta, .menu-toggle, .menu-nojs, .mmenu, .viewer, .accent-bar, .takeout__toggle, .viewer-nav, .ftr-talk .btn { display: none !important; }
  html.has-accent-bar body { padding-bottom: 0; }
  .sec, .page-hero, .cta-band, .site-footer { padding-top: 24pt; padding-bottom: 24pt; border-color: #999 !important; }
  .card, .panel, .frame, .cells, .cells > *, .form-panel, .chip, .appshot { border-color: #777 !important; }
  .card, .panel, .frame, .shot, figure, li, h2, h3 { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a { text-decoration: underline; }
  /* Drawings made for the ink sections have paper-coloured lines: ink on white instead. */
  svg [stroke="#F2EFE7" i] { stroke: #000 !important; }
  svg [fill="#F2EFE7" i] { fill: #000 !important; }
}
