@charset "UTF-8";
/* ════════ site-polish.css ════════ */
/* ==========================================================================
   Site polish. Design fixes from the November 2026 review.
   Loaded after each page's own stylesheets and before site-motion.css.
   Nothing here changes wording.
   ========================================================================== */

/* 1. Headings break into even lines; paragraphs do not end on one stranded word. */
body.version-three :is(h1, h2, h3, h4) { text-wrap:balance; }
body.version-three :is(p, li, dd, blockquote, figcaption) { text-wrap:pretty; }

/* 2. Related links at the foot of an article ran together as one line of text. */
body.version-four .prose aside.related,
body.version-four .reading-connection { display:flex; flex-wrap:wrap; gap:4px 32px; }
body.version-four .prose aside.related > h2 { flex:0 0 100%; }
body.version-four :is(.prose aside.related, .reading-connection) > a { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
/* The links under older articles were body-grey and did not read as links. */
body.version-four .reading-connection > a { color:var(--blue--fg); }
body.version-four .reading-connection > a:hover { text-decoration:underline; text-underline-offset:4px; }

/* 3. The blog archive (/blog/) was an unstyled bullet list with the date jammed against the title.
      It is now an index grouped by year, with the search field styled like the one on /articles/. */
body.version-four .archive-tools {
  display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px 28px;
  padding:24px 0; border-block:1px solid var(--line--ln);
}
body.version-four .archive-search-field { flex:1 1 320px; max-width:540px; display:grid; gap:8px; }
body.version-four .archive-search-field label { font-size:12px; font-weight:500; line-height:1.4; color:var(--ink--fg); }
body.version-four .archive-search-field input {
  width:100%; min-height:48px; margin:0; padding:0 16px; box-sizing:border-box;
  border:1px solid var(--v5-ln-c7c7cc); border-radius:var(--radius-element); background:var(--color-background-body); color:var(--ink--fg);
  font:inherit; font-size:16px; letter-spacing:-.01em;
}
body.version-four .archive-search-field input::placeholder { color:var(--v5-fg-6e6e73); }
body.version-four .archive-tools #archive-count { margin:0 0 16px; color:var(--muted--fg); font-variant-numeric:tabular-nums; }
body.version-four .archive-tools .archive-browse-link { margin:0 0 4px auto; min-height:44px; display:inline-flex; align-items:center; gap:12px; }

body.version-four .archive-list { margin:0; padding:0; }
body.version-four .archive-year-group {
  display:grid; grid-template-columns:150px minmax(0, 1fr); gap:0 48px;
  padding:32px 0 16px; border-bottom:1px solid var(--line--ln);
}
body.version-four .archive-year-group[hidden] { display:none; }
body.version-four .inner-main .archive-year-group > h2 {
  position:sticky; top:104px; align-self:start; margin:12px 0 0;
  font-size:clamp(32px, 3.2vw, 40px); line-height:1; letter-spacing:-.055em;
  font-variant-numeric:tabular-nums; color:var(--ink--fg);
}
body.version-four .archive-year-group > ul { list-style:none; margin:0; padding:0; }
body.version-four .archive-year-group li { margin:0; padding:0; border-top:1px solid var(--color-border-subtle); list-style:none; }
body.version-four .archive-year-group li::before,
body.version-four .archive-year-group li::marker { content:none; }
body.version-four .archive-year-group li:first-child { border-top:0; }
body.version-four .archive-year-group li > a {
  display:grid; grid-template-columns:62px minmax(0, 1fr) auto; gap:20px; align-items:baseline;
  min-height:44px; padding:16px 0; color:var(--ink--fg); text-decoration:none;
}
body.version-four .archive-year-group time { font-size:14px; line-height:1.5; color:var(--muted--fg); font-variant-numeric:tabular-nums; white-space:nowrap; }
body.version-four .archive-year-group .archive-title { font-size:18px; line-height:1.4; letter-spacing:-.022em; transition:color var(--duration-fast) ease-out; }
body.version-four .archive-year-group .archive-go { color:var(--blue--fg); font-size:18px; }
body.version-four .archive-year-group li > a:hover .archive-title { color:var(--blue--fg); }
body.version-four .reading-page .no-results { margin-top:32px; color:var(--muted--fg); }
@media (max-width: 760px) {
  body.version-four .archive-tools .archive-browse-link { margin-left:0; }
  body.version-four .archive-tools #archive-count { margin-bottom:0; flex-basis:100%; }
  body.version-four .archive-year-group { grid-template-columns:minmax(0, 1fr); padding:24px 0 8px; }
  body.version-four .inner-main .archive-year-group > h2 { position:static; margin:0 0 6px; font-size:32px; }
  body.version-four .archive-year-group li > a { grid-template-columns:52px minmax(0, 1fr) auto; gap:12px; padding:12px 0; }
  body.version-four .archive-year-group .archive-title { font-size:16px; }
}

/* 4. Homepage proof strip, small tablets: two figures stacked above their labels while the third
      sat beside its label. All three now stack the same way. */
@media (min-width: 761px) and (max-width: 900px) {
  body.version-three .proof-strip > a { flex-direction:column; flex-wrap:nowrap; align-items:flex-start; gap:12px; }
}

/* 5. Services: the five choices were centred in their row, so when labels wrapped to different
      lengths on tablets the numbers, dividers and arrows sat at different heights. */
body.version-three .services-selector { align-items:stretch; }

/* 6. Projects index, earlier work: each card's picture area had its own height, so the titles in a
      row started at different levels. Paired cards now share one picture row and one text row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 701px) {
    body.version-four .archive-project-grid > .archive-project { display:grid; grid-row:span 2; grid-template-rows:subgrid; row-gap:0; }
    body.version-four .archive-project-grid .archive-project-link { display:grid; grid-row:span 2; grid-template-rows:subgrid; row-gap:0; height:auto; }
    body.version-four .archive-project-grid .archive-project-visual { display:flex; flex-direction:column; }
    body.version-four .archive-project-grid .archive-image-stage { flex:1 1 auto; }
  }
}

/* 7. Projects index, earlier work: these were the only square-cornered cards on a site of rounded ones. */
body.version-four .archive-project-grid .archive-project-link { border-radius:var(--radius-panel); overflow:hidden; }

/* 8. One typeface on every device. The type stack is Apple's system font, which only exists on
      Apple devices; Windows fell back to Arial under letter-spacing tuned for San Francisco.
      Inter now fills that gap. Apple devices keep their system font and never download these files.
      (Inter is open source, SIL OFL 1.1; licence in /assets/fonts/inter-LICENSE.txt.)
      To go back to plain system fonts, delete this block. */
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap;
  src:url("/assets/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range:U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/assets/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+2010-2015, U+2018-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2199, U+2212; }
html[data-theme="apple"] {
  --sans:-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* 9. One accent blue. The contact headline and a few links on the contact and home pages used
      near-miss blues (#3065c7, #316ad4, #2864c9, #245daf); they now use the site accent. */
body.version-four .v4-contact-head h1 em { color:var(--blue--fg); }
body.version-four .v4-audience-paths i,
body.version-four .v4-form-fallback a,
body.version-four .v4-evidence-context a { color:var(--blue--fg); }
body.version-four .v4-audience-paths a:focus-visible,
body.version-four .v4-form-field :is(input, select, textarea):focus-visible { outline-color:var(--color-focus); }

/* 10. Sub-headings in older posts that were pasted in as bold text. A <strong> inside a heading asked for
   "bolder than the heading", which drew four sub-headings in one post far heavier than every other. */
.prose :is(h2, h3, h4) strong { font-weight:inherit; }

/* 11. Phones: three touch fixes that leave the look alone.
   a. iOS Safari zooms the whole page when you tap a field whose text is under 16px, and stays zoomed.
      The writing search and its two filters were 15px. */
@media (max-width: 760px) {
  body.version-three .writing-controls :is(input, select) { font-size:16px; }
}
/* b. The contents list at the top of a guide: each link was a 21px-high target with a 12px gap.
      The gap now belongs to the link, so the whole row answers a thumb. Spacing is unchanged. */
@media (max-width: 900px) {
  body.version-four .v4-guide .article-toc { padding-bottom:16px; }
  body.version-four .v4-guide .article-toc a { padding-block:6px; margin-bottom:0; }
  body.version-four .v4-guide .article-toc a:first-of-type { margin-top:-6px; }
}
/* c. The author link in the byline was 18px high. Padding out, margin back in: same place, bigger target. */
.byline > a { padding-block:12px; margin-block:-12px; }

/* 12. Phones and small tablets: no reading text under 12px (requested by Cianan, 13 Nov 2026).
   Captions, tags, dates, bylines and small labels were set at 8 to 11px. Each rule below names one of those
   places; none of them touches text that was already 12px or larger, and nothing changes above 760px.
   Left alone on purpose: the miniature Exante interface previews and the Marina workflow drawings, which are
   pictures of an interface rather than text to read.
   The list was generated by measuring every page at four widths, then checked the same way: nothing got
   smaller, nothing readable is left under 12px, and no page scrolls sideways. */
@media (max-width: 760px) {
  a.archive-row > span > small,
  a.contact-disc > span:not(:first-child),
  a.engagement-proof > span > small,
  a.project-visual.boatyard-visual > span.visual-label,
  a.project-visual.exante-visual > span.visual-label,
  a.project-visual.marina-visual > span.visual-label,
  a.project-visual.openr-visual > span.visual-label,
  a.public-reference > span > small,
  article.v4-community-card > div > p.v4-eyebrow,
  article.v4-contribution-card > p.v4-eyebrow,
  article.v4-evidence-card > p.v4-eyebrow,
  article.v4-recognition-card > p.v4-eyebrow,
  aside.article-toc > strong,
  aside.hj-related > div > a > span,
  details.exante-platform-preview > figure > figcaption,
  details.folio-archive > div > figure > figcaption,
  details.project-sources > p,
  details.project-sources > p > a,
  details.project-sources > p > a > span,
  details.project-sources > summary,
  div.archive-project-copy > span.archive-project-action,
  div.archive-project-meta > span,
  div.article-meta > span,
  div.article-meta > time,
  div.byline > a,
  div.byline > span,
  div.byline > span > time,
  div.byline > span.c-updated,
  div.byline > time,
  div.case-venture-art > ol > li > small,
  div.case-venture-art > ol > li > span,
  div.ed-contact-list > article > span.v4-enquiry-number,
  div.ed-results > div > span,
  div.exante-use-copy > dl > dt,
  div.exante-use-copy > p.eyebrow,
  div.exante-use-footer > span,
  div.expansion-topline > span,
  div.hero-copy > p.eyebrow,
  div.hj-hero-copy > p.hj-era,
  div.insurance-panels > figure > figcaption,
  div.marina-dashboard > figure > figcaption,
  div.marina-workflow-output > span,
  div.process > div > span,
  div.project-evidence > span > small,
  div.project-heading > span.tag,
  div.proof-strip > a > span > small,
  div.public-topline > span,
  div.scale-graphic > span,
  div.service-list > a > span.service-number,
  div.services-hero-copy > p.eyebrow,
  div.v4-principle-hero > header > p.v4-eyebrow,
  div.v4-stack-layer.v4-stack-engine > dt > span,
  div.visual-bottom > span:not(.circle-arrow),
  div.writing-controls > div > label,
  div.writing-meta > span,
  div.writing-meta > time,
  dl.appointment-details > div > dt,
  figure.admessenger-art > figcaption,
  figure.archive-project-visual > figcaption,
  figure.article-cover > figcaption.image-caption,
  figure.beats-hero-image.beats-portfolio-hero-board > figcaption,
  figure.beats-hero-image.beats-portfolio-hero-board > figcaption > a,
  figure.beats-hero-image.beats-portfolio-hero-board > figcaption > a > span,
  figure.beats-hero-image.beats-portfolio-hero-board > figcaption > span,
  figure.case-community-art > figcaption,
  figure.case-hero-art > figcaption,
  figure.case-hero-art.case-cropped-art > figcaption,
  figure.case-hero-art.case-phone-pair > figcaption,
  figure.case-hero-art.case-portrait-art > figcaption,
  figure.case-hero-art.v4-ad-device-figure > figcaption,
  figure.case-hero-art.v4-drop-device-figure > figcaption,
  figure.drop-art > figcaption,
  figure.exante-client-quote > figcaption > div > span,
  figure.exante-client-quote > figcaption > div > span > a,
  figure.hj-hero-art > figcaption,
  figure.hj-hero-art > figcaption > span,
  figure.hj-screen-figure > figcaption,
  figure.project-image > figcaption,
  figure.project-image.v4-original-card > figcaption > span.v4-original-number,
  figure.vx-hero-preview > figcaption > span:not(:first-child),
  figure.vx-hero-preview > figcaption > span > a,
  figure.vx-hero-preview > figcaption > span > a > span,
  footer.site-footer > a:not(.wordmark),
  nav.case-chapters > a,
  nav.case-chapters > a > span,
  nav.case-topbar > span,
  nav.ed-jumps > a,
  nav.v4-audience-paths > a > span,
  ol.beats-contribution-grid > li > span.beats-number,
  ol.entry-deliverables > li > span,
  ol.hj-detail-list > li > span.hj-number,
  ol.hj-flow-grid > li > span.hj-number,
  p.beats-product-credit > a,
  p.beats-product-credit > a > span,
  p.c-verification > a,
  p.c-verification > a > span,
  p.vx-preview-caption > a,
  p.vx-preview-caption > a > span,
  p.vx-preview-caption > span,
  section.beats-contribution > p.beats-product-credit,
  section.beats-outcomes > dl > div > dt,
  section.c-claims-workflow > p.c-workflow-caption,
  section.case-steps > ol > li > span.case-step-number,
  section.folio-journey > div > figure > figcaption,
  section.hj-results > div > p,
  section.v4-career > header > p.v4-eyebrow,
  section.v4-community > header > p.v4-eyebrow,
  section.v4-contact > p.v4-eyebrow,
  section.v4-contribution > header > p.v4-eyebrow,
  section.v4-evidence > header > p.v4-eyebrow,
  section.v4-principles > header > p.v4-eyebrow,
  section.v4-recognition > header > p.v4-eyebrow,
  span.c-updated > time { font-size:12px !important; }
}
@media (max-width: 520px) {
  nav.services-selector > a > span.selector-number { font-size:12px !important; }
}
@media (min-width: 521px) and (max-width: 760px) {
  aside.services-approach > p > span { font-size:12px !important; }
}

/* 13. Two things the phone design review turned up.
   a. Tables in the guides scroll sideways inside their own box, yet the first column still broke words in
      the middle ("Implement / ation"), because article text is allowed to break anywhere. Tables keep words whole. */
body.version-four .prose > .v4-guide-table { overflow-wrap:normal; }
/* b. At 12px, "National open data governance" on the home page needs more room than the 135px it had at 8px. */
@media (max-width: 760px) {
  .public-topline > span { max-width:200px; }
  .public-topline > :first-child { flex:none; }
}


/* ── 14. Contrast (accessibility audit, 13 Nov 2026) ───────────────────────────────────────────
   Two pieces of small text sat just under the 4.5:1 contrast that WCAG AA asks for.
   a. Labels under the case-study result figures: muted grey at 85% opacity came to 4.1:1.
   b. The white labels in the Exante "rules engine" block: 4.4:1 on the lightened tiles. */
body.version-three .case-page .ed-results span{opacity:1}
body.version-four .v4-stack-engine li{background:var(--v5-bg-ffffff1a)}

/* ── 15. Privacy notice links ──────────────────────────────────────────────────────────────────
   a. The link in the contact page's note reads as a link (it inherited plain text styling).
   b. Phones hide the footer's page links; the Privacy link stays, with a full-size tap area. */
body.version-four .v4-contact-note a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.version-four .v4-contact-note a:hover{color:var(--blue--fg,var(--color-icon-accent))}
@media (max-width:760px){
  .site-footer .footer-links{display:flex}
  .site-footer .footer-links a:not([href="/privacy/"]){display:none}
  .site-footer .footer-links a[href="/privacy/"]{display:flex;align-items:center;min-height:44px;padding-inline:8px;font-size:12px}
}

/* ── 16. About page career: one row per role ────────────────────────────────────────
   Was two columns of text blocks with the role and its years run together on one small line.
   Now a table of rows: years | organisation and role | what I did (and its case-study links).
   The years lead each row because the list is a timeline; each group runs newest first.
   Tablet: years | everything else. Phone: stacked, years on top. */
body.v4-executive-about[data-principles-study] .inner-main .v4-career-grid{grid-template-columns:minmax(0,1fr);gap:56px}
body.v4-executive-about[data-principles-study] .inner-main .v4-career-grid>article{display:block;padding-top:0;border-top:0}
body.v4-executive-about[data-principles-study] .inner-main .v4-career-grid h3{max-width:none;font-size:20px;line-height:1.25}
body.v4-executive-about[data-principles-study] .inner-main .v4-role-list{display:block;margin-top:16px;border-top:1px solid var(--v4-rule--ln)}
body.v4-executive-about[data-principles-study] .inner-main .v4-role{display:grid;grid-template-columns:132px minmax(0,300px) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:40px;align-items:baseline;padding:24px 0;border-bottom:1px solid var(--v4-rule--ln)}
body.v4-executive-about[data-principles-study] .inner-main .v4-role h4{grid-column:2;grid-row:1;font-size:18px;line-height:1.25}
body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-remit{grid-column:2;grid-row:2;max-width:none;margin:4px 0 0;font-size:14px;font-weight:500;line-height:1.4;color:var(--color-text-primary)}
body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-years{grid-column:1;grid-row:1;display:block;max-width:none;margin:0;font-size:14px;font-weight:500;line-height:1.25;color:var(--color-text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-body{grid-column:3;grid-row:1 / span 3}
body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-body>p{max-width:60ch;margin:0;font-size:16px;line-height:1.5}
body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-links{display:flex;flex-wrap:wrap;gap:0 24px;margin-top:8px}
@media (max-width:1000px){
  body.v4-executive-about[data-principles-study] .inner-main .v4-role{grid-template-columns:112px minmax(0,1fr);grid-template-rows:none;column-gap:24px}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-body{grid-column:2;grid-row:3;margin-top:12px}
}
@media (max-width:650px){
  body.v4-executive-about[data-principles-study] .inner-main .v4-career-grid{gap:40px}
  body.v4-executive-about[data-principles-study] .inner-main .v4-career-grid h3{font-size:20px}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role-list{margin-top:16px}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role{grid-template-columns:minmax(0,1fr);padding:20px 0}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-years{grid-column:1;grid-row:1;margin-bottom:4px}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role h4{grid-column:1;grid-row:2}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-remit{grid-column:1;grid-row:3}
  body.v4-executive-about[data-principles-study] .inner-main .v4-role .v4-role-body{grid-column:1;grid-row:4}
}

/* ════════ site-motion.css ════════ */
/* ==========================================================================
   Site motion layer.  Loaded last, on every page, with site-enhance.js.

   Principles
   1. Facts stay still.      Figures, dates and body copy are never hidden,
                             delayed or counted up. Nothing below the fold
                             waits for a scroll before it can be read.
   2. One entrance per page. The page head stages in once, on load.
   3. The blue arrives.      The blue phrase in a heading starts in ink and
                             wipes to blue. This is the site's signature.
   4. Sequences play in order. Numbered steps run once, first to last.
   5. Motion answers the person: hover, press, open, filter, navigate.

   To switch all of it off, remove this stylesheet's <link>. Reduced-motion
   visitors get none of it: everything sits inside a no-preference query,
   and version-3.css also cancels animation and transition for them.
   ========================================================================== */

:root {
  --m-ease:cubic-bezier(.22, 1, .36, 1);      /* the curve the Layered card motion already uses */
  --m-ease-io: cubic-bezier(.65, 0, .35, 1);
  --m-step:70ms;                              /* stagger between siblings */
}

/* The homepage headline lines are units, so they can move one by one. */
.hero h1 .hl { display:inline-block; }

@keyframes m-rise    { from { opacity:0; translate:0 18px; } }
@keyframes m-rise-sm { from { opacity:0; translate:0 8px; } }
@keyframes m-fade    { from { opacity:0; } }
@keyframes m-settle  { from { opacity:0; translate:0 22px; scale:.985; } }
@keyframes m-ink {
  from { background-position:100% 0; -webkit-text-fill-color:transparent; }
  to   { background-position:0 0;    -webkit-text-fill-color:transparent; }
}
@keyframes m-dot {
  from { box-shadow:0 0 0 0 var(--v5-ln-0071e36b); }
  to   { box-shadow:0 0 0 10px var(--v5-ln-0071e300); }
}
@keyframes m-seq-line {
  0%   { transform:scaleX(0); opacity:1; }
  42%  { transform:scaleX(1); opacity:1; }
  78%  { transform:scaleX(1); opacity:1; }
  100% { transform:scaleX(1); opacity:0; }
}
@keyframes m-seq-tick {
  0%   { box-shadow:0 0 0 0 var(--v5-ln-0066cc61); }
  100% { box-shadow:0 0 0 9px var(--v5-ln-0066cc00); }
}
@keyframes m-seq-num {
  0%, 100% { scale:1; }
  40%      { scale:1.28; }
}
@keyframes m-route {
  0%   { left:0; opacity:1; }
  62%  { left:calc(100% - 9px); opacity:1; }
  76%  { left:calc(100% - 9px); opacity:0; }
  77%  { left:0; opacity:0; }
  100% { left:0; opacity:1; }
}
@keyframes m-menu { from { opacity:0; translate:0 -8px; } }
@keyframes m-dialog { from { opacity:0; scale:.97; translate:0 10px; } }

@media (prefers-reduced-motion: no-preference) {

  /* ---------- Page to page ------------------------------------------------
     Browsers that support cross-document view transitions dissolve between
     pages while the header stays put. Others navigate as before. */
  @view-transition { navigation:auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration:.26s; animation-timing-function:ease-out; }
  .site-header { view-transition-name:site-header; }
  ::view-transition-group(site-header) { animation-duration:.2s; }

  /* ---------- One entrance per page: the homepage ------------------------- */
  .hero .eyebrow        { animation:m-fade .8s ease-out both; }
  .hero h1 .hl          { animation:m-rise .95s var(--m-ease) .05s backwards; }
  .hero h1 .hl-2        { animation-delay:.14s; }
  .hero h1 .hl-3        { animation-delay:.23s; }
  .hero .hero-intro     { animation:m-rise .9s var(--m-ease) .36s backwards; }
  .hero .hero-actions   { animation:m-rise .9s var(--m-ease) .45s backwards; }
  .hero .portrait       { animation:m-settle 1.25s var(--m-ease) .08s backwards; transform-origin:50% 100%; }
  .homepage > .proof-strip { animation:m-fade .7s ease-out .42s backwards; }
  .homepage > .proof-strip > a { animation:m-rise .85s var(--m-ease) backwards; animation-delay:calc(.58s + var(--m-i, 0) * var(--m-step)); }
  .homepage > .proof-strip > a:nth-child(2) { --m-i:1; }
  .homepage > .proof-strip > a:nth-child(3) { --m-i:2; }
  .hero .status-dot     { animation:m-dot 1.7s ease-out 1.15s 2; }

  /* ---------- One entrance per page: every other template ----------------- */
  :is(.ed-page-head, .page-head, .article-head, .services-hero-copy,
      .v4-principle-hero > header, .case-hero-copy, .beats-hero-copy, .hj-hero-copy) > * {
    animation:m-rise .9s var(--m-ease) backwards;
    animation-delay:calc(.04s + var(--m-i, 0) * var(--m-step));
  }
  :is(.ed-page-head, .page-head, .article-head, .services-hero-copy,
      .v4-principle-hero > header, .case-hero-copy, .beats-hero-copy, .hj-hero-copy) > :nth-child(2) { --m-i:1; }
  :is(.ed-page-head, .page-head, .article-head, .services-hero-copy,
      .v4-principle-hero > header, .case-hero-copy, .beats-hero-copy, .hj-hero-copy) > :nth-child(3) { --m-i:2; }
  :is(.ed-page-head, .page-head, .article-head, .services-hero-copy,
      .v4-principle-hero > header, .case-hero-copy, .beats-hero-copy, .hj-hero-copy) > :nth-child(4) { --m-i:3; }
  :is(.ed-page-head, .page-head, .article-head, .services-hero-copy,
      .v4-principle-hero > header, .case-hero-copy, .beats-hero-copy, .hj-hero-copy) > :nth-child(n+5) { --m-i:4; }

  /* The picture, form or product stage beside the heading settles a beat later. */
  :is(.v4-principle-hero > figure, .case-hero > :last-child:not(.case-hero-copy),
      .beats-hero > figure, .hj-hero > figure, .article-cover, .v4-contact-form) {
    animation:m-settle 1.1s var(--m-ease) .2s backwards;
  }
  /* The row of choices under a page head follows the head. */
  .inner-main > :is(.ed-jumps, .v4-about-jumps, .case-chapters),
  .services-hero > .services-selector { animation:m-fade .8s ease-out .42s backwards; }

  /* ---------- Motion answers the person ----------------------------------- */

  /* Arrows lean the way they point. site-enhance.js labels each arrow glyph. */
  /* Zero specificity on display, so an arrow the layout hides at some width stays hidden. */
  :where([data-arrow]) { display:inline-block; }
  [data-arrow] { transition:translate .4s var(--m-ease); }
  /* Some arrows already had their own hover nudge; one movement is enough. */
  [data-arrow] { transform:none !important; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="ne"] { translate:2px -2px; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="se"] { translate:2px 2px; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="e"]  { translate:3px 0; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="w"]  { translate:-3px 0; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="s"]  { translate:0 3px; }
  :is(a, button, summary):is(:hover, :focus-visible) [data-arrow="n"]  { translate:0 -3px; }

  /* A press reads as a press. */
  .button, .nav-contact, .public-primary, .pe-link-solid, .expansion-cta, .menu-toggle,
  .v4-contact-form button, .text-button {
    transition:background-color var(--duration-fast) ease-out, color var(--duration-fast) ease-out, border-color var(--duration-fast) ease-out, scale var(--duration-fast) ease-out;
  }
  .button:active, .nav-contact:active, .public-primary:active, .pe-link-solid:active, .expansion-cta:active,
  .menu-toggle:active, .v4-contact-form button:active, .text-button:active { scale:.97; }
  .contact-disc { transition:background-color .25s, color .25s, scale .5s var(--m-ease); }
  .contact-disc:hover { scale:1.05; }
  .contact-disc:active { scale:.98; }

  /* Mobile menu: the panel drops in, its links follow. Closing is immediate. */
  @media (max-width: 900px) {
    .site-header #main-nav.is-open { animation:m-menu .28s var(--m-ease) both; }
    .site-header #main-nav.is-open > a { animation:m-rise-sm .42s var(--m-ease) backwards; animation-delay:calc(.03s + var(--m-i, 0) * 34ms); }
    .site-header #main-nav.is-open > a:nth-child(2) { --m-i:1; }
    .site-header #main-nav.is-open > a:nth-child(3) { --m-i:2; }
    .site-header #main-nav.is-open > a:nth-child(4) { --m-i:3; }
    .site-header #main-nav.is-open > a:nth-child(5) { --m-i:4; }
    .menu-toggle > span { display:inline-block; transition:rotate .35s var(--m-ease); }
    .menu-toggle[aria-expanded="true"] > span { rotate:180deg; }
  }

  /* Disclosures and image viewers open rather than appear. */
  details[open] > :not(summary) { animation:m-rise-sm .4s var(--m-ease) backwards; }
  dialog[open] { animation:m-dialog .32s var(--m-ease) both; }
  dialog[open]::backdrop { animation:m-fade .3s ease-out both; }

  /* Form feedback and newly matched search results fade in. */
  .v4-form-status[data-state] { animation:m-rise-sm .35s var(--m-ease) both; }
  .m-new { animation:m-rise-sm .45s var(--m-ease) backwards; animation-delay:calc(var(--m-i, 0) * 28ms); }

  /* The contents list follows the reader. */
  .article-toc a { transition:color var(--duration-fast) ease-out; }

  /* ---------- Sequences play in order ------------------------------------- */

  /* Columns of numbered steps: a blue rule draws across each step in turn,
     then settles back to the resting hairline. */
  [data-seq] [data-step] { position:relative; }
  [data-seq] [data-step]::after {
    content:""; position:absolute; left:0; right:0; top:-1px; height:2px;
    background:var(--blue--bg); transform:scaleX(0); transform-origin:0 50%; pointer-events:none;
  }
  [data-seq="run"] [data-step]::after {
    animation:m-seq-line 1.9s var(--m-ease-io) both;
    animation-delay:calc(var(--m-i, 0) * .34s);
  }
  /* One rule across the whole row when the steps share a single divider. */
  [data-seq][data-seq-kind="rail"] { position:relative; }
  [data-seq][data-seq-kind="rail"]::after {
    content:""; position:absolute; left:0; right:0; top:-1px; height:2px;
    background:var(--blue--bg); transform:scaleX(0); transform-origin:0 50%; pointer-events:none;
  }
  [data-seq="run"][data-seq-kind="rail"]::after { animation:m-seq-line 2.4s var(--m-ease-io) both; }
  [data-seq="run"][data-seq-kind="rail"] [data-step-num] {
    display:inline-block; transform-origin:0 50%;
    animation:m-seq-num .7s var(--m-ease) both; animation-delay:calc(.1s + var(--m-i, 0) * .36s);
  }
  /* Vertical numbered lists: each number is ticked off in turn. */
  [data-seq="run"] [data-tick] { border-radius:999px; animation:m-seq-tick .9s ease-out both; animation-delay:calc(.25s + var(--m-i, 0) * .3s); }
  [data-seq="run"] [data-tick-before]::before { transform-origin:0 50%; animation:m-seq-num .7s var(--m-ease) both; animation-delay:calc(.2s + var(--m-i, 0) * .26s); }
  /* Ireland to Europe: the marker makes the trip once, then returns to its start. */
  [data-seq="run"] .entry-route-line::before { animation:m-route 2.1s var(--m-ease-io) both; }
}

/* ---------- The blue arrives ------------------------------------------------
   At rest the phrase is plain coloured text. During the wipe it is painted by a
   two-colour gradient clipped to the letters, sliding from ink to its own colour. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) {
    /* On load, in each page head. */
    :is(.hero, .ed-page-head, .page-head, .article-head, .services-hero-copy, .v4-principle-hero,
        .case-hero-copy, .beats-hero-copy, .hj-hero-copy) h1 em {
      background:linear-gradient(90deg, currentColor 0 47%, var(--m-from, var(--ink--bg)) 53% 100%) 0 0 / 220% 100% no-repeat;
      -webkit-background-clip:text; background-clip:text;
      animation:m-ink 1s var(--m-ease-io) .5s backwards;
    }
    .hero h1 em.hl {
      animation:m-rise .95s var(--m-ease) .23s backwards, m-ink 1.05s var(--m-ease-io) .62s backwards;
    }
    h1 em.m-ink-done { background:none; animation:none; }
    /* On scroll, for section headings. site-enhance.js arms each phrase before it is seen. */
    em.m-ink {
      background:linear-gradient(90deg, currentColor 0 47%, var(--m-from, var(--ink--bg)) 53% 100%) 100% 0 / 220% 100% no-repeat;
      -webkit-background-clip:text; background-clip:text;
      -webkit-text-fill-color:transparent;
    }
    em.m-ink.is-in { background-position:0 0; transition:background-position 1s var(--m-ease-io) .1s; }
  }
}

/* ---------- Reading progress ---------------------------------------------- */
.m-progress { position:absolute; left:0; right:0; bottom:-1px; height:2px; pointer-events:none; overflow:hidden; }
.m-progress > i { display:block; height:100%; background:var(--blue--bg, var(--color-accent-strong)); transform:scaleX(var(--m-p, 0)); transform-origin:0 50%; }
.article-toc a[aria-current="location"] { color:var(--blue--fg); }

@media print {
  .m-progress { display:none; }
}

/* Mobile review: readable supporting copy and next-project links that fit narrow phones. */
@media (max-width: 760px) {
  body.version-four .case-next-project > a:first-of-type { gap:16px; }
  body.version-four .case-next-project > a:first-of-type > span:first-child { min-width:0; }
  body.version-four .case-next-project strong {
    font-size:clamp(28px, 9vw, 36px);
    overflow-wrap:anywhere;
  }
  body.version-four .case-next-project a > span > span,
  body.version-four .case-next-project .case-all-projects { font-size:14px; }
  body.version-four .case-next-project .case-all-projects > span { font-size:24px; }

  body.version-four :is(
    .engagement-copy .engagement-scope,
    .entry-brief > p,
    .ed-expansion-enquiry p,
    .archive-project-copy p,
    .marina-paths p,
    .marina-workflow-description,
    .marina-workflow-output p,
    .v4-validation-stage li,
    .v4-validation-result p,
    .v4-compliance-distinction p,
    .v4-evidence-context p,
    .c-workflow-copy > p:not(.c-kicker),
    .exante-flow-heading p,
    .exante-flow-steps p,
    .v4-payout-flow li,
    .v4-payout-flow li p,
    .exante-use-copy > p:not(.eyebrow),
    .beats-section-head p,
    .beats-contribution-grid p,
    .beats-outcomes p,
    .case-steps li p
  ) { font-size:16px; line-height:1.6; }

  body.version-four .writing-controls label,
  body.version-four .archive-search-field label { font-size:14px; }
}

