/* ============================================================
   rgleeson.com redesign (CR-006) — tokens and components
   Source of the look: canvas "Research-led design" page, copies in
   content/restructure/design-final/. Pages built for CR-006 load this file only.
   Ink + white + cream + rationed coral · Cabinet Grotesk + Inter · flat · editorial
   ============================================================ */

@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cabinet Grotesk'; src: url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* Named 'Inter Variable', not 'Inter' (2026-12-01): browser add-ons that inject their own 'Inter' @font-face rules
   (NordVPN Threat Protection does) replaced this file with theirs, which loads late on every page and made the header jump. */
@font-face { font-family: 'Inter Variable'; src: url('/assets/fonts/inter-latin-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  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; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0F1014;
  --white: #FFFFFF;
  --cream: #F5F1EC;          /* section ground */
  --cream-deep: #EAE2D8;     /* photo placeholder on cream */
  --coral: #D04205;          /* fills: buttons, quote mark (4.70:1 with white text) */
  --coral-text: #AF3500;     /* coral text and links on white and cream */
  --coral-display: #F36435;  /* large numbers and accents on ink only */
  --coral-tint: #FBE9E1;     /* icon tiles */
  --grey: #5C5C5C;           /* secondary text */
  --grey-on-dark: #D0D0D0;
  --line: #E2E2E2;
  --line-cream: #D3CEC6;
  --line-dark: #3A3B40;
  --ink-raised: #2A2B30;      /* bar tracks and hover on ink */
  --input: #8A91A6;          /* field edges, 3:1 */

  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, sans-serif;

  --radius: 8px;
  --container: 1240px;
  --gutter: 32px;
  --section-y: clamp(64px, 8vw, 104px);
  --hero-top: clamp(48px, 6.8vw, 88px);

  --fs-h1-page: clamp(42px, 5.4vw, 72px);
  --fs-h1: var(--fs-h1-page);  /* one headline size on every page, Home included (2026-11-30) */
  --fs-h2: clamp(30px, 3.4vw, 40px);
  --fs-h2-dark: clamp(32px, 4vw, 44px);
  --fs-lede: 20px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
/* Widows and orphans (amendments 2026-11-30); HTML also joins the last two words with &nbsp; */
h4, h5, h6, dt, dd, .btn, .price__value, .price__label { text-wrap: balance; }
li, figcaption, blockquote, td, th, label, summary { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--coral-text); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--white); }

/* Text links inside page content: one colour everywhere (canvas decision 2026-11-28) */
/* Hover (2026-12-01): the link keeps its colour and the underline thickens; nothing moves. */
main a:not(.btn):not(.route) { color: var(--coral-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
main a:not(.btn):not(.route):hover { color: var(--coral-text); text-decoration-thickness: 2px; }
main .section--dark a:not(.btn) { color: var(--white); }
/* On ink the link stays white on hover, with the same thicker underline (2026-12-01). */
main .section--dark a:not(.btn):not(.route):hover { color: var(--white); }
.small-print, .small-print a { font-size: 14px; color: var(--grey) !important; }

/* ---------- Type ---------- */
.overline { font-size: 18px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--coral-text); }
.h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.01em; }
.h1--page { font-size: var(--fs-h1-page); line-height: 1.08; }
/* Hero headings: tighter, weight 500 like every other heading (amendments 2026-11-30) */
h1.h1, h1.h1--page { font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
h1 .accent { color: var(--coral); }
/* Keeps a long last phrase together where there is room (WEC hero, 2026-11-30) */
@media (min-width: 701px) { .nowrap-wide { white-space: nowrap; } }
.h2 { font-size: var(--fs-h2); line-height: 1.15; }
.h3 { font-size: 23px; line-height: 1.2; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--grey); }
.muted { color: var(--grey); }
.arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
a:hover .arrow { transform: translateX(4px); }
.link-strong { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font: 500 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 60px; padding: 0 26px; font-size: 17px; font-weight: 600; }
.btn--md { min-height: 52px; padding: 0 22px; font-weight: 600; }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-text); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-raised); color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 20px/1 var(--font-display); text-decoration: none; color: var(--ink); }
.brand img { border-radius: 100px; }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.primary-nav > a:not(.btn) { text-decoration: none; }
/* Header links (2026-12-01): hover and "you are here" use the same coral line in the same place. The text stays ink;
   the line draws in on hover and is simply there on the current page. */
.primary-nav > a:not(.btn):not(.header-phone) { position: relative; }
.primary-nav > a:not(.btn):not(.header-phone):hover { color: var(--ink); }
.primary-nav > a:not(.btn):not(.header-phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left center; }
.primary-nav > a:not(.btn):not(.header-phone):hover::after, .primary-nav > a:not(.btn):not(.header-phone)[aria-current="page"]::after { transform: scaleX(1); }
/* The phone number is a contact detail, not a page: it stays ink and gains an underline. */
.primary-nav > a.header-phone:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--grey); text-decoration: none; }
.header-phone__call { display: none; }
.header-ctas { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--hero-top); padding-bottom: 56px; }
.hero__inner { display: flex; flex-direction: column; gap: 28px; }
.hero__inner .h1 { max-width: 980px; }
.hero__inner .lede { max-width: 720px; }

/* ---------- Proof strip ---------- */

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.section-intro p { font-size: 18px; color: var(--grey); }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 24px; }
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-card__media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.work-card__type { font-size: 14px; color: var(--grey); }
.work-card__name { font: 500 21px/1.2 var(--font-display); display: flex; align-items: center; gap: 8px; }
.work-card__name img { height: 18px; width: auto; }
.work-card__result { font-size: 14px; color: var(--grey); }
.work-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
/* 24px tap height on phones, WCAG 2.5.8 (site audit 2026-12-01: these were 22px) */
.work-card__links a { display: inline-flex; align-items: center; min-height: 24px; }
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; border: 1px dashed var(--input); border-radius: var(--radius); background: var(--cream); color: var(--grey); font-size: 14px; }

/* ---------- Free demo panel ---------- */
/* Home free demo panel: text 5fr, overlapping before/after 7fr (amendments 2026-11-30) */
.demo-panel { margin-top: 56px; scroll-margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.demo-panel__text { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.demo-panel__text h3 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; }
.demo-panel__text > p { font-size: 17px; max-width: 44ch; }
.demo-panel .stack-form { margin-top: 12px; gap: 12px; }
.demo-panel .stack-form .btn { align-self: stretch; min-height: 52px; }
.demo-panel__compare { position: relative; min-width: 0; aspect-ratio: 16 / 11.5; margin-top: 13px; }
.demo-panel__compare > div { position: absolute; }
.demo-panel__compare > div:first-child { left: 0; top: 0; width: 64%; }
.demo-panel__compare > div:last-child { right: 0; bottom: 0; width: 74%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15, 16, 20, 0.18); }
.demo-panel .compare-shot { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-cream); }
.demo-panel .compare-label { position: absolute; top: -13px; left: 16px; z-index: 1; margin: 0; padding: 5px 10px; border-radius: 100px; background: var(--white); color: var(--ink); box-shadow: 0 2px 6px rgba(15, 16, 20, 0.12); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.demo-panel .compare-label--after { background: var(--coral); color: var(--white); }
.compare-label { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.compare-label--after { color: var(--coral-text); }
.compare-shot { aspect-ratio: 16 / 10; background: var(--white); }

/* ---------- Forms ---------- */
.stack-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.field-label { font-size: 15px; font-weight: 500; }
.field { width: 100%; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--input); border-radius: var(--radius); background: var(--white); font: 16px var(--font-body); color: var(--ink); }
textarea.field { min-height: 120px; padding: 14px 16px; resize: vertical; }
.select-wrap { position: relative; display: block; }
.select-wrap .field { appearance: none; -webkit-appearance: none; padding-right: 52px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.form-grid { display: flex; flex-direction: column; gap: 18px; }
.form-grid > div { display: flex; flex-direction: column; gap: 8px; }
.honeypot { display: none; }
.contact-form__status { font-size: 15px; }
.contact-form__status.is-success { color: #1E6B3A; }
.contact-form__status.is-error { color: #A11D1D; }

/* ---------- Route cards ---------- */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.routes--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); } /* six cards: three across, then two, then one */
.route { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.route:hover { color: var(--ink); }
.route__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-text); display: inline-flex; align-items: center; justify-content: center; }
.route h3 { font-size: 23px; line-height: 1.2; }
.route p { color: var(--grey); }
.route__go { margin-top: auto; font-weight: 500; color: var(--ink) !important; }

/* ---------- How it works (dark) ---------- */
.how { display: flex; flex-direction: column; gap: 48px; }
.how .h2 { font-size: var(--fs-h2-dark); line-height: 1.12; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 21px; }
.step p { color: var(--grey-on-dark); }
/* Home "What it costs": open columns, no table (amendments 2026-11-30). 4 across from 1200px, 2×2 from 701px, stacked on phones */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 48px; }
.price { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.price__label { color: var(--grey-on-dark); font-size: 16px; }
.price__value { font: 500 clamp(32px, 3.4vw, 44px)/1.1 var(--font-display); }
.price__note { color: var(--grey-on-dark); font-size: 15px; }
@media (max-width: 1199px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.how__foot { color: var(--grey-on-dark); }
.how__foot a { font-weight: 500; }

/* ---------- Me ---------- */
.me { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.me__photo { flex: 1 1 340px; min-width: 0; max-width: 400px; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--cream-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.me__photo img { border-radius: 100px; }
.me__text { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.me__text > p:first-of-type { font-size: 18px; color: var(--grey); }
.me__links { display: flex; flex-wrap: wrap; gap: 10px 32px; } /* the longer "How I use AI myself" note moved to About (2026-12-01) */

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.quote { display: flex; flex-direction: column; gap: 32px; }
.quote--featured { flex: 1.5 1 520px; min-width: 0; }
.quote--centred { align-items: center; text-align: center; max-width: 900px; margin-inline: auto; }
.quote__mark { display: block; width: 64px; height: 48px; margin-bottom: -12px; color: var(--coral); transform-origin: left bottom; }
.quote--centred .quote__mark { transform-origin: center bottom; }
.quote blockquote { font: 500 clamp(28px, 3.2vw, 40px)/1.22 var(--font-display); letter-spacing: -0.01em; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.quote--centred figcaption { justify-content: center; }
.quote__who { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.quote__who strong { font-weight: 600; }
.quote__who span { font-size: 15px; color: var(--grey); }
.quote__logos { display: inline-flex; align-items: center; gap: 14px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.quote__logos img { height: 22px; width: auto; }
.logo-slot { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px dashed var(--input); border-radius: 6px; font-size: 12px; color: var(--grey); }
.quotes__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; border-left: 1px solid var(--line); padding-left: 56px; }
.quote--small { gap: 12px; }
.quote--small blockquote { font: 18px/1.55 var(--font-body); letter-spacing: 0; }
.quote--small + .quote--small { padding-top: 32px; border-top: 1px solid var(--line); }
.quote--small figcaption { font-size: 15px; color: var(--grey); }
.quote--small figcaption strong { color: var(--ink); font-weight: 600; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq__head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.faq__list { flex: 2 1 520px; min-width: 0; }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__item h3 { font: 600 19px/1.35 var(--font-body); }
.faq__item p { color: var(--grey); margin-top: 8px; }
/* FAQ accordions: native <details>, no JS (amendments 2026-11-30) */
.faq__item > details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq__item > details > summary::-webkit-details-marker { display: none; }
.faq__item > details > summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--coral); background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.faq__item > details[open] > summary::after { background-size: 14px 2px, 0 0; }
.faq__item > details > summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 4px; }
.faq__item > details > summary h3 { margin: 0; }
.faq__item > details > p { margin-top: 10px; }

/* ---------- Contact / get a price ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.contact__text > p:first-of-type:not(.muted) { font-size: 18px; color: var(--grey); }
.contact__form { flex: 2 1 520px; min-width: 0; }
.contact__ways p { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 56px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--coral-display); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.site-footer__name { font: 700 20px/1.2 var(--font-display); }
.site-footer__meta { color: var(--grey-on-dark); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.footer-nav a { text-decoration: none; text-underline-offset: 3px; }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-areas { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; font-size: 14px; color: var(--grey-on-dark); }
.footer-areas a { color: var(--grey-on-dark); }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qpop { from { opacity: 0; transform: translateY(12px) scale(.6); } to { opacity: 1; transform: none; } }
.rise { animation: rise 600ms var(--ease-out) both; }
.r2 { animation-delay: 60ms; } .r3 { animation-delay: 120ms; } .r4 { animation-delay: 180ms; } .r5 { animation-delay: 240ms; }
@media (hover: hover) and (pointer: fine) {
  /* Only things that are links lift; plain panels with .lift stay still (2026-12-01). */
  .route:hover, a.lift:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 16, 20, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal > .container, .stagger > *, .quote__mark { animation: none; }
  .btn, .route, .arrow { transition: none; }
  .btn:active, .route:hover, a:hover .arrow { transform: none; }
}

/* Subtle motion (amendments 2026-11-30, thread 0ce87755; source content/restructure/design-final/motion-30nov.css).
   Hover layer for mouse and trackpad only; scroll layer where view timelines exist; all off under reduced motion. */
/* 1. Interaction layer: hover and press (mouse and trackpad only) */
@media (hover: hover) and (pointer: fine) {
  .btn{transition:transform 140ms var(--ease-out),background-color 150ms ease,color 150ms ease,box-shadow 200ms ease}
  .btn:hover{transform:translateY(-1px)}
  .btn:active{transform:translateY(0) scale(.98)}
  /* Card hover: only the picture lifts; the title stays put and keeps its colour (Richard, 2026-12-01) */
  .work-card__media{transition:transform 260ms var(--ease-out),box-shadow 260ms var(--ease-out)}
  .work-card:has(.work-card__media-link:hover, .work-card__stretch:hover) .work-card__media{transform:translateY(-4px);box-shadow:0 14px 34px rgba(15,16,20,.12)}
  main a:not(.btn):not(.route):not(.pf-card):not(.work-card){transition:text-decoration-thickness 120ms ease}
  .hero__media{transition:transform 900ms var(--ease-out)}
  .hero__media:hover{transform:scale(1.015)}
  .demo-panel__compare>div{transition:translate 420ms var(--ease-out)}
  .demo-panel__compare:hover>div:first-child{translate:-4px -4px}
  .demo-panel__compare:hover>div:last-child{translate:6px 6px}
  .tool-grid li img{transition:transform 220ms var(--ease-out)}
  .tool-grid li:hover img{transform:translateY(-3px) scale(1.06)}
  .offer__icon,.own-use .offer__icon{transition:transform 260ms var(--ease-out)}
  .offer:hover .offer__icon{transform:rotate(-6deg) scale(1.06)}
  .faq__item>details>summary::after{transition:transform 260ms var(--ease-out),background-size 200ms ease}
  .faq__item>details[open]>summary::after{transform:rotate(180deg)}
  .faq__item>details>summary:hover h3{color:var(--coral-text)}
  .faq__item>details>summary h3{transition:color 150ms ease}
}
@media (prefers-reduced-motion: reduce) {
  .btn,.work-card,.work-card__media,.hero__media,.tool-grid li img,.offer__icon,.faq__item>details>summary::after{transition:none!important;transform:none!important}
  .demo-panel__compare>div{transition:none!important;translate:none!important}
  main a:not(.btn):not(.route):not(.pf-card):not(.work-card){transition:none!important}
}

/* 2. Scroll layer: moved to block 4 (2026-12-01); each part now plays once, on a clock, when it arrives. */
@keyframes after-in { from { opacity: 0; transform: translate(32px, 16px); } }
/* FAQ answers open and close smoothly where supported; elsewhere they snap open as now. */
:root { interpolate-size: allow-keywords; }
.faq__item > details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq__item > details[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) {
  .aa-dial svg circle:last-of-type, .aa-bar span, .demo-panel__compare > div:last-child { animation: none !important; }
  .faq__item > details::details-content { transition: none; }
}

/* 3. Livelier layer (2026-12-01). No JavaScript; everything sits inside no-preference, so reduced motion gets none of it. */
:root { --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes hero-drift { to { translate: 0 -36px; } }
@keyframes read-progress { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) {
  /* Page to page: a short crossfade instead of a hard cut; the header holds still. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 140ms ease both; }
  ::view-transition-new(root) { animation: vt-in 260ms ease 80ms both; }
  /* The header is swapped, not morphed: morphing scaled the logo for a moment when two pages' headers differed by a pixel. */
  ::view-transition-group(site-header), ::view-transition-new(site-header) { animation: none; }
  ::view-transition-old(site-header) { display: none; }

  /* Scroll-linked: hero image drifts up as it leaves; reading progress on Journal posts. */
  @supports (animation-timeline: view()) {
    .hero__media { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    body:has(.article-body)::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; background: var(--coral); transform-origin: left center; animation: read-progress linear both; animation-timeline: scroll(root); }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* The arrow is the signature: it pulls back a touch, then springs forward. */
  a:hover .arrow { transform: translateX(6px); transition: transform 420ms var(--ease-spring); }
  /* Header links: the coral line draws in from the left (the line itself is defined with the header). */
  .primary-nav > a:not(.btn):not(.header-phone)::after { transition: transform 220ms var(--ease-out); }
}
/* 4. With js/motion.js (2026-12-01): card to case study, and once-only section reveals. */
@media (prefers-reduced-motion: no-preference) {
  /* Card to case study: the card's picture grows into the case study's main picture (motion.js names the clicked card). */
  .cover-img, .ba__grid > div:last-child .ba__shot { view-transition-name: case-media; }
  ::view-transition-group(case-media) { animation-duration: 480ms; animation-timing-function: var(--ease-in-out); }
  ::view-transition-old(case-media), ::view-transition-new(case-media) { height: 100%; object-fit: cover; }

  /* Section reveals (rewritten 2026-12-01). Each part rises once when it scrolls into view and then stays put:
     no tie to scroll position, so nothing fades back out or replays. motion.js adds .io-reveal to the page,
     .seen to parts already on screen at load (no animation) and .in to each part as it arrives. No script: all visible. */
  @media screen {
    .io-reveal .reveal > .container:not(.in):not(.seen), .io-reveal .stagger > :not(.in):not(.seen), .io-reveal .quote__mark:not(.in):not(.seen) { opacity: 0; }
  }
  .io-reveal .reveal > .container.in, .io-reveal .stagger > .in { animation: rise 500ms var(--ease-out) backwards; }
  .io-reveal .stagger > .in:nth-child(2) { animation-delay: 60ms; }
  .io-reveal .stagger > .in:nth-child(3) { animation-delay: 120ms; }
  .io-reveal .stagger > .in:nth-child(4) { animation-delay: 180ms; }
  .io-reveal .stagger > .in:nth-child(n+5) { animation-delay: 240ms; }
  .io-reveal .demo-panel__compare > .in:last-child { animation: after-in 600ms var(--ease-out) 120ms backwards; }
  .io-reveal .quote__mark.in { animation: qpop 500ms var(--ease-out) backwards; }
  .io-reveal .aa-dial svg circle:last-of-type { transition: stroke-dasharray 900ms var(--ease-out); }
  .io-reveal .aa-dial:not(.in):not(.seen) svg circle:last-of-type { stroke-dasharray: 0 351.9; }
  .io-reveal .sc-dial svg circle:last-of-type { transition: stroke-dashoffset 900ms var(--ease-out); }
  .io-reveal .sc-dial:not(.in):not(.seen) svg circle:last-of-type { stroke-dashoffset: 351.9; }
  .io-reveal .aa-bar span { transform-origin: left center; transition: transform 800ms var(--ease-out); }
  .io-reveal .aa-bar:not(.in):not(.seen) span { transform: scaleX(0); }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .quotes__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  /* Header: name + Call on one row, links below; the CTAs live in the bottom bar */
  .site-header__inner { row-gap: 4px; }
  .primary-nav { gap: 0 22px; }
  .primary-nav > a:not(.header-phone) { min-height: 44px; display: inline-flex; align-items: center; }
  .header-ctas { display: none; }
  .header-phone { position: absolute; top: 16px; right: var(--gutter); min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
  .header-phone__num { display: none; }
  .header-phone__call { display: inline; }

  /* Main buttons full width; text links stay inline */
  main .btn { width: 100%; }


  /* Work cards swipe, edge to edge */
  .work-grid--swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .work-grid--swipe::-webkit-scrollbar { display: none; }
  .work-grid--swipe > * { flex: 0 0 78%; scroll-snap-align: start; }
  .work-grid--swipe::after { content: ""; flex: 0 0 18px; }

  /* Demo panel full bleed so the form gets the width */
  .demo-panel { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: 40px var(--gutter); grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .demo-panel__text h3 { font-size: 28px; }

  /* Fixed call bar */
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1 1 0; min-height: 48px; }
  body { padding-bottom: 72px; }
}

/* ---------- Fixes after first render (2026-11-28) ---------- */
.steps { margin: 0; padding: 0; list-style: none; }
.stack-form .btn, .form-grid .btn { align-self: flex-start; }
@media (max-width: 700px) {
  .stack-form .btn, .form-grid .btn { align-self: stretch; }
}
@media (max-width: 700px) {
  .quote__logos { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---------- Mobile hero above the fold; bar slides in once you scroll (canvas, 2026-11-28) ---------- */
@keyframes mbar-in { 0%, 55% { transform: translateY(110%); } 100% { transform: none; } }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .hero { padding-top: 36px; }
  .hero__inner { gap: 20px; }
  .hero .h1 { font-size: 40px; line-height: 1.04; }
  .hero .lede { font-size: 17px; }
  @supports (animation-timeline: scroll()) {
    .mbar { animation: mbar-in linear both; animation-timeline: scroll(root); animation-range: 0px 520px; }
  }
}
@media (prefers-reduced-motion: reduce) { .mbar { animation: none !important; } }

/* ---------- Hero with a visual on the right (canvas, 2026-11-28) ---------- */
.hero__row { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.hero__row .hero__inner { flex: 1.25 1 520px; min-width: 0; }
.hero__row .h1 { font-size: var(--fs-h1-page); max-width: none; }
.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__media { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); object-fit: cover; }
.placeholder--dark { flex-direction: column; gap: 16px; padding: 32px; background: var(--ink); border: 0; color: var(--grey-on-dark); font-size: 15px; line-height: 1.5; }
@media (max-width: 700px) {
  .hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .hero__row .h1 { font-size: 40px; line-height: 1.04; }
}

/* Every page title is 40px on phones (amendments 2026-11-30; was 34px) */
@media (max-width: 700px) {
  .h1, .h1--page { font-size: 40px; line-height: 1.04; }
}

/* Phone hero: image straight under the buttons (canvas, 2026-11-28; trust line removed 2026-11-30) */
@media (max-width: 700px) {
  .hero__row { gap: 20px; }
  .hero__row .hero__inner { display: contents; }
  .hero__row .hero__inner > * { flex: 1 1 100%; }
  .hero__visual { order: 2; flex: 1 1 100%; }
}

/* ---------- Burger menu (phones) — canvas 2026-11-28, pattern after Open / inDrive on Mobbin ---------- */
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); cursor: pointer; }
.burger { display: none; }
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--white); display: flex; flex-direction: column; overflow-y: auto; }
.mmenu[hidden] { display: none; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.mmenu__nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 0; }
.mmenu__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 30px/1.15 var(--font-display); color: var(--ink); text-decoration: none; }
.mmenu__link span { color: var(--coral-text); font-size: 24px; }
.mmenu__link[aria-current="page"] { color: var(--coral-text); }
.mmenu__small { display: flex; flex-wrap: wrap; gap: 0 20px; padding-top: 8px; }
.mmenu__small a { min-height: 44px; display: inline-flex; align-items: center; color: var(--grey); text-decoration: none; font-size: 15px; }
.mmenu__foot { margin-top: auto; padding: 28px var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px; }
.mmenu__foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }
@media (max-width: 700px) {
  .site-header__inner { flex-wrap: nowrap; }
  .primary-nav > a:not(.header-phone) { display: none; }
  .burger { display: inline-flex; position: absolute; top: 14px; right: var(--gutter); }
  .header-phone { top: 14px; right: calc(var(--gutter) + 52px); width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .header-phone__call { display: none; }
}
@media (min-width: 1024px) { .mmenu { display: none !important; } }

/* Phone: the call button lives in the menu, not the header (canvas, 2026-11-28) */
.mmenu__contact { text-align: center; }
@media (max-width: 700px) {
  .header-phone { display: none; }
}

/* Menu: secondary links stacked (canvas, 2026-11-28) */
.mmenu__small { flex-direction: column; align-items: flex-start; gap: 0; }

/* ============================================================
   Step 3 components (2026-11-28): AI setup, Websites, Work
   ============================================================ */

/* Hero with a side panel (AI setup "Start here", Websites price) */
.hero--even { padding-bottom: var(--hero-top); }
.hero--short { padding-bottom: clamp(48px, 5.5vw, 72px); }
.hero-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.hero-split__main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-split__main .lede { max-width: 640px; }
.side-panel { flex: 1 1 300px; min-width: 0; background: var(--cream); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.side-panel h2 { font-size: 26px; line-height: 1.2; }
.side-panel .btn { margin-top: 8px; }
.side-panel__from { font-size: 15px; color: var(--grey); }
.side-panel__price { font: 500 64px/1 var(--font-display); }
.side-panel__note { color: var(--grey); padding-bottom: 14px; border-bottom: 1px solid var(--line-cream); }
.tick { display: flex; gap: 10px; }
.tick::before { content: "→"; color: var(--coral-text); }

/* Tool logos */
.tools { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.tools__title { font-size: 15px; font-weight: 500; }
/* Logos only, name in alt and title (amendments 2026-11-30) */
.tool-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; max-width: 680px; }
.tool-grid li { display: flex; align-items: center; border: 0; padding: 0; height: auto; }
.tool-grid img { flex: none; width: 32px; height: 32px; }
.tool-grid li:last-child { font-size: 15px; color: var(--grey); }

/* AI setup: consultancy block in the hero panel, advice card after the setups list */
.side-panel__extra { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line-cream); }
.side-panel__extra h3 { font: 500 21px/1.25 var(--font-display); }
.side-panel__extra p { color: var(--grey); }
.side-panel__extra .btn { margin-top: 6px; }
.advice-card { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; margin-top: 32px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line-cream); border-radius: var(--radius); color: var(--grey); }
.advice-card__icon { grid-row: 1 / span 3; align-self: start; }
.advice-card > h3, .advice-card > p, .advice-card > .link-strong { grid-column: 2; }
.advice-card > h3 { font: 500 22px/1.25 var(--font-display); color: var(--ink); }
.advice-card > .link-strong { justify-self: start; margin-top: 6px; }

.own-use, .pair__text > .own-use { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--ink); font-weight: 500; } /* rule above removed 2026-12-01 */

/* Whole card is one link (AI setup "Recent AI work") */
.work-card { position: relative; }
.work-card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.work-card:has(.work-card__stretch):focus-within { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: var(--radius); }
.work-card__stretch:focus-visible { outline: none; }

/* Card image links to the card's first link (Home, Websites); the text link stays the one in the Tab order */
.work-card__media-link { display: block; border-radius: var(--radius); }
.work-card__media-link .work-card__media { display: block; }

/* Inline demo form (Websites hero) */
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 760px; }
.inline-form .field { flex: 999 1 240px; min-height: 60px; padding: 0 18px; font-size: 18px; }
.inline-form .field[type="email"] { flex: 1 1 200px; }
.inline-form .btn { flex: 0 0 auto; }
.inline-form .contact-form__status { flex: 1 1 100%; }
.hero-note { font-size: 15px; color: var(--grey); }
.hero-note a { font-weight: 500; }

/* Offer columns (AI setup "What I build") */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.offer { display: flex; flex-direction: column; gap: 14px; }
.offer__head { display: flex; align-items: center; gap: 12px; }
.offer__head h3 { font-size: 24px; line-height: 1.2; }
.offer__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius); background: var(--coral-tint); color: var(--coral-text); display: inline-flex; align-items: center; justify-content: center; }
.offer > p:not(.offer__label) { color: var(--grey); }
.offer__label { font-size: 14px; font-weight: 600; margin-top: 4px; }
.arrow-list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.arrow-list li { position: relative; padding-left: 18px; }
.arrow-list li::before { content: "→"; position: absolute; left: 0; color: var(--coral-text); }

/* Feature cards with a picture (Websites "What I build") */
/* Websites "Online stores": platform logos beside the heading (amendments 2026-11-30) */
.store-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store-logos { display: inline-flex; align-items: center; gap: 14px; padding-left: 20px; border-left: 1px solid var(--line); }
.store-logos img { flex: none; height: 22px; width: auto; }
@media (max-width: 700px) { .store-logos { padding-left: 0; border-left: 0; } }
/* The logos sit inside .feature, whose picture rule (full width, 4:3, cover) cropped them (2026-12-01). */
.feature .store-logos img { width: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; }
/* About hero buttons (amendments 2026-11-30) */
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.about-ctas .btn { gap: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.feature h3 { font-size: 24px; line-height: 1.2; }
.feature p { color: var(--grey); }

/* Rows on cream (FAQ-style lists, "what every build includes") */
.section--cream .faq__item { border-color: var(--line-cream); }
.faq__item--display h3 { font: 500 21px/1.25 var(--font-display); }
.faq__item--display p { margin-top: 6px; }
.faq__head > p { font-size: 18px; color: var(--grey); }
.row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 48px; }
.row-link { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.row-link--todo { color: var(--grey); font-weight: 400; }
/* "What every build includes" (2026-12-01): white tiles on cream in place of six ruled rows; evidence links line up along the bottom. */
.row-grid--tiles { gap: 16px; }
.row-grid--tiles > .faq__item { display: flex; flex-direction: column; padding: 28px; border: 0; border-radius: var(--radius); background: var(--white); }
.row-grid--tiles .row-link { margin-top: auto; padding-top: 18px; align-self: flex-start; }

/* Section heads with no intro text */
.h2--xs { font-size: 24px; line-height: 1.2; }
.h2--sm { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.stack-md { display: flex; flex-direction: column; gap: 28px; }
.section-intro--tight { margin-bottom: 0; max-width: 760px; }

/* Dark section extras */
.how__lede, .section-intro .how__lede { font-size: 18px; color: var(--grey-on-dark); }

/* Price and safety (AI setup) */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: stretch; }
.price-card { background: var(--cream); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.price-card > p { color: var(--grey); }
.price-rows { margin-top: 4px; }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-cream); }
.price-rows li:last-child { border-bottom: 0; }
.price-rows strong { font: 500 26px/1.2 var(--font-display); white-space: nowrap; }
.price-card .price-card__example { padding-top: 14px; border-top: 1px solid var(--ink); }
.price-card__go { margin-top: auto; padding-top: 8px; font-weight: 500; }
.pair__text { display: flex; flex-direction: column; gap: 14px; padding-block: 36px; }
.pair__text > p { color: var(--grey); }

/* Option cards (Websites "Want to keep your current site?") */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.option { background: var(--cream); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.option h2, .option h3 { font-size: 24px; line-height: 1.2; }
.option p { color: var(--grey); }
.option a { margin-top: auto; font-weight: 500; }
.section--flush-bottom { padding-bottom: 0; }

/* Work cards: four across, name first (Websites "Recent builds") */
.work-grid--four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.quote--solo { margin-top: clamp(64px, 7vw, 104px); max-width: 900px; }

/* Work page: featured and filterable cards */
.feature-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px 32px; }
.case-card { display: flex; flex-direction: column; gap: 14px; }
.case-card__media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.case-card__media-link { display: block; border-radius: var(--radius); }
.case-card__media-link .case-card__media { display: block; transition: opacity 200ms var(--ease-out); }
.case-card__media-link:hover .case-card__media { opacity: 0.9; }
.case-card__meta { font-size: 14px; color: var(--grey); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.case-card__meta img { height: 15px; width: auto; }
.case-card h3 { font-size: 28px; line-height: 1.15; }
.case-card__result { font: 400 16px/1.5 var(--font-body); color: var(--grey); }
.case-card__result span { font: inherit; color: inherit; }
.case-card__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 500; }
.case-card--small { gap: 10px; }
.case-card--small h3 { font-size: 22px; }
.case-card--small .case-card__result { font: 15px/1.6 var(--font-body); color: var(--grey); }

.works { display: flex; flex-direction: column; gap: 28px; }
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; } /* the rule above went with the Featured row (2026-12-01) */
.works__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 24px; }
.filter { border: 0; margin: 0; padding: 0; min-width: 0; min-inline-size: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.filter legend { position: absolute; left: -9999px; }
.filter input, .more-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-cream); border-radius: 100px; background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.filter label span { color: var(--grey); font-weight: 400; }
.filter input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter input:checked + label span { color: var(--grey-on-dark); }
.filter input:focus-visible + label, .more-toggle:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 2px; }
/* data-type is a space-separated list, so a card can sit under more than one filter (Cullins Yard: "web ai"). */
.works:has(#f-ai:checked) .case-card:not([data-type~="ai"]),
.works:has(#f-tool:checked) .case-card:not([data-type~="tool"]),
.works:has(#f-web:checked) .case-card:not([data-type~="web"]) { display: none; }
.works:has(#f-all:checked):not(:has(#w-more:checked)) .works__grid > :nth-child(n+13) { display: none; }
.works__more { display: none; align-self: center; }
.works:has(.works__grid > :nth-child(13)):has(#f-all:checked):not(:has(#w-more:checked)) .works__more { display: inline-flex; }
/* The checkbox follows its label: hidden (and out of the tab order) whenever "Show all" isn't shown (2026-12-01). */
.more-toggle { display: none; }
.works:has(.works__grid > :nth-child(13)):has(#f-all:checked):not(:has(#w-more:checked)) .more-toggle { display: block; }

.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.btn-start { align-self: flex-start; }

.closing { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between; }
.closing__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.closing__text p { font-size: 18px; color: var(--grey); }
.closing__foot { flex: 1 1 100%; padding-top: 32px; border-top: 1px solid var(--line); color: var(--grey); }
.closing__foot a { font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
  /* Case cards lift from their picture link only; option panels are not links, so they no longer lift (2026-12-01). */
  .case-card:has(.case-card__media-link:hover) { transform: translateY(-3px); }
  .case-card { transition: transform 220ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .option, .case-card, .filter label { transition: none; }
  .option:hover, .case-card:hover { transform: none; }
}

@media (max-width: 700px) {
  .tool-grid { gap: 22px 28px; }
  .tool-grid img { width: 28px; height: 28px; }
  .advice-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .advice-card__icon { grid-row: auto; margin-bottom: 6px; }
  .advice-card > h3, .advice-card > p, .advice-card > .link-strong { grid-column: 1; }
  /* AI setup hero on phones: title, text, Start here panel, then the logos */
  .hero-split--ai { gap: 20px; }
  .hero-split--ai .hero-split__main { display: contents; }
  .hero-split--ai .hero-split__main > * { flex: 1 1 100%; }
  .hero-split--ai .side-panel { order: 2; }
  .hero-split--ai .tools { order: 3; }
  .inline-form .btn { flex: 1 1 100%; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .filter label { white-space: nowrap; }
}
.hero__inner--tight { gap: 22px; }
.hero__inner--tight .h1 { max-width: 900px; }
.hero__inner--tight .lede { max-width: 680px; }
.section--short { padding-bottom: clamp(48px, 6.8vw, 88px); }

/* ---------- Header and menu by screen size (CHANGES.md 2026-11-28; canvas "Header and menu by screen size") ---------- */
/* 1024 and up (2026-12-01): three groups. Logo; the page links beside it; then the phone number and the two
   buttons pushed to the right as the "reach me" group. The number stays visible at every desktop width
   (it used to shrink to a bare icon at 1024–1199) and reads as a contact detail, not a sixth link. */
@media (min-width: 1024px) {
  .site-header__inner { flex-wrap: nowrap; }
  /* Only the main site's header has the phone number; the portfolio header keeps its own layout. */
  .primary-nav:has(.header-phone) { flex: 1; flex-wrap: nowrap; gap: 28px; margin-left: clamp(8px, 2.5vw, 40px); white-space: nowrap; }
  .header-phone { margin-left: auto; color: var(--ink); font-size: 16px; font-weight: 600; }
  .primary-nav:has(.header-phone) .header-ctas { margin-left: -8px; }
  /* Portfolio header (2026-12-01): same arrangement, links beside the logo and the button pushed right. */
  .primary-nav[aria-label="Portfolio"] { flex: 1; flex-wrap: nowrap; margin-left: clamp(8px, 2.5vw, 40px); white-space: nowrap; }
  .primary-nav[aria-label="Portfolio"] > .btn { margin-left: auto; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Contact left the link row on 2026-12-01: "Get a price", "Free demo" and the phone number already go there. */
  .primary-nav:has(.header-phone) { gap: 16px; margin-left: 12px; } /* 16px since Audit joined the links (2026-12-01) */
  .primary-nav:has(.header-phone) .btn { white-space: nowrap; }
  .primary-nav:has(.header-phone) .header-ctas { margin-left: 0; }
}
/* 701–1023: logo, the last header button and the burger; the menu opens as a 440px panel from the right */
@media (min-width: 701px) and (max-width: 1023px) {
  .site-header__inner { flex-wrap: nowrap; }
  .primary-nav { margin-left: auto; gap: 12px; }
  .primary-nav > a:not(.btn), .header-ctas > .btn:not(:last-child) { display: none; }
  .burger { display: inline-flex; }
  .mmenu { left: auto; width: 440px; box-shadow: 0 0 0 100vmax rgba(15, 16, 20, 0.45); }
  .mmenu__top { justify-content: flex-end; }
  .mmenu__top .brand { display: none; }
}
/* 701–1023 (2026-12-01): the phone number sits beside "Get a price"; before, tablets had no call option in the header. */
@media (min-width: 701px) and (max-width: 1023px) {
  .primary-nav > a.header-phone { display: inline-flex; margin-right: 8px; color: var(--ink); font-size: 16px; font-weight: 600; white-space: nowrap; }
}

/* Spacing after the hero now the proof bands are gone (CHANGES.md 2026-11-28) */
.section--after-hero { padding-top: clamp(16px, 3vw, 40px); }
.section--after-hero-sm { padding-top: clamp(16px, 2vw, 24px); }

/* ============================================================
   Step 4 components (2026-11-28): About, Contact, Audit, FAQ, Privacy, 404
   ============================================================ */
.lift { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .lift { transition: none; } }
.accent-display { color: var(--coral-display); }
.lede--sm { font-size: 18px; color: var(--grey); }
.strong { font-weight: 500; }

/* Generic two-part layout: a narrow side and a wide body */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split--center { align-items: center; }
.split--wide-gap { gap: 56px; }
.split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; }
.split__half { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Ruled rows (About "How I use AI") */
.rows__item { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.section--dark .rows__item { border-color: var(--line-dark); }
.rows__item h3 { font-size: 21px; }
.rows__item p { color: var(--grey); }
.section--dark .rows__item p { color: var(--grey-on-dark); }
.rows__go { margin-top: 24px; font-weight: 500; }
.tick--ruled { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-panel--wide { flex: 1 1 420px; }
.side-panel--wide p { color: var(--grey); }
.side-panel__rule { padding-top: 14px; border-top: 1px solid var(--line-cream); }
/* The one positive line in "Who I'm not right for": ruled off, in ink and medium weight, with the coral arrow (2026-12-01). */
.side-panel--wide p.side-panel__fit { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-cream); color: var(--ink); font-weight: 500; }

/* About */
.hero--about { padding-bottom: clamp(56px, 7.4vw, 96px); }
.about-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-photo { flex: 1 1 300px; min-width: 0; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.about-photo img { border-radius: 100px; }
.about-hero__text { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.point-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.point { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.point h3 { font-size: 22px; }
.point p { color: var(--grey); }
.point a { font-weight: 500; }
.point-grid--plain .point { border-top: 0; padding-top: 0; } /* About: no rules over the three points (2026-12-01) */

/* Contact */
.ct { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.ct__left { flex: 5 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ct__left > .lede { font-size: 19px; }
.ways { margin-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.ways li { display: flex; align-items: center; gap: 14px; }
.ways__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--coral-tint); color: var(--coral-text); display: inline-flex; align-items: center; justify-content: center; }
.ways__text { display: flex; flex-direction: column; }
.ways__label { font-size: 14px; color: var(--grey); }
.ways__value { font-size: 18px; font-weight: 600; }
main .ways__value a:not(.btn) { color: var(--ink); }
main .ways__value a:not(.btn):hover { color: var(--coral-text); }
.ct__form { flex: 7 1 480px; min-width: 0; scroll-margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 32px; }
.ct__form h2 { font-size: 28px; margin-bottom: -4px; }
.radio-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.radio-row legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.radio-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.demo-strip { scroll-margin-top: 24px; }
.demo-strip__box { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.demo-strip__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-strip__text h2 { font-size: 28px; line-height: 1.2; }
.demo-strip__text p { color: var(--grey-on-dark); }
.demo-strip .inline-form { flex: 2 1 580px; min-width: 0; max-width: none; gap: 10px; }
.demo-strip .inline-form .field { flex: 1 1 200px; min-height: 52px; padding: 0 16px; font-size: 16px; }
/* 2026-12-01: visible labels over the fields; the text and the form are centred on each other in the box. */
.demo-strip .inline-form { align-items: flex-end; }
.demo-strip__field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.demo-strip__field label { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--white); }
.demo-strip .inline-form .demo-strip__field .field { flex: none; width: 100%; }
.demo-strip .inline-form .btn { min-height: 52px; }

.on-dark .contact-form__status, .on-dark .contact-form__status.is-success, .on-dark .contact-form__status.is-error { color: var(--white); }
.start-links { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.start-links a { font-weight: 500; }

/* Audit */
.score-wrap { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.score-wrap__head { display: flex; flex-direction: column; gap: 12px; }
.score-wrap__head .h2 { font-size: var(--fs-h2-dark); line-height: 1.12; }
.score-wrap__head p { color: var(--grey-on-dark); font-size: 18px; }
.scores { display: flex; flex-direction: column; gap: 22px; }
.score { display: flex; flex-direction: column; gap: 10px; }
.score__row { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.score--them .score__row { color: var(--grey-on-dark); }
.score__num { font: 500 22px/1.3 var(--font-display); color: var(--coral-display); }
.score--them .score__num { color: var(--white); }
.score__num small { font: 400 15px var(--font-body); color: var(--grey-on-dark); }
.score__bar { height: 12px; border-radius: 100px; background: var(--ink-raised); overflow: hidden; }
.score__bar span { display: block; height: 100%; border-radius: 100px; background: var(--coral-display); }
.score--them .score__bar span { background: var(--input); }
.score__bar--84 span { width: 84%; }
.score__bar--68 span { width: 68%; }
.scores__note { color: var(--grey-on-dark); padding-top: 18px; border-top: 1px solid var(--line-dark); }
.report-peek { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.report-peek a { font-weight: 500; }
/* Audit: coded summary of my own audit in place of the report screenshot (amendments 2026-11-30).
   Scores are the real 4 November 2026 audit: change them in audit.html (text, aria-label, bar classes). */
.audit-art { position: relative; display: flex; flex-direction: column; }
.aa-card { background: var(--white); color: var(--ink); border: 1px solid #E7E3DD; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.aa-main { padding: 28px 32px 52px; container-type: inline-size; }
.aa-label { font: 600 12px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin: 0 0 22px; }
.aa-body { display: flex; gap: 28px; align-items: center; }
.aa-dial { position: relative; flex: none; width: 132px; text-align: center; }
.aa-dial svg { display: block; }
.aa-score { position: absolute; top: 34px; left: 0; right: 0; font: 500 40px/1 var(--font-display); }
.aa-score small { display: block; font: 400 12px/1.6 var(--font-body); color: var(--grey); }
.aa-grade { margin-top: 12px; font: 500 13px/1.3 var(--font-body); }
.aa-cats { flex: 1; min-width: 0; display: grid; gap: 11px; }
.aa-cats li { display: grid; grid-template-columns: 172px minmax(40px, 1fr) 28px; align-items: center; gap: 12px; font: 400 14px/1.2 var(--font-body); }
.aa-cats li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-bar { height: 6px; border-radius: 3px; background: #E6E6E6; overflow: hidden; }
.aa-bar span { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.aa-bar--65 span { width: 65%; }
.aa-bar--76 span { width: 76%; }
.aa-bar--78 span { width: 78%; }
.aa-bar--80 span { width: 80%; }
.aa-bar--85 span { width: 85%; }
.aa-bar--99 span { width: 99%; }
.aa-bar--100 span { width: 100%; }
.aa-cats b { font-weight: 600; text-align: right; }
.aa-find { position: relative; align-self: flex-end; margin: -24px -12px 0 0; width: 260px; padding: 20px 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.aa-find .aa-label { margin-bottom: 14px; }
.aa-find ul { display: grid; gap: 10px; }
.aa-find li { display: flex; align-items: center; gap: 10px; font: 400 15px/1.2 var(--font-body); }
.aa-find b { margin-left: auto; font-weight: 600; }
.aa-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.aa-dot--crit { background: #D04205; }
.aa-dot--ser { background: #F3A435; }
.aa-dot--med { background: #9AA0AA; }
@container (max-width: 440px) {
  .aa-body { flex-direction: column; align-items: stretch; gap: 22px; }
  .aa-dial { margin: 0 auto; }
  .aa-cats li { grid-template-columns: 160px minmax(32px, 1fr) 28px; font-size: 13px; }
}
@media (max-width: 700px) {
  .aa-main { padding: 22px 20px; }
  .aa-find { align-self: stretch; width: auto; margin: 12px 0 0; box-shadow: none; }
}

/* Audit "What I check": one column, checks grid, then the findings card (amendments 2026-11-30) */
.checks { display: flex; flex-direction: column; }
.checks #check-h { margin-bottom: 12px; }
.checks__intro { max-width: 620px; margin-bottom: 40px; }
.checks .find-card { margin-top: 40px; }
@media (min-width: 1200px) {
  .checks .find-card { display: grid; grid-template-columns: minmax(220px, 300px) repeat(3, minmax(0, 1fr)); gap: 6px 32px; align-items: start; padding: 28px 32px; }
  .checks .find-card h3 { grid-column: 1; grid-row: 1; }
  .checks .find-card .small-print { grid-column: 1; grid-row: 2; }
  .checks .find-card .tick { grid-row: 1 / span 2; }
}
.find-card { margin-top: 12px; background: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.find-card h3 { font-size: 20px; }
.find-card .small-print { color: var(--grey); }
.find-card .tick { color: var(--grey); }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.check-grid li { padding: 18px 0 22px; border-top: 1px solid var(--line); font-weight: 500; }
@media (max-width: 1023px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } .check-grid li { padding: 16px 0; } }
.pair__col { display: flex; flex-direction: column; gap: 14px; }
.num-row { display: grid; grid-template-columns: 40px 1fr; }
.num-row__n { font: 500 16px/1.6 var(--font-display); color: var(--coral-text); }
.pair__col .small-print { margin-top: 8px; }
.contact--wide-form { gap: 56px; }
.contact--wide-form .contact__text { flex-basis: 340px; }
.contact--wide-form .contact__form { flex: 999 1 480px; }

/* FAQ */
.faq-page { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-page__head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq-page__body { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.faq-group h2 { font-size: 24px; padding-bottom: 8px; }
.faq__item a { font-weight: 500; }
.ask-card { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.ask-card strong { font: 500 20px var(--font-display); }
.ask-card span { color: var(--grey); }

/* Privacy and other long text */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 26px; line-height: 1.2; margin-top: 24px; }
.prose ul { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; list-style: disc; }
.prose li::marker { color: var(--coral-text); }
.prose strong { font-weight: 600; }

/* 404 */
.nf-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.nf-list li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.nf-list a { font-weight: 500; }
.nf-list p { color: var(--grey); }

@media (max-width: 700px) {
  .about-photo { order: 2; aspect-ratio: 4 / 3; max-width: none; }
  .about-hero { gap: 32px; }
  .ct { gap: 20px; }
  .ct__left { display: contents; }
  .ct__left > * { flex: 1 1 100%; }
  .ct__form { order: 2; margin: 20px calc(var(--gutter) * -1) 0; border-radius: 0; padding: 32px var(--gutter); flex: 1 1 100%; }
  .demo-strip .inline-form .btn { flex: 1 1 100%; }
}
.stack-lg--40 { gap: 40px; }
.h2--dark { font-size: var(--fs-h2-dark); line-height: 1.12; }
.section--hero-y { padding-block: var(--hero-top); }
.hero--contact, .hero--faq { padding-bottom: var(--section-y); }
.overline--sm { font-size: 17px; }

/* ============================================================
   Step 5 components (2026-11-28): case studies and the product-design Portfolio
   ============================================================ */
/* Case-study hero */
.hero--case { padding-top: clamp(48px, 5.5vw, 72px); padding-bottom: 56px; }
.hero--case-pf { padding-bottom: 48px; }
.case-hero { display: flex; flex-direction: column; gap: 24px; }
.hero--case-pf .case-hero { gap: 22px; }
.case-hero .h1 { max-width: 980px; }
.case-hero .lede { max-width: 760px; }
.case-logo { width: 88px; height: auto; }
main a.back-link:not(.btn) { font-size: 15px; font-weight: 500; color: var(--grey); text-decoration: none; align-self: flex-start; }
main a.back-link:not(.btn):hover { color: var(--ink); }
.case-dl { margin: 16px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px clamp(24px, 3vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.hero--case-pf .case-dl { margin-top: 12px; }
.case-dl dt { font-size: 13px; color: var(--grey); }
.case-dl dd { margin: 4px 0 0; }
/* Facts row (2026-12-01, replaces content-sized and auto-fit columns): set widths, and the number of columns
   follows the number of facts, so a row never leaves one fact on its own and no column can be squeezed out.
   1 column on phones, 2 from 520px; 3, 5 and 6 facts go to 3 columns from 768px (3, 3+2, 3+3);
   4 facts go to 4 columns from 1100px; 5 facts go to 5 columns from 1280px. */
@media (min-width: 520px) { .case-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .case-dl:has(> :nth-child(3):last-child),
  .case-dl:has(> :nth-child(5):last-child),
  .case-dl:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .case-dl:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Client case studies: Sector · Location · Role · Build. Location is always short and Build always longest. */
  .case-dl--fit:has(> :nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (min-width: 1280px) { .case-dl:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Outcome scorecard (client case studies, CR-006 2026-11-30): replaces the Results band */
.outcome { display: flex; flex-direction: column; gap: 28px; }
.outcome__intro { display: flex; flex-direction: column; gap: 14px; }
.outcome__intro .lede { max-width: 820px; }
.outcome__intro .muted { max-width: 820px; }
.scorecard { display: flex; flex-direction: column; gap: 20px; }
.scorecard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; }
.scorecard__head h3 { font-size: 18px; font-weight: 600; }
.scorecard__head p { font-size: 15px; color: var(--grey); }
.sc-panel { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.sc-dial { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sc-dial__ring { position: relative; width: 132px; height: 132px; }
.sc-dial__value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-dial__num { font: 500 30px/1 var(--font-display); }
.sc-dial__of { font-size: 12px; color: var(--grey); margin-top: 4px; }
.sc-dial figcaption { display: flex; flex-direction: column; gap: 2px; }
.sc-dial__name { font-size: 16px; font-weight: 600; }
.sc-dial__was { font-size: 14px; color: var(--grey); }
/* Plain figures, for case studies with measurements but no scores out of 100 (2026-12-01). */
.sc-stat { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sc-stat__num { font: 500 clamp(36px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.01em; }
.sc-stat__num small { font-size: 0.45em; font-weight: 500; color: var(--grey); letter-spacing: 0; }
.sc-stat figcaption { display: flex; flex-direction: column; gap: 2px; }
.sc-stat__name { font-size: 16px; font-weight: 600; text-wrap: balance; }
.sc-stat__note { font-size: 14px; color: var(--grey); }
.sc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 40px; }
.sc-facts p { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-cream); padding-top: 14px; }
.sc-facts__label { font-size: 14px; color: var(--grey); }
/* The live-site button sits beside the Launched fact, right-aligned where there is room (2026-12-01). */
.sc-facts p.sc-facts__action { border-top: 0; padding-top: 0; align-items: flex-end; justify-content: center; }
@media (max-width: 700px) { .sc-facts p.sc-facts__action { align-items: stretch; } }
.sc-facts__value { font-size: 17px; font-weight: 600; }
@media (max-width: 900px) { .sc-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sc-facts { grid-template-columns: 1fr; } }

/* Before and after */
.section--ba { padding-top: 0; }
.ba { display: flex; flex-direction: column; gap: 16px; }
.ba__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ba__grid > div { display: flex; flex-direction: column; gap: 10px; }
.ba__grid .compare-label { margin-bottom: 0; }
.ba__shot { width: 100%; aspect-ratio: 1600 / 1040; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.ba__shot.placeholder { background: none; }
.ba > a { align-self: flex-start; font-weight: 500; }

/* Brand swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.swatch { display: flex; flex-direction: column; gap: 10px; }
.swatch__chip { height: 96px; border-radius: var(--radius); }
.swatch__chip--light { border: 1px solid var(--line); }
.swatch__name { font-weight: 600; }
.swatch__name span { font-weight: 400; color: var(--grey); }
.swatch p:last-child { font-size: 14px; color: var(--grey); }
.text-760 { max-width: 760px; color: var(--grey); }

/* Screens */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.shot-grid figure, .screen-grid figure { display: flex; flex-direction: column; gap: 12px; }
.shot-grid img { width: 100%; aspect-ratio: 1280 / 832; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.shot-grid figcaption { font-size: 15px; color: var(--grey); }
.shot-grid--tall { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shot-grid--tall img { aspect-ratio: 4 / 5; }
.narrow-900 { max-width: 900px; }

/* Closing CTA foot with prev/next */
.closing__foot--nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top-color: var(--line-cream); }

/* Product-design case study */
.cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.section--cover { padding-bottom: clamp(48px, 5.5vw, 72px); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.glance > div { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.label-caps { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); }
.label-caps--coral { color: var(--coral-text); }
.glance p:last-child { font-size: 18px; }
.split > h2 { flex: 1 1 300px; min-width: 0; }
.split__body--gap { gap: 16px; }
.split__body--gap > p, .cs-prose > p { font-size: 18px; color: var(--grey); }
.research-head { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.research-head__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.research-head__text p { color: var(--grey-on-dark); font-size: 18px; }
.insight { flex: 1 1 400px; min-width: 0; margin: 0; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.insight .label-caps { color: var(--grey-on-dark); }
.insight p:last-child { font: 500 clamp(24px, 2.6vw, 30px)/1.25 var(--font-display); color: var(--coral-display); margin-top: 8px; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.screen-grid img, .screen-grid .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.section--dark .placeholder { background: none; border-color: var(--grey); color: var(--grey-on-dark); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.theme-grid .placeholder { aspect-ratio: 9 / 16; max-height: 420px; background: none; }
.theme-grid img { width: 100%; height: auto; border-radius: var(--radius); }
.key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px 24px; }
.key-grid figure { display: flex; flex-direction: column; gap: 10px; }
.key-grid img, .key-grid .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.key-grid .placeholder { background: none; }
.key-grid figcaption { font-size: 14px; color: var(--grey); }
.section--dark .point { border-color: var(--line-dark); }
.section--dark .point h3 { line-height: 1.25; }
.section--dark .point p { color: var(--grey-on-dark); }
.point-grid--dark { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.outcome-note { font-size: 20px; line-height: 1.5; color: var(--grey-on-dark); max-width: 860px; }
.next-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
main a.next-card { flex: 1 1 520px; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 20px; }
.next-card img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.next-card__text { display: flex; flex-direction: column; gap: 6px; }
.next-card__title { font: 500 26px/1.2 var(--font-display); }
.next-row > a:last-child { font-weight: 500; }
.section--rule-top { border-top: 1px solid var(--line-dark); }
.closing--dark .closing__text p { color: var(--grey-on-dark); }
.closing__links { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.closing__links a:not(.btn), .closing__links .todo { font-weight: 500; }
.todo { color: var(--grey); }
.section--dark .todo { color: var(--grey-on-dark); }
.btn.is-todo { cursor: default; opacity: 0.7; }

/* Generic case-study body for pages moved from the old template */
.cs-section { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.cs-section > h2 { flex: 1 1 300px; min-width: 0; }
.cs-prose { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* In a vertical stack the 560px basis would become a height and leave a blank gap under the text */
.stack-lg > .cs-prose { flex: none; }
.cs-prose ul { display: flex; flex-direction: column; gap: 12px; }
.cs-prose li { position: relative; padding-left: 22px; color: var(--grey); }
.cs-prose li::before { content: "→"; position: absolute; left: 0; color: var(--coral-text); }
.cs-prose strong { color: var(--ink); font-weight: 600; }
.cs-prose code { font-size: 0.92em; }
.cs-stack > * + * { margin-top: clamp(48px, 6vw, 80px); }
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.cs-gallery--tall { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cs-gallery img, .cs-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.cs-figure--logo img { max-width: 480px; margin-inline: auto; }

/* Product-design header, menu and footer */
.brand__sub { font: 400 15px var(--font-body); color: var(--grey); }
.pf-footer { background: var(--ink); color: var(--white); padding-block: 40px; border-top: 1px solid var(--line-dark); }
.pf-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 15px; }
.pf-footer p { color: var(--grey-on-dark); }
.pf-footer a { color: var(--white); font-weight: 500; }
.pf-footer a:hover { color: var(--coral-display); }

/* Portfolio page */
.pf-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pf-hero__text { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pf-hero__text .lede { max-width: 680px; }
.pf-photo { flex: 1 1 260px; min-width: 0; max-width: 340px; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.pf-photo img { border-radius: 100px; }
.hero--pf { padding-bottom: 64px; }
.avail { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--grey); }
.avail::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 100px; background: #2E8540; }
.btn-row--links { gap: 12px 20px; }
.btn-row--links > a:not(.btn) { font-weight: 500; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.pf-card, main a.pf-card:not(.btn) { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 0; transition: transform 220ms var(--ease-out); }
.pf-card img, .pf-card .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #FAFAFA; }
.pf-card .placeholder { background: none; }
/* Simple stacked card: 16px image to title, 6px title to text (amendments 2026-11-30) */
.pf-card > img, .pf-card > .placeholder { margin-bottom: 16px; }
.pf-card h3 { font-size: 24px; line-height: 1.2; }
.pf-card p:last-child { color: var(--grey); margin-top: 6px; }
.pf-cards--small { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pf-cards--small h3 { font-size: 20px; }
.pf-cards--small .pf-card p:last-child { font-size: 14px; }
@media (hover: hover) and (pointer: fine) { a.pf-card:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pf-card { transition: none; } a.pf-card:hover { transform: none; } }
.section-intro--10 { gap: 10px; max-width: 760px; margin-bottom: 0; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.h2--28 { font-size: 28px; }
.chips { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 15px; }

@media (max-width: 700px) {
  .brand__sub { display: none; }
  .pf-photo { aspect-ratio: 4 / 3; max-width: none; }
  .next-card img { width: 100%; }
}
.stack-md--14 { gap: 14px; }
.cover-img--natural { aspect-ratio: auto; height: auto; }

/* ============================================================
   Step 6 (2026-11-28): Journal, posts and the design-system page.
   Post body classes come from scripts/build.js (mdToHtml); ported from css/journal.css onto these tokens.
   ============================================================ */
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 15px/1 var(--font-display); letter-spacing: 0.02em; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline__text { display: flex; flex-direction: column; font-size: 15px; color: var(--grey); }
.byline__text strong { color: var(--ink); font-weight: 600; }

/* Journal index */
.post-feature-wrap { padding-top: 0; }
main a.post-feature:not(.btn) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px clamp(32px, 4vw, 64px); align-items: start; padding-top: 32px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-feature__title { font-size: var(--fs-h2); line-height: 1.12; margin-top: 12px; }
.post-feature__body { display: flex; flex-direction: column; gap: 22px; }
.post-feature__excerpt { font-size: 18px; color: var(--grey); }
main a.post-feature:hover .post-feature__title { color: var(--coral-text); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 32px; }
main a.post-card:not(.btn) { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-card h3 { font-size: 22px; line-height: 1.25; }
.post-card p { color: var(--grey); }
main a.post-card:hover h3 { color: var(--coral-text); }
.read-more { font-weight: 500; color: var(--coral-text); }

/* Post page */
.post-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.post-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); background: var(--ink); }
.section--post { padding-top: clamp(40px, 6vw, 72px); }
.article-body { max-width: 720px; margin-inline: auto; }
.article-body p { font-size: 19px; line-height: 1.7; margin-bottom: 1.4em; }
.article-body p.article-lead { font-size: 22px; line-height: 1.55; }
.article-body h2 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.2; margin: 1.8em 0 0.5em; }
.article-body h3 { font-size: 23px; line-height: 1.25; margin: 1.6em 0 0.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 19px; line-height: 1.65; margin-bottom: 0.5em; padding-left: 0.3em; }
.article-body li::marker { color: var(--coral-text); }
.article-body blockquote { border-left: 3px solid var(--coral); padding: 4px 0 4px 28px; margin: 1.8em 0; font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.article-body :not(pre) > code { font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.article-body pre.article-code { margin: 1.8em 0; padding: 20px 22px; background: var(--ink); border-radius: var(--radius); overflow-x: auto; }
.article-body pre.article-code code { font: 15px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--white); white-space: pre; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.6em 0; }
.article-body figure { margin: 2.2em 0; }
.article-body figcaption { font-size: 15px; color: var(--grey); margin-top: 12px; text-align: center; }
.article-figure img, .article-compare__item img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.article-compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.article-compare__item { margin: 0; }
.article-compare__item figcaption { text-align: left; margin-top: 10px; }
.article-compare__item--before figcaption::before, .article-compare__item--after figcaption::before { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.article-compare__item--before figcaption::before { content: "Before"; background: var(--cream); border: 1px solid var(--line-cream); color: var(--grey); }
.article-compare__item--after figcaption::before { content: "After"; background: var(--ink); color: var(--white); }
.article-compare__caption { margin-top: 16px; }
.article-scores { margin: 2.2em 0; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.score-grid .score { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); gap: 0; }
.score-grid .score dt { font-size: 15px; color: var(--grey); margin-bottom: 6px; }
.score-grid .score dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.score__before { font-size: 20px; color: var(--grey); text-decoration: line-through; text-decoration-thickness: 1px; }
.score__arrow { color: var(--grey); }
.score__after { font: 500 32px/1 var(--font-display); }
.score__note { flex-basis: 100%; font-size: 14px; color: var(--grey); }
.article-scores figcaption { text-align: left; }
.article-table, .data-table { margin: 2em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.article-table:focus-visible, .data-table:focus-visible { outline-offset: 2px; }
.article-table table, .data-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.article-table caption { caption-side: bottom; padding: 10px 16px; font-size: 15px; color: var(--grey); text-align: left; }
.article-table th, .article-table td, .data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table th, .data-table th { font-weight: 600; background: var(--cream); white-space: nowrap; }
.article-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.align-right { text-align: right !important; }
.align-center { text-align: center !important; }
.article-foot { max-width: 720px; margin: clamp(48px, 6vw, 80px) auto 0; } /* the rule above went with the Featured row (2026-12-01) */
.article-foot .avatar-initials { width: 56px; height: 56px; font-size: 20px; }
.article-foot__name { font: 500 18px var(--font-display); }
.article-foot__bio { font-size: 15px; color: var(--grey); margin-top: 4px; }
@media (min-width: 1140px) { .article-body .article-wide { margin-inline: -160px; } }
@media (max-width: 700px) {
  .article-body p, .article-body li { font-size: 18px; }
  .article-body p.article-lead { font-size: 20px; }
  .article-compare__grid { grid-template-columns: 1fr; gap: 28px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-grid .score { padding: 14px 16px; }
  .score__after { font-size: 26px; }
  .article-table th, .article-table td { padding: 10px 12px; }
  .article-table table:has(th:nth-child(4)) { min-width: 34rem; }
  .post-cover { aspect-ratio: 4 / 3; }
}

.prose--wide { max-width: 760px; }
.prose--wide p { font-size: 18px; color: var(--grey); }
.prose--wide strong { color: var(--ink); }

/* ---------- Layout review (2026-12-01): spacing and column widths on the main pages ---------- */
/* Home "Recent work": five cards left an empty slot in a three-column grid. Now two large, then three. */
@media (min-width: 1024px) {
  .work-grid--lead2 { grid-template-columns: repeat(6, 1fr); }
  .work-grid--lead2 > * { grid-column: span 2; }
  .work-grid--lead2 > :nth-child(-n+2) { grid-column: span 3; }
}
/* Enquiry forms: single fields ran 725–780px wide. Short fields now sit in pairs; the message stays full width. */
@media (min-width: 900px) {
  .contact__form.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-items: start; }
  .contact__form.form-grid > * { grid-column: 1 / -1; }
  .contact__form.form-grid > div:has(> [name="name"]),
  .contact__form.form-grid > div:has(> [name="email"]),
  .contact__form.form-grid > div:has([name="about"]),
  .contact__form.form-grid > div:has(> [name="website"]),
  .contact__form.form-grid > div:has(> [name="current_website"]),
  .contact__form.form-grid > div:has(> [name="main_search"]) { grid-column: auto; }
}
/* Reading width: FAQ answers ran to 95–99 characters a line. 68ch still measured 89 (ch is a "0", wider than an average letter), so 60ch: about 78 (site audit 2026-12-01). */
.faq__item > details > p { max-width: 60ch; }
.prose { max-width: 680px; }
/* Phones: padded cards left the text only about 245px wide. Less padding, and Home's four service cards
   put the icon beside the title, so the section is shorter. */
@media (max-width: 700px) {
  .route { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px 14px; padding: 22px; }
  .route__icon { width: 44px; height: 44px; border-radius: 10px; }
  .route > :not(.route__icon):not(h3) { grid-column: 1 / -1; }
  .option { padding: 24px; }
}

/* ---------- Before and after stage (2026-12-01, with js/motion.js) ----------
   One browser frame at full width. It opens on the old site, wipes across to the new one, then the new
   home page scrolls slowly top to bottom and returns. Before/After buttons let the visitor switch.
   No script: both screenshots show, one under the other. Reduced motion: no autoplay, instant switch. */
.ba-stage { border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: var(--white); box-shadow: 0 12px 32px rgba(15, 16, 20, 0.08); }
.ba-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 6px 12px 6px 16px; background: var(--cream); border-bottom: 1px solid var(--line-cream); }
.ba-stage__dots { display: inline-flex; gap: 6px; }
.ba-stage__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-cream); }
.ba-stage__tabs { display: none; gap: 4px; padding: 3px; border-radius: 100px; background: var(--white); border: 1px solid var(--line-cream); }
.ba-stage__tab { min-height: 34px; padding: 0 16px; border: 0; border-radius: 100px; background: transparent; font: 600 14px/1 var(--font-body); color: var(--grey); cursor: pointer; }
.ba-stage__tab[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.ba-stage__tab:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.ba-stage__view img { display: block; width: 100%; height: auto; }
.ba-stage__new { max-height: 62.5vw; overflow: hidden; border-top: 1px solid var(--line); }
.ba-stage.is-ready .ba-stage__tabs { display: inline-flex; }
.ba-stage.is-ready .ba-stage__view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; container-type: size; }
.ba-stage.is-ready .ba-stage__old { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top; }
.ba-stage.is-ready .ba-stage__new { position: absolute; inset: 0; max-height: none; border-top: 0; clip-path: inset(0 100% 0 0); }
.ba-stage.is-ready.is-after .ba-stage__new { clip-path: inset(0); }
@keyframes ba-scroll { 0%, 10% { transform: none; } 82%, 90% { transform: translateY(calc(-100% + 100cqh)); } 100% { transform: none; } }
@keyframes ba-edge { from { transform: translateX(0); opacity: 1; } 95% { opacity: 1; } to { transform: translateX(100cqw); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ba-stage.is-ready .ba-stage__new { transition: clip-path 900ms var(--ease-in-out); }
  .ba-stage.is-ready .ba-stage__view::after { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 2px; background: var(--coral); opacity: 0; pointer-events: none; }
  .ba-stage.is-ready.is-after .ba-stage__view::after { animation: ba-edge 900ms var(--ease-in-out) both; }
  .ba-stage.is-ready.is-after .ba-stage__page { animation: ba-scroll var(--ba-dur, 24s) ease-in-out 600ms 1; }
  .section--ba .ba-stage { view-transition-name: case-media; } /* case studies only; Work also shows a stage (2026-12-01) */
}

/* ---------- Home free-demo panel (2026-12-01): the right side explains the offer in three steps
   instead of showing screenshots; the left is a small question, the offer as the heading, then the form. ---------- */
.demo-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.demo-panel__eyebrow { font-size: 16px; font-weight: 500; color: var(--coral-text); }
.demo-panel__text h3 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.01em; }
.demo-panel .stack-form { margin-top: 16px; }
.demo-how { min-width: 0; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.demo-how__title { font: 600 13px/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.demo-how__steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.demo-how__steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.demo-how__steps li:last-child { padding-bottom: 0; }
.demo-how__steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--coral-tint); }
.demo-how__n { width: 36px; height: 36px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-text); display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--font-body); }
.demo-how__steps h4 { margin: 0; font: 500 20px/1.25 var(--font-display); padding-top: 5px; }
.demo-how__steps p { margin-top: 4px; font-size: 15px; color: var(--grey); }
main a.demo-how__example:not(.btn) { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.demo-how__example img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.demo-how__kicker { display: block; font-size: 13px; font-weight: 400; color: var(--grey); }
@media (max-width: 900px) { .demo-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .demo-how__steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .demo-how__steps li:not(:last-child)::before { left: 15px; top: 36px; }
  .demo-how__n { width: 32px; height: 32px; }
  .demo-how__steps h4 { font-size: 19px; padding-top: 3px; }
}
@media (hover: hover) and (pointer: fine) { main a.demo-how__example:not(.btn):hover { color: var(--coral-text); } }

/* ---------- Skill demo (2026-12-01): the Cullins Yard skill, opened and used start to finish ----------
   A small app window (.skill-demo__win) inside a cream stage. js/skill-demo.js plays it once when it
   is on screen and moves the window like a camera: in on the typing, in on the price, in on the post.
   The window uses the system font and neutral greys on purpose, so it reads as the skill and not as
   part of this site. No script: the last request and its post, still.
   The menu is one real sample image, cropped by .skill-demo__sheet. The "before" price is the same
   image shown 92px lower through .skill-demo__patch (Buffalo Cauliflower Wings' 7.99 over the
   calamari's 8.99). */
.skill-demo { position: relative; aspect-ratio: 1 / 1; padding: clamp(14px, 4.5%, 24px); background: var(--cream-deep); border-radius: var(--radius); overflow: hidden; }
.skill-demo__win { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; background: var(--white); border: 1px solid var(--line-cream); border-radius: 10px; overflow: hidden; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.4; color: var(--ink); box-shadow: 0 12px 32px -16px rgb(15 16 20 / .28); transition: transform 900ms cubic-bezier(.65, 0, .25, 1), opacity 400ms var(--ease-out), background-color 500ms var(--ease-out), border-color 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.skill-demo__top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.skill-demo__top img { width: 20px; height: 20px; }
.skill-demo__thread { display: grid; min-height: 0; padding: 12px; }
.skill-demo__turn { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; }
.skill-demo__turn--empty { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.skill-demo__turn--empty img { width: 52px; height: 52px; margin-bottom: 6px; }
.skill-demo__hello { font-size: 17px; font-weight: 600; }
.skill-demo__hint { font-size: 13px; color: var(--grey); }
.skill-demo__you { align-self: flex-end; max-width: 88%; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--white); }
.skill-demo__says { font-size: 13px; color: var(--grey); }
.skill-demo__art { flex: 1 1 0; align-self: stretch; min-height: 0; container-type: size; }
.skill-demo__menu { position: relative; width: min(100cqw, 100cqh * 820 / 765); aspect-ratio: 820 / 765; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
/* source pixels: crop x 130-950, y 95-860 of the 1080 x 1350 sample */
.skill-demo__sheet { position: absolute; left: -15.854%; top: -12.418%; width: 131.707%; }
.skill-demo__sheet > img { width: 100%; }
/* source pixels: the whole price, x 488-522, y 616-634, taken from 92px lower */
.skill-demo__patch { position: absolute; left: 45.185%; top: 45.63%; width: 3.148%; height: 1.333%; overflow: hidden; }
.skill-demo__patch img { position: absolute; max-width: none; width: 3176.47%; left: -1435.29%; top: -3933.33%; }
.skill-demo__mark { position: absolute; left: 44.9%; top: 45.4%; width: 3.8%; height: 1.75%; border-radius: 2px; background: #FFD84D; mix-blend-mode: multiply; transform-origin: 0 50%; }
.skill-demo__focus { position: absolute; left: 15.93%; top: 44.1%; width: 33.3%; height: 5%; }
.skill-demo__art:has(.skill-demo__post) { display: grid; justify-items: center; }
.skill-demo__post { display: block; height: 100cqh; width: auto; max-width: 100cqw; aspect-ratio: 4 / 5; border-radius: 6px; }
.skill-demo__bar { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 12px 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--input); border-radius: 23px; }
.skill-demo__text { flex: 1 1 auto; min-width: 0; }
.skill-demo__ph { color: var(--grey); }
.skill-demo__send { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); }
.skill-demo__caret { display: none; width: 1.5px; height: 1.15em; margin-right: 1px; vertical-align: -0.2em; background: var(--ink); animation: skill-caret 1s steps(1) infinite; }
@keyframes skill-caret { 50% { opacity: 0; } }
/* What shows: without the script, the last turn (.sd-final); with it, whatever the script has switched on */
.sd-el { opacity: 0; transform: translateY(8px); transition: opacity 350ms var(--ease-out), transform 450ms var(--ease-out); }
.skill-demo:not(.is-live) .sd-final, .skill-demo.is-live .sd-el.is-on { opacity: 1; transform: none; }
.skill-demo:not(.is-live) .skill-demo__patch, .skill-demo__patch:not(.is-on) { opacity: 0; }
.skill-demo__mark { opacity: 0; transform: scaleX(0); transition: transform 350ms var(--ease-out), opacity 150ms; }
.skill-demo.is-live .skill-demo__mark.is-on { opacity: 1; transform: none; }
.skill-demo.is-live .skill-demo__caret { display: inline-block; }
.skill-demo.has-text .skill-demo__ph, .skill-demo.is-typing .skill-demo__ph { display: none; }
/* Close-up on the post: the chat around it steps back, and the stage keeps an edge while the window fills it */
.skill-demo__top, .skill-demo__bar { transition: opacity 350ms var(--ease-out); }
.skill-demo.is-finale .skill-demo__top, .skill-demo.is-finale .skill-demo__bar, .skill-demo.is-finale .sd-el.is-on:not(.skill-demo__art) { opacity: 0; }
.skill-demo.is-finale .skill-demo__win { background-color: transparent; border-color: transparent; box-shadow: none; }
.skill-demo::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-cream); border-radius: inherit; pointer-events: none; }
.skill-demo.is-closed .skill-demo__win { opacity: 0; transform: scale(.9) translateY(12px); }
.skill-demo.is-still .skill-demo__win, .skill-demo.is-still .sd-el, .skill-demo.is-still .skill-demo__top, .skill-demo.is-still .skill-demo__bar { transition: none; }
.skill-demo.is-still .skill-demo__caret { display: none; }
/* Skip / Replay sits beside the caption */
.hero__visual--demo { position: relative; }
.hero__visual--demo .skill-demo__cap { min-height: 32px; padding-right: 88px; }
.skill-demo__cap { display: flex; align-items: center; font-size: 14px; line-height: 1.4; color: var(--grey); }
.skill-demo__ctl { position: absolute; right: 0; bottom: 0; min-width: 72px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-cream); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 13px/1 var(--font-body); cursor: pointer; }
.skill-demo__ctl::before { content: ""; position: absolute; inset: -6px; } /* 44px touch target */
.skill-demo__ctl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 700px) {
  .skill-demo { aspect-ratio: 4 / 5; }
}

/* A skill at work (AI setup, 2026-12-01): copy and request buttons beside the demo window */
.skill-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px 64px; align-items: center; }
.skill-show__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; }
.skill-show__picks { align-self: stretch; }
.skill-show__label { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.skill-show__picks ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skill-show__picks button { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 500 15px/1.3 var(--font-body); text-align: left; cursor: pointer; }
.skill-show__picks button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.skill-show__picks button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .skill-show__picks button:not([aria-pressed="true"]):hover { background: var(--cream-deep); } }
.skill-show__note { font-size: 14px; color: var(--grey); }
@media (max-width: 860px) {
  .skill-show { grid-template-columns: minmax(0, 1fr); }
  .skill-show__copy { max-width: none; }
}
/* Skip, under the window, only while a request is playing; the row keeps its height so nothing jumps */
.skill-show__stage { min-width: 0; }
.skill-show__ctl { position: relative; height: 32px; margin-top: 12px; }

/* Work card picture drawn in HTML (AI setup, 2026-12-01): the audit skill's real scores as a dial and bars.
   Sizes are in cqw so the tile scales like an image. Reuses .aa-bar from the audit page. */
.skill-tile { container-type: inline-size; display: grid; place-items: center; background: var(--cream-deep); }
.case-card__media-link .skill-tile { display: grid; } /* Work page: the link sets its picture to block */
.case-card__media-link:has(.skill-tile) { text-decoration: none; }
.skill-tile__panel { color: var(--ink); }
.skill-tile__panel { display: flex; flex-direction: column; gap: 3cqw; width: 86%; padding: 4.5cqw 5cqw; background: var(--white); border-radius: 1.4cqw; font-size: 2.5cqw; line-height: 1.3; }
.skill-tile__label { font-size: 2cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-text); }
.skill-tile__main { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 5cqw; align-items: center; }
.skill-tile__dial { text-align: center; }
.skill-tile__ring { position: relative; }
.skill-tile__ring svg { display: block; width: 100%; height: auto; }
.skill-tile__ring p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.skill-tile__ring b { font: 500 8.4cqw/1 var(--font-display); }
.skill-tile__ring span { margin-top: 0.6cqw; font-size: 1.9cqw; color: var(--grey); }
.skill-tile__grade { margin-top: 1.6cqw; font-size: 2.1cqw; font-weight: 600; }
.skill-tile__bars { display: grid; gap: 1.5cqw; }
.skill-tile__bars > div { display: grid; grid-template-columns: minmax(0, 1fr) 36% 2.2em; gap: 2cqw; align-items: center; }
.skill-tile__bars .aa-bar { height: 1cqw; }
.skill-tile__bars b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.skill-tile__facts { display: flex; gap: 4cqw; padding-top: 2.6cqw; border-top: 1px solid var(--line); color: var(--grey); }
.skill-tile__facts b { font-weight: 600; color: var(--ink); }
/* AI setup, "What every setup includes" (2026-12-01): the four points are numbered as steps, the last has no
   rule under it, and the training card is its own full-width row under both columns. */
.faq__list--steps .faq__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; }
.faq__list--steps .faq__item:first-child { padding-top: 0; }
.faq__list--steps .faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num { font: 500 21px/1.25 var(--font-display); color: var(--coral-text); font-variant-numeric: tabular-nums; }
.advice-card--row { flex: 1 1 100%; margin-top: 0; }
@media (min-width: 861px) {
  .advice-card--row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .advice-card--row .advice-card__icon { grid-row: 1 / span 2; align-self: center; }
  .advice-card--row > p { max-width: 760px; }
  .advice-card--row > .link-strong { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; white-space: nowrap; }
}
/* Link from Home's "AI training and advice" card: on desktop land with the whole section on screen and the
   card at the bottom of it, not cut off at the top of the window. Shorter windows keep the card fully in view. */
@media (min-width: 1024px) {
  #training { scroll-margin-top: min(555px, calc(100vh - 185px)); }
}

/* ---------- Design system page (handoff 2026-12-01, amend/Amend-Design-System) ---------- */
.ds-hero{display:flex;flex-direction:column;gap:20px}
.ds-toc{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
main .ds-toc a:not(.btn):not(.route){display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:100px;color:var(--ink);text-decoration:none;font-size:15px}
main .ds-toc a:not(.btn):not(.route):hover{border-color:var(--ink)}
.ds-section{border-top:1px solid var(--line);padding-block:clamp(56px,6vw,88px)!important}
.ds-h2{margin-bottom:36px}
.ds-group+.ds-group{margin-top:40px}
.ds-group__h{font:600 15px/1.3 var(--font-body);color:var(--grey);margin-bottom:16px}
.ds-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:28px 24px}
.ds-swatch{display:flex;flex-direction:column;gap:4px;font-size:14px}
.ds-swatch__chip{display:block;height:88px;border-radius:var(--radius);margin-bottom:10px}
.ds-swatch__chip--edge{box-shadow:inset 0 0 0 1px var(--line)}
.ds-swatch__name{font-weight:600;font-size:15px}
.ds-swatch code,.ds-meta code,.ds-table code,.ds-tokens code{font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--grey)}
.ds-swatch__use{color:var(--grey);margin-top:4px}
.ds-table{overflow-x:auto}
.ds-table table{width:100%;border-collapse:collapse;font-size:15px}
.ds-table th,.ds-table td{text-align:left;padding:14px 16px 14px 0;border-bottom:1px solid var(--line);vertical-align:middle}
.ds-table thead th{font-size:14px;color:var(--grey);font-weight:500}
.ds-table tbody th{font-weight:500}
.ds-aa{display:inline-flex;align-items:center;justify-content:center;width:36px;height:28px;margin-right:10px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--line);font-weight:600;font-size:14px}
.ds-fonts{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:40px}
.ds-font{font-size:44px;line-height:1.1}
.ds-font--display{font-family:var(--font-display);font-weight:500}
.ds-font--body{font-family:var(--font-body)}
.ds-meta{font-size:14px;color:var(--grey);line-height:1.5}
.ds-type li{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:baseline;padding:24px 0;border-top:1px solid var(--line)}
.ds-tokens{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 32px;margin:0}
.ds-tokens>div{padding:18px 0;border-top:1px solid var(--line)}
.ds-tokens dt{margin-bottom:6px}
.ds-tokens dd{margin:0;font-size:18px;display:flex;align-items:center;gap:12px}
.ds-radius{display:inline-block;width:40px;height:40px;border:1px solid var(--ink);border-radius:var(--radius)}
.ds-comps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px}
.ds-comp{display:flex;flex-direction:column;gap:14px}
.ds-stage{padding:32px;border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:148px}
.ds-stage--row{flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px}
.ds-stage--ink{background:var(--ink);color:var(--white);border-color:var(--ink)}
.ds-stage--ink .prices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
main a.ds-go{font-weight:500}
.ds-rules{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.ds-rules ul{display:flex;flex-direction:column}
.ds-rules li{padding:14px 0 14px 32px;border-top:1px solid var(--line);position:relative}
.ds-do li::before,.ds-dont li::before{position:absolute;left:0;top:14px;font-weight:600}
.ds-do li::before{content:"✓";color:var(--coral-text)}
.ds-dont li::before{content:"✕";color:var(--grey)}
@media (max-width:700px) {
  .ds-fonts,.ds-comps,.ds-rules{grid-template-columns:minmax(0,1fr)}
  .ds-type li{grid-template-columns:minmax(0,1fr);gap:10px}
  .ds-font{font-size:32px}
  .ds-stage--ink .prices{grid-template-columns:minmax(0,1fr)!important}
  .ds-table th:nth-child(4),.ds-table td:nth-child(4),.ds-table td code{display:none}
}
/* Design system page, compact on phones: 4-across swatches, 2-across tokens */
@media (max-width:700px) {
  .ds-swatches{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px 8px!important}
  .ds-swatch code{font-size:11px!important}
  .ds-swatch__name{font-size:13px!important;line-height:1.25}
  .ds-swatch__chip{height:48px!important;margin-bottom:8px!important}
  .ds-swatch{font-size:13px!important;gap:2px!important}
  .ds-swatch code:first-of-type,.ds-swatch__use{display:none!important}
  .ds-group+.ds-group{margin-top:28px!important}
  .ds-tokens{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 16px!important}
  .ds-tokens dd{font-size:16px!important}
  .ds-type li{padding:18px 0!important}
  .ds-h2{margin-bottom:24px!important}
}

/* Fitting post, coded cover, no old screenshots (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.post-cover.dsc {aspect-ratio:auto;height:auto;background:var(--cream)}
.dsc {display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,3vw,40px);align-items:center;padding:clamp(28px,5vw,64px);color:var(--ink)}
.dsc__col {display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:clamp(20px,3vw,36px);border:1px solid var(--line-cream);border-radius:var(--radius);background:var(--white)}
.dsc__btn {display:inline-flex;align-items:center;min-height:52px;padding:0 24px;border-radius:var(--radius);color:#fff;font:600 17px/1 var(--font-body)}
.dsc__hex {display:flex;align-items:center;gap:8px;font:14px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--grey)}
.dsc__dot {width:12px;height:12px;border-radius:3px}
.dsc__ratio {font:500 clamp(32px,4vw,48px)/1 var(--font-display);display:flex;align-items:baseline;gap:12px}
.dsc__fail, .dsc__pass {font:500 14px/1 var(--font-body);padding:5px 10px;border-radius:100px}
.dsc__fail {background:var(--cream);color:var(--grey)}
.dsc__pass {background:var(--ink);color:var(--white)}
@media (max-width:700px) {
  .dsc {grid-template-columns:1fr}
  .post-cover.dsc {aspect-ratio:auto}
}
/* Fitting post, article graphics (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.vis p, .vis li, .vis span, .vis b {margin:0!important;font-size:inherit;line-height:1.35}
.vis .vis__note {font-size:15px!important}
.vis .vis__title {font:600 16px/1.3 var(--font-body)!important;margin-bottom:52px!important}
.vis .vis__tag {font:13px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace!important;margin-bottom:14px!important}
.vis .vis__step .vis__tag {margin-bottom:0!important}
.vis .vis__head {font:500 34px/1.05 var(--font-display)!important}
.vis .vis__label {font-size:14px!important;margin-bottom:6px!important}
.vis ul {padding:0!important;margin-left:0!important;list-style:none!important}
.vis li {margin:0!important;padding:0!important}
.vis li::before {content:none!important}
@media (max-width:700px) {
  .vis .vis__head {font-size:28px!important}
}
.vis {margin:40px 0;display:flex;flex-direction:column;gap:12px}
.vis figcaption {font-size:14px;color:var(--grey)}
.vis__panel {background:var(--cream);border-radius:var(--radius);padding:clamp(24px,4vw,40px)}
.vis__panel--two {display:grid;grid-template-columns:1fr 1fr;gap:20px}
.vis__title {font:600 15px/1.3 var(--font-body);margin-bottom:56px}
.vis__tag {font:13px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--grey);margin-bottom:14px}
.vis__label {display:block;font-size:14px;font-weight:500;margin-bottom:6px}
.vis__field {display:block;height:48px;border:1px solid;border-radius:var(--radius);background:var(--white)}
.vis__step {background:var(--white);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.vis__step .vis__tag {margin:0}
.vis__step--ink {background:var(--ink);color:var(--white)}
.vis__step--ink .vis__tag, .vis__step--ink .vis__note {color:var(--grey-on-dark)}
.vis__btn {display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:var(--radius);background:#D04205;color:#fff;font-weight:600}
.vis__head {font:500 34px/1.05 var(--font-display)}
.vis__head span {color:#F36435}
.vis__note {font-size:14px;color:var(--grey)}
@media (max-width:700px) {
  .vis__panel--two {grid-template-columns:1fr}
}
/* Fitting post, swatches, not buttons (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.dsc .dsc__btn, .vis .vis__btn {display:flex!important;align-items:flex-end;justify-content:flex-start;align-self:stretch;width:100%;min-height:0;height:96px;padding:12px 16px;border-radius:var(--radius);font:500 40px/1 var(--font-display)!important;color:#fff;cursor:default}
/* Fitting post, result graphics (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.res {margin:40px 0;display:flex;flex-direction:column;gap:12px}
.res figcaption {font-size:14px;color:var(--grey)}
.res__grid {display:grid;grid-template-columns:1fr 1fr;gap:16px;background:var(--cream);border-radius:var(--radius);padding:clamp(16px,3vw,24px)}
.res__card {background:var(--white);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}
.res p {margin:0!important;line-height:1.35}
.res .res__label {font-size:15px!important;font-weight:600}
.res .res__val {font:500 44px/1.05 var(--font-display)!important;letter-spacing:-0.01em;margin-top:14px!important;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.res__unit {font:400 16px var(--font-body);color:var(--grey)}
.res__pass {font:500 13px/1 var(--font-body);padding:6px 10px;border-radius:100px;background:var(--ink);color:var(--white)}
.res .res__was {font-size:14px!important;color:var(--grey);margin-top:6px!important}
.res__meter {position:relative;height:8px;margin:28px 8px 8px;border-radius:4px;background:var(--cream)}
.res__fill {position:absolute;top:0;bottom:0;background:linear-gradient(90deg,#FF6955,var(--coral));border-radius:4px}
.res__need {position:absolute;top:-8px;bottom:-8px;border-left:2px solid var(--ink)}
.res__dot {position:absolute;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--coral);box-shadow:0 0 0 3px var(--white)}
.res__dot--old {background:var(--white);box-shadow:inset 0 0 0 2px #FF6955,0 0 0 3px var(--white)}
.res__bars {display:flex;flex-direction:column;gap:6px;margin-top:22px}
.res__bar {display:block;height:8px;border-radius:4px;background:var(--coral)}
.res__bar--old {background:repeating-linear-gradient(135deg,#EAE2D8 0 6px,#F5F1EC 6px 12px)}
@media (max-width:700px) {
  .res__grid {grid-template-columns:1fr}
  .res .res__val {font-size:36px!important}
}
/* Fitting post, simple contrast bars (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.vbar {position:relative;display:flex;flex-direction:column;gap:18px;padding-top:30px;--namew:96px;--valw:150px}
.vbar__row {display:grid;grid-template-columns:var(--namew) minmax(0,1fr) var(--valw);align-items:center;gap:16px}
.vbar__name {font-size:15px;font-weight:500}
.vbar__track {position:relative;height:28px;background:var(--white);border-radius:6px}
.vbar__fill {position:absolute;left:0;top:0;bottom:0;border-radius:6px}
.vbar__val {font:500 22px/1 var(--font-display);display:flex;align-items:center;gap:10px;white-space:nowrap}
.vbar__val em {font:500 13px/1 var(--font-body);font-style:normal;padding:6px 10px;border-radius:100px}
.vbar__fail {background:var(--white);color:var(--grey)}
.vbar__pass {background:var(--ink);color:var(--white)}
.vis .vis__title {margin-bottom:20px!important}
.vbar {padding-top:0!important}
.vbar__row--head {margin-bottom:-10px}
.vbar__scale {position:relative;height:18px}
.vis .vbar__needlbl {font-size:13px!important;line-height:1.2!important}
.vis .vbar__name {white-space:nowrap}
.vbar__needlbl {position:absolute;bottom:2px;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:600}
.vbar__mark {position:absolute;top:-10px;bottom:-10px;border-left:2px dashed var(--ink);z-index:1}
@media (max-width:700px) {
  .vbar__row--head>span:last-child {display:none}
  .vbar__val {font-size:16px!important}
  .vbar__needlbl {font-size:12px}
}
@media (max-width:700px) {
  .vbar {--namew:84px;--valw:0px}
  .vbar__row {grid-template-columns:var(--namew) minmax(0,1fr);row-gap:6px}
  .vbar__val {grid-column:2;font-size:18px}
  .vbar__name {font-size:14px}
}
/* Fitting post, simple scan graphic (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.vis .scan__head {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;margin-bottom:24px!important}
.vis .scan__big {font:500 clamp(56px,7vw,80px)/1 var(--font-display)!important;color:var(--coral);letter-spacing:-0.02em}
.vis .scan__sub {font-size:18px!important;color:var(--ink);max-width:28ch;line-height:1.35}
.scan__bar {display:flex;gap:4px;height:48px}
.vis .scan__seg {display:flex;align-items:center;padding:0 16px;border-radius:6px;font-size:15px!important;font-weight:500;white-space:nowrap;overflow:hidden}
.scan__seg--coral {background:#FF6955;color:var(--ink)}
.scan__seg--other {background:var(--ink);color:var(--white);justify-content:center;padding:0!important;min-width:72px}
@media (max-width:700px) {
  .vis .scan__seg {font-size:13px!important;padding:0 10px}
  .vis .scan__sub {font-size:16px!important}
}
/* Fitting post, contrast bars on phones (handoff 2026-12-01, amend/Amend-Post-Fitting) */
@media (max-width:700px) {
  .vbar {gap:22px!important}
  .vbar__row {grid-template-columns:1fr auto!important;grid-template-areas:"name val" "track track";row-gap:10px!important;column-gap:12px!important}
  .vbar__name {grid-area:name}
  .vbar__val {grid-area:val;grid-column:auto!important}
  .vbar__track {grid-area:track}
  .vbar__row--head {grid-template-areas:"track track";margin-bottom:-14px!important}
  .vbar__row--head>span:first-child, .vbar__row--head>span:last-child {display:none}
  .vbar__row--head .vbar__scale {grid-area:track}
  .vbar__needlbl {transform:translateX(calc(-100% - 6px))!important}
}
/* Fitting post, scan graphic clarity (handoff 2026-12-01, amend/Amend-Post-Fitting) */
.vis .scan__of {font-size:14px!important;font-weight:600;margin-bottom:8px!important}
@media (max-width:700px) {
  .scan__long {display:none}
  .vis .scan__seg {padding:0 8px!important}
  .scan__bar {height:44px}
  .vis .scan__big {font-size:56px!important}
}
