/* site.css */
/* lukekevinmclaughlin.com — profile of Luke McLaughlin.
   Design schema follows the IndexHalo white system: Geist, #101828 ink,
   #174bff action blue, flat 1px panels with 12px radius. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-ext-var.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-var.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-subtle: #f7f8fa;
  --surface-muted: #f2f4f7;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  --faint: #667085;
  --action: #174bff;
  --action-hover: #1238bf;
  --teal: #007f73;
  --violet: #6d28d9;
  --amber: #9a3412;
  --line: #e4e7ec;
  --line-soft: #f2f4f7;
  --line-control: #d0d5dd;
  --radius-1: 8px;
  --radius-2: 12px;
  --radius-3: 16px;
  --shadow-1: 0 1px 3px rgba(16,24,40,.05);
  --shadow-2: 0 6px 20px rgba(16,24,40,.07);
  --shadow-3: 0 22px 64px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.04);
  --sans: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --page: min(1180px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: .2em; }
a:hover { color: var(--action-hover); }
::selection { background: #e4e7ec; color: #101828; }
:focus-visible { outline: 3px solid rgba(23,75,255,.5); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--action); color: #fff; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .14s ease; }
.skip-link:focus { top: 16px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { width: var(--page); margin: 0 auto; height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--sans); letter-spacing: -.04em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--action); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--sans); letter-spacing: -.02em; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font: 500 14px/1.5 var(--sans); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--action); }
.menu-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; border: 1px solid var(--line-control); border-radius: var(--radius-1); background: #fff; color: var(--ink); font: 600 14px var(--sans); padding: 0 14px; cursor: pointer; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s, box-shadow .16s; text-align: center; }
.button.primary, .button-primary { background: var(--action); border-color: var(--action); color: #fff; }
.button.primary:hover, .button-primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; box-shadow: 0 4px 12px rgba(23,75,255,.12); }
.button.secondary, .button-secondary { background: #fff; border-color: var(--line-control); color: var(--ink); }
.button.secondary:hover, .button-secondary:hover { background: var(--surface-subtle); border-color: var(--action); color: var(--ink); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.button .size { font-weight: 450; opacity: .8; font-size: 13px; }
.text-link { font: 600 14px/1.6 var(--sans); color: var(--action); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.text-link:hover { text-decoration: underline; }

/* Layout */
.section { width: var(--page); margin: 0 auto; padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--action); font: 600 14px/1.5 var(--sans); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2, h2.display { font-size: clamp(30px, 3.1vw, 42px); font-weight: 620; margin: 0 0 16px; letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 580px; }
.lead strong { color: var(--ink); font-weight: 550; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--faint); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(40px, 4.1vw, 60px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 0 0 24px; max-width: 640px; }
.hero h1 span { display: block; color: var(--action); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; font: 550 13px/1.5 var(--sans); color: var(--ink); }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.shelf { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; padding: 34px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface-subtle); box-shadow: var(--shadow-3); }
.shelf a { display: block; border-radius: 6px; transition: transform .2s ease; }
.shelf a:hover { transform: translateY(-4px); }
.shelf img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(16,24,40,.12); background: #fff; aspect-ratio: 5 / 7; object-fit: contain; width: 100%; }
.shelf figcaption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font: 500 12px/1.5 var(--sans); color: var(--faint); }
.shelf figcaption strong { color: var(--teal); font-weight: 600; }

/* Book cards */
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.book-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; min-width: 0; }
.book-card .cover { border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow-2); width: 100%; background: #fff; }
.book-card h3 { font-size: 21px; font-weight: 620; margin: 2px 0 8px; letter-spacing: -.035em; }
.book-card h3 a { color: inherit; text-decoration: none; }
.book-card h3 a:hover { color: var(--action); }
.book-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.book-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--surface-muted); color: var(--muted); font: 500 12px/1.4 var(--sans); white-space: nowrap; }
.badge.free { background: #fff; border: 1px solid #b7e1dc; color: var(--teal); font-weight: 600; }
.book-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kicker { font: 600 12px/1.5 var(--sans); color: var(--faint); letter-spacing: .02em; text-transform: uppercase; }

/* Panels and feature grid */
.panel { border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; padding: 28px; min-width: 0; }
.panel.subtle { background: var(--surface-subtle); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-grid .panel h3 { font-size: 19px; font-weight: 620; margin: 0 0 10px; }
.feature-grid .panel p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.icon-chip { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-subtle); color: var(--action); font: 600 18px/1 var(--sans); margin-bottom: 18px; border: 1px solid var(--line); }
.icon-chip.teal { color: var(--teal); } .icon-chip.violet { color: var(--violet); }

/* Author band */
.author-band { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px; background: var(--surface-subtle); border-radius: var(--radius-3); border: 1px solid var(--line); }
.author-band img, .author-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-2); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.author-band h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 620; margin: 0 0 14px; letter-spacing: -.04em; }
.author-band p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 12px; max-width: 640px; }
.author-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Book detail */
.book-hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 56px; }
.book-hero .cover { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-3); background: #fff; width: 100%; }
.book-hero h1 { font-size: clamp(36px, 3.6vw, 52px); font-weight: 650; letter-spacing: -.05em; margin: 0 0 12px; }
.book-hero .subtitle { font-size: 19px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.5; }
.download-box { margin: 28px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); }
.download-box .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.download-box p { font-size: 14px; color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 0; border: 1px solid var(--line); border-radius: 9px; }
.spec > div { padding: 14px 16px; min-width: 0; }
.spec > div + div { border-left: 1px solid var(--line); }
.spec dt { font: 500 12px/1.4 var(--sans); color: var(--faint); }
.spec dd { margin: 4px 0 0; font: 650 22px/1.2 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.contents { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; counter-reset: ch; }
.contents li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; color: var(--ink-2); }
.contents li span { font: 600 12px/2 var(--sans); color: var(--action); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); margin: 0 0 22px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--action); }
.prose { max-width: 720px; }
.prose p { margin: 0 0 16px; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.prose p strong { color: var(--ink); }
.prose h2 { margin: 36px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
/* Block layout with an absolutely placed mark, so links inside a sentence stay inline. */
.checklist li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 15.5px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; color: var(--teal); font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; text-decoration: none; color: inherit; transition: border-color .16s, box-shadow .16s; }
.post-card:hover { border-color: var(--action); box-shadow: var(--shadow-2); color: inherit; }
.post-card h2, .post-card h3 { font-size: 21px; font-weight: 620; letter-spacing: -.035em; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font: 500 13px/1.5 var(--sans); color: var(--faint); }
.post-meta .tag { color: var(--action); font-weight: 600; }
.article { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 88px; }
.article header h1 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 650; letter-spacing: -.05em; margin: 12px 0 16px; }
.article .post-lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }
.article .byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.article .byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { font-size: 27px; font-weight: 620; letter-spacing: -.04em; margin-top: 44px; color: var(--ink); }
.article-body h3 { font-size: 20px; font-weight: 620; margin-top: 30px; color: var(--ink); }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--action); color: var(--ink); }
.article-body pre { overflow-x: auto; padding: 16px; border-radius: 9px; background: var(--surface-subtle); border: 1px solid var(--line); font: 13.5px/1.6 var(--mono); }
.article-body code { font-family: var(--mono); font-size: .9em; }
.article-body img { border-radius: 8px; }
.ash-answer { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--action); border-radius: 9px; background: var(--surface-subtle); }
.ash-answer > span { display: block; font: 600 12px/1.5 var(--sans); color: var(--action); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ash-answer p { margin: 0; color: var(--ink); }
.ash-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.ash-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.ash-table-wrap th { text-align: left; background: var(--surface-subtle); font: 600 13px/1.5 var(--sans); color: var(--muted); }
.ash-table-wrap th, .ash-table-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ash-table-wrap tr:last-child td { border-bottom: 0; }
.ash-sources, .ash-article-faq { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ash-sources h2, .ash-article-faq h2 { margin-top: 0; font-size: 22px; }
.ash-sources li { font-size: 15px; }
.ash-sources p { font-size: 14px; color: var(--faint); }
.book-faq-list { display: grid; gap: 10px; margin-top: 16px; }
.book-faq-item { border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.book-faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--ink); font-size: 16px; list-style-position: inside; }
.book-faq-item > *:not(summary) { padding: 0 16px 14px; margin: 0; font-size: 15.5px; }
.ash-author, .post-cta { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); margin-top: 36px; }
.ash-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.ash-author strong { display: block; color: var(--ink); }
.ash-author strong a { color: inherit; text-decoration: none; }
.ash-author p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.post-cta { flex-direction: column; gap: 8px; border-color: #c7d2fe; background: #fff; }
.post-cta strong { font-size: 19px; color: var(--ink); letter-spacing: -.03em; }
.post-cta p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-cta .button { margin-top: 8px; }
.related { display: grid; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related span { font: 600 12px/1.5 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.related a { font-weight: 550; text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.faq summary { cursor: pointer; padding: 18px 20px; font: 600 16.5px/1.5 var(--sans); color: var(--ink); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Callout */
.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding: 36px 40px; border-radius: var(--radius-3); background: var(--ink); color: #fff; }
.callout h2 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); font-weight: 620; letter-spacing: -.04em; margin: 0 0 8px; }
.callout p { color: #d0d5dd; max-width: 620px; }
.callout .button.secondary { background: transparent; color: #fff; border-color: #475467; }
.callout .button.secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.callout .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-subtle); }
.site-footer .inner { width: var(--page); margin: 0 auto; padding: 48px 0 36px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h3 { font: 600 13px/1.5 var(--sans); color: var(--ink); letter-spacing: 0; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--action); }
.site-footer p { color: var(--muted); font-size: 14px; max-width: 340px; margin-top: 12px; }
.site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.site-footer .legal a { font-size: 13px; }

/* Consent */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); box-shadow: var(--shadow-3); font-size: 14px; color: var(--muted); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 360px; }
.consent .actions { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .hero, .book-hero, .two-col { grid-template-columns: 1fr; gap: 44px; }
  .book-hero .cover { max-width: 300px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .book-grid, .post-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --page: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .hero { padding-top: 44px; padding-bottom: 60px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px; }
  .book-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .author-band { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
  .author-band img { max-width: 200px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec > div:nth-child(3) { border-left: 0; }
  .spec > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contents { columns: 1; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .callout { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .consent { display: none; } }

/* ---- Profile additions ---- */
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.4 var(--sans); color: var(--teal); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 20px; margin: 0; list-style: none; }
.chip { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; border: 1px solid var(--line); border-radius: 10px; max-width: 600px; }
.stats > div { padding: 14px 16px; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 650 25px/1.15 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.stats span { display: block; margin-top: 4px; font: 500 12px/1.4 var(--sans); color: var(--faint); }
.timeline { display: grid; gap: 18px; }
.role { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.role .when { font: 600 13px/1.5 var(--sans); color: var(--faint); }
.role .when strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.role h3 { font-size: 20px; font-weight: 620; margin: 0 0 4px; }
.role .org { color: var(--action); font-weight: 550; font-size: 14.5px; margin-bottom: 12px; }
.role ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.role ul strong { color: var(--ink); }
.role.compact { padding: 18px 22px; }
.skills-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.skills-table > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.skills-table > div:nth-child(even) { background: var(--surface-subtle); }
.skills-table > div:last-child { border-bottom: 0; }
.skills-table h3 { font-size: 15px; font-weight: 620; letter-spacing: -.01em; margin: 0; }
.skills-table p { font-size: 15px; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.form [hidden] { display: none; }
.field label { font: 600 13px/1.5 var(--sans); color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-control); border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.form-status { min-height: 22px; font-size: 14px; color: var(--muted); }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: var(--teal); font-weight: 550; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); font-size: 14.5px; color: var(--muted); }
.notice strong { color: var(--ink); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .role, .skills-table > div { grid-template-columns: 1fr; gap: 10px; }
  .form .row { grid-template-columns: 1fr; }
}

/* Software portfolio */
#ai-projects { scroll-margin-top: 72px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-3); overflow: hidden; color: var(--ink); text-decoration: none; }
.project-card:hover { border-color: var(--action); }
.ai-station { --frame: #fff; }
.ai-station-web-app { --frame: #fff; }
.index-ai-academy { --frame: #fff; }
.project-thumb { background: var(--frame); aspect-ratio: 1.5; display: grid; place-items: center; padding: 5%; }
.project-thumb img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 4px 20px #17213520; }
.project-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.project-card h3 { margin: 6px 0 10px; font-size: 23px; letter-spacing: -.035em; }
.project-card p { color: var(--muted); line-height: 1.65; }
.study-link { margin-top: auto; padding-top: 20px; color: var(--action); font-weight: 600; }
.consulting-offer { scroll-margin-top:80px; display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:clamp(20px,5vw,72px); margin-top:56px; padding:clamp(24px,4vw,48px); border:1px solid var(--line); border-top:3px solid var(--action); border-radius:8px; background:white; }
.consulting-offer h2 { margin:0; max-width:20ch; font-size:clamp(28px,3.4vw,44px); line-height:1.08; letter-spacing:-.04em; text-wrap:balance; }
.consulting-offer p { margin:0 0 20px; line-height:1.6; color:var(--muted); }
.consulting-offer .consulting-invitation { margin:12px 0 0; color:var(--ink); font-weight:600; }
@media(max-width:760px){.consulting-offer{grid-template-columns:1fr}}

.project-study { max-width: 1180px; padding-top: 44px; }
.project-study header { max-width: 920px; margin: 30px 0 24px; }
.project-study h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.06em; line-height: 1.05; margin: 10px 0 18px; }
.study-contents ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.study-contents a { font-size: 14px; text-underline-offset: 3px; }
.feature-chapter { scroll-margin-top: 88px; border-top: 1px solid var(--line); padding-top: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
.chapter-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 32px; margin-bottom: 24px; }
.feature-chapter h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.045em; line-height: 1.1; margin: 0; }
.feature-chapter p { line-height: 1.65; color: var(--muted); margin: 0; }
.feature-chapter .chapter-detail, .build-note p { max-width: 85ch; margin: 20px 0 0; }
.build-note h2 { max-width: 26ch; margin-top: 8px; }
.feature-gallery { border: 1px solid var(--line); border-radius: var(--radius-3); overflow: hidden; }
.screen-picker:not([hidden]) { display: flex; flex-wrap: wrap; padding: 9px; gap: 4px; }
.screen-picker button, .viewer-bar button { cursor: pointer; font: 600 14px/1.3 var(--sans); border-radius: 6px; border: 1px solid transparent; padding: 10px 14px; min-height: 44px; }
.screen-picker button { background: transparent; color: var(--muted); }
.screen-picker button:hover { background: var(--frame); color: var(--ink); }
.screen-picker button[aria-pressed="true"] { background: var(--ink); color: white; }
.feature-gallery figure { margin: 0; }
.feature-gallery figure[hidden] { display: none; }
.study-image { display: block; padding: clamp(4px, 1.4vw, 18px); background: var(--frame); cursor: zoom-in; }
.study-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ai-station-web-app .study-image img { width: auto; max-height: 76vh; max-height: 76svh; margin-inline: auto; }
.feature-gallery figcaption { padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.feature-gallery figcaption p { font-size: 15px; max-width: 85ch; margin-top: 3px; }
.feature-gallery .enlarge { white-space: nowrap; font-size: 14px; }
.screen-viewer { position: fixed; padding: 0; width: 96vw; max-width: 1800px; height: 94vh; height: 94dvh; max-height: 100%; border: 0; border-radius: 10px; background: #172334; color: white; }
.screen-viewer[open] { display: flex; flex-direction: column; }
.screen-viewer::backdrop { background: rgb(8 15 26 / .85); }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.viewer-bar strong { margin-right: auto; }
.viewer-bar button { background: #263850; color: white; border-color: #6e8199; }
.viewer-bar button[aria-pressed="true"] { background: white; color: #172334; }
.viewer-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.viewer-scroll img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-scroll.actual-size img { width: auto; height: auto; max-width: none; max-height: none; }
@media (max-width: 760px) {
  .chapter-intro { display: block; }
  .chapter-intro p { margin-top: 14px; }
  .feature-gallery figcaption { display: block; padding: 14px; }
  .enlarge { display: inline-block; padding: 10px 0 0; }
  .viewer-bar button { padding: 8px; }
}
.enquiry { max-width: 700px; scroll-margin-top: 88px; }
.enquiry .form { margin-top: 28px; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0 4px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--action); }
}

.product-profile { scroll-margin-top:84px; margin:40px 0 56px; border-top:3px solid var(--ink); padding-top:28px; }
.profile-lead { display:grid; grid-template-columns:minmax(0, 0.85fr) minmax(0, 1.25fr); gap:clamp(16px,4vw,52px); align-items:center; }
.profile-lead h2,.profile-lead h3 { font-size:clamp(30px,4.3vw,58px); line-height:1.02; letter-spacing:-.055em; margin:9px 0 16px; }
.profile-lead p,.product-capabilities p { line-height:1.6; color:var(--muted); }
.profile-lead .profile-headline { font-weight:650; font-size:1.2rem; color:var(--ink); }
.profile-scenes { min-width:0; }
.profile-scenes figure { margin:0; min-width:0; }
.profile-scenes a { display:block; }
.profile-scenes img { display:block; width:100%; height:auto; border:1px solid #ddd; border-radius:3px; }
.profile-scenes figcaption { margin:8px 0; color:var(--muted); font-size:.8rem; }
.profile-scenes figcaption strong { display:block; color:var(--ink); font-size:1rem; }
.primary-shot img { max-height:510px; width:auto; max-width:100%; margin-inline:auto; }
.primary-shot figcaption { text-align:center; }
.supporting-shots { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:20px; margin-top:32px; }
.supporting-shots img { height:clamp(115px,13vw,185px); object-fit:contain; border:0; object-position:bottom left; }
.profile-lead h3 a { color:inherit; text-decoration:none; }
.profile-lead h3 a:hover { text-decoration:underline; }
.case-link { display:inline-block; margin-top:12px; font-weight:650; }
.library-item .screen-caption { display:block; padding:6px 0 0; color:var(--muted); line-height:1.5; font-size:.92rem; }
.viewer-caption { margin:0; padding:5px 12px 12px; line-height:1.4; }
@media(max-width:760px){.supporting-shots{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.primary-shot img{max-height:450px}}
.profile-example { font-size:1.12rem; max-width:80ch; line-height:1.6; margin:24px 0; }
.product-capabilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 32px; }
.product-capabilities > div { border-top:1px solid var(--line); padding:15px 0 0; }
.product-capabilities h4 { margin:0 0 5px; font-size:1.08rem; }
.product-capabilities p { margin:0; }
.profile-links,.library-controls { display:flex; flex-wrap:wrap; align-items:end; gap:16px 24px; margin:20px 0; }
.profile-links a { font-weight:650; }
.library-controls label { display:grid; font-weight:600; gap:4px; }
.library-controls input,.library-controls select { padding:10px; border:1px solid var(--line); border-radius:6px; background:white; font:inherit; color:var(--ink); }
.screen-library details { border-top:1px solid var(--line); }
.screen-library summary { cursor:pointer; padding:16px 4px; font-weight:650; }
.screen-library summary span { float:right; font-variant-numeric:tabular-nums; color:var(--muted); }
.library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr)); gap:16px; padding-bottom:20px; }
.library-item { display:grid; grid-template-rows:auto 1fr; text-decoration:none; color:var(--ink); border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.library-item:hover { border-color:var(--action); }
.library-item img { width:100%; height:155px; object-fit:contain; background:var(--frame); }
.library-item span { padding:10px 12px; }
.library-item small,.library-item strong { display:block; }
.library-item small { color:var(--muted); }
.library-item[hidden],.library-controls[hidden] { display:none; }
@media(max-width:760px){.profile-lead,.product-capabilities{grid-template-columns:1fr}.viewer-bar{flex-wrap:wrap}.viewer-bar strong{width:100%}}
.screen-library .area-note { max-width: 80ch; margin: 0 0 16px; }

.ai-station-web-app .supporting-shots img { height:clamp(185px,24vw,300px); }

.opportunities { scroll-margin-top:76px; }
.opportunities-intro { max-width:76ch; margin-bottom:36px; }
.role-example { margin:10px 0 0; }
.opportunities h2 { margin:0 0 18px; font-size:clamp(30px,3.1vw,44px); line-height:1.08; letter-spacing:-.045em; text-wrap:balance; }
.opportunities-intro p,.opportunities-list dd { margin:0; color:var(--muted); line-height:1.65; }
.opportunities-actions { margin-top:22px; display:flex; gap:12px 18px; align-items:center; flex-wrap:wrap; }
.opportunities-list { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 30px; }
.opportunities-list > div { border-top:1px solid var(--line); padding-top:14px; }
.opportunities-list dt { margin-bottom:8px; font-weight:650; font-size:1.14rem; line-height:1.25; letter-spacing:-.025em; }
@media(max-width:950px){.opportunities{grid-template-columns:1fr}.opportunities-intro{max-width:66ch}}
@media(max-width:580px){.opportunities-list{grid-template-columns:1fr;gap:18px}}

/* Real product videos and screens (scripts/media.mjs). */
.video-block { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: #fff; min-width: 0; }
.video-frame { background: #0b0f17; }
.video-frame video { display: block; width: 100%; height: auto; background: #0b0f17; }
.video-block figcaption { display: grid; gap: 4px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.video-block figcaption strong { color: var(--ink); font-size: 15px; }
.video-len { font: 600 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--action, #175cd3); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 18px; }
.video-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.video-more { margin: 10px 2px 0; }
.real-media .case-shots, .real-media .video-block.wide { margin-top: 18px; }
.real-media .case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.real-media .case-shots figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--surface-subtle); }
.real-media .case-shots img { width: 100%; height: auto; display: block; }
.real-media .case-shots figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .video-grid.two, .real-media .case-shots { grid-template-columns: 1fr; } }

/* Core skills with the result that proves each one (skillProof in render-pages.mjs). */
.skill-proof { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 600px; background: #fff; }
.skill-proof.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin-top: 34px; }
.skill-proof li { min-width: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.skill-proof a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.skill-proof a:hover { background: var(--surface-subtle); }
.skill-proof a:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.skill-proof .skill-name { font: 650 12px/1.35 var(--sans); letter-spacing: .02em; text-transform: uppercase; color: var(--action); }
.skill-proof strong { font: 650 26px/1.15 var(--sans); letter-spacing: -.04em; color: var(--ink); margin-top: 4px; }
.skill-proof .skill-detail { font: 500 13px/1.45 var(--sans); color: var(--muted); }
@media (max-width: 900px) { .skill-proof.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .skill-proof, .skill-proof.wide { grid-template-columns: 1fr; } }
.skill-proof-link { margin: 12px 2px 0; font-size: 14.5px; font-weight: 600; }

.profile-stage {
  --profile-edge: 52px;
  display: grid;
  grid-template-columns: var(--profile-edge) minmax(0, 1fr) var(--profile-edge);
  width: 100%;
  max-width: 560px;
  justify-self: center;
}
.profile-stage .profile-card {
  grid-area: 1 / 2;
  align-self: stretch;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 410px;
  aspect-ratio: 1;
  gap: 6px;
  padding: 24px 46px 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-subtle);
  box-shadow: var(--shadow-3);
  text-align: center;
}
.profile-stage .profile-monogram {
  width: clamp(64px, 8vw, 116px);
  height: clamp(64px, 8vw, 116px);
  margin-bottom: 12px;
  border-radius: 23%;
  font-size: clamp(27px, 4vw, 52px);
}
.profile-stage .profile-card strong {
  color: var(--ink);
  font: 650 clamp(19px, 2vw, 28px)/1.2 var(--sans);
  letter-spacing: -.04em;
}
.profile-stage .profile-card p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-stage .status { margin: 8px 0 0; }
/* Reserve clearance for the skill row even when a product name wraps. */
.product-rail {
  grid-row: 1;
  align-self: start;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 28px 0 46px;
  list-style: none;
}
.product-rail.left { grid-column: 1 / 3; justify-self: start; }
.product-rail.right { grid-column: 2 / 4; justify-self: end; }
.product-rail a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 96px; min-height: 104px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,40,.12); text-decoration: none; text-align: center; transition: transform .15s, box-shadow .15s; }
.product-rail a:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,24,40,.18); }
.product-rail a:focus-visible, .profile-card a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.product-rail img { width: 48px; height: 48px; border-radius: 11px; }
.product-rail span { font: 600 11.5px/1.25 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.skill-tiles { grid-area: 2 / 1 / 3 / -1; position: relative; z-index: 2; list-style: none; margin: -30px 18px 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.skill-tiles li { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(16,24,40,.10); text-align: center; min-width: 0; }
.skill-tiles svg { color: var(--action); }
.skill-tiles strong { font: 650 11.5px/1.2 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.skill-tiles span { font: 500 10px/1.3 var(--sans); color: var(--faint); }
@media (max-width: 1100px) { .profile-stage { --profile-edge: 44px; } .profile-stage .profile-card { min-height: 380px; } .product-rail a { width: 84px; min-height: 96px; } .product-rail img { width: 40px; height: 40px; } .skill-tiles { margin-left: 0; margin-right: 0; gap: 6px; } .skill-tiles li { padding: 10px 4px; } .skill-tiles strong { font-size: 10.5px; } .skill-tiles span { display: none; } }
@media (max-width: 620px) {
  .profile-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-stage .profile-card { grid-column: 1 / -1; aspect-ratio: auto; min-height: 0; padding: 26px 18px; }
  .product-rail { grid-row: 2; align-self: stretch; gap: 10px; padding: 0; }
  .product-rail.left { grid-column: 1; justify-self: stretch; }
  .product-rail.right { grid-column: 2; justify-self: stretch; }
  .product-rail a { width: auto; min-height: 58px; height: 100%; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px; text-align: left; }
  .product-rail li { flex: 1; }
  .product-rail span { overflow-wrap: anywhere; }
  .product-rail img { flex: none; width: 36px; height: 36px; border-radius: 9px; }
  .skill-tiles { grid-area: 3 / 1 / 4 / -1; margin: 0; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-tiles li { padding: 12px 8px; }
  .skill-tiles strong { font-size: 12px; }
  .skill-tiles span { display: block; }
  .skill-tiles li:last-child { grid-column: 1 / -1; }
}

.enquiry-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.enquiry-person img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.enquiry-person p { margin: 0; }
.enquiry-person span { display: block; color: var(--muted); font-size: .9rem; }

/* work.css */
/* Services, hire, skills, work gallery, case studies and demos. Shares the tokens in site.css. */

.page-intro { padding-bottom: 48px; }
.page-intro h1 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 0 0 18px; max-width: 900px; text-wrap: balance; }
.page-intro .lead { max-width: 760px; }
.page-intro .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font: 550 13px/1.5 var(--sans); color: var(--teal); }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-control); border-radius: 9px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); }
.field select:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.hire-points { margin-top: 26px; }
.hire-hero h1 span { font-size: .82em; }

/* Home service index */
.service-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-index a { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.service-index a:hover { border-color: var(--action); box-shadow: 0 6px 20px rgba(16,24,40,.06); }
.service-index strong { font: 620 16.5px/1.3 var(--sans); letter-spacing: -.02em; }
.service-index span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.service-index em { font: 600 12px/1.4 var(--sans); font-style: normal; color: var(--action); }

/* Services */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.offer-card { display: grid; align-content: start; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; scroll-margin-top: 90px; }
.offer-card:target { border-color: var(--action); box-shadow: 0 0 0 3px rgba(23,75,255,.12); }
.offer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.offer-top h3 { font-size: 21px; font-weight: 640; letter-spacing: -.03em; margin: 0; }
.offer-length { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--surface-muted); font: 600 12px/1.4 var(--sans); color: var(--muted); }
.offer-for { font: 550 14.5px/1.55 var(--sans); color: var(--ink-2); }
.offer-card > p:not(.offer-for):not(.offer-proof) { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.offer-card .checklist { gap: 8px; }
.offer-card .checklist li { font-size: 14.5px; }
.offer-proof { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.offer-proof span { font: 600 12px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-right: 6px; }
.offer-proof a { color: var(--action); text-decoration: none; font-weight: 550; }
.offer-proof a:hover { text-decoration: underline; }

/* Engagements */
.engagements { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.engagement { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); display: grid; align-content: start; gap: 10px; }
.engagement h3 { font-size: 18px; font-weight: 640; letter-spacing: -.025em; margin: 0; }
.engagement p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.engagement .engagement-line { color: var(--ink-2); font-weight: 550; }
.engagement-best { padding-top: 10px; border-top: 1px solid var(--line); }
.engagement-best strong { display: block; font: 600 11.5px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }

/* Process */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: #fff; }
.process-steps li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps li:nth-child(3n) { border-right: 0; }
.process-steps li:nth-last-child(-n+3) { border-bottom: 0; }
.step-no { font: 650 13px/1 var(--mono); color: var(--action); }
.process-steps h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.process-steps p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* Skills */
.skill-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skill-area { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.skill-area h3 { margin: 0 0 14px; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.skill-area .chips { padding: 0; margin-bottom: 14px; }
.stack-matrix { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-2); }
.stack-matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stack-matrix th, .stack-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.stack-matrix th { background: var(--surface-subtle); font: 600 12.5px/1.5 var(--sans); color: var(--muted); }
.stack-matrix td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.stack-matrix td a:hover { color: var(--action); }

/* Work gallery */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.work-filters button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-control); border-radius: 999px; background: #fff; color: var(--ink-2); font: 550 14px/1.3 var(--sans); cursor: pointer; }
.work-filters button span { color: var(--faint); margin-left: 4px; font-weight: 500; }
.work-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-filters button[aria-pressed="true"] span { color: #d0d5dd; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; overflow: hidden; min-width: 0; }
.work-card[hidden] { display: none; }
.work-card .work-media { aspect-ratio: 16 / 10; background: var(--surface-subtle); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.work-card .work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card .work-media .monogram { font: 700 34px/1 var(--sans); letter-spacing: -.05em; color: var(--action); opacity: .85; }
.work-body { padding: 20px; display: grid; align-content: start; gap: 10px; }
.work-body h3 { margin: 0; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.work-body h3 a { color: inherit; text-decoration: none; }
.work-body h3 a:hover { color: var(--action); }
.work-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.work-meta .tag { padding: 3px 8px; border-radius: 6px; background: var(--surface-muted); font: 550 12px/1.4 var(--sans); color: var(--muted); }
.work-meta .tag.ai { background: #eef2ff; color: var(--action); }
.work-meta .tag.status { background: #ecfdf3; color: #067647; }
.work-meta .tag.status.dev { background: #fff6ed; color: var(--amber); }
.work-body ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.work-body .text-link { min-height: 0; }

.featured-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Case studies */
.case-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.case-hero h1 { font-size: clamp(36px, 3.8vw, 54px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 0 0 18px; }
.case-hero figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--surface-subtle); }
.case-hero figure img { width: 100%; height: auto; display: block; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-2); margin: 28px 0 0; }
.case-facts > div { padding: 14px 16px; min-width: 0; }
.case-facts > div + div { border-left: 1px solid var(--line); }
.case-facts dt { font: 500 12px/1.4 var(--sans); color: var(--faint); }
.case-facts dd { margin: 4px 0 0; font: 620 15px/1.35 var(--sans); color: var(--ink); }
.case-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
.case-section > h2 { font-size: 26px; font-weight: 630; letter-spacing: -.04em; margin: 0; position: sticky; top: 96px; align-self: start; }
.case-section .prose p + p { margin-top: 14px; }
.case-section .prose p, .case-section li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.case-list li { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.case-list li strong { display: block; color: var(--ink); margin-bottom: 4px; font-weight: 620; }
.case-list li { font-size: 15px !important; color: var(--muted) !important; }
.arch { display: grid; gap: 12px; }
.arch-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.arch-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--muted); }
.arch-box strong { display: block; color: var(--ink); font-weight: 620; font-size: 14.5px; margin-bottom: 2px; }
.arch-box strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--dot, #98a2b3); }
.arch-row.layer-ui { --dot: var(--action); }
.arch-row.layer-core { --dot: var(--violet); }
.arch-row.layer-models { --dot: var(--teal); }
.arch-row.layer-data { --dot: #98a2b3; }
.arch-label { font: 600 11.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-top: 6px; }
.case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-shots figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--surface-subtle); }
.case-shots img { width: 100%; height: auto; display: block; }
.case-shots figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.case-cta { padding: 28px; border-radius: var(--radius-2); background: var(--surface-subtle); border: 1px solid var(--line); }
.case-cta h3 { margin: 0 0 12px; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.case-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Demos */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.demo-card { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.demo-card h3 { margin: 0; font-size: 21px; font-weight: 640; letter-spacing: -.03em; }
.demo-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.demo-card .button { justify-self: start; }

@media (max-width: 1100px) {
  .engagements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .work-grid, .featured-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero { grid-template-columns: 1fr; }
  .case-section { grid-template-columns: 1fr; gap: 18px; }
  .case-section > h2 { position: static; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .process-steps li:nth-child(2n) { border-right: 0 !important; }
  .process-steps li:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 760px) {
  .offer-grid, .skill-areas, .demo-grid, .case-list, .case-shots { grid-template-columns: 1fr; }
  .engagements { grid-template-columns: 1fr; }
  .work-grid, .featured-work, .service-index { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .process-steps li:last-child { border-bottom: 0 !important; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts > div:nth-child(3) { border-left: 0; }
  .case-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .arch-row { grid-auto-flow: row; }
  .offer-top { flex-direction: column; gap: 8px; }
}

/* Demo apps */
.demo-note { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); font-size: 14px; color: var(--muted); max-width: 760px; }
.demo-app { border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; padding: 22px; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.demo-app h4 { margin: 0 0 10px; font: 650 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }
.demo-app h5 { margin: 12px 0 6px; font: 650 13px/1.4 var(--sans); color: var(--ink); }
.demo-app textarea, .demo-app input[type=text], .demo-app select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 9px; font: 400 15px/1.5 var(--sans); color: var(--ink); background: #fff; }
.demo-app select { width: auto; padding: 6px 10px; }
.demo-app textarea:focus, .demo-app input:focus, .demo-app select:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.demo-label { display: block; margin-bottom: 8px; font: 600 14px/1.4 var(--sans); color: var(--ink); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip-btn { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-control); border-radius: 999px; background: var(--surface-subtle); color: var(--ink-2); font: 500 13.5px/1.3 var(--sans); cursor: pointer; text-align: left; }
.chip-btn:hover { border-color: var(--action); color: var(--action); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-output { margin-top: 16px; min-height: 40px; }
.demo-output:empty { display: none; }
.demo-badge { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.demo-badge.live { background: #ecfdf3; color: #067647; }
.demo-badge.sample { background: #fff6ed; color: var(--amber); }
.demo-receipt { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font: 500 12.5px/1.6 var(--mono); color: var(--faint); }
.demo-busy { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.demo-busy i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-control); border-top-color: var(--action); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-busy i { animation: none; } }
.demo-empty { padding: 14px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); font-size: 14px; }
.approve-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.approve-row p { margin: 0; }

.crm-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.crm-totals > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 150px; }
.crm-totals span { display: block; font-size: 12px; color: var(--faint); }
.crm-totals strong { font: 650 19px/1.2 var(--sans); letter-spacing: -.03em; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.crm-col { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; align-content: start; gap: 8px; min-height: 140px; }
.crm-col.over { border-color: var(--action); background: #eef2ff; }
.crm-col header { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.crm-col header span { color: var(--faint); font-size: 12px; }
.crm-card { display: grid; gap: 3px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.crm-card strong { font-size: 13.5px; }
.crm-card span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.crm-card em { font-style: normal; font-size: 12px; color: var(--action); font-weight: 600; }
.crm-card.selected { border-color: var(--action); box-shadow: 0 0 0 2px rgba(23,75,255,.15); }
.crm-detail { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.crm-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.crm-head h3 { margin: 4px 0; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.crm-meta { display: grid; gap: 6px; justify-items: end; font-size: 13.5px; color: var(--muted); }
.crm-meta strong { font: 650 22px/1.2 var(--sans); color: var(--ink); }
.crm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.crm-notes { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 16px; }
.crm-activity { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.crm-activity time { font-weight: 600; color: var(--ink); }
.score-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
.score { display: grid; place-items: center; align-content: center; height: 110px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--line); }
.score strong { font: 700 38px/1 var(--sans); letter-spacing: -.05em; }
.score.hot strong { color: #c4320a; } .score.warm strong { color: var(--amber); } .score.cool strong, .score.cold strong { color: var(--action); }
.demo-output ul, .demo-output ol { padding-left: 18px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; margin: 0; }
.demo-output p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0; }
.out-headline { font-weight: 650; color: var(--ink) !important; font-size: 16px !important; }
.out-actions li { display: grid; gap: 2px; }
.out-actions span { font-size: 13px; color: var(--faint); }

.harness { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.harness-side { border-right: 1px solid var(--line); padding-right: 20px; }
.harness-side h4 + ul { margin-bottom: 18px; }
.mini-table { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mini-table li { display: grid; font-size: 13px; }
.mini-table span { color: var(--faint); font-size: 12px; }
.mini-list { padding-left: 18px; font-size: 13px; color: var(--ink-2); margin: 0; }
.harness-main > .button { margin-top: 4px; }
.trace { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 8px !important; }
.trace-say p { white-space: pre-line; margin: 0; padding: 8px 12px; background: #f5f3ff; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.trace-tool details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.trace-tool.failed details { border-color: #fdb022; background: #fffaeb; }
.trace-tool summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 12px; font-size: 13.5px; }
.trace-tool code { font: 600 13px/1.4 var(--mono); color: var(--teal); }
.trace-hint { color: var(--muted); }
.trace-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.trace-io pre { margin: 0; padding: 10px; background: var(--surface-subtle); border-radius: 6px; font: 12px/1.5 var(--mono); overflow-x: auto; max-height: 260px; }
.quote-doc { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.quote-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-doc th, .quote-doc td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.quote-doc th:not(:first-child), .quote-doc td:not(:first-child) { text-align: right; }
.quote-doc tr.sum td { font-weight: 600; }
.quote-doc tr.sum:last-child td { font-size: 15.5px; border-bottom: 0; }

.qa { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.qa-docs details { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.qa-docs summary { cursor: pointer; font: 600 14px/1.5 var(--sans); }
.qa-docs details p { font-size: 13px; color: var(--muted); white-space: pre-line; margin: 8px 0 0; }
.qa-form { display: flex; gap: 8px; }
.qa-answer { font-size: 16px !important; line-height: 1.7; color: var(--ink) !important; }
.qa-answer sup a { color: var(--action); text-decoration: none; font-weight: 600; margin-left: 1px; }
.qa-sources li { font-size: 13.5px; }
.qa-sources blockquote { margin: 4px 0 8px; padding: 8px 10px; background: var(--surface-subtle); border-radius: 6px; color: var(--muted); }

.workflow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.workflow-in .button { margin-top: 12px; }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wf-grid section { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.wf-reply { grid-column: 1 / -1; }
.wf-dl { margin: 0; display: grid; gap: 6px; }
.wf-dl dt { font-size: 12px; color: var(--faint); }
.wf-dl dd { margin: 0; font-size: 14px; color: var(--ink); }
.wf-review { margin-top: 10px; padding: 10px 12px; background: #fffaeb; border-radius: 8px; font-size: 13.5px; }

@media (max-width: 980px) {
  .harness, .qa, .workflow, .crm-cols { grid-template-columns: 1fr; }
  .harness-side { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
}
@media (max-width: 760px) {
  .demo-app { padding: 14px; }
  .wf-grid, .trace-io { grid-template-columns: 1fr; }
  .score-card { grid-template-columns: 1fr; }
  .crm-meta { justify-items: start; }
  .crm-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
}

.case-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.case-figures > div { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.case-figures dt { font: 680 30px/1.1 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.case-figures dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.case-hero figure img { max-height: 560px; object-fit: contain; }
@media (max-width: 760px) { .case-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-figures dt { font-size: 24px; } }
.result-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.06); overflow-x: auto; }
.result-panel table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.result-panel th, .result-panel td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: bottom; }
.result-panel th { font: 620 13px/1.3 var(--sans); color: var(--ink); }
.result-panel th span { font-weight: 450; color: var(--faint); font-size: 12px; }
.result-panel td:not(:first-child) { font: 600 14px/1.3 var(--mono); color: #067647; white-space: nowrap; }
.result-panel tr.sum td { border-bottom: 0; font-weight: 700; color: var(--ink); }
.result-panel tr.sum td:not(:first-child) { color: #067647; }
.result-panel tr.cost td { border-bottom: 0; color: var(--muted) !important; font-family: var(--sans) !important; font-weight: 550; white-space: normal; }
.result-panel tr.sum td { border-bottom: 1px solid var(--line-soft); }
.work-stack { font: 500 12.5px/1.5 var(--sans) !important; color: var(--faint) !important; }
@media (max-width: 980px) { .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .case-index { grid-template-columns: 1fr; } }

/* Pitch page */
.pitch-intro h1 { max-width: 980px; }
.harness-diagram { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface-subtle); }
.hd-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hd-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 550 13.5px/1.3 var(--sans); color: var(--ink-2); }
.hd-row.models span { color: var(--teal); }
.hd-core { padding: 18px; border-radius: 12px; background: var(--ink); color: #fff; text-align: center; }
.hd-core strong { font: 650 18px/1.3 var(--sans); }
.hd-core ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; color: #d0d5dd; text-align: left; }
.hd-core li::before { content: "•"; color: #7a9cff; margin-right: 6px; }
.adv-group + .adv-group { margin-top: 34px; }
.adv-group h3 { margin: 0 0 14px; font: 650 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--action); }
.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adv { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; display: grid; align-content: start; gap: 8px; }
.adv h4 { margin: 0; font: 640 16.5px/1.35 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.adv p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.adv-proof { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13.5px !important; color: var(--teal) !important; }
.adv-proof a { color: var(--action); font-weight: 600; text-decoration: none; }
.cost-headline { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 18px; padding: 24px; margin-bottom: 22px; border-radius: var(--radius-3); background: var(--ink); color: #fff; }
.cost-headline span { display: block; font-size: 13.5px; color: #d0d5dd; }
.cost-headline strong { display: block; font: 700 clamp(28px, 3.2vw, 44px)/1.1 var(--sans); letter-spacing: -.05em; margin: 6px 0 2px; }
.cost-headline em { font-style: normal; font-size: 13px; color: #98a2b3; }
.cost-headline .std { color: #fda29b; }
.cost-headline .cus { color: #75e0a7; }
.cost-headline .arrow { font-size: 28px; color: #667085; }
.cost-headline .big-save { padding: 14px 18px; border-radius: 12px; background: rgba(117,224,167,.12); text-align: center; }
.cost-headline .big-save strong { color: #75e0a7; }
.price-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; }
.price-table, .compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.price-table th, .price-table td, .compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; vertical-align: middle; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th, .compare-table thead th { background: var(--surface-subtle); font: 620 12.5px/1.35 var(--sans); color: var(--ink); }
.price-table thead th span { font-weight: 450; color: var(--faint); }
.price-table td strong { display: block; color: var(--ink); font-weight: 620; }
.price-table td:first-child span { font-size: 12.5px; color: var(--faint); }
.price-table td { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.price-table td:first-child { font-family: var(--sans); }
.price-table td.std { color: #b42318; }
.price-table td.cus { color: #067647; font-weight: 650; }
.price-table td.save { color: #067647; font-weight: 700; }
.assumptions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 12px; }
.assumptions > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); }
.assumptions h4 { margin: 0 0 8px; font: 640 15px/1.35 var(--sans); }
.assumptions p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.calc { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.05); }
.calc h3 { margin: 0 0 16px; font: 650 20px/1.3 var(--sans); letter-spacing: -.03em; }
.calc-grid { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 14px; }
.calc label { display: grid; gap: 6px; font: 600 13.5px/1.4 var(--sans); color: var(--ink); }
.calc input, .calc select { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 9px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.calc-out > div { padding: 16px; border-radius: 10px; background: var(--surface-subtle); }
.calc-out span { display: block; font-size: 13px; color: var(--muted); }
.calc-out strong { font: 700 26px/1.2 var(--sans); letter-spacing: -.04em; }
#calc-std-out { color: #b42318; } #calc-cus-out { color: #067647; } #calc-save-out { color: var(--action); }
.compare-table th, .compare-table td { text-align: left; }
.compare-table tbody th { font-weight: 620; color: var(--ink); background: #fff; width: 22%; }
.compare-table td { color: var(--muted); }
.compare-table td.win { color: var(--ink); font-weight: 600; background: #f6fef9; }
@media (max-width: 980px) {
  .adv-grid, .assumptions { grid-template-columns: 1fr 1fr; }
  .cost-headline { grid-template-columns: 1fr; text-align: center; }
  .cost-headline .arrow { transform: rotate(90deg); }
  .calc-grid, .calc-out { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .adv-grid, .assumptions { grid-template-columns: 1fr; } .hd-core ul { grid-template-columns: 1fr; } }

/* Demo upgrades: flows, meters, deal room, documents */
.flow { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.flow-node { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 550 13px/1.3 var(--sans); color: var(--faint); transition: background .25s, border-color .25s, color .25s; }
.flow-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); font: 650 11.5px/1 var(--mono); color: var(--faint); transition: background .25s, color .25s; }
.flow-node.active { border-color: var(--action); color: var(--action); background: #eef2ff; }
.flow-node.active .flow-dot { background: var(--action); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.flow-node.done { color: #067647; border-color: #abefc6; background: #f6fef9; }
.flow-node.done .flow-dot { background: #12b76a; color: #fff; }
.flow-node.fail { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.flow-node.fail .flow-dot { background: #f04438; color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(23,75,255,.15); } }
.meter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 6px 0 14px; }
.meter > div { background: #fff; padding: 8px 10px; }
.meter span { display: block; font-size: 11.5px; color: var(--faint); }
.meter strong { font: 650 15px/1.3 var(--mono); color: var(--ink); }
.enter { animation: enter .35s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .enter, .flow-node.active .flow-dot { animation: none; } }

.crm-card em b.mini-score { margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-style: normal; color: #fff; background: var(--action); }
.mini-score.hot { background: #d92d20 !important; } .mini-score.warm { background: #dc6803 !important; }
.deal-room { margin-top: 18px; }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: enter .4s ease-out both; }
.room-card h5 { margin: 0 0 8px; font: 650 12.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.room-card h6 { margin: 10px 0 4px; font: 650 13px/1.4 var(--sans); color: var(--ink); }
.room-card.score-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: start; }
.gauge-wrap { position: relative; width: 120px; height: 120px; }
.gauge { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--surface-muted); stroke-width: 10; }
.gauge-arc { fill: none; stroke: var(--action); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge.hot .gauge-arc { stroke: #d92d20; } .gauge.warm .gauge-arc { stroke: #dc6803; }
.gauge-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-label strong { font: 700 34px/1 var(--sans); letter-spacing: -.05em; }
.gauge-label span { font-size: 12px; color: var(--muted); }
.room-card ul.pros li::marker { content: "+  "; color: #12b76a; font-weight: 700; }
.room-card ul.cons li::marker { content: "−  "; color: #d92d20; font-weight: 700; }
.risk { padding: 8px 10px; border-radius: 8px; background: #fffaeb; font-size: 13.5px !important; }
.brief-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-q { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); }
.room-card.mail { padding: 0; overflow: hidden; }
.mail-head { padding: 12px 16px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.mail-head span { display: inline-block; width: 62px; color: var(--faint); }
.out-email-body { padding: 14px 16px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); min-height: 120px; }
.room-card.mail > p, .room-card.mail > .approve-row { padding: 0 16px; }
.room-card.mail > .approve-row { padding-bottom: 16px; }
.out-actions { list-style: none; padding: 0 !important; display: grid; gap: 10px !important; }
.out-actions label { display: flex; gap: 8px; align-items: baseline; }
.out-actions li > span { padding-left: 24px; font-size: 13px; color: var(--faint); }
.due { padding: 1px 7px; border-radius: 6px; background: #eef2ff; color: var(--action); font-weight: 600; }
.stage-tip { margin-top: 12px !important; padding: 8px 10px; border-radius: 8px; background: #f6fef9; color: #067647 !important; font-size: 13.5px !important; }
.action-log { list-style: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: #d0d5dd; font: 12.5px/1.7 var(--mono); width: 100%; }
.action-log time { color: #75e0a7; margin-right: 6px; }
.action-log .note { color: #98a2b3; }
.action-log li { animation: enter .3s ease-out both; }

.why-cheap { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--line); }
.why-cheap h5 { margin: 0 0 10px; }
.quote-doc { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,.06); }
.quote-doc header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.quote-doc header strong { display: block; font: 700 16px/1.3 var(--sans); }
.quote-doc header span { font-size: 12px; color: var(--faint); }
.qd-id { text-align: right; }
.qd-to { font-size: 14px !important; }
.qd-note { margin-top: 12px !important; padding: 10px 12px; border-radius: 8px; background: var(--surface-subtle); font-size: 14px !important; }

.cite { margin: 0 2px 0 1px; padding: 0 6px; border: 0; border-radius: 6px; background: #eef2ff; color: var(--action); font: 650 11.5px/1.6 var(--mono); cursor: pointer; vertical-align: 2px; }
.cite:hover { background: var(--action); color: #fff; }
.link-btn { border: 0; background: none; padding: 0; color: var(--action); font: 600 13.5px/1.4 var(--sans); cursor: pointer; text-decoration: underline; }
.verify-line { padding: 8px 10px; border-radius: 8px; background: #f6fef9; color: #067647 !important; font-size: 13.5px !important; }
.qa-docs details.cited { background: #fffdf0; border-radius: 8px; padding-left: 8px; }
.qa-docs mark { background: #fde68a; color: var(--ink); padding: 1px 2px; border-radius: 3px; }
.qa-docs { max-height: 640px; overflow: auto; }

.wf-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wf-card h4 { display: flex; align-items: center; gap: 8px; }
.urgency { padding: 1px 8px; border-radius: 999px; font: 650 11.5px/1.6 var(--sans); text-transform: none; letter-spacing: 0; }
.urgency.high { background: #fef3f2; color: #b42318; } .urgency.medium { background: #fffaeb; color: #b54708; } .urgency.low { background: #f6fef9; color: #067647; }
@media (max-width: 980px) { .room-grid { grid-template-columns: 1fr; } .meter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .room-card.score-card, .brief-cols { grid-template-columns: 1fr; } .meter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-table tr.group th { text-align: left; background: var(--ink); color: #fff; font: 650 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 8px 14px; }
.price-table td { padding-top: 9px; padding-bottom: 9px; }

/* Replays */
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-head strong { display: block; font: 650 16px/1.4 var(--sans); }
.rp-head span { font-size: 13.5px; color: var(--muted); }
.rp-label { margin: 22px 0 10px; }
.rp-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; min-height: 340px; }
.rp-chat { display: grid; align-content: start; gap: 10px; }
.rp-msg { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.rp-msg > span { display: block; font: 650 11.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 6px; }
.rp-msg.user { background: #eef2ff; border-color: #c7d4ff; }
.rp-msg.user p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
.rp-calls { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; }
.rp-call { padding: 2px 7px; border-radius: 6px; background: #ecfdf3; color: #067647; font: 600 12px/1.6 var(--mono); animation: enter .25s ease-out both; }
.rp-dot { width: 10px; height: 10px; margin: 6px 1px; border-radius: 3px; background: #12b76a; opacity: .75; animation: enter .2s ease-out both; }
.rp-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.rp-strip span { display: block; font-size: 11px; color: var(--faint); }
.rp-strip strong { font: 650 14px/1.3 var(--mono); }
.rp-result { margin: 10px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; }
.rp-preview { display: grid; place-items: center; border: 1px dashed var(--line-control); border-radius: 12px; background: var(--surface-subtle); padding: 12px; }
.rp-file { margin: 0; width: 100%; }
.rp-file img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.rp-file figcaption { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.rp-file figcaption strong { font: 650 15px/1.3 var(--mono); color: var(--ink); }
.rp-file figcaption em { font-style: normal; color: #067647; font-weight: 600; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rp-tile { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.rp-tile img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; background: var(--surface-subtle); }
.rp-tile strong { font-size: 12.5px; line-height: 1.3; }
.rp-tile span { font: 500 11.5px/1.3 var(--mono); color: var(--faint); }
.rp-tile.on { border-color: var(--action); box-shadow: 0 0 0 2px rgba(23,75,255,.15); }
.rp-tile.done span::after { content: " ✓"; color: #12b76a; font-weight: 700; }

.rp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rp-tabs button, .rp-sides button { display: grid; gap: 2px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.rp-tabs button[aria-selected="true"], .rp-sides button[aria-pressed="true"] { border-color: var(--action); background: #eef2ff; }
.rp-tabs strong { font-size: 14px; } .rp-tabs span { font-size: 13px; color: var(--muted); line-height: 1.4; } .rp-tabs em { font-style: normal; font-size: 12px; color: var(--action); font-weight: 600; }
.rp-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.rp-sides strong { font-size: 13.5px; } .rp-sides span { font-size: 12.5px; color: var(--muted); }
.rp-spec summary { cursor: pointer; font: 600 14px/1.5 var(--sans); color: var(--action); padding: 6px 0; }
.rp-spec pre { white-space: pre-wrap; margin: 6px 0 0; padding: 14px; border-radius: 10px; background: var(--surface-subtle); border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); color: var(--ink-2); max-height: 320px; overflow: auto; }
.rp-runbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.rp-board { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.rp-empty { grid-column: 1 / -1; padding: 16px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); font-size: 14.5px; }
.rp-console { padding: 14px; border-radius: 12px; background: var(--ink); color: #d0d5dd; font: 12.5px/1.7 var(--mono); }
.rp-boot p { margin: 0; color: #98a2b3; }
.rp-checks { list-style: none; margin: 8px 0 0; padding: 0; max-height: 380px; overflow: auto; }
.rp-checks li { display: flex; gap: 8px; }
.rp-checks li.pass b { color: #75e0a7; } .rp-checks li.fail { color: #fda29b; } .rp-checks li.fail b { color: #f97066; }
.rp-summary { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rp-summary > div:first-child span { display: block; font-size: 13px; color: var(--muted); }
.rp-score { font: 700 40px/1.1 var(--sans); letter-spacing: -.05em; }
.rp-score.all { color: #067647; } .rp-score.some { color: #b54708; }
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-stats > div { padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); }
.rp-stats strong { display: block; font: 650 15px/1.3 var(--mono); } .rp-stats span { font-size: 12px; color: var(--faint); }
.rp-note { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #fffaeb; font-size: 14px !important; color: var(--ink-2) !important; }
.rp-table td { white-space: nowrap; }
@media (max-width: 980px) { .rp-stage, .rp-board { grid-template-columns: 1fr; } .rp-tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rp-sides, .rp-tabs { grid-template-columns: 1fr; } .rp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* The action log stays hidden until approval (the demo-output list rule would otherwise show it). */
.action-log[hidden] { display: none !important; }
.demo-badge { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .room-card, .rp-call, .rp-dot, .action-log li, .gauge-arc { animation: none; transition: none; } }

/* Key pages polish: proof strips, case cards, compact catalogue, service rows, demo previews */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wide-stats { max-width: none; margin-top: 34px; }
.section.tight-top { padding-top: 0; border-top: 0; }

.case-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; overflow: hidden; transition: border-color .16s, box-shadow .16s; }
.case-card:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.case-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-subtle); border-bottom: 1px solid var(--line); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.case-body { display: grid; align-content: start; gap: 8px; padding: 20px; }
.case-body h3 { margin: 0; font: 650 20px/1.25 var(--sans); letter-spacing: -.03em; }
.case-body h3 a { color: inherit; text-decoration: none; }
.case-body h3 a:hover { color: var(--action); }
.case-result { display: inline-block; justify-self: start; padding: 4px 10px; border-radius: 8px; background: #ecfdf3; color: #067647; font: 650 13.5px/1.5 var(--sans); }
.case-body > p:not(.case-result) { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.work-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.work-search { flex: 1 1 320px; }
.work-search input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-control); border-radius: 10px; font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: #fff; }
.work-search input:focus { outline: 3px solid rgba(23,75,255,.25); border-color: var(--action); }
.work-count { font: 600 14px/1.4 var(--sans); color: var(--muted); }
.work-empty { padding: 18px; border: 1px dashed var(--line-control); border-radius: 10px; color: var(--muted); }
.mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work-card.mini .work-body { padding: 14px; gap: 7px; }
.work-card.mini h3 { font-size: 16px; }
.work-card.mini p { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-card.mini .work-stack { -webkit-line-clamp: 1; }
.work-card.mini .work-meta .tag { font-size: 11.5px; padding: 2px 7px; }
.work-card.mini .text-link { font-size: 13px; }
.work-card.mini .monogram { font-size: 26px; }

.start-here { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.start-here a { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); text-decoration: none; color: var(--ink); transition: border-color .16s, background .16s; }
.start-here a:hover { border-color: var(--action); background: #fff; }
.start-here strong { font: 650 17px/1.3 var(--sans); letter-spacing: -.02em; }
.start-here span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.start-here em { font: 600 13px/1.4 var(--sans); font-style: normal; color: var(--action); }

.service-rows { display: grid; gap: 22px; }
.service-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-3); background: #fff; scroll-margin-top: 90px; }
.service-row:target { border-color: var(--action); box-shadow: 0 0 0 3px rgba(23,75,255,.12); }
.service-copy { display: grid; align-content: start; gap: 12px; }
.service-head { display: flex; align-items: center; gap: 10px; }
.service-copy h3 { margin: 0; font: 650 26px/1.2 var(--sans); letter-spacing: -.04em; }
.service-copy h4 { margin: 6px 0 0; font: 650 12.5px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.service-copy > p:not(.offer-for) { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.service-copy .checklist { gap: 8px; }
.service-copy .checklist li { font-size: 14.5px; }
.service-proof { display: grid; grid-template-rows: auto 1fr; align-self: start; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface-subtle); transition: border-color .16s, box-shadow .16s; }
.service-proof:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.service-proof img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top left; display: block; border-bottom: 1px solid var(--line); background: #fff; }
.proof-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.proof-body strong { font: 680 20px/1.25 var(--sans); letter-spacing: -.03em; color: #067647; }
.proof-body > span:not(.kicker) { font-size: 14px; line-height: 1.55; color: var(--muted); }
.proof-body em { font: 600 14px/1.4 var(--sans); font-style: normal; color: var(--action); margin-top: 4px; }

.included-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; background: var(--line); gap: 1px; }
.included-grid > div { background: #fff; padding: 22px; }
.included-grid h3 { margin: 0 0 6px; font: 650 17px/1.3 var(--sans); letter-spacing: -.02em; }
.included-grid h3::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.included-grid p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.live-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: #ecfdf3; color: #067647; font: 600 14px/1.4 var(--sans); }
.live-pill[hidden] { display: none; }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.2); }
.live-pill.off { background: var(--surface-muted); color: var(--muted); }
.live-pill.off i { background: #98a2b3; box-shadow: none; }
.demo-principles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; }
.demo-principles li { background: #fff; padding: 16px 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.demo-principles strong { display: block; color: var(--ink); font: 650 15px/1.4 var(--sans); margin-bottom: 2px; }
.demo-card.has-media { padding: 0; gap: 0; overflow: hidden; grid-template-rows: auto 1fr; transition: border-color .16s, box-shadow .16s; }
.demo-card.has-media:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.demo-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.demo-body { display: grid; align-content: start; gap: 10px; padding: 22px; }
.demo-body h3 a { color: inherit; text-decoration: none; }
.demo-body h3 a:hover { color: var(--action); }
.demo-proves { padding: 10px 12px; border-radius: 8px; background: var(--surface-subtle); font-size: 14px !important; color: var(--ink-2) !important; }
.demo-proves strong { display: block; font: 650 11.5px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.demo-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.demo-foot > span { font: 550 13px/1.4 var(--sans); color: var(--faint); }

@media (max-width: 1100px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .start-here { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .service-row { grid-template-columns: 1fr; gap: 20px; } .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .start-here, .included-grid, .demo-principles { grid-template-columns: 1fr; }
  .service-row { padding: 18px; }
  .service-copy h3 { font-size: 22px; }
  .wide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-stats > div:nth-child(3) { border-left: 0; }
  .wide-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .mini-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .case-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .case-index { grid-template-columns: 1fr; } }

/* Wide hero for dense dashboards (heroWide in cases.mjs): text above, the screen full width below. */
.case-hero.wide { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.case-hero.wide > div:first-child { max-width: 860px; }
.case-hero.wide figure { box-shadow: 0 24px 60px rgba(16,24,40,.14); }
.case-hero.wide figure img { max-height: none; }
.case-section.full { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.case-section.full > h2 { position: static; }
.case-shots a { display: block; cursor: zoom-in; }

/* Featured inbox pilot and the enquiry handoff. */
.pilot-section, .hire-hero #enquiry { scroll-margin-top: 90px; }
.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--action);
  border-radius: 12px;
  background: var(--surface-subtle);
}
.pilot-label { font-size: .9rem; font-weight: 650; color: var(--action-hover); }
.pilot-layout h2 { margin: 8px 0 14px; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.04em; }
.pilot-layout h2 + p, .pilot-layout p + p { color: var(--ink-2); }
.pilot-layout .actions, .workflow-pilot .actions, .workflow-run { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pilot-layout .actions, .pilot-details { margin-top: 16px; }
.pilot-steps { margin: 0; align-self: center; }
.pilot-steps div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pilot-steps div:last-child { border-bottom: 0; }
.pilot-steps dt { font-weight: 650; }
.pilot-steps dd { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.pilot-form-note { border-inline-start: 3px solid var(--action); padding: 10px 14px; margin: 0 0 18px; background: var(--surface-subtle); }
.pilot-form-note p + p { margin-top: 5px; }
.enquiry-fields { display: grid; gap: 14px; }
.enquiry-fields[hidden] { display: none; }
.pilot-enquiry-help { margin-top: -8px; }
.pilot-preparation { padding: clamp(14px, 3vw, 22px); }
#pilot-receipt-status { scroll-margin-top: 90px; }
.pilot-preparation h3 { font-size: 1.15rem; font-weight: 650; }
.pilot-preparation > * + * { margin-top: 10px; }
.pilot-preparation .checklist { gap: 6px; }
.workflow-pilot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.workflow-pilot h2 { font-size: 1.35rem; }
.workflow-run { margin-top: 12px; }
.workflow-in .workflow-run .button { margin-top: 0; }

/* The guide uses an example review and acceptance checklist to explain the work. */
.pilot-page-intro { padding-top: clamp(32px, 5vw, 68px); }
.pilot-page-hero, .pilot-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.pilot-page-hero { align-items: center; }
.pilot-page-hero h1 { text-wrap: pretty; max-width: 17ch; }
.pilot-example {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-3);
}
.pilot-example figcaption { font-weight: 650; }
.pilot-example div {
  padding: 10px 0 0 14px;
  border-inline-start: 2px solid var(--line-control);
}
.pilot-example div:last-of-type { border-inline-start-color: var(--action); }
.pilot-example div > span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.pilot-example div > p { margin: 4px 0 0; }
.pilot-example-note { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.pilot-guide { grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); }
.pilot-guide h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.pilot-guide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pilot-guide .checklist { margin-top: 0; }
.pilot-guide .checklist + p { margin-top: 18px; }
.pilot-acceptance { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-2); }
.pilot-acceptance h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 650; }
.pilot-acceptance > p { margin: 0 0 8px; }
@media (max-width: 700px) {
  .pilot-layout, .pilot-page-hero, .pilot-guide { grid-template-columns: minmax(0, 1fr); }
}

/* practice.css */
/* Components added in the 29 November 2026 build: price tags, the booking and
   proposal pages, guides, CRM pages, endorsements, evaluation tables and the
   enquiry follow-up panel. Uses the tokens from site.css. */

.price-tag { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price-tag strong { font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.price-tag span { color: var(--muted); font-size: 14.5px; }
.offer-price { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--ink); font-size: 14.5px; }

/* Enquiry follow-up: booking and receipt fallback */
.enquiry-next { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 20px; background: var(--surface-subtle); }
.enquiry-next h3 { margin: 0 0 8px; font-size: 18px; }
.enquiry-next p { margin: 0 0 12px; color: var(--ink-2); }
.enquiry-next p:last-child { margin-bottom: 0; }

/* Private buyer pages */
.practice-main { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.practice-card { border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; padding: clamp(20px, 4vw, 36px); }
.practice-card h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.04em; line-height: 1.1; margin: 6px 0 14px; }
.practice-card h2 { font-size: 18px; margin: 26px 0 8px; }
.practice-card .eyebrow { margin: 0; }
.practice-sub { margin-top: 30px; }
.practice-note { border-radius: 10px; background: var(--surface-subtle); border: 1px solid var(--line); padding: 16px 18px; margin: 18px 0; }
.practice-note.success { background: #ecfdf3; border-color: #abefc6; }
.practice-note h2 { margin-top: 0; }
.practice-form { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.practice-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.practice-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.practice-form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.practice-footer { text-align: center; color: var(--faint); font-size: 13px; padding: 0 16px 40px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.slot-day h3 { font-size: 15px; margin: 18px 0 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 42px; min-width: 76px; padding: 8px 12px; border: 1px solid var(--line-control); border-radius: 9px; background: #fff; font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; }
.slot:hover { border-color: var(--action); }
.slot[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.practice-confirm { position: sticky; bottom: 0; margin-top: 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 18px rgba(16,24,40,.06); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.practice-confirm p { flex: 1 1 100%; margin: 0; font-weight: 600; }
button.text-link { background: none; border: 0; padding: 0; color: var(--action); font: inherit; cursor: pointer; text-decoration: underline; }
@media print { .site-header, .practice-footer, .practice-form, [data-print] { display: none !important; } .practice-card { border: 0; padding: 0; } }

/* Guides, CRM pages and legal pages */
.guide-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.guide-index a { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-2); color: var(--ink); text-decoration: none; background: #fff; }
.guide-index a:hover { border-color: var(--action); }
.guide-index strong { font-size: 18px; letter-spacing: -.02em; }
.guide-index span { color: var(--muted); font-size: 15px; }
.guide-index em { color: var(--action); font-style: normal; font-weight: 600; font-size: 14px; }
.article { max-width: 760px; }
.article h2 { font-size: 24px; letter-spacing: -.03em; margin: 36px 0 10px; }
.article h3 { font-size: 18px; margin: 24px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.article .key-points { border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-subtle); padding: 18px 22px; }
.article .key-points li { font-size: 16px; }
.article-meta { color: var(--faint); font-size: 14px; margin: 0 0 18px; }
.article-cta { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.crm-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.crm-map div { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; }
.crm-map dt { font-weight: 650; margin-bottom: 6px; }
.crm-map dd { margin: 0; color: var(--muted); font-size: 15px; }
.legal-page h2 { font-size: 20px; margin: 30px 0 8px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.7; }
.legal-page .legal-note { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-1); padding: 12px 14px; color: var(--muted); }

/* Endorsements and evaluation */
.endorsements { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.endorsement { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 22px; background: #fff; }
.endorsement blockquote { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.endorsement figcaption { color: var(--muted); font-size: 14px; }
.endorsement figcaption strong { color: var(--ink); display: block; }
.eval-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.eval-table th, .eval-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: right; }
.eval-table th:first-child, .eval-table td:first-child { text-align: left; }
.eval-pending { border: 1px dashed var(--line-control); border-radius: var(--radius-2); padding: 20px; color: var(--muted); }

/* Worksheet tool */
.worksheet { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .worksheet { grid-template-columns: 1fr; } }
.worksheet .field input, .worksheet .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 9px; font: 400 16px/1.4 var(--sans); background: #fff; }
.worksheet-result dl { display: grid; gap: 10px; margin: 0; }
.worksheet-result dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.worksheet-result dt { color: var(--muted); }
.worksheet-result dd { margin: 0; font-weight: 650; text-align: right; }
.share-kit { display: grid; gap: 18px; }
.share-kit article { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 18px; }
@media (max-width: 640px) { .share-kit article { grid-template-columns: 1fr; } }
.share-kit img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.lang-switch { font-size: 14px; color: var(--muted); }

/* Lead offer panel and the consolidated services page */
.lead-offer { margin: 0 0 22px; }
.lead-offer h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; margin: 6px 0 10px; }
.lead-offer p { color: var(--ink-2); }
.services-more { border-top: 1px solid var(--line); padding: 6px 0; }
.services-more:last-child { border-bottom: 1px solid var(--line); }
.services-more > summary { cursor: pointer; padding: 16px 0; font-size: 18px; font-weight: 620; letter-spacing: -.01em; list-style-position: outside; }
.services-more > summary:hover { color: var(--action); }
.services-more[open] > summary { color: var(--action); }
.services-more .section { padding-left: 0; padding-right: 0; }

/* Guide update sign-up */
.updates-signup { margin-top: 36px; max-width: 560px; }
.updates-signup h2 { font-size: 20px; margin: 0 0 6px; }
.updates-signup form { display: grid; gap: 12px; margin-top: 12px; }
.updates-signup .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.updates-signup .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* Invoices */
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.invoice-head h1 { margin: 0 0 8px; }
.invoice tfoot td { font-weight: 600; }
@media print { .invoice [data-print] { display: none; } }

/* Fourth cycle: buyer hero, proof line, pipeline credential, timeline, booking panel */
.buyer-hero { align-items: start; }
.hero-facts { margin: 6px 0 0; color: var(--ink-2); font-weight: 550; }
.hero-person { display: grid; gap: 14px; }
.person-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 12px 14px; background: #fff; }
.person-card img { border-radius: 50%; flex: none; }
.person-card p { margin: 0; display: grid; gap: 2px; font-size: 14.5px; color: var(--muted); }
.person-card strong { color: var(--ink); }
.proof-line { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.author-line { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.pipeline-proof { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 820px) { .pipeline-proof { grid-template-columns: 1fr; } }
.pipeline-proof h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; margin: 6px 0 12px; }
.pipeline-stats { display: grid; gap: 12px; margin: 0; }
.pipeline-stats div { border: 1px solid var(--line); border-radius: var(--radius-2); padding: 14px 18px; background: #fff; }
.pipeline-stats dt { font-size: 26px; font-weight: 680; letter-spacing: -.03em; color: var(--ink); }
.pipeline-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.pilot-timeline { margin: 6px 0 16px; color: var(--ink); }
.pilot-timeline svg { width: 100%; height: auto; display: block; }
.pilot-timeline .tl-dot { fill: var(--action); }
.pilot-timeline .tl-num { fill: #fff; font: 700 14px var(--sans); }
.pilot-timeline .tl-when { fill: var(--action); font: 650 15px var(--sans); }
.pilot-timeline .tl-what { fill: var(--ink-2); font: 500 15px var(--sans); }
.checklist.not-for li::before { content: "–"; color: var(--faint); }
.quick-book { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; scroll-margin-top: 80px; }
@media (max-width: 860px) { .quick-book { grid-template-columns: 1fr; } }
.quick-book-intro h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; margin: 0 0 10px; }
.quick-book-form { border: 1px solid var(--line); border-radius: var(--radius-2); background: #fff; padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.quick-book-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.quick-book-form legend { font-weight: 650; margin-bottom: 6px; }
.quick-book-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.qb-days { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; }
.qb-day h3 { font-size: 14px; margin: 4px 0 6px; color: var(--ink-2); }
.qb-day .slot { margin: 0 6px 6px 0; }
.product-strip { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.product-strip a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; background: #fff; }
.product-strip a:hover { border-color: var(--action); }
.product-strip img { width: 32px; height: 32px; border-radius: 8px; }
.process-steps.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.technical-divider { border-top: 2px solid var(--line); }

/* Fifth cycle: audiences, catalogue, role and visibility tables */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.audience { border: 1px solid var(--line); border-radius: var(--radius-2); padding: 22px; background: #fff; display: grid; gap: 10px; align-content: start; }
.audience h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.audience > p { margin: 0; color: var(--muted); }
.audience ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.audience li a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.audience li a:hover { border-color: var(--action); }
.audience li span { color: var(--muted); font-size: 14.5px; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.catalogue-item { border: 1px solid var(--line); border-radius: var(--radius-2); padding: 18px; background: #fff; display: grid; gap: 8px; align-content: start; }
.catalogue-item h3 { margin: 0; font-size: 17px; }
.catalogue-item h3 a { color: var(--ink); text-decoration: none; }
.catalogue-item p { margin: 0; color: var(--ink-2); font-size: 15px; }
.role-table td, .visibility-table td { text-align: left; vertical-align: top; }
.visibility-table td:nth-child(n+2):nth-child(-n+5) { text-align: center; font-weight: 650; }

/* media.css */
/* Shared media: framed screenshots and the visual cards used on hub pages (proof, guides). */
.offer-figure { margin: 0; }
.offer-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-3); border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--surface-subtle); }
.offer-figure figcaption { margin-top: 10px; color: var(--faint); font-size: 13.5px; line-height: 1.5; }
/* Screenshots in a quiet browser-window frame: real product screens and service visuals alike. */
.offer-figure > a, .offer-figure > .shot, .sample-shot, .group-shot { display: block; position: relative; padding-top: 30px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 16px 15px, #ec6a5e 4.5px, transparent 5px), radial-gradient(circle at 32px 15px, #f4bf4f 4.5px, transparent 5px),
    radial-gradient(circle at 48px 15px, #61c554 4.5px, transparent 5px), linear-gradient(#eef0ee, #e8eae8) top / 100% 30px no-repeat, var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px -12px rgba(16, 24, 40, .22); }
.offer-figure > a img, .offer-figure > .shot img, .sample-shot img, .group-shot img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.offer-figure > .shot.bare { padding-top: 0; background: none; border: 0; box-shadow: none; }
.offer-figure > .shot.bare img { border-top: 0; }
.article-figure { margin: 8px 0 32px; }

/* Hub pages */
.hub-intro { padding-bottom: 28px; }
.hub-intro h1 { max-width: 16em; }
.hub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hub-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.hub-nav a:hover { border-color: var(--action); color: var(--action); }
.hub-nav span { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-subtle); color: var(--muted); font-size: 12.5px; text-align: center; }
.hub-section { padding: 56px 0; scroll-margin-top: 80px; }
.hub-head { max-width: 720px; margin-bottom: 26px; }
.hub-head h2 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; }
.hub-head p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius-3); background: var(--surface-subtle); }
.hub-cta h2 { margin: 0 0 4px; font-size: 22px; }
.hub-cta p { margin: 0; color: var(--muted); }

/* Feature card: the lead item on a hub */
.mfeature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.mfeature-shot img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); }
.mfeature-shot { display: block; position: relative; padding-top: 30px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 16px 15px, #ec6a5e 4.5px, transparent 5px), radial-gradient(circle at 32px 15px, #f4bf4f 4.5px, transparent 5px),
    radial-gradient(circle at 48px 15px, #61c554 4.5px, transparent 5px), linear-gradient(#eef0ee, #e8eae8) top / 100% 30px no-repeat, var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -16px rgba(16, 24, 40, .25); transition: transform .2s; }
.mfeature-shot:hover { transform: translateY(-3px); }
.mfeature-body h2 { margin: 10px 0 12px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.mfeature-body h2 a { color: var(--ink); text-decoration: none; }
.mfeature-body h2 a:hover { color: var(--action); }
.mfeature-body > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0 0 16px; }
.mfeature-body .checklist { margin: 0 0 22px; }
.mfeature-body .muted.small { margin-top: 14px; }

/* Media cards */
.mgrid { display: grid; gap: 22px; }
.mgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.mcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--action) 45%, var(--line)); box-shadow: 0 18px 36px -18px rgba(16, 24, 40, .28); }
.mcard-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 12px 9px, #ec6a5e 3px, transparent 3.5px), radial-gradient(circle at 23px 9px, #f4bf4f 3px, transparent 3.5px),
    radial-gradient(circle at 34px 9px, #61c554 3px, transparent 3.5px), linear-gradient(#eef0ee, #e8eae8) top / 100% 18px no-repeat, var(--surface-subtle); }
.mcard-shot img { position: absolute; inset: 18px 0 0; width: 100%; height: calc(100% - 18px); object-fit: cover; object-position: var(--pos, 50% 0); border-top: 1px solid var(--line); transition: transform .35s; }
.mcard:hover .mcard-shot img { transform: scale(1.025); transform-origin: 50% 0; }
.mcard-cover .mcard-shot { background: linear-gradient(160deg, #eef4f2, #e3ebe8); }
.mcard-cover .mcard-shot img { inset: 14px 0; height: calc(100% - 28px); object-fit: contain; border-top: 0; filter: drop-shadow(0 10px 18px rgba(16, 24, 40, .22)); }
.mcard-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.mcard-kicker { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mcard strong { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.mcard-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.mcard em { margin-top: auto; padding-top: 6px; color: var(--action); font-size: 14.5px; font-style: normal; font-weight: 600; }
@media (max-width: 1100px) { .mgrid-3, .mgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .mfeature { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mgrid-3, .mgrid-4 { grid-template-columns: 1fr; } .hub-section { padding: 40px 0; } .hub-cta { padding: 22px; } }
.group-shot { margin-top: 18px; max-width: 520px; }

/* Full-size image viewer (assets/js/lightbox.js) */
img.zoomable, .zoom-host > img { cursor: zoom-in; }
.zoom-host { position: relative; }
.zoom-hint, .zoom-btn { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(17, 24, 39, .72); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.zoom-hint { pointer-events: none; opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; }
.offer-figure > a > .zoom-hint, .offer-figure > .shot > .zoom-hint, .sample-shot > .zoom-hint, .group-shot > .zoom-hint, .mfeature-shot > .zoom-hint { top: 40px; }
.zoom-host:hover > .zoom-hint, .zoom-host:focus-within > .zoom-hint { opacity: 1; transform: none; }
.zoom-wrap { position: relative; display: flex; min-width: 0; }
.zoom-wrap > a { flex: 1; min-width: 0; }
.zoom-wrap-in { position: relative; }
.zoom-btn { border: 0; cursor: zoom-in; opacity: .92; transition: opacity .15s, background .15s; }
.zoom-btn:hover, .zoom-btn:focus-visible { opacity: 1; background: #111827; }
.zoom-btn:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 5px var(--action); }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; width: 30px; height: 30px; } }

html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgba(10, 13, 20, .94); color: #fff; opacity: 0; transition: opacity .18s; }
.lb[hidden] { display: none; }
.lb.lb-in { opacity: 1; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: max(76px, env(safe-area-inset-top) + 64px) clamp(12px, 6vw, 88px) 12px; overflow: hidden; touch-action: pan-x pan-y; }
.lb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-in; }
.lb.lb-actual .lb-stage { display: block; overflow: auto; padding: max(76px, env(safe-area-inset-top) + 64px) 16px 16px; }
.lb.lb-actual .lb-img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.lb-close { position: fixed; top: max(16px, env(safe-area-inset-top) + 10px); right: max(16px, env(safe-area-inset-right) + 12px); z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #111827; font: 700 16px/1 var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.lb-close span { font-size: 18px; }
.lb-close:hover { background: #f1f5f9; }
.lb-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-nav { position: fixed; top: 50%; z-index: 2; width: 48px; height: 64px; margin-top: -32px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font: 400 40px/1 var(--sans); cursor: pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.lb-prev { left: max(12px, env(safe-area-inset-left) + 8px); }
.lb-next { right: max(12px, env(safe-area-inset-right) + 8px); }
.lb-nav[hidden] { display: none; }
.lb-bar { display: grid; gap: 6px; justify-items: center; padding: 10px 20px max(16px, env(safe-area-inset-bottom) + 10px); text-align: center; }
.lb-cap { max-width: 900px; margin: 0; color: #e5e7eb; font-size: 15px; line-height: 1.5; }
.lb-tools { display: flex; align-items: center; gap: 14px; }
.lb-count { color: #9ca3af; font-size: 14px; }
.lb-size { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; }
.lb-size:hover, .lb-size:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.lb-hint { margin: 0; color: #9ca3af; font-size: 13px; }
@media (max-width: 640px) {
  .lb-stage { padding-left: 8px; padding-right: 8px; }
  .lb-nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom) + 8px); margin-top: 0; width: 44px; height: 44px; font-size: 30px; }
  .lb-cap { font-size: 14px; }
  .lb-bar { padding-left: 64px; padding-right: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lb, .zoom-hint, .mcard, .mcard-shot img, .mfeature-shot { transition: none; } }

/* Layout fixes from the page sweep (30 November 2026) */
main code { overflow-wrap: anywhere; }
.visibility-snapshot > * { min-width: 0; }
@media (max-width: 760px) { .visibility-snapshot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .eval-table { font-size: 13.5px; }
  .eval-table th, .eval-table td { padding: 8px 5px; }
  /* Results tables become one card per row on phones instead of scrolling sideways. */
  .price-wrap .results-table { min-width: 0; }
  .results-table thead { display: none; }
  .results-table, .results-table tbody, .results-table tr, .results-table th, .results-table td { display: block; width: auto; }
  .results-table tr { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .results-table tbody th, .results-table td { padding: 3px 0; border: 0; text-align: left; background: none; }
  .results-table tbody th { font-size: 16px; }
}
.buyer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; margin-block: 1rem; }
.cover-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: end; }
.cover-row a { display: block; transition: transform .18s; }
.cover-row a:hover { transform: translateY(-4px); }
.cover-row img { display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: 0 2px 4px rgba(16, 24, 40, .12), 0 14px 28px -12px rgba(16, 24, 40, .35); }
@media (max-width: 760px) { .cover-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.buyer-print { margin-top: 10px; }
/* Default spacing for any group of actions (contexts above refine it). */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.buyer-section .actions { margin-top: 18px; }
.inline-visual { margin: 24px 0 32px; }

/* Films and loops */
.offer-figure > .shot video, .offer-figure > a video { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); background: var(--surface-subtle); }
video.zoomable { cursor: zoom-in; }
.film-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px 48px; align-items: center; }
.film-head h2 { margin: 6px 0 12px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.film-head p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.film { margin: 0; }
.film video { display: block; width: 100%; height: auto; border-radius: 14px; background: #0b1220; box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 30px 60px -28px rgba(16, 24, 40, .45); }
.film figcaption { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
@media (max-width: 900px) { .film-section { grid-template-columns: 1fr; } }
